guix-manual.zh_CN.po 2.2 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210
  1. # Chinese (simplified) translation of the Guix manual.
  2. # Copyright (C) 2013-2019 the authors of Guix (msgids) and the following authors (msgstr)
  3. # This file is distributed under the same license as the guix manual package.
  4. # Meiyo Peng <meiyo@riseup.net>, 2019.
  5. # 郑俊杰 <873216071@qq.com>, 2021.
  6. # Liu Tao <lyuutau@outlook.com>, 2021.
  7. # Xinglu Chen <public@yoctocell.xyz>, 2021.
  8. # Charles Lee <lchopn@gmail.com>, 2021.
  9. # Went He <1437061699@qq.com>, 2021.
  10. msgid ""
  11. msgstr ""
  12. "Project-Id-Version: guix-manual 1.0.1-pre1\n"
  13. "Report-Msgid-Bugs-To: bug-guix@gnu.org\n"
  14. "POT-Creation-Date: 2021-10-14 15:18+0000\n"
  15. "PO-Revision-Date: 2021-09-13 10:04+0000\n"
  16. "Last-Translator: Charles Lee <lchopn@gmail.com>\n"
  17. "Language-Team: Chinese (Simplified) <https://translate.fedoraproject.org/projects/guix/documentation-manual/zh_CN/>\n"
  18. "Language: zh_CN\n"
  19. "MIME-Version: 1.0\n"
  20. "Content-Type: text/plain; charset=UTF-8\n"
  21. "Content-Transfer-Encoding: 8bit\n"
  22. "Plural-Forms: nplurals=1; plural=0;\n"
  23. "X-Generator: Weblate 4.8\n"
  24. "X-Bugs: Report translation errors to the Language-Team address.\n"
  25. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  26. #. type: chapter
  27. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  28. #. type: menuentry
  29. #: guix-git/doc/contributing.texi:1 guix-git/doc/contributing.texi:2
  30. #: guix-git/doc/guix.texi:179
  31. #, no-wrap
  32. msgid "Contributing"
  33. msgstr "贡献"
  34. #. type: Plain text
  35. #: guix-git/doc/contributing.texi:9
  36. #, fuzzy
  37. #| msgid "This project is a cooperative effort, and we need your help to make it grow! Please get in touch with us on @email{guix-devel@@gnu.org} and @code{#guix} on the Freenode IRC network. We welcome ideas, bug reports, patches, and anything that may be helpful to the project. We particularly welcome help on packaging (@pxref{Packaging Guidelines})."
  38. msgid "This project is a cooperative effort, and we need your help to make it grow! Please get in touch with us on @email{guix-devel@@gnu.org} and @code{#guix} on the Libera Chat IRC network. We welcome ideas, bug reports, patches, and anything that may be helpful to the project. We particularly welcome help on packaging (@pxref{Packaging Guidelines})."
  39. msgstr "这个项目是大家合作的成果,我们需要你的帮助以更好地发展。请通过@email{guix-devel@@gnu.org} 和 Freenode IRC 上的 @code{#guix} 联系我们。我们欢迎您的想法、bug反馈、补丁,以及任何可能对项目有帮助的贡献。我们特别欢迎帮助我们打包(@pxref{Packaging Guidelines})。"
  40. #. type: cindex
  41. #: guix-git/doc/contributing.texi:10
  42. #, no-wrap
  43. msgid "code of conduct, of contributors"
  44. msgstr "行为准则和贡献者"
  45. #. type: cindex
  46. #: guix-git/doc/contributing.texi:11
  47. #, no-wrap
  48. msgid "contributor covenant"
  49. msgstr "贡献者契约"
  50. #. type: Plain text
  51. #: guix-git/doc/contributing.texi:17
  52. msgid "We want to provide a warm, friendly, and harassment-free environment, so that anyone can contribute to the best of their abilities. To this end our project uses a ``Contributor Covenant'', which was adapted from @url{https://contributor-covenant.org/}. You can find a local version in the @file{CODE-OF-CONDUCT} file in the source tree."
  53. msgstr "我们希望提供一个温暖、友好,并且没有骚扰的的环境,这样每个人都能尽最大努力贡献。为了这个目的,我们的项目遵循“贡献者契约”,这个契约是根据 @url{https://contributor-covenant.org/} 制定的。你可以在源代码目录里的 @file{CODE-OF-CONDUCT} 文件里找到一份本地版。"
  54. #. type: Plain text
  55. #: guix-git/doc/contributing.texi:21
  56. msgid "Contributors are not required to use their legal name in patches and on-line communication; they can use any name or pseudonym of their choice."
  57. msgstr "贡献者在提交补丁和网上交流时不需要使用法律认可的名字。他们可以使用任何名字或者假名。"
  58. #. type: section
  59. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:35
  60. #: guix-git/doc/contributing.texi:36
  61. #, no-wrap
  62. msgid "Building from Git"
  63. msgstr "从Git构建"
  64. #. type: menuentry
  65. #: guix-git/doc/contributing.texi:33
  66. msgid "The latest and greatest."
  67. msgstr "最新的并且最好的。"
  68. #. type: section
  69. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:161
  70. #: guix-git/doc/contributing.texi:162
  71. #, no-wrap
  72. msgid "Running Guix Before It Is Installed"
  73. msgstr "在安装之前运行Guix"
  74. #. type: menuentry
  75. #: guix-git/doc/contributing.texi:33
  76. msgid "Hacker tricks."
  77. msgstr "黑客技巧。"
  78. #. type: section
  79. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:235
  80. #: guix-git/doc/contributing.texi:236
  81. #, no-wrap
  82. msgid "The Perfect Setup"
  83. msgstr "完美的配置"
  84. #. type: menuentry
  85. #: guix-git/doc/contributing.texi:33
  86. msgid "The right tools."
  87. msgstr "正确的工具。"
  88. #. type: section
  89. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:326
  90. #: guix-git/doc/contributing.texi:327
  91. #, no-wrap
  92. msgid "Packaging Guidelines"
  93. msgstr "打包指导"
  94. #. type: menuentry
  95. #: guix-git/doc/contributing.texi:33
  96. msgid "Growing the distribution."
  97. msgstr "帮助发行版成长。"
  98. #. type: section
  99. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:890
  100. #: guix-git/doc/contributing.texi:891
  101. #, no-wrap
  102. msgid "Coding Style"
  103. msgstr "代码风格"
  104. #. type: menuentry
  105. #: guix-git/doc/contributing.texi:33
  106. msgid "Hygiene of the contributor."
  107. msgstr "出资者的卫生状况。"
  108. #. type: section
  109. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:989
  110. #: guix-git/doc/contributing.texi:990
  111. #, no-wrap
  112. msgid "Submitting Patches"
  113. msgstr "提交补丁"
  114. #. type: menuentry
  115. #: guix-git/doc/contributing.texi:33
  116. msgid "Share your work."
  117. msgstr "分享你的工作。"
  118. #. type: section
  119. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1267
  120. #: guix-git/doc/contributing.texi:1268
  121. #, no-wrap
  122. msgid "Tracking Bugs and Patches"
  123. msgstr ""
  124. #. type: menuentry
  125. #: guix-git/doc/contributing.texi:33
  126. msgid "Keeping it all organized."
  127. msgstr ""
  128. #. type: section
  129. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1382
  130. #: guix-git/doc/contributing.texi:1383
  131. #, no-wrap
  132. msgid "Commit Access"
  133. msgstr "提交权利"
  134. #. type: menuentry
  135. #: guix-git/doc/contributing.texi:33
  136. msgid "Pushing to the official repository."
  137. msgstr "推送到管方的仓库。"
  138. #. type: section
  139. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1608
  140. #: guix-git/doc/contributing.texi:1609
  141. #, no-wrap
  142. msgid "Updating the Guix Package"
  143. msgstr "更新Guix软件包"
  144. #. type: menuentry
  145. #: guix-git/doc/contributing.texi:33
  146. msgid "Updating the Guix package definition."
  147. msgstr "更新Guix的软件包定义。"
  148. #. type: section
  149. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1649
  150. #: guix-git/doc/contributing.texi:1650
  151. #, fuzzy, no-wrap
  152. #| msgid "Testing Guix."
  153. msgid "Translating Guix"
  154. msgstr "测试Guix。"
  155. #. type: menuentry
  156. #: guix-git/doc/contributing.texi:33
  157. msgid "Make Guix speak your native language."
  158. msgstr ""
  159. #. type: Plain text
  160. #: guix-git/doc/contributing.texi:40
  161. msgid "If you want to hack Guix itself, it is recommended to use the latest version from the Git repository:"
  162. msgstr "如果你想折腾Guix本身,建议使用Git仓库里最新的版本:"
  163. #. type: example
  164. #: guix-git/doc/contributing.texi:43
  165. #, no-wrap
  166. msgid "git clone https://git.savannah.gnu.org/git/guix.git\n"
  167. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  168. #. type: cindex
  169. #: guix-git/doc/contributing.texi:45
  170. #, no-wrap
  171. msgid "authentication, of a Guix checkout"
  172. msgstr ""
  173. #. type: Plain text
  174. #: guix-git/doc/contributing.texi:50
  175. msgid "How do you ensure that you obtained a genuine copy of the repository? To do that, run @command{guix git authenticate}, passing it the commit and OpenPGP fingerprint of the @dfn{channel introduction} (@pxref{Invoking guix git authenticate}):"
  176. msgstr ""
  177. #. type: example
  178. #: guix-git/doc/contributing.texi:57
  179. #, no-wrap
  180. msgid ""
  181. "git fetch origin keyring:keyring\n"
  182. "guix git authenticate 9edb3f66fd807b096b48283debdcddccfea34bad \\\n"
  183. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\"\n"
  184. msgstr ""
  185. #. type: Plain text
  186. #: guix-git/doc/contributing.texi:62
  187. msgid "This command completes with exit code zero on success; it prints an error message and exits with a non-zero code otherwise."
  188. msgstr ""
  189. #. type: Plain text
  190. #: guix-git/doc/contributing.texi:69
  191. msgid "As you can see, there is a chicken-and-egg problem: you first need to have Guix installed. Typically you would install Guix System (@pxref{System Installation}) or Guix on top of another distro (@pxref{Binary Installation}); in either case, you would verify the OpenPGP signature on the installation medium. This ``bootstraps'' the trust chain."
  192. msgstr ""
  193. #. type: Plain text
  194. #: guix-git/doc/contributing.texi:74
  195. msgid "The easiest way to set up a development environment for Guix is, of course, by using Guix! The following command starts a new shell where all the dependencies and appropriate environment variables are set up to hack on Guix:"
  196. msgstr "设置Guix开发环境的最简单的方式当然是使用Guix!下面这些命令启动一个shell,所有的依赖和环境变量都为折腾Guix设置好了:"
  197. #. type: example
  198. #: guix-git/doc/contributing.texi:77
  199. #, no-wrap
  200. msgid "guix environment guix --pure\n"
  201. msgstr "guix environment guix --pure\n"
  202. #. type: Plain text
  203. #: guix-git/doc/contributing.texi:80
  204. #, fuzzy
  205. msgid "@xref{Invoking guix environment}, for more information on that command."
  206. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  207. #. type: Plain text
  208. #: guix-git/doc/contributing.texi:84
  209. #, fuzzy
  210. msgid "If you are unable to use Guix when building Guix from a checkout, the following are the required packages in addition to those mentioned in the installation instructions (@pxref{Requirements})."
  211. msgstr "当从Git检出构建Guix时,除安装指导(@pxref{Requirements})里提及的软件包之外还需要这些包。"
  212. #. type: item
  213. #: guix-git/doc/contributing.texi:86
  214. #, no-wrap
  215. msgid "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  216. msgstr "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  217. #. type: item
  218. #: guix-git/doc/contributing.texi:87
  219. #, no-wrap
  220. msgid "@url{https://gnu.org/software/automake/, GNU Automake};"
  221. msgstr "@url{https://gnu.org/software/automake/, GNU Automake};"
  222. #. type: item
  223. #: guix-git/doc/contributing.texi:88
  224. #, no-wrap
  225. msgid "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  226. msgstr "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  227. #. type: item
  228. #: guix-git/doc/contributing.texi:89
  229. #, no-wrap
  230. msgid "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  231. msgstr "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  232. #. type: item
  233. #: guix-git/doc/contributing.texi:90
  234. #, no-wrap
  235. msgid "@url{https://www.graphviz.org/, Graphviz};"
  236. msgstr "@url{https://www.graphviz.org/, Graphviz};"
  237. #. type: item
  238. #: guix-git/doc/contributing.texi:91
  239. #, no-wrap
  240. msgid "@url{https://www.gnu.org/software/help2man/, GNU Help2man (optional)}."
  241. msgstr "@url{https://www.gnu.org/software/help2man/, GNU Help2man(可选)}。"
  242. #. type: Plain text
  243. #: guix-git/doc/contributing.texi:96
  244. msgid "On Guix, extra dependencies can be added by instead running @command{guix environment} with @option{--ad-hoc}:"
  245. msgstr ""
  246. #. type: example
  247. #: guix-git/doc/contributing.texi:99
  248. #, no-wrap
  249. msgid "guix environment guix --pure --ad-hoc help2man git strace\n"
  250. msgstr "guix environment guix --pure --ad-hoc help2man git strace\n"
  251. #. type: Plain text
  252. #: guix-git/doc/contributing.texi:103
  253. msgid "Run @command{./bootstrap} to generate the build system infrastructure using Autoconf and Automake. If you get an error like this one:"
  254. msgstr "运行 @command{./bootstrap} 以使用Autoconf和Automake生成构建系统的基础框架。如果你的得到这样的错误:"
  255. #. type: example
  256. #: guix-git/doc/contributing.texi:106
  257. #, no-wrap
  258. msgid "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  259. msgstr "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  260. #. type: Plain text
  261. #: guix-git/doc/contributing.texi:115
  262. msgid "it probably means that Autoconf couldn’t find @file{pkg.m4}, which is provided by pkg-config. Make sure that @file{pkg.m4} is available. The same holds for the @file{guile.m4} set of macros provided by Guile. For instance, if you installed Automake in @file{/usr/local}, it wouldn’t look for @file{.m4} files in @file{/usr/share}. In that case, you have to invoke the following command:"
  263. msgstr "它可能意味着Autoconf无法找到由pkg-config提供的@file{pkg.m4}。请确保@file{pkg.m4}可用。由Guile提供的@file{guile.m4}宏也类似。假如你的Automake安装在@file{/usr/local},那么它不会从@file{/usr/share}里寻找@file{.m4}文件。这种情况下,你必须执行下面这个命令:"
  264. #. type: example
  265. #: guix-git/doc/contributing.texi:118
  266. #, no-wrap
  267. msgid "export ACLOCAL_PATH=/usr/share/aclocal\n"
  268. msgstr "export ACLOCAL_PATH=/usr/share/aclocal\n"
  269. #. type: Plain text
  270. #: guix-git/doc/contributing.texi:122
  271. msgid "@xref{Macro Search Path,,, automake, The GNU Automake Manual}, for more information."
  272. msgstr "参考@xref{Macro Search Path,,, automake, The GNU Automake Manual}."
  273. #. type: Plain text
  274. #: guix-git/doc/contributing.texi:129
  275. msgid "Then, run @command{./configure} as usual. Make sure to pass @code{--localstatedir=@var{directory}} where @var{directory} is the @code{localstatedir} value used by your current installation (@pxref{The Store}, for information about this), usually @file{/var}. Note that you will probably not run @command{make install} at the end (you don't have to) but it's still important to pass the right @code{localstatedir}."
  276. msgstr ""
  277. #. type: Plain text
  278. #: guix-git/doc/contributing.texi:134
  279. #, fuzzy
  280. msgid "Finally, you have to invoke @code{make && make check} to build Guix and run the tests (@pxref{Running the Test Suite}). If anything fails, take a look at installation instructions (@pxref{Installation}) or send a message to the @email{guix-devel@@gnu.org, mailing list}."
  281. msgstr "最后,用@code{make check}执行测试(@pxref{Running the Test Suite})。如果遇到任何错误,请参考“安装指导”(@pxref{Installation})或者给@email{guix-devel@@gnu.org, 邮件列表}发邮件。"
  282. #. type: Plain text
  283. #: guix-git/doc/contributing.texi:137
  284. msgid "From there on, you can authenticate all the commits included in your checkout by running:"
  285. msgstr ""
  286. #. type: example
  287. #: guix-git/doc/contributing.texi:140
  288. #, fuzzy, no-wrap
  289. msgid "make authenticate\n"
  290. msgstr "make check\n"
  291. #. type: Plain text
  292. #: guix-git/doc/contributing.texi:143
  293. msgid "The first run takes a couple of minutes, but subsequent runs are faster."
  294. msgstr ""
  295. #. type: Plain text
  296. #: guix-git/doc/contributing.texi:149
  297. msgid "Or, when your configuration for your local Git repository doesn't match the default one, you can provide the reference for the @code{keyring} branch through the variable @code{GUIX_GIT_KEYRING}. The following example assumes that you have a Git remote called @samp{myremote} pointing to the official repository:"
  298. msgstr ""
  299. #. type: example
  300. #: guix-git/doc/contributing.texi:152
  301. #, no-wrap
  302. msgid "make authenticate GUIX_GIT_KEYRING=myremote/keyring\n"
  303. msgstr ""
  304. #. type: quotation
  305. #: guix-git/doc/contributing.texi:154 guix-git/doc/contributing.texi:1460
  306. #: guix-git/doc/guix.texi:580 guix-git/doc/guix.texi:629
  307. #: guix-git/doc/guix.texi:819 guix-git/doc/guix.texi:1798
  308. #: guix-git/doc/guix.texi:2045 guix-git/doc/guix.texi:2229
  309. #: guix-git/doc/guix.texi:2450 guix-git/doc/guix.texi:2652
  310. #: guix-git/doc/guix.texi:3769 guix-git/doc/guix.texi:4510
  311. #: guix-git/doc/guix.texi:4524 guix-git/doc/guix.texi:4606
  312. #: guix-git/doc/guix.texi:4836 guix-git/doc/guix.texi:5686
  313. #: guix-git/doc/guix.texi:5932 guix-git/doc/guix.texi:6053
  314. #: guix-git/doc/guix.texi:6081 guix-git/doc/guix.texi:6134
  315. #: guix-git/doc/guix.texi:8839 guix-git/doc/guix.texi:8909
  316. #: guix-git/doc/guix.texi:10584 guix-git/doc/guix.texi:10624
  317. #: guix-git/doc/guix.texi:10898 guix-git/doc/guix.texi:10910
  318. #: guix-git/doc/guix.texi:13260 guix-git/doc/guix.texi:13890
  319. #: guix-git/doc/guix.texi:14703 guix-git/doc/guix.texi:15688
  320. #: guix-git/doc/guix.texi:18109 guix-git/doc/guix.texi:18266
  321. #: guix-git/doc/guix.texi:26131 guix-git/doc/guix.texi:29808
  322. #: guix-git/doc/guix.texi:31909 guix-git/doc/guix.texi:33541
  323. #: guix-git/doc/guix.texi:33775 guix-git/doc/guix.texi:33945
  324. #: guix-git/doc/guix.texi:34098 guix-git/doc/guix.texi:34200
  325. #: guix-git/doc/guix.texi:34301 guix-git/doc/guix.texi:34604
  326. #: guix-git/doc/guix.texi:35382 guix-git/doc/guix.texi:35443
  327. #: guix-git/doc/guix.texi:35510 guix-git/doc/guix.texi:35597
  328. #: guix-git/doc/guix.texi:35964
  329. #, no-wrap
  330. msgid "Note"
  331. msgstr "注"
  332. #. type: quotation
  333. #: guix-git/doc/contributing.texi:158
  334. 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."
  335. msgstr ""
  336. #. type: Plain text
  337. #: guix-git/doc/contributing.texi:168
  338. 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."
  339. msgstr "为了保持一个合适的工作环境,你会发现在你的本地代码树里测试修改而不用安装它们会很有用。TODO: So that you can distinguish between your ``end-user'' hat and your ``motley'' costume."
  340. #. type: Plain text
  341. #: guix-git/doc/contributing.texi:179
  342. #, fuzzy
  343. 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):"
  344. 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模块。}:"
  345. #. type: example
  346. #: guix-git/doc/contributing.texi:182
  347. #, fuzzy, no-wrap
  348. msgid "$ ./pre-inst-env guix build hello\n"
  349. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  350. #. type: Plain text
  351. #: guix-git/doc/contributing.texi:186
  352. msgid "Similarly, an example for a Guile session using the Guix modules:"
  353. msgstr "同样,一个使用 Guix 模块的 Guile 会话的例子:"
  354. #. type: example
  355. #: guix-git/doc/contributing.texi:189
  356. #, no-wrap
  357. msgid ""
  358. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  359. "\n"
  360. msgstr ""
  361. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  362. "\n"
  363. #. type: example
  364. #: guix-git/doc/contributing.texi:191
  365. #, no-wrap
  366. msgid ";;; (\"x86_64-linux\")\n"
  367. msgstr ";;; (\"x86_64-linux\")\n"
  368. #. type: cindex
  369. #: guix-git/doc/contributing.texi:194
  370. #, no-wrap
  371. msgid "REPL"
  372. msgstr "REPL"
  373. #. type: cindex
  374. #: guix-git/doc/contributing.texi:195
  375. #, no-wrap
  376. msgid "read-eval-print loop"
  377. msgstr "read-eval-print loop"
  378. #. type: Plain text
  379. #: guix-git/doc/contributing.texi:198
  380. msgid "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  381. msgstr "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  382. #. type: example
  383. #: guix-git/doc/contributing.texi:213
  384. #, no-wrap
  385. msgid ""
  386. "$ ./pre-inst-env guile\n"
  387. "scheme@@(guile-user)> ,use(guix)\n"
  388. "scheme@@(guile-user)> ,use(gnu)\n"
  389. "scheme@@(guile-user)> (define snakes\n"
  390. " (fold-packages\n"
  391. " (lambda (package lst)\n"
  392. " (if (string-prefix? \"python\"\n"
  393. " (package-name package))\n"
  394. " (cons package lst)\n"
  395. " lst))\n"
  396. " '()))\n"
  397. "scheme@@(guile-user)> (length snakes)\n"
  398. "$1 = 361\n"
  399. msgstr ""
  400. "$ ./pre-inst-env guile\n"
  401. "scheme@@(guile-user)> ,use(guix)\n"
  402. "scheme@@(guile-user)> ,use(gnu)\n"
  403. "scheme@@(guile-user)> (define snakes\n"
  404. " (fold-packages\n"
  405. " (lambda (package lst)\n"
  406. " (if (string-prefix? \"python\"\n"
  407. " (package-name package))\n"
  408. " (cons package lst)\n"
  409. " lst))\n"
  410. " '()))\n"
  411. "scheme@@(guile-user)> (length snakes)\n"
  412. "$1 = 361\n"
  413. #. type: Plain text
  414. #: guix-git/doc/contributing.texi:221
  415. #, fuzzy
  416. 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.}:"
  417. 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模块。}:"
  418. #. type: example
  419. #: guix-git/doc/contributing.texi:224
  420. #, fuzzy, no-wrap
  421. msgid "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  422. msgstr ""
  423. "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  424. "$ ./pre-inst-env guix build hello\n"
  425. #. type: Plain text
  426. #: guix-git/doc/contributing.texi:228
  427. 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}."
  428. msgstr "@command{pre-inst-env}脚本设置为此好了所有必要的的环境变量,包括@env{PATH}和@env{GUILE_LOAD_PATH}。"
  429. #. type: Plain text
  430. #: guix-git/doc/contributing.texi:233
  431. 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."
  432. msgstr "@command{./pre-inst-env guix pull} @emph{不} 会更新本地源代码树,它只更新符号链接@file{~/.config/guix/current} (@pxref{Invoking guix pull})。如果你想更新本地源代码树,请运行@command{git pull}。"
  433. #. type: Plain text
  434. #: guix-git/doc/contributing.texi:243
  435. 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:"
  436. 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}。为此,运行:"
  437. #. type: example
  438. #: guix-git/doc/contributing.texi:246
  439. #, fuzzy, no-wrap
  440. #| msgid "guix package -i emacs guile emacs-geiser\n"
  441. msgid "guix package -i emacs guile emacs-geiser emacs-geiser-guile\n"
  442. msgstr "guix package -i emacs guile emacs-geiser\n"
  443. #. type: Plain text
  444. #: guix-git/doc/contributing.texi:255
  445. 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:"
  446. msgstr "Geiser 允许在 Emacs 里进行交互式的、增长式的开发:buffer 里的代码补全和执行,获取一行的文档 (docstrings),上下文敏感的补全,@kbd{M-.} 跳转到对象定义,测试代码的 REPL,及更多(@pxref{Introduction,,, geiser, Geiser User Manual})。为了方便的 Guix 开发,请确保修改 Guile 的加载路径 (load path) 以使其能从你的项目里找到源代码文件:"
  447. #. type: lisp
  448. #: guix-git/doc/contributing.texi:260
  449. #, no-wrap
  450. msgid ""
  451. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  452. "(with-eval-after-load 'geiser-guile\n"
  453. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  454. msgstr ""
  455. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  456. "(with-eval-after-load 'geiser-guile\n"
  457. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  458. #. type: Plain text
  459. #: guix-git/doc/contributing.texi:268
  460. 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."
  461. msgstr "真正编辑代码时别忘了 Emacs 自带了方便的 Scheme 模式。而且,一定不要错过 @url{https://www.emacswiki.org/emacs/ParEdit, Paredit}。它提供了直接操作语法树的的功能,例如,用 S- 表达式替换父节点,为 S- 表达式添加、删除前后的括号,删除后面的 S- 表达式,等等。"
  462. #. type: cindex
  463. #: guix-git/doc/contributing.texi:269
  464. #, no-wrap
  465. msgid "code snippets"
  466. msgstr "代码片段"
  467. #. type: cindex
  468. #: guix-git/doc/contributing.texi:270
  469. #, no-wrap
  470. msgid "templates"
  471. msgstr "模板"
  472. #. type: cindex
  473. #: guix-git/doc/contributing.texi:271
  474. #, no-wrap
  475. msgid "reducing boilerplate"
  476. msgstr "减少样板"
  477. #. type: Plain text
  478. #: guix-git/doc/contributing.texi:278
  479. #, fuzzy
  480. 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."
  481. msgstr "在@file{etc/snippets}文件夹里,我们还为普通的git commit信息和软件包定义提供模板。这些模板可以通过@url{http://joaotavora.github.io/yasnippet/, YASnippet}使用,它可以把短的触发字符串扩展成交互式的文字片段。你可能希望将这个文件夹添加到Emacs的@var{yas-snippet-dirs}变量里。"
  482. #. type: lisp
  483. #: guix-git/doc/contributing.texi:283
  484. #, no-wrap
  485. msgid ""
  486. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  487. "(with-eval-after-load 'yasnippet\n"
  488. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  489. msgstr ""
  490. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  491. "(with-eval-after-load 'yasnippet\n"
  492. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  493. #. type: Plain text
  494. #: guix-git/doc/contributing.texi:291
  495. 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."
  496. msgstr "commit信息片段显示staged文件需要依赖@url{https://magit.vc/, Magit}。编辑commit信息时,输入@code{add},然后按@kbd{TAB}就可以插入一段用于新增软件包的模板;输入@code{update},然后按@kbd{TAB}可以插入一段更新软件包的模板;输入@code{https}然后按@kbd{TAB}可以插入一段修改主页URI为HTTPS的模板。"
  497. #. type: Plain text
  498. #: guix-git/doc/contributing.texi:297
  499. 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."
  500. msgstr "@code{scheme-mode}最重要的模板可以通过输入@code{package...},然后按@kbd{TAB}触发。这个片段还插入了触发字符串@code{origin...},以进一步展开。@code{origin}片段更进一步的可能插入其它以@code{...}结尾的触发字符串,它们可以被继续展开。"
  501. #. type: cindex
  502. #: guix-git/doc/contributing.texi:298
  503. #, no-wrap
  504. msgid "insert or update copyright"
  505. msgstr ""
  506. #. type: code{#1}
  507. #: guix-git/doc/contributing.texi:299
  508. #, no-wrap
  509. msgid "M-x guix-copyright"
  510. msgstr ""
  511. #. type: code{#1}
  512. #: guix-git/doc/contributing.texi:300
  513. #, no-wrap
  514. msgid "M-x copyright-update"
  515. msgstr ""
  516. #. type: Plain text
  517. #: guix-git/doc/contributing.texi:304
  518. 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."
  519. msgstr ""
  520. #. type: lisp
  521. #: guix-git/doc/contributing.texi:310
  522. #, no-wrap
  523. msgid ""
  524. "(setq user-full-name \"Alice Doe\")\n"
  525. "(setq user-mail-address \"alice@@mail.org\")\n"
  526. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  527. "(load-file \"~/src/guix/etc/copyright.el\")\n"
  528. msgstr ""
  529. #. type: Plain text
  530. #: guix-git/doc/contributing.texi:313
  531. msgid "To insert a copyright at the current line invoke @code{M-x guix-copyright}."
  532. msgstr ""
  533. #. type: Plain text
  534. #: guix-git/doc/contributing.texi:315
  535. msgid "To update a copyright you need to specify a @code{copyright-names-regexp}."
  536. msgstr ""
  537. #. type: lisp
  538. #: guix-git/doc/contributing.texi:319
  539. #, no-wrap
  540. msgid ""
  541. "(setq copyright-names-regexp\n"
  542. " (format \"%s <%s>\" user-full-name user-mail-address))\n"
  543. msgstr ""
  544. #. type: Plain text
  545. #: guix-git/doc/contributing.texi:325
  546. 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."
  547. msgstr ""
  548. #. type: cindex
  549. #: guix-git/doc/contributing.texi:329
  550. #, no-wrap
  551. msgid "packages, creating"
  552. msgstr "软件包, 创建"
  553. #. type: Plain text
  554. #: guix-git/doc/contributing.texi:333
  555. 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."
  556. msgstr "这个GNU发行版正在开发的早期阶段,可能缺少一些你喜欢的软件。这个章节介绍你可以怎样帮助这个发行版成长。"
  557. #. type: Plain text
  558. #: guix-git/doc/contributing.texi:341
  559. 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."
  560. msgstr "自由软件通常以@dfn{源代码包}的形式分发,通常是包含完整代码的@file{tar.gz}包。添加软件包到这个发行版意味着两件事:添加描述如何构建包的@dfn{配方}和一系列依赖软件,以及添加配方之外的@dfn{软件包元数据},如一段文字描述和证书信息。"
  561. #. type: Plain text
  562. #: guix-git/doc/contributing.texi:350
  563. 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}."
  564. msgstr "在Guix里所有这些信息都包含在@dfn{软件包定义}里。软件包定义提供了软件包的高层视角。它们使用Scheme编程语言编写,事实上,对每个软件包我们都定义一个绑定到软件包定义的的变量,并且从模块(@pxref{Package Modules})中导出那个变量。然而,深入的Scheme知识@emph{不}是创建软件包的前提条件。若要了解软件包的更多信息,@pxref{Defining Packages}。"
  565. #. type: Plain text
  566. #: guix-git/doc/contributing.texi:356
  567. 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}):"
  568. msgstr "一旦软件包定义准备好了,并且包存在Guix代码树的一个文件里,你可以用@command{guix build} (@pxref{Invoking guix build})命令测试它。假设这个新软件包的名字叫做@code{gnew},你可以在Guix构建树里运行这个命令(@pxref{Running Guix Before It Is Installed}):"
  569. #. type: example
  570. #: guix-git/doc/contributing.texi:359
  571. #, no-wrap
  572. msgid "./pre-inst-env guix build gnew --keep-failed\n"
  573. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  574. #. type: Plain text
  575. #: guix-git/doc/contributing.texi:365
  576. 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."
  577. msgstr "使用@code{--keep-failed}参数会保留失败的构建树,这可以使调试构建错误更容易。@code{--log-file}也是一个调试时很有用的参数,它可以用来访问构建日志。"
  578. #. type: Plain text
  579. #: guix-git/doc/contributing.texi:370
  580. 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:"
  581. msgstr "如果@command{guix}命令找不到这个软件包,那可能是因为源文件包含语法错误,或者缺少导出软件包的@code{define-public}语句。为了查找错误,你可以用Guile导入这个模块以了解这个错误的详情:"
  582. #. type: example
  583. #: guix-git/doc/contributing.texi:373
  584. #, no-wrap
  585. msgid "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  586. msgstr "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  587. #. type: Plain text
  588. #: guix-git/doc/contributing.texi:380
  589. #, fuzzy
  590. 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}."
  591. msgstr "一旦你的软件包可以正确构建,请给我们发送补丁(@pxref{Submitting Patches})。当然,如果你需要帮助,我们也会很乐意帮助你。一旦补丁被提交到 Guix 仓库里,这个新的软件包会被自动地在支持的平台上构建 @url{@value{SUBSTITUTE-URL}, our continuous integration system}。"
  592. #. type: cindex
  593. #: guix-git/doc/contributing.texi:381
  594. #, no-wrap
  595. msgid "substituter"
  596. msgstr "substitutes"
  597. #. type: Plain text
  598. #: guix-git/doc/contributing.texi:388
  599. #, fuzzy
  600. #| 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."
  601. 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."
  602. msgstr "用户可以通过运行@command{guix pull}命令获取最新的软件包定义(@pxref{Invoking guix pull})。当@code{@value{SUBSTITUTE-SERVER}}构建好这些软件包之后,安装这些软件包时会自动从服务器(@pxref{Substitutes})上下载构建好的二进制包。唯一需要人工干预的地方是评审和应用代码补丁。"
  603. #. type: subsection
  604. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:404
  605. #: guix-git/doc/contributing.texi:405
  606. #, no-wrap
  607. msgid "Software Freedom"
  608. msgstr "软件自由"
  609. #. type: menuentry
  610. #: guix-git/doc/contributing.texi:402
  611. msgid "What may go into the distribution."
  612. msgstr "什么可以进入这个发行版。"
  613. #. type: subsection
  614. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:432
  615. #: guix-git/doc/contributing.texi:433
  616. #, no-wrap
  617. msgid "Package Naming"
  618. msgstr "软件包命名"
  619. #. type: menuentry
  620. #: guix-git/doc/contributing.texi:402
  621. msgid "What's in a name?"
  622. msgstr "名字里包含什么?"
  623. #. type: subsection
  624. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:465
  625. #: guix-git/doc/contributing.texi:466
  626. #, no-wrap
  627. msgid "Version Numbers"
  628. msgstr "版本号"
  629. #. type: menuentry
  630. #: guix-git/doc/contributing.texi:402
  631. msgid "When the name is not enough."
  632. msgstr "当名字不够时。"
  633. #. type: subsection
  634. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:572
  635. #: guix-git/doc/contributing.texi:573
  636. #, no-wrap
  637. msgid "Synopses and Descriptions"
  638. msgstr "简介和描述"
  639. #. type: menuentry
  640. #: guix-git/doc/contributing.texi:402
  641. msgid "Helping users find the right package."
  642. msgstr "帮助用户寻找合适的软件包。"
  643. #. type: subsection
  644. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:651
  645. #: guix-git/doc/contributing.texi:652
  646. #, no-wrap
  647. msgid "Snippets versus Phases"
  648. msgstr ""
  649. #. type: menuentry
  650. #: guix-git/doc/contributing.texi:402
  651. msgid "Whether to use a snippet, or a build phase."
  652. msgstr ""
  653. #. type: subsection
  654. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:666
  655. #: guix-git/doc/contributing.texi:667 guix-git/doc/guix.texi:1980
  656. #, no-wrap
  657. msgid "Emacs Packages"
  658. msgstr ""
  659. #. type: menuentry
  660. #: guix-git/doc/contributing.texi:402
  661. msgid "Your Elisp fix."
  662. msgstr ""
  663. #. type: subsection
  664. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:706
  665. #: guix-git/doc/contributing.texi:707
  666. #, no-wrap
  667. msgid "Python Modules"
  668. msgstr "Python模块"
  669. #. type: menuentry
  670. #: guix-git/doc/contributing.texi:402
  671. msgid "A touch of British comedy."
  672. msgstr "接触英式的喜剧。"
  673. #. type: subsection
  674. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:782
  675. #: guix-git/doc/contributing.texi:783
  676. #, no-wrap
  677. msgid "Perl Modules"
  678. msgstr "Perl模块"
  679. #. type: menuentry
  680. #: guix-git/doc/contributing.texi:402
  681. msgid "Little pearls."
  682. msgstr "小珍珠。"
  683. #. type: subsection
  684. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:798
  685. #: guix-git/doc/contributing.texi:799
  686. #, no-wrap
  687. msgid "Java Packages"
  688. msgstr "Java包"
  689. #. type: menuentry
  690. #: guix-git/doc/contributing.texi:402
  691. msgid "Coffee break."
  692. msgstr "喝咖啡休息。"
  693. #. type: subsection
  694. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:818
  695. #: guix-git/doc/contributing.texi:819
  696. #, no-wrap
  697. msgid "Rust Crates"
  698. msgstr ""
  699. #. type: menuentry
  700. #: guix-git/doc/contributing.texi:402
  701. msgid "Beware of oxidation."
  702. msgstr "谨防氧化。"
  703. #. type: subsection
  704. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:852
  705. #: guix-git/doc/contributing.texi:853
  706. #, no-wrap
  707. msgid "Fonts"
  708. msgstr "字体"
  709. #. type: menuentry
  710. #: guix-git/doc/contributing.texi:402
  711. msgid "Fond of fonts."
  712. msgstr "字体的乐趣。"
  713. #. type: cindex
  714. #: guix-git/doc/contributing.texi:408
  715. #, no-wrap
  716. msgid "free software"
  717. msgstr "自由软件"
  718. #. type: Plain text
  719. #: guix-git/doc/contributing.texi:416
  720. 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."
  721. msgstr "开发 GNU 操作系统是为了用户拥有计算的自由。GNU是@dfn{自由软件},这意味着它有@url{https://www.gnu.org/philosophy/free-sw.html,四项重要的自由}:运行程序的自由,以源代码形式学习和修改程序的自由,原样重新分发副本的自由,和分发修改后的版本的自由。GNU 发行版里包含的软件包只提供遵守这四项自由的软件。"
  722. #. type: Plain text
  723. #: guix-git/doc/contributing.texi:422
  724. 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."
  725. msgstr "此外,GNU 发行版遵循@url{https://www.gnu.org/distros/free-system-distribution-guidelines.html,自由软件发行版准则}。这些准则拒绝非自由的固件和对非自由软件的推荐,并讨论解决商标和专利的方法。"
  726. #. type: Plain text
  727. #: guix-git/doc/contributing.texi:430
  728. 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."
  729. msgstr "某些上游的软件包源代码包含一小部分违反上述准则的可选的子集,比如这个子集本身就是非自由代码。这时,这些讨厌的代码需要用合适的补丁或者软件包定义(@pxref{Defining Packages})里的@code{origin}里的代码片段移除。这样,@code{guix build --source}就可以返回自由的源代码而不是未经修改的上游源代码。"
  730. #. type: cindex
  731. #: guix-git/doc/contributing.texi:435
  732. #, no-wrap
  733. msgid "package name"
  734. msgstr "软件包名字"
  735. #. type: Plain text
  736. #: guix-git/doc/contributing.texi:443
  737. #, fuzzy
  738. 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}."
  739. msgstr "一个软件包事实上有两个名字:第一个是@emph{Scheme变量}的名字,即用@code{define-public}定义的名字。通过这个名字,软件包可以被Scheme代码找到,如用作其它软件包的输入。第二个名字是软件包定义里的@code{name}属性的字符串值。这个名字用于软件包管理命令,如:@command{guix package},@command{guix build}"
  740. #. type: Plain text
  741. #: guix-git/doc/contributing.texi:448
  742. 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}."
  743. msgstr "两个名字通常是相同的,常是上游项目名字转成小写字母并把下划线替换成连字符的结果。比如,GNUnet转成@code{gnunet},SDL_net转成@code{sdl-net}。"
  744. #. type: Plain text
  745. #: guix-git/doc/contributing.texi:456
  746. 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."
  747. msgstr ""
  748. #. type: Plain text
  749. #: guix-git/doc/contributing.texi:461
  750. 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."
  751. msgstr "我们不给库软件包添加@code{lib}前缀,除非它是项目官方名字的一部分。但是@pxref{Python Modules}和@ref{Perl Modules}有关于Python和Perl语言的特殊规则。"
  752. #. type: Plain text
  753. #: guix-git/doc/contributing.texi:463
  754. msgid "Font package names are handled differently, @pxref{Fonts}."
  755. msgstr "字体软件包的名字处理起来不同,@pxref{Fonts}."
  756. #. type: cindex
  757. #: guix-git/doc/contributing.texi:468
  758. #, no-wrap
  759. msgid "package version"
  760. msgstr "软件包版本"
  761. #. type: Plain text
  762. #: guix-git/doc/contributing.texi:477
  763. 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."
  764. msgstr "我们通常只为每个自由软件的最新版本打包。但是有时候,比如对于版本不兼容的库,需要有同一个软件包的两个或更多版本。它们需要使用不同的Scheme变量名。我们为最新的版本使用@ref{Package Naming}里规定的名字,旧的版本使用加上后缀的名字,后缀是@code{-}和可以区分开版本号的版本号的最小前缀。"
  765. #. type: Plain text
  766. #: guix-git/doc/contributing.texi:480
  767. msgid "The name inside the package definition is the same for all versions of a package and does not contain any version number."
  768. msgstr "软件包定义里的名字对于同一个软件包的所有版本都是相同的,并且不含有版本号。"
  769. #. type: Plain text
  770. #: guix-git/doc/contributing.texi:482
  771. msgid "For instance, the versions 2.24.20 and 3.9.12 of GTK+ may be packaged as follows:"
  772. msgstr "例如,GTK+的2.24.20和3.9.12两个版本可以这样打包:"
  773. #. type: lisp
  774. #: guix-git/doc/contributing.texi:494
  775. #, no-wrap
  776. msgid ""
  777. "(define-public gtk+\n"
  778. " (package\n"
  779. " (name \"gtk+\")\n"
  780. " (version \"3.9.12\")\n"
  781. " ...))\n"
  782. "(define-public gtk+-2\n"
  783. " (package\n"
  784. " (name \"gtk+\")\n"
  785. " (version \"2.24.20\")\n"
  786. " ...))\n"
  787. msgstr ""
  788. "(define-public gtk+\n"
  789. " (package\n"
  790. " (name \"gtk+\")\n"
  791. " (version \"3.9.12\")\n"
  792. " ...))\n"
  793. "(define-public gtk+-2\n"
  794. " (package\n"
  795. " (name \"gtk+\")\n"
  796. " (version \"2.24.20\")\n"
  797. " ...))\n"
  798. #. type: Plain text
  799. #: guix-git/doc/contributing.texi:496
  800. msgid "If we also wanted GTK+ 3.8.2, this would be packaged as"
  801. msgstr "如果我们还需要GTK+ 3.8.2,就这样打包"
  802. #. type: lisp
  803. #: guix-git/doc/contributing.texi:502
  804. #, no-wrap
  805. msgid ""
  806. "(define-public gtk+-3.8\n"
  807. " (package\n"
  808. " (name \"gtk+\")\n"
  809. " (version \"3.8.2\")\n"
  810. " ...))\n"
  811. msgstr ""
  812. "(define-public gtk+-3.8\n"
  813. " (package\n"
  814. " (name \"gtk+\")\n"
  815. " (version \"3.8.2\")\n"
  816. " ...))\n"
  817. #. type: cindex
  818. #: guix-git/doc/contributing.texi:506
  819. #, no-wrap
  820. msgid "version number, for VCS snapshots"
  821. msgstr "用于版本控制快照的版本号"
  822. #. type: Plain text
  823. #: guix-git/doc/contributing.texi:512
  824. 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?"
  825. msgstr "有时候,我们为软件包上游的版本控制系统(VCS)的快照而不是正式发布版打包。这是特殊情况,因为决定哪个是稳定版的权力应该属于上游开发者。然而,有时候这是必须的。那么,我们该如何决定写在@code{version}里的版本号呢?"
  826. #. type: Plain text
  827. #: guix-git/doc/contributing.texi:520
  828. 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:"
  829. msgstr "显然,我们需要让VCS快照的commit ID在版本号中体现出来,但是我们也需要确保版本号单调递增,以便@command{guix package --upgrade}决定哪个版本号更新。由于commit ID,尤其是Git的commit ID,不是单调递增的,我们添加一个每次升级快照时都手动增长的revision数字。最后的版本号字符串看起来是这样:"
  830. #. type: example
  831. #: guix-git/doc/contributing.texi:529
  832. #, no-wrap
  833. msgid ""
  834. "2.0.11-3.cabba9e\n"
  835. " ^ ^ ^\n"
  836. " | | `-- upstream commit ID\n"
  837. " | |\n"
  838. " | `--- Guix package revision\n"
  839. " |\n"
  840. "latest upstream version\n"
  841. msgstr ""
  842. "2.0.11-3.cabba9e\n"
  843. " ^ ^ ^\n"
  844. " | | `-- 上游的commit ID\n"
  845. " | |\n"
  846. " | `--- Guix软件包的revision\n"
  847. " |\n"
  848. "最新的上游版本号\n"
  849. #. type: Plain text
  850. #: guix-git/doc/contributing.texi:539
  851. #, fuzzy
  852. 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:"
  853. msgstr "把@code{版本号}里的commit ID截短,比如只取7个数字,是一个好主意。它避免了美学上的烦恼(假设美学在这里很重要),以及操作系统限制引起的问题(比如Linux内核的127字节)。尽管如此,在@code{origin}里最好使用完整的commit ID,以避免混淆。"
  854. #. type: lisp
  855. #: guix-git/doc/contributing.texi:556
  856. #, no-wrap
  857. msgid ""
  858. "(define my-package\n"
  859. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  860. " (revision \"1\")) ;Guix package revision\n"
  861. " (package\n"
  862. " (version (git-version \"0.9\" revision commit))\n"
  863. " (source (origin\n"
  864. " (method git-fetch)\n"
  865. " (uri (git-reference\n"
  866. " (url \"git://example.org/my-package.git\")\n"
  867. " (commit commit)))\n"
  868. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  869. " (file-name (git-file-name name version))))\n"
  870. " ;; @dots{}\n"
  871. " )))\n"
  872. msgstr ""
  873. "(define my-package\n"
  874. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  875. " (revision \"1\")) ;Guix软件包的revision\n"
  876. " (package\n"
  877. " (version (git-version \"0.9\" revision commit))\n"
  878. " (source (origin\n"
  879. " (method git-fetch)\n"
  880. " (uri (git-reference\n"
  881. " (url \"git://example.org/my-package.git\")\n"
  882. " (commit commit)))\n"
  883. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  884. " (file-name (git-file-name name version))))\n"
  885. " ;; @dots{}\n"
  886. " )))\n"
  887. #. type: deffn
  888. #: guix-git/doc/contributing.texi:558
  889. #, no-wrap
  890. msgid "{Scheme Procedure} git-version @var{VERSION} @var{REVISION} @var{COMMIT}"
  891. msgstr ""
  892. #. type: deffn
  893. #: guix-git/doc/contributing.texi:560
  894. msgid "Return the version string for packages using @code{git-fetch}."
  895. msgstr ""
  896. #. type: lisp
  897. #: guix-git/doc/contributing.texi:564
  898. #, no-wrap
  899. msgid ""
  900. "(git-version \"0.2.3\" \"0\" \"93818c936ee7e2f1ba1b315578bde363a7d43d05\")\n"
  901. "@result{} \"0.2.3-0.93818c9\"\n"
  902. msgstr ""
  903. #. type: deffn
  904. #: guix-git/doc/contributing.texi:567
  905. #, no-wrap
  906. msgid "{Scheme Procedure} hg-version @var{VERSION} @var{REVISION} @var{CHANGESET}"
  907. msgstr ""
  908. #. type: deffn
  909. #: guix-git/doc/contributing.texi:570
  910. msgid "Return the version string for packages using @code{hg-fetch}. It works in the same way as @code{git-version}."
  911. msgstr ""
  912. #. type: cindex
  913. #: guix-git/doc/contributing.texi:575
  914. #, no-wrap
  915. msgid "package description"
  916. msgstr "软件包描述"
  917. #. type: cindex
  918. #: guix-git/doc/contributing.texi:576
  919. #, no-wrap
  920. msgid "package synopsis"
  921. msgstr "软件包简介"
  922. #. type: Plain text
  923. #: guix-git/doc/contributing.texi:583
  924. 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."
  925. msgstr "我们已经看到,GNU@tie{}Guix里的每个软件包都包含一个简介(synopsis)和一个描述(description)(@pxref{Defining Packages})。简介和描述很重要:它们是@command{guix package --search}搜索的信息,并且是帮助用户决定一个软件包是否符合自己需求的重要信息。因此,打包的人应该关注怎样写它们的内容。"
  926. #. type: Plain text
  927. #: guix-git/doc/contributing.texi:591
  928. 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''."
  929. 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''。"
  930. #. type: Plain text
  931. #: guix-git/doc/contributing.texi:601
  932. 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."
  933. msgstr "记住,简介必须能被广大的听众理解。例如,“以SAM格式修改对齐”可能对经验丰富的生物信息科研工作者来说能理解,但是对普通对听众则是无用的甚至是令人误解的。简介最好说明软件包应用的领域。在这个例子中,应该这样描述“修改核苷酸序列的对齐格式”,这会让用户更容易判断这是不是他们想要的。"
  934. #. type: Plain text
  935. #: guix-git/doc/contributing.texi:609
  936. 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."
  937. msgstr "描述应该在5至10句话之间。使用完整的句子,并且避免在未介绍的情况下使用缩写。请避免推广营销性对词汇,如“世界领先”,“行业最强”,“下一代”,并且避免高级的形容词,如“最先进的”--他们对用户寻找软件包是无用的,甚至是可疑的。相反的,尽量务实,提及用例和功能。"
  938. #. type: cindex
  939. #: guix-git/doc/contributing.texi:610
  940. #, no-wrap
  941. msgid "Texinfo markup, in package descriptions"
  942. msgstr "软件包描述里的Texinfo标记"
  943. #. type: Plain text
  944. #: guix-git/doc/contributing.texi:619
  945. 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."
  946. msgstr "描述可以含有Texinfo标记,这对格式化有帮助,如@code{@@code}、@code{@@dfn}、列表、超链接(@pxref{Overview,,, texinfo, GNU Texinfo})。但是,在使用某些字符时应该小心,如@samp{@@}和花括号是基本的Texinfo特殊字符(@pxref{Special Characters,,, texinfo, GNU Texinfo})。@command{guix package --show}之类的用户界面会解决渲染问题。"
  947. #. type: Plain text
  948. #: guix-git/doc/contributing.texi:625
  949. #, fuzzy
  950. 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."
  951. msgstr "简介和描述会由@uref{http://translationproject.org/domain/guix-packages.html, Translation Project}项目的志愿者翻译,从而使尽可能多的用户可以用母语阅读。用户界面用当前区域设置的语言搜索和展示这些信息。"
  952. #. type: Plain text
  953. #: guix-git/doc/contributing.texi:630
  954. 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:"
  955. msgstr "为了让@command{xgettext}可以把它们提取成待翻译的字符串,简介和描述@emph{必须是文字字符串}。这意味着你不能使用@code{string-append}或@code{format}来合成字符串:"
  956. #. type: lisp
  957. #: guix-git/doc/contributing.texi:636
  958. #, no-wrap
  959. msgid ""
  960. "(package\n"
  961. " ;; @dots{}\n"
  962. " (synopsis \"This is translatable\")\n"
  963. " (description (string-append \"This is \" \"*not*\" \" translatable.\")))\n"
  964. msgstr ""
  965. "(package\n"
  966. " ;; @dots{}\n"
  967. " (synopsis \"这是可以翻译的\")\n"
  968. " (description (string-append \"这是\" \"*不可以*\" \"翻译的\")))\n"
  969. #. type: Plain text
  970. #: guix-git/doc/contributing.texi:644
  971. 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}):"
  972. msgstr "翻译是很繁重的工作,所以,作为打包者请更加注意你的简介和介绍,每一个改动都会增加翻译的工作量。为了帮助他们,你可以插入这类可以被他们看到的建议和指示(@pxref{xgettext Invocation,,, gettext, GNU Gettext}):"
  973. #. type: lisp
  974. #: guix-git/doc/contributing.texi:649
  975. #, no-wrap
  976. msgid ""
  977. ";; TRANSLATORS: \"X11 resize-and-rotate\" should not be translated.\n"
  978. "(description \"ARandR is designed to provide a simple visual front end\n"
  979. "for the X11 resize-and-rotate (RandR) extension. @dots{}\")\n"
  980. msgstr ""
  981. ";; TRANSLATORS: \"X11 resize-and-rotate\"不需要翻译。\n"
  982. "(description \"ARandR为X11 resize-and-rotate (RandR)扩展提供简单的图形界面。@dots{}\")\n"
  983. #. type: cindex
  984. #: guix-git/doc/contributing.texi:654
  985. #, no-wrap
  986. msgid "snippets, when to use"
  987. msgstr ""
  988. #. type: Plain text
  989. #: guix-git/doc/contributing.texi:665
  990. 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})."
  991. msgstr ""
  992. #. type: cindex
  993. #: guix-git/doc/contributing.texi:669
  994. #, no-wrap
  995. msgid "emacs, packaging"
  996. msgstr ""
  997. #. type: cindex
  998. #: guix-git/doc/contributing.texi:670
  999. #, no-wrap
  1000. msgid "elisp, packaging"
  1001. msgstr ""
  1002. #. type: Plain text
  1003. #: guix-git/doc/contributing.texi:682
  1004. 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."
  1005. msgstr ""
  1006. #. type: Plain text
  1007. #: guix-git/doc/contributing.texi:687
  1008. 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}."
  1009. msgstr ""
  1010. #. type: Plain text
  1011. #: guix-git/doc/contributing.texi:696
  1012. 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:"
  1013. msgstr ""
  1014. #. type: lisp
  1015. #: guix-git/doc/contributing.texi:699
  1016. #, no-wrap
  1017. msgid "#:include (cons \"^snippets/\" %default-include))\n"
  1018. msgstr ""
  1019. #. type: Plain text
  1020. #: guix-git/doc/contributing.texi:705
  1021. 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."
  1022. msgstr ""
  1023. #. type: cindex
  1024. #: guix-git/doc/contributing.texi:709
  1025. #, no-wrap
  1026. msgid "python"
  1027. msgstr "python"
  1028. #. type: Plain text
  1029. #: guix-git/doc/contributing.texi:715
  1030. 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}."
  1031. msgstr "我们目前为Python 2和Python 3打包,如@ref{Version Numbers}的规则所述,它们的Scheme变量名分别是@code{python-2}和@code{python}。为了避免和其他编程语言的冲突,Python模块的软件包名字最好含有@code{python}。"
  1032. #. type: Plain text
  1033. #: guix-git/doc/contributing.texi:722
  1034. #, fuzzy
  1035. 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."
  1036. msgstr "某些模块仅和一个版本的Python兼容,其它的和两个版本都兼容。如果一个叫做Foo的软件包仅和Python 3兼容,我们把它命名为@code{python-foo};如果它仅和Python 2兼容,我们把它命名为@code{python2-foo}。如果它和两个版本都兼容,我们创建两个软件包,名字如前所述。"
  1037. #. type: Plain text
  1038. #: guix-git/doc/contributing.texi:728
  1039. 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."
  1040. msgstr "如果一个项目的名字已经含有@code{python}这个单词,我们把它丢掉;例如,python-dateutil模块打包后的名字是@code{python-dateutil}和@code{python2-dateutil}。如果项目的名字以@code{py}开头(如@: @code{pytz}),我们把它保留,并且添加上面所述的前缀。"
  1041. #. type: subsubsection
  1042. #: guix-git/doc/contributing.texi:729
  1043. #, no-wrap
  1044. msgid "Specifying Dependencies"
  1045. msgstr "指定依赖"
  1046. #. type: cindex
  1047. #: guix-git/doc/contributing.texi:730
  1048. #, no-wrap
  1049. msgid "inputs, for Python packages"
  1050. msgstr "Python软件包的输入"
  1051. #. type: Plain text
  1052. #: guix-git/doc/contributing.texi:735
  1053. 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}."
  1054. msgstr "Python软件包的依赖信息通常在包的源代码树里,各种文件有不同的精确度:@file{setup.py}文件,@file{requirements.txt}文件,@file{tox.ini}文件。"
  1055. #. type: Plain text
  1056. #: guix-git/doc/contributing.texi:741
  1057. 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."
  1058. msgstr "你在写软件包配方时的任务是把这些依赖转换成相应的“输入”(@pxref{package Reference, inputs})。尽管@code{pypi}导入工具通常可以做得很好(@pxref{Invoking guix import}),你可能想检查下面这个清单,以决定每个依赖放在哪儿。"
  1059. #. type: itemize
  1060. #: guix-git/doc/contributing.texi:749
  1061. 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."
  1062. msgstr "默认地,我们为Python 2打包时像Python 3一样安装了@code{setuptools}和@code{pip}。所以你不需要把它们两个指定为依赖,否则@command{guix lint}会警告你。"
  1063. #. type: itemize
  1064. #: guix-git/doc/contributing.texi:755
  1065. 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."
  1066. msgstr "运行时需要的Python依赖要放进@code{propagated-inputs}。它们通常由@file{setup.py}文件里的@code{install_requires}关键字或@file{requirements.txt}文件定义。"
  1067. #. type: itemize
  1068. #: guix-git/doc/contributing.texi:763
  1069. 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."
  1070. msgstr "仅在构建时依赖的Python包--如,@file{setup.py}里的@code{setup_requires}关键字列举的包--或仅在测试时依赖的包--如,@code{tests_require}里的包--要放进@code{native-inputs}。因为,(1)在运行时不需要它们,因此不需要propagate,并且(2)在交叉编译时,它们属于“native”输入。"
  1071. #. type: itemize
  1072. #: guix-git/doc/contributing.texi:767
  1073. 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}."
  1074. msgstr "例如@code{pytest},@code{mock},@code{nose}测试框架。当然,如果在运行时需要这里的任何一个包,它需要被加进@code{propagated-inputs}。"
  1075. #. type: itemize
  1076. #: guix-git/doc/contributing.texi:772
  1077. 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."
  1078. msgstr "任何不属于上述类别的包都要被加进@code{inputs},如,构建含有C语言扩展的Python包所需的程序和C语言库。"
  1079. #. type: itemize
  1080. #: guix-git/doc/contributing.texi:778
  1081. 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}})."
  1082. msgstr "如果一个Python软件包由可选的依赖(@code{extras_require}),由你根据它们的性价比(用处/负担)决定是否添加它们(@pxref{Submitting Patches, @command{guix size}})。"
  1083. #. type: cindex
  1084. #: guix-git/doc/contributing.texi:785
  1085. #, no-wrap
  1086. msgid "perl"
  1087. msgstr "perl"
  1088. #. type: Plain text
  1089. #: guix-git/doc/contributing.texi:796
  1090. 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}."
  1091. msgstr "Perl程序和其它软件包的命名规则类似,用小写的上游名字命名。对于仅包含一个类的Perl包,我们使用小写的类名,把所有的@code{::}替换成破折号,并且添加@code{perl-}前缀。所以类@code{XML::Parser}变成@code{perl-xml-parser}。包含多个类的模块保留它们上游的名字,并且添加@code{perl-}前缀。这类模块的名字通常含有@code{perl},这个单词需要被删掉。例如,@code{libwww-perl}变成@code{perl-libwww}。"
  1092. #. type: cindex
  1093. #: guix-git/doc/contributing.texi:801
  1094. #, no-wrap
  1095. msgid "java"
  1096. msgstr "java"
  1097. #. type: Plain text
  1098. #: guix-git/doc/contributing.texi:804
  1099. msgid "Java programs standing for themselves are named as any other package, using the lowercase upstream name."
  1100. msgstr "Java程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1101. #. type: Plain text
  1102. #: guix-git/doc/contributing.texi:810
  1103. 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}."
  1104. msgstr "为了避免和其它编程语言混淆和命名冲突,Java软件包的名字最好有@code{java-}前缀。如果一个项目的名字已经含有@code{java},我们把它删掉;例如,@code{ngsjava}打包后的名字是@code{java-ngs}。"
  1105. #. type: Plain text
  1106. #: guix-git/doc/contributing.texi:816
  1107. 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}."
  1108. msgstr "对于仅包含一个或很少几个类的Java软件包,我们使用小写的类名,把所有的@code{.}替换成破折号,并且添加@code{java-}前缀。因此,类@code{apache.commons.cli}打包后的名字是@code{java-apache-commons-cli}。"
  1109. #. type: cindex
  1110. #: guix-git/doc/contributing.texi:821
  1111. #, no-wrap
  1112. msgid "rust"
  1113. msgstr ""
  1114. #. type: Plain text
  1115. #: guix-git/doc/contributing.texi:824
  1116. msgid "Rust programs standing for themselves are named as any other package, using the lowercase upstream name."
  1117. msgstr "Rust 程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1118. #. type: Plain text
  1119. #: guix-git/doc/contributing.texi:828
  1120. 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."
  1121. msgstr ""
  1122. #. type: Plain text
  1123. #: guix-git/doc/contributing.texi:834
  1124. 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}."
  1125. msgstr ""
  1126. #. type: Plain text
  1127. #: guix-git/doc/contributing.texi:844
  1128. 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."
  1129. msgstr ""
  1130. #. type: Plain text
  1131. #: guix-git/doc/contributing.texi:850
  1132. 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."
  1133. msgstr ""
  1134. #. type: cindex
  1135. #: guix-git/doc/contributing.texi:855 guix-git/doc/guix.texi:1915
  1136. #, no-wrap
  1137. msgid "fonts"
  1138. msgstr "字体"
  1139. #. type: Plain text
  1140. #: guix-git/doc/contributing.texi:861
  1141. 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."
  1142. msgstr "对于通常不会被用户安装用于排版的字体,或者随更大的软件包分发的字体,我们使用通常的命名规则。例如,这适用于X.Org系统附带的字体或TeX Live附带的字体。"
  1143. #. type: Plain text
  1144. #: guix-git/doc/contributing.texi:865
  1145. 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."
  1146. msgstr "为了让用户更容易搜索字体,其它仅含有字体的软件包按以下规则命名,不管上游的包名是什么。"
  1147. #. type: Plain text
  1148. #: guix-git/doc/contributing.texi:873
  1149. 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}."
  1150. msgstr "仅含有一个字体家族的软件包需要以@code{font-}开头;如果作者名字已知,则添加作者名字和@code{-},接着是字体家族名字(把空格替换成破折号),(和通常一样,把所有的大写字母转换成小写字母)。例如,由SIL设计的Gentium字体家族打包后的名字是@code{font-sil-gentium}。"
  1151. #. type: Plain text
  1152. #: guix-git/doc/contributing.texi:882
  1153. 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}."
  1154. msgstr "对于一个含有多个字体家族的软件包,用集合的名字替换字体家族的名字。例如,Liberation字体含有三个家族,Liberation Sans、Liberation Serif和Liberation Mono。它们可以用@code{font-liberation-sans}等名字分开打包;但是由于它们以一个共同的名字分发,我们倾向于以@code{font-liberation}名字统一打包。"
  1155. #. type: Plain text
  1156. #: guix-git/doc/contributing.texi:888
  1157. 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."
  1158. msgstr "当同一个字体家族或字体集合的不同格式分开打包时,把破折号和格式(缩写)添加在软件包名字后面。我们用@code{-ttf}代表TrueType字体,@code{-otf}代表OpenType字体,@code{-type1}代表PostScript Type 1字体。"
  1159. #. type: Plain text
  1160. #: guix-git/doc/contributing.texi:896
  1161. 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."
  1162. msgstr "总的来说,我们的代码遵循GNU代码规范(@pxref{Top,,, standards, GNU代码规范})。但是,这个规范对Scheme的介绍不多,所以这儿提供一些额外的规则。"
  1163. #. type: subsection
  1164. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:904
  1165. #: guix-git/doc/contributing.texi:905
  1166. #, no-wrap
  1167. msgid "Programming Paradigm"
  1168. msgstr "编程范例"
  1169. #. type: menuentry
  1170. #: guix-git/doc/contributing.texi:902
  1171. msgid "How to compose your elements."
  1172. msgstr "怎样合成元素。"
  1173. #. type: subsection
  1174. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:911
  1175. #: guix-git/doc/contributing.texi:912
  1176. #, no-wrap
  1177. msgid "Modules"
  1178. msgstr "模块"
  1179. #. type: menuentry
  1180. #: guix-git/doc/contributing.texi:902
  1181. msgid "Where to store your code?"
  1182. msgstr "在哪里保存代码?"
  1183. #. type: subsection
  1184. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:922
  1185. #: guix-git/doc/contributing.texi:923
  1186. #, no-wrap
  1187. msgid "Data Types and Pattern Matching"
  1188. msgstr "数据类型和模式匹配"
  1189. #. type: menuentry
  1190. #: guix-git/doc/contributing.texi:902
  1191. msgid "Implementing data structures."
  1192. msgstr "实现数据结构。"
  1193. #. type: subsection
  1194. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:937
  1195. #: guix-git/doc/contributing.texi:938
  1196. #, no-wrap
  1197. msgid "Formatting Code"
  1198. msgstr "格式化代码"
  1199. #. type: menuentry
  1200. #: guix-git/doc/contributing.texi:902
  1201. msgid "Writing conventions."
  1202. msgstr "书写规范。"
  1203. #. type: Plain text
  1204. #: guix-git/doc/contributing.texi:910
  1205. 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."
  1206. msgstr "Guix里的Scheme代码是以纯函数的风格写的。一个例外是有关输入/输出的代码,和实现底层概念的过程,如@code{memoize}过程。"
  1207. #. type: Plain text
  1208. #: guix-git/doc/contributing.texi:918
  1209. 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."
  1210. msgstr "用于构建的Guile模块必须放在@code{(guix build @dots{})}命名空间里。它们不允许引用其它Guix或GNU模块。但是,主机端(host-side)模块可以使用构建端(build-side)模块。"
  1211. #. type: Plain text
  1212. #: guix-git/doc/contributing.texi:921
  1213. msgid "Modules that deal with the broader GNU system should be in the @code{(gnu @dots{})} name space rather than @code{(guix @dots{})}."
  1214. msgstr "关于更广的GNU系统的模块应该在@code{(gnu @dots{})}命名空间里而不是@code{(guix @dots{})}。"
  1215. #. type: Plain text
  1216. #: guix-git/doc/contributing.texi:930
  1217. 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."
  1218. msgstr "经典的Lisp倾向于用列表表示所有的东西,然后用@code{car},@code{cdr},@code{cadr}等手动浏览它们。这种风格有几个问题,特别是难以阅读,易出错,并且妨碍生成合适的类型错误报告。"
  1219. #. type: Plain text
  1220. #: guix-git/doc/contributing.texi:936
  1221. #, fuzzy
  1222. 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})."
  1223. msgstr "Guix代码应该定义合适的数据类型(例如,用@code{define-record-type*})而不是滥用列表。而且,它应该利用Guile的@code{(ice-9 match)}模块使用模式匹配,特别是匹配列表的时候。"
  1224. #. type: cindex
  1225. #: guix-git/doc/contributing.texi:940
  1226. #, no-wrap
  1227. msgid "formatting code"
  1228. msgstr "格式化代码"
  1229. #. type: cindex
  1230. #: guix-git/doc/contributing.texi:941
  1231. #, no-wrap
  1232. msgid "coding style"
  1233. msgstr "代码风格"
  1234. #. type: Plain text
  1235. #: guix-git/doc/contributing.texi:948
  1236. #, fuzzy
  1237. 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."
  1238. msgstr "在写Scheme代码时,我们遵循Scheme程序员的通用智慧。通常,我们遵循@url{http://mumble.net/~campbell/scheme/style.txt, Riastradh的Lisp风格}。这个文档碰巧描述了在Guile代码里大量使用的惯例。它很周到,而且写的很好,所以务必阅读。"
  1239. #. type: Plain text
  1240. #: guix-git/doc/contributing.texi:955
  1241. 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})."
  1242. msgstr "一些Guix添加的special form,如@code{substitute*}宏,有特殊的缩进规则。它们的规则在@file{.dir-locals.el}文件里定义,Emacs会自动使用。另外,Emacs-Guix提供的@code{guix-devel-mode}模式可以正确地缩进和高亮Guix代码(@pxref{Development,,, emacs-guix, Emacs-Guix参考手册})。"
  1243. #. type: cindex
  1244. #: guix-git/doc/contributing.texi:956
  1245. #, no-wrap
  1246. msgid "indentation, of code"
  1247. msgstr "代码缩进"
  1248. #. type: cindex
  1249. #: guix-git/doc/contributing.texi:957
  1250. #, no-wrap
  1251. msgid "formatting, of code"
  1252. msgstr "代码格式化"
  1253. #. type: Plain text
  1254. #: guix-git/doc/contributing.texi:960
  1255. 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:"
  1256. msgstr "如果你不使用Emacs,请确保让你的编辑器知道这些规则。为了自动地缩进软件包定义,你也可以运行:"
  1257. #. type: example
  1258. #: guix-git/doc/contributing.texi:963
  1259. #, no-wrap
  1260. msgid "./etc/indent-code.el gnu/packages/@var{file}.scm @var{package}\n"
  1261. msgstr "./etc/indent-code.el gnu/packages/@var{文件}.scm @var{软件包}\n"
  1262. #. type: Plain text
  1263. #: guix-git/doc/contributing.texi:969
  1264. 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:"
  1265. msgstr "这会调用Emacs以批处理模式自动地缩进@file{gnu/packages/@var{文件}.scm}里@var{软件包}的定义。如果想缩进整个文件,省略第二个参数:"
  1266. #. type: example
  1267. #: guix-git/doc/contributing.texi:972
  1268. #, no-wrap
  1269. msgid "./etc/indent-code.el gnu/services/@var{file}.scm\n"
  1270. msgstr "./etc/indent-code.el gnu/services/@var{文件}.scm\n"
  1271. #. type: cindex
  1272. #: guix-git/doc/contributing.texi:974
  1273. #, no-wrap
  1274. msgid "Vim, Scheme code editing"
  1275. msgstr "Vim,编辑Scheme代码"
  1276. #. type: Plain text
  1277. #: guix-git/doc/contributing.texi:980
  1278. 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."
  1279. msgstr "如果你用Vim编辑代码,我们推荐你运行@code{:set autoindent},以使你在输入时自动缩进代码。另外,@uref{https://www.vim.org/scripts/script.php?script_id=3998, @code{paredit.vim}}可以帮你处理括号。"
  1280. #. type: Plain text
  1281. #: guix-git/doc/contributing.texi:984
  1282. 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."
  1283. msgstr "我们要求所有的顶级过程附带一个docstring。这个要求对@code{(guix build @dots{})}命名空间里的简单的私有过程可以放宽。"
  1284. #. type: Plain text
  1285. #: guix-git/doc/contributing.texi:987
  1286. msgid "Procedures should not have more than four positional parameters. Use keyword parameters for procedures that take more than four parameters."
  1287. msgstr "过程不应该有多于四个定位参数。对于接收多于四个定位参数的过程应使用关键字参数。"
  1288. #. type: Plain text
  1289. #: guix-git/doc/contributing.texi:1001
  1290. #, fuzzy
  1291. 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})."
  1292. msgstr "开发是使用Git分布式版本控制系统完成的。因此,对仓库的访问权限不是必须的。我们欢迎以向@email{guix-patches@@gnu.org}邮件列表发送@code{git format-patch}补丁的方式共享代码。"
  1293. #. type: Plain text
  1294. #: guix-git/doc/contributing.texi:1008
  1295. #, fuzzy
  1296. 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})."
  1297. msgstr "这个邮件列表的后端是一个Debbugs实例(可以从@uref{https://bugs.gnu.org/guix-patches}访问),它允许我们跟踪提交的bug。每个发送到那个邮件列表的消息都会被分配一个跟踪数字;之后人们可以通过向@code{@var{NNN}@@debbugs.gnu.org}发送邮件来跟进提交(@var{NNN}是跟踪数字,@pxref{Sending a Patch Series})。"
  1298. #. type: Plain text
  1299. #: guix-git/doc/contributing.texi:1012
  1300. msgid "Please write commit logs in the ChangeLog format (@pxref{Change Logs,,, standards, GNU Coding Standards}); you can check the commit history for examples."
  1301. msgstr "请以ChangeLog格式(@pxref{Change Logs,,, standards, GNU代码规范})写commit日志;你可以浏览commit历史里的例子。"
  1302. #. type: Plain text
  1303. #: guix-git/doc/contributing.texi:1015
  1304. msgid "Before submitting a patch that adds or modifies a package definition, please run through this check list:"
  1305. msgstr "提交添加或者修改软件包定义的补丁之前,请过一遍这个检查列表:"
  1306. #. type: code{#1}
  1307. #: guix-git/doc/contributing.texi:1017 guix-git/doc/contributing.texi:1220
  1308. #, no-wrap
  1309. msgid "git format-patch"
  1310. msgstr ""
  1311. #. type: code{#1}
  1312. #: guix-git/doc/contributing.texi:1018
  1313. #, no-wrap
  1314. msgid "git-format-patch"
  1315. msgstr ""
  1316. #. type: enumerate
  1317. #: guix-git/doc/contributing.texi:1022
  1318. msgid "We recommend to use the command @code{git format-patch --base} to include the commit where your patch applies."
  1319. msgstr ""
  1320. #. type: enumerate
  1321. #: guix-git/doc/contributing.texi:1028
  1322. 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."
  1323. msgstr "如果软件包的作者为发布的文件包提供了密码学签名,请验证文件的真实性。对于独立的 GPG 签名文件,这可以通过 @code{gpg --verify} 命令完成。"
  1324. #. type: enumerate
  1325. #: guix-git/doc/contributing.texi:1032
  1326. msgid "Take some time to provide an adequate synopsis and description for the package. @xref{Synopses and Descriptions}, for some guidelines."
  1327. msgstr "花些时间为软件包提供一个合适的简介和描述。更多指导,@xref{Synopses and Descriptions}。"
  1328. #. type: enumerate
  1329. #: guix-git/doc/contributing.texi:1037
  1330. 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})."
  1331. msgstr "运行@code{guix lint @var{软件包}},@var{软件包}是新添加的或修改过的软件包的名字,修复它报告的错误(@pxref{Invoking guix lint})。"
  1332. #. type: enumerate
  1333. #: guix-git/doc/contributing.texi:1041
  1334. msgid "Make sure the package builds on your platform, using @code{guix build @var{package}}."
  1335. msgstr "用@code{guix build @var{软件包}}命令确保这个软件包可以在你的平台上构建。"
  1336. #. type: enumerate
  1337. #: guix-git/doc/contributing.texi:1049
  1338. #, fuzzy
  1339. #| 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:"
  1340. 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:"
  1341. msgstr "我们建议你同时尝试在别的支持的平台上构建这个软件包。你可能没有别的平台的真实的硬件,我们推荐使用@code{qemu-binfmt-service-type}来模拟它们。为了启用这个功能,把下面这个服务添加到你的@code{操作系统}配置的服务列表里:"
  1342. #. type: lisp
  1343. #: guix-git/doc/contributing.texi:1054
  1344. #, fuzzy, no-wrap
  1345. msgid ""
  1346. "(service qemu-binfmt-service-type\n"
  1347. " (qemu-binfmt-configuration\n"
  1348. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  1349. msgstr ""
  1350. "(service qemu-binfmt-service-type\n"
  1351. " (qemu-binfmt-configuration\n"
  1352. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  1353. " (guix-support? #t)))\n"
  1354. #. type: enumerate
  1355. #: guix-git/doc/contributing.texi:1057
  1356. msgid "Then reconfigure your system."
  1357. msgstr "然后重新配置你的系统。"
  1358. #. type: enumerate
  1359. #: guix-git/doc/contributing.texi:1062
  1360. #, fuzzy
  1361. #| 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:"
  1362. 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:"
  1363. msgstr "你之后可以用@code{--system}参数为不同的平台构建软件包。例如,为armhf,aarch64,或mips64架构构建\"hello\"软件包,你可以依次运行如下的命令:"
  1364. #. type: example
  1365. #: guix-git/doc/contributing.texi:1065
  1366. #, fuzzy, no-wrap
  1367. msgid ""
  1368. "guix build --system=armhf-linux --rounds=2 hello\n"
  1369. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1370. msgstr ""
  1371. "guix build --system=armhf-linux --rounds=2 hello\n"
  1372. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1373. "guix build --system=mips64el-linux --rounds=2 hello\n"
  1374. #. type: cindex
  1375. #: guix-git/doc/contributing.texi:1068
  1376. #, no-wrap
  1377. msgid "bundling"
  1378. msgstr "构建"
  1379. #. type: enumerate
  1380. #: guix-git/doc/contributing.texi:1071
  1381. msgid "Make sure the package does not use bundled copies of software already available as separate packages."
  1382. msgstr "请确保软件包里不捆绑出现已经被打过包的软件的副本。"
  1383. #. type: enumerate
  1384. #: guix-git/doc/contributing.texi:1080
  1385. 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."
  1386. msgstr "有时,软件包为了方便用户,捆绑了依赖库的源代码。然而,当依赖库在发行版里已经存在时,做为一个发行版,我们希望确保这些软件包使用发行版里已有的副本。这提高资源使用率(依赖库只构建一次,存储一份),并且使发行版更容易管理,如仅在一个地方对某个软件包进行安全更新就可以影响整个系统--捆绑软件会妨碍这么做。"
  1387. #. type: enumerate
  1388. #: guix-git/doc/contributing.texi:1089
  1389. #, fuzzy
  1390. 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."
  1391. msgstr "看一下@command{guix size}(@pxref{Invoking guix size})的分析报告。这会让你注意到对其它软件包无意中的引用。它也可以帮助决定是否要把一个软件包分割成几个输出(@pxref{有多个输出的软件包}),以及需要使用哪些可选的依赖。特别地,避免把@code{texlive}添加为依赖:因为它太大了,请使用@code{texlive-tiny}或@code{texlive-union}代替它。"
  1392. #. type: enumerate
  1393. #: guix-git/doc/contributing.texi:1094
  1394. #, fuzzy
  1395. #| 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})."
  1396. 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})."
  1397. msgstr "对于重要的更改,确保依赖它的软件包没有受到影响。@code{guix refresh --list-dependent @var{软件包}}会帮你检查(@pxref{Invoking guix refresh})。"
  1398. #. type: cindex
  1399. #: guix-git/doc/contributing.texi:1096
  1400. #, no-wrap
  1401. msgid "branching strategy"
  1402. msgstr "分支策略"
  1403. #. type: cindex
  1404. #: guix-git/doc/contributing.texi:1097
  1405. #, no-wrap
  1406. msgid "rebuild scheduling strategy"
  1407. msgstr "重新构建的调度策略"
  1408. #. type: enumerate
  1409. #: guix-git/doc/contributing.texi:1100
  1410. msgid "Depending on the number of dependent packages and thus the amount of rebuilding induced, commits go to different branches, along these lines:"
  1411. msgstr "取决于受影响的软件包的数量,即需要重新构建的数量,commit需要被提交到不同的分支,具体如下:"
  1412. #. type: item
  1413. #: guix-git/doc/contributing.texi:1102
  1414. #, no-wrap
  1415. msgid "300 dependent packages or less"
  1416. msgstr "300个或更少的受影响的软件包"
  1417. #. type: table
  1418. #: guix-git/doc/contributing.texi:1104
  1419. msgid "@code{master} branch (non-disruptive changes)."
  1420. msgstr "@code{master}分支(非破坏性的更改)。"
  1421. #. type: item
  1422. #: guix-git/doc/contributing.texi:1105
  1423. #, no-wrap
  1424. msgid "between 300 and 1,800 dependent packages"
  1425. msgstr "300 至 1800 个受影响的软件包"
  1426. #. type: table
  1427. #: guix-git/doc/contributing.texi:1111
  1428. #, fuzzy
  1429. 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."
  1430. msgstr "@code{staging}分支(非破坏性的更改)。这个分支每隔大约3周会被合并进@code{master}。对某个主题的更改(如对GNOME系列的更新)可以放进一个特定的分支(如@code{gnome-updates})。"
  1431. #. type: item
  1432. #: guix-git/doc/contributing.texi:1112
  1433. #, no-wrap
  1434. msgid "more than 1,800 dependent packages"
  1435. msgstr "超过 1800 个受影响的软件包"
  1436. #. type: table
  1437. #: guix-git/doc/contributing.texi:1117
  1438. #, fuzzy
  1439. 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."
  1440. msgstr "@code{core-updates}分支(可能含有重要的或破坏性的更改)。这个分支每隔大约2.5个月会被合并进@code{master}。"
  1441. #. type: enumerate
  1442. #: guix-git/doc/contributing.texi:1124
  1443. #, fuzzy
  1444. #| 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."
  1445. 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."
  1446. msgstr "所有这些分支都@uref{@value{SUBSTITUTE-URL}, 被构建农场跟踪},并且当一切都被顺利构建时合并进@code{master}。这使我们在影响到用户之前就能改正问题,并且缩小没有准备好预构建的二进制包的窗口期。"
  1447. #. type: enumerate
  1448. #: guix-git/doc/contributing.texi:1133
  1449. 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."
  1450. msgstr ""
  1451. #. type: cindex
  1452. #: guix-git/doc/contributing.texi:1135
  1453. #, no-wrap
  1454. msgid "determinism, of build processes"
  1455. msgstr "构建过程的确定性"
  1456. #. type: cindex
  1457. #: guix-git/doc/contributing.texi:1136
  1458. #, no-wrap
  1459. msgid "reproducible builds, checking"
  1460. msgstr "检查可复现的构建"
  1461. #. type: enumerate
  1462. #: guix-git/doc/contributing.texi:1140
  1463. 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."
  1464. msgstr "检查软件包的构建过程是不是确定性的。这通常意味着检查对软件包的独立构建是否能得到每一个比特都完全相同的结果。"
  1465. #. type: enumerate
  1466. #: guix-git/doc/contributing.texi:1143
  1467. 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}):"
  1468. msgstr "为此,一个简单的做法是在你的机器上多次构建同一个软件包(@pxref{Invoking guix build}):"
  1469. #. type: example
  1470. #: guix-git/doc/contributing.texi:1146
  1471. #, no-wrap
  1472. msgid "guix build --rounds=2 my-package\n"
  1473. msgstr "guix build --rounds=2 <我的软件包>\n"
  1474. #. type: enumerate
  1475. #: guix-git/doc/contributing.texi:1150
  1476. msgid "This is enough to catch a class of common non-determinism issues, such as timestamps or randomly-generated output in the build result."
  1477. msgstr "这足以查出一批普通的不确定性问题,如构建结果里存在时间戳或随机生成的输出。"
  1478. #. type: enumerate
  1479. #: guix-git/doc/contributing.texi:1160
  1480. #, fuzzy
  1481. #| 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."
  1482. 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."
  1483. msgstr "另一个选择是使用@command{guix challenge}(@pxref{Invoking guix challenge})。当软件包被提交并且被@code{@value{SUBSTITUTE-SERVER}}构建之后,你可以运行这个命令检查你是否得到相同的构建结果。更好的:找另一台可以构建的机器,运行@command{guix publish}。由于远程的构建机器很可能和你的机器不同,这可以捕捉到由硬件不同引起的不确定性问题--如,使用不同的指令集--或不同操作系统内核引起的问题--如,对@code{uname}或@file{/proc}文件的依赖。"
  1484. #. type: enumerate
  1485. #: guix-git/doc/contributing.texi:1166
  1486. 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."
  1487. msgstr "在编写文档时,请用性别中立的词语指代人,如@uref{https://en.wikipedia.org/wiki/Singular_they, “他”@comma{} “他的”},等。"
  1488. #. type: enumerate
  1489. #: guix-git/doc/contributing.texi:1170
  1490. msgid "Verify that your patch contains only one set of related changes. Bundling unrelated changes together makes reviewing harder and slower."
  1491. msgstr "检查你的补丁只包含一些相关的更改。把不相关的更改捆绑在一起会让评审更困难和更慢。"
  1492. #. type: enumerate
  1493. #: guix-git/doc/contributing.texi:1173
  1494. msgid "Examples of unrelated changes include the addition of several packages, or a package update along with fixes to that package."
  1495. msgstr "不相关的更改的例子有:同时新增多个软件包,或更新软件包同时修补这个软件包。"
  1496. #. type: enumerate
  1497. #: guix-git/doc/contributing.texi:1178
  1498. 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})."
  1499. msgstr "请遵守我们的代码格式规范,最好运行@command{etc/indent-code.el}脚本以自动为你格式化(@pxref{Formatting Code})。"
  1500. #. type: enumerate
  1501. #: guix-git/doc/contributing.texi:1186
  1502. 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."
  1503. msgstr "当可能时,请在源URL里使用镜像@pxref{Invoking guix download}。使用可靠的而不是生成的URL。例如,GitHub的下载文件每次生成时不一定是相同的,所以这时最好克隆仓库。不要在URL里使用@command{name}变量:这没有什么用,而且如果名字变了,URL很可能就错了。"
  1504. #. type: enumerate
  1505. #: guix-git/doc/contributing.texi:1190
  1506. msgid "Check if Guix builds (@pxref{Building from Git}) and address the warnings, especially those about use of undefined symbols."
  1507. msgstr ""
  1508. #. type: enumerate
  1509. #: guix-git/doc/contributing.texi:1193
  1510. msgid "Make sure your changes do not break Guix and simulate a @code{guix pull} with:"
  1511. msgstr ""
  1512. #. type: example
  1513. #: guix-git/doc/contributing.texi:1195
  1514. #, no-wrap
  1515. msgid "guix pull --url=/path/to/your/checkout --profile=/tmp/guix.master\n"
  1516. msgstr ""
  1517. #. type: Plain text
  1518. #: guix-git/doc/contributing.texi:1208
  1519. #, fuzzy
  1520. 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."
  1521. msgstr "在提交补丁到邮件列表时,使用@samp{[PATCH] @dots{}}做为主题。你可以使用你的邮件客户端或者@command{git send-email}命令(@pxref{Sending a Patch Series})。我们倾向于接收纯文本的邮件,无论是在正文里还是在MIME附件里。建议你注意你的邮件客户端是否会自动修改换行或缩进,这可能会损坏补丁。"
  1522. #. type: Plain text
  1523. #: guix-git/doc/contributing.texi:1213
  1524. 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."
  1525. msgstr ""
  1526. #. type: Plain text
  1527. #: guix-git/doc/contributing.texi:1216
  1528. msgid "When a bug is resolved, please close the thread by sending an email to @email{@var{NNN}-done@@debbugs.gnu.org}."
  1529. msgstr "当一个bug被修复时,请通过向@email{@var{NNN}-done@@debbugs.gnu.org}发邮件的方式关闭thread。"
  1530. #. type: subsection
  1531. #: guix-git/doc/contributing.texi:1217 guix-git/doc/contributing.texi:1218
  1532. #, fuzzy, no-wrap
  1533. #| msgid "Configuring the boot loader."
  1534. msgid "Configuring Git"
  1535. msgstr "设置引导程序。"
  1536. #. type: cindex
  1537. #: guix-git/doc/contributing.texi:1219
  1538. #, fuzzy, no-wrap
  1539. msgid "git configuration"
  1540. msgstr "系统配置"
  1541. #. type: code{#1}
  1542. #: guix-git/doc/contributing.texi:1221 guix-git/doc/contributing.texi:1256
  1543. #, no-wrap
  1544. msgid "git send-email"
  1545. msgstr "git send-email"
  1546. #. type: Plain text
  1547. #: guix-git/doc/contributing.texi:1229
  1548. 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}."
  1549. msgstr ""
  1550. #. type: Plain text
  1551. #: guix-git/doc/contributing.texi:1235
  1552. 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:"
  1553. msgstr ""
  1554. #. type: example
  1555. #: guix-git/doc/contributing.texi:1238
  1556. #, no-wrap
  1557. msgid "git config --local include.path ../etc/git/gitconfig\n"
  1558. msgstr ""
  1559. #. type: Plain text
  1560. #: guix-git/doc/contributing.texi:1242
  1561. msgid "From then on, any changes to @file{etc/git/gitconfig} would automatically take effect."
  1562. msgstr ""
  1563. #. type: Plain text
  1564. #: guix-git/doc/contributing.texi:1247
  1565. 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}:"
  1566. msgstr ""
  1567. #. type: example
  1568. #: guix-git/doc/contributing.texi:1251
  1569. #, no-wrap
  1570. msgid ""
  1571. "git config --local format.thread shallow\n"
  1572. "git config --local sendemail.thread no\n"
  1573. msgstr ""
  1574. #. type: anchor{#1}
  1575. #: guix-git/doc/contributing.texi:1253 guix-git/doc/contributing.texi:1255
  1576. #, no-wrap
  1577. msgid "Sending a Patch Series"
  1578. msgstr "发送补丁系列"
  1579. #. type: cindex
  1580. #: guix-git/doc/contributing.texi:1255
  1581. #, no-wrap
  1582. msgid "patch series"
  1583. msgstr "补丁系列"
  1584. #. type: Plain text
  1585. #: guix-git/doc/contributing.texi:1266
  1586. #, fuzzy
  1587. 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}."
  1588. msgstr "在发送补丁系列时(如,使用@code{git send-email}),请先向@email{guix-patches@@gnu.org}发送一封邮件,再把后续的补丁发送到@email{@var{NNN}@@debbugs.gnu.org},以确保他们被归在一起。见@uref{https://debbugs.gnu.org/Advanced.html, Debbugs文档}以了解更多信息。"
  1589. #. type: Plain text
  1590. #: guix-git/doc/contributing.texi:1272
  1591. msgid "This section describes how the Guix project tracks its bug reports and patch submissions."
  1592. msgstr ""
  1593. #. type: subsection
  1594. #: guix-git/doc/contributing.texi:1277 guix-git/doc/contributing.texi:1279
  1595. #: guix-git/doc/contributing.texi:1280
  1596. #, no-wrap
  1597. msgid "The Issue Tracker"
  1598. msgstr ""
  1599. #. type: menuentry
  1600. #: guix-git/doc/contributing.texi:1277
  1601. msgid "The official bug and patch tracker."
  1602. msgstr ""
  1603. #. type: subsection
  1604. #: guix-git/doc/contributing.texi:1277 guix-git/doc/contributing.texi:1293
  1605. #: guix-git/doc/contributing.texi:1294
  1606. #, fuzzy, no-wrap
  1607. #| msgid "user interfaces"
  1608. msgid "Debbugs User Interfaces"
  1609. msgstr "用户界面"
  1610. #. type: menuentry
  1611. #: guix-git/doc/contributing.texi:1277
  1612. msgid "Ways to interact with Debbugs."
  1613. msgstr ""
  1614. #. type: subsection
  1615. #: guix-git/doc/contributing.texi:1277 guix-git/doc/contributing.texi:1333
  1616. #: guix-git/doc/contributing.texi:1334
  1617. #, no-wrap
  1618. msgid "Debbugs Usertags"
  1619. msgstr ""
  1620. #. type: menuentry
  1621. #: guix-git/doc/contributing.texi:1277
  1622. msgid "Tag reports with custom labels."
  1623. msgstr ""
  1624. #. type: cindex
  1625. #: guix-git/doc/contributing.texi:1282
  1626. #, no-wrap
  1627. msgid "bug reports, tracking"
  1628. msgstr ""
  1629. #. type: cindex
  1630. #: guix-git/doc/contributing.texi:1283
  1631. #, no-wrap
  1632. msgid "patch submissions, tracking"
  1633. msgstr ""
  1634. #. type: cindex
  1635. #: guix-git/doc/contributing.texi:1284
  1636. #, no-wrap
  1637. msgid "issue tracking"
  1638. msgstr ""
  1639. #. type: cindex
  1640. #: guix-git/doc/contributing.texi:1285
  1641. #, no-wrap
  1642. msgid "Debbugs, issue tracking system"
  1643. msgstr ""
  1644. #. type: Plain text
  1645. #: guix-git/doc/contributing.texi:1292
  1646. 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})."
  1647. msgstr ""
  1648. #. type: Plain text
  1649. #: guix-git/doc/contributing.texi:1298
  1650. msgid "A web interface (actually @emph{two} web interfaces!) are available to browse issues:"
  1651. msgstr ""
  1652. #. type: itemize
  1653. #: guix-git/doc/contributing.texi:1307
  1654. 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;"
  1655. msgstr ""
  1656. #. type: itemize
  1657. #: guix-git/doc/contributing.texi:1309
  1658. #, fuzzy
  1659. msgid "@url{https://bugs.gnu.org/guix} lists bug reports;"
  1660. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  1661. #. type: itemize
  1662. #: guix-git/doc/contributing.texi:1311
  1663. msgid "@url{https://bugs.gnu.org/guix-patches} lists patch submissions."
  1664. msgstr ""
  1665. #. type: Plain text
  1666. #: guix-git/doc/contributing.texi:1316
  1667. 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}}."
  1668. msgstr ""
  1669. #. type: Plain text
  1670. #: guix-git/doc/contributing.texi:1319
  1671. msgid "If you use Emacs, you may find it more convenient to interact with issues using @file{debbugs.el}, which you can install with:"
  1672. msgstr ""
  1673. #. type: example
  1674. #: guix-git/doc/contributing.texi:1322
  1675. #, fuzzy, no-wrap
  1676. msgid "guix install emacs-debbugs\n"
  1677. msgstr "guix install emacs-guix\n"
  1678. #. type: Plain text
  1679. #: guix-git/doc/contributing.texi:1325
  1680. msgid "For example, to list all open issues on @code{guix-patches}, hit:"
  1681. msgstr ""
  1682. #. type: example
  1683. #: guix-git/doc/contributing.texi:1328
  1684. #, no-wrap
  1685. msgid "@kbd{C-u} @kbd{M-x} debbugs-gnu @kbd{RET} @kbd{RET} guix-patches @kbd{RET} n y\n"
  1686. msgstr ""
  1687. #. type: Plain text
  1688. #: guix-git/doc/contributing.texi:1332
  1689. #, fuzzy
  1690. msgid "@xref{Top,,, debbugs-ug, Debbugs User Guide}, for more information on this nifty tool!"
  1691. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  1692. #. type: cindex
  1693. #: guix-git/doc/contributing.texi:1336
  1694. #, no-wrap
  1695. msgid "usertags, for debbugs"
  1696. msgstr ""
  1697. #. type: cindex
  1698. #: guix-git/doc/contributing.texi:1337
  1699. #, no-wrap
  1700. msgid "Debbugs usertags"
  1701. msgstr ""
  1702. #. type: Plain text
  1703. #: guix-git/doc/contributing.texi:1343
  1704. 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.}."
  1705. msgstr ""
  1706. #. type: Plain text
  1707. #: guix-git/doc/contributing.texi:1349
  1708. 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}."
  1709. msgstr ""
  1710. #. type: Plain text
  1711. #: guix-git/doc/contributing.texi:1353
  1712. 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."
  1713. msgstr ""
  1714. #. type: Plain text
  1715. #: guix-git/doc/contributing.texi:1358
  1716. 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:"
  1717. msgstr ""
  1718. #. type: item
  1719. #: guix-git/doc/contributing.texi:1361 guix-git/doc/guix.texi:542
  1720. #, fuzzy, no-wrap
  1721. msgid "powerpc64le-linux"
  1722. msgstr "aarch64-linux"
  1723. #. type: table
  1724. #: guix-git/doc/contributing.texi:1369
  1725. 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."
  1726. msgstr ""
  1727. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  1728. #. type: item
  1729. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  1730. #. type: cindex
  1731. #: guix-git/doc/contributing.texi:1370 guix-git/doc/guix.texi:3045
  1732. #: guix-git/doc/guix.texi:4733
  1733. #, no-wrap
  1734. msgid "reproducibility"
  1735. msgstr ""
  1736. #. type: table
  1737. #: guix-git/doc/contributing.texi:1374
  1738. 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."
  1739. msgstr ""
  1740. #. type: Plain text
  1741. #: guix-git/doc/contributing.texi:1381
  1742. 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."
  1743. msgstr ""
  1744. #. type: cindex
  1745. #: guix-git/doc/contributing.texi:1385
  1746. #, no-wrap
  1747. msgid "commit access, for developers"
  1748. msgstr ""
  1749. #. type: Plain text
  1750. #: guix-git/doc/contributing.texi:1391
  1751. msgid "Everyone can contribute to Guix without having commit access (@pxref{Submitting Patches}). However, for frequent contributors, having write access to the repository can be convenient. Commit access should not be thought of as a ``badge of honor'' but rather as a responsibility a contributor is willing to take to help the project."
  1752. msgstr ""
  1753. #. type: Plain text
  1754. #: guix-git/doc/contributing.texi:1395
  1755. 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."
  1756. msgstr ""
  1757. #. type: subsection
  1758. #: guix-git/doc/contributing.texi:1396
  1759. #, fuzzy, no-wrap
  1760. #| msgid "Commit Access"
  1761. msgid "Applying for Commit Access"
  1762. msgstr "提交权利"
  1763. #. type: Plain text
  1764. #: guix-git/doc/contributing.texi:1400
  1765. msgid "When you deem it necessary, consider applying for commit access by following these steps:"
  1766. msgstr ""
  1767. #. type: enumerate
  1768. #: guix-git/doc/contributing.texi:1409
  1769. 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."
  1770. msgstr ""
  1771. #. type: enumerate
  1772. #: guix-git/doc/contributing.texi:1415
  1773. 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''."
  1774. msgstr ""
  1775. #. type: enumerate
  1776. #: guix-git/doc/contributing.texi:1422
  1777. 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."
  1778. msgstr ""
  1779. #. type: enumerate
  1780. #: guix-git/doc/contributing.texi:1428
  1781. 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}):"
  1782. msgstr ""
  1783. #. type: example
  1784. #: guix-git/doc/contributing.texi:1431
  1785. #, no-wrap
  1786. msgid "digest-algo sha512\n"
  1787. msgstr ""
  1788. #. type: enumerate
  1789. #: guix-git/doc/contributing.texi:1436
  1790. msgid "Maintainers ultimately decide whether to grant you commit access, usually following your referrals' recommendation."
  1791. msgstr ""
  1792. #. type: cindex
  1793. #: guix-git/doc/contributing.texi:1438
  1794. #, no-wrap
  1795. msgid "OpenPGP, signed commits"
  1796. msgstr ""
  1797. #. type: enumerate
  1798. #: guix-git/doc/contributing.texi:1443
  1799. 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."
  1800. msgstr ""
  1801. #. type: quotation
  1802. #: guix-git/doc/contributing.texi:1444 guix-git/doc/guix.texi:16976
  1803. #, no-wrap
  1804. msgid "Important"
  1805. msgstr ""
  1806. #. type: quotation
  1807. #: guix-git/doc/contributing.texi:1446
  1808. msgid "Before you can push for the first time, maintainers must:"
  1809. msgstr ""
  1810. #. type: enumerate
  1811. #: guix-git/doc/contributing.texi:1450
  1812. msgid "add your OpenPGP key to the @code{keyring} branch;"
  1813. msgstr ""
  1814. #. type: enumerate
  1815. #: guix-git/doc/contributing.texi:1453
  1816. msgid "add your OpenPGP fingerprint to the @file{.guix-authorizations} file of the branch(es) you will commit to."
  1817. msgstr ""
  1818. #. type: enumerate
  1819. #: guix-git/doc/contributing.texi:1458
  1820. msgid "Make sure to read the rest of this section and... profit!"
  1821. msgstr ""
  1822. #. type: quotation
  1823. #: guix-git/doc/contributing.texi:1464
  1824. 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!"
  1825. msgstr ""
  1826. #. type: quotation
  1827. #: guix-git/doc/contributing.texi:1468
  1828. 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!"
  1829. msgstr ""
  1830. #. type: Plain text
  1831. #: guix-git/doc/contributing.texi:1475
  1832. 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:"
  1833. msgstr ""
  1834. #. type: example
  1835. #: guix-git/doc/contributing.texi:1478
  1836. #, no-wrap
  1837. msgid ""
  1838. "git config commit.gpgsign true\n"
  1839. "\n"
  1840. msgstr ""
  1841. #. type: example
  1842. #: guix-git/doc/contributing.texi:1481
  1843. #, no-wrap
  1844. msgid ""
  1845. "# Substitute the fingerprint of your public PGP key.\n"
  1846. "git config user.signingkey CABBA6EA1DC0FF33\n"
  1847. msgstr ""
  1848. #. type: Plain text
  1849. #: guix-git/doc/contributing.texi:1486
  1850. 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}:"
  1851. msgstr ""
  1852. #. type: example
  1853. #: guix-git/doc/contributing.texi:1489
  1854. #, no-wrap
  1855. msgid "cp etc/git/pre-push .git/hooks/pre-push\n"
  1856. msgstr ""
  1857. #. type: subsection
  1858. #: guix-git/doc/contributing.texi:1491
  1859. #, fuzzy, no-wrap
  1860. #| msgid "Commit Access"
  1861. msgid "Commit Policy"
  1862. msgstr "提交权利"
  1863. #. type: Plain text
  1864. #: guix-git/doc/contributing.texi:1496
  1865. 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})."
  1866. msgstr ""
  1867. #. type: Plain text
  1868. #: guix-git/doc/contributing.texi:1501
  1869. 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})."
  1870. msgstr ""
  1871. #. type: Plain text
  1872. #: guix-git/doc/contributing.texi:1510
  1873. 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}."
  1874. msgstr ""
  1875. #. type: Plain text
  1876. #: guix-git/doc/contributing.texi:1515
  1877. 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."
  1878. msgstr ""
  1879. #. type: Plain text
  1880. #: guix-git/doc/contributing.texi:1519
  1881. 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:"
  1882. msgstr ""
  1883. #. type: example
  1884. #: guix-git/doc/contributing.texi:1522
  1885. #, fuzzy, no-wrap
  1886. msgid "make check-channel-news\n"
  1887. msgstr "make check\n"
  1888. #. type: Plain text
  1889. #: guix-git/doc/contributing.texi:1528
  1890. 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."
  1891. msgstr ""
  1892. #. type: Plain text
  1893. #: guix-git/doc/contributing.texi:1531
  1894. msgid "That last part is subject to being adjusted, allowing individuals to commit directly on non-controversial changes on parts they’re familiar with."
  1895. msgstr ""
  1896. #. type: subsection
  1897. #: guix-git/doc/contributing.texi:1532
  1898. #, no-wrap
  1899. msgid "Addressing Issues"
  1900. msgstr ""
  1901. #. type: Plain text
  1902. #: guix-git/doc/contributing.texi:1543
  1903. 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."
  1904. msgstr ""
  1905. #. type: Plain text
  1906. #: guix-git/doc/contributing.texi:1548
  1907. 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."
  1908. msgstr ""
  1909. #. type: cindex
  1910. #: guix-git/doc/contributing.texi:1549
  1911. #, no-wrap
  1912. msgid "reverting commits"
  1913. msgstr ""
  1914. #. type: Plain text
  1915. #: guix-git/doc/contributing.texi:1555
  1916. 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."
  1917. msgstr ""
  1918. #. type: Plain text
  1919. #: guix-git/doc/contributing.texi:1561
  1920. 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."
  1921. msgstr ""
  1922. #. type: Plain text
  1923. #: guix-git/doc/contributing.texi:1570
  1924. 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."
  1925. msgstr ""
  1926. #. type: subsection
  1927. #: guix-git/doc/contributing.texi:1571
  1928. #, fuzzy, no-wrap
  1929. #| msgid "Log Rotation"
  1930. msgid "Commit Revocation"
  1931. msgstr "日志轮替"
  1932. #. type: Plain text
  1933. #: guix-git/doc/contributing.texi:1578
  1934. 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."
  1935. msgstr ""
  1936. #. type: Plain text
  1937. #: guix-git/doc/contributing.texi:1588
  1938. 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:"
  1939. msgstr ""
  1940. #. type: item
  1941. #: guix-git/doc/contributing.texi:1590
  1942. #, no-wrap
  1943. msgid "repeated violation of the commit policy stated above;"
  1944. msgstr ""
  1945. #. type: item
  1946. #: guix-git/doc/contributing.texi:1591
  1947. #, no-wrap
  1948. msgid "repeated failure to take peer criticism into account;"
  1949. msgstr ""
  1950. #. type: item
  1951. #: guix-git/doc/contributing.texi:1592
  1952. #, no-wrap
  1953. msgid "breaching trust through a series of grave incidents."
  1954. msgstr ""
  1955. #. type: Plain text
  1956. #: guix-git/doc/contributing.texi:1599
  1957. 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."
  1958. msgstr ""
  1959. #. type: subsection
  1960. #: guix-git/doc/contributing.texi:1600
  1961. #, no-wrap
  1962. msgid "Helping Out"
  1963. msgstr ""
  1964. #. type: Plain text
  1965. #: guix-git/doc/contributing.texi:1607
  1966. 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!"
  1967. msgstr ""
  1968. #. type: cindex
  1969. #: guix-git/doc/contributing.texi:1611
  1970. #, fuzzy, no-wrap
  1971. msgid "update-guix-package, updating the guix package"
  1972. msgstr "guix package:调用guix package"
  1973. #. type: Plain text
  1974. #: guix-git/doc/contributing.texi:1617
  1975. 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:"
  1976. msgstr ""
  1977. #. type: example
  1978. #: guix-git/doc/contributing.texi:1620
  1979. #, no-wrap
  1980. msgid "make update-guix-package\n"
  1981. msgstr ""
  1982. #. type: Plain text
  1983. #: guix-git/doc/contributing.texi:1627
  1984. 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."
  1985. msgstr ""
  1986. #. type: Plain text
  1987. #: guix-git/doc/contributing.texi:1631
  1988. 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:"
  1989. msgstr ""
  1990. #. type: example
  1991. #: guix-git/doc/contributing.texi:1634
  1992. #, fuzzy, no-wrap
  1993. msgid "./pre-inst-env guix build guix\n"
  1994. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  1995. #. type: Plain text
  1996. #: guix-git/doc/contributing.texi:1639
  1997. 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."
  1998. msgstr ""
  1999. #. type: Plain text
  2000. #: guix-git/doc/contributing.texi:1644
  2001. 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."
  2002. msgstr ""
  2003. #. type: cindex
  2004. #: guix-git/doc/contributing.texi:1645
  2005. #, fuzzy, no-wrap
  2006. #| msgid "isolation"
  2007. msgid "translation"
  2008. msgstr "隔离"
  2009. #. type: cindex
  2010. #: guix-git/doc/contributing.texi:1646
  2011. #, no-wrap
  2012. msgid "l10n"
  2013. msgstr ""
  2014. #. type: cindex
  2015. #: guix-git/doc/contributing.texi:1647
  2016. #, no-wrap
  2017. msgid "i18n"
  2018. msgstr ""
  2019. #. type: cindex
  2020. #: guix-git/doc/contributing.texi:1648
  2021. #, no-wrap
  2022. msgid "native language support"
  2023. msgstr ""
  2024. #. type: Plain text
  2025. #: guix-git/doc/contributing.texi:1658
  2026. 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!"
  2027. msgstr ""
  2028. #. type: Plain text
  2029. #: guix-git/doc/contributing.texi:1664
  2030. 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."
  2031. msgstr ""
  2032. #. type: Plain text
  2033. #: guix-git/doc/contributing.texi:1671
  2034. 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."
  2035. msgstr ""
  2036. #. type: Plain text
  2037. #: guix-git/doc/contributing.texi:1676
  2038. 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}."
  2039. msgstr ""
  2040. #. type: Plain text
  2041. #: guix-git/doc/contributing.texi:1678
  2042. msgid "Guix has five components hosted on Weblate."
  2043. msgstr ""
  2044. #. type: item
  2045. #: guix-git/doc/contributing.texi:1680
  2046. #, no-wrap
  2047. msgid "@code{guix} contains all the strings from the Guix software (the"
  2048. msgstr ""
  2049. #. type: itemize
  2050. #: guix-git/doc/contributing.texi:1682
  2051. msgid "guided system installer, the package manager, etc), excluding packages."
  2052. msgstr ""
  2053. #. type: item
  2054. #: guix-git/doc/contributing.texi:1682
  2055. #, no-wrap
  2056. msgid "@code{packages} contains the synopsis (single-sentence description"
  2057. msgstr ""
  2058. #. type: itemize
  2059. #: guix-git/doc/contributing.texi:1684
  2060. msgid "of a package) and description (longer description) of packages in Guix."
  2061. msgstr ""
  2062. #. type: item
  2063. #: guix-git/doc/contributing.texi:1684
  2064. #, no-wrap
  2065. msgid "@code{website} contains the official Guix website, except for"
  2066. msgstr ""
  2067. #. type: itemize
  2068. #: guix-git/doc/contributing.texi:1686
  2069. msgid "blog posts and multimedia content."
  2070. msgstr ""
  2071. #. type: item
  2072. #: guix-git/doc/contributing.texi:1686
  2073. #, no-wrap
  2074. msgid "@code{documentation-manual} corresponds to this manual."
  2075. msgstr ""
  2076. #. type: item
  2077. #: guix-git/doc/contributing.texi:1687
  2078. #, no-wrap
  2079. msgid "@code{documentation-cookbook} is the component for the cookbook."
  2080. msgstr ""
  2081. #. type: subsubheading
  2082. #: guix-git/doc/contributing.texi:1690
  2083. #, no-wrap
  2084. msgid "General Directions"
  2085. msgstr ""
  2086. #. type: Plain text
  2087. #: guix-git/doc/contributing.texi:1698
  2088. 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."
  2089. msgstr ""
  2090. #. type: Plain text
  2091. #: guix-git/doc/contributing.texi:1703
  2092. 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."
  2093. msgstr ""
  2094. #. type: Plain text
  2095. #: guix-git/doc/contributing.texi:1714
  2096. 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."
  2097. msgstr ""
  2098. #. type: Plain text
  2099. #: guix-git/doc/contributing.texi:1719
  2100. 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."
  2101. msgstr ""
  2102. #. type: subsubheading
  2103. #: guix-git/doc/contributing.texi:1720
  2104. #, no-wrap
  2105. msgid "Translation Components"
  2106. msgstr ""
  2107. #. type: Plain text
  2108. #: guix-git/doc/contributing.texi:1725
  2109. 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!"
  2110. msgstr ""
  2111. #. type: item
  2112. #: guix-git/doc/contributing.texi:1727 guix-git/doc/guix.texi:8868
  2113. #, no-wrap
  2114. msgid "guix"
  2115. msgstr ""
  2116. #. type: table
  2117. #: guix-git/doc/contributing.texi:1732
  2118. 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."
  2119. msgstr ""
  2120. #. type: table
  2121. #: guix-git/doc/contributing.texi:1741
  2122. 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."
  2123. msgstr ""
  2124. #. type: table
  2125. #: guix-git/doc/contributing.texi:1745
  2126. 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."
  2127. msgstr ""
  2128. #. type: table
  2129. #: guix-git/doc/contributing.texi:1753
  2130. 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."
  2131. msgstr ""
  2132. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  2133. #. type: item
  2134. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  2135. #. type: cindex
  2136. #: guix-git/doc/contributing.texi:1754 guix-git/doc/guix.texi:2963
  2137. #, no-wrap
  2138. msgid "packages"
  2139. msgstr ""
  2140. #. type: table
  2141. #: guix-git/doc/contributing.texi:1759
  2142. 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."
  2143. msgstr ""
  2144. #. type: table
  2145. #: guix-git/doc/contributing.texi:1768
  2146. 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})."
  2147. msgstr ""
  2148. #. type: item
  2149. #: guix-git/doc/contributing.texi:1769
  2150. #, no-wrap
  2151. msgid "documentation-manual and documentation-cookbook"
  2152. msgstr ""
  2153. #. type: table
  2154. #: guix-git/doc/contributing.texi:1773
  2155. msgid "The first step to ensure a successful translation of the manual is to find and translate the following strings @emph{first}:"
  2156. msgstr ""
  2157. #. type: item
  2158. #: guix-git/doc/contributing.texi:1775
  2159. #, no-wrap
  2160. msgid "@code{version.texi}: Translate this string as @code{version-xx.texi},"
  2161. msgstr ""
  2162. #. type: itemize
  2163. #: guix-git/doc/contributing.texi:1778
  2164. msgid "where @code{xx} is your language code (the one shown in the URL on weblate)."
  2165. msgstr ""
  2166. #. type: item
  2167. #: guix-git/doc/contributing.texi:1778
  2168. #, no-wrap
  2169. msgid "@code{contributing.texi}: Translate this string as"
  2170. msgstr ""
  2171. #. type: itemize
  2172. #: guix-git/doc/contributing.texi:1780
  2173. msgid "@code{contributing.xx.texi}, where @code{xx} is the same language code."
  2174. msgstr ""
  2175. #. type: item
  2176. #: guix-git/doc/contributing.texi:1780
  2177. #, no-wrap
  2178. msgid "@code{Top}: Do not translate this string, it is important for Texinfo."
  2179. msgstr ""
  2180. #. type: itemize
  2181. #: guix-git/doc/contributing.texi:1783
  2182. 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."
  2183. msgstr ""
  2184. #. type: table
  2185. #: guix-git/doc/contributing.texi:1788
  2186. 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."
  2187. msgstr ""
  2188. #. type: table
  2189. #: guix-git/doc/contributing.texi:1795
  2190. 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."
  2191. msgstr ""
  2192. #. type: table
  2193. #: guix-git/doc/contributing.texi:1803
  2194. 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."
  2195. msgstr ""
  2196. #. type: table
  2197. #: guix-git/doc/contributing.texi:1813
  2198. 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."
  2199. msgstr ""
  2200. #. type: item
  2201. #: guix-git/doc/contributing.texi:1814
  2202. #, fuzzy, no-wrap
  2203. #| msgid "official website"
  2204. msgid "website"
  2205. msgstr "官方网站"
  2206. #. type: table
  2207. #: guix-git/doc/contributing.texi:1821
  2208. 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."
  2209. msgstr ""
  2210. #. type: example
  2211. #: guix-git/doc/contributing.texi:1828
  2212. #, no-wrap
  2213. msgid ""
  2214. "#. TRANSLATORS: Defining Packages is a section name\n"
  2215. "#. in the English (en) manual.\n"
  2216. "#: apps/base/templates/about.scm:64\n"
  2217. "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"
  2218. "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"
  2219. msgstr ""
  2220. #. type: table
  2221. #: guix-git/doc/contributing.texi:1831
  2222. msgid "Note that you need to include the same markups. You cannot skip any."
  2223. msgstr ""
  2224. #. type: Plain text
  2225. #: guix-git/doc/contributing.texi:1839
  2226. 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."
  2227. msgstr ""
  2228. #. type: subsubheading
  2229. #: guix-git/doc/contributing.texi:1840
  2230. #, no-wrap
  2231. msgid "Outside of Weblate"
  2232. msgstr ""
  2233. #. type: Plain text
  2234. #: guix-git/doc/contributing.texi:1843
  2235. msgid "Currently, some parts of Guix cannot be translated on Weblate, help wanted!"
  2236. msgstr ""
  2237. #. type: item
  2238. #: guix-git/doc/contributing.texi:1845
  2239. #, no-wrap
  2240. msgid "@command{guix pull} news can be translated in @file{news.scm}, but is not"
  2241. msgstr ""
  2242. #. type: itemize
  2243. #: guix-git/doc/contributing.texi:1851
  2244. 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."
  2245. msgstr ""
  2246. #. type: item
  2247. #: guix-git/doc/contributing.texi:1851
  2248. #, no-wrap
  2249. msgid "Guix blog posts cannot currently be translated."
  2250. msgstr ""
  2251. #. type: item
  2252. #: guix-git/doc/contributing.texi:1852
  2253. #, no-wrap
  2254. msgid "The installer script (for foreign distributions) is entirely in English."
  2255. msgstr ""
  2256. #. type: item
  2257. #: guix-git/doc/contributing.texi:1853
  2258. #, no-wrap
  2259. msgid "Some of the libraries Guix uses cannot be translated or are translated"
  2260. msgstr ""
  2261. #. type: itemize
  2262. #: guix-git/doc/contributing.texi:1855
  2263. msgid "outside of the Guix project. Guile itself is not internationalized."
  2264. msgstr ""
  2265. #. type: item
  2266. #: guix-git/doc/contributing.texi:1855
  2267. #, no-wrap
  2268. msgid "Other manuals linked from this manual or the cookbook might not be"
  2269. msgstr ""
  2270. #. type: itemize
  2271. #: guix-git/doc/contributing.texi:1857
  2272. msgid "translated."
  2273. msgstr ""
  2274. #. type: subsubheading
  2275. #: guix-git/doc/contributing.texi:1859
  2276. #, no-wrap
  2277. msgid "Translation Infrastructure"
  2278. msgstr ""
  2279. #. type: Plain text
  2280. #: guix-git/doc/contributing.texi:1870
  2281. 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."
  2282. msgstr ""
  2283. #. type: Plain text
  2284. #: guix-git/doc/contributing.texi:1874
  2285. 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."
  2286. msgstr ""
  2287. #. type: Plain text
  2288. #: guix-git/doc/contributing.texi:1880
  2289. 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."
  2290. msgstr ""
  2291. #. type: Plain text
  2292. #: guix-git/doc/contributing.texi:1884
  2293. 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."
  2294. msgstr ""
  2295. #. type: item
  2296. #: guix-git/doc/contributing.texi:1886
  2297. #, no-wrap
  2298. msgid "New po files for the @code{guix} and @code{packages} components must"
  2299. msgstr ""
  2300. #. type: itemize
  2301. #: guix-git/doc/contributing.texi:1889
  2302. msgid "be registered by adding the new language to @file{po/guix/LINGUAS} or @file{po/packages/LINGUAS}."
  2303. msgstr ""
  2304. #. type: item
  2305. #: guix-git/doc/contributing.texi:1889
  2306. #, no-wrap
  2307. msgid "New po files for the @code{documentation-manual} component must be"
  2308. msgstr ""
  2309. #. type: itemize
  2310. #: guix-git/doc/contributing.texi:1895
  2311. 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}."
  2312. msgstr ""
  2313. #. type: item
  2314. #: guix-git/doc/contributing.texi:1895
  2315. #, no-wrap
  2316. msgid "New po files for the @code{documentation-cookbook} component must be"
  2317. msgstr ""
  2318. #. type: itemize
  2319. #: guix-git/doc/contributing.texi:1901
  2320. 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}."
  2321. msgstr ""
  2322. #. type: item
  2323. #: guix-git/doc/contributing.texi:1901
  2324. #, no-wrap
  2325. msgid "New po files for the @code{website} component must be added to the"
  2326. msgstr ""
  2327. #. type: itemize
  2328. #: guix-git/doc/contributing.texi:1906
  2329. 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)."
  2330. msgstr ""
  2331. #. type: Plain text
  2332. #: guix-git/doc/guix.texi:7
  2333. msgid "@documentencoding UTF-8"
  2334. msgstr "@documentencoding UTF-8"
  2335. #. type: title
  2336. #: guix-git/doc/guix.texi:7 guix-git/doc/guix.texi:128
  2337. #, no-wrap
  2338. msgid "GNU Guix Reference Manual"
  2339. msgstr "GNU Guix 参考手册"
  2340. #. type: include
  2341. #: guix-git/doc/guix.texi:10
  2342. #, no-wrap
  2343. msgid "version.texi"
  2344. msgstr "version-zh_CN.texi"
  2345. #. type: copying
  2346. #: guix-git/doc/guix.texi:101
  2347. msgid "Copyright @copyright{} 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès@* Copyright @copyright{} 2013, 2014, 2016 Andreas Enge@* Copyright @copyright{} 2013 Nikita Karetnikov@* Copyright @copyright{} 2014, 2015, 2016 Alex Kost@* Copyright @copyright{} 2015, 2016 Mathieu Lirzin@* Copyright @copyright{} 2014 Pierre-Antoine Rault@* Copyright @copyright{} 2015 Taylan Ulrich Bayırlı/Kammer@* Copyright @copyright{} 2015, 2016, 2017, 2019, 2020, 2021 Leo Famulari@* Copyright @copyright{} 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus@* Copyright @copyright{} 2016 Ben Woodcroft@* Copyright @copyright{} 2016, 2017, 2018, 2021 Chris Marusich@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner@* Copyright @copyright{} 2016 John Darrington@* Copyright @copyright{} 2016, 2017 Nikita Gillmann@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020 Jan Nieuwenhuizen@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Julien Lepiller@* Copyright @copyright{} 2016 Alex ter Weele@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Christopher Baines@* Copyright @copyright{} 2017, 2018, 2019 Clément Lassieur@* Copyright @copyright{} 2017, 2018, 2020, 2021 Mathieu Othacehe@* Copyright @copyright{} 2017 Federico Beffa@* Copyright @copyright{} 2017, 2018 Carlo Zancanaro@* Copyright @copyright{} 2017 Thomas Danckaert@* Copyright @copyright{} 2017 humanitiesNerd@* Copyright @copyright{} 2017, 2021 Christine Lemmer-Webber@* Copyright @copyright{} 2017, 2018, 2019, 2020, 2021 Marius Bakke@* Copyright @copyright{} 2017, 2019, 2020 Hartmut Goebel@* Copyright @copyright{} 2017, 2019, 2020, 2021 Maxim Cournoyer@* Copyright @copyright{} 2017, 2018, 2019, 2020, 2021 Tobias Geerinckx-Rice@* Copyright @copyright{} 2017 George Clemmer@* Copyright @copyright{} 2017 Andy Wingo@* Copyright @copyright{} 2017, 2018, 2019, 2020 Arun Isaac@* Copyright @copyright{} 2017 nee@* Copyright @copyright{} 2018 Rutger Helling@* Copyright @copyright{} 2018, 2021 Oleg Pykhalov@* Copyright @copyright{} 2018 Mike Gerwitz@* Copyright @copyright{} 2018 Pierre-Antoine Rouby@* Copyright @copyright{} 2018, 2019 Gábor Boskovits@* Copyright @copyright{} 2018, 2019, 2020 Florian Pelz@* Copyright @copyright{} 2018 Laura Lazzati@* Copyright @copyright{} 2018 Alex Vong@* Copyright @copyright{} 2019 Josh Holland@* Copyright @copyright{} 2019, 2020 Diego Nicola Barbato@* Copyright @copyright{} 2019 Ivan Petkov@* Copyright @copyright{} 2019 Jakob L. Kreuze@* Copyright @copyright{} 2019 Kyle Andrews@* Copyright @copyright{} 2019 Alex Griffin@* Copyright @copyright{} 2019, 2020, 2021 Guillaume Le Vaillant@* Copyright @copyright{} 2020 Liliana Marie Prikler@* Copyright @copyright{} 2019, 2020 Simon Tournier@* Copyright @copyright{} 2020 Wiktor Żelazny@* Copyright @copyright{} 2020 Damien Cassou@* Copyright @copyright{} 2020 Jakub Kądziołka@* Copyright @copyright{} 2020 Jack Hill@* Copyright @copyright{} 2020 Naga Malleswari@* Copyright @copyright{} 2020, 2021 Brice Waegeneire@* Copyright @copyright{} 2020 R Veera Kumar@* Copyright @copyright{} 2020, 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 Andrew Tropin@* Copyright @copyright{} 2021 Sarah Morgensen@*"
  2348. msgstr ""
  2349. #. type: copying
  2350. #: guix-git/doc/guix.texi:108
  2351. 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''."
  2352. 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''."
  2353. #. type: dircategory
  2354. #: guix-git/doc/guix.texi:110
  2355. #, no-wrap
  2356. msgid "System administration"
  2357. msgstr "系统管理"
  2358. #. type: menuentry
  2359. #: guix-git/doc/guix.texi:118
  2360. msgid "Guix: (guix)"
  2361. msgstr "Guix:(guix)"
  2362. #. type: menuentry
  2363. #: guix-git/doc/guix.texi:118
  2364. msgid "Manage installed software and system configuration."
  2365. msgstr "管理安装的软件和系统配置。"
  2366. #. type: menuentry
  2367. #: guix-git/doc/guix.texi:118
  2368. msgid "guix package: (guix)Invoking guix package"
  2369. msgstr "guix package:调用guix package"
  2370. #. type: menuentry
  2371. #: guix-git/doc/guix.texi:118
  2372. msgid "Installing, removing, and upgrading packages."
  2373. msgstr "安装、删除和升级软件包。"
  2374. #. type: menuentry
  2375. #: guix-git/doc/guix.texi:118
  2376. msgid "guix gc: (guix)Invoking guix gc"
  2377. msgstr "guix gc:调用guix gc"
  2378. #. type: menuentry
  2379. #: guix-git/doc/guix.texi:118
  2380. msgid "Reclaiming unused disk space."
  2381. msgstr "回收不使用的硬盘空间。"
  2382. #. type: menuentry
  2383. #: guix-git/doc/guix.texi:118
  2384. msgid "guix pull: (guix)Invoking guix pull"
  2385. msgstr "guix pull:调用guix pull"
  2386. #. type: menuentry
  2387. #: guix-git/doc/guix.texi:118
  2388. msgid "Update the list of available packages."
  2389. msgstr "更新可用的软件包列表。"
  2390. #. type: menuentry
  2391. #: guix-git/doc/guix.texi:118
  2392. msgid "guix system: (guix)Invoking guix system"
  2393. msgstr "guix system:调用guix system"
  2394. #. type: menuentry
  2395. #: guix-git/doc/guix.texi:118
  2396. msgid "Manage the operating system configuration."
  2397. msgstr "管理操作系统配置。"
  2398. #. type: menuentry
  2399. #: guix-git/doc/guix.texi:118
  2400. #, fuzzy
  2401. msgid "guix deploy: (guix)Invoking guix deploy"
  2402. msgstr "guix pull:调用guix pull"
  2403. #. type: menuentry
  2404. #: guix-git/doc/guix.texi:118
  2405. #, fuzzy
  2406. msgid "Manage operating system configurations for remote hosts."
  2407. msgstr "管理操作系统配置。"
  2408. #. type: dircategory
  2409. #: guix-git/doc/guix.texi:120
  2410. #, no-wrap
  2411. msgid "Software development"
  2412. msgstr "软件开发"
  2413. #. type: menuentry
  2414. #: guix-git/doc/guix.texi:125
  2415. msgid "guix environment: (guix)Invoking guix environment"
  2416. msgstr "guix environment:调用guix environment"
  2417. #. type: menuentry
  2418. #: guix-git/doc/guix.texi:125
  2419. msgid "Building development environments with Guix."
  2420. msgstr "用Guix构建开发环境。"
  2421. #. type: menuentry
  2422. #: guix-git/doc/guix.texi:125
  2423. msgid "guix build: (guix)Invoking guix build"
  2424. msgstr "guix build:(guix)调用guix build"
  2425. #. type: menuentry
  2426. #: guix-git/doc/guix.texi:125
  2427. msgid "Building packages."
  2428. msgstr "构建软件包。"
  2429. #. type: menuentry
  2430. #: guix-git/doc/guix.texi:125
  2431. msgid "guix pack: (guix)Invoking guix pack"
  2432. msgstr "guix pack:(guix)调用guix pack"
  2433. #. type: menuentry
  2434. #: guix-git/doc/guix.texi:125
  2435. msgid "Creating binary bundles."
  2436. msgstr "创建二进制bundle。"
  2437. #. type: subtitle
  2438. #: guix-git/doc/guix.texi:129
  2439. #, no-wrap
  2440. msgid "Using the GNU Guix Functional Package Manager"
  2441. msgstr "使用GNU Guix函数式包管理器"
  2442. #. type: author
  2443. #: guix-git/doc/guix.texi:130
  2444. #, no-wrap
  2445. msgid "The GNU Guix Developers"
  2446. msgstr "GNU Guix开发者"
  2447. #. type: titlepage
  2448. #: guix-git/doc/guix.texi:136
  2449. msgid "Edition @value{EDITION} @* @value{UPDATED} @*"
  2450. msgstr "版本@value{EDITION} @* @value{UPDATED} @*"
  2451. #. type: node
  2452. #: guix-git/doc/guix.texi:143
  2453. #, no-wrap
  2454. msgid "Top"
  2455. msgstr "Top"
  2456. #. type: top
  2457. #: guix-git/doc/guix.texi:144
  2458. #, no-wrap
  2459. msgid "GNU Guix"
  2460. msgstr "GNU Guix"
  2461. #. type: Plain text
  2462. #: guix-git/doc/guix.texi:148
  2463. msgid "This document describes GNU Guix version @value{VERSION}, a functional package management tool written for the GNU system."
  2464. msgstr "这份文档介绍GNU Guix版本@value{VERSION},一个为GNU系统编写的函数式包管理器。"
  2465. #. type: Plain text
  2466. #: guix-git/doc/guix.texi:160
  2467. #, fuzzy
  2468. 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})."
  2469. 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}。"
  2470. #. type: chapter
  2471. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:189
  2472. #: guix-git/doc/guix.texi:394 guix-git/doc/guix.texi:395
  2473. #, no-wrap
  2474. msgid "Introduction"
  2475. msgstr "介绍"
  2476. #. type: menuentry
  2477. #: guix-git/doc/guix.texi:179
  2478. msgid "What is Guix about?"
  2479. msgstr "Guix是关于什么的?"
  2480. #. type: chapter
  2481. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:194
  2482. #: guix-git/doc/guix.texi:575 guix-git/doc/guix.texi:576
  2483. #, no-wrap
  2484. msgid "Installation"
  2485. msgstr "安装"
  2486. #. type: menuentry
  2487. #: guix-git/doc/guix.texi:179
  2488. msgid "Installing Guix."
  2489. msgstr "安装Guix。"
  2490. #. type: chapter
  2491. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:210
  2492. #: guix-git/doc/guix.texi:2034 guix-git/doc/guix.texi:2035
  2493. #, no-wrap
  2494. msgid "System Installation"
  2495. msgstr "系统安装"
  2496. #. type: menuentry
  2497. #: guix-git/doc/guix.texi:179
  2498. msgid "Installing the whole operating system."
  2499. msgstr "安装整个操作系统。"
  2500. #. type: chapter
  2501. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:2752
  2502. #: guix-git/doc/guix.texi:2753
  2503. #, no-wrap
  2504. msgid "Getting Started"
  2505. msgstr "入门"
  2506. #. type: menuentry
  2507. #: guix-git/doc/guix.texi:179
  2508. msgid "Your first steps."
  2509. msgstr ""
  2510. #. type: chapter
  2511. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:227
  2512. #: guix-git/doc/guix.texi:2960 guix-git/doc/guix.texi:2961
  2513. #, no-wrap
  2514. msgid "Package Management"
  2515. msgstr "软件包管理"
  2516. #. type: menuentry
  2517. #: guix-git/doc/guix.texi:179
  2518. msgid "Package installation, upgrade, etc."
  2519. msgstr "软件包安装、升级等。"
  2520. #. type: chapter
  2521. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:250
  2522. #: guix-git/doc/guix.texi:5015 guix-git/doc/guix.texi:5016
  2523. #, no-wrap
  2524. msgid "Channels"
  2525. msgstr "通道"
  2526. #. type: menuentry
  2527. #: guix-git/doc/guix.texi:179
  2528. msgid "Customizing the package collection."
  2529. msgstr "定制软件包集合。"
  2530. #. type: chapter
  2531. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:264
  2532. #: guix-git/doc/guix.texi:5543 guix-git/doc/guix.texi:5544
  2533. #, no-wrap
  2534. msgid "Development"
  2535. msgstr "开发"
  2536. #. type: menuentry
  2537. #: guix-git/doc/guix.texi:179
  2538. msgid "Guix-aided software development."
  2539. msgstr "Guix辅助的软件开发。"
  2540. #. type: chapter
  2541. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:271
  2542. #: guix-git/doc/guix.texi:6398 guix-git/doc/guix.texi:6399
  2543. #, no-wrap
  2544. msgid "Programming Interface"
  2545. msgstr "编程接口"
  2546. #. type: menuentry
  2547. #: guix-git/doc/guix.texi:179
  2548. msgid "Using Guix in Scheme."
  2549. msgstr "在Scheme里使用Guix。"
  2550. #. type: chapter
  2551. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:290
  2552. #: guix-git/doc/guix.texi:10222 guix-git/doc/guix.texi:10223
  2553. #, no-wrap
  2554. msgid "Utilities"
  2555. msgstr "工具"
  2556. #. type: menuentry
  2557. #: guix-git/doc/guix.texi:179
  2558. msgid "Package management commands."
  2559. msgstr "软件包管理命令。"
  2560. #. type: chapter
  2561. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:315
  2562. #: guix-git/doc/guix.texi:13538 guix-git/doc/guix.texi:13539
  2563. #, no-wrap
  2564. msgid "System Configuration"
  2565. msgstr "系统配置"
  2566. #. type: menuentry
  2567. #: guix-git/doc/guix.texi:179
  2568. msgid "Configuring the operating system."
  2569. msgstr "配置操作系统。"
  2570. #. type: chapter
  2571. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:35367
  2572. #: guix-git/doc/guix.texi:35368
  2573. #, fuzzy, no-wrap
  2574. #| msgid "System Configuration"
  2575. msgid "Home Configuration"
  2576. msgstr "系统配置"
  2577. #. type: menuentry
  2578. #: guix-git/doc/guix.texi:179
  2579. #, fuzzy
  2580. #| msgid "Configuring the boot loader."
  2581. msgid "Configuring the home environment."
  2582. msgstr "设置引导程序。"
  2583. #. type: chapter
  2584. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:36108
  2585. #: guix-git/doc/guix.texi:36109
  2586. #, no-wrap
  2587. msgid "Documentation"
  2588. msgstr "文档"
  2589. #. type: menuentry
  2590. #: guix-git/doc/guix.texi:179
  2591. msgid "Browsing software user manuals."
  2592. msgstr "浏览软件用户手册。"
  2593. #. type: chapter
  2594. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:381
  2595. #: guix-git/doc/guix.texi:36172 guix-git/doc/guix.texi:36173
  2596. #, no-wrap
  2597. msgid "Installing Debugging Files"
  2598. msgstr "安装调试文件"
  2599. #. type: menuentry
  2600. #: guix-git/doc/guix.texi:179
  2601. msgid "Feeding the debugger."
  2602. msgstr "为调试工具提供输入。"
  2603. #. type: chapter
  2604. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:36313
  2605. #: guix-git/doc/guix.texi:36314
  2606. #, no-wrap
  2607. msgid "Security Updates"
  2608. msgstr "安全更新"
  2609. #. type: menuentry
  2610. #: guix-git/doc/guix.texi:179
  2611. msgid "Deploying security fixes quickly."
  2612. msgstr "快速部署安全补丁。"
  2613. #. type: chapter
  2614. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:386
  2615. #: guix-git/doc/guix.texi:36428 guix-git/doc/guix.texi:36429
  2616. #, no-wrap
  2617. msgid "Bootstrapping"
  2618. msgstr "引导"
  2619. #. type: menuentry
  2620. #: guix-git/doc/guix.texi:179
  2621. msgid "GNU/Linux built from scratch."
  2622. msgstr "从头开始构建GNU/Linux。"
  2623. #. type: node
  2624. #: guix-git/doc/guix.texi:179 guix-git/doc/guix.texi:36720
  2625. #, no-wrap
  2626. msgid "Porting"
  2627. msgstr "移植"
  2628. #. type: menuentry
  2629. #: guix-git/doc/guix.texi:179
  2630. msgid "Targeting another platform or kernel."
  2631. msgstr "以别的平台或内核为目标。"
  2632. #. type: menuentry
  2633. #: guix-git/doc/guix.texi:179
  2634. msgid "Your help needed!"
  2635. msgstr "你需要帮助!"
  2636. #. type: chapter
  2637. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:36768
  2638. #: guix-git/doc/guix.texi:36769
  2639. #, no-wrap
  2640. msgid "Acknowledgments"
  2641. msgstr "致谢"
  2642. #. type: menuentry
  2643. #: guix-git/doc/guix.texi:184
  2644. msgid "Thanks!"
  2645. msgstr "感谢!"
  2646. #. type: appendix
  2647. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:36790
  2648. #: guix-git/doc/guix.texi:36791
  2649. #, no-wrap
  2650. msgid "GNU Free Documentation License"
  2651. msgstr "GNU自由文档许可证"
  2652. #. type: menuentry
  2653. #: guix-git/doc/guix.texi:184
  2654. msgid "The license of this manual."
  2655. msgstr "这个用户手册的许可证。"
  2656. #. type: unnumbered
  2657. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:36796
  2658. #: guix-git/doc/guix.texi:36797
  2659. #, no-wrap
  2660. msgid "Concept Index"
  2661. msgstr "概念索引"
  2662. #. type: menuentry
  2663. #: guix-git/doc/guix.texi:184
  2664. msgid "Concepts."
  2665. msgstr "概念。"
  2666. #. type: unnumbered
  2667. #: guix-git/doc/guix.texi:184 guix-git/doc/guix.texi:36800
  2668. #: guix-git/doc/guix.texi:36801
  2669. #, no-wrap
  2670. msgid "Programming Index"
  2671. msgstr "编程索引"
  2672. #. type: menuentry
  2673. #: guix-git/doc/guix.texi:184
  2674. msgid "Data types, functions, and variables."
  2675. msgstr "数据类型、函数和变量。"
  2676. #. type: menuentry
  2677. #: guix-git/doc/guix.texi:187
  2678. msgid "--- The Detailed Node Listing ---"
  2679. msgstr "---详细的章节列表---"
  2680. #. type: section
  2681. #: guix-git/doc/guix.texi:192 guix-git/doc/guix.texi:421
  2682. #: guix-git/doc/guix.texi:423 guix-git/doc/guix.texi:424
  2683. #, no-wrap
  2684. msgid "Managing Software the Guix Way"
  2685. msgstr "以Guix的方式管理软件"
  2686. #. type: menuentry
  2687. #: guix-git/doc/guix.texi:192 guix-git/doc/guix.texi:421
  2688. msgid "What's special."
  2689. msgstr "特殊的地方。"
  2690. #. type: section
  2691. #: guix-git/doc/guix.texi:192 guix-git/doc/guix.texi:421
  2692. #: guix-git/doc/guix.texi:478 guix-git/doc/guix.texi:479
  2693. #, no-wrap
  2694. msgid "GNU Distribution"
  2695. msgstr "GNU发行版"
  2696. #. type: menuentry
  2697. #: guix-git/doc/guix.texi:192 guix-git/doc/guix.texi:421
  2698. msgid "The packages and tools."
  2699. msgstr "软件包和工具。"
  2700. #. type: section
  2701. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2702. #: guix-git/doc/guix.texi:617 guix-git/doc/guix.texi:618
  2703. #, no-wrap
  2704. msgid "Binary Installation"
  2705. msgstr "二进制文件安装"
  2706. #. type: menuentry
  2707. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2708. msgid "Getting Guix running in no time!"
  2709. msgstr "立刻运行Guix!"
  2710. #. type: section
  2711. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2712. #: guix-git/doc/guix.texi:857 guix-git/doc/guix.texi:858
  2713. #, no-wrap
  2714. msgid "Requirements"
  2715. msgstr "需求"
  2716. #. type: menuentry
  2717. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2718. msgid "Software needed to build and run Guix."
  2719. msgstr "构建和运行Guix需要的软件。"
  2720. #. type: section
  2721. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2722. #: guix-git/doc/guix.texi:943 guix-git/doc/guix.texi:944
  2723. #, no-wrap
  2724. msgid "Running the Test Suite"
  2725. msgstr "运行测试套件"
  2726. #. type: menuentry
  2727. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2728. msgid "Testing Guix."
  2729. msgstr "测试Guix。"
  2730. #. type: section
  2731. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:204
  2732. #: guix-git/doc/guix.texi:615 guix-git/doc/guix.texi:1040
  2733. #: guix-git/doc/guix.texi:1041
  2734. #, no-wrap
  2735. msgid "Setting Up the Daemon"
  2736. msgstr "设置后台进程"
  2737. #. type: menuentry
  2738. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2739. msgid "Preparing the build daemon's environment."
  2740. msgstr "准备“构建后台进程”的环境。"
  2741. #. type: node
  2742. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2743. #: guix-git/doc/guix.texi:1510
  2744. #, no-wrap
  2745. msgid "Invoking guix-daemon"
  2746. msgstr "调用guix-daemon"
  2747. #. type: menuentry
  2748. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2749. msgid "Running the build daemon."
  2750. msgstr "运行“构建后台进程”"
  2751. #. type: section
  2752. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2753. #: guix-git/doc/guix.texi:1812 guix-git/doc/guix.texi:1813
  2754. #, no-wrap
  2755. msgid "Application Setup"
  2756. msgstr "设置应用程序"
  2757. #. type: menuentry
  2758. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2759. msgid "Application-specific setup."
  2760. msgstr "应用程序相关的设置。"
  2761. #. type: section
  2762. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2763. #: guix-git/doc/guix.texi:1997 guix-git/doc/guix.texi:1998
  2764. #, fuzzy, no-wrap
  2765. msgid "Upgrading Guix"
  2766. msgstr "安装Guix"
  2767. #. type: menuentry
  2768. #: guix-git/doc/guix.texi:202 guix-git/doc/guix.texi:615
  2769. msgid "Upgrading Guix and its build daemon."
  2770. msgstr "升级 Guix 及其构建守护进程。"
  2771. #. type: subsection
  2772. #: guix-git/doc/guix.texi:208 guix-git/doc/guix.texi:1060
  2773. #: guix-git/doc/guix.texi:1062 guix-git/doc/guix.texi:1063
  2774. #, no-wrap
  2775. msgid "Build Environment Setup"
  2776. msgstr "设置构建环境"
  2777. #. type: menuentry
  2778. #: guix-git/doc/guix.texi:208 guix-git/doc/guix.texi:1060
  2779. msgid "Preparing the isolated build environment."
  2780. msgstr "准备隔离的构建环境。"
  2781. #. type: node
  2782. #: guix-git/doc/guix.texi:208 guix-git/doc/guix.texi:1060
  2783. #: guix-git/doc/guix.texi:1181
  2784. #, no-wrap
  2785. msgid "Daemon Offload Setup"
  2786. msgstr "下发工作给后台进程的设置"
  2787. #. type: menuentry
  2788. #: guix-git/doc/guix.texi:208 guix-git/doc/guix.texi:1060
  2789. msgid "Offloading builds to remote machines."
  2790. msgstr "下发构建工作给远程的机器。"
  2791. #. type: subsection
  2792. #: guix-git/doc/guix.texi:208 guix-git/doc/guix.texi:1060
  2793. #: guix-git/doc/guix.texi:1419 guix-git/doc/guix.texi:1420
  2794. #, no-wrap
  2795. msgid "SELinux Support"
  2796. msgstr "SELinux的支持"
  2797. #. type: menuentry
  2798. #: guix-git/doc/guix.texi:208 guix-git/doc/guix.texi:1060
  2799. msgid "Using an SELinux policy for the daemon."
  2800. msgstr "为后台进程使用SELinux规则。"
  2801. #. type: section
  2802. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:1455
  2803. #: guix-git/doc/guix.texi:2068 guix-git/doc/guix.texi:2070
  2804. #: guix-git/doc/guix.texi:2071
  2805. #, no-wrap
  2806. msgid "Limitations"
  2807. msgstr "限制"
  2808. #. type: menuentry
  2809. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2810. msgid "What you can expect."
  2811. msgstr "你可以期待什么。"
  2812. #. type: section
  2813. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2814. #: guix-git/doc/guix.texi:2096 guix-git/doc/guix.texi:2097
  2815. #, no-wrap
  2816. msgid "Hardware Considerations"
  2817. msgstr "硬件的考虑"
  2818. #. type: menuentry
  2819. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2820. msgid "Supported hardware."
  2821. msgstr "支持的硬件。"
  2822. #. type: section
  2823. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2824. #: guix-git/doc/guix.texi:2131 guix-git/doc/guix.texi:2132
  2825. #, no-wrap
  2826. msgid "USB Stick and DVD Installation"
  2827. msgstr "U盘和DVD安装"
  2828. #. type: menuentry
  2829. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2830. msgid "Preparing the installation medium."
  2831. msgstr "准备安装介质。"
  2832. #. type: section
  2833. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2834. #: guix-git/doc/guix.texi:2212 guix-git/doc/guix.texi:2213
  2835. #, no-wrap
  2836. msgid "Preparing for Installation"
  2837. msgstr "准备安装"
  2838. #. type: menuentry
  2839. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2840. msgid "Networking, partitioning, etc."
  2841. msgstr "网络、分区等。"
  2842. #. type: section
  2843. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2844. #: guix-git/doc/guix.texi:2235 guix-git/doc/guix.texi:2236
  2845. #, no-wrap
  2846. msgid "Guided Graphical Installation"
  2847. msgstr "指导的图形安装"
  2848. #. type: menuentry
  2849. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2850. msgid "Easy graphical installation."
  2851. msgstr "简单的图形安装。"
  2852. #. type: section
  2853. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:222
  2854. #: guix-git/doc/guix.texi:2068 guix-git/doc/guix.texi:2266
  2855. #: guix-git/doc/guix.texi:2267
  2856. #, no-wrap
  2857. msgid "Manual Installation"
  2858. msgstr "手动安装"
  2859. #. type: menuentry
  2860. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2861. msgid "Manual installation for wizards."
  2862. msgstr "适合巫师的手动安装。"
  2863. #. type: section
  2864. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2865. #: guix-git/doc/guix.texi:2635 guix-git/doc/guix.texi:2636
  2866. #, no-wrap
  2867. msgid "After System Installation"
  2868. msgstr "系统安装之后"
  2869. #. type: menuentry
  2870. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2871. msgid "When installation succeeded."
  2872. msgstr "当安装成功后。"
  2873. #. type: node
  2874. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2875. #: guix-git/doc/guix.texi:2669
  2876. #, no-wrap
  2877. msgid "Installing Guix in a VM"
  2878. msgstr "在虚拟机里安装 Guix"
  2879. #. type: menuentry
  2880. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2881. msgid "Guix System playground."
  2882. msgstr "Guix系统游乐场。"
  2883. #. type: section
  2884. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2885. #: guix-git/doc/guix.texi:2720 guix-git/doc/guix.texi:2721
  2886. #, no-wrap
  2887. msgid "Building the Installation Image"
  2888. msgstr "构建安装镜像"
  2889. #. type: menuentry
  2890. #: guix-git/doc/guix.texi:220 guix-git/doc/guix.texi:2068
  2891. msgid "How this comes to be."
  2892. msgstr "这是怎样实现的。"
  2893. #. type: node
  2894. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2284
  2895. #: guix-git/doc/guix.texi:2286
  2896. #, no-wrap
  2897. msgid "Keyboard Layout and Networking and Partitioning"
  2898. msgstr "键盘布局、网络和分区"
  2899. #. type: menuentry
  2900. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2284
  2901. msgid "Initial setup."
  2902. msgstr "初始设置。"
  2903. #. type: subsection
  2904. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2284
  2905. #: guix-git/doc/guix.texi:2546 guix-git/doc/guix.texi:2547
  2906. #, no-wrap
  2907. msgid "Proceeding with the Installation"
  2908. msgstr "继续安装步骤"
  2909. #. type: menuentry
  2910. #: guix-git/doc/guix.texi:225 guix-git/doc/guix.texi:2284
  2911. msgid "Installing."
  2912. msgstr "安装。"
  2913. #. type: section
  2914. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2915. #: guix-git/doc/guix.texi:2994 guix-git/doc/guix.texi:2995
  2916. #, no-wrap
  2917. msgid "Features"
  2918. msgstr "功能"
  2919. #. type: menuentry
  2920. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2921. msgid "How Guix will make your life brighter."
  2922. msgstr "Guix怎样让你的生活更美好。"
  2923. #. type: node
  2924. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2925. #: guix-git/doc/guix.texi:3084
  2926. #, no-wrap
  2927. msgid "Invoking guix package"
  2928. msgstr "调用guix package"
  2929. #. type: menuentry
  2930. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2931. msgid "Package installation, removal, etc."
  2932. msgstr "软件包安装,移除等。"
  2933. #. type: section
  2934. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:240
  2935. #: guix-git/doc/guix.texi:2992 guix-git/doc/guix.texi:3700
  2936. #: guix-git/doc/guix.texi:3701
  2937. #, no-wrap
  2938. msgid "Substitutes"
  2939. msgstr "substitutes"
  2940. #. type: menuentry
  2941. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2942. msgid "Downloading pre-built binaries."
  2943. msgstr "下载构建好的二进制文件。"
  2944. #. type: section
  2945. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2946. #: guix-git/doc/guix.texi:4036 guix-git/doc/guix.texi:4037
  2947. #, no-wrap
  2948. msgid "Packages with Multiple Outputs"
  2949. msgstr "有多个输出的软件包"
  2950. #. type: menuentry
  2951. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2952. msgid "Single source package, multiple outputs."
  2953. msgstr "单个输入多个输出的软件包。"
  2954. #. type: node
  2955. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2956. #: guix-git/doc/guix.texi:4090
  2957. #, no-wrap
  2958. msgid "Invoking guix gc"
  2959. msgstr "调用guix gc"
  2960. #. type: menuentry
  2961. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2962. msgid "Running the garbage collector."
  2963. msgstr "运行垃圾回收器。"
  2964. #. type: node
  2965. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2966. #: guix-git/doc/guix.texi:4300
  2967. #, no-wrap
  2968. msgid "Invoking guix pull"
  2969. msgstr "调用guix pull"
  2970. #. type: menuentry
  2971. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2972. msgid "Fetching the latest Guix and distribution."
  2973. msgstr "获取最新的Guix和发行版。"
  2974. #. type: node
  2975. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2976. #: guix-git/doc/guix.texi:4547
  2977. #, fuzzy, no-wrap
  2978. msgid "Invoking guix time-machine"
  2979. msgstr "调用guix archive"
  2980. #. type: menuentry
  2981. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2982. #, fuzzy
  2983. msgid "Running an older revision of Guix."
  2984. msgstr "和其它版本的Guix交互。"
  2985. #. type: section
  2986. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2987. #: guix-git/doc/guix.texi:4602 guix-git/doc/guix.texi:4603
  2988. #, no-wrap
  2989. msgid "Inferiors"
  2990. msgstr ""
  2991. #. type: menuentry
  2992. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2993. msgid "Interacting with another revision of Guix."
  2994. msgstr "和其它版本的Guix交互。"
  2995. #. type: node
  2996. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  2997. #: guix-git/doc/guix.texi:4730
  2998. #, no-wrap
  2999. msgid "Invoking guix describe"
  3000. msgstr "调用guix describe"
  3001. #. type: menuentry
  3002. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  3003. msgid "Display information about your Guix revision."
  3004. msgstr "显示你的Guix版本信息。"
  3005. #. type: node
  3006. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  3007. #: guix-git/doc/guix.texi:4825
  3008. #, no-wrap
  3009. msgid "Invoking guix archive"
  3010. msgstr "调用guix archive"
  3011. #. type: menuentry
  3012. #: guix-git/doc/guix.texi:238 guix-git/doc/guix.texi:2992
  3013. msgid "Exporting and importing store files."
  3014. msgstr "导出和导入仓库文件。"
  3015. #. type: subsection
  3016. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3017. #: guix-git/doc/guix.texi:3726 guix-git/doc/guix.texi:3727
  3018. #, fuzzy, no-wrap
  3019. #| msgid "Official Substitute Server"
  3020. msgid "Official Substitute Servers"
  3021. msgstr "官方的substitute服务器"
  3022. #. type: menuentry
  3023. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3024. msgid "One particular source of substitutes."
  3025. msgstr "substitute的一个特殊来源。"
  3026. #. type: subsection
  3027. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3028. #: guix-git/doc/guix.texi:3756 guix-git/doc/guix.texi:3757
  3029. #, no-wrap
  3030. msgid "Substitute Server Authorization"
  3031. msgstr "授权substitute服务器。"
  3032. #. type: menuentry
  3033. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3034. msgid "How to enable or disable substitutes."
  3035. msgstr "怎么开启或关闭substitute。"
  3036. #. type: subsection
  3037. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3038. #: guix-git/doc/guix.texi:3826 guix-git/doc/guix.texi:3827
  3039. #, no-wrap
  3040. msgid "Getting Substitutes from Other Servers"
  3041. msgstr ""
  3042. #. type: menuentry
  3043. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3044. #, fuzzy
  3045. msgid "Substitute diversity."
  3046. msgstr "substitutes"
  3047. #. type: subsection
  3048. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3049. #: guix-git/doc/guix.texi:3931 guix-git/doc/guix.texi:3932
  3050. #, no-wrap
  3051. msgid "Substitute Authentication"
  3052. msgstr "验证substitute"
  3053. #. type: menuentry
  3054. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3055. msgid "How Guix verifies substitutes."
  3056. msgstr "Guix怎样验证substitute。"
  3057. #. type: subsection
  3058. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3059. #: guix-git/doc/guix.texi:3966 guix-git/doc/guix.texi:3967
  3060. #, no-wrap
  3061. msgid "Proxy Settings"
  3062. msgstr "代理设置"
  3063. #. type: menuentry
  3064. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3065. msgid "How to get substitutes via proxy."
  3066. msgstr "怎样通过代理获取substitute。"
  3067. #. type: subsection
  3068. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3069. #: guix-git/doc/guix.texi:3978 guix-git/doc/guix.texi:3979
  3070. #, no-wrap
  3071. msgid "Substitution Failure"
  3072. msgstr "substitute失败"
  3073. #. type: menuentry
  3074. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3075. msgid "What happens when substitution fails."
  3076. msgstr "当substitute失败时会发生什么。"
  3077. #. type: subsection
  3078. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3079. #: guix-git/doc/guix.texi:4006 guix-git/doc/guix.texi:4007
  3080. #, no-wrap
  3081. msgid "On Trusting Binaries"
  3082. msgstr "关于信任二进制文件"
  3083. #. type: menuentry
  3084. #: guix-git/doc/guix.texi:248 guix-git/doc/guix.texi:3724
  3085. msgid "How can you trust that binary blob?"
  3086. msgstr "你怎么能信任二进制的 blob 呢?"
  3087. #. type: section
  3088. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3089. #: guix-git/doc/guix.texi:5048 guix-git/doc/guix.texi:5049
  3090. #, no-wrap
  3091. msgid "Specifying Additional Channels"
  3092. msgstr ""
  3093. #. type: menuentry
  3094. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3095. msgid "Extending the package collection."
  3096. msgstr "拓展软件包集合。"
  3097. #. type: section
  3098. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3099. #: guix-git/doc/guix.texi:5098 guix-git/doc/guix.texi:5099
  3100. #, no-wrap
  3101. msgid "Using a Custom Guix Channel"
  3102. msgstr ""
  3103. #. type: menuentry
  3104. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3105. msgid "Using a customized Guix."
  3106. msgstr ""
  3107. #. type: section
  3108. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3109. #: guix-git/doc/guix.texi:5120 guix-git/doc/guix.texi:5121
  3110. #, no-wrap
  3111. msgid "Replicating Guix"
  3112. msgstr ""
  3113. #. type: menuentry
  3114. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3115. msgid "Running the @emph{exact same} Guix."
  3116. msgstr ""
  3117. #. type: section
  3118. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3119. #: guix-git/doc/guix.texi:5161 guix-git/doc/guix.texi:5162
  3120. #, fuzzy, no-wrap
  3121. msgid "Channel Authentication"
  3122. msgstr "验证substitute"
  3123. #. type: menuentry
  3124. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3125. #, fuzzy
  3126. msgid "How Guix verifies what it fetches."
  3127. msgstr "Guix怎样验证substitute。"
  3128. #. type: section
  3129. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3130. #: guix-git/doc/guix.texi:5201 guix-git/doc/guix.texi:5202
  3131. #, fuzzy, no-wrap
  3132. msgid "Channels with Substitutes"
  3133. msgstr "分享substitute。"
  3134. #. type: menuentry
  3135. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3136. msgid "Using channels with available substitutes."
  3137. msgstr ""
  3138. #. type: section
  3139. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3140. #: guix-git/doc/guix.texi:5226 guix-git/doc/guix.texi:5227
  3141. #, no-wrap
  3142. msgid "Creating a Channel"
  3143. msgstr "创建一个频道"
  3144. #. type: menuentry
  3145. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3146. msgid "How to write your custom channel."
  3147. msgstr ""
  3148. #. type: section
  3149. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3150. #: guix-git/doc/guix.texi:5293 guix-git/doc/guix.texi:5294
  3151. #, fuzzy, no-wrap
  3152. msgid "Package Modules in a Sub-directory"
  3153. msgstr "软件包模块"
  3154. #. type: menuentry
  3155. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3156. #, fuzzy
  3157. msgid "Specifying the channel's package modules location."
  3158. msgstr "指定如何构建软件包。"
  3159. #. type: section
  3160. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3161. #: guix-git/doc/guix.texi:5307 guix-git/doc/guix.texi:5308
  3162. #, no-wrap
  3163. msgid "Declaring Channel Dependencies"
  3164. msgstr ""
  3165. #. type: menuentry
  3166. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3167. msgid "How to depend on other channels."
  3168. msgstr ""
  3169. #. type: section
  3170. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3171. #: guix-git/doc/guix.texi:5349 guix-git/doc/guix.texi:5350
  3172. #, no-wrap
  3173. msgid "Specifying Channel Authorizations"
  3174. msgstr ""
  3175. #. type: menuentry
  3176. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3177. msgid "Defining channel authors authorizations."
  3178. msgstr ""
  3179. #. type: section
  3180. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3181. #: guix-git/doc/guix.texi:5450 guix-git/doc/guix.texi:5451
  3182. #, no-wrap
  3183. msgid "Primary URL"
  3184. msgstr ""
  3185. #. type: menuentry
  3186. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3187. msgid "Distinguishing mirror to original."
  3188. msgstr ""
  3189. #. type: section
  3190. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3191. #: guix-git/doc/guix.texi:5473 guix-git/doc/guix.texi:5474
  3192. #, no-wrap
  3193. msgid "Writing Channel News"
  3194. msgstr ""
  3195. #. type: menuentry
  3196. #: guix-git/doc/guix.texi:262 guix-git/doc/guix.texi:5046
  3197. msgid "Communicating information to channel's users."
  3198. msgstr ""
  3199. #. type: node
  3200. #: guix-git/doc/guix.texi:269 guix-git/doc/guix.texi:5562
  3201. #: guix-git/doc/guix.texi:5564
  3202. #, no-wrap
  3203. msgid "Invoking guix environment"
  3204. msgstr "调用guix environment"
  3205. #. type: menuentry
  3206. #: guix-git/doc/guix.texi:269 guix-git/doc/guix.texi:5562
  3207. msgid "Setting up development environments."
  3208. msgstr "设置开发环境。"
  3209. #. type: node
  3210. #: guix-git/doc/guix.texi:269 guix-git/doc/guix.texi:5562
  3211. #: guix-git/doc/guix.texi:5924
  3212. #, no-wrap
  3213. msgid "Invoking guix pack"
  3214. msgstr "调用guix pack"
  3215. #. type: menuentry
  3216. #: guix-git/doc/guix.texi:269 guix-git/doc/guix.texi:5562
  3217. msgid "Creating software bundles."
  3218. msgstr "创建软件bundle。"
  3219. #. type: section
  3220. #: guix-git/doc/guix.texi:269 guix-git/doc/guix.texi:5562
  3221. #: guix-git/doc/guix.texi:6310 guix-git/doc/guix.texi:6311
  3222. #, no-wrap
  3223. msgid "The GCC toolchain"
  3224. msgstr ""
  3225. #. type: menuentry
  3226. #: guix-git/doc/guix.texi:269 guix-git/doc/guix.texi:5562
  3227. msgid "Working with languages supported by GCC."
  3228. msgstr ""
  3229. #. type: node
  3230. #: guix-git/doc/guix.texi:269 guix-git/doc/guix.texi:5562
  3231. #: guix-git/doc/guix.texi:6336
  3232. #, fuzzy, no-wrap
  3233. msgid "Invoking guix git authenticate"
  3234. msgstr "调用guix edit。"
  3235. #. type: menuentry
  3236. #: guix-git/doc/guix.texi:269 guix-git/doc/guix.texi:5562
  3237. #, fuzzy
  3238. msgid "Authenticating Git repositories."
  3239. msgstr "认证HTTPS服务器。"
  3240. #. type: section
  3241. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3242. #: guix-git/doc/guix.texi:6440 guix-git/doc/guix.texi:6441
  3243. #, no-wrap
  3244. msgid "Package Modules"
  3245. msgstr "软件包模块"
  3246. #. type: menuentry
  3247. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3248. msgid "Packages from the programmer's viewpoint."
  3249. msgstr "从程序员的角度看软件包。"
  3250. #. type: section
  3251. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:285
  3252. #: guix-git/doc/guix.texi:6438 guix-git/doc/guix.texi:6502
  3253. #: guix-git/doc/guix.texi:6503
  3254. #, no-wrap
  3255. msgid "Defining Packages"
  3256. msgstr "定义软件包"
  3257. #. type: menuentry
  3258. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3259. msgid "Defining new packages."
  3260. msgstr "定义新软件包。"
  3261. #. type: section
  3262. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3263. #: guix-git/doc/guix.texi:7072 guix-git/doc/guix.texi:7073
  3264. #, fuzzy, no-wrap
  3265. msgid "Defining Package Variants"
  3266. msgstr "定义软件包"
  3267. #. type: menuentry
  3268. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3269. #, fuzzy
  3270. msgid "Customizing packages."
  3271. msgstr "构建软件包。"
  3272. #. type: section
  3273. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3274. #: guix-git/doc/guix.texi:7304 guix-git/doc/guix.texi:7305
  3275. #, no-wrap
  3276. msgid "Build Systems"
  3277. msgstr "构建系统"
  3278. #. type: menuentry
  3279. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3280. msgid "Specifying how packages are built."
  3281. msgstr "指定如何构建软件包。"
  3282. #. type: subsection
  3283. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3284. #: guix-git/doc/guix.texi:8336 guix-git/doc/guix.texi:8337
  3285. #: guix-git/doc/guix.texi:8740
  3286. #, fuzzy, no-wrap
  3287. msgid "Build Phases"
  3288. msgstr "构建系统"
  3289. #. type: menuentry
  3290. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3291. msgid "Phases of the build process of a package."
  3292. msgstr ""
  3293. #. type: section
  3294. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3295. #: guix-git/doc/guix.texi:8530 guix-git/doc/guix.texi:8531
  3296. #, fuzzy, no-wrap
  3297. msgid "Build Utilities"
  3298. msgstr "工具"
  3299. #. type: menuentry
  3300. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3301. #, fuzzy
  3302. msgid "Helpers for your package definitions and more."
  3303. msgstr "导入软件包定义。"
  3304. #. type: section
  3305. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3306. #: guix-git/doc/guix.texi:8817 guix-git/doc/guix.texi:8818
  3307. #, no-wrap
  3308. msgid "The Store"
  3309. msgstr "仓库"
  3310. #. type: menuentry
  3311. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3312. msgid "Manipulating the package store."
  3313. msgstr "操纵软件包仓库。"
  3314. #. type: section
  3315. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3316. #: guix-git/doc/guix.texi:8970 guix-git/doc/guix.texi:8971
  3317. #, no-wrap
  3318. msgid "Derivations"
  3319. msgstr ""
  3320. #. type: menuentry
  3321. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3322. msgid "Low-level interface to package derivations."
  3323. msgstr "软件包derivation的底层接口。"
  3324. #. type: section
  3325. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3326. #: guix-git/doc/guix.texi:9164 guix-git/doc/guix.texi:9165
  3327. #, no-wrap
  3328. msgid "The Store Monad"
  3329. msgstr "仓库monad"
  3330. #. type: menuentry
  3331. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3332. msgid "Purely functional interface to the store."
  3333. msgstr "仓库的纯函数式接口。"
  3334. #. type: section
  3335. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3336. #: guix-git/doc/guix.texi:9483 guix-git/doc/guix.texi:9484
  3337. #, no-wrap
  3338. msgid "G-Expressions"
  3339. msgstr "G-表达式"
  3340. #. type: menuentry
  3341. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3342. msgid "Manipulating build expressions."
  3343. msgstr "操纵构建表达式。"
  3344. #. type: node
  3345. #: guix-git/doc/guix.texi:283 guix-git/doc/guix.texi:6438
  3346. #: guix-git/doc/guix.texi:10122
  3347. #, no-wrap
  3348. msgid "Invoking guix repl"
  3349. msgstr "调用guix repl"
  3350. #. type: menuentry
  3351. #: guix-git/doc/guix.texi:283
  3352. #, fuzzy
  3353. msgid "Programming Guix in Guile."
  3354. msgstr "编程索引"
  3355. #. type: node
  3356. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6705
  3357. #: guix-git/doc/guix.texi:6708
  3358. #, no-wrap
  3359. msgid "package Reference"
  3360. msgstr "软件包引用"
  3361. #. type: menuentry
  3362. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6705
  3363. msgid "The package data type."
  3364. msgstr "软件包数据类型。"
  3365. #. type: node
  3366. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6705
  3367. #: guix-git/doc/guix.texi:6880
  3368. #, no-wrap
  3369. msgid "origin Reference"
  3370. msgstr "origin参考手册"
  3371. #. type: menuentry
  3372. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6705
  3373. msgid "The origin data type."
  3374. msgstr "origin数据类型。"
  3375. #. type: node
  3376. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3377. #: guix-git/doc/guix.texi:10248
  3378. #, no-wrap
  3379. msgid "Invoking guix build"
  3380. msgstr "调用guix build"
  3381. #. type: menuentry
  3382. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3383. msgid "Building packages from the command line."
  3384. msgstr "用命令行构建软件包。"
  3385. #. type: node
  3386. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3387. #: guix-git/doc/guix.texi:11085
  3388. #, no-wrap
  3389. msgid "Invoking guix edit"
  3390. msgstr "调用guix edit。"
  3391. #. type: menuentry
  3392. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3393. msgid "Editing package definitions."
  3394. msgstr "编辑软件包定义。"
  3395. #. type: node
  3396. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3397. #: guix-git/doc/guix.texi:11115
  3398. #, no-wrap
  3399. msgid "Invoking guix download"
  3400. msgstr "调用guix download"
  3401. #. type: menuentry
  3402. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3403. msgid "Downloading a file and printing its hash."
  3404. msgstr "下载一个文件并打印它的hash。"
  3405. #. type: node
  3406. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3407. #: guix-git/doc/guix.texi:11173
  3408. #, no-wrap
  3409. msgid "Invoking guix hash"
  3410. msgstr "调用guix hash"
  3411. #. type: menuentry
  3412. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3413. msgid "Computing the cryptographic hash of a file."
  3414. msgstr "计算一个文件的密码学hash。"
  3415. #. type: node
  3416. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3417. #: guix-git/doc/guix.texi:11245
  3418. #, no-wrap
  3419. msgid "Invoking guix import"
  3420. msgstr "调用guix import"
  3421. #. type: menuentry
  3422. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3423. msgid "Importing package definitions."
  3424. msgstr "导入软件包定义。"
  3425. #. type: node
  3426. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3427. #: guix-git/doc/guix.texi:11775
  3428. #, no-wrap
  3429. msgid "Invoking guix refresh"
  3430. msgstr "调用guix refresh"
  3431. #. type: menuentry
  3432. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3433. msgid "Updating package definitions."
  3434. msgstr "更新软件包定义。"
  3435. #. type: node
  3436. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3437. #: guix-git/doc/guix.texi:12147
  3438. #, no-wrap
  3439. msgid "Invoking guix lint"
  3440. msgstr "调用guix lint"
  3441. #. type: menuentry
  3442. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3443. msgid "Finding errors in package definitions."
  3444. msgstr "从软件包定义里寻找错误。"
  3445. #. type: node
  3446. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3447. #: guix-git/doc/guix.texi:12316
  3448. #, no-wrap
  3449. msgid "Invoking guix size"
  3450. msgstr "调用guix size"
  3451. #. type: menuentry
  3452. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3453. msgid "Profiling disk usage."
  3454. msgstr "分析硬盘使用情况。"
  3455. #. type: node
  3456. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3457. #: guix-git/doc/guix.texi:12460
  3458. #, no-wrap
  3459. msgid "Invoking guix graph"
  3460. msgstr "调用guix graph"
  3461. #. type: menuentry
  3462. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3463. msgid "Visualizing the graph of packages."
  3464. msgstr "展示软件包的关系图。"
  3465. #. type: node
  3466. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3467. #: guix-git/doc/guix.texi:12741
  3468. #, no-wrap
  3469. msgid "Invoking guix publish"
  3470. msgstr "调用guix publish"
  3471. #. type: menuentry
  3472. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3473. msgid "Sharing substitutes."
  3474. msgstr "分享substitute。"
  3475. #. type: node
  3476. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3477. #: guix-git/doc/guix.texi:13010
  3478. #, no-wrap
  3479. msgid "Invoking guix challenge"
  3480. msgstr "调用guix challenge"
  3481. #. type: menuentry
  3482. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3483. msgid "Challenging substitute servers."
  3484. msgstr "挑战subtitute服务器。"
  3485. #. type: node
  3486. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3487. #: guix-git/doc/guix.texi:13193
  3488. #, no-wrap
  3489. msgid "Invoking guix copy"
  3490. msgstr "调用guix copy"
  3491. #. type: menuentry
  3492. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3493. msgid "Copying to and from a remote store."
  3494. msgstr "复制到远程的仓库,或从远程的仓库复制。"
  3495. #. type: node
  3496. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3497. #: guix-git/doc/guix.texi:13256
  3498. #, no-wrap
  3499. msgid "Invoking guix container"
  3500. msgstr "调用guix container"
  3501. #. type: menuentry
  3502. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3503. msgid "Process isolation."
  3504. msgstr "进程隔离。"
  3505. #. type: node
  3506. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3507. #: guix-git/doc/guix.texi:13310
  3508. #, no-wrap
  3509. msgid "Invoking guix weather"
  3510. msgstr "调用guix weather"
  3511. #. type: menuentry
  3512. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3513. msgid "Assessing substitute availability."
  3514. msgstr "评估substitute的可用性。"
  3515. #. type: node
  3516. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3517. #: guix-git/doc/guix.texi:13440
  3518. #, no-wrap
  3519. msgid "Invoking guix processes"
  3520. msgstr "调用guix processes"
  3521. #. type: menuentry
  3522. #: guix-git/doc/guix.texi:306 guix-git/doc/guix.texi:10246
  3523. msgid "Listing client processes."
  3524. msgstr "列出客户端进程。"
  3525. #. type: section
  3526. #: guix-git/doc/guix.texi:308 guix-git/doc/guix.texi:10249
  3527. #, no-wrap
  3528. msgid "Invoking @command{guix build}"
  3529. msgstr "调用@command{guix build}"
  3530. #. type: subsection
  3531. #: guix-git/doc/guix.texi:313 guix-git/doc/guix.texi:10300
  3532. #: guix-git/doc/guix.texi:10302 guix-git/doc/guix.texi:10303
  3533. #, no-wrap
  3534. msgid "Common Build Options"
  3535. msgstr "普通的构建选项"
  3536. #. type: menuentry
  3537. #: guix-git/doc/guix.texi:313 guix-git/doc/guix.texi:10300
  3538. msgid "Build options for most commands."
  3539. msgstr "大部分命令的构建选项。"
  3540. #. type: subsection
  3541. #: guix-git/doc/guix.texi:313 guix-git/doc/guix.texi:10300
  3542. #: guix-git/doc/guix.texi:10457 guix-git/doc/guix.texi:10458
  3543. #, no-wrap
  3544. msgid "Package Transformation Options"
  3545. msgstr "软件包变换选项。"
  3546. #. type: menuentry
  3547. #: guix-git/doc/guix.texi:313 guix-git/doc/guix.texi:10300
  3548. msgid "Creating variants of packages."
  3549. msgstr "创建软件包的变体。"
  3550. #. type: subsection
  3551. #: guix-git/doc/guix.texi:313 guix-git/doc/guix.texi:10300
  3552. #: guix-git/doc/guix.texi:10767 guix-git/doc/guix.texi:10768
  3553. #, no-wrap
  3554. msgid "Additional Build Options"
  3555. msgstr "额外的构建选项"
  3556. #. type: menuentry
  3557. #: guix-git/doc/guix.texi:313 guix-git/doc/guix.texi:10300
  3558. msgid "Options specific to 'guix build'."
  3559. msgstr "只属于'guix build'的选项。"
  3560. #. type: subsection
  3561. #: guix-git/doc/guix.texi:313 guix-git/doc/guix.texi:10300
  3562. #: guix-git/doc/guix.texi:11005 guix-git/doc/guix.texi:11006
  3563. #, no-wrap
  3564. msgid "Debugging Build Failures"
  3565. msgstr "调试构建错误"
  3566. #. type: menuentry
  3567. #: guix-git/doc/guix.texi:313 guix-git/doc/guix.texi:10300
  3568. msgid "Real life packaging experience."
  3569. msgstr "真实的打包经验。"
  3570. #. type: section
  3571. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3572. #: guix-git/doc/guix.texi:13583 guix-git/doc/guix.texi:13584
  3573. #, no-wrap
  3574. msgid "Using the Configuration System"
  3575. msgstr "使用配置系统"
  3576. #. type: menuentry
  3577. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3578. msgid "Customizing your GNU system."
  3579. msgstr "定制你的GNU系统。"
  3580. #. type: node
  3581. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3582. #: guix-git/doc/guix.texi:13834
  3583. #, no-wrap
  3584. msgid "operating-system Reference"
  3585. msgstr "操作系统参考"
  3586. #. type: menuentry
  3587. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3588. msgid "Detail of operating-system declarations."
  3589. msgstr "操作系统声明详情。"
  3590. #. type: section
  3591. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3592. #: guix-git/doc/guix.texi:14086 guix-git/doc/guix.texi:14087
  3593. #, no-wrap
  3594. msgid "File Systems"
  3595. msgstr "文件系统"
  3596. #. type: menuentry
  3597. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3598. msgid "Configuring file system mounts."
  3599. msgstr "设置文件系统挂载。"
  3600. #. type: section
  3601. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3602. #: guix-git/doc/guix.texi:14439 guix-git/doc/guix.texi:14440
  3603. #, no-wrap
  3604. msgid "Mapped Devices"
  3605. msgstr "映射的设备"
  3606. #. type: menuentry
  3607. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3608. msgid "Block device extra processing."
  3609. msgstr "块设备额外的处理。"
  3610. #. type: section
  3611. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3612. #: guix-git/doc/guix.texi:14587 guix-git/doc/guix.texi:14588
  3613. #, no-wrap
  3614. msgid "User Accounts"
  3615. msgstr "用户帐号"
  3616. #. type: menuentry
  3617. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3618. msgid "Specifying user accounts."
  3619. msgstr "指定用户帐号。"
  3620. #. type: section
  3621. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:2293
  3622. #: guix-git/doc/guix.texi:13581 guix-git/doc/guix.texi:14763
  3623. #: guix-git/doc/guix.texi:14764
  3624. #, no-wrap
  3625. msgid "Keyboard Layout"
  3626. msgstr "键盘布局"
  3627. #. type: menuentry
  3628. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3629. msgid "How the system interprets key strokes."
  3630. msgstr "系统怎样理解按键。"
  3631. #. type: section
  3632. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:1820
  3633. #: guix-git/doc/guix.texi:13581 guix-git/doc/guix.texi:14909
  3634. #: guix-git/doc/guix.texi:14910
  3635. #, no-wrap
  3636. msgid "Locales"
  3637. msgstr "区域"
  3638. #. type: menuentry
  3639. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3640. msgid "Language and cultural convention settings."
  3641. msgstr "语言和文化惯例设置。"
  3642. #. type: section
  3643. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:339
  3644. #: guix-git/doc/guix.texi:13581 guix-git/doc/guix.texi:15049
  3645. #: guix-git/doc/guix.texi:15050
  3646. #, no-wrap
  3647. msgid "Services"
  3648. msgstr "服务"
  3649. #. type: menuentry
  3650. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3651. msgid "Specifying system services."
  3652. msgstr "指定系统服务。"
  3653. #. type: section
  3654. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3655. #: guix-git/doc/guix.texi:32939 guix-git/doc/guix.texi:32940
  3656. #, no-wrap
  3657. msgid "Setuid Programs"
  3658. msgstr "setuid程序"
  3659. #. type: menuentry
  3660. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3661. msgid "Programs running with root privileges."
  3662. msgstr "以root权限运行的程序。"
  3663. #. type: section
  3664. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:1969
  3665. #: guix-git/doc/guix.texi:13581 guix-git/doc/guix.texi:33012
  3666. #: guix-git/doc/guix.texi:33013
  3667. #, no-wrap
  3668. msgid "X.509 Certificates"
  3669. msgstr "X.509证书"
  3670. #. type: menuentry
  3671. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3672. msgid "Authenticating HTTPS servers."
  3673. msgstr "认证HTTPS服务器。"
  3674. #. type: section
  3675. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:1863
  3676. #: guix-git/doc/guix.texi:13581 guix-git/doc/guix.texi:33075
  3677. #: guix-git/doc/guix.texi:33076
  3678. #, no-wrap
  3679. msgid "Name Service Switch"
  3680. msgstr "Name Service Switch"
  3681. #. type: menuentry
  3682. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3683. msgid "Configuring libc's name service switch."
  3684. msgstr "设置libc的name service switch。"
  3685. #. type: section
  3686. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3687. #: guix-git/doc/guix.texi:33213 guix-git/doc/guix.texi:33214
  3688. #, no-wrap
  3689. msgid "Initial RAM Disk"
  3690. msgstr "初始的内存虚拟硬盘"
  3691. #. type: menuentry
  3692. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3693. msgid "Linux-Libre bootstrapping."
  3694. msgstr "Linux-Libre引导。"
  3695. #. type: section
  3696. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3697. #: guix-git/doc/guix.texi:33408 guix-git/doc/guix.texi:33409
  3698. #, no-wrap
  3699. msgid "Bootloader Configuration"
  3700. msgstr "引导设置"
  3701. #. type: menuentry
  3702. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3703. msgid "Configuring the boot loader."
  3704. msgstr "设置引导程序。"
  3705. #. type: node
  3706. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3707. #: guix-git/doc/guix.texi:33706
  3708. #, no-wrap
  3709. msgid "Invoking guix system"
  3710. msgstr "调用guix system"
  3711. #. type: menuentry
  3712. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3713. msgid "Instantiating a system configuration."
  3714. msgstr "实例化一个系统配置。"
  3715. #. type: node
  3716. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3717. #: guix-git/doc/guix.texi:34291
  3718. #, no-wrap
  3719. msgid "Invoking guix deploy"
  3720. msgstr "调用 guix deploy"
  3721. #. type: menuentry
  3722. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3723. #, fuzzy
  3724. msgid "Deploying a system configuration to a remote host."
  3725. msgstr "实例化一个系统配置。"
  3726. #. type: node
  3727. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3728. #: guix-git/doc/guix.texi:34497
  3729. #, no-wrap
  3730. msgid "Running Guix in a VM"
  3731. msgstr "在虚拟机里运行Guix"
  3732. #. type: menuentry
  3733. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3734. msgid "How to run Guix System in a virtual machine."
  3735. msgstr "怎样在虚拟机里运行Guix。"
  3736. #. type: section
  3737. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:374
  3738. #: guix-git/doc/guix.texi:13581 guix-git/doc/guix.texi:34631
  3739. #: guix-git/doc/guix.texi:34632
  3740. #, no-wrap
  3741. msgid "Defining Services"
  3742. msgstr "定义服务"
  3743. #. type: menuentry
  3744. #: guix-git/doc/guix.texi:333 guix-git/doc/guix.texi:13581
  3745. msgid "Adding new service definitions."
  3746. msgstr "添加新的服务定义。"
  3747. #. type: menuentry
  3748. #: guix-git/doc/guix.texi:335
  3749. #, fuzzy
  3750. #| msgid "System Configuration"
  3751. msgid "Home Environment Configuration"
  3752. msgstr "系统配置"
  3753. #. type: node
  3754. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:35430
  3755. #: guix-git/doc/guix.texi:35878
  3756. #, fuzzy, no-wrap
  3757. #| msgid "Invoking guix hash"
  3758. msgid "Invoking guix home"
  3759. msgstr "调用guix hash"
  3760. #. type: menuentry
  3761. #: guix-git/doc/guix.texi:337
  3762. #, fuzzy
  3763. #| msgid "Instantiating a system configuration."
  3764. msgid "Instantiating a home environment configuration."
  3765. msgstr "实例化一个系统配置。"
  3766. #. type: subsection
  3767. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3768. #: guix-git/doc/guix.texi:15134 guix-git/doc/guix.texi:15135
  3769. #, no-wrap
  3770. msgid "Base Services"
  3771. msgstr "基础服务"
  3772. #. type: menuentry
  3773. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3774. msgid "Essential system services."
  3775. msgstr "必要的系统服务。"
  3776. #. type: subsection
  3777. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3778. #: guix-git/doc/guix.texi:16061 guix-git/doc/guix.texi:16062
  3779. #, no-wrap
  3780. msgid "Scheduled Job Execution"
  3781. msgstr "执行计划任务"
  3782. #. type: menuentry
  3783. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3784. msgid "The mcron service."
  3785. msgstr "mcron服务。"
  3786. #. type: subsection
  3787. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3788. #: guix-git/doc/guix.texi:16211 guix-git/doc/guix.texi:16212
  3789. #, no-wrap
  3790. msgid "Log Rotation"
  3791. msgstr "日志轮替"
  3792. #. type: menuentry
  3793. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3794. msgid "The rottlog service."
  3795. msgstr "rottlog服务。"
  3796. #. type: subsection
  3797. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3798. #: guix-git/doc/guix.texi:16324 guix-git/doc/guix.texi:16325
  3799. #, no-wrap
  3800. msgid "Networking Services"
  3801. msgstr "网络服务"
  3802. #. type: menuentry
  3803. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3804. msgid "Network setup, SSH daemon, etc."
  3805. msgstr "网络设置,SSH后台进程,等"
  3806. #. type: subsection
  3807. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3808. #: guix-git/doc/guix.texi:17989 guix-git/doc/guix.texi:17990
  3809. #, no-wrap
  3810. msgid "Unattended Upgrades"
  3811. msgstr ""
  3812. #. type: menuentry
  3813. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3814. msgid "Automated system upgrades."
  3815. msgstr ""
  3816. #. type: subsection
  3817. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3818. #: guix-git/doc/guix.texi:18127 guix-git/doc/guix.texi:18128
  3819. #, no-wrap
  3820. msgid "X Window"
  3821. msgstr "X窗口"
  3822. #. type: menuentry
  3823. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3824. msgid "Graphical display."
  3825. msgstr "图形显示器。"
  3826. #. type: subsection
  3827. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3828. #: guix-git/doc/guix.texi:18512 guix-git/doc/guix.texi:18513
  3829. #, no-wrap
  3830. msgid "Printing Services"
  3831. msgstr "打印服务"
  3832. #. type: menuentry
  3833. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3834. msgid "Local and remote printer support."
  3835. msgstr "本地和远程打印机的支持。"
  3836. #. type: subsection
  3837. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3838. #: guix-git/doc/guix.texi:19359 guix-git/doc/guix.texi:19360
  3839. #, no-wrap
  3840. msgid "Desktop Services"
  3841. msgstr "桌面服务"
  3842. #. type: menuentry
  3843. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3844. msgid "D-Bus and desktop services."
  3845. msgstr "D-Bus和桌面服务。"
  3846. #. type: subsection
  3847. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3848. #: guix-git/doc/guix.texi:19877 guix-git/doc/guix.texi:19878
  3849. #, no-wrap
  3850. msgid "Sound Services"
  3851. msgstr "声音服务"
  3852. #. type: menuentry
  3853. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3854. msgid "ALSA and Pulseaudio services."
  3855. msgstr "ALSA和Pulseaudio服务。"
  3856. #. type: subsection
  3857. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3858. #: guix-git/doc/guix.texi:20017 guix-git/doc/guix.texi:20018
  3859. #, no-wrap
  3860. msgid "Database Services"
  3861. msgstr "数据库服务"
  3862. #. type: menuentry
  3863. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3864. msgid "SQL databases, key-value stores, etc."
  3865. msgstr "SQL数据库,键值仓库,等"
  3866. #. type: subsection
  3867. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3868. #: guix-git/doc/guix.texi:20352 guix-git/doc/guix.texi:20353
  3869. #, no-wrap
  3870. msgid "Mail Services"
  3871. msgstr "邮件服务"
  3872. #. type: menuentry
  3873. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3874. msgid "IMAP, POP3, SMTP, and all that."
  3875. msgstr "IMAP,POP3,SMTP,等"
  3876. #. type: subsection
  3877. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3878. #: guix-git/doc/guix.texi:22211 guix-git/doc/guix.texi:22212
  3879. #, no-wrap
  3880. msgid "Messaging Services"
  3881. msgstr "消息服务"
  3882. #. type: menuentry
  3883. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3884. msgid "Messaging services."
  3885. msgstr "消息服务。"
  3886. #. type: subsection
  3887. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3888. #: guix-git/doc/guix.texi:22714 guix-git/doc/guix.texi:22715
  3889. #, no-wrap
  3890. msgid "Telephony Services"
  3891. msgstr "电话服务"
  3892. #. type: menuentry
  3893. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3894. msgid "Telephony services."
  3895. msgstr "电话服务。"
  3896. #. type: subsection
  3897. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3898. #: guix-git/doc/guix.texi:23945 guix-git/doc/guix.texi:23946
  3899. #, no-wrap
  3900. msgid "Monitoring Services"
  3901. msgstr "监控服务"
  3902. #. type: menuentry
  3903. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3904. msgid "Monitoring services."
  3905. msgstr "监控服务。"
  3906. #. type: subsection
  3907. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3908. #: guix-git/doc/guix.texi:24456 guix-git/doc/guix.texi:24457
  3909. #, no-wrap
  3910. msgid "Kerberos Services"
  3911. msgstr "Kerberos服务"
  3912. #. type: menuentry
  3913. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3914. msgid "Kerberos services."
  3915. msgstr "Kerberos服务。"
  3916. #. type: subsection
  3917. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3918. #: guix-git/doc/guix.texi:24582 guix-git/doc/guix.texi:24583
  3919. #, no-wrap
  3920. msgid "LDAP Services"
  3921. msgstr ""
  3922. #. type: menuentry
  3923. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3924. msgid "LDAP services."
  3925. msgstr ""
  3926. #. type: subsection
  3927. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3928. #: guix-git/doc/guix.texi:25061 guix-git/doc/guix.texi:25062
  3929. #, no-wrap
  3930. msgid "Web Services"
  3931. msgstr "Web服务"
  3932. #. type: menuentry
  3933. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3934. msgid "Web servers."
  3935. msgstr "Web服务。"
  3936. #. type: subsection
  3937. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3938. #: guix-git/doc/guix.texi:26263 guix-git/doc/guix.texi:26264
  3939. #, no-wrap
  3940. msgid "Certificate Services"
  3941. msgstr "证书服务"
  3942. #. type: menuentry
  3943. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3944. msgid "TLS certificates via Let's Encrypt."
  3945. msgstr "Let's Encrypt TLS证书。"
  3946. #. type: subsection
  3947. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3948. #: guix-git/doc/guix.texi:26444 guix-git/doc/guix.texi:26445
  3949. #, no-wrap
  3950. msgid "DNS Services"
  3951. msgstr "DNS服务"
  3952. #. type: menuentry
  3953. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3954. msgid "DNS daemons."
  3955. msgstr "DNS后台进程。"
  3956. #. type: subsection
  3957. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3958. #: guix-git/doc/guix.texi:27189 guix-git/doc/guix.texi:27190
  3959. #, no-wrap
  3960. msgid "VPN Services"
  3961. msgstr "VPN服务"
  3962. #. type: menuentry
  3963. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3964. msgid "VPN daemons."
  3965. msgstr "VPN后台进程。"
  3966. #. type: subsection
  3967. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3968. #: guix-git/doc/guix.texi:27698 guix-git/doc/guix.texi:27699
  3969. #, no-wrap
  3970. msgid "Network File System"
  3971. msgstr "网络文件系统"
  3972. #. type: menuentry
  3973. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3974. msgid "NFS related services."
  3975. msgstr "网络文件系统相关的服务。"
  3976. #. type: subsection
  3977. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3978. #: guix-git/doc/guix.texi:27894 guix-git/doc/guix.texi:27895
  3979. #, no-wrap
  3980. msgid "Continuous Integration"
  3981. msgstr "持续集成"
  3982. #. type: menuentry
  3983. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3984. #, fuzzy
  3985. msgid "Cuirass and Laminar services."
  3986. msgstr "Cuirass服务。"
  3987. #. type: subsection
  3988. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3989. #: guix-git/doc/guix.texi:28180 guix-git/doc/guix.texi:28181
  3990. #, no-wrap
  3991. msgid "Power Management Services"
  3992. msgstr "电源管理服务"
  3993. #. type: menuentry
  3994. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3995. msgid "Extending battery life."
  3996. msgstr "延长电池寿命。"
  3997. #. type: subsection
  3998. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  3999. #: guix-git/doc/guix.texi:28714 guix-git/doc/guix.texi:28715
  4000. #, no-wrap
  4001. msgid "Audio Services"
  4002. msgstr "音频服务"
  4003. #. type: menuentry
  4004. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4005. msgid "The MPD."
  4006. msgstr "MPD。"
  4007. #. type: subsection
  4008. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4009. #: guix-git/doc/guix.texi:28833 guix-git/doc/guix.texi:28834
  4010. #, no-wrap
  4011. msgid "Virtualization Services"
  4012. msgstr "虚拟化服务"
  4013. #. type: menuentry
  4014. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4015. msgid "Virtualization services."
  4016. msgstr "虚拟化服务。"
  4017. #. type: subsection
  4018. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4019. #: guix-git/doc/guix.texi:30448 guix-git/doc/guix.texi:30449
  4020. #, no-wrap
  4021. msgid "Version Control Services"
  4022. msgstr "版本控制服务"
  4023. #. type: menuentry
  4024. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4025. msgid "Providing remote access to Git repositories."
  4026. msgstr "远程访问Git仓库。"
  4027. #. type: subsection
  4028. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4029. #: guix-git/doc/guix.texi:31784 guix-git/doc/guix.texi:31785
  4030. #, no-wrap
  4031. msgid "Game Services"
  4032. msgstr "游戏服务"
  4033. #. type: menuentry
  4034. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4035. msgid "Game servers."
  4036. msgstr "游戏服务器。"
  4037. #. type: subsection
  4038. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4039. #: guix-git/doc/guix.texi:31816 guix-git/doc/guix.texi:31817
  4040. #, fuzzy, no-wrap
  4041. msgid "PAM Mount Service"
  4042. msgstr "声音服务"
  4043. #. type: menuentry
  4044. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4045. msgid "Service to mount volumes when logging in."
  4046. msgstr ""
  4047. #. type: subsection
  4048. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4049. #: guix-git/doc/guix.texi:31899 guix-git/doc/guix.texi:31900
  4050. #, fuzzy, no-wrap
  4051. msgid "Guix Services"
  4052. msgstr "音频服务"
  4053. #. type: menuentry
  4054. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4055. msgid "Services relating specifically to Guix."
  4056. msgstr ""
  4057. #. type: subsection
  4058. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4059. #: guix-git/doc/guix.texi:32183 guix-git/doc/guix.texi:32184
  4060. #, fuzzy, no-wrap
  4061. msgid "Linux Services"
  4062. msgstr "邮件服务"
  4063. #. type: menuentry
  4064. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4065. msgid "Services tied to the Linux kernel."
  4066. msgstr ""
  4067. #. type: subsection
  4068. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4069. #: guix-git/doc/guix.texi:32410 guix-git/doc/guix.texi:32411
  4070. #, fuzzy, no-wrap
  4071. msgid "Hurd Services"
  4072. msgstr "声音服务"
  4073. #. type: menuentry
  4074. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4075. msgid "Services specific for a Hurd System."
  4076. msgstr ""
  4077. #. type: subsection
  4078. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4079. #: guix-git/doc/guix.texi:32452 guix-git/doc/guix.texi:32453
  4080. #, no-wrap
  4081. msgid "Miscellaneous Services"
  4082. msgstr "其它各种服务"
  4083. #. type: menuentry
  4084. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:15132
  4085. msgid "Other services."
  4086. msgstr "其它服务。"
  4087. #. type: subsection
  4088. #: guix-git/doc/guix.texi:379 guix-git/doc/guix.texi:34643
  4089. #: guix-git/doc/guix.texi:34645 guix-git/doc/guix.texi:34646
  4090. #, no-wrap
  4091. msgid "Service Composition"
  4092. msgstr "合成服务"
  4093. #. type: menuentry
  4094. #: guix-git/doc/guix.texi:379 guix-git/doc/guix.texi:34643
  4095. msgid "The model for composing services."
  4096. msgstr "服务合成的模型。"
  4097. #. type: subsection
  4098. #: guix-git/doc/guix.texi:379 guix-git/doc/guix.texi:34643
  4099. #: guix-git/doc/guix.texi:34701 guix-git/doc/guix.texi:34702
  4100. #, no-wrap
  4101. msgid "Service Types and Services"
  4102. msgstr "服务类型和服务"
  4103. #. type: menuentry
  4104. #: guix-git/doc/guix.texi:379 guix-git/doc/guix.texi:34643
  4105. msgid "Types and services."
  4106. msgstr "类型和服务。"
  4107. #. type: subsection
  4108. #: guix-git/doc/guix.texi:379 guix-git/doc/guix.texi:34643
  4109. #: guix-git/doc/guix.texi:34838 guix-git/doc/guix.texi:34839
  4110. #, no-wrap
  4111. msgid "Service Reference"
  4112. msgstr "服务参考"
  4113. #. type: menuentry
  4114. #: guix-git/doc/guix.texi:379 guix-git/doc/guix.texi:34643
  4115. msgid "API reference."
  4116. msgstr "API参考。"
  4117. #. type: subsection
  4118. #: guix-git/doc/guix.texi:379 guix-git/doc/guix.texi:34643
  4119. #: guix-git/doc/guix.texi:35148 guix-git/doc/guix.texi:35149
  4120. #, no-wrap
  4121. msgid "Shepherd Services"
  4122. msgstr "Shepherd服务"
  4123. #. type: menuentry
  4124. #: guix-git/doc/guix.texi:379 guix-git/doc/guix.texi:34643
  4125. msgid "A particular type of service."
  4126. msgstr "一种特别的服务。"
  4127. #. type: section
  4128. #: guix-git/doc/guix.texi:384 guix-git/doc/guix.texi:36189
  4129. #: guix-git/doc/guix.texi:36191 guix-git/doc/guix.texi:36192
  4130. #, no-wrap
  4131. msgid "Separate Debug Info"
  4132. msgstr ""
  4133. #. type: menuentry
  4134. #: guix-git/doc/guix.texi:384 guix-git/doc/guix.texi:36189
  4135. #, fuzzy
  4136. msgid "Installing 'debug' outputs."
  4137. msgstr "安装调试文件"
  4138. #. type: section
  4139. #: guix-git/doc/guix.texi:384 guix-git/doc/guix.texi:36189
  4140. #: guix-git/doc/guix.texi:36250 guix-git/doc/guix.texi:36251
  4141. #, no-wrap
  4142. msgid "Rebuilding Debug Info"
  4143. msgstr ""
  4144. #. type: menuentry
  4145. #: guix-git/doc/guix.texi:384 guix-git/doc/guix.texi:36189
  4146. msgid "Building missing debug info."
  4147. msgstr ""
  4148. #. type: node
  4149. #: guix-git/doc/guix.texi:389 guix-git/doc/guix.texi:36467
  4150. #: guix-git/doc/guix.texi:36469
  4151. #, no-wrap
  4152. msgid "Reduced Binary Seed Bootstrap"
  4153. msgstr ""
  4154. #. type: menuentry
  4155. #: guix-git/doc/guix.texi:389 guix-git/doc/guix.texi:36467
  4156. msgid "A Bootstrap worthy of GNU."
  4157. msgstr ""
  4158. #. type: section
  4159. #: guix-git/doc/guix.texi:389 guix-git/doc/guix.texi:36467
  4160. #: guix-git/doc/guix.texi:36544 guix-git/doc/guix.texi:36545
  4161. #, no-wrap
  4162. msgid "Preparing to Use the Bootstrap Binaries"
  4163. msgstr ""
  4164. #. type: menuentry
  4165. #: guix-git/doc/guix.texi:389 guix-git/doc/guix.texi:36467
  4166. msgid "Building that what matters most."
  4167. msgstr ""
  4168. #. type: cindex
  4169. #: guix-git/doc/guix.texi:397
  4170. #, no-wrap
  4171. msgid "purpose"
  4172. msgstr "目的"
  4173. #. type: Plain text
  4174. #: guix-git/doc/guix.texi:405
  4175. 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."
  4176. msgstr "GNU Guix@footnote{``Guix''读做``geeks'',或``ɡiːks''(国际音标)}是GNU系统的包管理器和发行版。Guix让无特权的用户可以轻松地安装,升级,或删除软件包,回滚到前一个软件包集合,从源代码构建软件包,及辅助软件环境的创建和维护。"
  4177. #. type: cindex
  4178. #: guix-git/doc/guix.texi:406 guix-git/doc/guix.texi:481
  4179. #, no-wrap
  4180. msgid "Guix System"
  4181. msgstr "Guix系统"
  4182. #. type: cindex
  4183. #: guix-git/doc/guix.texi:407
  4184. #, no-wrap
  4185. msgid "GuixSD, now Guix System"
  4186. msgstr "GuixSD,现在称为Guix系统"
  4187. #. type: cindex
  4188. #: guix-git/doc/guix.texi:408
  4189. #, no-wrap
  4190. msgid "Guix System Distribution, now Guix System"
  4191. msgstr "Guix系统发行版,现在称为Guix系统"
  4192. #. type: Plain text
  4193. #: guix-git/doc/guix.texi:417
  4194. 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}."
  4195. msgstr "你可以在现有的GNU/Linux发行版上安装GNU@tie{}Guix(@pxref{Installation}),Guix可以补充已有的工具,并且不会和它们产生冲突。或者你可以把它当作独立的操作系统发行版(@dfn{Guix@tie{}系统}@footnote{我们以前把Guix系统称为``Guix系统发行版''或``GuixSD''。我们现在觉得把一切都统一在``Guix''的旗帜下更合理,因为,毕竟即使在别的发行版上你也可以随时通过@command{guix system}命令获得Guix系统})。@xref{GNU Distribution}."
  4196. #. type: cindex
  4197. #: guix-git/doc/guix.texi:426
  4198. #, no-wrap
  4199. msgid "user interfaces"
  4200. msgstr "用户界面"
  4201. #. type: Plain text
  4202. #: guix-git/doc/guix.texi:432
  4203. #, fuzzy
  4204. 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})."
  4205. msgstr "Guix提供了命令行软件包管理接口(@pxref{Package Management}),辅助软件开发的工具(@pxref{Development}),高级用法的命令行接口(@pxref{Utilities}),以及Scheme编程语言接口(@pxref{Programming Interface})。"
  4206. #. type: cindex
  4207. #: guix-git/doc/guix.texi:432
  4208. #, no-wrap
  4209. msgid "build daemon"
  4210. msgstr "构建后台进程"
  4211. #. type: Plain text
  4212. #: guix-git/doc/guix.texi:436
  4213. 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})."
  4214. msgstr "@dfn{构建后台进程}为用户构建软件包(@pxref{Setting Up the Daemon}),及从授权的源(@pxref{Substitutes})下载预构建的二进制文件。"
  4215. #. type: cindex
  4216. #: guix-git/doc/guix.texi:437
  4217. #, no-wrap
  4218. msgid "extensibility of the distribution"
  4219. msgstr "发行版的扩展性"
  4220. #. type: cindex
  4221. #: guix-git/doc/guix.texi:438 guix-git/doc/guix.texi:6462
  4222. #, no-wrap
  4223. msgid "customization, of packages"
  4224. msgstr "定制软件包"
  4225. #. type: Plain text
  4226. #: guix-git/doc/guix.texi:447
  4227. 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})."
  4228. 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})。"
  4229. #. type: cindex
  4230. #: guix-git/doc/guix.texi:448
  4231. #, no-wrap
  4232. msgid "functional package management"
  4233. msgstr "函数式包管理器"
  4234. #. type: cindex
  4235. #: guix-git/doc/guix.texi:449
  4236. #, no-wrap
  4237. msgid "isolation"
  4238. msgstr "隔离"
  4239. #. type: Plain text
  4240. #: guix-git/doc/guix.texi:464
  4241. 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."
  4242. msgstr "在底层,Guix实现了由Nix(@pxref{Acknowledgments})开创的@dfn{函数式包管理器}。在Guix里,软件包构建和安装过程被视为数学意义上的@emph{函数}。函数获取输入,如构建脚本、编译器和库,并且返回一个安装好的软件包。作为一个纯函数,它的结果只取决于它的输入--例如,它不能引用没有作为显式输入传入的软件和脚本。当传入特定的输入时,一个构建函数总是得到相同的结果。它不能以任何方式修改运行系统的环境,例如,它不能创建,修改,或删除构建和安装环境之外的文件夹。这是通过在隔离的环境(@dfn{容器})里运行构建进程实现的,在这个环境里只能访问到显式的输入。"
  4243. #. type: cindex
  4244. #: guix-git/doc/guix.texi:465 guix-git/doc/guix.texi:8820
  4245. #, no-wrap
  4246. msgid "store"
  4247. msgstr "仓库"
  4248. #. type: Plain text
  4249. #: guix-git/doc/guix.texi:472
  4250. 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."
  4251. msgstr "软件包构建函数的结果被@dfn{缓存}在文件系统里的一个叫做@dfn{仓库}(@pxref{The Store})的特殊文件夹内。每个软件包都被安装在仓库(默认在@file{/gnu/store})里的一个独立的文件夹内。这个文件夹的名字含有用于构建这个软件包的所有输入的hash,所以,修改输入会得到一个不同的文件夹名。"
  4252. #. type: Plain text
  4253. #: guix-git/doc/guix.texi:476
  4254. 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})."
  4255. msgstr "这种手段是实现Guix的突出功能的基础:对事务型软件包升级和回滚的支持,每个用户独立的安装,软件包垃圾回收@pxref{Features}。"
  4256. #. type: Plain text
  4257. #: guix-git/doc/guix.texi:491
  4258. 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."
  4259. msgstr "Guix提供了一个GNU系统发行版,这个发新版只包含自由软件@footnote{这里的“自由”指的是@url{https://www.gnu.org/philosophy/free-sw.html,软件提供给用户的自由}。}。这个发行版可以独立安装(@pxref{System Installation}),但是把Guix安装为一个已经安装好的GNU/Linux系统的包管理器也是可行的(@pxref{Installation})。当我们需要区分这两者时,我们把独立的发行版称为“Guix系统”。"
  4260. #. type: Plain text
  4261. #: guix-git/doc/guix.texi:497
  4262. 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}):"
  4263. msgstr "这个发行版提供了GNU核心软件包,如libc、gcc和Binutils,以及很多GNU和非GNU应用程序。可用的软件包的完整列表可以在@url{https://www.gnu.org/software/guix/packages,on-line}浏览,或者通过运行@command{guix package}(@pxref{Invoking guix package})获得:"
  4264. #. type: example
  4265. #: guix-git/doc/guix.texi:500
  4266. #, no-wrap
  4267. msgid "guix package --list-available\n"
  4268. msgstr "guix package --list-available\n"
  4269. #. type: Plain text
  4270. #: guix-git/doc/guix.texi:506
  4271. 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."
  4272. msgstr "我们的目标是提供一个基于Linux和其它GNU变体的可用的100%自由的软件发行版,我们的重点是推广和紧密集成GNU组件,以及强调帮助用户行使那些自由的程序和工具。"
  4273. #. type: Plain text
  4274. #: guix-git/doc/guix.texi:508
  4275. msgid "Packages are currently available on the following platforms:"
  4276. msgstr "目前这些平台提供软件包:"
  4277. #. type: item
  4278. #: guix-git/doc/guix.texi:511 guix-git/doc/guix.texi:2140
  4279. #, no-wrap
  4280. msgid "x86_64-linux"
  4281. msgstr "x86_64-linux"
  4282. #. type: table
  4283. #: guix-git/doc/guix.texi:513
  4284. msgid "Intel/AMD @code{x86_64} architecture, Linux-Libre kernel."
  4285. msgstr "Intel/AMD @code{x86_64} 架构,Linux-Libre 内核。"
  4286. #. type: item
  4287. #: guix-git/doc/guix.texi:514 guix-git/doc/guix.texi:2143
  4288. #, no-wrap
  4289. msgid "i686-linux"
  4290. msgstr "i686-linux"
  4291. #. type: table
  4292. #: guix-git/doc/guix.texi:516
  4293. msgid "Intel 32-bit architecture (IA32), Linux-Libre kernel."
  4294. msgstr "Intel 32 位架构(IA32),Linux-Libre 内核。"
  4295. #. type: item
  4296. #: guix-git/doc/guix.texi:517
  4297. #, no-wrap
  4298. msgid "armhf-linux"
  4299. msgstr "armhf-linux"
  4300. #. type: table
  4301. #: guix-git/doc/guix.texi:521
  4302. msgid "ARMv7-A architecture with hard float, Thumb-2 and NEON, using the EABI hard-float application binary interface (ABI), and Linux-Libre kernel."
  4303. msgstr "ARMv7-A架构,带硬件浮点数、Thumb-2和NEON扩展,EABI硬件浮点数应用二进制接口(ABI),和Linux-Libre内核。"
  4304. #. type: item
  4305. #: guix-git/doc/guix.texi:522
  4306. #, no-wrap
  4307. msgid "aarch64-linux"
  4308. msgstr "aarch64-linux"
  4309. #. type: table
  4310. #: guix-git/doc/guix.texi:524
  4311. #, fuzzy
  4312. msgid "little-endian 64-bit ARMv8-A processors, Linux-Libre kernel."
  4313. msgstr "小端序64位MIPS处理器,龙芯系列,n32 ABI,Linux-Libre内核。"
  4314. #. type: item
  4315. #: guix-git/doc/guix.texi:525
  4316. #, no-wrap
  4317. msgid "i586-gnu"
  4318. msgstr ""
  4319. #. type: table
  4320. #: guix-git/doc/guix.texi:528
  4321. msgid "@uref{https://hurd.gnu.org, GNU/Hurd} on the Intel 32-bit architecture (IA32)."
  4322. msgstr ""
  4323. #. type: table
  4324. #: guix-git/doc/guix.texi:534
  4325. 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!"
  4326. msgstr ""
  4327. #. type: item
  4328. #: guix-git/doc/guix.texi:535
  4329. #, fuzzy, no-wrap
  4330. msgid "mips64el-linux (deprecated)"
  4331. msgstr "mips64el-linux"
  4332. #. type: table
  4333. #: guix-git/doc/guix.texi:541
  4334. 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."
  4335. msgstr ""
  4336. #. type: table
  4337. #: guix-git/doc/guix.texi:552
  4338. 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!"
  4339. msgstr ""
  4340. #. type: Plain text
  4341. #: guix-git/doc/guix.texi:562
  4342. 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."
  4343. msgstr "在Guix系统里,你@emph{声明}操作系统所有方面的配置,然后Guix以事务型的,可重复的,和无状态的方式解决实例化配置的问题(@pxref{System Configuration})。Guix系统使用Linux-Libre内核,Shepherd初始化系统@pxref{Introduction,,, shepherd, GNU Shepherd用户手册},知名的GNU工具和工具链,以及你可选的图形界面环境和系统服务。"
  4344. #. type: Plain text
  4345. #: guix-git/doc/guix.texi:565
  4346. #, fuzzy
  4347. msgid "Guix System is available on all the above platforms except @code{mips64el-linux} and @code{powerpc64le-linux}."
  4348. msgstr "Guix系统在上面所有的平台上都可用,除了@code{mips64el-linux}。"
  4349. #. type: Plain text
  4350. #: guix-git/doc/guix.texi:569
  4351. msgid "For information on porting to other architectures or kernels, @pxref{Porting}."
  4352. msgstr "关于移植到其它架构或内核的信息,@pxref{Porting}。"
  4353. #. type: Plain text
  4354. #: guix-git/doc/guix.texi:572
  4355. msgid "Building this distribution is a cooperative effort, and you are invited to join! @xref{Contributing}, for information about how you can help."
  4356. msgstr "构建这个发行版需要努力合作,欢迎你加入!关于你可以怎样提供帮助的信息,@xref{Contributing}。"
  4357. #. type: cindex
  4358. #: guix-git/doc/guix.texi:578
  4359. #, no-wrap
  4360. msgid "installing Guix"
  4361. msgstr "安装Guix"
  4362. #. type: quotation
  4363. #: guix-git/doc/guix.texi:590
  4364. 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."
  4365. 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用户身份运行。"
  4366. #. type: cindex
  4367. #: guix-git/doc/guix.texi:592 guix-git/doc/guix.texi:1815
  4368. #, no-wrap
  4369. msgid "foreign distro"
  4370. msgstr "别的发行版"
  4371. #. type: cindex
  4372. #: guix-git/doc/guix.texi:593
  4373. #, no-wrap
  4374. msgid "directories related to foreign distro"
  4375. msgstr "和foreign distro相关的文件夹"
  4376. #. type: Plain text
  4377. #: guix-git/doc/guix.texi:598
  4378. 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."
  4379. msgstr "在foreign distro上安装时,GNU@tie{}Guix可以在不引起冲突的前提下补充现有的工具。它的数据只存放在两个文件夹里,通常是@file{/gnu/store}和@file{/var/guix};系统上的其它文件,如@file{/etc},不会被修改。"
  4380. #. type: Plain text
  4381. #: guix-git/doc/guix.texi:601
  4382. msgid "Once installed, Guix can be updated by running @command{guix pull} (@pxref{Invoking guix pull})."
  4383. msgstr "一旦安装好了,可以通过运行@command{guix pull}升级Guix(@pxref{Invoking guix pull})。"
  4384. #. type: Plain text
  4385. #: guix-git/doc/guix.texi:606
  4386. 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."
  4387. msgstr "如果你希望手动执行安装步骤,或者想改变安装步骤,接下来这些小节会很有用。它们介绍Guix的软件依赖,以及如何手动安装和使用Guix。"
  4388. #. type: cindex
  4389. #: guix-git/doc/guix.texi:620
  4390. #, no-wrap
  4391. msgid "installing Guix from binaries"
  4392. msgstr "用二进制文件安装Guix"
  4393. #. type: cindex
  4394. #: guix-git/doc/guix.texi:621
  4395. #, no-wrap
  4396. msgid "installer script"
  4397. msgstr "安装脚本"
  4398. #. type: Plain text
  4399. #: guix-git/doc/guix.texi:627
  4400. 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."
  4401. msgstr "这个小节介绍如何在任意的系统上用独立的Guix二进制文件包安装Guix和它的依赖。这通常比从源代码安装更快,下一小节会介绍如何从源代码安装。唯一的需求是有GNU@tie{}tar和Xz。"
  4402. #. type: quotation
  4403. #: guix-git/doc/guix.texi:635
  4404. #, fuzzy
  4405. 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:"
  4406. msgstr "我们推荐使用这个@uref{https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh, shell安装脚本}。这个脚本自动执行下述的下载、安装并且初始化Guix的过程。它需要以root用户身份运行。"
  4407. #. type: example
  4408. #: guix-git/doc/guix.texi:641
  4409. #, no-wrap
  4410. msgid ""
  4411. "cd /tmp\n"
  4412. "wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh\n"
  4413. "chmod +x guix-install.sh\n"
  4414. "./guix-install.sh\n"
  4415. msgstr ""
  4416. #. type: quotation
  4417. #: guix-git/doc/guix.texi:645
  4418. msgid "When you're done, @pxref{Application Setup} for extra configuration you might need, and @ref{Getting Started} for your first steps!"
  4419. msgstr ""
  4420. #. type: Plain text
  4421. #: guix-git/doc/guix.texi:648
  4422. msgid "Installing goes along these lines:"
  4423. msgstr "安装步骤如下:"
  4424. #. type: cindex
  4425. #: guix-git/doc/guix.texi:651
  4426. #, no-wrap
  4427. msgid "downloading Guix binary"
  4428. msgstr "下载Guix二进制文件"
  4429. #. type: enumerate
  4430. #: guix-git/doc/guix.texi:657
  4431. #, fuzzy
  4432. 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})."
  4433. msgstr "从@indicateurl{@value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz}下载二进制安装包,对于运行Linux内核的@code{x86_64}机器来说@var{系统}是@code{x86_64-linux},以此类推。"
  4434. #. type: enumerate
  4435. #: guix-git/doc/guix.texi:661
  4436. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the tarball against it, along these lines:"
  4437. msgstr "请确保下载相关的@file{.sig}文件,并且用它验证文件包的可靠性,方法如下:"
  4438. #. type: example
  4439. #: guix-git/doc/guix.texi:665
  4440. #, fuzzy, no-wrap
  4441. msgid ""
  4442. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  4443. "$ gpg --verify guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  4444. msgstr ""
  4445. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  4446. "$ gpg --verify guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  4447. #. type: Plain text
  4448. #: guix-git/doc/guix.texi:669 guix-git/doc/guix.texi:2158
  4449. msgid "If that command fails because you do not have the required public key, then run this command to import it:"
  4450. msgstr "如果那个命令因为缺少所需的公钥而失败了,那么用这个命令导入它:"
  4451. #. type: example
  4452. #: guix-git/doc/guix.texi:673
  4453. #, no-wrap
  4454. msgid ""
  4455. "$ wget '@value{OPENPGP-SIGNING-KEY-URL}' \\\n"
  4456. " -qO - | gpg --import -\n"
  4457. msgstr ""
  4458. #. type: Plain text
  4459. #: guix-git/doc/guix.texi:677 guix-git/doc/guix.texi:2166
  4460. msgid "and rerun the @code{gpg --verify} command."
  4461. msgstr "再次运行@code{gpg --verify}命令。"
  4462. #. type: Plain text
  4463. #: guix-git/doc/guix.texi:680 guix-git/doc/guix.texi:2169
  4464. msgid "Take note that a warning like ``This key is not certified with a trusted signature!'' is normal."
  4465. msgstr ""
  4466. #. type: enumerate
  4467. #: guix-git/doc/guix.texi:686
  4468. 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:"
  4469. msgstr "现在你需要成为@code{root}用户。基于你的发行版,你可能需要执行@code{su -}或@code{sudo -i}。以@code{root}用户身份,执行:"
  4470. #. type: example
  4471. #: guix-git/doc/guix.texi:692
  4472. #, fuzzy, no-wrap
  4473. msgid ""
  4474. "# cd /tmp\n"
  4475. "# tar --warning=no-timestamp -xf \\\n"
  4476. " /path/to/guix-binary-@value{VERSION}.x86_64-linux.tar.xz\n"
  4477. "# mv var/guix /var/ && mv gnu /\n"
  4478. msgstr ""
  4479. "# cd /tmp\n"
  4480. "# tar --warning=no-timestamp -xf \\\n"
  4481. " guix-binary-@value{VERSION}.@var{系统}.tar.xz\n"
  4482. "# mv var/guix /var/ && mv gnu /\n"
  4483. #. type: enumerate
  4484. #: guix-git/doc/guix.texi:697
  4485. #, fuzzy
  4486. 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)."
  4487. msgstr "这会创建@file{/gnu/store}(@pxref{The Store})和@file{/var/guix}。后一个文件夹为@code{root}用户提供了一个立即可用的profile(见下一步)。"
  4488. #. type: enumerate
  4489. #: guix-git/doc/guix.texi:700
  4490. msgid "Do @emph{not} unpack the tarball on a working Guix system since that would overwrite its own essential files."
  4491. msgstr "@emph{不要}在一个正常的Guix系统上解压这个文件包,因为那会把现有的重要的文件覆盖。"
  4492. #. type: enumerate
  4493. #: guix-git/doc/guix.texi:710
  4494. #, fuzzy
  4495. 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."
  4496. msgstr "@code{--warning=no-timestamp}选项使GNU@tie{}tar不输出有关“implausibly old time stamps”的警告(这类警告会被GNU@tie{}tar 1.26或更老的版本触发;新的版本没事)。这类警告是因为文件包里的所有文件的修改时间戳都被设置为0(即1970年1月1日)。这是故意的,为了确保文件包的内容独立于创建的时间,从而使它可再现。"
  4497. #. type: enumerate
  4498. #: guix-git/doc/guix.texi:714
  4499. msgid "Make the profile available under @file{~root/.config/guix/current}, which is where @command{guix pull} will install updates (@pxref{Invoking guix pull}):"
  4500. msgstr "使profile出现在@file{~root/.config/guix/current},这是@command{guix pull}安装更新的位置(@pxref{Invoking guix pull}):"
  4501. #. type: example
  4502. #: guix-git/doc/guix.texi:719
  4503. #, no-wrap
  4504. msgid ""
  4505. "# mkdir -p ~root/.config/guix\n"
  4506. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  4507. " ~root/.config/guix/current\n"
  4508. msgstr ""
  4509. "# mkdir -p ~root/.config/guix\n"
  4510. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  4511. " ~root/.config/guix/current\n"
  4512. #. type: enumerate
  4513. #: guix-git/doc/guix.texi:723
  4514. #, fuzzy
  4515. msgid "Source @file{etc/profile} to augment @env{PATH} and other relevant environment variables:"
  4516. msgstr "执行@file{etc/profile}以更新@code{PATH}和其它相关的环境变量:"
  4517. #. type: example
  4518. #: guix-git/doc/guix.texi:727
  4519. #, no-wrap
  4520. msgid ""
  4521. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  4522. " source $GUIX_PROFILE/etc/profile\n"
  4523. msgstr ""
  4524. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  4525. " source $GUIX_PROFILE/etc/profile\n"
  4526. #. type: enumerate
  4527. #: guix-git/doc/guix.texi:732
  4528. msgid "Create the group and user accounts for build users as explained below (@pxref{Build Environment Setup})."
  4529. msgstr "像下面解释的那样为“构建用户”创建用户组和用户(@pxref{Build Environment Setup})。"
  4530. #. type: enumerate
  4531. #: guix-git/doc/guix.texi:735
  4532. msgid "Run the daemon, and set it to automatically start on boot."
  4533. msgstr "运行后台进程,并设置为开机自启动。"
  4534. #. type: enumerate
  4535. #: guix-git/doc/guix.texi:738
  4536. msgid "If your host distro uses the systemd init system, this can be achieved with these commands:"
  4537. msgstr "如果你的主机的发行版使用systemd init系统,可以用这些命令:"
  4538. #. type: example
  4539. #: guix-git/doc/guix.texi:751
  4540. #, fuzzy, no-wrap
  4541. msgid ""
  4542. "# cp ~root/.config/guix/current/lib/systemd/system/gnu-store.mount \\\n"
  4543. " ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4544. " /etc/systemd/system/\n"
  4545. "# systemctl enable --now gnu-store.mount guix-daemon\n"
  4546. msgstr ""
  4547. "# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4548. " /etc/systemd/system/\n"
  4549. "# systemctl start guix-daemon && systemctl enable guix-daemon\n"
  4550. #. type: enumerate
  4551. #: guix-git/doc/guix.texi:754
  4552. msgid "You may also want to arrange for @command{guix gc} to run periodically:"
  4553. msgstr ""
  4554. #. type: example
  4555. #: guix-git/doc/guix.texi:760
  4556. #, fuzzy, no-wrap
  4557. msgid ""
  4558. "# cp ~root/.config/guix/current/lib/systemd/system/guix-gc.service \\\n"
  4559. " ~root/.config/guix/current/lib/systemd/system/guix-gc.timer \\\n"
  4560. " /etc/systemd/system/\n"
  4561. "# systemctl enable --now guix-gc.timer\n"
  4562. msgstr ""
  4563. "# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4564. " /etc/systemd/system/\n"
  4565. "# systemctl start guix-daemon && systemctl enable guix-daemon\n"
  4566. #. type: enumerate
  4567. #: guix-git/doc/guix.texi:764
  4568. msgid "You may want to edit @file{guix-gc.service} to adjust the command line options to fit your needs (@pxref{Invoking guix gc})."
  4569. msgstr ""
  4570. #. type: itemize
  4571. #: guix-git/doc/guix.texi:766 guix-git/doc/guix.texi:13000
  4572. msgid "If your host distro uses the Upstart init system:"
  4573. msgstr "如果你的主机的发行版使用Upstart init系统:"
  4574. #. type: example
  4575. #: guix-git/doc/guix.texi:772
  4576. #, no-wrap
  4577. msgid ""
  4578. "# initctl reload-configuration\n"
  4579. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  4580. " /etc/init/\n"
  4581. "# start guix-daemon\n"
  4582. msgstr ""
  4583. "# initctl reload-configuration\n"
  4584. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  4585. " /etc/init/\n"
  4586. "# start guix-daemon\n"
  4587. #. type: enumerate
  4588. #: guix-git/doc/guix.texi:775
  4589. msgid "Otherwise, you can still start the daemon manually with:"
  4590. msgstr "此外,你可以手动启动后台进程:"
  4591. #. type: example
  4592. #: guix-git/doc/guix.texi:779
  4593. #, no-wrap
  4594. msgid ""
  4595. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  4596. " --build-users-group=guixbuild\n"
  4597. msgstr ""
  4598. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  4599. " --build-users-group=guixbuild\n"
  4600. #. type: enumerate
  4601. #: guix-git/doc/guix.texi:784
  4602. msgid "Make the @command{guix} command available to other users on the machine, for instance with:"
  4603. msgstr "使机器上的其他用户也可以使用@command{guix}命令:"
  4604. #. type: example
  4605. #: guix-git/doc/guix.texi:789
  4606. #, no-wrap
  4607. msgid ""
  4608. "# mkdir -p /usr/local/bin\n"
  4609. "# cd /usr/local/bin\n"
  4610. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  4611. msgstr ""
  4612. "# mkdir -p /usr/local/bin\n"
  4613. "# cd /usr/local/bin\n"
  4614. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  4615. #. type: enumerate
  4616. #: guix-git/doc/guix.texi:793
  4617. msgid "It is also a good idea to make the Info version of this manual available there:"
  4618. msgstr "最好让这个用户手册的Info版也可以被访问:"
  4619. #. type: example
  4620. #: guix-git/doc/guix.texi:799
  4621. #, no-wrap
  4622. msgid ""
  4623. "# mkdir -p /usr/local/share/info\n"
  4624. "# cd /usr/local/share/info\n"
  4625. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  4626. " do ln -s $i ; done\n"
  4627. msgstr ""
  4628. "# mkdir -p /usr/local/share/info\n"
  4629. "# cd /usr/local/share/info\n"
  4630. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  4631. " do ln -s $i ; done\n"
  4632. #. type: enumerate
  4633. #: guix-git/doc/guix.texi:805
  4634. #, fuzzy
  4635. 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)."
  4636. msgstr "那样,假设@file{/usr/local/share/info}在搜索路径里,运行@command{info guix}命令就会打开这个用户手册(@pxref{Other Info Directories,,, texinfo, GNU Texinfo},更多关于Info搜索路径的信息)。"
  4637. #. type: cindex
  4638. #: guix-git/doc/guix.texi:807 guix-git/doc/guix.texi:3760
  4639. #: guix-git/doc/guix.texi:15675
  4640. #, no-wrap
  4641. msgid "substitutes, authorization thereof"
  4642. msgstr "substitutes,对其授权"
  4643. #. type: enumerate
  4644. #: guix-git/doc/guix.texi:811
  4645. #, fuzzy
  4646. #| msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER}} or one of its mirrors (@pxref{Substitutes}), authorize them:"
  4647. msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER-1}}, @code{@value{SUBSTITUTE-SERVER-2}} or a mirror (@pxref{Substitutes}), authorize them:"
  4648. msgstr "为了使用@code{@value{SUBSTITUTE-SERVER}}或其镜像的substitute(@pxref{Substitutes}),对其授权:"
  4649. #. type: example
  4650. #: guix-git/doc/guix.texi:817
  4651. #, fuzzy, no-wrap
  4652. #| msgid ""
  4653. #| "# guix archive --authorize < \\\n"
  4654. #| " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  4655. msgid ""
  4656. "# guix archive --authorize < \\\n"
  4657. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  4658. "# guix archive --authorize < \\\n"
  4659. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  4660. msgstr ""
  4661. "# guix archive --authorize < \\\n"
  4662. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  4663. #. type: quotation
  4664. #: guix-git/doc/guix.texi:824
  4665. 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."
  4666. msgstr ""
  4667. #. type: enumerate
  4668. #: guix-git/doc/guix.texi:829
  4669. msgid "Each user may need to perform a few additional steps to make their Guix environment ready for use, @pxref{Application Setup}."
  4670. msgstr "每个用户可能需要执行一些额外的步骤以使各自的Guix环境可用,@pxref{Application Setup}。"
  4671. #. type: Plain text
  4672. #: guix-git/doc/guix.texi:832
  4673. msgid "Voilà, the installation is complete!"
  4674. msgstr "瞧,安装完成了!"
  4675. #. type: Plain text
  4676. #: guix-git/doc/guix.texi:835
  4677. msgid "You can confirm that Guix is working by installing a sample package into the root profile:"
  4678. msgstr "你可以通过给root profile安装一个软件包来确认Guix可以正常工作。"
  4679. #. type: example
  4680. #: guix-git/doc/guix.texi:838
  4681. #, no-wrap
  4682. msgid "# guix install hello\n"
  4683. msgstr "# guix install hello\n"
  4684. #. type: Plain text
  4685. #: guix-git/doc/guix.texi:842
  4686. msgid "The binary installation tarball can be (re)produced and verified simply by running the following command in the Guix source tree:"
  4687. msgstr "二进制安装包可以通过在Guix源代码树里运行下面这些命令来重现和验证:"
  4688. #. type: example
  4689. #: guix-git/doc/guix.texi:845
  4690. #, no-wrap
  4691. msgid "make guix-binary.@var{system}.tar.xz\n"
  4692. msgstr "make guix-binary.@var{系统}.tar.xz\n"
  4693. #. type: Plain text
  4694. #: guix-git/doc/guix.texi:849
  4695. msgid "...@: which, in turn, runs:"
  4696. msgstr "...@: 这个命令会执行:"
  4697. #. type: example
  4698. #: guix-git/doc/guix.texi:853
  4699. #, no-wrap
  4700. msgid ""
  4701. "guix pack -s @var{system} --localstatedir \\\n"
  4702. " --profile-name=current-guix guix\n"
  4703. msgstr ""
  4704. "guix pack -s @var{系统} --localstatedir \\\n"
  4705. " --profile-name=current-guix guix\n"
  4706. #. type: Plain text
  4707. #: guix-git/doc/guix.texi:856
  4708. msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  4709. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  4710. #. type: Plain text
  4711. #: guix-git/doc/guix.texi:864
  4712. 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."
  4713. msgstr "这个小节列举了从源代码构建Guix的需求。构建Guix的步骤和其它GNU软件相同,这里不介绍。请阅读Guix源代码树里的@file{README}和@file{INSTALL}文件以了解更多的信息。"
  4714. #. type: cindex
  4715. #: guix-git/doc/guix.texi:865
  4716. #, no-wrap
  4717. msgid "official website"
  4718. msgstr "官方网站"
  4719. #. type: Plain text
  4720. #: guix-git/doc/guix.texi:868
  4721. msgid "GNU Guix is available for download from its website at @url{https://www.gnu.org/software/guix/}."
  4722. msgstr "GNU Guix可以从它的网站下载@url{https://www.gnu.org/software/guix/}。"
  4723. #. type: Plain text
  4724. #: guix-git/doc/guix.texi:870
  4725. msgid "GNU Guix depends on the following packages:"
  4726. msgstr "GNU Guix依赖这些软件包:"
  4727. #. type: item
  4728. #: guix-git/doc/guix.texi:872
  4729. #, fuzzy, no-wrap
  4730. msgid "@url{https://gnu.org/software/guile/, GNU Guile}, version 3.0.x;"
  4731. msgstr "@url{https://gnu.org/software/guile/, GNU Guile},版本2.2.x;"
  4732. #. type: item
  4733. #: guix-git/doc/guix.texi:873
  4734. #, no-wrap
  4735. msgid "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt}, version"
  4736. msgstr "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt},版本"
  4737. #. type: itemize
  4738. #: guix-git/doc/guix.texi:875
  4739. msgid "0.1.0 or later;"
  4740. msgstr "0.1.0或更新;"
  4741. #. type: itemize
  4742. #: guix-git/doc/guix.texi:879
  4743. 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});"
  4744. msgstr "@uref{https://gnutls.org/, GnuTLS},特别是它的Guile接口(@pxref{Guile Preparations, 怎样为Guile安装GnuTLS接口,, gnutls-guile, GnuTLS-Guile});"
  4745. #. type: itemize
  4746. #: guix-git/doc/guix.texi:882
  4747. msgid "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3}, version 0.1.0 or later;"
  4748. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4749. #. type: item
  4750. #: guix-git/doc/guix.texi:882
  4751. #, fuzzy, no-wrap
  4752. msgid "@uref{https://notabug.org/guile-zlib/guile-zlib, Guile-zlib},"
  4753. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4754. #. type: itemize
  4755. #: guix-git/doc/guix.texi:884
  4756. #, fuzzy
  4757. msgid "version 0.1.0 or later;"
  4758. msgstr "0.1.0或更新;"
  4759. #. type: item
  4760. #: guix-git/doc/guix.texi:884
  4761. #, fuzzy, no-wrap
  4762. msgid "@uref{https://notabug.org/guile-lzlib/guile-lzlib, Guile-lzlib};"
  4763. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4764. #. type: item
  4765. #: guix-git/doc/guix.texi:885
  4766. #, no-wrap
  4767. msgid "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4768. msgstr "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4769. #. type: itemize
  4770. #: guix-git/doc/guix.texi:889
  4771. #, fuzzy
  4772. msgid "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git}, version 0.5.0 or later;"
  4773. msgstr "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git},2017年8月及之后的版本;"
  4774. #. type: item
  4775. #: guix-git/doc/guix.texi:889
  4776. #, fuzzy, no-wrap
  4777. msgid "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON}"
  4778. msgstr "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON};"
  4779. #. type: itemize
  4780. #: guix-git/doc/guix.texi:891
  4781. #, fuzzy
  4782. msgid "4.3.0 or later;"
  4783. msgstr "0.1.0或更新;"
  4784. #. type: item
  4785. #: guix-git/doc/guix.texi:891
  4786. #, no-wrap
  4787. msgid "@url{https://www.gnu.org/software/make/, GNU Make}."
  4788. msgstr "@url{https://www.gnu.org/software/make/, GNU Make}。"
  4789. #. type: Plain text
  4790. #: guix-git/doc/guix.texi:895
  4791. msgid "The following dependencies are optional:"
  4792. msgstr "这些依赖是可选的:"
  4793. #. type: itemize
  4794. #: guix-git/doc/guix.texi:903
  4795. #, fuzzy
  4796. 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."
  4797. 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或更新。"
  4798. #. type: itemize
  4799. #: guix-git/doc/guix.texi:908
  4800. 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})."
  4801. msgstr ""
  4802. #. type: itemize
  4803. #: guix-git/doc/guix.texi:912
  4804. msgid "@uref{https://ngyro.com/software/guile-semver.html, Guile-Semver} for the @code{crate} importer (@pxref{Invoking guix import})."
  4805. msgstr ""
  4806. #. type: itemize
  4807. #: guix-git/doc/guix.texi:917
  4808. 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})."
  4809. msgstr ""
  4810. #. type: itemize
  4811. #: guix-git/doc/guix.texi:921
  4812. msgid "When @url{http://www.bzip.org, libbz2} is available, @command{guix-daemon} can use it to compress build logs."
  4813. msgstr "当@url{http://www.bzip.org, libbz2}存在时,@command{guix-daemon}可以用它压缩构建日志。"
  4814. #. type: Plain text
  4815. #: guix-git/doc/guix.texi:925
  4816. #, fuzzy
  4817. msgid "Unless @option{--disable-daemon} was passed to @command{configure}, the following packages are also needed:"
  4818. msgstr "除非@code{--disable-daemon}参数被传给@command{configure},这些软件包也是需要的依赖:"
  4819. #. type: item
  4820. #: guix-git/doc/guix.texi:927
  4821. #, no-wrap
  4822. msgid "@url{https://gnupg.org/, GNU libgcrypt};"
  4823. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  4824. #. type: item
  4825. #: guix-git/doc/guix.texi:928
  4826. #, no-wrap
  4827. msgid "@url{https://sqlite.org, SQLite 3};"
  4828. msgstr "@url{https://sqlite.org, SQLite 3};"
  4829. #. type: item
  4830. #: guix-git/doc/guix.texi:929
  4831. #, no-wrap
  4832. msgid "@url{https://gcc.gnu.org, GCC's g++}, with support for the"
  4833. msgstr "@url{https://gcc.gnu.org, GCC's g++},支持"
  4834. #. type: itemize
  4835. #: guix-git/doc/guix.texi:931
  4836. msgid "C++11 standard."
  4837. msgstr "C++11标准。"
  4838. #. type: cindex
  4839. #: guix-git/doc/guix.texi:933
  4840. #, no-wrap
  4841. msgid "state directory"
  4842. msgstr "状态文件夹"
  4843. #. type: Plain text
  4844. #: guix-git/doc/guix.texi:942
  4845. #, fuzzy
  4846. 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})."
  4847. msgstr "当在一个已经安装Guix的系统上配置Guix时,请确保用@command{configure}的@code{--localstatedir}参数指定和现有的安装相同的状态文件夹(@pxref{Directory Variables, @code{localstatedir},, standards, GNU Coding Standards})。@command{configure}保护你免于误设置@var{localstatedir},从而不会无意中损坏仓库(@pxref{The Store})。"
  4848. #. type: cindex
  4849. #: guix-git/doc/guix.texi:946
  4850. #, no-wrap
  4851. msgid "test suite"
  4852. msgstr "测试套件"
  4853. #. type: Plain text
  4854. #: guix-git/doc/guix.texi:952
  4855. 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:"
  4856. msgstr "成功执行@command{configure}和@code{make}之后,最好运行测试套件。它可以帮助查找设置和环境的错误,或者是Guix自身的bug--并且,报告测试错误是帮助改进软件的好方法。输入下面的命令以执行测试套件。"
  4857. #. type: example
  4858. #: guix-git/doc/guix.texi:955
  4859. #, no-wrap
  4860. msgid "make check\n"
  4861. msgstr "make check\n"
  4862. #. type: Plain text
  4863. #: guix-git/doc/guix.texi:962
  4864. 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."
  4865. msgstr "测试用例可以并行运行:你可以用GNU@tie{}make的@code{-j}参数来加速运行。才一台较新的机器上第一次运行可能会花几分钟,后续的运行会更快,因为为测试创建的仓库已经包含了各种缓存。"
  4866. #. type: Plain text
  4867. #: guix-git/doc/guix.texi:965
  4868. msgid "It is also possible to run a subset of the tests by defining the @code{TESTS} makefile variable as in this example:"
  4869. msgstr "你还可以通过定义makefile的@code{TESTS}变量只运行测试的一个子集:"
  4870. #. type: example
  4871. #: guix-git/doc/guix.texi:968
  4872. #, no-wrap
  4873. msgid "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  4874. msgstr "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  4875. #. type: Plain text
  4876. #: guix-git/doc/guix.texi:973
  4877. 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:"
  4878. msgstr "默认情况下,测试结果只展示到文件层级。为了看每个独立的测试用例的详情,可以像这样定义@code{SCM_LOG_DRIVER_FLAGS} makefile变量:"
  4879. #. type: example
  4880. #: guix-git/doc/guix.texi:976
  4881. #, no-wrap
  4882. msgid "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4883. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4884. #. type: Plain text
  4885. #: guix-git/doc/guix.texi:984
  4886. 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'':"
  4887. msgstr ""
  4888. #. type: example
  4889. #: guix-git/doc/guix.texi:988
  4890. #, no-wrap
  4891. msgid ""
  4892. "export SCM_LOG_DRIVER_FLAGS=\"--select=^transaction-upgrade-entry\"\n"
  4893. "make check TESTS=\"tests/packages.scm\"\n"
  4894. msgstr ""
  4895. #. type: Plain text
  4896. #: guix-git/doc/guix.texi:994
  4897. 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:"
  4898. msgstr ""
  4899. #. type: example
  4900. #: guix-git/doc/guix.texi:997
  4901. #, fuzzy, no-wrap
  4902. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --errors-only=yes\" VERBOSE=1\n"
  4903. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4904. #. type: Plain text
  4905. #: guix-git/doc/guix.texi:1002
  4906. 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}:"
  4907. msgstr ""
  4908. #. type: example
  4909. #: guix-git/doc/guix.texi:1005
  4910. #, fuzzy, no-wrap
  4911. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --show-duration=yes\"\n"
  4912. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4913. #. type: Plain text
  4914. #: guix-git/doc/guix.texi:1009
  4915. msgid "@xref{Parallel Test Harness,,,automake,GNU Automake} for more information about the Automake Parallel Test Harness."
  4916. msgstr ""
  4917. #. type: Plain text
  4918. #: guix-git/doc/guix.texi:1014
  4919. 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."
  4920. msgstr "遇到错误时,请给@email{bug-guix@@gnu.org}发邮件,并附带@file{test-suite.log}文件。请在消息里说明使用的Guix的版本信息和依赖(@pxref{Requirements})的版本信息。"
  4921. #. type: Plain text
  4922. #: guix-git/doc/guix.texi:1018
  4923. 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:"
  4924. msgstr "Guix还附带了一个可以测试整个Guix系统实例的全系统测试套件。它只能在已经安装Guix的系统上运行:"
  4925. #. type: example
  4926. #: guix-git/doc/guix.texi:1021
  4927. #, no-wrap
  4928. msgid "make check-system\n"
  4929. msgstr "make check-system\n"
  4930. #. type: Plain text
  4931. #: guix-git/doc/guix.texi:1025
  4932. msgid "or, again, by defining @code{TESTS} to select a subset of tests to run:"
  4933. msgstr "或者,同样的,通过定义@code{TESTS}只运行测试的一个子集:"
  4934. #. type: example
  4935. #: guix-git/doc/guix.texi:1028
  4936. #, no-wrap
  4937. msgid "make check-system TESTS=\"basic mcron\"\n"
  4938. msgstr "make check-system TESTS=\"basic mcron\"\n"
  4939. #. type: Plain text
  4940. #: guix-git/doc/guix.texi:1036
  4941. 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."
  4942. msgstr "这些系统测试是在@code{(gnu tests @dots{})}模块里定义的。它们在虚拟机(VM)里运行轻量的指令。它们的计算量可能很多也可能很少,这取决于它们依赖的substitute(@pxref{Substitutes})是否已经存在。它们之中有些需要很多存储空间以保存虚拟机硬盘。"
  4943. #. type: Plain text
  4944. #: guix-git/doc/guix.texi:1039
  4945. msgid "Again in case of test failures, please send @email{bug-guix@@gnu.org} all the details."
  4946. msgstr "再重复一遍,如果遇到测试错误,请给@email{bug-guix@@gnu.org}发邮件,并附带详细的说明。"
  4947. #. type: cindex
  4948. #: guix-git/doc/guix.texi:1043
  4949. #, no-wrap
  4950. msgid "daemon"
  4951. msgstr "后台进程"
  4952. #. type: Plain text
  4953. #: guix-git/doc/guix.texi:1051
  4954. 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."
  4955. msgstr "构建软件包或运行垃圾回收器之类的操作都是由一个特殊的进程代替客户执行的,即@dfn{构建后台进程}。只有这个进程可以访问仓库和相关的数据库。因此,所有修改仓库的操作都通过这个后台进程执行。例如,@command{guix package}和@command{guix build}之类的命令行工具通过和这个后台进程通信(@i{通过}远程过程调用)来指示它该做什么。"
  4956. #. type: Plain text
  4957. #: guix-git/doc/guix.texi:1055
  4958. 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."
  4959. msgstr "接下来的几个小节介绍如何准备“构建后台进程”的环境。参考@ref{Substitutes},了解怎样允许这个后台进程下载预构建好的二进制文件。"
  4960. #. type: cindex
  4961. #: guix-git/doc/guix.texi:1065 guix-git/doc/guix.texi:1527
  4962. #, no-wrap
  4963. msgid "build environment"
  4964. msgstr "构建环境"
  4965. #. type: Plain text
  4966. #: guix-git/doc/guix.texi:1073
  4967. 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."
  4968. msgstr "在一个标准的多用户设置里,Guix和它的后台进程--@command{guix-daemon}程序--是由@code{root}用户安装的,并且@command{guix-daemon}以@code{root}用户身份运行。无特权的用户可以用Guix的工具构建软件包或访问仓库,这个后台进程会代替用户进行这些操作,以确保仓库保持一致的状态,并且允许构建好的软件包可以在不同用户间共享。"
  4969. #. type: cindex
  4970. #: guix-git/doc/guix.texi:1074
  4971. #, no-wrap
  4972. msgid "build users"
  4973. msgstr "构建用户"
  4974. #. type: Plain text
  4975. #: guix-git/doc/guix.texi:1085
  4976. 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})."
  4977. msgstr "当@command{guix-daemon}以@code{root}用户身份运行时,由于安全方面的考虑,你可能不希望软件包构建进程也以@code{root}用户身份运行。为了避免那样,我们需要创建一个@dfn{构建用户}池,以供后台进程启动的构建进程使用。这些构建用户不需要拥有shell和家目录:他们只会在后台进程为构建进程剥夺@code{root}特权时使用。拥有多个这类用户使后台进程可以以不同的UID启动不同的构建进程,这保证它们不会互相干扰--这是一个重要的功能,因为构建被视为纯函数(@pxref{Introduction})。"
  4978. #. type: Plain text
  4979. #: guix-git/doc/guix.texi:1088
  4980. msgid "On a GNU/Linux system, a build user pool may be created like this (using Bash syntax and the @code{shadow} commands):"
  4981. msgstr "在一个GNU/Linux系统上,可以这样创建一个构建用户池(用bash语法和@code{shadow}命令):"
  4982. #. type: example
  4983. #: guix-git/doc/guix.texi:1100
  4984. #, fuzzy, no-wrap
  4985. msgid ""
  4986. "# groupadd --system guixbuild\n"
  4987. "# for i in $(seq -w 1 10);\n"
  4988. " do\n"
  4989. " useradd -g guixbuild -G guixbuild \\\n"
  4990. " -d /var/empty -s $(which nologin) \\\n"
  4991. " -c \"Guix build user $i\" --system \\\n"
  4992. " guixbuilder$i;\n"
  4993. " done\n"
  4994. msgstr ""
  4995. "# groupadd --system guixbuild\n"
  4996. "# for i in `seq -w 1 10`;\n"
  4997. " do\n"
  4998. " useradd -g guixbuild -G guixbuild \\\n"
  4999. " -d /var/empty -s `which nologin` \\\n"
  5000. " -c \"Guix build user $i\" --system \\\n"
  5001. " guixbuilder$i;\n"
  5002. " done\n"
  5003. #. type: Plain text
  5004. #: guix-git/doc/guix.texi:1110
  5005. 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})."
  5006. 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})。"
  5007. #. type: Plain text
  5008. #: guix-git/doc/guix.texi:1119
  5009. 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}.}:"
  5010. 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}文件夹里}:"
  5011. #. type: example
  5012. #: guix-git/doc/guix.texi:1122 guix-git/doc/guix.texi:1520
  5013. #, no-wrap
  5014. msgid "# guix-daemon --build-users-group=guixbuild\n"
  5015. msgstr "# guix-daemon --build-users-group=guixbuild\n"
  5016. #. type: cindex
  5017. #: guix-git/doc/guix.texi:1124 guix-git/doc/guix.texi:1525
  5018. #, no-wrap
  5019. msgid "chroot"
  5020. msgstr "chroot"
  5021. #. type: Plain text
  5022. #: guix-git/doc/guix.texi:1129
  5023. 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:"
  5024. msgstr "这样,后台进程在一个chroot环境里,以一个@code{guixbuilder}用户组成员的身份启动构建进程。在GNU/Linux上,默认的,这个chroot环境仅包含这些东西:"
  5025. #. type: itemize
  5026. #: guix-git/doc/guix.texi:1137
  5027. 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.};"
  5028. msgstr "一个和主机@code{/dev}独立的@footnote{大致这样,因为虽然chroot环境里的@code{/dev}包含的文件是固定的,大部分这些文件只有在主机有对应的文件时才能创建。},最小的@code{/dev}文件夹;"
  5029. #. type: itemize
  5030. #: guix-git/doc/guix.texi:1141
  5031. msgid "the @code{/proc} directory; it only shows the processes of the container since a separate PID name space is used;"
  5032. msgstr "@code{/proc}文件夹;它只含有当前容器的进程,因为用了一个独立的进程PID命名空间;"
  5033. #. type: itemize
  5034. #: guix-git/doc/guix.texi:1145
  5035. msgid "@file{/etc/passwd} with an entry for the current user and an entry for user @file{nobody};"
  5036. msgstr "@file{/etc/passwd},仅包含当前用户和@file{nobody};"
  5037. #. type: itemize
  5038. #: guix-git/doc/guix.texi:1148
  5039. msgid "@file{/etc/group} with an entry for the user's group;"
  5040. msgstr "@file{/etc/group},包含用户的组;"
  5041. #. type: itemize
  5042. #: guix-git/doc/guix.texi:1152
  5043. msgid "@file{/etc/hosts} with an entry that maps @code{localhost} to @code{127.0.0.1};"
  5044. msgstr "@file{/etc/hosts},包含@code{localhost}映射到@code{127.0.0.1}的条目;"
  5045. #. type: itemize
  5046. #: guix-git/doc/guix.texi:1155
  5047. msgid "a writable @file{/tmp} directory."
  5048. msgstr "一个可写的@file{/tmp}文件夹。"
  5049. #. type: Plain text
  5050. #: guix-git/doc/guix.texi:1164
  5051. #, fuzzy
  5052. 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."
  5053. msgstr "你可以@i{通过}@code{TMPDIR}环境变量修改后台进程保存构建树的位置。但是,chroot里的构建树总是在@file{/tmp/guix-build-@var{名字}.drv-0},@var{名字}是derivation的名字--如@code{coreutils-8.24}。这样,@code{TMPDIR}的值就不会泄漏到构建环境里,这可以避免由构建进程读取构建树名字引起的问题。"
  5054. #. type: vindex
  5055. #: guix-git/doc/guix.texi:1165 guix-git/doc/guix.texi:3969
  5056. #, no-wrap
  5057. msgid "http_proxy"
  5058. msgstr "http_proxy"
  5059. #. type: vindex
  5060. #: guix-git/doc/guix.texi:1166 guix-git/doc/guix.texi:3970
  5061. #, fuzzy, no-wrap
  5062. msgid "https_proxy"
  5063. msgstr "http_proxy"
  5064. #. type: Plain text
  5065. #: guix-git/doc/guix.texi:1171
  5066. #, fuzzy
  5067. 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})."
  5068. msgstr "后台进程通过HTTP下载时还遵守@code{http_proxy}环境变量,无论是下载derivation(@pxref{Derivations}),还是下载substitute(@pxref{Substitutes})。"
  5069. #. type: Plain text
  5070. #: guix-git/doc/guix.texi:1179
  5071. #, fuzzy
  5072. 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."
  5073. msgstr "如果你是以无特权的用户的身份安装Guix,你仍可以运行@command{guix-daemon},只要添加@code{--disable-chroot}参数就行了。但是,构建进程不会互相隔离,也不会和系统的其它部分隔离。因此,构建进程有可能互相干扰,可以访问程序、库和系统上的其它文件--这样就很难把它看作@emph{纯}函数。"
  5074. #. type: subsection
  5075. #: guix-git/doc/guix.texi:1182
  5076. #, no-wrap
  5077. msgid "Using the Offload Facility"
  5078. msgstr "使用任务下发设施"
  5079. #. type: cindex
  5080. #: guix-git/doc/guix.texi:1184 guix-git/doc/guix.texi:1586
  5081. #, no-wrap
  5082. msgid "offloading"
  5083. msgstr "下发"
  5084. #. type: cindex
  5085. #: guix-git/doc/guix.texi:1185
  5086. #, no-wrap
  5087. msgid "build hook"
  5088. msgstr "构建钩子"
  5089. #. type: Plain text
  5090. #: guix-git/doc/guix.texi:1204
  5091. #, fuzzy
  5092. 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:"
  5093. 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复制到目标机器,然后继续构建;成功后,构建输出的结果被复制回初始的机器上。"
  5094. #. type: enumerate
  5095. #: guix-git/doc/guix.texi:1210
  5096. 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."
  5097. msgstr ""
  5098. #. type: enumerate
  5099. #: guix-git/doc/guix.texi:1214
  5100. msgid "Its relative speed, as defined via the @code{speed} field of its @code{build-machine} object."
  5101. msgstr ""
  5102. #. type: enumerate
  5103. #: guix-git/doc/guix.texi:1219
  5104. 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."
  5105. msgstr ""
  5106. #. type: enumerate
  5107. #: guix-git/doc/guix.texi:1222
  5108. msgid "Disk space availability. More than a 100 MiB must be available."
  5109. msgstr ""
  5110. #. type: Plain text
  5111. #: guix-git/doc/guix.texi:1225
  5112. msgid "The @file{/etc/guix/machines.scm} file typically looks like this:"
  5113. msgstr "@file{/etc/guix/machines.scm}文件通常是这样的:"
  5114. #. type: lisp
  5115. #: guix-git/doc/guix.texi:1233
  5116. #, fuzzy, no-wrap
  5117. msgid ""
  5118. "(list (build-machine\n"
  5119. " (name \"eightysix.example.org\")\n"
  5120. " (systems (list \"x86_64-linux\" \"i686-linux\"))\n"
  5121. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5122. " (user \"bob\")\n"
  5123. " (speed 2.)) ;incredibly fast!\n"
  5124. "\n"
  5125. msgstr ""
  5126. "(list (build-machine\n"
  5127. " (name \"eightysix.example.org\")\n"
  5128. " (system \"x86_64-linux\")\n"
  5129. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5130. " (user \"bob\")\n"
  5131. " (speed 2.)) ;非常快!\n"
  5132. "\n"
  5133. #. type: lisp
  5134. #: guix-git/doc/guix.texi:1242
  5135. #, fuzzy, no-wrap
  5136. msgid ""
  5137. " (build-machine\n"
  5138. " (name \"armeight.example.org\")\n"
  5139. " (systems (list \"aarch64-linux\"))\n"
  5140. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  5141. " (user \"alice\")\n"
  5142. " (private-key\n"
  5143. " (string-append (getenv \"HOME\")\n"
  5144. " \"/.ssh/identity-for-guix\"))))\n"
  5145. msgstr ""
  5146. " (build-machine\n"
  5147. " (name \"meeps.example.org\")\n"
  5148. " (system \"mips64el-linux\")\n"
  5149. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  5150. " (user \"alice\")\n"
  5151. " (private-key\n"
  5152. " (string-append (getenv \"HOME\")\n"
  5153. " \"/.ssh/identity-for-guix\"))))\n"
  5154. #. type: Plain text
  5155. #: guix-git/doc/guix.texi:1248
  5156. #, fuzzy
  5157. 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."
  5158. msgstr "在上面的例子里,我们指定了一个包含两个构建机器的列表,一个是@code{x86_64}架构,一个是@code{mips64el}架构。"
  5159. #. type: Plain text
  5160. #: guix-git/doc/guix.texi:1257
  5161. 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."
  5162. msgstr "事实上,这个文件--并不意外地--是一个Scheme文件,当@code{下发}钩子被启动时执行。它的返回值必须是一个包含@code{build-machine}对象的列表。虽然这个例子展示的是一个固定的列表,你可以想象,使用DNS-SD来返回一个包含从局域网内发现的构建机器的列表,@pxref{Introduction, Guile-Avahi,, guile-avahi, 在Guile Scheme程序里使用Avahi}。@code{build-machine}数据类型的详细信息如下。"
  5163. #. type: deftp
  5164. #: guix-git/doc/guix.texi:1258
  5165. #, no-wrap
  5166. msgid "{Data Type} build-machine"
  5167. msgstr "{数据类型} build-machine"
  5168. #. type: deftp
  5169. #: guix-git/doc/guix.texi:1261
  5170. msgid "This data type represents build machines to which the daemon may offload builds. The important fields are:"
  5171. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  5172. #. type: item
  5173. #: guix-git/doc/guix.texi:1264 guix-git/doc/guix.texi:6718
  5174. #: guix-git/doc/guix.texi:14633 guix-git/doc/guix.texi:14727
  5175. #: guix-git/doc/guix.texi:14968 guix-git/doc/guix.texi:16939
  5176. #: guix-git/doc/guix.texi:20218 guix-git/doc/guix.texi:23128
  5177. #: guix-git/doc/guix.texi:24517 guix-git/doc/guix.texi:25129
  5178. #: guix-git/doc/guix.texi:25482 guix-git/doc/guix.texi:25523
  5179. #: guix-git/doc/guix.texi:27675 guix-git/doc/guix.texi:29959
  5180. #: guix-git/doc/guix.texi:29979 guix-git/doc/guix.texi:32659
  5181. #: guix-git/doc/guix.texi:32676 guix-git/doc/guix.texi:33192
  5182. #: guix-git/doc/guix.texi:34951 guix-git/doc/guix.texi:35278
  5183. #, no-wrap
  5184. msgid "name"
  5185. msgstr "名字"
  5186. #. type: table
  5187. #: guix-git/doc/guix.texi:1266
  5188. msgid "The host name of the remote machine."
  5189. msgstr "远程机器的主机名。"
  5190. #. type: item
  5191. #: guix-git/doc/guix.texi:1267
  5192. #, fuzzy, no-wrap
  5193. msgid "systems"
  5194. msgstr "系统"
  5195. #. type: table
  5196. #: guix-git/doc/guix.texi:1270
  5197. #, fuzzy
  5198. msgid "The system types the remote machine supports---e.g., @code{(list \"x86_64-linux\" \"i686-linux\")}."
  5199. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  5200. #. type: code{#1}
  5201. #: guix-git/doc/guix.texi:1271 guix-git/doc/guix.texi:16949
  5202. #, no-wrap
  5203. msgid "user"
  5204. msgstr "用户"
  5205. #. type: table
  5206. #: guix-git/doc/guix.texi:1275
  5207. 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."
  5208. msgstr "通过SSH连接远程机器时使用的用户帐号。注意,SSH密钥@emph{不}能被密码保护,以支持无交互的登录。"
  5209. #. type: item
  5210. #: guix-git/doc/guix.texi:1276
  5211. #, no-wrap
  5212. msgid "host-key"
  5213. msgstr "主机公钥"
  5214. #. type: table
  5215. #: guix-git/doc/guix.texi:1280
  5216. 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:"
  5217. msgstr "这必须是机器的OpenSSH格式的SSH@dfn{公钥}。这是用来在连接机器时认证身份的。它是一个像这样的长字符串:"
  5218. #. type: example
  5219. #: guix-git/doc/guix.texi:1283
  5220. #, no-wrap
  5221. msgid "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  5222. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  5223. #. type: table
  5224. #: guix-git/doc/guix.texi:1288
  5225. 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}."
  5226. msgstr "如果这个机器正在运行OpenSSH后台进程,@command{sshd},那么主机公钥可以在@file{/etc/ssh/ssh_host_ed25519_key.pub}找到。"
  5227. #. type: table
  5228. #: guix-git/doc/guix.texi:1293
  5229. 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}):"
  5230. msgstr "如果这个机器正在运行GNU@tie{}lsh,@command{lshd},那么主机公钥可以在@file{/etc/lsh/host-key.pub}或类似的位置找到。它可以通过@command{lsh-export-key}命令转换成OpenSSH格式(@pxref{Converting keys,,, lsh, LSH用户手册}):"
  5231. #. type: example
  5232. #: guix-git/doc/guix.texi:1297
  5233. #, fuzzy, no-wrap
  5234. msgid ""
  5235. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub\n"
  5236. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  5237. msgstr ""
  5238. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub \n"
  5239. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  5240. #. type: deftp
  5241. #: guix-git/doc/guix.texi:1302
  5242. msgid "A number of optional fields may be specified:"
  5243. msgstr "一些可选的项:"
  5244. #. type: item
  5245. #: guix-git/doc/guix.texi:1305 guix-git/doc/guix.texi:34447
  5246. #, no-wrap
  5247. msgid "@code{port} (default: @code{22})"
  5248. msgstr "@code{port}(默认值:@code{22})"
  5249. #. type: table
  5250. #: guix-git/doc/guix.texi:1307
  5251. msgid "Port number of SSH server on the machine."
  5252. msgstr "机器上的SSH服务器的端口号。"
  5253. #. type: item
  5254. #: guix-git/doc/guix.texi:1308
  5255. #, no-wrap
  5256. msgid "@code{private-key} (default: @file{~root/.ssh/id_rsa})"
  5257. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  5258. #. type: table
  5259. #: guix-git/doc/guix.texi:1311
  5260. 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."
  5261. msgstr "连接机器时使用的SSH私钥,OpenSSH格式。这个私钥不能被密码保护。"
  5262. #. type: table
  5263. #: guix-git/doc/guix.texi:1314
  5264. msgid "Note that the default value is the private key @emph{of the root account}. Make sure it exists if you use the default."
  5265. msgstr "注意,默认值是@emph{root帐号}的私钥。使用默认值时请确保它存在。"
  5266. #. type: item
  5267. #: guix-git/doc/guix.texi:1315
  5268. #, no-wrap
  5269. msgid "@code{compression} (default: @code{\"zlib@@openssh.com,zlib\"})"
  5270. msgstr "@code{compression}(默认值:@code{\"zlib@@openssh.com,zlib\"})"
  5271. #. type: itemx
  5272. #: guix-git/doc/guix.texi:1316
  5273. #, no-wrap
  5274. msgid "@code{compression-level} (default: @code{3})"
  5275. msgstr "@code{compression-level}(默认值:@code{3})"
  5276. #. type: table
  5277. #: guix-git/doc/guix.texi:1318
  5278. msgid "The SSH-level compression methods and compression level requested."
  5279. msgstr "SSH压缩算法和压缩级别。"
  5280. #. type: table
  5281. #: guix-git/doc/guix.texi:1321
  5282. msgid "Note that offloading relies on SSH compression to reduce bandwidth usage when transferring files to and from build machines."
  5283. msgstr "下发任务依赖SSH压缩来减少传输文件到构建机器时使用的带宽。"
  5284. #. type: item
  5285. #: guix-git/doc/guix.texi:1322
  5286. #, no-wrap
  5287. msgid "@code{daemon-socket} (default: @code{\"/var/guix/daemon-socket/socket\"})"
  5288. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  5289. #. type: table
  5290. #: guix-git/doc/guix.texi:1325
  5291. msgid "File name of the Unix-domain socket @command{guix-daemon} is listening to on that machine."
  5292. msgstr "那台机器上的@command{guix-daemon}监听的Unix套接字文件名。"
  5293. #. type: item
  5294. #: guix-git/doc/guix.texi:1326
  5295. #, fuzzy, no-wrap
  5296. msgid "@code{overload-threshold} (default: @code{0.6})"
  5297. msgstr "@code{features} (@code{'()})"
  5298. #. type: table
  5299. #: guix-git/doc/guix.texi:1332
  5300. 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}."
  5301. msgstr ""
  5302. #. type: item
  5303. #: guix-git/doc/guix.texi:1333
  5304. #, no-wrap
  5305. msgid "@code{parallel-builds} (default: @code{1})"
  5306. msgstr "@code{parallel-builds}(默认值:@code{1})"
  5307. #. type: table
  5308. #: guix-git/doc/guix.texi:1335
  5309. msgid "The number of builds that may run in parallel on the machine."
  5310. msgstr "那台机器上可以并行运行的构建任务数量。"
  5311. #. type: item
  5312. #: guix-git/doc/guix.texi:1336
  5313. #, no-wrap
  5314. msgid "@code{speed} (default: @code{1.0})"
  5315. msgstr "@code{speed}(默认值:@code{1.0})"
  5316. #. type: table
  5317. #: guix-git/doc/guix.texi:1339
  5318. msgid "A ``relative speed factor''. The offload scheduler will tend to prefer machines with a higher speed factor."
  5319. msgstr "一个相对的速度值。下发调度器会偏好速度更快的机器。"
  5320. #. type: item
  5321. #: guix-git/doc/guix.texi:1340
  5322. #, no-wrap
  5323. msgid "@code{features} (default: @code{'()})"
  5324. msgstr "@code{features} (@code{'()})"
  5325. #. type: table
  5326. #: guix-git/doc/guix.texi:1345
  5327. 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."
  5328. msgstr "一个表示机器支持的功能的字符串列表。例如,@code{\"kvm\"}表示机器有KVM Linux模块和相关的硬件支持。Derivation可以通过名字请求需要的功能,然后被分发到匹配的机器的任务队列里。"
  5329. #. type: Plain text
  5330. #: guix-git/doc/guix.texi:1351
  5331. 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:"
  5332. msgstr "@command{guix}命令必须在构建机器的搜素路径里。你可以通过这个命令检查:"
  5333. #. type: example
  5334. #: guix-git/doc/guix.texi:1354
  5335. #, no-wrap
  5336. msgid "ssh build-machine guix repl --version\n"
  5337. msgstr "ssh build-machine guix repl --version\n"
  5338. #. type: Plain text
  5339. #: guix-git/doc/guix.texi:1361
  5340. 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}):"
  5341. msgstr "@file{machines.scm}到位后,还有一件要做的事。如上所述,下发任务时会在机器的仓库之间传输文件。为此,你需要在每台机器上生成一个密钥对,以使后台进程可以从仓库导出签名后的文件包(@pxref{Invoking guix archive}):"
  5342. #. type: example
  5343. #: guix-git/doc/guix.texi:1364 guix-git/doc/guix.texi:34375
  5344. #, no-wrap
  5345. msgid "# guix archive --generate-key\n"
  5346. msgstr "# guix archive --generate-key\n"
  5347. #. type: Plain text
  5348. #: guix-git/doc/guix.texi:1369
  5349. msgid "Each build machine must authorize the key of the master machine so that it accepts store items it receives from the master:"
  5350. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  5351. #. type: example
  5352. #: guix-git/doc/guix.texi:1372
  5353. #, no-wrap
  5354. msgid "# guix archive --authorize < master-public-key.txt\n"
  5355. msgstr "# guix archive --authorize < master-public-key.txt\n"
  5356. #. type: Plain text
  5357. #: guix-git/doc/guix.texi:1376
  5358. msgid "Likewise, the master machine must authorize the key of each build machine."
  5359. msgstr "类似的,主机器必须认证每台构建机器的公钥:"
  5360. #. type: Plain text
  5361. #: guix-git/doc/guix.texi:1382
  5362. 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."
  5363. msgstr "所有这些有关公钥的繁琐事宜都是为了表达主服务器和构建服务器之间成对的互相信任关系。具体地,当主机器从构建机器接收文件时(反之亦然),它的构建后台进程可以确保文件是原样的,没有被篡改,并且被认证的公钥签名过。"
  5364. #. type: cindex
  5365. #: guix-git/doc/guix.texi:1383
  5366. #, no-wrap
  5367. msgid "offload test"
  5368. msgstr "下发测试"
  5369. #. type: Plain text
  5370. #: guix-git/doc/guix.texi:1386
  5371. msgid "To test whether your setup is operational, run this command on the master node:"
  5372. msgstr "为了测试你的设置是否能正常工作,在主节点上运行这个命令:"
  5373. #. type: example
  5374. #: guix-git/doc/guix.texi:1389
  5375. #, no-wrap
  5376. msgid "# guix offload test\n"
  5377. msgstr "# guix offload test\n"
  5378. #. type: Plain text
  5379. #: guix-git/doc/guix.texi:1395
  5380. #, fuzzy
  5381. 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."
  5382. msgstr "这会尝试连接每台在@file{/etc/guix/machines.scm}里指定的构建机器,确保Guile和Guix模块在每台机器上都可用,尝试导出到这些机器和从这些机器导入,并且报告这个过程中遇到的任何错误。"
  5383. #. type: Plain text
  5384. #: guix-git/doc/guix.texi:1398
  5385. msgid "If you want to test a different machine file, just specify it on the command line:"
  5386. msgstr "如果你希望用别的文件测试,只需要在命令行指定它:"
  5387. #. type: example
  5388. #: guix-git/doc/guix.texi:1401
  5389. #, no-wrap
  5390. msgid "# guix offload test machines-qualif.scm\n"
  5391. msgstr "# guix offload test machines-qualif.scm\n"
  5392. #. type: Plain text
  5393. #: guix-git/doc/guix.texi:1405
  5394. msgid "Last, you can test the subset of the machines whose name matches a regular expression like this:"
  5395. msgstr "最后,你可以像这样只测试机器列表里名字匹配某个正则表达式的子集:"
  5396. #. type: example
  5397. #: guix-git/doc/guix.texi:1408
  5398. #, no-wrap
  5399. msgid "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  5400. msgstr "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  5401. #. type: cindex
  5402. #: guix-git/doc/guix.texi:1410
  5403. #, no-wrap
  5404. msgid "offload status"
  5405. msgstr "下发状态"
  5406. #. type: Plain text
  5407. #: guix-git/doc/guix.texi:1413
  5408. msgid "To display the current load of all build hosts, run this command on the main node:"
  5409. msgstr "若想展示所有构建主机的当前负载,在主节点上运行这个命令:"
  5410. #. type: example
  5411. #: guix-git/doc/guix.texi:1416
  5412. #, no-wrap
  5413. msgid "# guix offload status\n"
  5414. msgstr "# guix offload status\n"
  5415. #. type: cindex
  5416. #: guix-git/doc/guix.texi:1422
  5417. #, no-wrap
  5418. msgid "SELinux, daemon policy"
  5419. msgstr "SELinux,后台进程策略"
  5420. #. type: cindex
  5421. #: guix-git/doc/guix.texi:1423
  5422. #, no-wrap
  5423. msgid "mandatory access control, SELinux"
  5424. msgstr "强制访问控制,SELinux"
  5425. #. type: cindex
  5426. #: guix-git/doc/guix.texi:1424
  5427. #, no-wrap
  5428. msgid "security, guix-daemon"
  5429. msgstr "安全,guix-daemon"
  5430. #. type: Plain text
  5431. #: guix-git/doc/guix.texi:1430
  5432. 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."
  5433. msgstr "Guix附带一个SELinux策略文件,位置在@file{etc/guix-daemon.cil},它可以在启用SELinux的系统上安装,为Guix的文件添加标签及指定后台进程的期望行为。由于Guix系统不提供SELinux基础策略,这个后台进程策略不能在Guix系统上使用。"
  5434. #. type: subsubsection
  5435. #: guix-git/doc/guix.texi:1431
  5436. #, no-wrap
  5437. msgid "Installing the SELinux policy"
  5438. msgstr "安装SELinux策略"
  5439. #. type: cindex
  5440. #: guix-git/doc/guix.texi:1432
  5441. #, no-wrap
  5442. msgid "SELinux, policy installation"
  5443. msgstr "SELinux,安装策略"
  5444. #. type: Plain text
  5445. #: guix-git/doc/guix.texi:1434
  5446. msgid "To install the policy run this command as root:"
  5447. msgstr "用root用户执行这个命令以安装策略:"
  5448. #. type: example
  5449. #: guix-git/doc/guix.texi:1437
  5450. #, no-wrap
  5451. msgid "semodule -i etc/guix-daemon.cil\n"
  5452. msgstr "semodule -i etc/guix-daemon.cil\n"
  5453. #. type: Plain text
  5454. #: guix-git/doc/guix.texi:1441
  5455. msgid "Then relabel the file system with @code{restorecon} or by a different mechanism provided by your system."
  5456. msgstr "用@code{restorecon}或者你的系统提供的其它机制重新给文件系统打标签。"
  5457. #. type: Plain text
  5458. #: guix-git/doc/guix.texi:1446
  5459. 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:"
  5460. msgstr "一旦安装好策略,为文件系统重新打好标签,并且重启了后台进程,它应该在@code{guix_daemon_t}环境里运行。你可以用下面这个命令确认:"
  5461. #. type: example
  5462. #: guix-git/doc/guix.texi:1449
  5463. #, no-wrap
  5464. msgid "ps -Zax | grep guix-daemon\n"
  5465. msgstr "ps -Zax | grep guix-daemon\n"
  5466. #. type: Plain text
  5467. #: guix-git/doc/guix.texi:1454
  5468. 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."
  5469. msgstr "运行@code{guix build hello}之类的命令并监控SELinux日志以说服你自己SELinux允许所有的操作。"
  5470. #. type: cindex
  5471. #: guix-git/doc/guix.texi:1456
  5472. #, no-wrap
  5473. msgid "SELinux, limitations"
  5474. msgstr "SELinux,限制"
  5475. #. type: Plain text
  5476. #: guix-git/doc/guix.texi:1461
  5477. 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."
  5478. msgstr "这个策略不是完美的。这里有一个关于限制和缺陷的列表,当为Guix后台进程部署提供的SELinux策略时该认真考虑。"
  5479. #. type: enumerate
  5480. #: guix-git/doc/guix.texi:1468
  5481. #, fuzzy
  5482. 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."
  5483. msgstr "@code{guix_daemon_socket_t}没有被实际使用。所有的套接字操作都和@code{guix_daemon_socket_t}没有任何关系。存在这个没被使用的标签并不碍事,但是为这个标签定义套接字规则是更好的选择。"
  5484. #. type: enumerate
  5485. #: guix-git/doc/guix.texi:1479
  5486. 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."
  5487. msgstr "@code{guix gc}不可以任意访问指向profile的链接。由于设计的原因,符号链接的目标的文件标签和符号链接本身的文件标签是不同的。尽管$localstatedir里的所有profile都被打上了标签,指向这些profile的符号链接继承它们所在的文件夹的标签。对于普通用户的家目录里的链接,标签是@code{user_home_t}。但是对于root用户的家目录,或@file{/tmp},或HTTP服务器的工作目录等文件夹里的链接不是这样。@code{guix gc}会被阻止读取和跟随这些链接。"
  5488. #. type: enumerate
  5489. #: guix-git/doc/guix.texi:1484
  5490. 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."
  5491. msgstr "后台进程监听TCP连接的功能不再可用。这可能需要额外的规则,因为SELinux区别对待网络套接字和文件。"
  5492. #. type: enumerate
  5493. #: guix-git/doc/guix.texi:1495
  5494. 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."
  5495. 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无法阻止它访问所在域的进程可以访问的文件。"
  5496. #. type: enumerate
  5497. #: guix-git/doc/guix.texi:1500
  5498. 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."
  5499. msgstr ""
  5500. #. type: enumerate
  5501. #: guix-git/doc/guix.texi:1508
  5502. 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."
  5503. msgstr "我们可以在安装时生成一个更严格的策略,仅当前安装的@code{guix-daemon}的@emph{精确的}的文件名会被打上@code{guix_daemon_exec_t}标签,而不是用一个宽泛的正则表达式。这样的缺点是root必须在每次安装提供@code{guix-daemon}的Guix软件包时安装或升级策略。"
  5504. #. type: section
  5505. #: guix-git/doc/guix.texi:1511
  5506. #, no-wrap
  5507. msgid "Invoking @command{guix-daemon}"
  5508. msgstr "调用@command{guix-daemon}"
  5509. #. type: Plain text
  5510. #: guix-git/doc/guix.texi:1517
  5511. 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:"
  5512. msgstr "@command{guix-daemon}程序实现了所有访问仓库的功能。包括启动构建进程,运行垃圾回收器,查询构建结果,等。它通常以@code{root}身份运行:"
  5513. #. type: Plain text
  5514. #: guix-git/doc/guix.texi:1524
  5515. msgid "For details on how to set it up, @pxref{Setting Up the Daemon}."
  5516. msgstr "关于如何设置它,@pxref{Setting Up the Daemon}。"
  5517. #. type: cindex
  5518. #: guix-git/doc/guix.texi:1526
  5519. #, no-wrap
  5520. msgid "container, build environment"
  5521. msgstr "容器,构建环境"
  5522. #. type: cindex
  5523. #: guix-git/doc/guix.texi:1528 guix-git/doc/guix.texi:3046
  5524. #: guix-git/doc/guix.texi:3950 guix-git/doc/guix.texi:13013
  5525. #, no-wrap
  5526. msgid "reproducible builds"
  5527. msgstr "可复现的构建"
  5528. #. type: Plain text
  5529. #: guix-git/doc/guix.texi:1540
  5530. #, fuzzy
  5531. 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})."
  5532. 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})。"
  5533. #. type: Plain text
  5534. #: guix-git/doc/guix.texi:1546
  5535. #, fuzzy
  5536. 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}."
  5537. msgstr "当后台进程代替用户执行构建时,它在@file{/tmp}或@code{TMPDIR}环境变量指定的文件夹里创建一个文件夹。在构建期间,这个文件夹被共享给容器,然而容器内,这个构建树总是叫做@file{/tmp/guix-build-@var{name}.drv-0}。"
  5538. #. type: Plain text
  5539. #: guix-git/doc/guix.texi:1550
  5540. #, fuzzy
  5541. 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}})."
  5542. msgstr "结束时构建文件夹就被自动删除了,除非构建失败并且客户端指定了@option{--keep-failed}参数(@pxref{Invoking guix build, @option{--keep-failed}})。"
  5543. #. type: Plain text
  5544. #: guix-git/doc/guix.texi:1556
  5545. #, fuzzy
  5546. 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."
  5547. msgstr "后台进程监听连接并且为每个客户端(@command{guix}的子命令)启动的会话生成一个子进程。@command{guix processes}命令允许你获取系统上的活动的概况,浏览每个活动会话和客户端。@xref{Invoking guix processes},以了解更多信息。"
  5548. #. type: Plain text
  5549. #: guix-git/doc/guix.texi:1558
  5550. msgid "The following command-line options are supported:"
  5551. msgstr "下面这些命令行选项受支持:"
  5552. #. type: item
  5553. #: guix-git/doc/guix.texi:1560
  5554. #, no-wrap
  5555. msgid "--build-users-group=@var{group}"
  5556. msgstr "--build-users-group=@var{用户组}"
  5557. #. type: table
  5558. #: guix-git/doc/guix.texi:1563
  5559. msgid "Take users from @var{group} to run build processes (@pxref{Setting Up the Daemon, build users})."
  5560. msgstr "这会从@var{用户组}里选取用户,以运行构建进程(@pxref{Setting Up the Daemon,构建用户})。"
  5561. #. type: item
  5562. #: guix-git/doc/guix.texi:1564 guix-git/doc/guix.texi:10362
  5563. #, no-wrap
  5564. msgid "--no-substitutes"
  5565. msgstr "--no-substitutes"
  5566. #. type: cindex
  5567. #: guix-git/doc/guix.texi:1565 guix-git/doc/guix.texi:3058
  5568. #: guix-git/doc/guix.texi:3703
  5569. #, no-wrap
  5570. msgid "substitutes"
  5571. msgstr "substitutes"
  5572. #. type: table
  5573. #: guix-git/doc/guix.texi:1569 guix-git/doc/guix.texi:10366
  5574. msgid "Do not use substitutes for build products. That is, always build things locally instead of allowing downloads of pre-built binaries (@pxref{Substitutes})."
  5575. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  5576. #. type: table
  5577. #: guix-git/doc/guix.texi:1573
  5578. #, fuzzy
  5579. 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})."
  5580. msgstr "当后台进程用@code{--no-substitutes}参数启动时,客户端仍然可以显式地@i{通过}@code{set-build-options}远程过程调用来启用substitute(@pxref{The Store})。"
  5581. #. type: anchor{#1}
  5582. #: guix-git/doc/guix.texi:1575
  5583. msgid "daemon-substitute-urls"
  5584. msgstr "daemon-substitute-urls"
  5585. #. type: item
  5586. #: guix-git/doc/guix.texi:1575 guix-git/doc/guix.texi:10349
  5587. #: guix-git/doc/guix.texi:12420 guix-git/doc/guix.texi:13159
  5588. #: guix-git/doc/guix.texi:13384
  5589. #, no-wrap
  5590. msgid "--substitute-urls=@var{urls}"
  5591. msgstr "--substitute-urls=@var{urls}"
  5592. #. type: table
  5593. #: guix-git/doc/guix.texi:1579
  5594. #, fuzzy
  5595. #| 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."
  5596. msgid "Consider @var{urls} the default whitespace-separated list of substitute source URLs. When this option is omitted, @indicateurl{@value{SUBSTITUTE-URLS}} is used."
  5597. msgstr "@var{urls}是用空格分隔的substitute源URL列表。当这个选项被省略时,默认使用@indicateurl{https://@value{SUBSTITUTE-SERVER}}。"
  5598. #. type: table
  5599. #: guix-git/doc/guix.texi:1582
  5600. msgid "This means that substitutes may be downloaded from @var{urls}, as long as they are signed by a trusted signature (@pxref{Substitutes})."
  5601. msgstr "这意味着可以从@var{urls}下载substitute,只要它们的签名可信(@pxref{Substitutes})。"
  5602. #. type: table
  5603. #: guix-git/doc/guix.texi:1585
  5604. msgid "@xref{Getting Substitutes from Other Servers}, for more information on how to configure the daemon to get substitutes from other servers."
  5605. msgstr ""
  5606. #. type: item
  5607. #: guix-git/doc/guix.texi:1587 guix-git/doc/guix.texi:10385
  5608. #, fuzzy, no-wrap
  5609. msgid "--no-offload"
  5610. msgstr "下发"
  5611. #. type: table
  5612. #: guix-git/doc/guix.texi:1591 guix-git/doc/guix.texi:10389
  5613. #, fuzzy
  5614. 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."
  5615. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  5616. #. type: item
  5617. #: guix-git/doc/guix.texi:1592
  5618. #, no-wrap
  5619. msgid "--cache-failures"
  5620. msgstr "--cache-failures"
  5621. #. type: table
  5622. #: guix-git/doc/guix.texi:1594
  5623. msgid "Cache build failures. By default, only successful builds are cached."
  5624. msgstr "缓存失败的构建。默认地,只缓存成功的构建。"
  5625. #. type: table
  5626. #: guix-git/doc/guix.texi:1599
  5627. 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}."
  5628. msgstr "当这个选项被使用时,可以用@command{guix gc --list-failures}查询被标记为失败的仓库文件;@command{guix gc --clear-failures}从仓库里删除失败的缓存。@xref{Invoking guix gc}。"
  5629. #. type: item
  5630. #: guix-git/doc/guix.texi:1600 guix-git/doc/guix.texi:10415
  5631. #, no-wrap
  5632. msgid "--cores=@var{n}"
  5633. msgstr "--cores=@var{n}"
  5634. #. type: itemx
  5635. #: guix-git/doc/guix.texi:1601 guix-git/doc/guix.texi:10416
  5636. #, no-wrap
  5637. msgid "-c @var{n}"
  5638. msgstr "-c @var{n}"
  5639. #. type: table
  5640. #: guix-git/doc/guix.texi:1604
  5641. msgid "Use @var{n} CPU cores to build each derivation; @code{0} means as many as available."
  5642. msgstr "用@var{n}个CPU核来构建每个derivation;@code{0}表示有多少就用多少。"
  5643. #. type: table
  5644. #: guix-git/doc/guix.texi:1608
  5645. #, fuzzy
  5646. 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})."
  5647. msgstr "默认值是@code{0},但是它的值可以被客户端覆盖,例如@command{guix build}的@code{--cores}选项(@pxref{Invoking guix build})。"
  5648. #. type: table
  5649. #: guix-git/doc/guix.texi:1612
  5650. #, fuzzy
  5651. 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}."
  5652. msgstr "他的作用是在构建进程里设置@code{NIX_BUILD_CORES}环境变量,从而用它来利用内部的并行机制--例如,通过运行@code{make -j$NIX_BUILD_CORES}。"
  5653. #. type: item
  5654. #: guix-git/doc/guix.texi:1613 guix-git/doc/guix.texi:10420
  5655. #, no-wrap
  5656. msgid "--max-jobs=@var{n}"
  5657. msgstr "--max-jobs=@var{n}"
  5658. #. type: itemx
  5659. #: guix-git/doc/guix.texi:1614 guix-git/doc/guix.texi:10421
  5660. #, no-wrap
  5661. msgid "-M @var{n}"
  5662. msgstr "-M @var{n}"
  5663. #. type: table
  5664. #: guix-git/doc/guix.texi:1619
  5665. 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."
  5666. msgstr "最多允许@var{n}个并行的构建任务。默认值是@code{1}。设置为@code{0}表示不在本地执行构建;而是下发构建任务(@pxref{Daemon Offload Setup}),或者直接失败。"
  5667. #. type: item
  5668. #: guix-git/doc/guix.texi:1620 guix-git/doc/guix.texi:10390
  5669. #, no-wrap
  5670. msgid "--max-silent-time=@var{seconds}"
  5671. msgstr "--max-silent-time=@var{seconds}"
  5672. #. type: table
  5673. #: guix-git/doc/guix.texi:1623 guix-git/doc/guix.texi:10393
  5674. msgid "When the build or substitution process remains silent for more than @var{seconds}, terminate it and report a build failure."
  5675. msgstr "当构建或substitution进程超过@var{seconds}秒仍然保持静默,就把它结束掉并报告构建失败。"
  5676. #. type: table
  5677. #: guix-git/doc/guix.texi:1625 guix-git/doc/guix.texi:1634
  5678. msgid "The default value is @code{0}, which disables the timeout."
  5679. msgstr "默认值是@code{0},表示关闭超时。"
  5680. #. type: table
  5681. #: guix-git/doc/guix.texi:1628
  5682. #, fuzzy
  5683. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--max-silent-time}})."
  5684. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--max-silent-time}})。"
  5685. #. type: item
  5686. #: guix-git/doc/guix.texi:1629 guix-git/doc/guix.texi:10397
  5687. #, no-wrap
  5688. msgid "--timeout=@var{seconds}"
  5689. msgstr "--timeout=@var{seconds}"
  5690. #. type: table
  5691. #: guix-git/doc/guix.texi:1632 guix-git/doc/guix.texi:10400
  5692. msgid "Likewise, when the build or substitution process lasts for more than @var{seconds}, terminate it and report a build failure."
  5693. msgstr "类似地,当构建或substitution进程执行超过@var{seconds}秒,就把它结束掉并报告构建失败。"
  5694. #. type: table
  5695. #: guix-git/doc/guix.texi:1637
  5696. #, fuzzy
  5697. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--timeout}})."
  5698. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--timeout}})。"
  5699. #. type: item
  5700. #: guix-git/doc/guix.texi:1638
  5701. #, no-wrap
  5702. msgid "--rounds=@var{N}"
  5703. msgstr "--rounds=@var{N}"
  5704. #. type: table
  5705. #: guix-git/doc/guix.texi:1643
  5706. 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})."
  5707. msgstr "为每个derivation构建@var{n}次,如果连续的构建结果不是每个比特都相同就报告错误。这个设置可以被@command{guix build}之类的客户端覆盖(@pxref{Invoking guix build})。"
  5708. #. type: table
  5709. #: guix-git/doc/guix.texi:1647 guix-git/doc/guix.texi:10384
  5710. #: guix-git/doc/guix.texi:10947
  5711. 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."
  5712. msgstr "当和@option{--keep-failed}一起使用时,不同的输出保存在@file{/gnu/store/@dots{}-check}。这让检查两个结果的区别更容易。"
  5713. #. type: item
  5714. #: guix-git/doc/guix.texi:1648
  5715. #, no-wrap
  5716. msgid "--debug"
  5717. msgstr "--debug"
  5718. #. type: table
  5719. #: guix-git/doc/guix.texi:1650
  5720. msgid "Produce debugging output."
  5721. msgstr "生成调试输出。"
  5722. #. type: table
  5723. #: guix-git/doc/guix.texi:1654
  5724. #, fuzzy
  5725. 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})."
  5726. msgstr "这对调试后台进程的启动问题很有用,但是之后它可能会被客户端覆盖,例如@command{guix build}命令的@code{--verbosity}选项(@pxref{Invoking guix build})。"
  5727. #. type: item
  5728. #: guix-git/doc/guix.texi:1655
  5729. #, no-wrap
  5730. msgid "--chroot-directory=@var{dir}"
  5731. msgstr "--chroot-directory=@var{dir}"
  5732. #. type: table
  5733. #: guix-git/doc/guix.texi:1657
  5734. msgid "Add @var{dir} to the build chroot."
  5735. msgstr "把@var{dir}添加到构建的chroot。"
  5736. #. type: table
  5737. #: guix-git/doc/guix.texi:1663
  5738. 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."
  5739. msgstr "这么做可能会改变构建进程的结果--例如,如果它们使用了在@var{dir}里发现的可选依赖。因此,建议不要这么做,而是确保每个derivation声明所需的全部输入。"
  5740. #. type: item
  5741. #: guix-git/doc/guix.texi:1664
  5742. #, no-wrap
  5743. msgid "--disable-chroot"
  5744. msgstr "--disable-chroot"
  5745. #. type: table
  5746. #: guix-git/doc/guix.texi:1666
  5747. msgid "Disable chroot builds."
  5748. msgstr "关闭chroot构建。"
  5749. #. type: table
  5750. #: guix-git/doc/guix.texi:1671
  5751. 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."
  5752. msgstr "不建议使用这个选项,因为它会允许构建进程访问到没被声明的依赖。但是,当@command{guix-daemon}以没有特权的用户身份运行时,这个选项是必须的。"
  5753. #. type: item
  5754. #: guix-git/doc/guix.texi:1672
  5755. #, no-wrap
  5756. msgid "--log-compression=@var{type}"
  5757. msgstr "--log-compression=@var{type}"
  5758. #. type: table
  5759. #: guix-git/doc/guix.texi:1675
  5760. msgid "Compress build logs according to @var{type}, one of @code{gzip}, @code{bzip2}, or @code{none}."
  5761. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  5762. #. type: table
  5763. #: guix-git/doc/guix.texi:1679
  5764. #, fuzzy
  5765. msgid "Unless @option{--lose-logs} is used, all the build logs are kept in the @var{localstatedir}. To save space, the daemon automatically compresses them with Bzip2 by default."
  5766. msgstr "除非使用了@code{--lose-logs},所有的构建日志都保存在@var{localstatedir}里。为了节省空间,后台进程默认使用bzip2对它们进行压缩。"
  5767. #. type: item
  5768. #: guix-git/doc/guix.texi:1680
  5769. #, no-wrap
  5770. msgid "--discover[=yes|no]"
  5771. msgstr ""
  5772. #. type: table
  5773. #: guix-git/doc/guix.texi:1683 guix-git/doc/guix.texi:15744
  5774. msgid "Whether to discover substitute servers on the local network using mDNS and DNS-SD."
  5775. msgstr ""
  5776. #. type: table
  5777. #: guix-git/doc/guix.texi:1686
  5778. msgid "This feature is still experimental. However, here are a few considerations."
  5779. msgstr ""
  5780. #. type: enumerate
  5781. #: guix-git/doc/guix.texi:1690
  5782. msgid "It might be faster/less expensive than fetching from remote servers;"
  5783. msgstr ""
  5784. #. type: enumerate
  5785. #: guix-git/doc/guix.texi:1693
  5786. msgid "There are no security risks, only genuine substitutes will be used (@pxref{Substitute Authentication});"
  5787. msgstr ""
  5788. #. type: enumerate
  5789. #: guix-git/doc/guix.texi:1697
  5790. msgid "An attacker advertising @command{guix publish} on your LAN cannot serve you malicious binaries, but they can learn what software you’re installing;"
  5791. msgstr ""
  5792. #. type: enumerate
  5793. #: guix-git/doc/guix.texi:1700
  5794. msgid "Servers may serve substitute over HTTP, unencrypted, so anyone on the LAN can see what software you’re installing."
  5795. msgstr ""
  5796. #. type: table
  5797. #: guix-git/doc/guix.texi:1704
  5798. msgid "It is also possible to enable or disable substitute server discovery at run-time by running:"
  5799. msgstr ""
  5800. #. type: example
  5801. #: guix-git/doc/guix.texi:1708
  5802. #, no-wrap
  5803. msgid ""
  5804. "herd discover guix-daemon on\n"
  5805. "herd discover guix-daemon off\n"
  5806. msgstr ""
  5807. #. type: item
  5808. #: guix-git/doc/guix.texi:1710
  5809. #, no-wrap
  5810. msgid "--disable-deduplication"
  5811. msgstr "--disable-deduplication"
  5812. #. type: cindex
  5813. #: guix-git/doc/guix.texi:1711 guix-git/doc/guix.texi:4288
  5814. #, no-wrap
  5815. msgid "deduplication"
  5816. msgstr "去重"
  5817. #. type: table
  5818. #: guix-git/doc/guix.texi:1713
  5819. msgid "Disable automatic file ``deduplication'' in the store."
  5820. msgstr "关闭自动对仓库文件“去重”。"
  5821. #. type: table
  5822. #: guix-git/doc/guix.texi:1720
  5823. 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."
  5824. msgstr "默认地,添加到仓库的文件会被自动“去重”:如果新添加的文件和仓库里找到的某个文件完全相同,后台进程把这个新文件变成另一个文件的硬链接。这可以明显地减少硬盘使用,代价是构建结束后轻微地增加输入/输出负载。这个选项关闭这个优化。"
  5825. #. type: item
  5826. #: guix-git/doc/guix.texi:1721
  5827. #, no-wrap
  5828. msgid "--gc-keep-outputs[=yes|no]"
  5829. msgstr "--gc-keep-outputs[=yes|no]"
  5830. #. type: table
  5831. #: guix-git/doc/guix.texi:1724
  5832. msgid "Tell whether the garbage collector (GC) must keep outputs of live derivations."
  5833. msgstr "垃圾收集器(GC)是否必须保留存活的derivation的输出。"
  5834. #. type: cindex
  5835. #: guix-git/doc/guix.texi:1725 guix-git/doc/guix.texi:4101
  5836. #, no-wrap
  5837. msgid "GC roots"
  5838. msgstr "GC根"
  5839. #. type: cindex
  5840. #: guix-git/doc/guix.texi:1726 guix-git/doc/guix.texi:4102
  5841. #, no-wrap
  5842. msgid "garbage collector roots"
  5843. msgstr "垃圾收集的根"
  5844. #. type: table
  5845. #: guix-git/doc/guix.texi:1732
  5846. #, fuzzy
  5847. 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."
  5848. msgstr "当设置为“yes”时,GC会保留仓库里每个存活的derivation(@code{.drv}文件)的输出。默认是“no”,表示只有当从GC根可以访问时才保留derivation的输出。@xref{Invoking guix gc},了解更多关于GC根的信息。"
  5849. #. type: item
  5850. #: guix-git/doc/guix.texi:1733
  5851. #, no-wrap
  5852. msgid "--gc-keep-derivations[=yes|no]"
  5853. msgstr "--gc-keep-derivations[=yes|no]"
  5854. #. type: table
  5855. #: guix-git/doc/guix.texi:1736
  5856. msgid "Tell whether the garbage collector (GC) must keep derivations corresponding to live outputs."
  5857. msgstr "垃圾收集器(GC)是否必须保留和存活的输出相关的derivation。"
  5858. #. type: table
  5859. #: guix-git/doc/guix.texi:1742
  5860. #, fuzzy
  5861. 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."
  5862. msgstr "当设置为“yes”时(默认),只要derivation(即@code{.drv}文件)的输出至少有一个是存活的,GC就将其保留。这让用户可以追踪仓库里物品的源头。设置为“no”可以节省一点硬盘空间。"
  5863. #. type: table
  5864. #: guix-git/doc/guix.texi:1751
  5865. #, fuzzy
  5866. 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."
  5867. msgstr "这样,设置@code{--gc-keep-derivations}为“yes”使存活性从“输出”传递到“derivation”,设置@code{--gc-keep-outputs}为“yes”使存活性从“derivation”传递到“输出”。当两者都设置为“yes”时,效果是保留所有在仓库里的存活对象的构建先决条件(源代码,编译器,库,和其它构建时的工具),不管这些先决条件是否能从某个GC根访问到。这对开发者来说很方便,因为它避免了重复构建和下载。"
  5868. #. type: item
  5869. #: guix-git/doc/guix.texi:1752
  5870. #, no-wrap
  5871. msgid "--impersonate-linux-2.6"
  5872. msgstr "--impersonate-linux-2.6"
  5873. #. type: table
  5874. #: guix-git/doc/guix.texi:1755
  5875. #, fuzzy
  5876. 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."
  5877. msgstr "在基于Linux的系统上,伪装成Linux 2.6。这意味着内核的@code{uname}系统调用会把版本号报告为2.6。"
  5878. #. type: table
  5879. #: guix-git/doc/guix.texi:1758
  5880. msgid "This might be helpful to build programs that (usually wrongfully) depend on the kernel version number."
  5881. msgstr "这可能会有助于构建那些(通常是错误地)依赖内核版本号的程序。"
  5882. #. type: item
  5883. #: guix-git/doc/guix.texi:1759
  5884. #, no-wrap
  5885. msgid "--lose-logs"
  5886. msgstr "--lose-logs"
  5887. #. type: table
  5888. #: guix-git/doc/guix.texi:1762
  5889. #, fuzzy
  5890. msgid "Do not keep build logs. By default they are kept under @file{@var{localstatedir}/guix/log}."
  5891. msgstr "不保留构建日志。默认保存在@code{@var{localstatedir}/guix/log}。"
  5892. #. type: item
  5893. #: guix-git/doc/guix.texi:1763 guix-git/doc/guix.texi:4529
  5894. #: guix-git/doc/guix.texi:5828 guix-git/doc/guix.texi:6228
  5895. #: guix-git/doc/guix.texi:10891 guix-git/doc/guix.texi:12447
  5896. #: guix-git/doc/guix.texi:12712 guix-git/doc/guix.texi:13389
  5897. #: guix-git/doc/guix.texi:33314 guix-git/doc/guix.texi:34117
  5898. #, no-wrap
  5899. msgid "--system=@var{system}"
  5900. msgstr "--system=@var{system}"
  5901. #. type: table
  5902. #: guix-git/doc/guix.texi:1767
  5903. 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}."
  5904. msgstr "假设@var{system}是当前的系统类型。默认值是configure时发现的架构/内核元组,如@code{x86_64-linux}。"
  5905. #. type: item
  5906. #: guix-git/doc/guix.texi:1768 guix-git/doc/guix.texi:10195
  5907. #, no-wrap
  5908. msgid "--listen=@var{endpoint}"
  5909. msgstr "--listen=@var{endpoint}"
  5910. #. type: table
  5911. #: guix-git/doc/guix.texi:1773
  5912. 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:"
  5913. msgstr ""
  5914. #. type: item
  5915. #: guix-git/doc/guix.texi:1775
  5916. #, no-wrap
  5917. msgid "--listen=/gnu/var/daemon"
  5918. msgstr ""
  5919. #. type: table
  5920. #: guix-git/doc/guix.texi:1778
  5921. msgid "Listen for connections on the @file{/gnu/var/daemon} Unix-domain socket, creating it if needed."
  5922. msgstr ""
  5923. #. type: item
  5924. #: guix-git/doc/guix.texi:1779
  5925. #, no-wrap
  5926. msgid "--listen=localhost"
  5927. msgstr ""
  5928. #. type: cindex
  5929. #: guix-git/doc/guix.texi:1780 guix-git/doc/guix.texi:8869
  5930. #, no-wrap
  5931. msgid "daemon, remote access"
  5932. msgstr ""
  5933. #. type: cindex
  5934. #: guix-git/doc/guix.texi:1781 guix-git/doc/guix.texi:8870
  5935. #, no-wrap
  5936. msgid "remote access to the daemon"
  5937. msgstr ""
  5938. #. type: cindex
  5939. #: guix-git/doc/guix.texi:1782 guix-git/doc/guix.texi:8871
  5940. #, no-wrap
  5941. msgid "daemon, cluster setup"
  5942. msgstr ""
  5943. #. type: cindex
  5944. #: guix-git/doc/guix.texi:1783 guix-git/doc/guix.texi:8872
  5945. #, no-wrap
  5946. msgid "clusters, daemon setup"
  5947. msgstr ""
  5948. #. type: table
  5949. #: guix-git/doc/guix.texi:1786
  5950. msgid "Listen for TCP connections on the network interface corresponding to @code{localhost}, on port 44146."
  5951. msgstr ""
  5952. #. type: item
  5953. #: guix-git/doc/guix.texi:1787
  5954. #, no-wrap
  5955. msgid "--listen=128.0.0.42:1234"
  5956. msgstr ""
  5957. #. type: table
  5958. #: guix-git/doc/guix.texi:1790
  5959. msgid "Listen for TCP connections on the network interface corresponding to @code{128.0.0.42}, on port 1234."
  5960. msgstr ""
  5961. #. type: table
  5962. #: guix-git/doc/guix.texi:1797
  5963. 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}})."
  5964. msgstr ""
  5965. #. type: quotation
  5966. #: guix-git/doc/guix.texi:1804
  5967. 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."
  5968. msgstr ""
  5969. #. type: table
  5970. #: guix-git/doc/guix.texi:1809
  5971. 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}."
  5972. msgstr ""
  5973. #. type: Plain text
  5974. #: guix-git/doc/guix.texi:1819
  5975. 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."
  5976. msgstr ""
  5977. #. type: anchor{#1}
  5978. #: guix-git/doc/guix.texi:1823
  5979. msgid "locales-and-locpath"
  5980. msgstr ""
  5981. #. type: cindex
  5982. #: guix-git/doc/guix.texi:1823
  5983. #, no-wrap
  5984. msgid "locales, when not on Guix System"
  5985. msgstr ""
  5986. #. type: vindex
  5987. #: guix-git/doc/guix.texi:1824 guix-git/doc/guix.texi:14952
  5988. #, no-wrap
  5989. msgid "LOCPATH"
  5990. msgstr ""
  5991. #. type: vindex
  5992. #: guix-git/doc/guix.texi:1825
  5993. #, no-wrap
  5994. msgid "GUIX_LOCPATH"
  5995. msgstr ""
  5996. #. type: Plain text
  5997. #: guix-git/doc/guix.texi:1830
  5998. 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:"
  5999. msgstr ""
  6000. #. type: example
  6001. #: guix-git/doc/guix.texi:1834
  6002. #, no-wrap
  6003. msgid ""
  6004. "$ guix install glibc-locales\n"
  6005. "$ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale\n"
  6006. msgstr ""
  6007. #. type: Plain text
  6008. #: guix-git/doc/guix.texi:1840
  6009. msgid "Note that the @code{glibc-locales} package contains data for all the locales supported by the GNU@tie{}libc and weighs in at around 917@tie{}MiB@. Alternatively, the @code{glibc-utf8-locales} is smaller but limited to a few UTF-8 locales."
  6010. msgstr ""
  6011. #. type: Plain text
  6012. #: guix-git/doc/guix.texi:1844
  6013. 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:"
  6014. msgstr ""
  6015. #. type: enumerate
  6016. #: guix-git/doc/guix.texi:1851
  6017. 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."
  6018. msgstr ""
  6019. #. type: enumerate
  6020. #: guix-git/doc/guix.texi:1858
  6021. 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."
  6022. msgstr ""
  6023. #. type: Plain text
  6024. #: guix-git/doc/guix.texi:1862
  6025. msgid "This is important because the locale data format used by different libc versions may be incompatible."
  6026. msgstr ""
  6027. #. type: cindex
  6028. #: guix-git/doc/guix.texi:1865
  6029. #, no-wrap
  6030. msgid "name service switch, glibc"
  6031. msgstr ""
  6032. #. type: cindex
  6033. #: guix-git/doc/guix.texi:1866
  6034. #, no-wrap
  6035. msgid "NSS (name service switch), glibc"
  6036. msgstr ""
  6037. #. type: cindex
  6038. #: guix-git/doc/guix.texi:1867
  6039. #, no-wrap
  6040. msgid "nscd (name service caching daemon)"
  6041. msgstr ""
  6042. #. type: cindex
  6043. #: guix-git/doc/guix.texi:1868
  6044. #, no-wrap
  6045. msgid "name service caching daemon (nscd)"
  6046. msgstr ""
  6047. #. type: Plain text
  6048. #: guix-git/doc/guix.texi:1875
  6049. 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."
  6050. msgstr ""
  6051. #. type: file{#1}
  6052. #: guix-git/doc/guix.texi:1876
  6053. #, no-wrap
  6054. msgid "nsswitch.conf"
  6055. msgstr ""
  6056. #. type: Plain text
  6057. #: guix-git/doc/guix.texi:1881
  6058. 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})."
  6059. msgstr ""
  6060. #. type: cindex
  6061. #: guix-git/doc/guix.texi:1882
  6062. #, no-wrap
  6063. msgid "Network information service (NIS)"
  6064. msgstr ""
  6065. #. type: cindex
  6066. #: guix-git/doc/guix.texi:1883
  6067. #, no-wrap
  6068. msgid "NIS (Network information service)"
  6069. msgstr ""
  6070. #. type: Plain text
  6071. #: guix-git/doc/guix.texi:1892
  6072. 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})."
  6073. msgstr ""
  6074. #. type: Plain text
  6075. #: guix-git/doc/guix.texi:1902
  6076. 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)."
  6077. msgstr ""
  6078. #. type: Plain text
  6079. #: guix-git/doc/guix.texi:1907
  6080. 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."
  6081. msgstr ""
  6082. #. type: Plain text
  6083. #: guix-git/doc/guix.texi:1912
  6084. 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."
  6085. msgstr ""
  6086. #. type: subsection
  6087. #: guix-git/doc/guix.texi:1913
  6088. #, no-wrap
  6089. msgid "X11 Fonts"
  6090. msgstr ""
  6091. #. type: Plain text
  6092. #: guix-git/doc/guix.texi:1923
  6093. msgid "The majority of graphical applications use Fontconfig to locate and load fonts and perform X11-client-side rendering. The @code{fontconfig} package in Guix looks for fonts in @file{$HOME/.guix-profile} by default. Thus, to allow graphical applications installed with Guix to display fonts, you have to install fonts with Guix as well. Essential font packages include @code{gs-fonts}, @code{font-dejavu}, and @code{font-gnu-freefont}."
  6094. msgstr ""
  6095. #. type: code{#1}
  6096. #: guix-git/doc/guix.texi:1924
  6097. #, no-wrap
  6098. msgid "fc-cache"
  6099. msgstr ""
  6100. #. type: cindex
  6101. #: guix-git/doc/guix.texi:1925
  6102. #, no-wrap
  6103. msgid "font cache"
  6104. msgstr ""
  6105. #. type: Plain text
  6106. #: guix-git/doc/guix.texi:1929
  6107. 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:"
  6108. msgstr ""
  6109. #. type: example
  6110. #: guix-git/doc/guix.texi:1933
  6111. #, no-wrap
  6112. msgid ""
  6113. "guix install fontconfig\n"
  6114. "fc-cache -rv\n"
  6115. msgstr ""
  6116. #. type: Plain text
  6117. #: guix-git/doc/guix.texi:1941
  6118. 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:"
  6119. msgstr ""
  6120. #. type: example
  6121. #: guix-git/doc/guix.texi:1944
  6122. #, no-wrap
  6123. msgid "guix install font-adobe-source-han-sans:cn\n"
  6124. msgstr ""
  6125. #. type: code{#1}
  6126. #: guix-git/doc/guix.texi:1946
  6127. #, no-wrap
  6128. msgid "xterm"
  6129. msgstr ""
  6130. #. type: Plain text
  6131. #: guix-git/doc/guix.texi:1950
  6132. 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:"
  6133. msgstr ""
  6134. #. type: example
  6135. #: guix-git/doc/guix.texi:1953
  6136. #, no-wrap
  6137. msgid "-*-dejavu sans-medium-r-normal-*-*-100-*-*-*-*-*-1\n"
  6138. msgstr ""
  6139. #. type: Plain text
  6140. #: guix-git/doc/guix.texi:1957
  6141. 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:"
  6142. msgstr ""
  6143. #. type: example
  6144. #: guix-git/doc/guix.texi:1962
  6145. #, no-wrap
  6146. msgid "xset +fp $(dirname $(readlink -f ~/.guix-profile/share/fonts/truetype/fonts.dir))\n"
  6147. msgstr ""
  6148. #. type: code{#1}
  6149. #: guix-git/doc/guix.texi:1964
  6150. #, no-wrap
  6151. msgid "xlsfonts"
  6152. msgstr ""
  6153. #. type: Plain text
  6154. #: guix-git/doc/guix.texi:1967
  6155. msgid "After that, you can run @code{xlsfonts} (from @code{xlsfonts} package) to make sure your TrueType fonts are listed there."
  6156. msgstr ""
  6157. #. type: code{#1}
  6158. #: guix-git/doc/guix.texi:1971 guix-git/doc/guix.texi:33033
  6159. #, no-wrap
  6160. msgid "nss-certs"
  6161. msgstr ""
  6162. #. type: Plain text
  6163. #: guix-git/doc/guix.texi:1974
  6164. msgid "The @code{nss-certs} package provides X.509 certificates, which allow programs to authenticate Web servers accessed over HTTPS."
  6165. msgstr ""
  6166. #. type: Plain text
  6167. #: guix-git/doc/guix.texi:1979
  6168. 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."
  6169. msgstr ""
  6170. #. type: code{#1}
  6171. #: guix-git/doc/guix.texi:1982
  6172. #, no-wrap
  6173. msgid "emacs"
  6174. msgstr ""
  6175. #. type: Plain text
  6176. #: guix-git/doc/guix.texi:1988
  6177. 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."
  6178. msgstr ""
  6179. #. type: Plain text
  6180. #: guix-git/doc/guix.texi:1995
  6181. 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})."
  6182. msgstr ""
  6183. #. type: cindex
  6184. #: guix-git/doc/guix.texi:2000
  6185. #, no-wrap
  6186. msgid "Upgrading Guix, on a foreign distro"
  6187. msgstr ""
  6188. #. type: Plain text
  6189. #: guix-git/doc/guix.texi:2003
  6190. msgid "To upgrade Guix, run:"
  6191. msgstr ""
  6192. #. type: example
  6193. #: guix-git/doc/guix.texi:2006 guix-git/doc/guix.texi:2854
  6194. #, no-wrap
  6195. msgid "guix pull\n"
  6196. msgstr "guix pull\n"
  6197. #. type: Plain text
  6198. #: guix-git/doc/guix.texi:2009
  6199. #, fuzzy
  6200. msgid "@xref{Invoking guix pull}, for more information."
  6201. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  6202. #. type: cindex
  6203. #: guix-git/doc/guix.texi:2010
  6204. #, no-wrap
  6205. msgid "upgrading Guix for the root user, on a foreign distro"
  6206. msgstr ""
  6207. #. type: cindex
  6208. #: guix-git/doc/guix.texi:2011
  6209. #, no-wrap
  6210. msgid "upgrading the Guix daemon, on a foreign distro"
  6211. msgstr ""
  6212. #. type: cindex
  6213. #: guix-git/doc/guix.texi:2012
  6214. #, no-wrap
  6215. msgid "@command{guix pull} for the root user, on a foreign distro"
  6216. msgstr ""
  6217. #. type: Plain text
  6218. #: guix-git/doc/guix.texi:2015
  6219. msgid "On a foreign distro, you can upgrade the build daemon by running:"
  6220. msgstr ""
  6221. #. type: example
  6222. #: guix-git/doc/guix.texi:2018
  6223. #, no-wrap
  6224. msgid "sudo -i guix pull\n"
  6225. msgstr "sudo -i guix pull\n"
  6226. #. type: Plain text
  6227. #: guix-git/doc/guix.texi:2023
  6228. msgid "followed by (assuming your distro uses the systemd service management tool):"
  6229. msgstr ""
  6230. #. type: example
  6231. #: guix-git/doc/guix.texi:2026
  6232. #, fuzzy, no-wrap
  6233. msgid "systemctl restart guix-daemon.service\n"
  6234. msgstr "semodule -i etc/guix-daemon.cil\n"
  6235. #. type: Plain text
  6236. #: guix-git/doc/guix.texi:2030
  6237. msgid "On Guix System, upgrading the daemon is achieved by reconfiguring the system (@pxref{Invoking guix system, @code{guix system reconfigure}})."
  6238. msgstr ""
  6239. #. type: cindex
  6240. #: guix-git/doc/guix.texi:2037
  6241. #, no-wrap
  6242. msgid "installing Guix System"
  6243. msgstr ""
  6244. #. type: cindex
  6245. #: guix-git/doc/guix.texi:2038
  6246. #, no-wrap
  6247. msgid "Guix System, installation"
  6248. msgstr ""
  6249. #. type: Plain text
  6250. #: guix-git/doc/guix.texi:2043
  6251. 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}."
  6252. msgstr ""
  6253. #. type: quotation
  6254. #: guix-git/doc/guix.texi:2052
  6255. 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."
  6256. msgstr ""
  6257. #. type: quotation
  6258. #: guix-git/doc/guix.texi:2055
  6259. msgid "Alternatively, run @command{info info} in another tty to keep the manual available."
  6260. msgstr ""
  6261. #. type: Plain text
  6262. #: guix-git/doc/guix.texi:2076
  6263. 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."
  6264. msgstr ""
  6265. #. type: Plain text
  6266. #: guix-git/doc/guix.texi:2079
  6267. msgid "Nevertheless, before you proceed with the installation, be aware of the following noteworthy limitations applicable to version @value{VERSION}:"
  6268. msgstr ""
  6269. #. type: itemize
  6270. #: guix-git/doc/guix.texi:2084
  6271. msgid "More and more system services are provided (@pxref{Services}), but some may be missing."
  6272. msgstr ""
  6273. #. type: itemize
  6274. #: guix-git/doc/guix.texi:2089
  6275. 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."
  6276. msgstr ""
  6277. #. type: Plain text
  6278. #: guix-git/doc/guix.texi:2094
  6279. 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."
  6280. msgstr ""
  6281. #. type: cindex
  6282. #: guix-git/doc/guix.texi:2099
  6283. #, no-wrap
  6284. msgid "hardware support on Guix System"
  6285. msgstr ""
  6286. #. type: Plain text
  6287. #: guix-git/doc/guix.texi:2108
  6288. 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."
  6289. msgstr ""
  6290. #. type: cindex
  6291. #: guix-git/doc/guix.texi:2109
  6292. #, no-wrap
  6293. msgid "WiFi, hardware support"
  6294. msgstr ""
  6295. #. type: Plain text
  6296. #: guix-git/doc/guix.texi:2118
  6297. 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}})."
  6298. msgstr ""
  6299. #. type: cindex
  6300. #: guix-git/doc/guix.texi:2119
  6301. #, no-wrap
  6302. msgid "RYF, Respects Your Freedom"
  6303. msgstr ""
  6304. #. type: Plain text
  6305. #: guix-git/doc/guix.texi:2125
  6306. 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."
  6307. msgstr ""
  6308. #. type: Plain text
  6309. #: guix-git/doc/guix.texi:2129
  6310. 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."
  6311. msgstr ""
  6312. #. type: Plain text
  6313. #: guix-git/doc/guix.texi:2138
  6314. 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:"
  6315. msgstr ""
  6316. #. type: table
  6317. #: guix-git/doc/guix.texi:2142
  6318. msgid "for a GNU/Linux system on Intel/AMD-compatible 64-bit CPUs;"
  6319. msgstr ""
  6320. #. type: table
  6321. #: guix-git/doc/guix.texi:2145
  6322. msgid "for a 32-bit GNU/Linux system on Intel-compatible CPUs."
  6323. msgstr ""
  6324. #. type: Plain text
  6325. #: guix-git/doc/guix.texi:2150
  6326. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the image against it, along these lines:"
  6327. msgstr ""
  6328. #. type: example
  6329. #: guix-git/doc/guix.texi:2154
  6330. #, no-wrap
  6331. msgid ""
  6332. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  6333. "$ gpg --verify guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  6334. msgstr ""
  6335. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  6336. "$ gpg --verify guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  6337. #. type: example
  6338. #: guix-git/doc/guix.texi:2162
  6339. #, no-wrap
  6340. msgid ""
  6341. "$ wget @value{OPENPGP-SIGNING-KEY-URL} \\\n"
  6342. " -qO - | gpg --import -\n"
  6343. msgstr ""
  6344. #. type: Plain text
  6345. #: guix-git/doc/guix.texi:2174
  6346. 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."
  6347. msgstr ""
  6348. #. type: unnumberedsubsec
  6349. #: guix-git/doc/guix.texi:2175
  6350. #, no-wrap
  6351. msgid "Copying to a USB Stick"
  6352. msgstr ""
  6353. #. type: Plain text
  6354. #: guix-git/doc/guix.texi:2180
  6355. 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:"
  6356. msgstr ""
  6357. #. type: example
  6358. #: guix-git/doc/guix.texi:2184
  6359. #, no-wrap
  6360. msgid ""
  6361. "dd if=guix-system-install-@value{VERSION}.x86_64-linux.iso of=/dev/sdX status=progress\n"
  6362. "sync\n"
  6363. msgstr ""
  6364. #. type: Plain text
  6365. #: guix-git/doc/guix.texi:2187
  6366. msgid "Access to @file{/dev/sdX} usually requires root privileges."
  6367. msgstr ""
  6368. #. type: unnumberedsubsec
  6369. #: guix-git/doc/guix.texi:2188
  6370. #, no-wrap
  6371. msgid "Burning on a DVD"
  6372. msgstr ""
  6373. #. type: Plain text
  6374. #: guix-git/doc/guix.texi:2193
  6375. 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:"
  6376. msgstr ""
  6377. #. type: example
  6378. #: guix-git/doc/guix.texi:2196
  6379. #, no-wrap
  6380. msgid "growisofs -dvd-compat -Z /dev/srX=guix-system-install-@value{VERSION}.x86_64-linux.iso\n"
  6381. msgstr ""
  6382. #. type: Plain text
  6383. #: guix-git/doc/guix.texi:2199
  6384. msgid "Access to @file{/dev/srX} usually requires root privileges."
  6385. msgstr ""
  6386. #. type: unnumberedsubsec
  6387. #: guix-git/doc/guix.texi:2200
  6388. #, no-wrap
  6389. msgid "Booting"
  6390. msgstr ""
  6391. #. type: Plain text
  6392. #: guix-git/doc/guix.texi:2207
  6393. 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}."
  6394. msgstr ""
  6395. #. type: Plain text
  6396. #: guix-git/doc/guix.texi:2210
  6397. msgid "@xref{Installing Guix in a VM}, if, instead, you would like to install Guix System in a virtual machine (VM)."
  6398. msgstr ""
  6399. #. type: Plain text
  6400. #: guix-git/doc/guix.texi:2220
  6401. 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})."
  6402. msgstr ""
  6403. #. type: Plain text
  6404. #: guix-git/doc/guix.texi:2228
  6405. 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."
  6406. msgstr ""
  6407. #. type: quotation
  6408. #: guix-git/doc/guix.texi:2233
  6409. msgid "Installation requires access to the Internet so that any missing dependencies of your system configuration can be downloaded. See the ``Networking'' section below."
  6410. msgstr ""
  6411. #. type: Plain text
  6412. #: guix-git/doc/guix.texi:2240
  6413. 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."
  6414. msgstr ""
  6415. #. type: Plain text
  6416. #: guix-git/doc/guix.texi:2245
  6417. 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."
  6418. msgstr ""
  6419. #. type: Plain text
  6420. #: guix-git/doc/guix.texi:2247
  6421. msgid "@image{images/installer-network,5in,, networking setup with the graphical installer}"
  6422. msgstr ""
  6423. #. type: Plain text
  6424. #: guix-git/doc/guix.texi:2252
  6425. 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."
  6426. msgstr ""
  6427. #. type: Plain text
  6428. #: guix-git/doc/guix.texi:2254
  6429. msgid "@image{images/installer-partitions,5in,, partitioning with the graphical installer}"
  6430. msgstr ""
  6431. #. type: Plain text
  6432. #: guix-git/doc/guix.texi:2257
  6433. 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."
  6434. msgstr ""
  6435. #. type: Plain text
  6436. #: guix-git/doc/guix.texi:2259
  6437. msgid "@image{images/installer-resume,5in,, resuming the installation process}"
  6438. msgstr ""
  6439. #. type: Plain text
  6440. #: guix-git/doc/guix.texi:2264
  6441. 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!"
  6442. msgstr ""
  6443. #. type: Plain text
  6444. #: guix-git/doc/guix.texi:2274
  6445. 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})."
  6446. msgstr ""
  6447. #. type: Plain text
  6448. #: guix-git/doc/guix.texi:2280
  6449. 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})."
  6450. msgstr ""
  6451. #. type: subsection
  6452. #: guix-git/doc/guix.texi:2287
  6453. #, no-wrap
  6454. msgid "Keyboard Layout, Networking, and Partitioning"
  6455. msgstr ""
  6456. #. type: Plain text
  6457. #: guix-git/doc/guix.texi:2292
  6458. 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."
  6459. msgstr ""
  6460. #. type: cindex
  6461. #: guix-git/doc/guix.texi:2295 guix-git/doc/guix.texi:14766
  6462. #, no-wrap
  6463. msgid "keyboard layout"
  6464. msgstr ""
  6465. #. type: Plain text
  6466. #: guix-git/doc/guix.texi:2299
  6467. 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:"
  6468. msgstr "安装镜像使用的是美国的 qwerty 键盘布局,如果想更改,可以使用 @command{loadkeys} 命令。 例如,用以下命令选择 Dvorak 键盘布局:"
  6469. #. type: example
  6470. #: guix-git/doc/guix.texi:2302
  6471. #, no-wrap
  6472. msgid "loadkeys dvorak\n"
  6473. msgstr ""
  6474. #. type: Plain text
  6475. #: guix-git/doc/guix.texi:2307
  6476. 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."
  6477. msgstr ""
  6478. #. type: subsubsection
  6479. #: guix-git/doc/guix.texi:2308
  6480. #, no-wrap
  6481. msgid "Networking"
  6482. msgstr ""
  6483. #. type: Plain text
  6484. #: guix-git/doc/guix.texi:2311
  6485. msgid "Run the following command to see what your network interfaces are called:"
  6486. msgstr "运行以下命令查看你的网络接口的名称:"
  6487. #. type: example
  6488. #: guix-git/doc/guix.texi:2314
  6489. #, no-wrap
  6490. msgid "ifconfig -a\n"
  6491. msgstr ""
  6492. #. type: table
  6493. #: guix-git/doc/guix.texi:2318 guix-git/doc/guix.texi:2340
  6494. msgid "@dots{} or, using the GNU/Linux-specific @command{ip} command:"
  6495. msgstr "@dots{} 或者,使用 GNU/Linux 特有的 @command{ip} 命令:"
  6496. #. type: example
  6497. #: guix-git/doc/guix.texi:2321
  6498. #, no-wrap
  6499. msgid "ip address\n"
  6500. msgstr ""
  6501. #. type: Plain text
  6502. #: guix-git/doc/guix.texi:2328
  6503. 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}."
  6504. msgstr ""
  6505. #. type: item
  6506. #: guix-git/doc/guix.texi:2330
  6507. #, no-wrap
  6508. msgid "Wired connection"
  6509. msgstr "有线连接"
  6510. #. type: table
  6511. #: guix-git/doc/guix.texi:2333
  6512. msgid "To configure a wired network run the following command, substituting @var{interface} with the name of the wired interface you want to use."
  6513. msgstr ""
  6514. #. type: example
  6515. #: guix-git/doc/guix.texi:2336
  6516. #, no-wrap
  6517. msgid "ifconfig @var{interface} up\n"
  6518. msgstr ""
  6519. #. type: example
  6520. #: guix-git/doc/guix.texi:2343
  6521. #, no-wrap
  6522. msgid "ip link set @var{interface} up\n"
  6523. msgstr ""
  6524. #. type: item
  6525. #: guix-git/doc/guix.texi:2345
  6526. #, no-wrap
  6527. msgid "Wireless connection"
  6528. msgstr "无线连接"
  6529. #. type: cindex
  6530. #: guix-git/doc/guix.texi:2346 guix-git/doc/guix.texi:16411
  6531. #, no-wrap
  6532. msgid "wireless"
  6533. msgstr ""
  6534. #. type: cindex
  6535. #: guix-git/doc/guix.texi:2347 guix-git/doc/guix.texi:16412
  6536. #, no-wrap
  6537. msgid "WiFi"
  6538. msgstr ""
  6539. #. type: table
  6540. #: guix-git/doc/guix.texi:2352
  6541. 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}:"
  6542. msgstr ""
  6543. #. type: example
  6544. #: guix-git/doc/guix.texi:2355
  6545. #, no-wrap
  6546. msgid "nano wpa_supplicant.conf\n"
  6547. msgstr ""
  6548. #. type: table
  6549. #: guix-git/doc/guix.texi:2360
  6550. 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:"
  6551. msgstr ""
  6552. #. type: example
  6553. #: guix-git/doc/guix.texi:2367
  6554. #, no-wrap
  6555. msgid ""
  6556. "network=@{\n"
  6557. " ssid=\"@var{my-ssid}\"\n"
  6558. " key_mgmt=WPA-PSK\n"
  6559. " psk=\"the network's secret passphrase\"\n"
  6560. "@}\n"
  6561. msgstr ""
  6562. #. type: table
  6563. #: guix-git/doc/guix.texi:2372
  6564. 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):"
  6565. msgstr ""
  6566. #. type: example
  6567. #: guix-git/doc/guix.texi:2375
  6568. #, no-wrap
  6569. msgid "wpa_supplicant -c wpa_supplicant.conf -i @var{interface} -B\n"
  6570. msgstr ""
  6571. #. type: table
  6572. #: guix-git/doc/guix.texi:2378
  6573. msgid "Run @command{man wpa_supplicant} for more information."
  6574. msgstr ""
  6575. #. type: cindex
  6576. #: guix-git/doc/guix.texi:2380
  6577. #, no-wrap
  6578. msgid "DHCP"
  6579. msgstr ""
  6580. #. type: Plain text
  6581. #: guix-git/doc/guix.texi:2383
  6582. 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:"
  6583. msgstr ""
  6584. #. type: example
  6585. #: guix-git/doc/guix.texi:2386
  6586. #, no-wrap
  6587. msgid "dhclient -v @var{interface}\n"
  6588. msgstr ""
  6589. #. type: Plain text
  6590. #: guix-git/doc/guix.texi:2389
  6591. msgid "Try to ping a server to see if networking is up and running:"
  6592. msgstr ""
  6593. #. type: example
  6594. #: guix-git/doc/guix.texi:2392
  6595. #, no-wrap
  6596. msgid "ping -c 3 gnu.org\n"
  6597. msgstr ""
  6598. #. type: Plain text
  6599. #: guix-git/doc/guix.texi:2396
  6600. 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."
  6601. msgstr ""
  6602. #. type: cindex
  6603. #: guix-git/doc/guix.texi:2397
  6604. #, fuzzy, no-wrap
  6605. msgid "proxy, during system installation"
  6606. msgstr "系统安装之后"
  6607. #. type: Plain text
  6608. #: guix-git/doc/guix.texi:2400
  6609. msgid "If you need HTTP and HTTPS access to go through a proxy, run the following command:"
  6610. msgstr ""
  6611. #. type: example
  6612. #: guix-git/doc/guix.texi:2403
  6613. #, no-wrap
  6614. msgid "herd set-http-proxy guix-daemon @var{URL}\n"
  6615. msgstr ""
  6616. #. type: Plain text
  6617. #: guix-git/doc/guix.texi:2408
  6618. msgid "where @var{URL} is the proxy URL, for example @code{http://example.org:8118}."
  6619. msgstr ""
  6620. #. type: cindex
  6621. #: guix-git/doc/guix.texi:2409
  6622. #, no-wrap
  6623. msgid "installing over SSH"
  6624. msgstr ""
  6625. #. type: Plain text
  6626. #: guix-git/doc/guix.texi:2412
  6627. msgid "If you want to, you can continue the installation remotely by starting an SSH server:"
  6628. msgstr ""
  6629. #. type: example
  6630. #: guix-git/doc/guix.texi:2415
  6631. #, no-wrap
  6632. msgid "herd start ssh-daemon\n"
  6633. msgstr ""
  6634. #. type: Plain text
  6635. #: guix-git/doc/guix.texi:2419
  6636. msgid "Make sure to either set a password with @command{passwd}, or configure OpenSSH public key authentication before logging in."
  6637. msgstr ""
  6638. #. type: subsubsection
  6639. #: guix-git/doc/guix.texi:2420
  6640. #, no-wrap
  6641. msgid "Disk Partitioning"
  6642. msgstr "磁盘分区"
  6643. #. type: Plain text
  6644. #: guix-git/doc/guix.texi:2424
  6645. msgid "Unless this has already been done, the next step is to partition, and then format the target partition(s)."
  6646. msgstr ""
  6647. #. type: Plain text
  6648. #: guix-git/doc/guix.texi:2429
  6649. 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:"
  6650. msgstr ""
  6651. #. type: example
  6652. #: guix-git/doc/guix.texi:2432
  6653. #, no-wrap
  6654. msgid "cfdisk\n"
  6655. msgstr ""
  6656. #. type: Plain text
  6657. #: guix-git/doc/guix.texi:2438
  6658. 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})."
  6659. msgstr ""
  6660. #. type: cindex
  6661. #: guix-git/doc/guix.texi:2439
  6662. #, no-wrap
  6663. msgid "EFI, installation"
  6664. msgstr ""
  6665. #. type: cindex
  6666. #: guix-git/doc/guix.texi:2440
  6667. #, no-wrap
  6668. msgid "UEFI, installation"
  6669. msgstr ""
  6670. #. type: cindex
  6671. #: guix-git/doc/guix.texi:2441
  6672. #, no-wrap
  6673. msgid "ESP, EFI system partition"
  6674. msgstr ""
  6675. #. type: Plain text
  6676. #: guix-git/doc/guix.texi:2445
  6677. 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}:"
  6678. msgstr ""
  6679. #. type: example
  6680. #: guix-git/doc/guix.texi:2448
  6681. #, no-wrap
  6682. msgid "parted /dev/sda set 1 esp on\n"
  6683. msgstr ""
  6684. #. type: vindex
  6685. #: guix-git/doc/guix.texi:2451 guix-git/doc/guix.texi:33452
  6686. #, no-wrap
  6687. msgid "grub-bootloader"
  6688. msgstr ""
  6689. #. type: vindex
  6690. #: guix-git/doc/guix.texi:2452 guix-git/doc/guix.texi:33446
  6691. #, no-wrap
  6692. msgid "grub-efi-bootloader"
  6693. msgstr ""
  6694. #. type: quotation
  6695. #: guix-git/doc/guix.texi:2459
  6696. 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."
  6697. msgstr ""
  6698. #. type: Plain text
  6699. #: guix-git/doc/guix.texi:2467
  6700. 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:"
  6701. msgstr ""
  6702. #. type: example
  6703. #: guix-git/doc/guix.texi:2470
  6704. #, no-wrap
  6705. msgid "mkfs.fat -F32 /dev/sda1\n"
  6706. msgstr ""
  6707. #. type: Plain text
  6708. #: guix-git/doc/guix.texi:2477
  6709. 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})."
  6710. msgstr ""
  6711. #. type: Plain text
  6712. #: guix-git/doc/guix.texi:2484
  6713. 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:"
  6714. msgstr ""
  6715. #. type: example
  6716. #: guix-git/doc/guix.texi:2487
  6717. #, no-wrap
  6718. msgid "mkfs.ext4 -L my-root /dev/sda2\n"
  6719. msgstr ""
  6720. #. type: cindex
  6721. #: guix-git/doc/guix.texi:2489 guix-git/doc/guix.texi:13734
  6722. #, no-wrap
  6723. msgid "encrypted disk"
  6724. msgstr ""
  6725. #. type: Plain text
  6726. #: guix-git/doc/guix.texi:2496
  6727. msgid "If you are instead planning to encrypt the root partition, you can use the Cryptsetup/LUKS utilities to do that (see @inlinefmtifelse{html, @uref{https://linux.die.net/man/8/cryptsetup, @code{man cryptsetup}}, @code{man cryptsetup}} for more information). Assuming you want to store the root partition on @file{/dev/sda2}, the command sequence would be along these lines:"
  6728. msgstr ""
  6729. #. type: example
  6730. #: guix-git/doc/guix.texi:2501
  6731. #, no-wrap
  6732. msgid ""
  6733. "cryptsetup luksFormat /dev/sda2\n"
  6734. "cryptsetup open --type luks /dev/sda2 my-partition\n"
  6735. "mkfs.ext4 -L my-root /dev/mapper/my-partition\n"
  6736. msgstr ""
  6737. #. type: Plain text
  6738. #: guix-git/doc/guix.texi:2506
  6739. 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):"
  6740. msgstr ""
  6741. #. type: example
  6742. #: guix-git/doc/guix.texi:2509
  6743. #, no-wrap
  6744. msgid "mount LABEL=my-root /mnt\n"
  6745. msgstr ""
  6746. #. type: Plain text
  6747. #: guix-git/doc/guix.texi:2515
  6748. 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."
  6749. msgstr ""
  6750. #. type: Plain text
  6751. #: guix-git/doc/guix.texi:2520
  6752. msgid "Finally, if you plan to use one or more swap partitions (@pxref{Memory Concepts, swap space,, libc, The GNU C Library Reference Manual}), make sure to initialize them with @command{mkswap}. Assuming you have one swap partition on @file{/dev/sda3}, you would run:"
  6753. msgstr ""
  6754. #. type: example
  6755. #: guix-git/doc/guix.texi:2524
  6756. #, no-wrap
  6757. msgid ""
  6758. "mkswap /dev/sda3\n"
  6759. "swapon /dev/sda3\n"
  6760. msgstr ""
  6761. #. type: Plain text
  6762. #: guix-git/doc/guix.texi:2532
  6763. 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}.}:"
  6764. msgstr ""
  6765. #. type: example
  6766. #: guix-git/doc/guix.texi:2540
  6767. #, no-wrap
  6768. msgid ""
  6769. "# This is 10 GiB of swap space. Adjust \"count\" to change the size.\n"
  6770. "dd if=/dev/zero of=/mnt/swapfile bs=1MiB count=10240\n"
  6771. "# For security, make the file readable and writable only by root.\n"
  6772. "chmod 600 /mnt/swapfile\n"
  6773. "mkswap /mnt/swapfile\n"
  6774. "swapon /mnt/swapfile\n"
  6775. msgstr ""
  6776. #. type: Plain text
  6777. #: guix-git/doc/guix.texi:2545
  6778. 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."
  6779. msgstr ""
  6780. #. type: Plain text
  6781. #: guix-git/doc/guix.texi:2551
  6782. msgid "With the target partitions ready and the target root mounted on @file{/mnt}, we're ready to go. First, run:"
  6783. msgstr ""
  6784. #. type: example
  6785. #: guix-git/doc/guix.texi:2554
  6786. #, no-wrap
  6787. msgid "herd start cow-store /mnt\n"
  6788. msgstr ""
  6789. #. type: Plain text
  6790. #: guix-git/doc/guix.texi:2561
  6791. 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."
  6792. msgstr ""
  6793. #. type: Plain text
  6794. #: guix-git/doc/guix.texi:2572
  6795. 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."
  6796. msgstr ""
  6797. #. type: Plain text
  6798. #: guix-git/doc/guix.texi:2579
  6799. 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:"
  6800. msgstr ""
  6801. #. type: example
  6802. #: guix-git/doc/guix.texi:2584
  6803. #, no-wrap
  6804. msgid ""
  6805. "# mkdir /mnt/etc\n"
  6806. "# cp /etc/configuration/desktop.scm /mnt/etc/config.scm\n"
  6807. "# nano /mnt/etc/config.scm\n"
  6808. msgstr ""
  6809. #. type: Plain text
  6810. #: guix-git/doc/guix.texi:2588
  6811. msgid "You should pay attention to what your configuration file contains, and in particular:"
  6812. msgstr ""
  6813. #. type: itemize
  6814. #: guix-git/doc/guix.texi:2600
  6815. 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."
  6816. msgstr ""
  6817. #. type: itemize
  6818. #: guix-git/doc/guix.texi:2606
  6819. 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."
  6820. msgstr ""
  6821. #. type: itemize
  6822. #: guix-git/doc/guix.texi:2610
  6823. msgid "If there are encrypted or RAID partitions, make sure to add a @code{mapped-devices} field to describe them (@pxref{Mapped Devices})."
  6824. msgstr ""
  6825. #. type: Plain text
  6826. #: guix-git/doc/guix.texi:2615
  6827. 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}):"
  6828. msgstr ""
  6829. #. type: example
  6830. #: guix-git/doc/guix.texi:2618
  6831. #, no-wrap
  6832. msgid "guix system init /mnt/etc/config.scm /mnt\n"
  6833. msgstr ""
  6834. #. type: Plain text
  6835. #: guix-git/doc/guix.texi:2625
  6836. 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."
  6837. msgstr ""
  6838. #. type: Plain text
  6839. #: guix-git/doc/guix.texi:2633
  6840. 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!"
  6841. msgstr ""
  6842. #. type: Plain text
  6843. #: guix-git/doc/guix.texi:2640
  6844. msgid "Success, you've now booted into Guix System! From then on, you can update the system whenever you want by running, say:"
  6845. msgstr ""
  6846. #. type: example
  6847. #: guix-git/doc/guix.texi:2644
  6848. #, no-wrap
  6849. msgid ""
  6850. "guix pull\n"
  6851. "sudo guix system reconfigure /etc/config.scm\n"
  6852. msgstr ""
  6853. #. type: Plain text
  6854. #: guix-git/doc/guix.texi:2650
  6855. 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})."
  6856. msgstr ""
  6857. #. type: cindex
  6858. #: guix-git/doc/guix.texi:2653
  6859. #, no-wrap
  6860. msgid "sudo vs. @command{guix pull}"
  6861. msgstr ""
  6862. #. type: quotation
  6863. #: guix-git/doc/guix.texi:2657
  6864. 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{}}."
  6865. msgstr ""
  6866. #. type: quotation
  6867. #: guix-git/doc/guix.texi:2662
  6868. 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."
  6869. msgstr ""
  6870. #. type: Plain text
  6871. #: guix-git/doc/guix.texi:2667
  6872. 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!"
  6873. msgstr ""
  6874. #. type: section
  6875. #: guix-git/doc/guix.texi:2670
  6876. #, no-wrap
  6877. msgid "Installing Guix in a Virtual Machine"
  6878. msgstr ""
  6879. #. type: cindex
  6880. #: guix-git/doc/guix.texi:2672
  6881. #, no-wrap
  6882. msgid "virtual machine, Guix System installation"
  6883. msgstr ""
  6884. #. type: cindex
  6885. #: guix-git/doc/guix.texi:2673
  6886. #, no-wrap
  6887. msgid "virtual private server (VPS)"
  6888. msgstr ""
  6889. #. type: cindex
  6890. #: guix-git/doc/guix.texi:2674
  6891. #, no-wrap
  6892. msgid "VPS (virtual private server)"
  6893. msgstr ""
  6894. #. type: Plain text
  6895. #: guix-git/doc/guix.texi:2678
  6896. 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."
  6897. msgstr ""
  6898. #. type: Plain text
  6899. #: guix-git/doc/guix.texi:2681
  6900. msgid "To boot a @uref{https://qemu.org/,QEMU} VM for installing Guix System in a disk image, follow these steps:"
  6901. msgstr ""
  6902. #. type: enumerate
  6903. #: guix-git/doc/guix.texi:2686
  6904. msgid "First, retrieve and decompress the Guix system installation image as described previously (@pxref{USB Stick and DVD Installation})."
  6905. msgstr ""
  6906. #. type: enumerate
  6907. #: guix-git/doc/guix.texi:2690
  6908. msgid "Create a disk image that will hold the installed system. To make a qcow2-formatted disk image, use the @command{qemu-img} command:"
  6909. msgstr ""
  6910. #. type: example
  6911. #: guix-git/doc/guix.texi:2693
  6912. #, no-wrap
  6913. msgid "qemu-img create -f qcow2 guix-system.img 50G\n"
  6914. msgstr ""
  6915. #. type: enumerate
  6916. #: guix-git/doc/guix.texi:2697
  6917. 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."
  6918. msgstr ""
  6919. #. type: enumerate
  6920. #: guix-git/doc/guix.texi:2700
  6921. msgid "Boot the USB installation image in an VM:"
  6922. msgstr ""
  6923. #. type: example
  6924. #: guix-git/doc/guix.texi:2706
  6925. #, no-wrap
  6926. msgid ""
  6927. "qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \\\n"
  6928. " -nic user,model=virtio-net-pci -boot menu=on,order=d \\\n"
  6929. " -drive file=guix-system.img \\\n"
  6930. " -drive media=cdrom,file=guix-system-install-@value{VERSION}.@var{system}.iso\n"
  6931. msgstr ""
  6932. #. type: enumerate
  6933. #: guix-git/doc/guix.texi:2710
  6934. msgid "@code{-enable-kvm} is optional, but significantly improves performance, @pxref{Running Guix in a VM}."
  6935. msgstr ""
  6936. #. type: enumerate
  6937. #: guix-git/doc/guix.texi:2714
  6938. msgid "You're now root in the VM, proceed with the installation process. @xref{Preparing for Installation}, and follow the instructions."
  6939. msgstr ""
  6940. #. type: Plain text
  6941. #: guix-git/doc/guix.texi:2719
  6942. 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."
  6943. msgstr ""
  6944. #. type: cindex
  6945. #: guix-git/doc/guix.texi:2723
  6946. #, no-wrap
  6947. msgid "installation image"
  6948. msgstr ""
  6949. #. type: Plain text
  6950. #: guix-git/doc/guix.texi:2726
  6951. msgid "The installation image described above was built using the @command{guix system} command, specifically:"
  6952. msgstr ""
  6953. #. type: example
  6954. #: guix-git/doc/guix.texi:2729
  6955. #, no-wrap
  6956. msgid "guix system image -t iso9660 gnu/system/install.scm\n"
  6957. msgstr ""
  6958. #. type: Plain text
  6959. #: guix-git/doc/guix.texi:2734
  6960. 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."
  6961. msgstr ""
  6962. #. type: section
  6963. #: guix-git/doc/guix.texi:2735
  6964. #, no-wrap
  6965. msgid "Building the Installation Image for ARM Boards"
  6966. msgstr ""
  6967. #. type: Plain text
  6968. #: guix-git/doc/guix.texi:2739
  6969. msgid "Many ARM boards require a specific variant of the @uref{https://www.denx.de/wiki/U-Boot/, U-Boot} bootloader."
  6970. msgstr ""
  6971. #. type: Plain text
  6972. #: guix-git/doc/guix.texi:2743
  6973. 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:"
  6974. msgstr ""
  6975. #. type: example
  6976. #: guix-git/doc/guix.texi:2746
  6977. #, no-wrap
  6978. msgid "guix system image --system=armhf-linux -e '((@@ (gnu system install) os-with-u-boot) (@@ (gnu system install) installation-os) \"A20-OLinuXino-Lime2\")'\n"
  6979. msgstr ""
  6980. #. type: Plain text
  6981. #: guix-git/doc/guix.texi:2750
  6982. 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."
  6983. msgstr ""
  6984. #. type: Plain text
  6985. #: guix-git/doc/guix.texi:2760
  6986. 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."
  6987. msgstr ""
  6988. #. type: Plain text
  6989. #: guix-git/doc/guix.texi:2764
  6990. 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:"
  6991. msgstr ""
  6992. #. type: example
  6993. #: guix-git/doc/guix.texi:2767
  6994. #, no-wrap
  6995. msgid "guix search text editor\n"
  6996. msgstr ""
  6997. #. type: Plain text
  6998. #: guix-git/doc/guix.texi:2774
  6999. 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}!):"
  7000. msgstr ""
  7001. #. type: example
  7002. #: guix-git/doc/guix.texi:2777
  7003. #, fuzzy, no-wrap
  7004. msgid "guix install emacs\n"
  7005. msgstr "guix install emacs-guix\n"
  7006. #. type: cindex
  7007. #: guix-git/doc/guix.texi:2779 guix-git/doc/guix.texi:3091
  7008. #: guix-git/doc/guix.texi:3143
  7009. #, no-wrap
  7010. msgid "profile"
  7011. msgstr ""
  7012. #. type: Plain text
  7013. #: guix-git/doc/guix.texi:2787
  7014. 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)."
  7015. msgstr ""
  7016. #. type: Plain text
  7017. #: guix-git/doc/guix.texi:2790
  7018. msgid "Unless you're using Guix System, the @command{guix install} command must have printed this hint:"
  7019. msgstr ""
  7020. #. type: example
  7021. #: guix-git/doc/guix.texi:2793
  7022. #, no-wrap
  7023. msgid ""
  7024. "hint: Consider setting the necessary environment variables by running:\n"
  7025. "\n"
  7026. msgstr ""
  7027. #. type: example
  7028. #: guix-git/doc/guix.texi:2796
  7029. #, no-wrap
  7030. msgid ""
  7031. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  7032. " . \"$GUIX_PROFILE/etc/profile\"\n"
  7033. "\n"
  7034. msgstr ""
  7035. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  7036. " . \"$GUIX_PROFILE/etc/profile\"\n"
  7037. "\n"
  7038. #. type: example
  7039. #: guix-git/doc/guix.texi:2798
  7040. #, no-wrap
  7041. msgid "Alternately, see `guix package --search-paths -p \"$HOME/.guix-profile\"'.\n"
  7042. msgstr ""
  7043. #. type: Plain text
  7044. #: guix-git/doc/guix.texi:2812
  7045. msgid "Indeed, you must now tell your shell where @command{emacs} and other programs installed with Guix are to be found. Pasting the two lines above will do just that: it will add @code{$HOME/.guix-profile/bin}---which is where the installed package is---to the @code{PATH} environment variable. You can paste these two lines in your shell so they take effect right away, but more importantly you should add them to @file{~/.bash_profile} (or equivalent file if you do not use Bash) so that environment variables are set next time you spawn a shell. You only need to do this once and other search paths environment variables will be taken care of similarly---e.g., if you eventually install @code{python} and Python libraries, @code{PYTHONPATH} will be defined."
  7046. msgstr ""
  7047. #. type: Plain text
  7048. #: guix-git/doc/guix.texi:2815
  7049. msgid "You can go on installing packages at your will. To list installed packages, run:"
  7050. msgstr ""
  7051. #. type: example
  7052. #: guix-git/doc/guix.texi:2818
  7053. #, fuzzy, no-wrap
  7054. msgid "guix package --list-installed\n"
  7055. msgstr "guix package --list-available\n"
  7056. #. type: Plain text
  7057. #: guix-git/doc/guix.texi:2823
  7058. 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:"
  7059. msgstr ""
  7060. #. type: example
  7061. #: guix-git/doc/guix.texi:2826
  7062. #, fuzzy, no-wrap
  7063. msgid "guix package --roll-back\n"
  7064. msgstr "guix package --list-available\n"
  7065. #. type: Plain text
  7066. #: guix-git/doc/guix.texi:2831
  7067. 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:"
  7068. msgstr ""
  7069. #. type: example
  7070. #: guix-git/doc/guix.texi:2834
  7071. #, fuzzy, no-wrap
  7072. msgid "guix package --list-generations\n"
  7073. msgstr "guix package --list-available\n"
  7074. #. type: Plain text
  7075. #: guix-git/doc/guix.texi:2837
  7076. msgid "Now you know the basics of package management!"
  7077. msgstr "现在你知道包管理的基本知识了吧!"
  7078. #. type: quotation
  7079. #: guix-git/doc/guix.texi:2838 guix-git/doc/guix.texi:2897
  7080. #, no-wrap
  7081. msgid "Going further"
  7082. msgstr ""
  7083. #. type: quotation
  7084. #: guix-git/doc/guix.texi:2846
  7085. 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."
  7086. msgstr ""
  7087. #. type: Plain text
  7088. #: guix-git/doc/guix.texi:2851
  7089. 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:"
  7090. msgstr ""
  7091. #. type: Plain text
  7092. #: guix-git/doc/guix.texi:2861
  7093. 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}:"
  7094. msgstr ""
  7095. #. type: example
  7096. #: guix-git/doc/guix.texi:2865
  7097. #, no-wrap
  7098. msgid ""
  7099. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  7100. ". \"$GUIX_PROFILE/etc/profile\"\n"
  7101. msgstr ""
  7102. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  7103. ". \"$GUIX_PROFILE/etc/profile\"\n"
  7104. #. type: Plain text
  7105. #: guix-git/doc/guix.texi:2869
  7106. msgid "You must also instruct your shell to point to this new @command{guix}:"
  7107. msgstr ""
  7108. #. type: example
  7109. #: guix-git/doc/guix.texi:2872
  7110. #, no-wrap
  7111. msgid "hash guix\n"
  7112. msgstr ""
  7113. #. type: Plain text
  7114. #: guix-git/doc/guix.texi:2876
  7115. 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:"
  7116. msgstr ""
  7117. #. type: example
  7118. #: guix-git/doc/guix.texi:2879
  7119. #, no-wrap
  7120. msgid "guix upgrade\n"
  7121. msgstr ""
  7122. #. type: Plain text
  7123. #: guix-git/doc/guix.texi:2885
  7124. 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!"
  7125. msgstr ""
  7126. #. type: Plain text
  7127. #: guix-git/doc/guix.texi:2888
  7128. msgid "You can display the exact revision of Guix you're currently using by running:"
  7129. msgstr ""
  7130. #. type: example
  7131. #: guix-git/doc/guix.texi:2891
  7132. #, no-wrap
  7133. msgid "guix describe\n"
  7134. msgstr "guix describe\n"
  7135. #. type: Plain text
  7136. #: guix-git/doc/guix.texi:2896
  7137. 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."
  7138. msgstr ""
  7139. #. type: quotation
  7140. #: guix-git/doc/guix.texi:2902
  7141. 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})."
  7142. msgstr ""
  7143. #. type: Plain text
  7144. #: guix-git/doc/guix.texi:2907
  7145. 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:"
  7146. msgstr ""
  7147. #. type: example
  7148. #: guix-git/doc/guix.texi:2910
  7149. #, no-wrap
  7150. msgid "sudo guix system reconfigure /etc/config.scm\n"
  7151. msgstr ""
  7152. #. type: Plain text
  7153. #: guix-git/doc/guix.texi:2919
  7154. 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}:"
  7155. msgstr ""
  7156. #. type: example
  7157. #: guix-git/doc/guix.texi:2922
  7158. #, no-wrap
  7159. msgid "sudo guix system roll-back\n"
  7160. msgstr ""
  7161. #. type: Plain text
  7162. #: guix-git/doc/guix.texi:2929
  7163. 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."
  7164. msgstr ""
  7165. #. type: Plain text
  7166. #: guix-git/doc/guix.texi:2931
  7167. msgid "Now you know enough to get started!"
  7168. msgstr ""
  7169. #. type: quotation
  7170. #: guix-git/doc/guix.texi:2932
  7171. #, no-wrap
  7172. msgid "Resources"
  7173. msgstr ""
  7174. #. type: quotation
  7175. #: guix-git/doc/guix.texi:2935
  7176. msgid "The rest of this manual provides a reference for all things Guix. Here are some additional resources you may find useful:"
  7177. msgstr ""
  7178. #. type: itemize
  7179. #: guix-git/doc/guix.texi:2940
  7180. msgid "@xref{Top,,, guix-cookbook, The GNU Guix Cookbook}, for a list of ``how-to'' style of recipes for a variety of applications."
  7181. msgstr ""
  7182. #. type: itemize
  7183. #: guix-git/doc/guix.texi:2945
  7184. 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."
  7185. msgstr ""
  7186. #. type: itemize
  7187. #: guix-git/doc/guix.texi:2950
  7188. 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."
  7189. msgstr ""
  7190. #. type: itemize
  7191. #: guix-git/doc/guix.texi:2954
  7192. msgid "@xref{Documentation}, to learn how to access documentation on your computer."
  7193. msgstr ""
  7194. #. type: quotation
  7195. #: guix-git/doc/guix.texi:2957
  7196. msgid "We hope you will enjoy Guix as much as the community enjoys building it!"
  7197. msgstr ""
  7198. #. type: Plain text
  7199. #: guix-git/doc/guix.texi:2968
  7200. 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."
  7201. msgstr ""
  7202. #. type: Plain text
  7203. #: guix-git/doc/guix.texi:2976
  7204. 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):"
  7205. msgstr ""
  7206. #. type: example
  7207. #: guix-git/doc/guix.texi:2979
  7208. #, no-wrap
  7209. msgid "guix install emacs-guix\n"
  7210. msgstr "guix install emacs-guix\n"
  7211. #. type: Plain text
  7212. #: guix-git/doc/guix.texi:3000
  7213. 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."
  7214. msgstr ""
  7215. #. type: Plain text
  7216. #: guix-git/doc/guix.texi:3004
  7217. 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."
  7218. msgstr ""
  7219. #. type: Plain text
  7220. #: guix-git/doc/guix.texi:3009
  7221. 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}."
  7222. msgstr ""
  7223. #. type: Plain text
  7224. #: guix-git/doc/guix.texi:3017
  7225. 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."
  7226. msgstr ""
  7227. #. type: Plain text
  7228. #: guix-git/doc/guix.texi:3021
  7229. 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}."
  7230. msgstr ""
  7231. #. type: cindex
  7232. #: guix-git/doc/guix.texi:3022 guix-git/doc/guix.texi:3105
  7233. #, no-wrap
  7234. msgid "transactions"
  7235. msgstr ""
  7236. #. type: Plain text
  7237. #: guix-git/doc/guix.texi:3029
  7238. 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."
  7239. msgstr ""
  7240. #. type: Plain text
  7241. #: guix-git/doc/guix.texi:3037
  7242. 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})."
  7243. msgstr ""
  7244. #. type: Plain text
  7245. #: guix-git/doc/guix.texi:3044
  7246. 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."
  7247. msgstr ""
  7248. #. type: Plain text
  7249. #: guix-git/doc/guix.texi:3057
  7250. 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})."
  7251. msgstr ""
  7252. #. type: Plain text
  7253. #: guix-git/doc/guix.texi:3068
  7254. 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})."
  7255. msgstr ""
  7256. #. type: Plain text
  7257. #: guix-git/doc/guix.texi:3074
  7258. msgid "Control over the build environment is a feature that is also useful for developers. The @command{guix environment} command allows developers of a package to quickly set up the right development environment for their package, without having to manually install the dependencies of the package into their profile (@pxref{Invoking guix environment})."
  7259. msgstr ""
  7260. #. type: cindex
  7261. #: guix-git/doc/guix.texi:3075
  7262. #, no-wrap
  7263. msgid "replication, of software environments"
  7264. msgstr ""
  7265. #. type: cindex
  7266. #: guix-git/doc/guix.texi:3076
  7267. #, no-wrap
  7268. msgid "provenance tracking, of software artifacts"
  7269. msgstr ""
  7270. #. type: Plain text
  7271. #: guix-git/doc/guix.texi:3083
  7272. 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."
  7273. msgstr ""
  7274. #. type: section
  7275. #: guix-git/doc/guix.texi:3085
  7276. #, no-wrap
  7277. msgid "Invoking @command{guix package}"
  7278. msgstr ""
  7279. #. type: cindex
  7280. #: guix-git/doc/guix.texi:3087
  7281. #, no-wrap
  7282. msgid "installing packages"
  7283. msgstr ""
  7284. #. type: cindex
  7285. #: guix-git/doc/guix.texi:3088
  7286. #, no-wrap
  7287. msgid "removing packages"
  7288. msgstr ""
  7289. #. type: cindex
  7290. #: guix-git/doc/guix.texi:3089
  7291. #, no-wrap
  7292. msgid "package installation"
  7293. msgstr ""
  7294. #. type: cindex
  7295. #: guix-git/doc/guix.texi:3090
  7296. #, no-wrap
  7297. msgid "package removal"
  7298. msgstr ""
  7299. #. type: Plain text
  7300. #: guix-git/doc/guix.texi:3100
  7301. 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:"
  7302. msgstr ""
  7303. #. type: example
  7304. #: guix-git/doc/guix.texi:3103
  7305. #, no-wrap
  7306. msgid "guix package @var{options}\n"
  7307. msgstr ""
  7308. #. type: Plain text
  7309. #: guix-git/doc/guix.texi:3110
  7310. 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."
  7311. msgstr ""
  7312. #. type: Plain text
  7313. #: guix-git/doc/guix.texi:3113
  7314. msgid "For example, to remove @code{lua} and install @code{guile} and @code{guile-cairo} in a single transaction:"
  7315. msgstr ""
  7316. #. type: example
  7317. #: guix-git/doc/guix.texi:3116
  7318. #, no-wrap
  7319. msgid "guix package -r lua -i guile guile-cairo\n"
  7320. msgstr ""
  7321. #. type: cindex
  7322. #: guix-git/doc/guix.texi:3118
  7323. #, no-wrap
  7324. msgid "aliases, for @command{guix package}"
  7325. msgstr ""
  7326. #. type: Plain text
  7327. #: guix-git/doc/guix.texi:3120
  7328. msgid "For your convenience, we also provide the following aliases:"
  7329. msgstr ""
  7330. #. type: itemize
  7331. #: guix-git/doc/guix.texi:3124
  7332. msgid "@command{guix search} is an alias for @command{guix package -s},"
  7333. msgstr ""
  7334. #. type: itemize
  7335. #: guix-git/doc/guix.texi:3126
  7336. msgid "@command{guix install} is an alias for @command{guix package -i},"
  7337. msgstr ""
  7338. #. type: itemize
  7339. #: guix-git/doc/guix.texi:3128
  7340. msgid "@command{guix remove} is an alias for @command{guix package -r},"
  7341. msgstr ""
  7342. #. type: itemize
  7343. #: guix-git/doc/guix.texi:3130
  7344. msgid "@command{guix upgrade} is an alias for @command{guix package -u},"
  7345. msgstr ""
  7346. #. type: itemize
  7347. #: guix-git/doc/guix.texi:3132
  7348. msgid "and @command{guix show} is an alias for @command{guix package --show=}."
  7349. msgstr ""
  7350. #. type: Plain text
  7351. #: guix-git/doc/guix.texi:3137
  7352. 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."
  7353. msgstr ""
  7354. #. type: Plain text
  7355. #: guix-git/doc/guix.texi:3142
  7356. 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}})."
  7357. msgstr ""
  7358. #. type: Plain text
  7359. #: guix-git/doc/guix.texi:3149
  7360. 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."
  7361. msgstr ""
  7362. #. type: cindex
  7363. #: guix-git/doc/guix.texi:3149 guix-git/doc/guix.texi:3382
  7364. #, no-wrap
  7365. msgid "search paths"
  7366. msgstr ""
  7367. #. type: Plain text
  7368. #: guix-git/doc/guix.texi:3154
  7369. 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:"
  7370. msgstr ""
  7371. #. type: example
  7372. #: guix-git/doc/guix.texi:3158
  7373. #, no-wrap
  7374. msgid ""
  7375. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  7376. "source \"$GUIX_PROFILE/etc/profile\"\n"
  7377. msgstr ""
  7378. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  7379. "source \"$GUIX_PROFILE/etc/profile\"\n"
  7380. #. type: Plain text
  7381. #: guix-git/doc/guix.texi:3169
  7382. 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}."
  7383. msgstr ""
  7384. #. type: Plain text
  7385. #: guix-git/doc/guix.texi:3171
  7386. msgid "The @var{options} can be among the following:"
  7387. msgstr ""
  7388. #. type: item
  7389. #: guix-git/doc/guix.texi:3174
  7390. #, no-wrap
  7391. msgid "--install=@var{package} @dots{}"
  7392. msgstr ""
  7393. #. type: itemx
  7394. #: guix-git/doc/guix.texi:3175
  7395. #, no-wrap
  7396. msgid "-i @var{package} @dots{}"
  7397. msgstr ""
  7398. #. type: table
  7399. #: guix-git/doc/guix.texi:3177
  7400. msgid "Install the specified @var{package}s."
  7401. msgstr ""
  7402. #. type: table
  7403. #: guix-git/doc/guix.texi:3182
  7404. 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)."
  7405. msgstr ""
  7406. #. type: table
  7407. #: guix-git/doc/guix.texi:3190
  7408. 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})."
  7409. msgstr ""
  7410. #. type: cindex
  7411. #: guix-git/doc/guix.texi:3191
  7412. #, no-wrap
  7413. msgid "propagated inputs"
  7414. msgstr ""
  7415. #. type: table
  7416. #: guix-git/doc/guix.texi:3197
  7417. 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)."
  7418. msgstr ""
  7419. #. type: anchor{#1}
  7420. #: guix-git/doc/guix.texi:3204
  7421. msgid "package-cmd-propagated-inputs"
  7422. msgstr ""
  7423. #. type: table
  7424. #: guix-git/doc/guix.texi:3204
  7425. 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."
  7426. msgstr ""
  7427. #. type: table
  7428. #: guix-git/doc/guix.texi:3209
  7429. 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."
  7430. msgstr ""
  7431. #. type: item
  7432. #: guix-git/doc/guix.texi:3210
  7433. #, no-wrap
  7434. msgid "--install-from-expression=@var{exp}"
  7435. msgstr ""
  7436. #. type: itemx
  7437. #: guix-git/doc/guix.texi:3211
  7438. #, no-wrap
  7439. msgid "-e @var{exp}"
  7440. msgstr ""
  7441. #. type: table
  7442. #: guix-git/doc/guix.texi:3213
  7443. msgid "Install the package @var{exp} evaluates to."
  7444. msgstr ""
  7445. #. type: table
  7446. #: guix-git/doc/guix.texi:3218
  7447. 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)}."
  7448. msgstr ""
  7449. #. type: table
  7450. #: guix-git/doc/guix.texi:3222
  7451. 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."
  7452. msgstr ""
  7453. #. type: item
  7454. #: guix-git/doc/guix.texi:3223
  7455. #, no-wrap
  7456. msgid "--install-from-file=@var{file}"
  7457. msgstr ""
  7458. #. type: itemx
  7459. #: guix-git/doc/guix.texi:3224 guix-git/doc/guix.texi:10782
  7460. #, no-wrap
  7461. msgid "-f @var{file}"
  7462. msgstr ""
  7463. #. type: table
  7464. #: guix-git/doc/guix.texi:3226
  7465. msgid "Install the package that the code within @var{file} evaluates to."
  7466. msgstr ""
  7467. #. type: table
  7468. #: guix-git/doc/guix.texi:3229 guix-git/doc/guix.texi:5761
  7469. msgid "As an example, @var{file} might contain a definition like this (@pxref{Defining Packages}):"
  7470. msgstr ""
  7471. #. type: include
  7472. #: guix-git/doc/guix.texi:3231 guix-git/doc/guix.texi:10790
  7473. #, no-wrap
  7474. msgid "package-hello.scm"
  7475. msgstr ""
  7476. #. type: table
  7477. #: guix-git/doc/guix.texi:3238
  7478. msgid "Developers may find it useful to include such a @file{guix.scm} file in the root of their project source tree that can be used to test development snapshots and create reproducible development environments (@pxref{Invoking guix environment})."
  7479. msgstr ""
  7480. #. type: table
  7481. #: guix-git/doc/guix.texi:3243
  7482. 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}:"
  7483. msgstr ""
  7484. #. type: example
  7485. #: guix-git/doc/guix.texi:3246 guix-git/doc/guix.texi:10800
  7486. #, no-wrap
  7487. msgid "@verbatiminclude package-hello.json\n"
  7488. msgstr ""
  7489. #. type: item
  7490. #: guix-git/doc/guix.texi:3248
  7491. #, no-wrap
  7492. msgid "--remove=@var{package} @dots{}"
  7493. msgstr ""
  7494. #. type: itemx
  7495. #: guix-git/doc/guix.texi:3249
  7496. #, no-wrap
  7497. msgid "-r @var{package} @dots{}"
  7498. msgstr ""
  7499. #. type: table
  7500. #: guix-git/doc/guix.texi:3251
  7501. msgid "Remove the specified @var{package}s."
  7502. msgstr ""
  7503. #. type: table
  7504. #: guix-git/doc/guix.texi:3256
  7505. 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}."
  7506. msgstr ""
  7507. #. type: item
  7508. #: guix-git/doc/guix.texi:3257
  7509. #, no-wrap
  7510. msgid "--upgrade[=@var{regexp} @dots{}]"
  7511. msgstr ""
  7512. #. type: itemx
  7513. #: guix-git/doc/guix.texi:3258
  7514. #, no-wrap
  7515. msgid "-u [@var{regexp} @dots{}]"
  7516. msgstr ""
  7517. #. type: cindex
  7518. #: guix-git/doc/guix.texi:3259
  7519. #, no-wrap
  7520. msgid "upgrading packages"
  7521. msgstr ""
  7522. #. type: table
  7523. #: guix-git/doc/guix.texi:3263
  7524. 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."
  7525. msgstr ""
  7526. #. type: table
  7527. #: guix-git/doc/guix.texi:3268
  7528. 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})."
  7529. msgstr ""
  7530. #. type: cindex
  7531. #: guix-git/doc/guix.texi:3269
  7532. #, fuzzy, no-wrap
  7533. msgid "package transformations, upgrades"
  7534. msgstr "软件包变换选项。"
  7535. #. type: table
  7536. #: guix-git/doc/guix.texi:3274
  7537. 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:"
  7538. msgstr ""
  7539. #. type: example
  7540. #: guix-git/doc/guix.texi:3277
  7541. #, no-wrap
  7542. msgid "guix install emacs-next --with-branch=emacs-next=master\n"
  7543. msgstr ""
  7544. #. type: table
  7545. #: guix-git/doc/guix.texi:3282
  7546. 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."
  7547. msgstr ""
  7548. #. type: table
  7549. #: guix-git/doc/guix.texi:3287
  7550. 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:"
  7551. msgstr ""
  7552. #. type: example
  7553. #: guix-git/doc/guix.texi:3290
  7554. #, fuzzy, no-wrap
  7555. msgid "guix install @var{package}\n"
  7556. msgstr "guix install emacs-guix\n"
  7557. #. type: item
  7558. #: guix-git/doc/guix.texi:3292
  7559. #, no-wrap
  7560. msgid "--do-not-upgrade[=@var{regexp} @dots{}]"
  7561. msgstr ""
  7562. #. type: table
  7563. #: guix-git/doc/guix.texi:3297
  7564. 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'':"
  7565. msgstr ""
  7566. #. type: example
  7567. #: guix-git/doc/guix.texi:3300
  7568. #, no-wrap
  7569. msgid "$ guix package --upgrade . --do-not-upgrade emacs\n"
  7570. msgstr ""
  7571. #. type: anchor{#1}
  7572. #: guix-git/doc/guix.texi:3302
  7573. #, no-wrap
  7574. msgid "profile-manifest"
  7575. msgstr ""
  7576. #. type: item
  7577. #: guix-git/doc/guix.texi:3302 guix-git/doc/guix.texi:5766
  7578. #: guix-git/doc/guix.texi:6214 guix-git/doc/guix.texi:11898
  7579. #: guix-git/doc/guix.texi:13395
  7580. #, no-wrap
  7581. msgid "--manifest=@var{file}"
  7582. msgstr ""
  7583. #. type: itemx
  7584. #: guix-git/doc/guix.texi:3303 guix-git/doc/guix.texi:5767
  7585. #: guix-git/doc/guix.texi:6215 guix-git/doc/guix.texi:11899
  7586. #, no-wrap
  7587. msgid "-m @var{file}"
  7588. msgstr ""
  7589. #. type: cindex
  7590. #: guix-git/doc/guix.texi:3304
  7591. #, no-wrap
  7592. msgid "profile declaration"
  7593. msgstr ""
  7594. #. type: cindex
  7595. #: guix-git/doc/guix.texi:3305
  7596. #, no-wrap
  7597. msgid "profile manifest"
  7598. msgstr ""
  7599. #. type: table
  7600. #: guix-git/doc/guix.texi:3309
  7601. 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."
  7602. msgstr ""
  7603. #. type: table
  7604. #: guix-git/doc/guix.texi:3315
  7605. 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."
  7606. msgstr ""
  7607. #. type: table
  7608. #: guix-git/doc/guix.texi:3319
  7609. msgid "@var{file} must return a @dfn{manifest} object, which is roughly a list of packages:"
  7610. msgstr ""
  7611. #. type: findex
  7612. #: guix-git/doc/guix.texi:3320
  7613. #, no-wrap
  7614. msgid "packages->manifest"
  7615. msgstr ""
  7616. #. type: lisp
  7617. #: guix-git/doc/guix.texi:3323
  7618. #, no-wrap
  7619. msgid ""
  7620. "(use-package-modules guile emacs)\n"
  7621. "\n"
  7622. msgstr ""
  7623. #. type: lisp
  7624. #: guix-git/doc/guix.texi:3329
  7625. #, no-wrap
  7626. msgid ""
  7627. "(packages->manifest\n"
  7628. " (list emacs\n"
  7629. " guile-2.0\n"
  7630. " ;; Use a specific package output.\n"
  7631. " (list guile-2.0 \"debug\")))\n"
  7632. msgstr ""
  7633. #. type: findex
  7634. #: guix-git/doc/guix.texi:3331
  7635. #, no-wrap
  7636. msgid "specifications->manifest"
  7637. msgstr ""
  7638. #. type: table
  7639. #: guix-git/doc/guix.texi:3338
  7640. 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:"
  7641. msgstr ""
  7642. #. type: lisp
  7643. #: guix-git/doc/guix.texi:3342
  7644. #, no-wrap
  7645. msgid ""
  7646. "(specifications->manifest\n"
  7647. " '(\"emacs\" \"guile@@2.2\" \"guile@@2.2:debug\"))\n"
  7648. msgstr ""
  7649. #. type: table
  7650. #: guix-git/doc/guix.texi:3346
  7651. msgid "@xref{export-manifest, @option{--export-manifest}}, to learn how to obtain a manifest file from an existing profile."
  7652. msgstr ""
  7653. #. type: item
  7654. #: guix-git/doc/guix.texi:3347 guix-git/doc/guix.texi:4454
  7655. #, no-wrap
  7656. msgid "--roll-back"
  7657. msgstr ""
  7658. #. type: cindex
  7659. #: guix-git/doc/guix.texi:3348 guix-git/doc/guix.texi:4455
  7660. #: guix-git/doc/guix.texi:33878 guix-git/doc/guix.texi:36041
  7661. #, no-wrap
  7662. msgid "rolling back"
  7663. msgstr ""
  7664. #. type: cindex
  7665. #: guix-git/doc/guix.texi:3349 guix-git/doc/guix.texi:4456
  7666. #, no-wrap
  7667. msgid "undoing transactions"
  7668. msgstr ""
  7669. #. type: cindex
  7670. #: guix-git/doc/guix.texi:3350 guix-git/doc/guix.texi:4457
  7671. #, no-wrap
  7672. msgid "transactions, undoing"
  7673. msgstr ""
  7674. #. type: table
  7675. #: guix-git/doc/guix.texi:3353
  7676. msgid "Roll back to the previous @dfn{generation} of the profile---i.e., undo the last transaction."
  7677. msgstr ""
  7678. #. type: table
  7679. #: guix-git/doc/guix.texi:3356
  7680. msgid "When combined with options such as @option{--install}, roll back occurs before any other actions."
  7681. msgstr ""
  7682. #. type: table
  7683. #: guix-git/doc/guix.texi:3360
  7684. 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."
  7685. msgstr ""
  7686. #. type: table
  7687. #: guix-git/doc/guix.texi:3364
  7688. 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."
  7689. msgstr ""
  7690. #. type: item
  7691. #: guix-git/doc/guix.texi:3365 guix-git/doc/guix.texi:4461
  7692. #, no-wrap
  7693. msgid "--switch-generation=@var{pattern}"
  7694. msgstr ""
  7695. #. type: itemx
  7696. #: guix-git/doc/guix.texi:3366 guix-git/doc/guix.texi:4462
  7697. #, no-wrap
  7698. msgid "-S @var{pattern}"
  7699. msgstr ""
  7700. #. type: cindex
  7701. #: guix-git/doc/guix.texi:3367 guix-git/doc/guix.texi:3597
  7702. #: guix-git/doc/guix.texi:4463 guix-git/doc/guix.texi:33836
  7703. #, no-wrap
  7704. msgid "generations"
  7705. msgstr ""
  7706. #. type: table
  7707. #: guix-git/doc/guix.texi:3369 guix-git/doc/guix.texi:4465
  7708. msgid "Switch to a particular generation defined by @var{pattern}."
  7709. msgstr ""
  7710. #. type: table
  7711. #: guix-git/doc/guix.texi:3375 guix-git/doc/guix.texi:4471
  7712. 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}."
  7713. msgstr ""
  7714. #. type: table
  7715. #: guix-git/doc/guix.texi:3380
  7716. 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."
  7717. msgstr ""
  7718. #. type: item
  7719. #: guix-git/doc/guix.texi:3381
  7720. #, no-wrap
  7721. msgid "--search-paths[=@var{kind}]"
  7722. msgstr ""
  7723. #. type: table
  7724. #: guix-git/doc/guix.texi:3387
  7725. 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."
  7726. msgstr ""
  7727. #. type: table
  7728. #: guix-git/doc/guix.texi:3395
  7729. 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."
  7730. msgstr ""
  7731. #. type: table
  7732. #: guix-git/doc/guix.texi:3398
  7733. msgid "The typical use case is to define these environment variables in the shell:"
  7734. msgstr ""
  7735. #. type: example
  7736. #: guix-git/doc/guix.texi:3401
  7737. #, no-wrap
  7738. msgid "$ eval `guix package --search-paths`\n"
  7739. msgstr ""
  7740. #. type: table
  7741. #: guix-git/doc/guix.texi:3407
  7742. 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}."
  7743. msgstr ""
  7744. #. type: table
  7745. #: guix-git/doc/guix.texi:3410
  7746. msgid "This option can also be used to compute the @emph{combined} search paths of several profiles. Consider this example:"
  7747. msgstr ""
  7748. #. type: example
  7749. #: guix-git/doc/guix.texi:3415
  7750. #, no-wrap
  7751. msgid ""
  7752. "$ guix package -p foo -i guile\n"
  7753. "$ guix package -p bar -i guile-json\n"
  7754. "$ guix package -p foo -p bar --search-paths\n"
  7755. msgstr ""
  7756. #. type: table
  7757. #: guix-git/doc/guix.texi:3420
  7758. 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."
  7759. msgstr ""
  7760. #. type: cindex
  7761. #: guix-git/doc/guix.texi:3422
  7762. #, no-wrap
  7763. msgid "profile, choosing"
  7764. msgstr ""
  7765. #. type: item
  7766. #: guix-git/doc/guix.texi:3423 guix-git/doc/guix.texi:4491
  7767. #: guix-git/doc/guix.texi:4820
  7768. #, no-wrap
  7769. msgid "--profile=@var{profile}"
  7770. msgstr ""
  7771. #. type: itemx
  7772. #: guix-git/doc/guix.texi:3424 guix-git/doc/guix.texi:4492
  7773. #: guix-git/doc/guix.texi:4821
  7774. #, no-wrap
  7775. msgid "-p @var{profile}"
  7776. msgstr ""
  7777. #. type: table
  7778. #: guix-git/doc/guix.texi:3426
  7779. msgid "Use @var{profile} instead of the user's default profile."
  7780. msgstr ""
  7781. #. type: table
  7782. #: guix-git/doc/guix.texi:3431
  7783. 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:"
  7784. msgstr ""
  7785. #. type: example
  7786. #: guix-git/doc/guix.texi:3437
  7787. #, no-wrap
  7788. msgid ""
  7789. "$ guix install hello -p ~/code/my-profile\n"
  7790. "@dots{}\n"
  7791. "$ ~/code/my-profile/bin/hello\n"
  7792. "Hello, world!\n"
  7793. msgstr ""
  7794. #. type: table
  7795. #: guix-git/doc/guix.texi:3441
  7796. msgid "All it takes to get rid of the profile is to remove this symlink and its siblings that point to specific generations:"
  7797. msgstr ""
  7798. #. type: example
  7799. #: guix-git/doc/guix.texi:3444
  7800. #, no-wrap
  7801. msgid "$ rm ~/code/my-profile ~/code/my-profile-*-link\n"
  7802. msgstr ""
  7803. #. type: item
  7804. #: guix-git/doc/guix.texi:3446
  7805. #, no-wrap
  7806. msgid "--list-profiles"
  7807. msgstr ""
  7808. #. type: table
  7809. #: guix-git/doc/guix.texi:3448
  7810. msgid "List all the user's profiles:"
  7811. msgstr ""
  7812. #. type: example
  7813. #: guix-git/doc/guix.texi:3455
  7814. #, no-wrap
  7815. msgid ""
  7816. "$ guix package --list-profiles\n"
  7817. "/home/charlie/.guix-profile\n"
  7818. "/home/charlie/code/my-profile\n"
  7819. "/home/charlie/code/devel-profile\n"
  7820. "/home/charlie/tmp/test\n"
  7821. msgstr ""
  7822. #. type: table
  7823. #: guix-git/doc/guix.texi:3458
  7824. msgid "When running as root, list all the profiles of all the users."
  7825. msgstr ""
  7826. #. type: cindex
  7827. #: guix-git/doc/guix.texi:3459
  7828. #, no-wrap
  7829. msgid "collisions, in a profile"
  7830. msgstr ""
  7831. #. type: cindex
  7832. #: guix-git/doc/guix.texi:3460
  7833. #, no-wrap
  7834. msgid "colliding packages in profiles"
  7835. msgstr ""
  7836. #. type: cindex
  7837. #: guix-git/doc/guix.texi:3461
  7838. #, no-wrap
  7839. msgid "profile collisions"
  7840. msgstr ""
  7841. #. type: item
  7842. #: guix-git/doc/guix.texi:3462
  7843. #, no-wrap
  7844. msgid "--allow-collisions"
  7845. msgstr ""
  7846. #. type: table
  7847. #: guix-git/doc/guix.texi:3464
  7848. msgid "Allow colliding packages in the new profile. Use at your own risk!"
  7849. msgstr ""
  7850. #. type: table
  7851. #: guix-git/doc/guix.texi:3468
  7852. 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."
  7853. msgstr ""
  7854. #. type: item
  7855. #: guix-git/doc/guix.texi:3469 guix-git/doc/guix.texi:4534
  7856. #: guix-git/doc/guix.texi:6300
  7857. #, no-wrap
  7858. msgid "--bootstrap"
  7859. msgstr ""
  7860. #. type: table
  7861. #: guix-git/doc/guix.texi:3472
  7862. msgid "Use the bootstrap Guile to build the profile. This option is only useful to distribution developers."
  7863. msgstr ""
  7864. #. type: Plain text
  7865. #: guix-git/doc/guix.texi:3478
  7866. 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:"
  7867. msgstr ""
  7868. #. type: item
  7869. #: guix-git/doc/guix.texi:3481
  7870. #, no-wrap
  7871. msgid "--search=@var{regexp}"
  7872. msgstr ""
  7873. #. type: itemx
  7874. #: guix-git/doc/guix.texi:3482
  7875. #, no-wrap
  7876. msgid "-s @var{regexp}"
  7877. msgstr ""
  7878. #. type: anchor{#1}
  7879. #: guix-git/doc/guix.texi:3484
  7880. msgid "guix-search"
  7881. msgstr ""
  7882. #. type: cindex
  7883. #: guix-git/doc/guix.texi:3484
  7884. #, no-wrap
  7885. msgid "searching for packages"
  7886. msgstr ""
  7887. #. type: table
  7888. #: guix-git/doc/guix.texi:3490
  7889. 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})."
  7890. msgstr ""
  7891. #. type: table
  7892. #: guix-git/doc/guix.texi:3493
  7893. msgid "This allows specific fields to be extracted using the @command{recsel} command, for instance:"
  7894. msgstr ""
  7895. #. type: example
  7896. #: guix-git/doc/guix.texi:3499
  7897. #, no-wrap
  7898. msgid ""
  7899. "$ guix package -s malloc | recsel -p name,version,relevance\n"
  7900. "name: jemalloc\n"
  7901. "version: 4.5.0\n"
  7902. "relevance: 6\n"
  7903. "\n"
  7904. msgstr ""
  7905. #. type: example
  7906. #: guix-git/doc/guix.texi:3503
  7907. #, no-wrap
  7908. msgid ""
  7909. "name: glibc\n"
  7910. "version: 2.25\n"
  7911. "relevance: 1\n"
  7912. "\n"
  7913. msgstr ""
  7914. #. type: example
  7915. #: guix-git/doc/guix.texi:3507
  7916. #, no-wrap
  7917. msgid ""
  7918. "name: libgc\n"
  7919. "version: 7.6.0\n"
  7920. "relevance: 1\n"
  7921. msgstr ""
  7922. #. type: table
  7923. #: guix-git/doc/guix.texi:3511
  7924. msgid "Similarly, to show the name of all the packages available under the terms of the GNU@tie{}LGPL version 3:"
  7925. msgstr ""
  7926. #. type: example
  7927. #: guix-git/doc/guix.texi:3515
  7928. #, no-wrap
  7929. msgid ""
  7930. "$ guix package -s \"\" | recsel -p name -e 'license ~ \"LGPL 3\"'\n"
  7931. "name: elfutils\n"
  7932. "\n"
  7933. msgstr ""
  7934. #. type: example
  7935. #: guix-git/doc/guix.texi:3518
  7936. #, no-wrap
  7937. msgid ""
  7938. "name: gmp\n"
  7939. "@dots{}\n"
  7940. msgstr ""
  7941. #. type: table
  7942. #: guix-git/doc/guix.texi:3524
  7943. 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):"
  7944. msgstr ""
  7945. #. type: example
  7946. #: guix-git/doc/guix.texi:3529
  7947. #, no-wrap
  7948. msgid ""
  7949. "$ guix search '\\<board\\>' game | recsel -p name\n"
  7950. "name: gnubg\n"
  7951. "@dots{}\n"
  7952. msgstr ""
  7953. #. type: table
  7954. #: guix-git/doc/guix.texi:3535
  7955. 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."
  7956. msgstr ""
  7957. #. type: table
  7958. #: guix-git/doc/guix.texi:3539
  7959. 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:"
  7960. msgstr ""
  7961. #. type: example
  7962. #: guix-git/doc/guix.texi:3543
  7963. #, no-wrap
  7964. msgid ""
  7965. "$ guix search crypto library | \\\n"
  7966. " recsel -e '! (name ~ \"^(ghc|perl|python|ruby)\")' -p name,synopsis\n"
  7967. msgstr ""
  7968. #. type: table
  7969. #: guix-git/doc/guix.texi:3548
  7970. msgid "@xref{Selection Expressions,,, recutils, GNU recutils manual}, for more information on @dfn{selection expressions} for @code{recsel -e}."
  7971. msgstr ""
  7972. #. type: item
  7973. #: guix-git/doc/guix.texi:3549
  7974. #, no-wrap
  7975. msgid "--show=@var{package}"
  7976. msgstr ""
  7977. #. type: table
  7978. #: guix-git/doc/guix.texi:3553
  7979. 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})."
  7980. msgstr ""
  7981. #. type: example
  7982. #: guix-git/doc/guix.texi:3558
  7983. #, no-wrap
  7984. msgid ""
  7985. "$ guix package --show=python | recsel -p name,version\n"
  7986. "name: python\n"
  7987. "version: 2.7.6\n"
  7988. "\n"
  7989. msgstr ""
  7990. #. type: example
  7991. #: guix-git/doc/guix.texi:3561
  7992. #, no-wrap
  7993. msgid ""
  7994. "name: python\n"
  7995. "version: 3.3.5\n"
  7996. msgstr ""
  7997. #. type: table
  7998. #: guix-git/doc/guix.texi:3565
  7999. 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):"
  8000. msgstr ""
  8001. #. type: example
  8002. #: guix-git/doc/guix.texi:3569
  8003. #, no-wrap
  8004. msgid ""
  8005. "$ guix show python@@3.4 | recsel -p name,version\n"
  8006. "name: python\n"
  8007. "version: 3.4.3\n"
  8008. msgstr ""
  8009. #. type: item
  8010. #: guix-git/doc/guix.texi:3573
  8011. #, no-wrap
  8012. msgid "--list-installed[=@var{regexp}]"
  8013. msgstr ""
  8014. #. type: itemx
  8015. #: guix-git/doc/guix.texi:3574
  8016. #, no-wrap
  8017. msgid "-I [@var{regexp}]"
  8018. msgstr ""
  8019. #. type: table
  8020. #: guix-git/doc/guix.texi:3578
  8021. 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}."
  8022. msgstr ""
  8023. #. type: table
  8024. #: guix-git/doc/guix.texi:3584
  8025. 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."
  8026. msgstr ""
  8027. #. type: item
  8028. #: guix-git/doc/guix.texi:3585
  8029. #, no-wrap
  8030. msgid "--list-available[=@var{regexp}]"
  8031. msgstr ""
  8032. #. type: itemx
  8033. #: guix-git/doc/guix.texi:3586
  8034. #, no-wrap
  8035. msgid "-A [@var{regexp}]"
  8036. msgstr ""
  8037. #. type: table
  8038. #: guix-git/doc/guix.texi:3590
  8039. 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}."
  8040. msgstr ""
  8041. #. type: table
  8042. #: guix-git/doc/guix.texi:3594
  8043. 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."
  8044. msgstr ""
  8045. #. type: item
  8046. #: guix-git/doc/guix.texi:3595 guix-git/doc/guix.texi:4447
  8047. #, no-wrap
  8048. msgid "--list-generations[=@var{pattern}]"
  8049. msgstr ""
  8050. #. type: itemx
  8051. #: guix-git/doc/guix.texi:3596 guix-git/doc/guix.texi:4448
  8052. #, no-wrap
  8053. msgid "-l [@var{pattern}]"
  8054. msgstr ""
  8055. #. type: table
  8056. #: guix-git/doc/guix.texi:3602
  8057. 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."
  8058. msgstr ""
  8059. #. type: table
  8060. #: guix-git/doc/guix.texi:3607
  8061. 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."
  8062. msgstr ""
  8063. #. type: table
  8064. #: guix-git/doc/guix.texi:3610
  8065. msgid "When @var{pattern} is used, the command returns only matching generations. Valid patterns include:"
  8066. msgstr ""
  8067. #. type: item
  8068. #: guix-git/doc/guix.texi:3612
  8069. #, no-wrap
  8070. msgid "@emph{Integers and comma-separated integers}. Both patterns denote"
  8071. msgstr ""
  8072. #. type: itemize
  8073. #: guix-git/doc/guix.texi:3615
  8074. msgid "generation numbers. For instance, @option{--list-generations=1} returns the first one."
  8075. msgstr ""
  8076. #. type: itemize
  8077. #: guix-git/doc/guix.texi:3618
  8078. msgid "And @option{--list-generations=1,8,2} outputs three generations in the specified order. Neither spaces nor trailing commas are allowed."
  8079. msgstr ""
  8080. #. type: item
  8081. #: guix-git/doc/guix.texi:3619
  8082. #, no-wrap
  8083. msgid "@emph{Ranges}. @option{--list-generations=2..9} prints the"
  8084. msgstr ""
  8085. #. type: itemize
  8086. #: guix-git/doc/guix.texi:3622
  8087. msgid "specified generations and everything in between. Note that the start of a range must be smaller than its end."
  8088. msgstr ""
  8089. #. type: itemize
  8090. #: guix-git/doc/guix.texi:3626
  8091. msgid "It is also possible to omit the endpoint. For example, @option{--list-generations=2..}, returns all generations starting from the second one."
  8092. msgstr ""
  8093. #. type: item
  8094. #: guix-git/doc/guix.texi:3627
  8095. #, no-wrap
  8096. msgid "@emph{Durations}. You can also get the last @emph{N}@tie{}days, weeks,"
  8097. msgstr ""
  8098. #. type: itemize
  8099. #: guix-git/doc/guix.texi:3631
  8100. 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."
  8101. msgstr ""
  8102. #. type: item
  8103. #: guix-git/doc/guix.texi:3633 guix-git/doc/guix.texi:4472
  8104. #, no-wrap
  8105. msgid "--delete-generations[=@var{pattern}]"
  8106. msgstr ""
  8107. #. type: itemx
  8108. #: guix-git/doc/guix.texi:3634 guix-git/doc/guix.texi:4473
  8109. #, no-wrap
  8110. msgid "-d [@var{pattern}]"
  8111. msgstr ""
  8112. #. type: table
  8113. #: guix-git/doc/guix.texi:3637 guix-git/doc/guix.texi:4476
  8114. msgid "When @var{pattern} is omitted, delete all generations except the current one."
  8115. msgstr ""
  8116. #. type: table
  8117. #: guix-git/doc/guix.texi:3643 guix-git/doc/guix.texi:4482
  8118. 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."
  8119. msgstr ""
  8120. #. type: table
  8121. #: guix-git/doc/guix.texi:3646
  8122. msgid "If the current generation matches, it is @emph{not} deleted. Also, the zeroth generation is never deleted."
  8123. msgstr ""
  8124. #. type: table
  8125. #: guix-git/doc/guix.texi:3649 guix-git/doc/guix.texi:4487
  8126. msgid "Note that deleting generations prevents rolling back to them. Consequently, this command must be used with care."
  8127. msgstr ""
  8128. #. type: cindex
  8129. #: guix-git/doc/guix.texi:3650
  8130. #, no-wrap
  8131. msgid "manifest, exporting"
  8132. msgstr ""
  8133. #. type: anchor{#1}
  8134. #: guix-git/doc/guix.texi:3652
  8135. msgid "export-manifest"
  8136. msgstr ""
  8137. #. type: item
  8138. #: guix-git/doc/guix.texi:3652
  8139. #, no-wrap
  8140. msgid "--export-manifest"
  8141. msgstr ""
  8142. #. type: table
  8143. #: guix-git/doc/guix.texi:3655
  8144. msgid "Write to standard output a manifest suitable for @option{--manifest} corresponding to the chosen profile(s)."
  8145. msgstr ""
  8146. #. type: table
  8147. #: guix-git/doc/guix.texi:3659
  8148. 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."
  8149. msgstr ""
  8150. #. type: table
  8151. #: guix-git/doc/guix.texi:3664
  8152. 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."
  8153. msgstr ""
  8154. #. type: table
  8155. #: guix-git/doc/guix.texi:3669
  8156. 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."
  8157. msgstr ""
  8158. #. type: cindex
  8159. #: guix-git/doc/guix.texi:3670
  8160. #, fuzzy, no-wrap
  8161. msgid "pinning, channel revisions of a profile"
  8162. msgstr "和其它版本的Guix交互。"
  8163. #. type: item
  8164. #: guix-git/doc/guix.texi:3671
  8165. #, no-wrap
  8166. msgid "--export-channels"
  8167. msgstr ""
  8168. #. type: table
  8169. #: guix-git/doc/guix.texi:3675
  8170. 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})."
  8171. msgstr ""
  8172. #. type: table
  8173. #: guix-git/doc/guix.texi:3679
  8174. msgid "Together with @option{--export-manifest}, this option provides information allowing you to replicate the current profile (@pxref{Replicating Guix})."
  8175. msgstr ""
  8176. #. type: table
  8177. #: guix-git/doc/guix.texi:3687
  8178. 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})."
  8179. msgstr ""
  8180. #. type: table
  8181. #: guix-git/doc/guix.texi:3692
  8182. 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."
  8183. msgstr ""
  8184. #. type: Plain text
  8185. #: guix-git/doc/guix.texi:3699
  8186. 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})."
  8187. msgstr ""
  8188. #. type: cindex
  8189. #: guix-git/doc/guix.texi:3704
  8190. #, no-wrap
  8191. msgid "pre-built binaries"
  8192. msgstr ""
  8193. #. type: Plain text
  8194. #: guix-git/doc/guix.texi:3710
  8195. 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."
  8196. msgstr ""
  8197. #. type: Plain text
  8198. #: guix-git/doc/guix.texi:3715
  8199. 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."
  8200. msgstr ""
  8201. #. type: cindex
  8202. #: guix-git/doc/guix.texi:3729
  8203. #, no-wrap
  8204. msgid "build farm"
  8205. msgstr ""
  8206. #. type: Plain text
  8207. #: guix-git/doc/guix.texi:3740
  8208. 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})."
  8209. msgstr ""
  8210. #. type: Plain text
  8211. #: guix-git/doc/guix.texi:3746
  8212. 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."
  8213. msgstr ""
  8214. #. type: Plain text
  8215. #: guix-git/doc/guix.texi:3755
  8216. 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."
  8217. msgstr ""
  8218. #. type: cindex
  8219. #: guix-git/doc/guix.texi:3759
  8220. #, no-wrap
  8221. msgid "security"
  8222. msgstr ""
  8223. #. type: cindex
  8224. #: guix-git/doc/guix.texi:3761
  8225. #, no-wrap
  8226. msgid "access control list (ACL), for substitutes"
  8227. msgstr ""
  8228. #. type: cindex
  8229. #: guix-git/doc/guix.texi:3762
  8230. #, no-wrap
  8231. msgid "ACL (access control list), for substitutes"
  8232. msgstr ""
  8233. #. type: Plain text
  8234. #: guix-git/doc/guix.texi:3768
  8235. 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."
  8236. msgstr ""
  8237. #. type: quotation
  8238. #: guix-git/doc/guix.texi:3773
  8239. 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."
  8240. msgstr ""
  8241. #. type: Plain text
  8242. #: guix-git/doc/guix.texi:3781
  8243. 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:"
  8244. msgstr ""
  8245. #. type: example
  8246. #: guix-git/doc/guix.texi:3785
  8247. #, no-wrap
  8248. msgid ""
  8249. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  8250. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  8251. msgstr ""
  8252. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  8253. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  8254. #. type: Plain text
  8255. #: guix-git/doc/guix.texi:3789
  8256. msgid "Once this is in place, the output of a command like @code{guix build} should change from something like:"
  8257. msgstr ""
  8258. #. type: example
  8259. #: guix-git/doc/guix.texi:3798
  8260. #, no-wrap
  8261. msgid ""
  8262. "$ guix build emacs --dry-run\n"
  8263. "The following derivations would be built:\n"
  8264. " /gnu/store/yr7bnx8xwcayd6j95r2clmkdl1qh688w-emacs-24.3.drv\n"
  8265. " /gnu/store/x8qsh1hlhgjx6cwsjyvybnfv2i37z23w-dbus-1.6.4.tar.gz.drv\n"
  8266. " /gnu/store/1ixwp12fl950d15h2cj11c73733jay0z-alsa-lib-1.0.27.1.tar.bz2.drv\n"
  8267. " /gnu/store/nlma1pw0p603fpfiqy7kn4zm105r5dmw-util-linux-2.21.drv\n"
  8268. "@dots{}\n"
  8269. msgstr ""
  8270. #. type: Plain text
  8271. #: guix-git/doc/guix.texi:3802
  8272. msgid "to something like:"
  8273. msgstr ""
  8274. #. type: example
  8275. #: guix-git/doc/guix.texi:3811
  8276. #, no-wrap
  8277. msgid ""
  8278. "$ guix build emacs --dry-run\n"
  8279. "112.3 MB would be downloaded:\n"
  8280. " /gnu/store/pk3n22lbq6ydamyymqkkz7i69wiwjiwi-emacs-24.3\n"
  8281. " /gnu/store/2ygn4ncnhrpr61rssa6z0d9x22si0va3-libjpeg-8d\n"
  8282. " /gnu/store/71yz6lgx4dazma9dwn2mcjxaah9w77jq-cairo-1.12.16\n"
  8283. " /gnu/store/7zdhgp0n1518lvfn8mb96sxqfmvqrl7v-libxrender-0.9.7\n"
  8284. "@dots{}\n"
  8285. msgstr ""
  8286. #. type: Plain text
  8287. #: guix-git/doc/guix.texi:3818
  8288. 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."
  8289. msgstr ""
  8290. #. type: cindex
  8291. #: guix-git/doc/guix.texi:3819
  8292. #, no-wrap
  8293. msgid "substitutes, how to disable"
  8294. msgstr ""
  8295. #. type: Plain text
  8296. #: guix-git/doc/guix.texi:3825
  8297. 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."
  8298. msgstr ""
  8299. #. type: cindex
  8300. #: guix-git/doc/guix.texi:3829
  8301. #, fuzzy, no-wrap
  8302. msgid "substitute servers, adding more"
  8303. msgstr "授权substitute服务器。"
  8304. #. type: Plain text
  8305. #: guix-git/doc/guix.texi:3836
  8306. 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."
  8307. msgstr ""
  8308. #. type: Plain text
  8309. #: guix-git/doc/guix.texi:3841
  8310. 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."
  8311. msgstr ""
  8312. #. type: Plain text
  8313. #: guix-git/doc/guix.texi:3848
  8314. 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}})."
  8315. msgstr ""
  8316. #. type: Plain text
  8317. #: guix-git/doc/guix.texi:3854
  8318. 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:"
  8319. msgstr ""
  8320. #. type: lisp
  8321. #: guix-git/doc/guix.texi:3871
  8322. #, no-wrap
  8323. msgid ""
  8324. "(operating-system\n"
  8325. " ;; @dots{}\n"
  8326. " (services\n"
  8327. " ;; Assume we're starting from '%desktop-services'. Replace it\n"
  8328. " ;; with the list of services you're actually using.\n"
  8329. " (modify-services %desktop-services\n"
  8330. " (guix-service-type config =>\n"
  8331. " (guix-configuration\n"
  8332. " (inherit config)\n"
  8333. " (substitute-urls\n"
  8334. " (append (list \"https://guix.example.org\")\n"
  8335. " %default-substitute-urls))\n"
  8336. " (authorized-keys\n"
  8337. " (append (list (local-file \"./key.pub\"))\n"
  8338. " %default-authorized-guix-keys)))))))\n"
  8339. msgstr ""
  8340. #. type: Plain text
  8341. #: guix-git/doc/guix.texi:3878
  8342. 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:"
  8343. msgstr ""
  8344. #. type: example
  8345. #: guix-git/doc/guix.texi:3882
  8346. #, no-wrap
  8347. msgid ""
  8348. "$ sudo guix system reconfigure /etc/config.scm\n"
  8349. "$ sudo herd restart guix-daemon\n"
  8350. msgstr ""
  8351. #. type: Plain text
  8352. #: guix-git/doc/guix.texi:3886
  8353. msgid "If you're running Guix on a ``foreign distro'', you would instead take the following steps to get substitutes from additional servers:"
  8354. msgstr ""
  8355. #. type: enumerate
  8356. #: guix-git/doc/guix.texi:3895
  8357. 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}}):"
  8358. msgstr ""
  8359. #. type: example
  8360. #: guix-git/doc/guix.texi:3898
  8361. #, no-wrap
  8362. msgid "@dots{} --substitute-urls='https://guix.example.org @value{SUBSTITUTE-URLS}'\n"
  8363. msgstr ""
  8364. #. type: enumerate
  8365. #: guix-git/doc/guix.texi:3902
  8366. msgid "Restart the daemon. For systemd, it goes like this:"
  8367. msgstr ""
  8368. #. type: example
  8369. #: guix-git/doc/guix.texi:3906
  8370. #, no-wrap
  8371. msgid ""
  8372. "systemctl daemon-reload\n"
  8373. "systemctl restart guix-daemon.service\n"
  8374. msgstr ""
  8375. #. type: enumerate
  8376. #: guix-git/doc/guix.texi:3910
  8377. msgid "Authorize the key of the new server (@pxref{Invoking guix archive}):"
  8378. msgstr ""
  8379. #. type: example
  8380. #: guix-git/doc/guix.texi:3913
  8381. #, fuzzy, no-wrap
  8382. msgid "guix archive --authorize < key.pub\n"
  8383. msgstr "# guix archive --authorize < master-public-key.txt\n"
  8384. #. type: enumerate
  8385. #: guix-git/doc/guix.texi:3917
  8386. msgid "Again this assumes @file{key.pub} contains the public key that @code{guix.example.org} uses to sign substitutes."
  8387. msgstr ""
  8388. #. type: Plain text
  8389. #: guix-git/doc/guix.texi:3926
  8390. 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."
  8391. msgstr ""
  8392. #. type: Plain text
  8393. #: guix-git/doc/guix.texi:3930
  8394. 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."
  8395. msgstr ""
  8396. #. type: cindex
  8397. #: guix-git/doc/guix.texi:3934
  8398. #, no-wrap
  8399. msgid "digital signatures"
  8400. msgstr ""
  8401. #. type: Plain text
  8402. #: guix-git/doc/guix.texi:3938
  8403. 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."
  8404. msgstr ""
  8405. #. type: Plain text
  8406. #: guix-git/doc/guix.texi:3944
  8407. 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:"
  8408. msgstr ""
  8409. #. type: example
  8410. #: guix-git/doc/guix.texi:3947
  8411. #, no-wrap
  8412. msgid "--substitute-urls=\"https://a.example.org https://b.example.org\"\n"
  8413. msgstr ""
  8414. #. type: Plain text
  8415. #: guix-git/doc/guix.texi:3958
  8416. 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)."
  8417. msgstr ""
  8418. #. type: Plain text
  8419. #: guix-git/doc/guix.texi:3965
  8420. 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)."
  8421. msgstr ""
  8422. #. type: Plain text
  8423. #: guix-git/doc/guix.texi:3977
  8424. 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}."
  8425. msgstr ""
  8426. #. type: Plain text
  8427. #: guix-git/doc/guix.texi:3986
  8428. 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."
  8429. msgstr ""
  8430. #. type: Plain text
  8431. #: guix-git/doc/guix.texi:4000
  8432. 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."
  8433. msgstr ""
  8434. #. type: Plain text
  8435. #: guix-git/doc/guix.texi:4005
  8436. 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."
  8437. msgstr ""
  8438. #. type: cindex
  8439. #: guix-git/doc/guix.texi:4009
  8440. #, no-wrap
  8441. msgid "trust, of pre-built binaries"
  8442. msgstr ""
  8443. #. type: Plain text
  8444. #: guix-git/doc/guix.texi:4019
  8445. 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})."
  8446. msgstr ""
  8447. #. type: Plain text
  8448. #: guix-git/doc/guix.texi:4031
  8449. 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}})."
  8450. msgstr ""
  8451. #. type: Plain text
  8452. #: guix-git/doc/guix.texi:4035
  8453. 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}."
  8454. msgstr ""
  8455. #. type: cindex
  8456. #: guix-git/doc/guix.texi:4039
  8457. #, no-wrap
  8458. msgid "multiple-output packages"
  8459. msgstr ""
  8460. #. type: cindex
  8461. #: guix-git/doc/guix.texi:4040
  8462. #, no-wrap
  8463. msgid "package outputs"
  8464. msgstr ""
  8465. #. type: cindex
  8466. #: guix-git/doc/guix.texi:4041
  8467. #, no-wrap
  8468. msgid "outputs"
  8469. msgstr ""
  8470. #. type: Plain text
  8471. #: guix-git/doc/guix.texi:4051
  8472. 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."
  8473. msgstr ""
  8474. #. type: Plain text
  8475. #: guix-git/doc/guix.texi:4059
  8476. 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:"
  8477. msgstr ""
  8478. #. type: example
  8479. #: guix-git/doc/guix.texi:4062
  8480. #, no-wrap
  8481. msgid "guix install glib\n"
  8482. msgstr "guix install glib\n"
  8483. #. type: item
  8484. #: guix-git/doc/guix.texi:4064 guix-git/doc/guix.texi:35224
  8485. #: guix-git/doc/guix.texi:35281
  8486. #, no-wrap
  8487. msgid "documentation"
  8488. msgstr ""
  8489. #. type: Plain text
  8490. #: guix-git/doc/guix.texi:4066
  8491. msgid "The command to install its documentation is:"
  8492. msgstr ""
  8493. #. type: example
  8494. #: guix-git/doc/guix.texi:4069
  8495. #, no-wrap
  8496. msgid "guix install glib:doc\n"
  8497. msgstr ""
  8498. #. type: Plain text
  8499. #: guix-git/doc/guix.texi:4080
  8500. 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})."
  8501. msgstr ""
  8502. #. type: Plain text
  8503. #: guix-git/doc/guix.texi:4088
  8504. 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})."
  8505. msgstr ""
  8506. #. type: section
  8507. #: guix-git/doc/guix.texi:4091
  8508. #, no-wrap
  8509. msgid "Invoking @command{guix gc}"
  8510. msgstr ""
  8511. #. type: cindex
  8512. #: guix-git/doc/guix.texi:4093
  8513. #, no-wrap
  8514. msgid "garbage collector"
  8515. msgstr ""
  8516. #. type: cindex
  8517. #: guix-git/doc/guix.texi:4094
  8518. #, no-wrap
  8519. msgid "disk space"
  8520. msgstr ""
  8521. #. type: Plain text
  8522. #: guix-git/doc/guix.texi:4100
  8523. 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!"
  8524. msgstr ""
  8525. #. type: Plain text
  8526. #: guix-git/doc/guix.texi:4111
  8527. 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."
  8528. msgstr ""
  8529. #. type: Plain text
  8530. #: guix-git/doc/guix.texi:4117
  8531. 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})."
  8532. msgstr ""
  8533. #. type: Plain text
  8534. #: guix-git/doc/guix.texi:4121
  8535. 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:"
  8536. msgstr ""
  8537. #. type: example
  8538. #: guix-git/doc/guix.texi:4124
  8539. #, no-wrap
  8540. msgid "guix gc -F 5G\n"
  8541. msgstr ""
  8542. #. type: Plain text
  8543. #: guix-git/doc/guix.texi:4133
  8544. 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."
  8545. msgstr ""
  8546. #. type: Plain text
  8547. #: guix-git/doc/guix.texi:4139
  8548. 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:"
  8549. msgstr ""
  8550. #. type: item
  8551. #: guix-git/doc/guix.texi:4141
  8552. #, no-wrap
  8553. msgid "--collect-garbage[=@var{min}]"
  8554. msgstr ""
  8555. #. type: itemx
  8556. #: guix-git/doc/guix.texi:4142
  8557. #, no-wrap
  8558. msgid "-C [@var{min}]"
  8559. msgstr ""
  8560. #. type: table
  8561. #: guix-git/doc/guix.texi:4146
  8562. msgid "Collect garbage---i.e., unreachable @file{/gnu/store} files and sub-directories. This is the default operation when no option is specified."
  8563. msgstr ""
  8564. #. type: table
  8565. #: guix-git/doc/guix.texi:4151
  8566. 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})."
  8567. msgstr ""
  8568. #. type: table
  8569. #: guix-git/doc/guix.texi:4153
  8570. msgid "When @var{min} is omitted, collect all the garbage."
  8571. msgstr ""
  8572. #. type: item
  8573. #: guix-git/doc/guix.texi:4154
  8574. #, no-wrap
  8575. msgid "--free-space=@var{free}"
  8576. msgstr ""
  8577. #. type: itemx
  8578. #: guix-git/doc/guix.texi:4155
  8579. #, no-wrap
  8580. msgid "-F @var{free}"
  8581. msgstr ""
  8582. #. type: table
  8583. #: guix-git/doc/guix.texi:4159
  8584. 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."
  8585. msgstr ""
  8586. #. type: table
  8587. #: guix-git/doc/guix.texi:4162
  8588. msgid "When @var{free} or more is already available in @file{/gnu/store}, do nothing and exit immediately."
  8589. msgstr ""
  8590. #. type: item
  8591. #: guix-git/doc/guix.texi:4163
  8592. #, no-wrap
  8593. msgid "--delete-generations[=@var{duration}]"
  8594. msgstr ""
  8595. #. type: itemx
  8596. #: guix-git/doc/guix.texi:4164
  8597. #, no-wrap
  8598. msgid "-d [@var{duration}]"
  8599. msgstr ""
  8600. #. type: table
  8601. #: guix-git/doc/guix.texi:4168
  8602. 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}."
  8603. msgstr ""
  8604. #. type: table
  8605. #: guix-git/doc/guix.texi:4172
  8606. 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:"
  8607. msgstr ""
  8608. #. type: example
  8609. #: guix-git/doc/guix.texi:4175
  8610. #, no-wrap
  8611. msgid "guix gc -d 2m -F 10G\n"
  8612. msgstr ""
  8613. #. type: item
  8614. #: guix-git/doc/guix.texi:4177
  8615. #, no-wrap
  8616. msgid "--delete"
  8617. msgstr ""
  8618. #. type: itemx
  8619. #: guix-git/doc/guix.texi:4178
  8620. #, no-wrap
  8621. msgid "-D"
  8622. msgstr ""
  8623. #. type: table
  8624. #: guix-git/doc/guix.texi:4182
  8625. 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."
  8626. msgstr ""
  8627. #. type: item
  8628. #: guix-git/doc/guix.texi:4183
  8629. #, no-wrap
  8630. msgid "--list-failures"
  8631. msgstr ""
  8632. #. type: table
  8633. #: guix-git/doc/guix.texi:4185
  8634. msgid "List store items corresponding to cached build failures."
  8635. msgstr ""
  8636. #. type: table
  8637. #: guix-git/doc/guix.texi:4189
  8638. msgid "This prints nothing unless the daemon was started with @option{--cache-failures} (@pxref{Invoking guix-daemon, @option{--cache-failures}})."
  8639. msgstr ""
  8640. #. type: item
  8641. #: guix-git/doc/guix.texi:4190
  8642. #, no-wrap
  8643. msgid "--list-roots"
  8644. msgstr ""
  8645. #. type: table
  8646. #: guix-git/doc/guix.texi:4193
  8647. msgid "List the GC roots owned by the user; when run as root, list @emph{all} the GC roots."
  8648. msgstr ""
  8649. #. type: item
  8650. #: guix-git/doc/guix.texi:4194
  8651. #, no-wrap
  8652. msgid "--list-busy"
  8653. msgstr ""
  8654. #. type: table
  8655. #: guix-git/doc/guix.texi:4197
  8656. msgid "List store items in use by currently running processes. These store items are effectively considered GC roots: they cannot be deleted."
  8657. msgstr ""
  8658. #. type: item
  8659. #: guix-git/doc/guix.texi:4198
  8660. #, no-wrap
  8661. msgid "--clear-failures"
  8662. msgstr ""
  8663. #. type: table
  8664. #: guix-git/doc/guix.texi:4200
  8665. msgid "Remove the specified store items from the failed-build cache."
  8666. msgstr ""
  8667. #. type: table
  8668. #: guix-git/doc/guix.texi:4203
  8669. msgid "Again, this option only makes sense when the daemon is started with @option{--cache-failures}. Otherwise, it does nothing."
  8670. msgstr ""
  8671. #. type: item
  8672. #: guix-git/doc/guix.texi:4204
  8673. #, no-wrap
  8674. msgid "--list-dead"
  8675. msgstr ""
  8676. #. type: table
  8677. #: guix-git/doc/guix.texi:4207
  8678. 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."
  8679. msgstr ""
  8680. #. type: item
  8681. #: guix-git/doc/guix.texi:4208
  8682. #, no-wrap
  8683. msgid "--list-live"
  8684. msgstr ""
  8685. #. type: table
  8686. #: guix-git/doc/guix.texi:4210
  8687. msgid "Show the list of live store files and directories."
  8688. msgstr ""
  8689. #. type: Plain text
  8690. #: guix-git/doc/guix.texi:4214
  8691. msgid "In addition, the references among existing store files can be queried:"
  8692. msgstr ""
  8693. #. type: item
  8694. #: guix-git/doc/guix.texi:4217
  8695. #, no-wrap
  8696. msgid "--references"
  8697. msgstr ""
  8698. #. type: itemx
  8699. #: guix-git/doc/guix.texi:4218
  8700. #, no-wrap
  8701. msgid "--referrers"
  8702. msgstr ""
  8703. #. type: cindex
  8704. #: guix-git/doc/guix.texi:4219 guix-git/doc/guix.texi:12465
  8705. #, no-wrap
  8706. msgid "package dependencies"
  8707. msgstr ""
  8708. #. type: table
  8709. #: guix-git/doc/guix.texi:4222
  8710. msgid "List the references (respectively, the referrers) of store files given as arguments."
  8711. msgstr ""
  8712. #. type: item
  8713. #: guix-git/doc/guix.texi:4223
  8714. #, no-wrap
  8715. msgid "--requisites"
  8716. msgstr ""
  8717. #. type: itemx
  8718. #: guix-git/doc/guix.texi:4224 guix-git/doc/guix.texi:6100
  8719. #, no-wrap
  8720. msgid "-R"
  8721. msgstr ""
  8722. #. type: item
  8723. #: guix-git/doc/guix.texi:4225 guix-git/doc/guix.texi:12321
  8724. #: guix-git/doc/guix.texi:12349 guix-git/doc/guix.texi:12430
  8725. #, no-wrap
  8726. msgid "closure"
  8727. msgstr ""
  8728. #. type: table
  8729. #: guix-git/doc/guix.texi:4230
  8730. 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."
  8731. msgstr ""
  8732. #. type: table
  8733. #: guix-git/doc/guix.texi:4234
  8734. 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."
  8735. msgstr ""
  8736. #. type: item
  8737. #: guix-git/doc/guix.texi:4235
  8738. #, no-wrap
  8739. msgid "--derivers"
  8740. msgstr ""
  8741. #. type: item
  8742. #: guix-git/doc/guix.texi:4236 guix-git/doc/guix.texi:6414
  8743. #: guix-git/doc/guix.texi:12184 guix-git/doc/guix.texi:12574
  8744. #, no-wrap
  8745. msgid "derivation"
  8746. msgstr ""
  8747. #. type: table
  8748. #: guix-git/doc/guix.texi:4239
  8749. msgid "Return the derivation(s) leading to the given store items (@pxref{Derivations})."
  8750. msgstr ""
  8751. #. type: table
  8752. #: guix-git/doc/guix.texi:4241
  8753. msgid "For example, this command:"
  8754. msgstr ""
  8755. #. type: example
  8756. #: guix-git/doc/guix.texi:4244
  8757. #, no-wrap
  8758. msgid "guix gc --derivers $(guix package -I ^emacs$ | cut -f4)\n"
  8759. msgstr ""
  8760. #. type: table
  8761. #: guix-git/doc/guix.texi:4249
  8762. msgid "returns the @file{.drv} file(s) leading to the @code{emacs} package installed in your profile."
  8763. msgstr ""
  8764. #. type: table
  8765. #: guix-git/doc/guix.texi:4253
  8766. 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."
  8767. msgstr ""
  8768. #. type: Plain text
  8769. #: guix-git/doc/guix.texi:4257
  8770. msgid "Lastly, the following options allow you to check the integrity of the store and to control disk usage."
  8771. msgstr ""
  8772. #. type: item
  8773. #: guix-git/doc/guix.texi:4260
  8774. #, no-wrap
  8775. msgid "--verify[=@var{options}]"
  8776. msgstr ""
  8777. #. type: cindex
  8778. #: guix-git/doc/guix.texi:4261
  8779. #, no-wrap
  8780. msgid "integrity, of the store"
  8781. msgstr ""
  8782. #. type: cindex
  8783. #: guix-git/doc/guix.texi:4262
  8784. #, no-wrap
  8785. msgid "integrity checking"
  8786. msgstr ""
  8787. #. type: table
  8788. #: guix-git/doc/guix.texi:4264
  8789. msgid "Verify the integrity of the store."
  8790. msgstr ""
  8791. #. type: table
  8792. #: guix-git/doc/guix.texi:4267
  8793. 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}."
  8794. msgstr ""
  8795. #. type: table
  8796. #: guix-git/doc/guix.texi:4270
  8797. msgid "When provided, @var{options} must be a comma-separated list containing one or more of @code{contents} and @code{repair}."
  8798. msgstr ""
  8799. #. type: table
  8800. #: guix-git/doc/guix.texi:4276
  8801. 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."
  8802. msgstr ""
  8803. #. type: cindex
  8804. #: guix-git/doc/guix.texi:4277
  8805. #, no-wrap
  8806. msgid "repairing the store"
  8807. msgstr ""
  8808. #. type: cindex
  8809. #: guix-git/doc/guix.texi:4278 guix-git/doc/guix.texi:10950
  8810. #, no-wrap
  8811. msgid "corruption, recovering from"
  8812. msgstr ""
  8813. #. type: table
  8814. #: guix-git/doc/guix.texi:4286
  8815. 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})."
  8816. msgstr ""
  8817. #. type: item
  8818. #: guix-git/doc/guix.texi:4287
  8819. #, no-wrap
  8820. msgid "--optimize"
  8821. msgstr ""
  8822. #. type: table
  8823. #: guix-git/doc/guix.texi:4291
  8824. msgid "Optimize the store by hard-linking identical files---this is @dfn{deduplication}."
  8825. msgstr ""
  8826. #. type: table
  8827. #: guix-git/doc/guix.texi:4297
  8828. 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}."
  8829. msgstr ""
  8830. #. type: section
  8831. #: guix-git/doc/guix.texi:4301
  8832. #, no-wrap
  8833. msgid "Invoking @command{guix pull}"
  8834. msgstr ""
  8835. #. type: cindex
  8836. #: guix-git/doc/guix.texi:4303
  8837. #, no-wrap
  8838. msgid "upgrading Guix"
  8839. msgstr ""
  8840. #. type: cindex
  8841. #: guix-git/doc/guix.texi:4304
  8842. #, no-wrap
  8843. msgid "updating Guix"
  8844. msgstr ""
  8845. #. type: command{#1}
  8846. #: guix-git/doc/guix.texi:4305
  8847. #, no-wrap
  8848. msgid "guix pull"
  8849. msgstr ""
  8850. #. type: cindex
  8851. #: guix-git/doc/guix.texi:4306
  8852. #, no-wrap
  8853. msgid "pull"
  8854. msgstr ""
  8855. #. type: cindex
  8856. #: guix-git/doc/guix.texi:4307
  8857. #, fuzzy, no-wrap
  8858. msgid "security, @command{guix pull}"
  8859. msgstr "调用@command{guix build}"
  8860. #. type: cindex
  8861. #: guix-git/doc/guix.texi:4308
  8862. #, no-wrap
  8863. msgid "authenticity, of code obtained with @command{guix pull}"
  8864. msgstr ""
  8865. #. type: Plain text
  8866. #: guix-git/doc/guix.texi:4318
  8867. 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."
  8868. msgstr ""
  8869. #. type: Plain text
  8870. #: guix-git/doc/guix.texi:4321
  8871. msgid "Specifically, @command{guix pull} downloads code from the @dfn{channels} (@pxref{Channels}) specified by one of the followings, in this order:"
  8872. msgstr ""
  8873. #. type: enumerate
  8874. #: guix-git/doc/guix.texi:4325
  8875. msgid "the @option{--channels} option;"
  8876. msgstr ""
  8877. #. type: enumerate
  8878. #: guix-git/doc/guix.texi:4327
  8879. msgid "the user's @file{~/.config/guix/channels.scm} file;"
  8880. msgstr ""
  8881. #. type: enumerate
  8882. #: guix-git/doc/guix.texi:4329
  8883. msgid "the system-wide @file{/etc/guix/channels.scm} file;"
  8884. msgstr ""
  8885. #. type: enumerate
  8886. #: guix-git/doc/guix.texi:4332
  8887. msgid "the built-in default channels specified in the @code{%default-channels} variable."
  8888. msgstr ""
  8889. #. type: Plain text
  8890. #: guix-git/doc/guix.texi:4339
  8891. 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."
  8892. msgstr ""
  8893. #. type: Plain text
  8894. #: guix-git/doc/guix.texi:4345
  8895. 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."
  8896. msgstr ""
  8897. #. type: Plain text
  8898. #: guix-git/doc/guix.texi:4351
  8899. 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}):"
  8900. msgstr ""
  8901. #. type: example
  8902. #: guix-git/doc/guix.texi:4355
  8903. #, no-wrap
  8904. msgid ""
  8905. "export PATH=\"$HOME/.config/guix/current/bin:$PATH\"\n"
  8906. "export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"\n"
  8907. msgstr ""
  8908. #. type: Plain text
  8909. #: guix-git/doc/guix.texi:4359
  8910. msgid "The @option{--list-generations} or @option{-l} option lists past generations produced by @command{guix pull}, along with details about their provenance:"
  8911. msgstr ""
  8912. #. type: example
  8913. #: guix-git/doc/guix.texi:4367
  8914. #, no-wrap
  8915. msgid ""
  8916. "$ guix pull -l\n"
  8917. "Generation 1\tJun 10 2018 00:18:18\n"
  8918. " guix 65956ad\n"
  8919. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8920. " branch: origin/master\n"
  8921. " commit: 65956ad3526ba09e1f7a40722c96c6ef7c0936fe\n"
  8922. "\n"
  8923. msgstr ""
  8924. #. type: example
  8925. #: guix-git/doc/guix.texi:4377
  8926. #, no-wrap
  8927. msgid ""
  8928. "Generation 2\tJun 11 2018 11:02:49\n"
  8929. " guix e0cc7f6\n"
  8930. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8931. " branch: origin/master\n"
  8932. " commit: e0cc7f669bec22c37481dd03a7941c7d11a64f1d\n"
  8933. " 2 new packages: keepalived, libnfnetlink\n"
  8934. " 6 packages upgraded: emacs-nix-mode@@2.0.4,\n"
  8935. " guile2.0-guix@@0.14.0-12.77a1aac, guix@@0.14.0-12.77a1aac,\n"
  8936. " heimdal@@7.5.0, milkytracker@@1.02.00, nix@@2.0.4\n"
  8937. "\n"
  8938. msgstr ""
  8939. #. type: example
  8940. #: guix-git/doc/guix.texi:4385
  8941. #, no-wrap
  8942. msgid ""
  8943. "Generation 3\tJun 13 2018 23:31:07\t(current)\n"
  8944. " guix 844cc1c\n"
  8945. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8946. " branch: origin/master\n"
  8947. " commit: 844cc1c8f394f03b404c5bb3aee086922373490c\n"
  8948. " 28 new packages: emacs-helm-ls-git, emacs-helm-mu, @dots{}\n"
  8949. " 69 packages upgraded: borg@@1.1.6, cheese@@3.28.0, @dots{}\n"
  8950. msgstr ""
  8951. #. type: Plain text
  8952. #: guix-git/doc/guix.texi:4389
  8953. msgid "@xref{Invoking guix describe, @command{guix describe}}, for other ways to describe the current status of Guix."
  8954. msgstr ""
  8955. #. type: Plain text
  8956. #: guix-git/doc/guix.texi:4394
  8957. 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:"
  8958. msgstr ""
  8959. #. type: example
  8960. #: guix-git/doc/guix.texi:4400
  8961. #, no-wrap
  8962. msgid ""
  8963. "$ guix pull --roll-back\n"
  8964. "switched from generation 3 to 2\n"
  8965. "$ guix pull --delete-generations=1\n"
  8966. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  8967. msgstr ""
  8968. #. type: Plain text
  8969. #: guix-git/doc/guix.texi:4404
  8970. msgid "You can also use @command{guix package} (@pxref{Invoking guix package}) to manage the profile by naming it explicitly:"
  8971. msgstr ""
  8972. #. type: example
  8973. #: guix-git/doc/guix.texi:4409
  8974. #, no-wrap
  8975. msgid ""
  8976. "$ guix package -p ~/.config/guix/current --roll-back\n"
  8977. "switched from generation 3 to 2\n"
  8978. "$ guix package -p ~/.config/guix/current --delete-generations=1\n"
  8979. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  8980. msgstr ""
  8981. #. type: Plain text
  8982. #: guix-git/doc/guix.texi:4413
  8983. msgid "The @command{guix pull} command is usually invoked with no arguments, but it supports the following options:"
  8984. msgstr ""
  8985. #. type: item
  8986. #: guix-git/doc/guix.texi:4415 guix-git/doc/guix.texi:4573
  8987. #, no-wrap
  8988. msgid "--url=@var{url}"
  8989. msgstr ""
  8990. #. type: itemx
  8991. #: guix-git/doc/guix.texi:4416 guix-git/doc/guix.texi:4574
  8992. #, no-wrap
  8993. msgid "--commit=@var{commit}"
  8994. msgstr ""
  8995. #. type: itemx
  8996. #: guix-git/doc/guix.texi:4417 guix-git/doc/guix.texi:4575
  8997. #, no-wrap
  8998. msgid "--branch=@var{branch}"
  8999. msgstr ""
  9000. #. type: table
  9001. #: guix-git/doc/guix.texi:4421
  9002. 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}."
  9003. msgstr ""
  9004. #. type: cindex
  9005. #: guix-git/doc/guix.texi:4422 guix-git/doc/guix.texi:5019
  9006. #, no-wrap
  9007. msgid "@file{channels.scm}, configuration file"
  9008. msgstr ""
  9009. #. type: cindex
  9010. #: guix-git/doc/guix.texi:4423 guix-git/doc/guix.texi:5020
  9011. #, no-wrap
  9012. msgid "configuration file for channels"
  9013. msgstr ""
  9014. #. type: table
  9015. #: guix-git/doc/guix.texi:4427
  9016. 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)."
  9017. msgstr ""
  9018. #. type: item
  9019. #: guix-git/doc/guix.texi:4428 guix-git/doc/guix.texi:4580
  9020. #, no-wrap
  9021. msgid "--channels=@var{file}"
  9022. msgstr ""
  9023. #. type: itemx
  9024. #: guix-git/doc/guix.texi:4429 guix-git/doc/guix.texi:4581
  9025. #, no-wrap
  9026. msgid "-C @var{file}"
  9027. msgstr ""
  9028. #. type: table
  9029. #: guix-git/doc/guix.texi:4435
  9030. 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."
  9031. msgstr ""
  9032. #. type: cindex
  9033. #: guix-git/doc/guix.texi:4436
  9034. #, fuzzy, no-wrap
  9035. msgid "channel news"
  9036. msgstr "通道"
  9037. #. type: item
  9038. #: guix-git/doc/guix.texi:4437
  9039. #, no-wrap
  9040. msgid "--news"
  9041. msgstr ""
  9042. #. type: itemx
  9043. #: guix-git/doc/guix.texi:4438 guix-git/doc/guix.texi:5846
  9044. #: guix-git/doc/guix.texi:34170
  9045. #, no-wrap
  9046. msgid "-N"
  9047. msgstr ""
  9048. #. type: table
  9049. #: guix-git/doc/guix.texi:4442
  9050. msgid "Display the list of packages added or upgraded since the previous generation, as well as, occasionally, news written by channel authors for their users (@pxref{Channels, Writing Channel News})."
  9051. msgstr ""
  9052. #. type: table
  9053. #: guix-git/doc/guix.texi:4446
  9054. msgid "The package information is the same as displayed upon @command{guix pull} completion, but without ellipses; it is also similar to the output of @command{guix pull -l} for the last generation (see below)."
  9055. msgstr ""
  9056. #. type: table
  9057. #: guix-git/doc/guix.texi:4453
  9058. 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})."
  9059. msgstr ""
  9060. #. type: table
  9061. #: guix-git/doc/guix.texi:4460
  9062. msgid "Roll back to the previous @dfn{generation} of @file{~/.config/guix/current}---i.e., undo the last transaction."
  9063. msgstr ""
  9064. #. type: table
  9065. #: guix-git/doc/guix.texi:4484
  9066. msgid "If the current generation matches, it is @emph{not} deleted."
  9067. msgstr ""
  9068. #. type: table
  9069. #: guix-git/doc/guix.texi:4490
  9070. msgid "@xref{Invoking guix describe}, for a way to display information about the current generation only."
  9071. msgstr ""
  9072. #. type: table
  9073. #: guix-git/doc/guix.texi:4494
  9074. msgid "Use @var{profile} instead of @file{~/.config/guix/current}."
  9075. msgstr ""
  9076. #. type: item
  9077. #: guix-git/doc/guix.texi:4495 guix-git/doc/guix.texi:10340
  9078. #, no-wrap
  9079. msgid "--dry-run"
  9080. msgstr ""
  9081. #. type: itemx
  9082. #: guix-git/doc/guix.texi:4496 guix-git/doc/guix.texi:10341
  9083. #: guix-git/doc/guix.texi:12303
  9084. #, no-wrap
  9085. msgid "-n"
  9086. msgstr ""
  9087. #. type: table
  9088. #: guix-git/doc/guix.texi:4499
  9089. msgid "Show which channel commit(s) would be used and what would be built or substituted but do not actually do it."
  9090. msgstr ""
  9091. #. type: item
  9092. #: guix-git/doc/guix.texi:4500 guix-git/doc/guix.texi:34189
  9093. #, no-wrap
  9094. msgid "--allow-downgrades"
  9095. msgstr ""
  9096. #. type: table
  9097. #: guix-git/doc/guix.texi:4503
  9098. msgid "Allow pulling older or unrelated revisions of channels than those currently in use."
  9099. msgstr ""
  9100. #. type: cindex
  9101. #: guix-git/doc/guix.texi:4504
  9102. #, no-wrap
  9103. msgid "downgrade attacks, protection against"
  9104. msgstr ""
  9105. #. type: table
  9106. #: guix-git/doc/guix.texi:4509
  9107. 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."
  9108. msgstr ""
  9109. #. type: quotation
  9110. #: guix-git/doc/guix.texi:4513 guix-git/doc/guix.texi:34203
  9111. msgid "Make sure you understand its security implications before using @option{--allow-downgrades}."
  9112. msgstr ""
  9113. #. type: item
  9114. #: guix-git/doc/guix.texi:4515
  9115. #, fuzzy, no-wrap
  9116. msgid "--disable-authentication"
  9117. msgstr "--disable-deduplication"
  9118. #. type: table
  9119. #: guix-git/doc/guix.texi:4517
  9120. msgid "Allow pulling channel code without authenticating it."
  9121. msgstr ""
  9122. #. type: cindex
  9123. #: guix-git/doc/guix.texi:4518 guix-git/doc/guix.texi:5165
  9124. #, fuzzy, no-wrap
  9125. msgid "authentication, of channel code"
  9126. msgstr "代码缩进"
  9127. #. type: table
  9128. #: guix-git/doc/guix.texi:4523
  9129. 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."
  9130. msgstr ""
  9131. #. type: quotation
  9132. #: guix-git/doc/guix.texi:4527
  9133. msgid "Make sure you understand its security implications before using @option{--disable-authentication}."
  9134. msgstr ""
  9135. #. type: itemx
  9136. #: guix-git/doc/guix.texi:4530 guix-git/doc/guix.texi:5829
  9137. #: guix-git/doc/guix.texi:6229 guix-git/doc/guix.texi:10892
  9138. #: guix-git/doc/guix.texi:12448 guix-git/doc/guix.texi:12713
  9139. #: guix-git/doc/guix.texi:13390 guix-git/doc/guix.texi:34118
  9140. #, no-wrap
  9141. msgid "-s @var{system}"
  9142. msgstr ""
  9143. #. type: table
  9144. #: guix-git/doc/guix.texi:4533 guix-git/doc/guix.texi:6232
  9145. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of the system type of the build host."
  9146. msgstr ""
  9147. #. type: table
  9148. #: guix-git/doc/guix.texi:4537
  9149. msgid "Use the bootstrap Guile to build the latest Guix. This option is only useful to Guix developers."
  9150. msgstr ""
  9151. #. type: Plain text
  9152. #: guix-git/doc/guix.texi:4543
  9153. 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."
  9154. msgstr ""
  9155. #. type: Plain text
  9156. #: guix-git/doc/guix.texi:4546
  9157. msgid "In addition, @command{guix pull} supports all the common build options (@pxref{Common Build Options})."
  9158. msgstr ""
  9159. #. type: section
  9160. #: guix-git/doc/guix.texi:4548
  9161. #, fuzzy, no-wrap
  9162. msgid "Invoking @command{guix time-machine}"
  9163. msgstr "调用@command{guix-daemon}"
  9164. #. type: command{#1}
  9165. #: guix-git/doc/guix.texi:4550
  9166. #, no-wrap
  9167. msgid "guix time-machine"
  9168. msgstr ""
  9169. #. type: cindex
  9170. #: guix-git/doc/guix.texi:4551 guix-git/doc/guix.texi:5123
  9171. #, no-wrap
  9172. msgid "pinning, channels"
  9173. msgstr ""
  9174. #. type: cindex
  9175. #: guix-git/doc/guix.texi:4552 guix-git/doc/guix.texi:4734
  9176. #: guix-git/doc/guix.texi:5124
  9177. #, no-wrap
  9178. msgid "replicating Guix"
  9179. msgstr ""
  9180. #. type: cindex
  9181. #: guix-git/doc/guix.texi:4553 guix-git/doc/guix.texi:5125
  9182. #, no-wrap
  9183. msgid "reproducibility, of Guix"
  9184. msgstr ""
  9185. #. type: Plain text
  9186. #: guix-git/doc/guix.texi:4561
  9187. 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})."
  9188. msgstr ""
  9189. #. type: Plain text
  9190. #: guix-git/doc/guix.texi:4563 guix-git/doc/guix.texi:5578
  9191. #: guix-git/doc/guix.texi:6352 guix-git/doc/guix.texi:10137
  9192. #: guix-git/doc/guix.texi:10260 guix-git/doc/guix.texi:11183
  9193. #: guix-git/doc/guix.texi:11260 guix-git/doc/guix.texi:12278
  9194. #: guix-git/doc/guix.texi:12771 guix-git/doc/guix.texi:13144
  9195. #: guix-git/doc/guix.texi:13233 guix-git/doc/guix.texi:13272
  9196. #: guix-git/doc/guix.texi:13369
  9197. msgid "The general syntax is:"
  9198. msgstr ""
  9199. #. type: example
  9200. #: guix-git/doc/guix.texi:4566
  9201. #, no-wrap
  9202. msgid "guix time-machine @var{options}@dots{} -- @var{command} @var {arg}@dots{}\n"
  9203. msgstr ""
  9204. #. type: Plain text
  9205. #: guix-git/doc/guix.texi:4571
  9206. 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}):"
  9207. msgstr ""
  9208. #. type: table
  9209. #: guix-git/doc/guix.texi:4579
  9210. 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}."
  9211. msgstr ""
  9212. #. type: table
  9213. #: guix-git/doc/guix.texi:4585
  9214. 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."
  9215. msgstr ""
  9216. #. type: Plain text
  9217. #: guix-git/doc/guix.texi:4589
  9218. 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"
  9219. msgstr ""
  9220. #. type: example
  9221. #: guix-git/doc/guix.texi:4592
  9222. #, no-wrap
  9223. msgid "guix time-machine -- build hello\n"
  9224. msgstr ""
  9225. #. type: Plain text
  9226. #: guix-git/doc/guix.texi:4597
  9227. 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!"
  9228. msgstr ""
  9229. #. type: Plain text
  9230. #: guix-git/doc/guix.texi:4601
  9231. 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})."
  9232. msgstr ""
  9233. #. type: quotation
  9234. #: guix-git/doc/guix.texi:4609
  9235. msgid "The functionality described here is a ``technology preview'' as of version @value{VERSION}. As such, the interface is subject to change."
  9236. msgstr ""
  9237. #. type: cindex
  9238. #: guix-git/doc/guix.texi:4611 guix-git/doc/guix.texi:10174
  9239. #, no-wrap
  9240. msgid "inferiors"
  9241. msgstr ""
  9242. #. type: cindex
  9243. #: guix-git/doc/guix.texi:4612
  9244. #, no-wrap
  9245. msgid "composition of Guix revisions"
  9246. msgstr ""
  9247. #. type: Plain text
  9248. #: guix-git/doc/guix.texi:4617
  9249. 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."
  9250. msgstr ""
  9251. #. type: cindex
  9252. #: guix-git/doc/guix.texi:4618 guix-git/doc/guix.texi:4683
  9253. #, no-wrap
  9254. msgid "inferior packages"
  9255. msgstr ""
  9256. #. type: Plain text
  9257. #: guix-git/doc/guix.texi:4624
  9258. 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}."
  9259. msgstr ""
  9260. #. type: Plain text
  9261. #: guix-git/doc/guix.texi:4634
  9262. 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:"
  9263. msgstr ""
  9264. #. type: lisp
  9265. #: guix-git/doc/guix.texi:4638
  9266. #, no-wrap
  9267. msgid ""
  9268. "(use-modules (guix inferior) (guix channels)\n"
  9269. " (srfi srfi-1)) ;for 'first'\n"
  9270. "\n"
  9271. msgstr ""
  9272. #. type: lisp
  9273. #: guix-git/doc/guix.texi:4647
  9274. #, no-wrap
  9275. msgid ""
  9276. "(define channels\n"
  9277. " ;; This is the old revision from which we want to\n"
  9278. " ;; extract guile-json.\n"
  9279. " (list (channel\n"
  9280. " (name 'guix)\n"
  9281. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9282. " (commit\n"
  9283. " \"65956ad3526ba09e1f7a40722c96c6ef7c0936fe\"))))\n"
  9284. "\n"
  9285. msgstr ""
  9286. #. type: lisp
  9287. #: guix-git/doc/guix.texi:4651
  9288. #, no-wrap
  9289. msgid ""
  9290. "(define inferior\n"
  9291. " ;; An inferior representing the above revision.\n"
  9292. " (inferior-for-channels channels))\n"
  9293. "\n"
  9294. msgstr ""
  9295. #. type: lisp
  9296. #: guix-git/doc/guix.texi:4657
  9297. #, no-wrap
  9298. msgid ""
  9299. ";; Now create a manifest with the current \"guile\" package\n"
  9300. ";; and the old \"guile-json\" package.\n"
  9301. "(packages->manifest\n"
  9302. " (list (first (lookup-inferior-packages inferior \"guile-json\"))\n"
  9303. " (specification->package \"guile\")))\n"
  9304. msgstr ""
  9305. #. type: Plain text
  9306. #: guix-git/doc/guix.texi:4662
  9307. 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."
  9308. msgstr ""
  9309. #. type: Plain text
  9310. #: guix-git/doc/guix.texi:4665
  9311. msgid "The @code{(guix inferior)} module provides the following procedures to open an inferior:"
  9312. msgstr ""
  9313. #. type: deffn
  9314. #: guix-git/doc/guix.texi:4666
  9315. #, no-wrap
  9316. msgid "{Scheme Procedure} inferior-for-channels @var{channels} @"
  9317. msgstr ""
  9318. #. type: deffn
  9319. #: guix-git/doc/guix.texi:4671
  9320. 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."
  9321. msgstr ""
  9322. #. type: deffn
  9323. #: guix-git/doc/guix.texi:4674
  9324. msgid "As a side effect, this procedure may build or substitute binaries for @var{channels}, which can take time."
  9325. msgstr ""
  9326. #. type: deffn
  9327. #: guix-git/doc/guix.texi:4676
  9328. #, no-wrap
  9329. msgid "{Scheme Procedure} open-inferior @var{directory} @"
  9330. msgstr ""
  9331. #. type: deffn
  9332. #: guix-git/doc/guix.texi:4681
  9333. 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."
  9334. msgstr ""
  9335. #. type: Plain text
  9336. #: guix-git/doc/guix.texi:4686
  9337. msgid "The procedures listed below allow you to obtain and manipulate inferior packages."
  9338. msgstr ""
  9339. #. type: deffn
  9340. #: guix-git/doc/guix.texi:4687
  9341. #, no-wrap
  9342. msgid "{Scheme Procedure} inferior-packages @var{inferior}"
  9343. msgstr ""
  9344. #. type: deffn
  9345. #: guix-git/doc/guix.texi:4689
  9346. msgid "Return the list of packages known to @var{inferior}."
  9347. msgstr ""
  9348. #. type: deffn
  9349. #: guix-git/doc/guix.texi:4691
  9350. #, no-wrap
  9351. msgid "{Scheme Procedure} lookup-inferior-packages @var{inferior} @var{name} @"
  9352. msgstr ""
  9353. #. type: deffn
  9354. #: guix-git/doc/guix.texi:4696
  9355. 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}."
  9356. msgstr ""
  9357. #. type: deffn
  9358. #: guix-git/doc/guix.texi:4698
  9359. #, no-wrap
  9360. msgid "{Scheme Procedure} inferior-package? @var{obj}"
  9361. msgstr ""
  9362. #. type: deffn
  9363. #: guix-git/doc/guix.texi:4700
  9364. msgid "Return true if @var{obj} is an inferior package."
  9365. msgstr ""
  9366. #. type: deffn
  9367. #: guix-git/doc/guix.texi:4702
  9368. #, no-wrap
  9369. msgid "{Scheme Procedure} inferior-package-name @var{package}"
  9370. msgstr ""
  9371. #. type: deffnx
  9372. #: guix-git/doc/guix.texi:4703
  9373. #, no-wrap
  9374. msgid "{Scheme Procedure} inferior-package-version @var{package}"
  9375. msgstr ""
  9376. #. type: deffnx
  9377. #: guix-git/doc/guix.texi:4704
  9378. #, no-wrap
  9379. msgid "{Scheme Procedure} inferior-package-synopsis @var{package}"
  9380. msgstr ""
  9381. #. type: deffnx
  9382. #: guix-git/doc/guix.texi:4705
  9383. #, no-wrap
  9384. msgid "{Scheme Procedure} inferior-package-description @var{package}"
  9385. msgstr ""
  9386. #. type: deffnx
  9387. #: guix-git/doc/guix.texi:4706
  9388. #, no-wrap
  9389. msgid "{Scheme Procedure} inferior-package-home-page @var{package}"
  9390. msgstr ""
  9391. #. type: deffnx
  9392. #: guix-git/doc/guix.texi:4707
  9393. #, no-wrap
  9394. msgid "{Scheme Procedure} inferior-package-location @var{package}"
  9395. msgstr ""
  9396. #. type: deffnx
  9397. #: guix-git/doc/guix.texi:4708
  9398. #, no-wrap
  9399. msgid "{Scheme Procedure} inferior-package-inputs @var{package}"
  9400. msgstr ""
  9401. #. type: deffnx
  9402. #: guix-git/doc/guix.texi:4709
  9403. #, no-wrap
  9404. msgid "{Scheme Procedure} inferior-package-native-inputs @var{package}"
  9405. msgstr ""
  9406. #. type: deffnx
  9407. #: guix-git/doc/guix.texi:4710
  9408. #, no-wrap
  9409. msgid "{Scheme Procedure} inferior-package-propagated-inputs @var{package}"
  9410. msgstr ""
  9411. #. type: deffnx
  9412. #: guix-git/doc/guix.texi:4711
  9413. #, no-wrap
  9414. msgid "{Scheme Procedure} inferior-package-transitive-propagated-inputs @var{package}"
  9415. msgstr ""
  9416. #. type: deffnx
  9417. #: guix-git/doc/guix.texi:4712
  9418. #, no-wrap
  9419. msgid "{Scheme Procedure} inferior-package-native-search-paths @var{package}"
  9420. msgstr ""
  9421. #. type: deffnx
  9422. #: guix-git/doc/guix.texi:4713
  9423. #, no-wrap
  9424. msgid "{Scheme Procedure} inferior-package-transitive-native-search-paths @var{package}"
  9425. msgstr ""
  9426. #. type: deffnx
  9427. #: guix-git/doc/guix.texi:4714
  9428. #, no-wrap
  9429. msgid "{Scheme Procedure} inferior-package-search-paths @var{package}"
  9430. msgstr ""
  9431. #. type: deffn
  9432. #: guix-git/doc/guix.texi:4719
  9433. 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."
  9434. msgstr ""
  9435. #. type: Plain text
  9436. #: guix-git/doc/guix.texi:4729
  9437. 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."
  9438. msgstr ""
  9439. #. type: section
  9440. #: guix-git/doc/guix.texi:4731
  9441. #, no-wrap
  9442. msgid "Invoking @command{guix describe}"
  9443. msgstr ""
  9444. #. type: Plain text
  9445. #: guix-git/doc/guix.texi:4742
  9446. 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."
  9447. msgstr ""
  9448. #. type: Plain text
  9449. #: guix-git/doc/guix.texi:4746
  9450. 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}):"
  9451. msgstr ""
  9452. #. type: example
  9453. #: guix-git/doc/guix.texi:4754
  9454. #, no-wrap
  9455. msgid ""
  9456. "$ guix describe\n"
  9457. "Generation 10\tSep 03 2018 17:32:44\t(current)\n"
  9458. " guix e0fa68c\n"
  9459. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9460. " branch: master\n"
  9461. " commit: e0fa68c7718fffd33d81af415279d6ddb518f727\n"
  9462. msgstr ""
  9463. #. type: Plain text
  9464. #: guix-git/doc/guix.texi:4763
  9465. 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."
  9466. msgstr ""
  9467. #. type: Plain text
  9468. #: guix-git/doc/guix.texi:4766
  9469. 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:"
  9470. msgstr ""
  9471. #. type: example
  9472. #: guix-git/doc/guix.texi:4779
  9473. #, no-wrap
  9474. msgid ""
  9475. "$ guix describe -f channels\n"
  9476. "(list (channel\n"
  9477. " (name 'guix)\n"
  9478. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9479. " (commit\n"
  9480. " \"e0fa68c7718fffd33d81af415279d6ddb518f727\")\n"
  9481. " (introduction\n"
  9482. " (make-channel-introduction\n"
  9483. " \"9edb3f66fd807b096b48283debdcddccfea34bad\"\n"
  9484. " (openpgp-fingerprint\n"
  9485. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\")))))\n"
  9486. msgstr ""
  9487. #. type: Plain text
  9488. #: guix-git/doc/guix.texi:4788
  9489. 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!"
  9490. msgstr ""
  9491. #. type: Plain text
  9492. #: guix-git/doc/guix.texi:4791
  9493. msgid "The details of the options supported by @command{guix describe} are as follows:"
  9494. msgstr ""
  9495. #. type: item
  9496. #: guix-git/doc/guix.texi:4793 guix-git/doc/guix.texi:6030
  9497. #: guix-git/doc/guix.texi:13502
  9498. #, no-wrap
  9499. msgid "--format=@var{format}"
  9500. msgstr ""
  9501. #. type: itemx
  9502. #: guix-git/doc/guix.texi:4794 guix-git/doc/guix.texi:6031
  9503. #: guix-git/doc/guix.texi:13503
  9504. #, no-wrap
  9505. msgid "-f @var{format}"
  9506. msgstr ""
  9507. #. type: table
  9508. #: guix-git/doc/guix.texi:4796 guix-git/doc/guix.texi:13505
  9509. msgid "Produce output in the specified @var{format}, one of:"
  9510. msgstr ""
  9511. #. type: item
  9512. #: guix-git/doc/guix.texi:4798
  9513. #, no-wrap
  9514. msgid "human"
  9515. msgstr ""
  9516. #. type: table
  9517. #: guix-git/doc/guix.texi:4800
  9518. msgid "produce human-readable output;"
  9519. msgstr ""
  9520. #. type: cindex
  9521. #: guix-git/doc/guix.texi:4800 guix-git/doc/guix.texi:5018
  9522. #, no-wrap
  9523. msgid "channels"
  9524. msgstr ""
  9525. #. type: table
  9526. #: guix-git/doc/guix.texi:4804
  9527. 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});"
  9528. msgstr ""
  9529. #. type: item
  9530. #: guix-git/doc/guix.texi:4804
  9531. #, no-wrap
  9532. msgid "channels-sans-intro"
  9533. msgstr ""
  9534. #. type: table
  9535. #: guix-git/doc/guix.texi:4810
  9536. 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;"
  9537. msgstr ""
  9538. #. type: item
  9539. #: guix-git/doc/guix.texi:4810 guix-git/doc/guix.texi:11478
  9540. #, no-wrap
  9541. msgid "json"
  9542. msgstr ""
  9543. #. type: cindex
  9544. #: guix-git/doc/guix.texi:4811
  9545. #, no-wrap
  9546. msgid "JSON"
  9547. msgstr ""
  9548. #. type: table
  9549. #: guix-git/doc/guix.texi:4813
  9550. msgid "produce a list of channel specifications in JSON format;"
  9551. msgstr ""
  9552. #. type: item
  9553. #: guix-git/doc/guix.texi:4813 guix-git/doc/guix.texi:13507
  9554. #, no-wrap
  9555. msgid "recutils"
  9556. msgstr ""
  9557. #. type: table
  9558. #: guix-git/doc/guix.texi:4815
  9559. msgid "produce a list of channel specifications in Recutils format."
  9560. msgstr ""
  9561. #. type: item
  9562. #: guix-git/doc/guix.texi:4817
  9563. #, no-wrap
  9564. msgid "--list-formats"
  9565. msgstr ""
  9566. #. type: table
  9567. #: guix-git/doc/guix.texi:4819
  9568. msgid "Display available formats for @option{--format} option."
  9569. msgstr ""
  9570. #. type: table
  9571. #: guix-git/doc/guix.texi:4823
  9572. msgid "Display information about @var{profile}."
  9573. msgstr ""
  9574. #. type: section
  9575. #: guix-git/doc/guix.texi:4826
  9576. #, no-wrap
  9577. msgid "Invoking @command{guix archive}"
  9578. msgstr ""
  9579. #. type: command{#1}
  9580. #: guix-git/doc/guix.texi:4828
  9581. #, no-wrap
  9582. msgid "guix archive"
  9583. msgstr ""
  9584. #. type: cindex
  9585. #: guix-git/doc/guix.texi:4829
  9586. #, no-wrap
  9587. msgid "archive"
  9588. msgstr "归档"
  9589. #. type: Plain text
  9590. #: guix-git/doc/guix.texi:4835
  9591. 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."
  9592. msgstr ""
  9593. #. type: quotation
  9594. #: guix-git/doc/guix.texi:4839
  9595. msgid "If you're looking for a way to produce archives in a format suitable for tools other than Guix, @pxref{Invoking guix pack}."
  9596. msgstr ""
  9597. #. type: cindex
  9598. #: guix-git/doc/guix.texi:4841
  9599. #, no-wrap
  9600. msgid "exporting store items"
  9601. msgstr ""
  9602. #. type: Plain text
  9603. #: guix-git/doc/guix.texi:4843
  9604. msgid "To export store files as an archive to standard output, run:"
  9605. msgstr ""
  9606. #. type: example
  9607. #: guix-git/doc/guix.texi:4846
  9608. #, no-wrap
  9609. msgid "guix archive --export @var{options} @var{specifications}...\n"
  9610. msgstr ""
  9611. #. type: Plain text
  9612. #: guix-git/doc/guix.texi:4853
  9613. 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}:"
  9614. msgstr ""
  9615. #. type: example
  9616. #: guix-git/doc/guix.texi:4856
  9617. #, no-wrap
  9618. msgid "guix archive --export git:gui /gnu/store/...-emacs-24.3 > great.nar\n"
  9619. msgstr ""
  9620. #. type: Plain text
  9621. #: guix-git/doc/guix.texi:4861
  9622. 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})."
  9623. msgstr ""
  9624. #. type: Plain text
  9625. #: guix-git/doc/guix.texi:4864
  9626. msgid "To transfer the @code{emacs} package to a machine connected over SSH, one would run:"
  9627. msgstr ""
  9628. #. type: example
  9629. #: guix-git/doc/guix.texi:4867
  9630. #, no-wrap
  9631. msgid "guix archive --export -r emacs | ssh the-machine guix archive --import\n"
  9632. msgstr ""
  9633. #. type: Plain text
  9634. #: guix-git/doc/guix.texi:4872
  9635. msgid "Similarly, a complete user profile may be transferred from one machine to another like this:"
  9636. msgstr ""
  9637. #. type: example
  9638. #: guix-git/doc/guix.texi:4876
  9639. #, no-wrap
  9640. msgid ""
  9641. "guix archive --export -r $(readlink -f ~/.guix-profile) | \\\n"
  9642. " ssh the-machine guix archive --import\n"
  9643. msgstr ""
  9644. #. type: Plain text
  9645. #: guix-git/doc/guix.texi:4886
  9646. 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})."
  9647. msgstr ""
  9648. #. type: cindex
  9649. #: guix-git/doc/guix.texi:4887
  9650. #, no-wrap
  9651. msgid "nar, archive format"
  9652. msgstr ""
  9653. #. type: cindex
  9654. #: guix-git/doc/guix.texi:4888
  9655. #, no-wrap
  9656. msgid "normalized archive (nar)"
  9657. msgstr ""
  9658. #. type: cindex
  9659. #: guix-git/doc/guix.texi:4889
  9660. #, no-wrap
  9661. msgid "nar bundle, archive format"
  9662. msgstr ""
  9663. #. type: Plain text
  9664. #: guix-git/doc/guix.texi:4894
  9665. 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}."
  9666. msgstr ""
  9667. #. type: Plain text
  9668. #: guix-git/doc/guix.texi:4904
  9669. 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."
  9670. msgstr ""
  9671. #. type: Plain text
  9672. #: guix-git/doc/guix.texi:4908
  9673. 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."
  9674. msgstr ""
  9675. #. type: Plain text
  9676. #: guix-git/doc/guix.texi:4914
  9677. 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."
  9678. msgstr ""
  9679. #. type: Plain text
  9680. #: guix-git/doc/guix.texi:4916
  9681. msgid "The main options are:"
  9682. msgstr ""
  9683. #. type: item
  9684. #: guix-git/doc/guix.texi:4918
  9685. #, no-wrap
  9686. msgid "--export"
  9687. msgstr ""
  9688. #. type: table
  9689. #: guix-git/doc/guix.texi:4921
  9690. msgid "Export the specified store files or packages (see below). Write the resulting archive to the standard output."
  9691. msgstr ""
  9692. #. type: table
  9693. #: guix-git/doc/guix.texi:4924
  9694. msgid "Dependencies are @emph{not} included in the output, unless @option{--recursive} is passed."
  9695. msgstr ""
  9696. #. type: itemx
  9697. #: guix-git/doc/guix.texi:4925 guix-git/doc/guix.texi:11216
  9698. #: guix-git/doc/guix.texi:11318 guix-git/doc/guix.texi:11343
  9699. #: guix-git/doc/guix.texi:11375 guix-git/doc/guix.texi:11553
  9700. #: guix-git/doc/guix.texi:11594 guix-git/doc/guix.texi:11645
  9701. #: guix-git/doc/guix.texi:11670 guix-git/doc/guix.texi:11686
  9702. #: guix-git/doc/guix.texi:11734 guix-git/doc/guix.texi:11764
  9703. #, no-wrap
  9704. msgid "-r"
  9705. msgstr ""
  9706. #. type: item
  9707. #: guix-git/doc/guix.texi:4926 guix-git/doc/guix.texi:11215
  9708. #: guix-git/doc/guix.texi:11317 guix-git/doc/guix.texi:11342
  9709. #: guix-git/doc/guix.texi:11374 guix-git/doc/guix.texi:11552
  9710. #: guix-git/doc/guix.texi:11593 guix-git/doc/guix.texi:11644
  9711. #: guix-git/doc/guix.texi:11669 guix-git/doc/guix.texi:11685
  9712. #: guix-git/doc/guix.texi:11733 guix-git/doc/guix.texi:11763
  9713. #: guix-git/doc/guix.texi:11812
  9714. #, no-wrap
  9715. msgid "--recursive"
  9716. msgstr ""
  9717. #. type: table
  9718. #: guix-git/doc/guix.texi:4931
  9719. 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."
  9720. msgstr ""
  9721. #. type: item
  9722. #: guix-git/doc/guix.texi:4932
  9723. #, no-wrap
  9724. msgid "--import"
  9725. msgstr ""
  9726. #. type: table
  9727. #: guix-git/doc/guix.texi:4937
  9728. 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)."
  9729. msgstr ""
  9730. #. type: item
  9731. #: guix-git/doc/guix.texi:4938
  9732. #, no-wrap
  9733. msgid "--missing"
  9734. msgstr ""
  9735. #. type: table
  9736. #: guix-git/doc/guix.texi:4942
  9737. 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."
  9738. msgstr ""
  9739. #. type: item
  9740. #: guix-git/doc/guix.texi:4943
  9741. #, no-wrap
  9742. msgid "--generate-key[=@var{parameters}]"
  9743. msgstr ""
  9744. #. type: cindex
  9745. #: guix-git/doc/guix.texi:4944
  9746. #, no-wrap
  9747. msgid "signing, archives"
  9748. msgstr ""
  9749. #. type: table
  9750. #: guix-git/doc/guix.texi:4951
  9751. 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."
  9752. msgstr ""
  9753. #. type: table
  9754. #: guix-git/doc/guix.texi:4961
  9755. 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})."
  9756. msgstr ""
  9757. #. type: item
  9758. #: guix-git/doc/guix.texi:4962
  9759. #, no-wrap
  9760. msgid "--authorize"
  9761. msgstr ""
  9762. #. type: cindex
  9763. #: guix-git/doc/guix.texi:4963
  9764. #, no-wrap
  9765. msgid "authorizing, archives"
  9766. msgstr ""
  9767. #. type: table
  9768. #: guix-git/doc/guix.texi:4967
  9769. 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."
  9770. msgstr ""
  9771. #. type: table
  9772. #: guix-git/doc/guix.texi:4974
  9773. 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)}."
  9774. msgstr ""
  9775. #. type: item
  9776. #: guix-git/doc/guix.texi:4975
  9777. #, no-wrap
  9778. msgid "--extract=@var{directory}"
  9779. msgstr ""
  9780. #. type: itemx
  9781. #: guix-git/doc/guix.texi:4976
  9782. #, no-wrap
  9783. msgid "-x @var{directory}"
  9784. msgstr ""
  9785. #. type: table
  9786. #: guix-git/doc/guix.texi:4980
  9787. 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."
  9788. msgstr ""
  9789. #. type: table
  9790. #: guix-git/doc/guix.texi:4983
  9791. msgid "For example, the following command extracts the substitute for Emacs served by @code{@value{SUBSTITUTE-SERVER-1}} to @file{/tmp/emacs}:"
  9792. msgstr ""
  9793. #. type: example
  9794. #: guix-git/doc/guix.texi:4988
  9795. #, no-wrap
  9796. msgid ""
  9797. "$ wget -O - \\\n"
  9798. " https://@value{SUBSTITUTE-SERVER-1}/nar/gzip/@dots{}-emacs-24.5 \\\n"
  9799. " | gunzip | guix archive -x /tmp/emacs\n"
  9800. msgstr ""
  9801. #. type: table
  9802. #: guix-git/doc/guix.texi:4995
  9803. 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."
  9804. msgstr ""
  9805. #. type: table
  9806. #: guix-git/doc/guix.texi:4999
  9807. msgid "The primary purpose of this operation is to facilitate inspection of archive contents coming from possibly untrusted substitute servers (@pxref{Invoking guix challenge})."
  9808. msgstr ""
  9809. #. type: item
  9810. #: guix-git/doc/guix.texi:5000
  9811. #, no-wrap
  9812. msgid "--list"
  9813. msgstr ""
  9814. #. type: itemx
  9815. #: guix-git/doc/guix.texi:5001 guix-git/doc/guix.texi:11540
  9816. #: guix-git/doc/guix.texi:11587
  9817. #, no-wrap
  9818. msgid "-t"
  9819. msgstr ""
  9820. #. type: table
  9821. #: guix-git/doc/guix.texi:5005
  9822. 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:"
  9823. msgstr ""
  9824. #. type: example
  9825. #: guix-git/doc/guix.texi:5010
  9826. #, no-wrap
  9827. msgid ""
  9828. "$ wget -O - \\\n"
  9829. " https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-emacs-26.3 \\\n"
  9830. " | lzip -d | guix archive -t\n"
  9831. msgstr ""
  9832. #. type: cindex
  9833. #: guix-git/doc/guix.texi:5021
  9834. #, no-wrap
  9835. msgid "@command{guix pull}, configuration file"
  9836. msgstr ""
  9837. #. type: cindex
  9838. #: guix-git/doc/guix.texi:5022
  9839. #, no-wrap
  9840. msgid "configuration of @command{guix pull}"
  9841. msgstr ""
  9842. #. type: Plain text
  9843. #: guix-git/doc/guix.texi:5033
  9844. 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."
  9845. msgstr ""
  9846. #. type: cindex
  9847. #: guix-git/doc/guix.texi:5051
  9848. #, no-wrap
  9849. msgid "extending the package collection (channels)"
  9850. msgstr ""
  9851. #. type: cindex
  9852. #: guix-git/doc/guix.texi:5052
  9853. #, no-wrap
  9854. msgid "variant packages (channels)"
  9855. msgstr ""
  9856. #. type: Plain text
  9857. #: guix-git/doc/guix.texi:5056
  9858. 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):"
  9859. msgstr ""
  9860. #. type: vindex
  9861. #: guix-git/doc/guix.texi:5057
  9862. #, no-wrap
  9863. msgid "%default-channels"
  9864. msgstr ""
  9865. #. type: lisp
  9866. #: guix-git/doc/guix.texi:5064
  9867. #, no-wrap
  9868. msgid ""
  9869. ";; Add variant packages to those Guix provides.\n"
  9870. "(cons (channel\n"
  9871. " (name 'variant-packages)\n"
  9872. " (url \"https://example.org/variant-packages.git\"))\n"
  9873. " %default-channels)\n"
  9874. msgstr ""
  9875. #. type: Plain text
  9876. #: guix-git/doc/guix.texi:5074
  9877. 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:"
  9878. msgstr ""
  9879. #. type: example
  9880. #: guix-git/doc/guix.texi:5089
  9881. #, no-wrap
  9882. msgid ""
  9883. "$ guix pull --list-generations\n"
  9884. "@dots{}\n"
  9885. "Generation 19\tAug 27 2018 16:20:48\n"
  9886. " guix d894ab8\n"
  9887. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9888. " branch: master\n"
  9889. " commit: d894ab8e9bfabcefa6c49d9ba2e834dd5a73a300\n"
  9890. " variant-packages dd3df5e\n"
  9891. " repository URL: https://example.org/variant-packages.git\n"
  9892. " branch: master\n"
  9893. " commit: dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\n"
  9894. " 11 new packages: variant-gimp, variant-emacs-with-cool-features, @dots{}\n"
  9895. " 4 packages upgraded: emacs-racket-mode@@0.0.2-2.1b78827, @dots{}\n"
  9896. msgstr ""
  9897. #. type: Plain text
  9898. #: guix-git/doc/guix.texi:5097
  9899. 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."
  9900. msgstr ""
  9901. #. type: Plain text
  9902. #: guix-git/doc/guix.texi:5106
  9903. 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:"
  9904. msgstr ""
  9905. #. type: lisp
  9906. #: guix-git/doc/guix.texi:5113
  9907. #, no-wrap
  9908. msgid ""
  9909. ";; Tell 'guix pull' to use another repo.\n"
  9910. "(list (channel\n"
  9911. " (name 'guix)\n"
  9912. " (url \"https://example.org/another-guix.git\")\n"
  9913. " (branch \"super-hacks\")))\n"
  9914. msgstr ""
  9915. #. type: Plain text
  9916. #: guix-git/doc/guix.texi:5119
  9917. 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})."
  9918. msgstr ""
  9919. #. type: Plain text
  9920. #: guix-git/doc/guix.texi:5130
  9921. 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:"
  9922. msgstr ""
  9923. #. type: lisp
  9924. #: guix-git/doc/guix.texi:5141
  9925. #, no-wrap
  9926. msgid ""
  9927. ";; Deploy specific commits of my channels of interest.\n"
  9928. "(list (channel\n"
  9929. " (name 'guix)\n"
  9930. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9931. " (commit \"6298c3ffd9654d3231a6f25390b056483e8f407c\"))\n"
  9932. " (channel\n"
  9933. " (name 'variant-packages)\n"
  9934. " (url \"https://example.org/variant-packages.git\")\n"
  9935. " (commit \"dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\")))\n"
  9936. msgstr ""
  9937. #. type: Plain text
  9938. #: guix-git/doc/guix.texi:5148
  9939. 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})."
  9940. msgstr ""
  9941. #. type: Plain text
  9942. #: guix-git/doc/guix.texi:5155
  9943. 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."
  9944. msgstr ""
  9945. #. type: Plain text
  9946. #: guix-git/doc/guix.texi:5160
  9947. 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."
  9948. msgstr ""
  9949. #. type: anchor{#1}
  9950. #: guix-git/doc/guix.texi:5165
  9951. msgid "channel-authentication"
  9952. msgstr ""
  9953. #. type: Plain text
  9954. #: guix-git/doc/guix.texi:5171
  9955. 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."
  9956. msgstr ""
  9957. #. type: Plain text
  9958. #: guix-git/doc/guix.texi:5176
  9959. 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:"
  9960. msgstr ""
  9961. #. type: lisp
  9962. #: guix-git/doc/guix.texi:5186
  9963. #, no-wrap
  9964. msgid ""
  9965. "(channel\n"
  9966. " (name 'some-channel)\n"
  9967. " (url \"https://example.org/some-channel.git\")\n"
  9968. " (introduction\n"
  9969. " (make-channel-introduction\n"
  9970. " \"6f0d8cc0d88abb59c324b2990bfee2876016bb86\"\n"
  9971. " (openpgp-fingerprint\n"
  9972. " \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  9973. msgstr ""
  9974. #. type: Plain text
  9975. #: guix-git/doc/guix.texi:5192
  9976. 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{}}."
  9977. msgstr ""
  9978. #. type: Plain text
  9979. #: guix-git/doc/guix.texi:5198
  9980. 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."
  9981. msgstr ""
  9982. #. type: Plain text
  9983. #: guix-git/doc/guix.texi:5200
  9984. msgid "If you're curious about the authentication mechanics, read on!"
  9985. msgstr ""
  9986. #. type: Plain text
  9987. #: guix-git/doc/guix.texi:5211
  9988. 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}."
  9989. msgstr ""
  9990. #. type: lisp
  9991. #: guix-git/doc/guix.texi:5214
  9992. #, no-wrap
  9993. msgid ""
  9994. "(use-modules (guix ci))\n"
  9995. "\n"
  9996. msgstr ""
  9997. #. type: lisp
  9998. #: guix-git/doc/guix.texi:5218
  9999. #, no-wrap
  10000. msgid ""
  10001. "(list (channel-with-substitutes-available\n"
  10002. " %default-guix-channel\n"
  10003. " \"https://ci.guix.gnu.org\"))\n"
  10004. msgstr ""
  10005. #. type: Plain text
  10006. #: guix-git/doc/guix.texi:5225
  10007. 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."
  10008. msgstr ""
  10009. #. type: cindex
  10010. #: guix-git/doc/guix.texi:5229
  10011. #, no-wrap
  10012. msgid "personal packages (channels)"
  10013. msgstr ""
  10014. #. type: cindex
  10015. #: guix-git/doc/guix.texi:5230
  10016. #, no-wrap
  10017. msgid "channels, for personal packages"
  10018. msgstr ""
  10019. #. type: Plain text
  10020. #: guix-git/doc/guix.texi:5238
  10021. 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?"
  10022. msgstr ""
  10023. #. type: quotation
  10024. #: guix-git/doc/guix.texi:5242 guix-git/doc/guix.texi:6088
  10025. #: guix-git/doc/guix.texi:13860 guix-git/doc/guix.texi:19962
  10026. #: guix-git/doc/guix.texi:19969
  10027. #, no-wrap
  10028. msgid "Warning"
  10029. msgstr ""
  10030. #. type: quotation
  10031. #: guix-git/doc/guix.texi:5246
  10032. 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:"
  10033. msgstr ""
  10034. #. type: itemize
  10035. #: guix-git/doc/guix.texi:5254
  10036. 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."
  10037. msgstr ""
  10038. #. type: itemize
  10039. #: guix-git/doc/guix.texi:5263
  10040. 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."
  10041. msgstr ""
  10042. #. type: itemize
  10043. #: guix-git/doc/guix.texi:5267
  10044. 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."
  10045. msgstr ""
  10046. #. type: quotation
  10047. #: guix-git/doc/guix.texi:5274
  10048. 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."
  10049. msgstr ""
  10050. #. type: Plain text
  10051. #: guix-git/doc/guix.texi:5286
  10052. 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})."
  10053. msgstr ""
  10054. #. type: Plain text
  10055. #: guix-git/doc/guix.texi:5291
  10056. 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."
  10057. msgstr ""
  10058. #. type: cindex
  10059. #: guix-git/doc/guix.texi:5296
  10060. #, no-wrap
  10061. msgid "subdirectory, channels"
  10062. msgstr ""
  10063. #. type: Plain text
  10064. #: guix-git/doc/guix.texi:5300
  10065. 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:"
  10066. msgstr ""
  10067. #. type: lisp
  10068. #: guix-git/doc/guix.texi:5305
  10069. #, no-wrap
  10070. msgid ""
  10071. "(channel\n"
  10072. " (version 0)\n"
  10073. " (directory \"guix\"))\n"
  10074. msgstr ""
  10075. #. type: cindex
  10076. #: guix-git/doc/guix.texi:5310
  10077. #, no-wrap
  10078. msgid "dependencies, channels"
  10079. msgstr ""
  10080. #. type: cindex
  10081. #: guix-git/doc/guix.texi:5311
  10082. #, no-wrap
  10083. msgid "meta-data, channels"
  10084. msgstr ""
  10085. #. type: Plain text
  10086. #: guix-git/doc/guix.texi:5316
  10087. 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."
  10088. msgstr ""
  10089. #. type: Plain text
  10090. #: guix-git/doc/guix.texi:5318
  10091. msgid "The meta-data file should contain a simple S-expression like this:"
  10092. msgstr ""
  10093. #. type: lisp
  10094. #: guix-git/doc/guix.texi:5326
  10095. #, no-wrap
  10096. msgid ""
  10097. "(channel\n"
  10098. " (version 0)\n"
  10099. " (dependencies\n"
  10100. " (channel\n"
  10101. " (name some-collection)\n"
  10102. " (url \"https://example.org/first-collection.git\")\n"
  10103. "\n"
  10104. msgstr ""
  10105. #. type: lisp
  10106. #: guix-git/doc/guix.texi:5338
  10107. #, no-wrap
  10108. msgid ""
  10109. " ;; The 'introduction' bit below is optional: you would\n"
  10110. " ;; provide it for dependencies that can be authenticated.\n"
  10111. " (introduction\n"
  10112. " (channel-introduction\n"
  10113. " (version 0)\n"
  10114. " (commit \"a8883b58dc82e167c96506cf05095f37c2c2c6cd\")\n"
  10115. " (signer \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  10116. " (channel\n"
  10117. " (name some-other-collection)\n"
  10118. " (url \"https://example.org/second-collection.git\")\n"
  10119. " (branch \"testing\"))))\n"
  10120. msgstr ""
  10121. #. type: Plain text
  10122. #: guix-git/doc/guix.texi:5344
  10123. 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."
  10124. msgstr ""
  10125. #. type: Plain text
  10126. #: guix-git/doc/guix.texi:5348
  10127. 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."
  10128. msgstr ""
  10129. #. type: cindex
  10130. #: guix-git/doc/guix.texi:5352
  10131. #, no-wrap
  10132. msgid "channel authorizations"
  10133. msgstr ""
  10134. #. type: anchor{#1}
  10135. #: guix-git/doc/guix.texi:5366
  10136. msgid "channel-authorizations"
  10137. msgstr ""
  10138. #. type: Plain text
  10139. #: guix-git/doc/guix.texi:5366
  10140. 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:"
  10141. msgstr ""
  10142. #. type: lisp
  10143. #: guix-git/doc/guix.texi:5369
  10144. #, no-wrap
  10145. msgid ""
  10146. ";; Example '.guix-authorizations' file.\n"
  10147. "\n"
  10148. msgstr ""
  10149. #. type: lisp
  10150. #: guix-git/doc/guix.texi:5372
  10151. #, no-wrap
  10152. msgid ""
  10153. "(authorizations\n"
  10154. " (version 0) ;current file format version\n"
  10155. "\n"
  10156. msgstr ""
  10157. #. type: lisp
  10158. #: guix-git/doc/guix.texi:5379
  10159. #, no-wrap
  10160. msgid ""
  10161. " ((\"AD17 A21E F8AE D8F1 CC02 DBD9 F8AE D8F1 765C 61E3\"\n"
  10162. " (name \"alice\"))\n"
  10163. " (\"2A39 3FFF 68F4 EF7A 3D29 12AF 68F4 EF7A 22FB B2D5\"\n"
  10164. " (name \"bob\"))\n"
  10165. " (\"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"\n"
  10166. " (name \"charlie\"))))\n"
  10167. msgstr ""
  10168. #. type: Plain text
  10169. #: guix-git/doc/guix.texi:5383
  10170. msgid "Each fingerprint is followed by optional key/value pairs, as in the example above. Currently these key/value pairs are ignored."
  10171. msgstr ""
  10172. #. type: Plain text
  10173. #: guix-git/doc/guix.texi:5388
  10174. 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?"
  10175. msgstr ""
  10176. #. type: cindex
  10177. #: guix-git/doc/guix.texi:5389
  10178. #, fuzzy, no-wrap
  10179. msgid "channel introduction"
  10180. msgstr "介绍"
  10181. #. type: Plain text
  10182. #: guix-git/doc/guix.texi:5396
  10183. 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."
  10184. msgstr ""
  10185. #. type: Plain text
  10186. #: guix-git/doc/guix.texi:5403
  10187. 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:"
  10188. msgstr ""
  10189. #. type: lisp
  10190. #: guix-git/doc/guix.texi:5408
  10191. #, no-wrap
  10192. msgid ""
  10193. "(channel\n"
  10194. " (version 0)\n"
  10195. " (keyring-reference \"my-keyring-branch\"))\n"
  10196. msgstr ""
  10197. #. type: Plain text
  10198. #: guix-git/doc/guix.texi:5412
  10199. msgid "To summarize, as the author of a channel, there are three things you have to do to allow users to authenticate your code:"
  10200. msgstr ""
  10201. #. type: enumerate
  10202. #: guix-git/doc/guix.texi:5418
  10203. 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})."
  10204. msgstr ""
  10205. #. type: enumerate
  10206. #: guix-git/doc/guix.texi:5423
  10207. 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.)"
  10208. msgstr ""
  10209. #. type: enumerate
  10210. #: guix-git/doc/guix.texi:5429
  10211. 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."
  10212. msgstr ""
  10213. #. type: Plain text
  10214. #: guix-git/doc/guix.texi:5434
  10215. 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:"
  10216. msgstr ""
  10217. #. type: example
  10218. #: guix-git/doc/guix.texi:5437
  10219. #, no-wrap
  10220. msgid "guix git authenticate @var{commit} @var{signer}\n"
  10221. msgstr ""
  10222. #. type: Plain text
  10223. #: guix-git/doc/guix.texi:5442
  10224. msgid "where @var{commit} and @var{signer} are your channel introduction. @xref{Invoking guix git authenticate}, for details."
  10225. msgstr ""
  10226. #. type: Plain text
  10227. #: guix-git/doc/guix.texi:5449
  10228. 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."
  10229. msgstr ""
  10230. #. type: cindex
  10231. #: guix-git/doc/guix.texi:5453
  10232. #, no-wrap
  10233. msgid "primary URL, channels"
  10234. msgstr ""
  10235. #. type: Plain text
  10236. #: guix-git/doc/guix.texi:5456
  10237. msgid "Channel authors can indicate the primary URL of their channel's Git repository in the @file{.guix-channel} file, like so:"
  10238. msgstr ""
  10239. #. type: lisp
  10240. #: guix-git/doc/guix.texi:5461
  10241. #, no-wrap
  10242. msgid ""
  10243. "(channel\n"
  10244. " (version 0)\n"
  10245. " (url \"https://example.org/guix.git\"))\n"
  10246. msgstr ""
  10247. #. type: Plain text
  10248. #: guix-git/doc/guix.texi:5468
  10249. 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."
  10250. msgstr ""
  10251. #. type: Plain text
  10252. #: guix-git/doc/guix.texi:5472
  10253. 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."
  10254. msgstr ""
  10255. #. type: cindex
  10256. #: guix-git/doc/guix.texi:5476
  10257. #, no-wrap
  10258. msgid "news, for channels"
  10259. msgstr ""
  10260. #. type: Plain text
  10261. #: guix-git/doc/guix.texi:5480
  10262. 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."
  10263. msgstr ""
  10264. #. type: Plain text
  10265. #: guix-git/doc/guix.texi:5485
  10266. 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."
  10267. msgstr ""
  10268. #. type: Plain text
  10269. #: guix-git/doc/guix.texi:5488
  10270. msgid "To do that, channel authors must first declare the name of the news file in their @file{.guix-channel} file:"
  10271. msgstr ""
  10272. #. type: lisp
  10273. #: guix-git/doc/guix.texi:5493
  10274. #, no-wrap
  10275. msgid ""
  10276. "(channel\n"
  10277. " (version 0)\n"
  10278. " (news-file \"etc/news.txt\"))\n"
  10279. msgstr ""
  10280. #. type: Plain text
  10281. #: guix-git/doc/guix.texi:5497
  10282. msgid "The news file itself, @file{etc/news.txt} in this example, must look something like this:"
  10283. msgstr ""
  10284. #. type: lisp
  10285. #: guix-git/doc/guix.texi:5510
  10286. #, no-wrap
  10287. msgid ""
  10288. "(channel-news\n"
  10289. " (version 0)\n"
  10290. " (entry (tag \"the-bug-fix\")\n"
  10291. " (title (en \"Fixed terrible bug\")\n"
  10292. " (fr \"Oh la la\"))\n"
  10293. " (body (en \"@@emph@{Good news@}! It's fixed!\")\n"
  10294. " (eo \"Certe ĝi pli bone funkcias nun!\")))\n"
  10295. " (entry (commit \"bdcabe815cd28144a2d2b4bc3c5057b051fa9906\")\n"
  10296. " (title (en \"Added a great package\")\n"
  10297. " (ca \"Què vol dir guix?\"))\n"
  10298. " (body (en \"Don't miss the @@code@{hello@} package!\"))))\n"
  10299. msgstr ""
  10300. #. type: Plain text
  10301. #: guix-git/doc/guix.texi:5517
  10302. 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."
  10303. msgstr ""
  10304. #. type: Plain text
  10305. #: guix-git/doc/guix.texi:5522
  10306. 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."
  10307. msgstr ""
  10308. #. type: Plain text
  10309. #: guix-git/doc/guix.texi:5528
  10310. 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."
  10311. msgstr ""
  10312. #. type: Plain text
  10313. #: guix-git/doc/guix.texi:5534
  10314. 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:"
  10315. msgstr ""
  10316. #. type: example
  10317. #: guix-git/doc/guix.texi:5537
  10318. #, no-wrap
  10319. msgid "xgettext -o news.po -l scheme -ken etc/news.txt\n"
  10320. msgstr ""
  10321. #. type: Plain text
  10322. #: guix-git/doc/guix.texi:5541
  10323. 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."
  10324. msgstr ""
  10325. #. type: cindex
  10326. #: guix-git/doc/guix.texi:5546
  10327. #, no-wrap
  10328. msgid "software development"
  10329. msgstr ""
  10330. #. type: Plain text
  10331. #: guix-git/doc/guix.texi:5550
  10332. 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."
  10333. msgstr ""
  10334. #. type: Plain text
  10335. #: guix-git/doc/guix.texi:5556
  10336. msgid "The @command{guix environment} command provides a convenient way to set up @dfn{development environments} containing all the dependencies and tools necessary to work on the software package of your choice. The @command{guix pack} command allows you to create @dfn{application bundles} that can be easily distributed to users who do not run Guix."
  10337. msgstr ""
  10338. #. type: section
  10339. #: guix-git/doc/guix.texi:5565
  10340. #, no-wrap
  10341. msgid "Invoking @command{guix environment}"
  10342. msgstr ""
  10343. #. type: cindex
  10344. #: guix-git/doc/guix.texi:5567
  10345. #, no-wrap
  10346. msgid "reproducible build environments"
  10347. msgstr ""
  10348. #. type: cindex
  10349. #: guix-git/doc/guix.texi:5568
  10350. #, no-wrap
  10351. msgid "development environments"
  10352. msgstr ""
  10353. #. type: command{#1}
  10354. #: guix-git/doc/guix.texi:5569
  10355. #, no-wrap
  10356. msgid "guix environment"
  10357. msgstr ""
  10358. #. type: cindex
  10359. #: guix-git/doc/guix.texi:5570
  10360. #, no-wrap
  10361. msgid "environment, package build environment"
  10362. msgstr ""
  10363. #. type: Plain text
  10364. #: guix-git/doc/guix.texi:5576
  10365. msgid "The purpose of @command{guix environment} is to assist hackers in creating reproducible development environments without polluting their package profile. The @command{guix environment} tool takes one or more packages, builds all of their inputs, and creates a shell environment to use them."
  10366. msgstr ""
  10367. #. type: example
  10368. #: guix-git/doc/guix.texi:5581
  10369. #, no-wrap
  10370. msgid "guix environment @var{options} @var{package}@dots{}\n"
  10371. msgstr ""
  10372. #. type: Plain text
  10373. #: guix-git/doc/guix.texi:5585
  10374. msgid "The following example spawns a new shell set up for the development of GNU@tie{}Guile:"
  10375. msgstr ""
  10376. #. type: example
  10377. #: guix-git/doc/guix.texi:5588
  10378. #, no-wrap
  10379. msgid "guix environment guile\n"
  10380. msgstr ""
  10381. #. type: Plain text
  10382. #: guix-git/doc/guix.texi:5605
  10383. 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.}."
  10384. msgstr ""
  10385. #. type: Plain text
  10386. #: guix-git/doc/guix.texi:5611
  10387. 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."
  10388. msgstr ""
  10389. #. type: vindex
  10390. #: guix-git/doc/guix.texi:5612
  10391. #, no-wrap
  10392. msgid "GUIX_ENVIRONMENT"
  10393. msgstr ""
  10394. #. type: Plain text
  10395. #: guix-git/doc/guix.texi:5618
  10396. 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}):"
  10397. msgstr ""
  10398. #. type: example
  10399. #: guix-git/doc/guix.texi:5624
  10400. #, no-wrap
  10401. msgid ""
  10402. "if [ -n \"$GUIX_ENVIRONMENT\" ]\n"
  10403. "then\n"
  10404. " export PS1=\"\\u@@\\h \\w [dev]\\$ \"\n"
  10405. "fi\n"
  10406. msgstr ""
  10407. #. type: Plain text
  10408. #: guix-git/doc/guix.texi:5628
  10409. msgid "...@: or to browse the profile:"
  10410. msgstr ""
  10411. #. type: example
  10412. #: guix-git/doc/guix.texi:5631
  10413. #, no-wrap
  10414. msgid "$ ls \"$GUIX_ENVIRONMENT/bin\"\n"
  10415. msgstr ""
  10416. #. type: Plain text
  10417. #: guix-git/doc/guix.texi:5637
  10418. 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:"
  10419. msgstr ""
  10420. #. type: example
  10421. #: guix-git/doc/guix.texi:5640
  10422. #, no-wrap
  10423. msgid "guix environment guile emacs\n"
  10424. msgstr ""
  10425. #. type: Plain text
  10426. #: guix-git/doc/guix.texi:5645
  10427. 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:"
  10428. msgstr ""
  10429. #. type: example
  10430. #: guix-git/doc/guix.texi:5648
  10431. #, no-wrap
  10432. msgid "guix environment guile -- make -j4\n"
  10433. msgstr ""
  10434. #. type: Plain text
  10435. #: guix-git/doc/guix.texi:5654
  10436. msgid "In other situations, it is more convenient to specify the list of packages needed in the environment. For example, the following command runs @command{python} from an environment containing Python@tie{}2.7 and NumPy:"
  10437. msgstr ""
  10438. #. type: example
  10439. #: guix-git/doc/guix.texi:5657
  10440. #, no-wrap
  10441. msgid "guix environment --ad-hoc python2-numpy python-2.7 -- python\n"
  10442. msgstr ""
  10443. #. type: Plain text
  10444. #: guix-git/doc/guix.texi:5668
  10445. 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:"
  10446. msgstr ""
  10447. #. type: example
  10448. #: guix-git/doc/guix.texi:5671
  10449. #, fuzzy, no-wrap
  10450. msgid "guix environment --pure guix --ad-hoc git strace\n"
  10451. msgstr "guix environment guix --ad-hoc help2man git strace\n"
  10452. #. type: item
  10453. #: guix-git/doc/guix.texi:5673 guix-git/doc/guix.texi:5834
  10454. #: guix-git/doc/guix.texi:13258 guix-git/doc/guix.texi:34077
  10455. #, no-wrap
  10456. msgid "container"
  10457. msgstr "容器"
  10458. #. type: Plain text
  10459. #: guix-git/doc/guix.texi:5681
  10460. 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:"
  10461. msgstr ""
  10462. #. type: example
  10463. #: guix-git/doc/guix.texi:5684
  10464. #, no-wrap
  10465. msgid "guix environment --ad-hoc --container guile -- guile\n"
  10466. msgstr ""
  10467. #. type: quotation
  10468. #: guix-git/doc/guix.texi:5688
  10469. msgid "The @option{--container} option requires Linux-libre 3.19 or newer."
  10470. msgstr ""
  10471. #. type: cindex
  10472. #: guix-git/doc/guix.texi:5690
  10473. #, fuzzy, no-wrap
  10474. msgid "certificates"
  10475. msgstr "X.509证书"
  10476. #. type: Plain text
  10477. #: guix-git/doc/guix.texi:5697
  10478. 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."
  10479. msgstr ""
  10480. #. type: example
  10481. #: guix-git/doc/guix.texi:5704
  10482. #, no-wrap
  10483. msgid ""
  10484. "guix environment --preserve='^DISPLAY$' --container --network \\\n"
  10485. " --expose=/etc/machine-id \\\n"
  10486. " --expose=/etc/ssl/certs/ \\\n"
  10487. " --share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \\\n"
  10488. " --ad-hoc eolie nss-certs dbus -- eolie\n"
  10489. msgstr ""
  10490. #. type: Plain text
  10491. #: guix-git/doc/guix.texi:5707
  10492. msgid "The available options are summarized below."
  10493. msgstr ""
  10494. #. type: item
  10495. #: guix-git/doc/guix.texi:5709 guix-git/doc/guix.texi:6274
  10496. #: guix-git/doc/guix.texi:10961 guix-git/doc/guix.texi:34174
  10497. #, no-wrap
  10498. msgid "--root=@var{file}"
  10499. msgstr ""
  10500. #. type: itemx
  10501. #: guix-git/doc/guix.texi:5710 guix-git/doc/guix.texi:6275
  10502. #: guix-git/doc/guix.texi:10962 guix-git/doc/guix.texi:34175
  10503. #, no-wrap
  10504. msgid "-r @var{file}"
  10505. msgstr ""
  10506. #. type: cindex
  10507. #: guix-git/doc/guix.texi:5711
  10508. #, no-wrap
  10509. msgid "persistent environment"
  10510. msgstr ""
  10511. #. type: cindex
  10512. #: guix-git/doc/guix.texi:5712
  10513. #, no-wrap
  10514. msgid "garbage collector root, for environments"
  10515. msgstr ""
  10516. #. type: table
  10517. #: guix-git/doc/guix.texi:5715
  10518. msgid "Make @var{file} a symlink to the profile for this environment, and register it as a garbage collector root."
  10519. msgstr ""
  10520. #. type: table
  10521. #: guix-git/doc/guix.texi:5718
  10522. msgid "This is useful if you want to protect your environment from garbage collection, to make it ``persistent''."
  10523. msgstr ""
  10524. #. type: table
  10525. #: guix-git/doc/guix.texi:5724
  10526. 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."
  10527. msgstr ""
  10528. #. type: item
  10529. #: guix-git/doc/guix.texi:5725 guix-git/doc/guix.texi:6206
  10530. #: guix-git/doc/guix.texi:10807 guix-git/doc/guix.texi:11857
  10531. #: guix-git/doc/guix.texi:12702 guix-git/doc/guix.texi:34109
  10532. #: guix-git/doc/guix.texi:36100
  10533. #, no-wrap
  10534. msgid "--expression=@var{expr}"
  10535. msgstr ""
  10536. #. type: itemx
  10537. #: guix-git/doc/guix.texi:5726 guix-git/doc/guix.texi:6207
  10538. #: guix-git/doc/guix.texi:10808 guix-git/doc/guix.texi:11858
  10539. #: guix-git/doc/guix.texi:12703 guix-git/doc/guix.texi:34110
  10540. #: guix-git/doc/guix.texi:36101
  10541. #, no-wrap
  10542. msgid "-e @var{expr}"
  10543. msgstr ""
  10544. #. type: table
  10545. #: guix-git/doc/guix.texi:5729
  10546. msgid "Create an environment for the package or list of packages that @var{expr} evaluates to."
  10547. msgstr ""
  10548. #. type: table
  10549. #: guix-git/doc/guix.texi:5731
  10550. msgid "For example, running:"
  10551. msgstr ""
  10552. #. type: example
  10553. #: guix-git/doc/guix.texi:5734
  10554. #, no-wrap
  10555. msgid "guix environment -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  10556. msgstr ""
  10557. #. type: table
  10558. #: guix-git/doc/guix.texi:5738
  10559. msgid "starts a shell with the environment for this specific variant of the PETSc package."
  10560. msgstr ""
  10561. #. type: table
  10562. #: guix-git/doc/guix.texi:5740
  10563. msgid "Running:"
  10564. msgstr ""
  10565. #. type: example
  10566. #: guix-git/doc/guix.texi:5743
  10567. #, no-wrap
  10568. msgid "guix environment --ad-hoc -e '(@@ (gnu) %base-packages)'\n"
  10569. msgstr ""
  10570. #. type: table
  10571. #: guix-git/doc/guix.texi:5746
  10572. msgid "starts a shell with all the base system packages available."
  10573. msgstr ""
  10574. #. type: table
  10575. #: guix-git/doc/guix.texi:5749
  10576. msgid "The above commands only use the default output of the given packages. To select other outputs, two element tuples can be specified:"
  10577. msgstr ""
  10578. #. type: example
  10579. #: guix-git/doc/guix.texi:5752
  10580. #, no-wrap
  10581. msgid "guix environment --ad-hoc -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  10582. msgstr ""
  10583. #. type: item
  10584. #: guix-git/doc/guix.texi:5754
  10585. #, no-wrap
  10586. msgid "--load=@var{file}"
  10587. msgstr ""
  10588. #. type: itemx
  10589. #: guix-git/doc/guix.texi:5755
  10590. #, no-wrap
  10591. msgid "-l @var{file}"
  10592. msgstr ""
  10593. #. type: table
  10594. #: guix-git/doc/guix.texi:5758
  10595. msgid "Create an environment for the package or list of packages that the code within @var{file} evaluates to."
  10596. msgstr ""
  10597. #. type: lisp
  10598. #: guix-git/doc/guix.texi:5764
  10599. #, no-wrap
  10600. msgid "@verbatiminclude environment-gdb.scm\n"
  10601. msgstr ""
  10602. #. type: table
  10603. #: guix-git/doc/guix.texi:5771
  10604. 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."
  10605. msgstr ""
  10606. #. type: table
  10607. #: guix-git/doc/guix.texi:5775
  10608. msgid "This is similar to the same-named option in @command{guix package} (@pxref{profile-manifest, @option{--manifest}}) and uses the same manifest files."
  10609. msgstr ""
  10610. #. type: item
  10611. #: guix-git/doc/guix.texi:5776
  10612. #, no-wrap
  10613. msgid "--ad-hoc"
  10614. msgstr ""
  10615. #. type: table
  10616. #: guix-git/doc/guix.texi:5781
  10617. 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."
  10618. msgstr ""
  10619. #. type: table
  10620. #: guix-git/doc/guix.texi:5783
  10621. msgid "For instance, the command:"
  10622. msgstr ""
  10623. #. type: example
  10624. #: guix-git/doc/guix.texi:5786
  10625. #, no-wrap
  10626. msgid "guix environment --ad-hoc guile guile-sdl -- guile\n"
  10627. msgstr ""
  10628. #. type: table
  10629. #: guix-git/doc/guix.texi:5790
  10630. msgid "runs @command{guile} in an environment where Guile and Guile-SDL are available."
  10631. msgstr ""
  10632. #. type: table
  10633. #: guix-git/doc/guix.texi:5795
  10634. 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})."
  10635. msgstr ""
  10636. #. type: table
  10637. #: guix-git/doc/guix.texi:5801
  10638. 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."
  10639. msgstr ""
  10640. #. type: item
  10641. #: guix-git/doc/guix.texi:5802
  10642. #, no-wrap
  10643. msgid "--pure"
  10644. msgstr ""
  10645. #. type: table
  10646. #: guix-git/doc/guix.texi:5806
  10647. 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."
  10648. msgstr ""
  10649. #. type: item
  10650. #: guix-git/doc/guix.texi:5807
  10651. #, no-wrap
  10652. msgid "--preserve=@var{regexp}"
  10653. msgstr ""
  10654. #. type: itemx
  10655. #: guix-git/doc/guix.texi:5808
  10656. #, no-wrap
  10657. msgid "-E @var{regexp}"
  10658. msgstr ""
  10659. #. type: table
  10660. #: guix-git/doc/guix.texi:5813
  10661. 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."
  10662. msgstr ""
  10663. #. type: example
  10664. #: guix-git/doc/guix.texi:5817
  10665. #, no-wrap
  10666. msgid ""
  10667. "guix environment --pure --preserve=^SLURM --ad-hoc openmpi @dots{} \\\n"
  10668. " -- mpirun @dots{}\n"
  10669. msgstr ""
  10670. #. type: table
  10671. #: guix-git/doc/guix.texi:5823
  10672. 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.)."
  10673. msgstr ""
  10674. #. type: item
  10675. #: guix-git/doc/guix.texi:5824
  10676. #, no-wrap
  10677. msgid "--search-paths"
  10678. msgstr ""
  10679. #. type: table
  10680. #: guix-git/doc/guix.texi:5827
  10681. msgid "Display the environment variable definitions that make up the environment."
  10682. msgstr ""
  10683. #. type: table
  10684. #: guix-git/doc/guix.texi:5831
  10685. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}."
  10686. msgstr ""
  10687. #. type: item
  10688. #: guix-git/doc/guix.texi:5832
  10689. #, no-wrap
  10690. msgid "--container"
  10691. msgstr ""
  10692. #. type: itemx
  10693. #: guix-git/doc/guix.texi:5833
  10694. #, no-wrap
  10695. msgid "-C"
  10696. msgstr ""
  10697. #. type: table
  10698. #: guix-git/doc/guix.texi:5840
  10699. 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."
  10700. msgstr ""
  10701. #. type: table
  10702. #: guix-git/doc/guix.texi:5844
  10703. 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)."
  10704. msgstr ""
  10705. #. type: item
  10706. #: guix-git/doc/guix.texi:5845 guix-git/doc/guix.texi:34169
  10707. #, no-wrap
  10708. msgid "--network"
  10709. msgstr ""
  10710. #. type: table
  10711. #: guix-git/doc/guix.texi:5850
  10712. msgid "For containers, share the network namespace with the host system. Containers created without this flag only have access to the loopback device."
  10713. msgstr ""
  10714. #. type: item
  10715. #: guix-git/doc/guix.texi:5851
  10716. #, no-wrap
  10717. msgid "--link-profile"
  10718. msgstr ""
  10719. #. type: itemx
  10720. #: guix-git/doc/guix.texi:5852
  10721. #, no-wrap
  10722. msgid "-P"
  10723. msgstr ""
  10724. #. type: table
  10725. #: guix-git/doc/guix.texi:5860
  10726. 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."
  10727. msgstr ""
  10728. #. type: table
  10729. #: guix-git/doc/guix.texi:5866
  10730. 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."
  10731. msgstr ""
  10732. #. type: item
  10733. #: guix-git/doc/guix.texi:5867 guix-git/doc/guix.texi:12835
  10734. #, no-wrap
  10735. msgid "--user=@var{user}"
  10736. msgstr ""
  10737. #. type: itemx
  10738. #: guix-git/doc/guix.texi:5868 guix-git/doc/guix.texi:12836
  10739. #, no-wrap
  10740. msgid "-u @var{user}"
  10741. msgstr ""
  10742. #. type: table
  10743. #: guix-git/doc/guix.texi:5875
  10744. 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."
  10745. msgstr ""
  10746. #. type: table
  10747. #: guix-git/doc/guix.texi:5880
  10748. 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."
  10749. msgstr ""
  10750. #. type: example
  10751. #: guix-git/doc/guix.texi:5887
  10752. #, no-wrap
  10753. msgid ""
  10754. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  10755. "cd $HOME/wd\n"
  10756. "guix environment --container --user=foo \\\n"
  10757. " --expose=$HOME/test \\\n"
  10758. " --expose=/tmp/target=$HOME/target\n"
  10759. msgstr ""
  10760. #. type: table
  10761. #: guix-git/doc/guix.texi:5892
  10762. 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."
  10763. msgstr ""
  10764. #. type: item
  10765. #: guix-git/doc/guix.texi:5893
  10766. #, no-wrap
  10767. msgid "--no-cwd"
  10768. msgstr ""
  10769. #. type: table
  10770. #: guix-git/doc/guix.texi:5900
  10771. 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}."
  10772. msgstr ""
  10773. #. type: item
  10774. #: guix-git/doc/guix.texi:5901
  10775. #, no-wrap
  10776. msgid "--expose=@var{source}[=@var{target}]"
  10777. msgstr ""
  10778. #. type: itemx
  10779. #: guix-git/doc/guix.texi:5902
  10780. #, no-wrap
  10781. msgid "--share=@var{source}[=@var{target}]"
  10782. msgstr ""
  10783. #. type: table
  10784. #: guix-git/doc/guix.texi:5908
  10785. 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."
  10786. msgstr ""
  10787. #. type: table
  10788. #: guix-git/doc/guix.texi:5912
  10789. 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:"
  10790. msgstr ""
  10791. #. type: example
  10792. #: guix-git/doc/guix.texi:5915
  10793. #, no-wrap
  10794. msgid "guix environment --container --expose=$HOME=/exchange --ad-hoc guile -- guile\n"
  10795. msgstr ""
  10796. #. type: Plain text
  10797. #: guix-git/doc/guix.texi:5923
  10798. 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})."
  10799. msgstr ""
  10800. #. type: section
  10801. #: guix-git/doc/guix.texi:5925
  10802. #, no-wrap
  10803. msgid "Invoking @command{guix pack}"
  10804. msgstr ""
  10805. #. type: Plain text
  10806. #: guix-git/doc/guix.texi:5931
  10807. 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."
  10808. msgstr ""
  10809. #. type: quotation
  10810. #: guix-git/doc/guix.texi:5936
  10811. 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}."
  10812. msgstr ""
  10813. #. type: cindex
  10814. #: guix-git/doc/guix.texi:5938
  10815. #, no-wrap
  10816. msgid "pack"
  10817. msgstr ""
  10818. #. type: cindex
  10819. #: guix-git/doc/guix.texi:5939
  10820. #, no-wrap
  10821. msgid "bundle"
  10822. msgstr ""
  10823. #. type: cindex
  10824. #: guix-git/doc/guix.texi:5940
  10825. #, no-wrap
  10826. msgid "application bundle"
  10827. msgstr ""
  10828. #. type: cindex
  10829. #: guix-git/doc/guix.texi:5941
  10830. #, no-wrap
  10831. msgid "software bundle"
  10832. msgstr ""
  10833. #. type: Plain text
  10834. #: guix-git/doc/guix.texi:5950
  10835. 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."
  10836. msgstr ""
  10837. #. type: Plain text
  10838. #: guix-git/doc/guix.texi:5953
  10839. msgid "For example, to create a bundle containing Guile, Emacs, Geiser, and all their dependencies, you can run:"
  10840. msgstr ""
  10841. #. type: example
  10842. #: guix-git/doc/guix.texi:5958
  10843. #, no-wrap
  10844. msgid ""
  10845. "$ guix pack guile emacs emacs-geiser\n"
  10846. "@dots{}\n"
  10847. "/gnu/store/@dots{}-pack.tar.gz\n"
  10848. msgstr ""
  10849. #. type: Plain text
  10850. #: guix-git/doc/guix.texi:5966
  10851. 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})."
  10852. msgstr ""
  10853. #. type: Plain text
  10854. #: guix-git/doc/guix.texi:5971
  10855. 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:"
  10856. msgstr ""
  10857. #. type: example
  10858. #: guix-git/doc/guix.texi:5974
  10859. #, fuzzy, no-wrap
  10860. msgid "guix pack -S /opt/gnu/bin=bin guile emacs emacs-geiser\n"
  10861. msgstr "guix package -i emacs guile emacs-geiser\n"
  10862. #. type: Plain text
  10863. #: guix-git/doc/guix.texi:5978
  10864. msgid "That way, users can happily type @file{/opt/gnu/bin/guile} and enjoy."
  10865. msgstr ""
  10866. #. type: cindex
  10867. #: guix-git/doc/guix.texi:5979
  10868. #, no-wrap
  10869. msgid "relocatable binaries, with @command{guix pack}"
  10870. msgstr ""
  10871. #. type: Plain text
  10872. #: guix-git/doc/guix.texi:5987
  10873. 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}."
  10874. msgstr ""
  10875. #. type: cindex
  10876. #: guix-git/doc/guix.texi:5988
  10877. #, no-wrap
  10878. msgid "Docker, build an image with guix pack"
  10879. msgstr ""
  10880. #. type: Plain text
  10881. #: guix-git/doc/guix.texi:5991
  10882. msgid "Alternatively, you can produce a pack in the Docker image format using the following command:"
  10883. msgstr ""
  10884. #. type: example
  10885. #: guix-git/doc/guix.texi:5994
  10886. #, no-wrap
  10887. msgid "guix pack -f docker -S /bin=bin guile guile-readline\n"
  10888. msgstr ""
  10889. #. type: Plain text
  10890. #: guix-git/doc/guix.texi:5999
  10891. msgid "The result is a tarball that can be passed to the @command{docker load} command, followed by @code{docker run}:"
  10892. msgstr ""
  10893. #. type: example
  10894. #: guix-git/doc/guix.texi:6003
  10895. #, no-wrap
  10896. msgid ""
  10897. "docker load < @var{file}\n"
  10898. "docker run -ti guile-guile-readline /bin/guile\n"
  10899. msgstr ""
  10900. #. type: Plain text
  10901. #: guix-git/doc/guix.texi:6010
  10902. 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."
  10903. msgstr ""
  10904. #. type: cindex
  10905. #: guix-git/doc/guix.texi:6011
  10906. #, no-wrap
  10907. msgid "Singularity, build an image with guix pack"
  10908. msgstr ""
  10909. #. type: cindex
  10910. #: guix-git/doc/guix.texi:6012
  10911. #, no-wrap
  10912. msgid "SquashFS, build an image with guix pack"
  10913. msgstr ""
  10914. #. type: Plain text
  10915. #: guix-git/doc/guix.texi:6015
  10916. msgid "Yet another option is to produce a SquashFS image with the following command:"
  10917. msgstr ""
  10918. #. type: example
  10919. #: guix-git/doc/guix.texi:6018
  10920. #, fuzzy, no-wrap
  10921. msgid "guix pack -f squashfs bash guile emacs emacs-geiser\n"
  10922. msgstr "guix package -i emacs guile emacs-geiser\n"
  10923. #. type: Plain text
  10924. #: guix-git/doc/guix.texi:6026
  10925. 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}."
  10926. msgstr ""
  10927. #. type: Plain text
  10928. #: guix-git/doc/guix.texi:6028
  10929. msgid "Several command-line options allow you to customize your pack:"
  10930. msgstr ""
  10931. #. type: table
  10932. #: guix-git/doc/guix.texi:6033
  10933. msgid "Produce a pack in the given @var{format}."
  10934. msgstr ""
  10935. #. type: table
  10936. #: guix-git/doc/guix.texi:6035
  10937. msgid "The available formats are:"
  10938. msgstr ""
  10939. #. type: item
  10940. #: guix-git/doc/guix.texi:6037
  10941. #, no-wrap
  10942. msgid "tarball"
  10943. msgstr ""
  10944. #. type: table
  10945. #: guix-git/doc/guix.texi:6040
  10946. msgid "This is the default format. It produces a tarball containing all the specified binaries and symlinks."
  10947. msgstr ""
  10948. #. type: item
  10949. #: guix-git/doc/guix.texi:6041
  10950. #, no-wrap
  10951. msgid "docker"
  10952. msgstr ""
  10953. #. type: table
  10954. #: guix-git/doc/guix.texi:6047
  10955. 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."
  10956. msgstr ""
  10957. #. type: item
  10958. #: guix-git/doc/guix.texi:6048
  10959. #, no-wrap
  10960. msgid "squashfs"
  10961. msgstr ""
  10962. #. type: table
  10963. #: guix-git/doc/guix.texi:6052
  10964. 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."
  10965. msgstr ""
  10966. #. type: quotation
  10967. #: guix-git/doc/guix.texi:6058
  10968. 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:"
  10969. msgstr ""
  10970. #. type: example
  10971. #: guix-git/doc/guix.texi:6061
  10972. #, no-wrap
  10973. msgid "guix pack -f squashfs bash @dots{}\n"
  10974. msgstr ""
  10975. #. type: quotation
  10976. #: guix-git/doc/guix.texi:6066
  10977. 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."
  10978. msgstr ""
  10979. #. type: item
  10980. #: guix-git/doc/guix.texi:6068
  10981. #, fuzzy, no-wrap
  10982. #| msgid "--debug"
  10983. msgid "deb"
  10984. msgstr "--debug"
  10985. #. type: table
  10986. #: guix-git/doc/guix.texi:6076
  10987. 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."
  10988. msgstr ""
  10989. #. type: example
  10990. #: guix-git/doc/guix.texi:6079
  10991. #, no-wrap
  10992. msgid "guix pack -f deb -C xz -S /usr/bin/hello=bin/hello hello\n"
  10993. msgstr ""
  10994. #. type: quotation
  10995. #: guix-git/doc/guix.texi:6086
  10996. 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."
  10997. msgstr ""
  10998. #. type: quotation
  10999. #: guix-git/doc/guix.texi:6094
  11000. 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."
  11001. msgstr ""
  11002. #. type: cindex
  11003. #: guix-git/doc/guix.texi:6098
  11004. #, no-wrap
  11005. msgid "relocatable binaries"
  11006. msgstr ""
  11007. #. type: item
  11008. #: guix-git/doc/guix.texi:6099
  11009. #, no-wrap
  11010. msgid "--relocatable"
  11011. msgstr ""
  11012. #. type: table
  11013. #: guix-git/doc/guix.texi:6103
  11014. msgid "Produce @dfn{relocatable binaries}---i.e., binaries that can be placed anywhere in the file system hierarchy and run from there."
  11015. msgstr ""
  11016. #. type: table
  11017. #: guix-git/doc/guix.texi:6111
  11018. 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."
  11019. msgstr ""
  11020. #. type: table
  11021. #: guix-git/doc/guix.texi:6113
  11022. msgid "For example, if you create a pack containing Bash with:"
  11023. msgstr ""
  11024. #. type: example
  11025. #: guix-git/doc/guix.texi:6116
  11026. #, no-wrap
  11027. msgid "guix pack -RR -S /mybin=bin bash\n"
  11028. msgstr ""
  11029. #. type: table
  11030. #: guix-git/doc/guix.texi:6121
  11031. msgid "...@: you can copy that pack to a machine that lacks Guix, and from your home directory as a normal user, run:"
  11032. msgstr ""
  11033. #. type: example
  11034. #: guix-git/doc/guix.texi:6125
  11035. #, no-wrap
  11036. msgid ""
  11037. "tar xf pack.tar.gz\n"
  11038. "./mybin/sh\n"
  11039. msgstr ""
  11040. #. type: table
  11041. #: guix-git/doc/guix.texi:6133
  11042. 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."
  11043. msgstr ""
  11044. #. type: quotation
  11045. #: guix-git/doc/guix.texi:6139
  11046. 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."
  11047. msgstr ""
  11048. #. type: quotation
  11049. #: guix-git/doc/guix.texi:6145
  11050. 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:"
  11051. msgstr ""
  11052. #. type: item
  11053. #: guix-git/doc/guix.texi:6147 guix-git/doc/guix.texi:16509
  11054. #, no-wrap
  11055. msgid "default"
  11056. msgstr ""
  11057. #. type: table
  11058. #: guix-git/doc/guix.texi:6150
  11059. msgid "Try user namespaces and fall back to PRoot if user namespaces are not supported (see below)."
  11060. msgstr ""
  11061. #. type: item
  11062. #: guix-git/doc/guix.texi:6151
  11063. #, fuzzy, no-wrap
  11064. msgid "performance"
  11065. msgstr "格式化代码"
  11066. #. type: table
  11067. #: guix-git/doc/guix.texi:6154
  11068. msgid "Try user namespaces and fall back to Fakechroot if user namespaces are not supported (see below)."
  11069. msgstr ""
  11070. #. type: item
  11071. #: guix-git/doc/guix.texi:6155
  11072. #, fuzzy, no-wrap
  11073. msgid "userns"
  11074. msgstr "用户"
  11075. #. type: table
  11076. #: guix-git/doc/guix.texi:6158
  11077. msgid "Run the program through user namespaces and abort if they are not supported."
  11078. msgstr ""
  11079. #. type: item
  11080. #: guix-git/doc/guix.texi:6159
  11081. #, fuzzy, no-wrap
  11082. msgid "proot"
  11083. msgstr "chroot"
  11084. #. type: table
  11085. #: guix-git/doc/guix.texi:6166
  11086. 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."
  11087. msgstr ""
  11088. #. type: item
  11089. #: guix-git/doc/guix.texi:6167
  11090. #, fuzzy, no-wrap
  11091. msgid "fakechroot"
  11092. msgstr "chroot"
  11093. #. type: table
  11094. #: guix-git/doc/guix.texi:6175
  11095. 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."
  11096. msgstr ""
  11097. #. type: vindex
  11098. #: guix-git/doc/guix.texi:6177
  11099. #, no-wrap
  11100. msgid "GUIX_EXECUTION_ENGINE"
  11101. msgstr ""
  11102. #. type: quotation
  11103. #: guix-git/doc/guix.texi:6181
  11104. 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."
  11105. msgstr ""
  11106. #. type: cindex
  11107. #: guix-git/doc/guix.texi:6183
  11108. #, no-wrap
  11109. msgid "entry point, for Docker images"
  11110. msgstr ""
  11111. #. type: item
  11112. #: guix-git/doc/guix.texi:6184
  11113. #, fuzzy, no-wrap
  11114. msgid "--entry-point=@var{command}"
  11115. msgstr "--timeout=@var{seconds}"
  11116. #. type: table
  11117. #: guix-git/doc/guix.texi:6189
  11118. 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."
  11119. msgstr ""
  11120. #. type: table
  11121. #: guix-git/doc/guix.texi:6193
  11122. 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:"
  11123. msgstr ""
  11124. #. type: example
  11125. #: guix-git/doc/guix.texi:6196
  11126. #, no-wrap
  11127. msgid "guix pack -f docker --entry-point=bin/guile guile\n"
  11128. msgstr ""
  11129. #. type: table
  11130. #: guix-git/doc/guix.texi:6200
  11131. msgid "The resulting pack can easily be loaded and @code{docker run} with no extra arguments will spawn @code{bin/guile}:"
  11132. msgstr ""
  11133. #. type: example
  11134. #: guix-git/doc/guix.texi:6204
  11135. #, no-wrap
  11136. msgid ""
  11137. "docker load -i pack.tar.gz\n"
  11138. "docker run @var{image-id}\n"
  11139. msgstr ""
  11140. #. type: table
  11141. #: guix-git/doc/guix.texi:6209 guix-git/doc/guix.texi:11860
  11142. #: guix-git/doc/guix.texi:12705
  11143. msgid "Consider the package @var{expr} evaluates to."
  11144. msgstr ""
  11145. #. type: table
  11146. #: guix-git/doc/guix.texi:6213
  11147. 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}})."
  11148. msgstr ""
  11149. #. type: table
  11150. #: guix-git/doc/guix.texi:6219
  11151. 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."
  11152. msgstr ""
  11153. #. type: table
  11154. #: guix-git/doc/guix.texi:6227
  11155. 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."
  11156. msgstr ""
  11157. #. type: item
  11158. #: guix-git/doc/guix.texi:6233 guix-git/doc/guix.texi:10925
  11159. #, no-wrap
  11160. msgid "--target=@var{triplet}"
  11161. msgstr ""
  11162. #. type: cindex
  11163. #: guix-git/doc/guix.texi:6234 guix-git/doc/guix.texi:6685
  11164. #: guix-git/doc/guix.texi:10926
  11165. #, no-wrap
  11166. msgid "cross-compilation"
  11167. msgstr ""
  11168. #. type: table
  11169. #: guix-git/doc/guix.texi:6238
  11170. 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})."
  11171. msgstr ""
  11172. #. type: item
  11173. #: guix-git/doc/guix.texi:6239
  11174. #, no-wrap
  11175. msgid "--compression=@var{tool}"
  11176. msgstr ""
  11177. #. type: itemx
  11178. #: guix-git/doc/guix.texi:6240
  11179. #, no-wrap
  11180. msgid "-C @var{tool}"
  11181. msgstr ""
  11182. #. type: table
  11183. #: guix-git/doc/guix.texi:6244
  11184. #, fuzzy
  11185. 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."
  11186. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  11187. #. type: item
  11188. #: guix-git/doc/guix.texi:6245
  11189. #, no-wrap
  11190. msgid "--symlink=@var{spec}"
  11191. msgstr ""
  11192. #. type: itemx
  11193. #: guix-git/doc/guix.texi:6246
  11194. #, no-wrap
  11195. msgid "-S @var{spec}"
  11196. msgstr ""
  11197. #. type: table
  11198. #: guix-git/doc/guix.texi:6249
  11199. msgid "Add the symlinks specified by @var{spec} to the pack. This option can appear several times."
  11200. msgstr ""
  11201. #. type: table
  11202. #: guix-git/doc/guix.texi:6253
  11203. 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."
  11204. msgstr ""
  11205. #. type: table
  11206. #: guix-git/doc/guix.texi:6256
  11207. 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."
  11208. msgstr ""
  11209. #. type: item
  11210. #: guix-git/doc/guix.texi:6257 guix-git/doc/guix.texi:34128
  11211. #, no-wrap
  11212. msgid "--save-provenance"
  11213. msgstr ""
  11214. #. type: table
  11215. #: guix-git/doc/guix.texi:6261
  11216. 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})."
  11217. msgstr ""
  11218. #. type: table
  11219. #: guix-git/doc/guix.texi:6267
  11220. 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."
  11221. msgstr ""
  11222. #. type: table
  11223. #: guix-git/doc/guix.texi:6273
  11224. 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."
  11225. msgstr ""
  11226. #. type: cindex
  11227. #: guix-git/doc/guix.texi:6276
  11228. #, fuzzy, no-wrap
  11229. msgid "garbage collector root, for packs"
  11230. msgstr "垃圾收集的根"
  11231. #. type: table
  11232. #: guix-git/doc/guix.texi:6279
  11233. msgid "Make @var{file} a symlink to the resulting pack, and register it as a garbage collector root."
  11234. msgstr ""
  11235. #. type: item
  11236. #: guix-git/doc/guix.texi:6280
  11237. #, no-wrap
  11238. msgid "--localstatedir"
  11239. msgstr ""
  11240. #. type: itemx
  11241. #: guix-git/doc/guix.texi:6281
  11242. #, no-wrap
  11243. msgid "--profile-name=@var{name}"
  11244. msgstr ""
  11245. #. type: table
  11246. #: guix-git/doc/guix.texi:6286
  11247. 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}."
  11248. msgstr ""
  11249. #. type: table
  11250. #: guix-git/doc/guix.texi:6292
  11251. 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."
  11252. msgstr ""
  11253. #. type: table
  11254. #: guix-git/doc/guix.texi:6295
  11255. msgid "One use case for this is the Guix self-contained binary tarball (@pxref{Binary Installation})."
  11256. msgstr ""
  11257. #. type: item
  11258. #: guix-git/doc/guix.texi:6296 guix-git/doc/guix.texi:34122
  11259. #, no-wrap
  11260. msgid "--derivation"
  11261. msgstr ""
  11262. #. type: itemx
  11263. #: guix-git/doc/guix.texi:6297 guix-git/doc/guix.texi:10957
  11264. #: guix-git/doc/guix.texi:34123
  11265. #, no-wrap
  11266. msgid "-d"
  11267. msgstr ""
  11268. #. type: table
  11269. #: guix-git/doc/guix.texi:6299
  11270. msgid "Print the name of the derivation that builds the pack."
  11271. msgstr ""
  11272. #. type: table
  11273. #: guix-git/doc/guix.texi:6303
  11274. msgid "Use the bootstrap binaries to build the pack. This option is only useful to Guix developers."
  11275. msgstr ""
  11276. #. type: Plain text
  11277. #: guix-git/doc/guix.texi:6308
  11278. 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})."
  11279. msgstr ""
  11280. #. type: cindex
  11281. #: guix-git/doc/guix.texi:6313
  11282. #, no-wrap
  11283. msgid "GCC"
  11284. msgstr ""
  11285. #. type: cindex
  11286. #: guix-git/doc/guix.texi:6314
  11287. #, no-wrap
  11288. msgid "ld-wrapper"
  11289. msgstr ""
  11290. #. type: cindex
  11291. #: guix-git/doc/guix.texi:6315
  11292. #, no-wrap
  11293. msgid "linker wrapper"
  11294. msgstr ""
  11295. #. type: cindex
  11296. #: guix-git/doc/guix.texi:6316
  11297. #, fuzzy, no-wrap
  11298. msgid "toolchain, for C development"
  11299. msgstr "软件开发"
  11300. #. type: cindex
  11301. #: guix-git/doc/guix.texi:6317
  11302. #, no-wrap
  11303. msgid "toolchain, for Fortran development"
  11304. msgstr ""
  11305. #. type: Plain text
  11306. #: guix-git/doc/guix.texi:6324
  11307. 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."
  11308. msgstr ""
  11309. #. type: Plain text
  11310. #: guix-git/doc/guix.texi:6330
  11311. 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}."
  11312. msgstr ""
  11313. #. type: Plain text
  11314. #: guix-git/doc/guix.texi:6334
  11315. 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})."
  11316. msgstr ""
  11317. #. type: section
  11318. #: guix-git/doc/guix.texi:6337
  11319. #, fuzzy, no-wrap
  11320. msgid "Invoking @command{guix git authenticate}"
  11321. msgstr "调用@command{guix build}"
  11322. #. type: Plain text
  11323. #: guix-git/doc/guix.texi:6345
  11324. 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)."
  11325. msgstr ""
  11326. #. type: Plain text
  11327. #: guix-git/doc/guix.texi:6350
  11328. 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."
  11329. msgstr ""
  11330. #. type: example
  11331. #: guix-git/doc/guix.texi:6355
  11332. #, no-wrap
  11333. msgid "guix git authenticate @var{commit} @var{signer} [@var{options}@dots{}]\n"
  11334. msgstr ""
  11335. #. type: Plain text
  11336. #: guix-git/doc/guix.texi:6364
  11337. 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."
  11338. msgstr ""
  11339. #. type: item
  11340. #: guix-git/doc/guix.texi:6366
  11341. #, fuzzy, no-wrap
  11342. msgid "--repository=@var{directory}"
  11343. msgstr "--chroot-directory=@var{dir}"
  11344. #. type: itemx
  11345. #: guix-git/doc/guix.texi:6367
  11346. #, fuzzy, no-wrap
  11347. msgid "-r @var{directory}"
  11348. msgstr "状态文件夹"
  11349. #. type: table
  11350. #: guix-git/doc/guix.texi:6370
  11351. msgid "Open the Git repository in @var{directory} instead of the current directory."
  11352. msgstr ""
  11353. #. type: item
  11354. #: guix-git/doc/guix.texi:6371
  11355. #, no-wrap
  11356. msgid "--keyring=@var{reference}"
  11357. msgstr ""
  11358. #. type: itemx
  11359. #: guix-git/doc/guix.texi:6372
  11360. #, fuzzy, no-wrap
  11361. msgid "-k @var{reference}"
  11362. msgstr "-c @var{n}"
  11363. #. type: table
  11364. #: guix-git/doc/guix.texi:6378
  11365. 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}."
  11366. msgstr ""
  11367. #. type: item
  11368. #: guix-git/doc/guix.texi:6379
  11369. #, no-wrap
  11370. msgid "--stats"
  11371. msgstr ""
  11372. #. type: table
  11373. #: guix-git/doc/guix.texi:6381
  11374. msgid "Display commit signing statistics upon completion."
  11375. msgstr ""
  11376. #. type: item
  11377. #: guix-git/doc/guix.texi:6382
  11378. #, fuzzy, no-wrap
  11379. msgid "--cache-key=@var{key}"
  11380. msgstr "--cores=@var{n}"
  11381. #. type: table
  11382. #: guix-git/doc/guix.texi:6386
  11383. 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."
  11384. msgstr ""
  11385. #. type: item
  11386. #: guix-git/doc/guix.texi:6387
  11387. #, no-wrap
  11388. msgid "--historical-authorizations=@var{file}"
  11389. msgstr ""
  11390. #. type: table
  11391. #: guix-git/doc/guix.texi:6394
  11392. 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})."
  11393. msgstr ""
  11394. #. type: Plain text
  11395. #: guix-git/doc/guix.texi:6407
  11396. 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."
  11397. msgstr ""
  11398. #. type: Plain text
  11399. #: guix-git/doc/guix.texi:6413
  11400. 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."
  11401. msgstr ""
  11402. #. type: Plain text
  11403. #: guix-git/doc/guix.texi:6422
  11404. 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."
  11405. msgstr ""
  11406. #. type: Plain text
  11407. #: guix-git/doc/guix.texi:6425
  11408. msgid "This chapter describes all these APIs in turn, starting from high-level package definitions."
  11409. msgstr ""
  11410. #. type: menuentry
  11411. #: guix-git/doc/guix.texi:6438
  11412. #, fuzzy
  11413. msgid "Programming Guix in Guile"
  11414. msgstr "编程索引"
  11415. #. type: Plain text
  11416. #: guix-git/doc/guix.texi:6454
  11417. 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})."
  11418. msgstr ""
  11419. #. type: Plain text
  11420. #: guix-git/doc/guix.texi:6461
  11421. 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."
  11422. msgstr ""
  11423. #. type: cindex
  11424. #: guix-git/doc/guix.texi:6463
  11425. #, no-wrap
  11426. msgid "package module search path"
  11427. msgstr ""
  11428. #. type: Plain text
  11429. #: guix-git/doc/guix.texi:6472
  11430. 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:"
  11431. msgstr ""
  11432. #. type: enumerate
  11433. #: guix-git/doc/guix.texi:6479
  11434. 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."
  11435. msgstr ""
  11436. #. type: enumerate
  11437. #: guix-git/doc/guix.texi:6485
  11438. 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."
  11439. msgstr ""
  11440. #. type: Plain text
  11441. #: guix-git/doc/guix.texi:6488
  11442. msgid "@env{GUIX_PACKAGE_PATH} works similarly to other search path variables:"
  11443. msgstr ""
  11444. #. type: defvr
  11445. #: guix-git/doc/guix.texi:6489
  11446. #, no-wrap
  11447. msgid "{Environment Variable} GUIX_PACKAGE_PATH"
  11448. msgstr ""
  11449. #. type: defvr
  11450. #: guix-git/doc/guix.texi:6493
  11451. 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."
  11452. msgstr ""
  11453. #. type: Plain text
  11454. #: guix-git/doc/guix.texi:6501
  11455. 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}."
  11456. msgstr ""
  11457. #. type: Plain text
  11458. #: guix-git/doc/guix.texi:6509
  11459. 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:"
  11460. msgstr ""
  11461. #. type: lisp
  11462. #: guix-git/doc/guix.texi:6517
  11463. #, no-wrap
  11464. msgid ""
  11465. "(define-module (gnu packages hello)\n"
  11466. " #:use-module (guix packages)\n"
  11467. " #:use-module (guix download)\n"
  11468. " #:use-module (guix build-system gnu)\n"
  11469. " #:use-module (guix licenses)\n"
  11470. " #:use-module (gnu packages gawk))\n"
  11471. "\n"
  11472. msgstr ""
  11473. #. type: lisp
  11474. #: guix-git/doc/guix.texi:6536
  11475. #, no-wrap
  11476. msgid ""
  11477. "(define-public hello\n"
  11478. " (package\n"
  11479. " (name \"hello\")\n"
  11480. " (version \"2.10\")\n"
  11481. " (source (origin\n"
  11482. " (method url-fetch)\n"
  11483. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  11484. " \".tar.gz\"))\n"
  11485. " (sha256\n"
  11486. " (base32\n"
  11487. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  11488. " (build-system gnu-build-system)\n"
  11489. " (arguments '(#:configure-flags '(\"--enable-silent-rules\")))\n"
  11490. " (inputs `((\"gawk\" ,gawk)))\n"
  11491. " (synopsis \"Hello, GNU world: An example GNU package\")\n"
  11492. " (description \"Guess what GNU Hello prints!\")\n"
  11493. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  11494. " (license gpl3+)))\n"
  11495. msgstr ""
  11496. #. type: Plain text
  11497. #: guix-git/doc/guix.texi:6546
  11498. 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\"}."
  11499. msgstr ""
  11500. #. type: Plain text
  11501. #: guix-git/doc/guix.texi:6550
  11502. 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})."
  11503. msgstr ""
  11504. #. type: Plain text
  11505. #: guix-git/doc/guix.texi:6556
  11506. 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})."
  11507. msgstr ""
  11508. #. type: Plain text
  11509. #: guix-git/doc/guix.texi:6558
  11510. msgid "There are a few points worth noting in the above package definition:"
  11511. msgstr ""
  11512. #. type: itemize
  11513. #: guix-git/doc/guix.texi:6565
  11514. 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."
  11515. msgstr ""
  11516. #. type: itemize
  11517. #: guix-git/doc/guix.texi:6568
  11518. msgid "The @code{mirror://gnu} prefix instructs @code{url-fetch} to use one of the GNU mirrors defined in @code{(guix download)}."
  11519. msgstr ""
  11520. #. type: itemize
  11521. #: guix-git/doc/guix.texi:6575
  11522. 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})."
  11523. msgstr ""
  11524. #. type: cindex
  11525. #: guix-git/doc/guix.texi:6576
  11526. #, no-wrap
  11527. msgid "patches"
  11528. msgstr ""
  11529. #. type: itemize
  11530. #: guix-git/doc/guix.texi:6580
  11531. 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."
  11532. msgstr ""
  11533. #. type: cindex
  11534. #: guix-git/doc/guix.texi:6582
  11535. #, no-wrap
  11536. msgid "GNU Build System"
  11537. msgstr ""
  11538. #. type: itemize
  11539. #: guix-git/doc/guix.texi:6588
  11540. 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."
  11541. msgstr ""
  11542. #. type: itemize
  11543. #: guix-git/doc/guix.texi:6592
  11544. 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."
  11545. msgstr ""
  11546. #. type: itemize
  11547. #: guix-git/doc/guix.texi:6598
  11548. 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."
  11549. msgstr ""
  11550. #. type: findex
  11551. #: guix-git/doc/guix.texi:6599 guix-git/doc/guix.texi:6602
  11552. #, no-wrap
  11553. msgid "quote"
  11554. msgstr ""
  11555. #. type: cindex
  11556. #: guix-git/doc/guix.texi:6600
  11557. #, no-wrap
  11558. msgid "quoting"
  11559. msgstr ""
  11560. #. type: findex
  11561. #: guix-git/doc/guix.texi:6601
  11562. #, no-wrap
  11563. msgid "'"
  11564. msgstr ""
  11565. #. type: itemize
  11566. #: guix-git/doc/guix.texi:6610
  11567. msgid "What about these quote (@code{'}) characters? They are Scheme syntax to introduce a literal list; @code{'} is synonymous with @code{quote}. @xref{Expression Syntax, quoting,, guile, GNU Guile Reference Manual}, for details. Here the value of the @code{arguments} field is a list of arguments passed to the build system down the road, as with @code{apply} (@pxref{Fly Evaluation, @code{apply},, guile, GNU Guile Reference Manual})."
  11568. msgstr ""
  11569. #. type: itemize
  11570. #: guix-git/doc/guix.texi:6616
  11571. 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})."
  11572. msgstr ""
  11573. #. type: itemize
  11574. #: guix-git/doc/guix.texi:6622
  11575. msgid "The @code{inputs} field specifies inputs to the build process---i.e., build-time or run-time dependencies of the package. Here, we define an input called @code{\"gawk\"} whose value is that of the @code{gawk} variable; @code{gawk} is itself bound to a @code{<package>} object."
  11576. msgstr ""
  11577. #. type: cindex
  11578. #: guix-git/doc/guix.texi:6623
  11579. #, no-wrap
  11580. msgid "backquote (quasiquote)"
  11581. msgstr ""
  11582. #. type: findex
  11583. #: guix-git/doc/guix.texi:6624
  11584. #, no-wrap
  11585. msgid "`"
  11586. msgstr ""
  11587. #. type: findex
  11588. #: guix-git/doc/guix.texi:6625
  11589. #, no-wrap
  11590. msgid "quasiquote"
  11591. msgstr ""
  11592. #. type: cindex
  11593. #: guix-git/doc/guix.texi:6626
  11594. #, no-wrap
  11595. msgid "comma (unquote)"
  11596. msgstr ""
  11597. #. type: findex
  11598. #: guix-git/doc/guix.texi:6627
  11599. #, no-wrap
  11600. msgid ","
  11601. msgstr ""
  11602. #. type: findex
  11603. #: guix-git/doc/guix.texi:6628
  11604. #, no-wrap
  11605. msgid "unquote"
  11606. msgstr ""
  11607. #. type: findex
  11608. #: guix-git/doc/guix.texi:6629
  11609. #, no-wrap
  11610. msgid ",@@"
  11611. msgstr ""
  11612. #. type: findex
  11613. #: guix-git/doc/guix.texi:6630
  11614. #, no-wrap
  11615. msgid "unquote-splicing"
  11616. msgstr ""
  11617. #. type: itemize
  11618. #: guix-git/doc/guix.texi:6636
  11619. msgid "Again, @code{`} (a backquote, synonymous with @code{quasiquote}) allows us to introduce a literal list in the @code{inputs} field, while @code{,} (a comma, synonymous with @code{unquote}) allows us to insert a value in that list (@pxref{Expression Syntax, unquote,, guile, GNU Guile Reference Manual})."
  11620. msgstr ""
  11621. #. type: itemize
  11622. #: guix-git/doc/guix.texi:6640
  11623. 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})."
  11624. msgstr ""
  11625. #. type: itemize
  11626. #: guix-git/doc/guix.texi:6644
  11627. 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."
  11628. msgstr ""
  11629. #. type: Plain text
  11630. #: guix-git/doc/guix.texi:6647
  11631. msgid "@xref{package Reference}, for a full description of possible fields."
  11632. msgstr ""
  11633. #. type: Plain text
  11634. #: guix-git/doc/guix.texi:6658
  11635. 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."
  11636. msgstr ""
  11637. #. type: vindex
  11638. #: guix-git/doc/guix.texi:6658
  11639. #, no-wrap
  11640. msgid "GUIX_PACKAGE_PATH"
  11641. msgstr ""
  11642. #. type: Plain text
  11643. #: guix-git/doc/guix.texi:6662
  11644. msgid "Lastly, @pxref{Channels}, for information on how to extend the distribution by adding your own package definitions in a ``channel''."
  11645. msgstr ""
  11646. #. type: Plain text
  11647. #: guix-git/doc/guix.texi:6666
  11648. 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})."
  11649. msgstr ""
  11650. #. type: Plain text
  11651. #: guix-git/doc/guix.texi:6672
  11652. 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})."
  11653. msgstr ""
  11654. #. type: deffn
  11655. #: guix-git/doc/guix.texi:6673
  11656. #, no-wrap
  11657. msgid "{Scheme Procedure} package-derivation @var{store} @var{package} [@var{system}]"
  11658. msgstr ""
  11659. #. type: deffn
  11660. #: guix-git/doc/guix.texi:6676
  11661. msgid "Return the @code{<derivation>} object of @var{package} for @var{system} (@pxref{Derivations})."
  11662. msgstr ""
  11663. #. type: deffn
  11664. #: guix-git/doc/guix.texi:6682
  11665. 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})."
  11666. msgstr ""
  11667. #. type: Plain text
  11668. #: guix-git/doc/guix.texi:6688
  11669. msgid "Similarly, it is possible to compute a derivation that cross-builds a package for some other system:"
  11670. msgstr ""
  11671. #. type: deffn
  11672. #: guix-git/doc/guix.texi:6689
  11673. #, no-wrap
  11674. msgid "{Scheme Procedure} package-cross-derivation @var{store} @"
  11675. msgstr ""
  11676. #. type: deffn
  11677. #: guix-git/doc/guix.texi:6693
  11678. msgid "@var{package} @var{target} [@var{system}] Return the @code{<derivation>} object of @var{package} cross-built from @var{system} to @var{target}."
  11679. msgstr ""
  11680. #. type: deffn
  11681. #: guix-git/doc/guix.texi:6697
  11682. 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})."
  11683. msgstr ""
  11684. #. type: Plain text
  11685. #: guix-git/doc/guix.texi:6701
  11686. msgid "Once you have package definitions, you can easily define @emph{variants} of those packages. @xref{Defining Package Variants}, for more on that."
  11687. msgstr ""
  11688. #. type: subsection
  11689. #: guix-git/doc/guix.texi:6709
  11690. #, no-wrap
  11691. msgid "@code{package} Reference"
  11692. msgstr ""
  11693. #. type: Plain text
  11694. #: guix-git/doc/guix.texi:6713
  11695. msgid "This section summarizes all the options available in @code{package} declarations (@pxref{Defining Packages})."
  11696. msgstr ""
  11697. #. type: deftp
  11698. #: guix-git/doc/guix.texi:6714
  11699. #, no-wrap
  11700. msgid "{Data Type} package"
  11701. msgstr ""
  11702. #. type: deftp
  11703. #: guix-git/doc/guix.texi:6716
  11704. msgid "This is the data type representing a package recipe."
  11705. msgstr ""
  11706. #. type: table
  11707. #: guix-git/doc/guix.texi:6720
  11708. msgid "The name of the package, as a string."
  11709. msgstr ""
  11710. #. type: code{#1}
  11711. #: guix-git/doc/guix.texi:6721
  11712. #, no-wrap
  11713. msgid "version"
  11714. msgstr ""
  11715. #. type: table
  11716. #: guix-git/doc/guix.texi:6724
  11717. msgid "The version of the package, as a string. @xref{Version Numbers}, for guidelines."
  11718. msgstr ""
  11719. #. type: code{#1}
  11720. #: guix-git/doc/guix.texi:6725 guix-git/doc/guix.texi:12167
  11721. #: guix-git/doc/guix.texi:14469 guix-git/doc/guix.texi:14972
  11722. #, no-wrap
  11723. msgid "source"
  11724. msgstr ""
  11725. #. type: table
  11726. #: guix-git/doc/guix.texi:6732
  11727. 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}})."
  11728. msgstr ""
  11729. #. type: code{#1}
  11730. #: guix-git/doc/guix.texi:6733
  11731. #, no-wrap
  11732. msgid "build-system"
  11733. msgstr ""
  11734. #. type: table
  11735. #: guix-git/doc/guix.texi:6736
  11736. msgid "The build system that should be used to build the package (@pxref{Build Systems})."
  11737. msgstr ""
  11738. #. type: item
  11739. #: guix-git/doc/guix.texi:6737 guix-git/doc/guix.texi:16957
  11740. #, no-wrap
  11741. msgid "@code{arguments} (default: @code{'()})"
  11742. msgstr ""
  11743. #. type: table
  11744. #: guix-git/doc/guix.texi:6740
  11745. msgid "The arguments that should be passed to the build system. This is a list, typically containing sequential keyword-value pairs."
  11746. msgstr ""
  11747. #. type: item
  11748. #: guix-git/doc/guix.texi:6741
  11749. #, no-wrap
  11750. msgid "@code{inputs} (default: @code{'()})"
  11751. msgstr ""
  11752. #. type: itemx
  11753. #: guix-git/doc/guix.texi:6742
  11754. #, no-wrap
  11755. msgid "@code{native-inputs} (default: @code{'()})"
  11756. msgstr ""
  11757. #. type: itemx
  11758. #: guix-git/doc/guix.texi:6743
  11759. #, no-wrap
  11760. msgid "@code{propagated-inputs} (default: @code{'()})"
  11761. msgstr ""
  11762. #. type: cindex
  11763. #: guix-git/doc/guix.texi:6744
  11764. #, no-wrap
  11765. msgid "inputs, of packages"
  11766. msgstr ""
  11767. #. type: table
  11768. #: guix-git/doc/guix.texi:6752
  11769. msgid "These fields list dependencies of the package. Each one is a list of tuples, where each tuple has a label for the input (a string) as its first element, a package, origin, or derivation as its second element, and optionally the name of the output thereof that should be used, which defaults to @code{\"out\"} (@pxref{Packages with Multiple Outputs}, for more on package outputs). For example, the list below specifies three inputs:"
  11770. msgstr ""
  11771. #. type: lisp
  11772. #: guix-git/doc/guix.texi:6757
  11773. #, no-wrap
  11774. msgid ""
  11775. "`((\"libffi\" ,libffi)\n"
  11776. " (\"libunistring\" ,libunistring)\n"
  11777. " (\"glib:bin\" ,glib \"bin\")) ;the \"bin\" output of Glib\n"
  11778. msgstr ""
  11779. #. type: cindex
  11780. #: guix-git/doc/guix.texi:6759
  11781. #, no-wrap
  11782. msgid "cross compilation, package dependencies"
  11783. msgstr ""
  11784. #. type: table
  11785. #: guix-git/doc/guix.texi:6765
  11786. 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."
  11787. msgstr ""
  11788. #. type: table
  11789. #: guix-git/doc/guix.texi:6770
  11790. 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})."
  11791. msgstr ""
  11792. #. type: anchor{#1}
  11793. #: guix-git/doc/guix.texi:6778
  11794. msgid "package-propagated-inputs"
  11795. msgstr ""
  11796. #. type: table
  11797. #: guix-git/doc/guix.texi:6778
  11798. 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)."
  11799. msgstr ""
  11800. #. type: table
  11801. #: guix-git/doc/guix.texi:6782
  11802. 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."
  11803. msgstr ""
  11804. #. type: table
  11805. #: guix-git/doc/guix.texi:6789
  11806. 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}."
  11807. msgstr ""
  11808. #. type: item
  11809. #: guix-git/doc/guix.texi:6790
  11810. #, no-wrap
  11811. msgid "@code{outputs} (default: @code{'(\"out\")})"
  11812. msgstr ""
  11813. #. type: table
  11814. #: guix-git/doc/guix.texi:6793
  11815. msgid "The list of output names of the package. @xref{Packages with Multiple Outputs}, for typical uses of additional outputs."
  11816. msgstr ""
  11817. #. type: item
  11818. #: guix-git/doc/guix.texi:6794
  11819. #, no-wrap
  11820. msgid "@code{native-search-paths} (default: @code{'()})"
  11821. msgstr ""
  11822. #. type: itemx
  11823. #: guix-git/doc/guix.texi:6795
  11824. #, no-wrap
  11825. msgid "@code{search-paths} (default: @code{'()})"
  11826. msgstr ""
  11827. #. type: table
  11828. #: guix-git/doc/guix.texi:6798
  11829. msgid "A list of @code{search-path-specification} objects describing search-path environment variables honored by the package."
  11830. msgstr ""
  11831. #. type: item
  11832. #: guix-git/doc/guix.texi:6799
  11833. #, no-wrap
  11834. msgid "@code{replacement} (default: @code{#f})"
  11835. msgstr ""
  11836. #. type: table
  11837. #: guix-git/doc/guix.texi:6803
  11838. 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."
  11839. msgstr ""
  11840. #. type: item
  11841. #: guix-git/doc/guix.texi:6804 guix-git/doc/guix.texi:12159
  11842. #, no-wrap
  11843. msgid "synopsis"
  11844. msgstr ""
  11845. #. type: table
  11846. #: guix-git/doc/guix.texi:6806
  11847. msgid "A one-line description of the package."
  11848. msgstr ""
  11849. #. type: code{#1}
  11850. #: guix-git/doc/guix.texi:6807 guix-git/doc/guix.texi:12160
  11851. #: guix-git/doc/guix.texi:34824 guix-git/doc/guix.texi:34975
  11852. #, no-wrap
  11853. msgid "description"
  11854. msgstr ""
  11855. #. type: table
  11856. #: guix-git/doc/guix.texi:6809
  11857. msgid "A more elaborate description of the package."
  11858. msgstr ""
  11859. #. type: code{#1}
  11860. #: guix-git/doc/guix.texi:6810
  11861. #, no-wrap
  11862. msgid "license"
  11863. msgstr ""
  11864. #. type: cindex
  11865. #: guix-git/doc/guix.texi:6811
  11866. #, no-wrap
  11867. msgid "license, of packages"
  11868. msgstr ""
  11869. #. type: table
  11870. #: guix-git/doc/guix.texi:6814
  11871. msgid "The license of the package; a value from @code{(guix licenses)}, or a list of such values."
  11872. msgstr ""
  11873. #. type: itemx
  11874. #: guix-git/doc/guix.texi:6815 guix-git/doc/guix.texi:12168
  11875. #, no-wrap
  11876. msgid "home-page"
  11877. msgstr ""
  11878. #. type: table
  11879. #: guix-git/doc/guix.texi:6817
  11880. msgid "The URL to the home-page of the package, as a string."
  11881. msgstr ""
  11882. #. type: item
  11883. #: guix-git/doc/guix.texi:6818
  11884. #, fuzzy, no-wrap
  11885. msgid "@code{supported-systems} (default: @code{%supported-systems})"
  11886. msgstr "@code{port}(默认值:@code{22})"
  11887. #. type: table
  11888. #: guix-git/doc/guix.texi:6821
  11889. msgid "The list of systems supported by the package, as strings of the form @code{architecture-kernel}, for example @code{\"x86_64-linux\"}."
  11890. msgstr ""
  11891. #. type: item
  11892. #: guix-git/doc/guix.texi:6822
  11893. #, no-wrap
  11894. msgid "@code{location} (default: source location of the @code{package} form)"
  11895. msgstr ""
  11896. #. type: table
  11897. #: guix-git/doc/guix.texi:6826
  11898. 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."
  11899. msgstr ""
  11900. #. type: deffn
  11901. #: guix-git/doc/guix.texi:6829
  11902. #, no-wrap
  11903. msgid "{Scheme Syntax} this-package"
  11904. msgstr ""
  11905. #. type: deffn
  11906. #: guix-git/doc/guix.texi:6832
  11907. msgid "When used in the @emph{lexical scope} of a package field definition, this identifier resolves to the package being defined."
  11908. msgstr ""
  11909. #. type: deffn
  11910. #: guix-git/doc/guix.texi:6835
  11911. msgid "The example below shows how to add a package as a native input of itself when cross-compiling:"
  11912. msgstr ""
  11913. #. type: lisp
  11914. #: guix-git/doc/guix.texi:6840
  11915. #, no-wrap
  11916. msgid ""
  11917. "(package\n"
  11918. " (name \"guile\")\n"
  11919. " ;; ...\n"
  11920. "\n"
  11921. msgstr ""
  11922. #. type: lisp
  11923. #: guix-git/doc/guix.texi:6846
  11924. #, no-wrap
  11925. msgid ""
  11926. " ;; When cross-compiled, Guile, for example, depends on\n"
  11927. " ;; a native version of itself. Add it here.\n"
  11928. " (native-inputs (if (%current-target-system)\n"
  11929. " `((\"self\" ,this-package))\n"
  11930. " '())))\n"
  11931. msgstr ""
  11932. #. type: deffn
  11933. #: guix-git/doc/guix.texi:6849
  11934. msgid "It is an error to refer to @code{this-package} outside a package definition."
  11935. msgstr ""
  11936. #. type: Plain text
  11937. #: guix-git/doc/guix.texi:6855
  11938. 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."
  11939. msgstr ""
  11940. #. type: cindex
  11941. #: guix-git/doc/guix.texi:6856
  11942. #, no-wrap
  11943. msgid "tool chain, choosing a package's tool chain"
  11944. msgstr ""
  11945. #. type: deffn
  11946. #: guix-git/doc/guix.texi:6857
  11947. #, no-wrap
  11948. msgid "{Scheme Procedure} package-with-c-toolchain @var{package} @var{toolchain}"
  11949. msgstr ""
  11950. #. type: deffn
  11951. #: guix-git/doc/guix.texi:6862
  11952. 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."
  11953. msgstr ""
  11954. #. type: deffn
  11955. #: guix-git/doc/guix.texi:6866
  11956. 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:"
  11957. msgstr ""
  11958. #. type: lisp
  11959. #: guix-git/doc/guix.texi:6870
  11960. #, no-wrap
  11961. msgid ""
  11962. "(let ((toolchain (specification->package \"gcc-toolchain@@10\")))\n"
  11963. " (package-with-c-toolchain hello `((\"toolchain\" ,toolchain))))\n"
  11964. msgstr ""
  11965. #. type: deffn
  11966. #: guix-git/doc/guix.texi:6878
  11967. 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."
  11968. msgstr ""
  11969. #. type: subsection
  11970. #: guix-git/doc/guix.texi:6881
  11971. #, no-wrap
  11972. msgid "@code{origin} Reference"
  11973. msgstr ""
  11974. #. type: Plain text
  11975. #: guix-git/doc/guix.texi:6889
  11976. 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."
  11977. msgstr ""
  11978. #. type: deftp
  11979. #: guix-git/doc/guix.texi:6890
  11980. #, no-wrap
  11981. msgid "{Data Type} origin"
  11982. msgstr ""
  11983. #. type: deftp
  11984. #: guix-git/doc/guix.texi:6892
  11985. msgid "This is the data type representing a source code origin."
  11986. msgstr ""
  11987. #. type: code{#1}
  11988. #: guix-git/doc/guix.texi:6894 guix-git/doc/guix.texi:25501
  11989. #, no-wrap
  11990. msgid "uri"
  11991. msgstr ""
  11992. #. type: table
  11993. #: guix-git/doc/guix.texi:6899
  11994. 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."
  11995. msgstr ""
  11996. #. type: cindex
  11997. #: guix-git/doc/guix.texi:6900
  11998. #, no-wrap
  11999. msgid "fixed-output derivations, for download"
  12000. msgstr ""
  12001. #. type: code{#1}
  12002. #: guix-git/doc/guix.texi:6901
  12003. #, no-wrap
  12004. msgid "method"
  12005. msgstr ""
  12006. #. type: table
  12007. #: guix-git/doc/guix.texi:6908
  12008. 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})."
  12009. msgstr ""
  12010. #. type: table
  12011. #: guix-git/doc/guix.texi:6912
  12012. 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)."
  12013. msgstr ""
  12014. #. type: code{#1}
  12015. #: guix-git/doc/guix.texi:6913
  12016. #, no-wrap
  12017. msgid "sha256"
  12018. msgstr ""
  12019. #. type: table
  12020. #: guix-git/doc/guix.texi:6917
  12021. 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."
  12022. msgstr ""
  12023. #. type: code{#1}
  12024. #: guix-git/doc/guix.texi:6918
  12025. #, no-wrap
  12026. msgid "hash"
  12027. msgstr ""
  12028. #. type: table
  12029. #: guix-git/doc/guix.texi:6921
  12030. msgid "The @code{content-hash} object of the source---see below for how to use @code{content-hash}."
  12031. msgstr ""
  12032. #. type: table
  12033. #: guix-git/doc/guix.texi:6925
  12034. msgid "You can obtain this information using @code{guix download} (@pxref{Invoking guix download}) or @code{guix hash} (@pxref{Invoking guix hash})."
  12035. msgstr ""
  12036. #. type: item
  12037. #: guix-git/doc/guix.texi:6926
  12038. #, no-wrap
  12039. msgid "@code{file-name} (default: @code{#f})"
  12040. msgstr ""
  12041. #. type: table
  12042. #: guix-git/doc/guix.texi:6932
  12043. 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."
  12044. msgstr ""
  12045. #. type: item
  12046. #: guix-git/doc/guix.texi:6933
  12047. #, no-wrap
  12048. msgid "@code{patches} (default: @code{'()})"
  12049. msgstr ""
  12050. #. type: table
  12051. #: guix-git/doc/guix.texi:6936
  12052. 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."
  12053. msgstr ""
  12054. #. type: table
  12055. #: guix-git/doc/guix.texi:6940
  12056. 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}."
  12057. msgstr ""
  12058. #. type: item
  12059. #: guix-git/doc/guix.texi:6941
  12060. #, no-wrap
  12061. msgid "@code{snippet} (default: @code{#f})"
  12062. msgstr ""
  12063. #. type: table
  12064. #: guix-git/doc/guix.texi:6945
  12065. 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."
  12066. msgstr ""
  12067. #. type: item
  12068. #: guix-git/doc/guix.texi:6946
  12069. #, no-wrap
  12070. msgid "@code{patch-flags} (default: @code{'(\"-p1\")})"
  12071. msgstr ""
  12072. #. type: table
  12073. #: guix-git/doc/guix.texi:6949
  12074. msgid "A list of command-line flags that should be passed to the @code{patch} command."
  12075. msgstr ""
  12076. #. type: item
  12077. #: guix-git/doc/guix.texi:6950
  12078. #, no-wrap
  12079. msgid "@code{patch-inputs} (default: @code{#f})"
  12080. msgstr ""
  12081. #. type: table
  12082. #: guix-git/doc/guix.texi:6954
  12083. 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."
  12084. msgstr ""
  12085. #. type: item
  12086. #: guix-git/doc/guix.texi:6955 guix-git/doc/guix.texi:25374
  12087. #, no-wrap
  12088. msgid "@code{modules} (default: @code{'()})"
  12089. msgstr ""
  12090. #. type: table
  12091. #: guix-git/doc/guix.texi:6958
  12092. msgid "A list of Guile modules that should be loaded during the patching process and while running the code in the @code{snippet} field."
  12093. msgstr ""
  12094. #. type: item
  12095. #: guix-git/doc/guix.texi:6959
  12096. #, no-wrap
  12097. msgid "@code{patch-guile} (default: @code{#f})"
  12098. msgstr ""
  12099. #. type: table
  12100. #: guix-git/doc/guix.texi:6962
  12101. msgid "The Guile package that should be used in the patching process. When this is @code{#f}, a sensible default is used."
  12102. msgstr ""
  12103. #. type: deftp
  12104. #: guix-git/doc/guix.texi:6965
  12105. #, no-wrap
  12106. msgid "{Data Type} content-hash @var{value} [@var{algorithm}]"
  12107. msgstr ""
  12108. #. type: deftp
  12109. #: guix-git/doc/guix.texi:6969
  12110. 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}."
  12111. msgstr ""
  12112. #. type: deftp
  12113. #: guix-git/doc/guix.texi:6972
  12114. msgid "@var{value} can be a literal string, in which case it is base32-decoded, or it can be a bytevector."
  12115. msgstr ""
  12116. #. type: deftp
  12117. #: guix-git/doc/guix.texi:6974
  12118. #, fuzzy
  12119. msgid "The following forms are all equivalent:"
  12120. msgstr "这些依赖是可选的:"
  12121. #. type: lisp
  12122. #: guix-git/doc/guix.texi:6983
  12123. #, no-wrap
  12124. msgid ""
  12125. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\")\n"
  12126. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"\n"
  12127. " sha256)\n"
  12128. "(content-hash (base32\n"
  12129. " \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"))\n"
  12130. "(content-hash (base64 \"kkb+RPaP7uyMZmu4eXPVkM4BN8yhRd8BTHLslb6f/Rc=\")\n"
  12131. " sha256)\n"
  12132. msgstr ""
  12133. #. type: deftp
  12134. #: guix-git/doc/guix.texi:6988
  12135. 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}."
  12136. msgstr ""
  12137. #. type: Plain text
  12138. #: guix-git/doc/guix.texi:6994
  12139. 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."
  12140. msgstr ""
  12141. #. type: deffn
  12142. #: guix-git/doc/guix.texi:6995
  12143. #, no-wrap
  12144. msgid "{Scheme Procedure} url-fetch @var{url} @var{hash-algo} @var{hash} @"
  12145. msgstr ""
  12146. #. type: deffn
  12147. #: guix-git/doc/guix.texi:7003
  12148. 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."
  12149. msgstr ""
  12150. #. type: deffn
  12151. #: guix-git/doc/guix.texi:7006
  12152. 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}."
  12153. msgstr ""
  12154. #. type: deffn
  12155. #: guix-git/doc/guix.texi:7009
  12156. msgid "Alternatively, when URL starts with @code{file://}, return the corresponding file name in the store."
  12157. msgstr ""
  12158. #. type: Plain text
  12159. #: guix-git/doc/guix.texi:7015
  12160. 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."
  12161. msgstr ""
  12162. #. type: deffn
  12163. #: guix-git/doc/guix.texi:7016
  12164. #, no-wrap
  12165. msgid "{Scheme Procedure} git-fetch @var{ref} @var{hash-algo} @var{hash}"
  12166. msgstr ""
  12167. #. type: deffn
  12168. #: guix-git/doc/guix.texi:7021
  12169. 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}."
  12170. msgstr ""
  12171. #. type: deftp
  12172. #: guix-git/doc/guix.texi:7023
  12173. #, fuzzy, no-wrap
  12174. msgid "{Data Type} git-reference"
  12175. msgstr "{数据类型} build-machine"
  12176. #. type: deftp
  12177. #: guix-git/doc/guix.texi:7026
  12178. msgid "This data type represents a Git reference for @code{git-fetch} to retrieve."
  12179. msgstr ""
  12180. #. type: code{#1}
  12181. #: guix-git/doc/guix.texi:7028 guix-git/doc/guix.texi:23135
  12182. #, no-wrap
  12183. msgid "url"
  12184. msgstr ""
  12185. #. type: table
  12186. #: guix-git/doc/guix.texi:7030
  12187. msgid "The URL of the Git repository to clone."
  12188. msgstr ""
  12189. #. type: code{#1}
  12190. #: guix-git/doc/guix.texi:7031
  12191. #, no-wrap
  12192. msgid "commit"
  12193. msgstr ""
  12194. #. type: table
  12195. #: guix-git/doc/guix.texi:7036
  12196. 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}."
  12197. msgstr ""
  12198. #. type: item
  12199. #: guix-git/doc/guix.texi:7037
  12200. #, fuzzy, no-wrap
  12201. msgid "@code{recursive?} (default: @code{#f})"
  12202. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  12203. #. type: table
  12204. #: guix-git/doc/guix.texi:7039
  12205. msgid "This Boolean indicates whether to recursively fetch Git sub-modules."
  12206. msgstr ""
  12207. #. type: deftp
  12208. #: guix-git/doc/guix.texi:7043
  12209. msgid "The example below denotes the @code{v2.10} tag of the GNU@tie{}Hello repository:"
  12210. msgstr ""
  12211. #. type: lisp
  12212. #: guix-git/doc/guix.texi:7048
  12213. #, fuzzy, no-wrap
  12214. msgid ""
  12215. "(git-reference\n"
  12216. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  12217. " (commit \"v2.10\"))\n"
  12218. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  12219. #. type: deftp
  12220. #: guix-git/doc/guix.texi:7052
  12221. msgid "This is equivalent to the reference below, which explicitly names the commit:"
  12222. msgstr ""
  12223. #. type: lisp
  12224. #: guix-git/doc/guix.texi:7057
  12225. #, no-wrap
  12226. msgid ""
  12227. "(git-reference\n"
  12228. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  12229. " (commit \"dc7dc56a00e48fe6f231a58f6537139fe2908fb9\"))\n"
  12230. msgstr ""
  12231. #. type: Plain text
  12232. #: guix-git/doc/guix.texi:7063
  12233. 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."
  12234. msgstr ""
  12235. #. type: deffn
  12236. #: guix-git/doc/guix.texi:7064
  12237. #, no-wrap
  12238. msgid "{Scheme Procedure} hg-fetch @var{ref} @var{hash-algo} @var{hash} @"
  12239. msgstr ""
  12240. #. type: deffn
  12241. #: guix-git/doc/guix.texi:7070
  12242. 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}."
  12243. msgstr ""
  12244. #. type: cindex
  12245. #: guix-git/doc/guix.texi:7075
  12246. #, fuzzy, no-wrap
  12247. msgid "customizing packages"
  12248. msgstr "定制软件包"
  12249. #. type: cindex
  12250. #: guix-git/doc/guix.texi:7076
  12251. #, fuzzy, no-wrap
  12252. msgid "variants, of packages"
  12253. msgstr "创建软件包的变体。"
  12254. #. type: Plain text
  12255. #: guix-git/doc/guix.texi:7086
  12256. 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!"
  12257. msgstr ""
  12258. #. type: cindex
  12259. #: guix-git/doc/guix.texi:7087
  12260. #, fuzzy, no-wrap
  12261. msgid "inherit, for package definitions"
  12262. msgstr "从软件包定义里寻找错误。"
  12263. #. type: Plain text
  12264. #: guix-git/doc/guix.texi:7094
  12265. 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."
  12266. msgstr ""
  12267. #. type: Plain text
  12268. #: guix-git/doc/guix.texi:7099
  12269. 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!):"
  12270. msgstr ""
  12271. #. type: lisp
  12272. #: guix-git/doc/guix.texi:7102
  12273. #, no-wrap
  12274. msgid ""
  12275. "(use-modules (gnu packages base)) ;for 'hello'\n"
  12276. "\n"
  12277. msgstr ""
  12278. #. type: lisp
  12279. #: guix-git/doc/guix.texi:7114
  12280. #, no-wrap
  12281. msgid ""
  12282. "(define hello-2.2\n"
  12283. " (package\n"
  12284. " (inherit hello)\n"
  12285. " (version \"2.2\")\n"
  12286. " (source (origin\n"
  12287. " (method url-fetch)\n"
  12288. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  12289. " \".tar.gz\"))\n"
  12290. " (sha256\n"
  12291. " (base32\n"
  12292. " \"0lappv4slgb5spyqbh6yl5r013zv72yqg2pcl30mginf3wdqd8k9\"))))))\n"
  12293. msgstr ""
  12294. #. type: Plain text
  12295. #: guix-git/doc/guix.texi:7123
  12296. 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."
  12297. msgstr ""
  12298. #. type: Plain text
  12299. #: guix-git/doc/guix.texi:7129
  12300. 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:"
  12301. msgstr ""
  12302. #. type: lisp
  12303. #: guix-git/doc/guix.texi:7133
  12304. #, no-wrap
  12305. msgid ""
  12306. "(use-modules (gnu packages gdb) ;for 'gdb'\n"
  12307. " (srfi srfi-1)) ;for 'alist-delete'\n"
  12308. "\n"
  12309. msgstr ""
  12310. #. type: lisp
  12311. #: guix-git/doc/guix.texi:7139
  12312. #, no-wrap
  12313. msgid ""
  12314. "(define gdb-sans-guile\n"
  12315. " (package\n"
  12316. " (inherit gdb)\n"
  12317. " (inputs (alist-delete \"guile\"\n"
  12318. " (package-inputs gdb)))))\n"
  12319. msgstr ""
  12320. #. type: Plain text
  12321. #: guix-git/doc/guix.texi:7145
  12322. msgid "The @code{alist-delete} call above removes the tuple from the @code{inputs} field that has @code{\"guile\"} as its first element (@pxref{SRFI-1 Association Lists,,, guile, GNU Guile Reference Manual})."
  12323. msgstr ""
  12324. #. type: Plain text
  12325. #: guix-git/doc/guix.texi:7153
  12326. 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:"
  12327. msgstr ""
  12328. #. type: lisp
  12329. #: guix-git/doc/guix.texi:7164
  12330. #, no-wrap
  12331. msgid ""
  12332. "(define (make-lua-socket name lua)\n"
  12333. " ;; Return a luasocket package built with LUA.\n"
  12334. " (package\n"
  12335. " (name name)\n"
  12336. " (version \"3.0\")\n"
  12337. " ;; several fields omitted\n"
  12338. " (inputs\n"
  12339. " `((\"lua\" ,lua)))\n"
  12340. " (synopsis \"Socket library for Lua\")))\n"
  12341. "\n"
  12342. msgstr ""
  12343. #. type: lisp
  12344. #: guix-git/doc/guix.texi:7167
  12345. #, no-wrap
  12346. msgid ""
  12347. "(define-public lua5.1-socket\n"
  12348. " (make-lua-socket \"lua5.1-socket\" lua-5.1))\n"
  12349. "\n"
  12350. msgstr ""
  12351. #. type: lisp
  12352. #: guix-git/doc/guix.texi:7170
  12353. #, no-wrap
  12354. msgid ""
  12355. "(define-public lua5.2-socket\n"
  12356. " (make-lua-socket \"lua5.2-socket\" lua-5.2))\n"
  12357. msgstr ""
  12358. #. type: Plain text
  12359. #: guix-git/doc/guix.texi:7178
  12360. 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})."
  12361. msgstr ""
  12362. #. type: cindex
  12363. #: guix-git/doc/guix.texi:7179
  12364. #, no-wrap
  12365. msgid "package transformations"
  12366. msgstr ""
  12367. #. type: Plain text
  12368. #: guix-git/doc/guix.texi:7184
  12369. 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}):"
  12370. msgstr ""
  12371. #. type: deffn
  12372. #: guix-git/doc/guix.texi:7185
  12373. #, no-wrap
  12374. msgid "{Scheme Procedure} options->transformation @var{opts}"
  12375. msgstr ""
  12376. #. type: deffn
  12377. #: guix-git/doc/guix.texi:7189
  12378. 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:"
  12379. msgstr ""
  12380. #. type: lisp
  12381. #: guix-git/doc/guix.texi:7193
  12382. #, no-wrap
  12383. msgid ""
  12384. "((with-branch . \"guile-gcrypt=master\")\n"
  12385. " (without-tests . \"libgcrypt\"))\n"
  12386. msgstr ""
  12387. #. type: deffn
  12388. #: guix-git/doc/guix.texi:7197
  12389. msgid "Each symbol names a transformation and the corresponding string is an argument to that transformation."
  12390. msgstr ""
  12391. #. type: Plain text
  12392. #: guix-git/doc/guix.texi:7200
  12393. msgid "For instance, a manifest equivalent to this command:"
  12394. msgstr ""
  12395. #. type: example
  12396. #: guix-git/doc/guix.texi:7205
  12397. #, no-wrap
  12398. msgid ""
  12399. "guix build guix \\\n"
  12400. " --with-branch=guile-gcrypt=master \\\n"
  12401. " --with-debug-info=zlib\n"
  12402. msgstr ""
  12403. #. type: Plain text
  12404. #: guix-git/doc/guix.texi:7209
  12405. msgid "... would look like this:"
  12406. msgstr ""
  12407. #. type: lisp
  12408. #: guix-git/doc/guix.texi:7212
  12409. #, no-wrap
  12410. msgid ""
  12411. "(use-modules (guix transformations))\n"
  12412. "\n"
  12413. msgstr ""
  12414. #. type: lisp
  12415. #: guix-git/doc/guix.texi:7218
  12416. #, no-wrap
  12417. msgid ""
  12418. "(define transform\n"
  12419. " ;; The package transformation procedure.\n"
  12420. " (options->transformation\n"
  12421. " '((with-branch . \"guile-gcrypt=master\")\n"
  12422. " (with-debug-info . \"zlib\"))))\n"
  12423. "\n"
  12424. msgstr ""
  12425. #. type: lisp
  12426. #: guix-git/doc/guix.texi:7221
  12427. #, no-wrap
  12428. msgid ""
  12429. "(packages->manifest\n"
  12430. " (list (transform (specification->package \"guix\"))))\n"
  12431. msgstr ""
  12432. #. type: cindex
  12433. #: guix-git/doc/guix.texi:7223
  12434. #, no-wrap
  12435. msgid "input rewriting"
  12436. msgstr ""
  12437. #. type: cindex
  12438. #: guix-git/doc/guix.texi:7224
  12439. #, no-wrap
  12440. msgid "dependency graph rewriting"
  12441. msgstr ""
  12442. #. type: Plain text
  12443. #: guix-git/doc/guix.texi:7231
  12444. 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."
  12445. msgstr ""
  12446. #. type: Plain text
  12447. #: guix-git/doc/guix.texi:7235
  12448. 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."
  12449. msgstr ""
  12450. #. type: deffn
  12451. #: guix-git/doc/guix.texi:7236
  12452. #, no-wrap
  12453. msgid "{Scheme Procedure} package-input-rewriting @var{replacements} @"
  12454. msgstr ""
  12455. #. type: deffn
  12456. #: guix-git/doc/guix.texi:7243
  12457. 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."
  12458. msgstr ""
  12459. #. type: deffn
  12460. #: guix-git/doc/guix.texi:7246
  12461. msgid "Optionally, @var{rewrite-name} is a one-argument procedure that takes the name of a package and returns its new name after rewrite."
  12462. msgstr ""
  12463. #. type: table
  12464. #: guix-git/doc/guix.texi:7250 guix-git/doc/guix.texi:10602
  12465. msgid "Consider this example:"
  12466. msgstr ""
  12467. #. type: lisp
  12468. #: guix-git/doc/guix.texi:7256
  12469. #, no-wrap
  12470. msgid ""
  12471. "(define libressl-instead-of-openssl\n"
  12472. " ;; This is a procedure to replace OPENSSL by LIBRESSL,\n"
  12473. " ;; recursively.\n"
  12474. " (package-input-rewriting `((,openssl . ,libressl))))\n"
  12475. "\n"
  12476. msgstr ""
  12477. #. type: lisp
  12478. #: guix-git/doc/guix.texi:7259
  12479. #, no-wrap
  12480. msgid ""
  12481. "(define git-with-libressl\n"
  12482. " (libressl-instead-of-openssl git))\n"
  12483. msgstr ""
  12484. #. type: Plain text
  12485. #: guix-git/doc/guix.texi:7267
  12486. 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}})."
  12487. msgstr ""
  12488. #. type: Plain text
  12489. #: guix-git/doc/guix.texi:7270
  12490. msgid "The following variant of @code{package-input-rewriting} can match packages to be replaced by name rather than by identity."
  12491. msgstr ""
  12492. #. type: deffn
  12493. #: guix-git/doc/guix.texi:7271
  12494. #, no-wrap
  12495. msgid "{Scheme Procedure} package-input-rewriting/spec @var{replacements} [#:deep? #t]"
  12496. msgstr ""
  12497. #. type: deffn
  12498. #: guix-git/doc/guix.texi:7278
  12499. 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."
  12500. msgstr ""
  12501. #. type: Plain text
  12502. #: guix-git/doc/guix.texi:7281
  12503. msgid "The example above could be rewritten this way:"
  12504. msgstr ""
  12505. #. type: lisp
  12506. #: guix-git/doc/guix.texi:7286
  12507. #, no-wrap
  12508. msgid ""
  12509. "(define libressl-instead-of-openssl\n"
  12510. " ;; Replace all the packages called \"openssl\" with LibreSSL.\n"
  12511. " (package-input-rewriting/spec `((\"openssl\" . ,(const libressl)))))\n"
  12512. msgstr ""
  12513. #. type: Plain text
  12514. #: guix-git/doc/guix.texi:7291
  12515. 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."
  12516. msgstr ""
  12517. #. type: Plain text
  12518. #: guix-git/doc/guix.texi:7295
  12519. msgid "A more generic procedure to rewrite a package dependency graph is @code{package-mapping}: it supports arbitrary changes to nodes in the graph."
  12520. msgstr ""
  12521. #. type: deffn
  12522. #: guix-git/doc/guix.texi:7296
  12523. #, no-wrap
  12524. msgid "{Scheme Procedure} package-mapping @var{proc} [@var{cut?}] [#:deep? #f]"
  12525. msgstr ""
  12526. #. type: deffn
  12527. #: guix-git/doc/guix.texi:7301
  12528. 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."
  12529. msgstr ""
  12530. #. type: cindex
  12531. #: guix-git/doc/guix.texi:7307
  12532. #, no-wrap
  12533. msgid "build system"
  12534. msgstr ""
  12535. #. type: Plain text
  12536. #: guix-git/doc/guix.texi:7312
  12537. 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."
  12538. msgstr ""
  12539. #. type: Plain text
  12540. #: guix-git/doc/guix.texi:7316
  12541. 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."
  12542. msgstr ""
  12543. #. type: cindex
  12544. #: guix-git/doc/guix.texi:7317
  12545. #, no-wrap
  12546. msgid "bag (low-level package representation)"
  12547. msgstr ""
  12548. #. type: Plain text
  12549. #: guix-git/doc/guix.texi:7327
  12550. 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}})."
  12551. msgstr ""
  12552. #. type: Plain text
  12553. #: guix-git/doc/guix.texi:7335
  12554. 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})."
  12555. msgstr ""
  12556. #. type: Plain text
  12557. #: guix-git/doc/guix.texi:7339
  12558. 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."
  12559. msgstr ""
  12560. #. type: defvr
  12561. #: guix-git/doc/guix.texi:7340
  12562. #, no-wrap
  12563. msgid "{Scheme Variable} gnu-build-system"
  12564. msgstr ""
  12565. #. type: defvr
  12566. #: guix-git/doc/guix.texi:7344
  12567. msgid "@code{gnu-build-system} represents the GNU Build System, and variants thereof (@pxref{Configuration, configuration and makefile conventions,, standards, GNU Coding Standards})."
  12568. msgstr ""
  12569. #. type: cindex
  12570. #: guix-git/doc/guix.texi:7345 guix-git/doc/guix.texi:8287
  12571. #: guix-git/doc/guix.texi:8742
  12572. #, no-wrap
  12573. msgid "build phases"
  12574. msgstr ""
  12575. #. type: defvr
  12576. #: guix-git/doc/guix.texi:7352
  12577. 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."
  12578. msgstr ""
  12579. #. type: defvr
  12580. #: guix-git/doc/guix.texi:7359
  12581. 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."
  12582. msgstr ""
  12583. #. type: defvr
  12584. #: guix-git/doc/guix.texi:7363
  12585. 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:"
  12586. msgstr ""
  12587. #. type: item
  12588. #: guix-git/doc/guix.texi:7365
  12589. #, no-wrap
  12590. msgid "#:phases"
  12591. msgstr ""
  12592. #. type: table
  12593. #: guix-git/doc/guix.texi:7368
  12594. msgid "This argument specifies build-side code that evaluates to an alist of build phases. @xref{Build Phases}, for more information."
  12595. msgstr ""
  12596. #. type: item
  12597. #: guix-git/doc/guix.texi:7369
  12598. #, fuzzy, no-wrap
  12599. msgid "#:configure-flags"
  12600. msgstr "系统配置"
  12601. #. type: table
  12602. #: guix-git/doc/guix.texi:7372
  12603. msgid "This is a list of flags (strings) passed to the @command{configure} script. @xref{Defining Packages}, for an example."
  12604. msgstr ""
  12605. #. type: item
  12606. #: guix-git/doc/guix.texi:7373
  12607. #, no-wrap
  12608. msgid "#:make-flags"
  12609. msgstr ""
  12610. #. type: table
  12611. #: guix-git/doc/guix.texi:7377
  12612. msgid "This list of strings contains flags passed as arguments to @command{make} invocations in the @code{build}, @code{check}, and @code{install} phases."
  12613. msgstr ""
  12614. #. type: item
  12615. #: guix-git/doc/guix.texi:7378
  12616. #, no-wrap
  12617. msgid "#:out-of-source?"
  12618. msgstr ""
  12619. #. type: table
  12620. #: guix-git/doc/guix.texi:7381
  12621. msgid "This Boolean, @code{#f} by default, indicates whether to run builds in a build directory separate from the source tree."
  12622. msgstr ""
  12623. #. type: table
  12624. #: guix-git/doc/guix.texi:7386
  12625. 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}."
  12626. msgstr ""
  12627. #. type: item
  12628. #: guix-git/doc/guix.texi:7387
  12629. #, no-wrap
  12630. msgid "#:tests?"
  12631. msgstr ""
  12632. #. type: table
  12633. #: guix-git/doc/guix.texi:7390
  12634. msgid "This Boolean, @code{#t} by default, indicates whether the @code{check} phase should run the package's test suite."
  12635. msgstr ""
  12636. #. type: item
  12637. #: guix-git/doc/guix.texi:7391
  12638. #, no-wrap
  12639. msgid "#:test-target"
  12640. msgstr ""
  12641. #. type: table
  12642. #: guix-git/doc/guix.texi:7394
  12643. msgid "This string, @code{\"check\"} by default, gives the name of the makefile target used by the @code{check} phase."
  12644. msgstr ""
  12645. #. type: item
  12646. #: guix-git/doc/guix.texi:7395
  12647. #, no-wrap
  12648. msgid "#:parallel-build?"
  12649. msgstr ""
  12650. #. type: itemx
  12651. #: guix-git/doc/guix.texi:7396
  12652. #, no-wrap
  12653. msgid "#:parallel-tests?"
  12654. msgstr ""
  12655. #. type: table
  12656. #: guix-git/doc/guix.texi:7403
  12657. 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}})."
  12658. msgstr ""
  12659. #. type: cindex
  12660. #: guix-git/doc/guix.texi:7404
  12661. #, no-wrap
  12662. msgid "RUNPATH, validation"
  12663. msgstr ""
  12664. #. type: item
  12665. #: guix-git/doc/guix.texi:7405
  12666. #, no-wrap
  12667. msgid "#:validate-runpath?"
  12668. msgstr ""
  12669. #. type: table
  12670. #: guix-git/doc/guix.texi:7409
  12671. 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."
  12672. msgstr ""
  12673. #. type: table
  12674. #: guix-git/doc/guix.texi:7417
  12675. 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}."
  12676. msgstr ""
  12677. #. type: item
  12678. #: guix-git/doc/guix.texi:7418
  12679. #, fuzzy, no-wrap
  12680. msgid "#:substitutable?"
  12681. msgstr "substitutes"
  12682. #. type: table
  12683. #: guix-git/doc/guix.texi:7422
  12684. 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})."
  12685. msgstr ""
  12686. #. type: item
  12687. #: guix-git/doc/guix.texi:7423
  12688. #, no-wrap
  12689. msgid "#:allowed-references"
  12690. msgstr ""
  12691. #. type: itemx
  12692. #: guix-git/doc/guix.texi:7424
  12693. #, no-wrap
  12694. msgid "#:disallowed-references"
  12695. msgstr ""
  12696. #. type: table
  12697. #: guix-git/doc/guix.texi:7429
  12698. 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."
  12699. msgstr ""
  12700. #. type: table
  12701. #: guix-git/doc/guix.texi:7434
  12702. 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})."
  12703. msgstr ""
  12704. #. type: defvr
  12705. #: guix-git/doc/guix.texi:7437
  12706. msgid "Most other build systems support these keyword arguments."
  12707. msgstr ""
  12708. #. type: Plain text
  12709. #: guix-git/doc/guix.texi:7444
  12710. 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."
  12711. msgstr ""
  12712. #. type: defvr
  12713. #: guix-git/doc/guix.texi:7445
  12714. #, no-wrap
  12715. msgid "{Scheme Variable} ant-build-system"
  12716. msgstr ""
  12717. #. type: defvr
  12718. #: guix-git/doc/guix.texi:7449
  12719. 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}."
  12720. msgstr ""
  12721. #. type: defvr
  12722. #: guix-git/doc/guix.texi:7454
  12723. 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."
  12724. msgstr ""
  12725. #. type: defvr
  12726. #: guix-git/doc/guix.texi:7460
  12727. 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''."
  12728. msgstr ""
  12729. #. type: defvr
  12730. #: guix-git/doc/guix.texi:7468
  12731. 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."
  12732. msgstr ""
  12733. #. type: defvr
  12734. #: guix-git/doc/guix.texi:7472
  12735. 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."
  12736. msgstr ""
  12737. #. type: defvr
  12738. #: guix-git/doc/guix.texi:7475
  12739. #, no-wrap
  12740. msgid "{Scheme Variable} android-ndk-build-system"
  12741. msgstr ""
  12742. #. type: cindex
  12743. #: guix-git/doc/guix.texi:7476
  12744. #, no-wrap
  12745. msgid "Android distribution"
  12746. msgstr ""
  12747. #. type: cindex
  12748. #: guix-git/doc/guix.texi:7477
  12749. #, no-wrap
  12750. msgid "Android NDK build system"
  12751. msgstr ""
  12752. #. type: defvr
  12753. #: guix-git/doc/guix.texi:7481
  12754. 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."
  12755. msgstr ""
  12756. #. type: defvr
  12757. #: guix-git/doc/guix.texi:7485
  12758. 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."
  12759. msgstr ""
  12760. #. type: defvr
  12761. #: guix-git/doc/guix.texi:7488
  12762. msgid "It's also assumed that the union of all the dependencies of a package has no conflicting files."
  12763. msgstr ""
  12764. #. type: defvr
  12765. #: guix-git/doc/guix.texi:7491
  12766. msgid "For the time being, cross-compilation is not supported - so right now the libraries and header files are assumed to be host tools."
  12767. msgstr ""
  12768. #. type: defvr
  12769. #: guix-git/doc/guix.texi:7494
  12770. #, no-wrap
  12771. msgid "{Scheme Variable} asdf-build-system/source"
  12772. msgstr ""
  12773. #. type: defvrx
  12774. #: guix-git/doc/guix.texi:7495
  12775. #, no-wrap
  12776. msgid "{Scheme Variable} asdf-build-system/sbcl"
  12777. msgstr ""
  12778. #. type: defvrx
  12779. #: guix-git/doc/guix.texi:7496
  12780. #, no-wrap
  12781. msgid "{Scheme Variable} asdf-build-system/ecl"
  12782. msgstr ""
  12783. #. type: defvr
  12784. #: guix-git/doc/guix.texi:7502
  12785. 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."
  12786. msgstr ""
  12787. #. type: defvr
  12788. #: guix-git/doc/guix.texi:7509
  12789. 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."
  12790. msgstr ""
  12791. #. type: defvr
  12792. #: guix-git/doc/guix.texi:7513
  12793. 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}."
  12794. msgstr ""
  12795. #. type: defvr
  12796. #: guix-git/doc/guix.texi:7517
  12797. 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."
  12798. msgstr ""
  12799. #. type: defvr
  12800. #: guix-git/doc/guix.texi:7525
  12801. 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."
  12802. msgstr ""
  12803. #. type: defvr
  12804. #: guix-git/doc/guix.texi:7534
  12805. 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."
  12806. msgstr ""
  12807. #. type: defvr
  12808. #: guix-git/doc/guix.texi:7539
  12809. 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."
  12810. msgstr ""
  12811. #. type: defvr
  12812. #: guix-git/doc/guix.texi:7542
  12813. #, no-wrap
  12814. msgid "{Scheme Variable} cargo-build-system"
  12815. msgstr ""
  12816. #. type: cindex
  12817. #: guix-git/doc/guix.texi:7543
  12818. #, no-wrap
  12819. msgid "Rust programming language"
  12820. msgstr ""
  12821. #. type: cindex
  12822. #: guix-git/doc/guix.texi:7544
  12823. #, no-wrap
  12824. msgid "Cargo (Rust build system)"
  12825. msgstr ""
  12826. #. type: defvr
  12827. #: guix-git/doc/guix.texi:7548
  12828. 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}."
  12829. msgstr ""
  12830. #. type: defvr
  12831. #: guix-git/doc/guix.texi:7551
  12832. 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."
  12833. msgstr ""
  12834. #. type: defvr
  12835. #: guix-git/doc/guix.texi:7561
  12836. 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."
  12837. msgstr ""
  12838. #. type: defvr
  12839. #: guix-git/doc/guix.texi:7571
  12840. 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."
  12841. msgstr ""
  12842. #. type: defvr
  12843. #: guix-git/doc/guix.texi:7573
  12844. #, no-wrap
  12845. msgid "{Scheme Variable} chicken-build-system"
  12846. msgstr ""
  12847. #. type: defvr
  12848. #: guix-git/doc/guix.texi:7578
  12849. 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."
  12850. msgstr ""
  12851. #. type: defvr
  12852. #: guix-git/doc/guix.texi:7581
  12853. msgid "This build system adds @code{chicken} to the package inputs, as well as the packages of @code{gnu-build-system}."
  12854. msgstr ""
  12855. #. type: defvr
  12856. #: guix-git/doc/guix.texi:7585
  12857. 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."
  12858. msgstr ""
  12859. #. type: defvr
  12860. #: guix-git/doc/guix.texi:7587
  12861. msgid "For example, if you are packaging the @code{srfi-1} egg:"
  12862. msgstr ""
  12863. #. type: lisp
  12864. #: guix-git/doc/guix.texi:7590
  12865. #, no-wrap
  12866. msgid "(arguments '(#:egg-name \"srfi-1\"))\n"
  12867. msgstr ""
  12868. #. type: defvr
  12869. #: guix-git/doc/guix.texi:7595
  12870. 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."
  12871. msgstr ""
  12872. #. type: defvr
  12873. #: guix-git/doc/guix.texi:7597
  12874. #, no-wrap
  12875. msgid "{Scheme Variable} copy-build-system"
  12876. msgstr ""
  12877. #. type: defvr
  12878. #: guix-git/doc/guix.texi:7601
  12879. 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."
  12880. msgstr ""
  12881. #. type: defvr
  12882. #: guix-git/doc/guix.texi:7606
  12883. 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}."
  12884. msgstr ""
  12885. #. type: defvr
  12886. #: guix-git/doc/guix.texi:7611
  12887. 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."
  12888. msgstr ""
  12889. #. type: item
  12890. #: guix-git/doc/guix.texi:7613
  12891. #, no-wrap
  12892. msgid "When @var{source} matches a file or directory without trailing slash, install it to @var{target}."
  12893. msgstr ""
  12894. #. type: item
  12895. #: guix-git/doc/guix.texi:7615
  12896. #, no-wrap
  12897. msgid "If @var{target} has a trailing slash, install @var{source} basename beneath @var{target}."
  12898. msgstr ""
  12899. #. type: item
  12900. #: guix-git/doc/guix.texi:7616
  12901. #, no-wrap
  12902. msgid "Otherwise install @var{source} as @var{target}."
  12903. msgstr ""
  12904. #. type: item
  12905. #: guix-git/doc/guix.texi:7619
  12906. #, no-wrap
  12907. msgid "When @var{source} is a directory with a trailing slash, or when @var{filters} are used,"
  12908. msgstr ""
  12909. #. type: itemize
  12910. #: guix-git/doc/guix.texi:7622
  12911. msgid "the trailing slash of @var{target} is implied with the same meaning as above."
  12912. msgstr ""
  12913. #. type: item
  12914. #: guix-git/doc/guix.texi:7623
  12915. #, no-wrap
  12916. msgid "Without @var{filters}, install the full @var{source} @emph{content} to @var{target}."
  12917. msgstr ""
  12918. #. type: item
  12919. #: guix-git/doc/guix.texi:7624
  12920. #, no-wrap
  12921. msgid "With @var{filters} among @code{#:include}, @code{#:include-regexp}, @code{#:exclude},"
  12922. msgstr ""
  12923. #. type: itemize
  12924. #: guix-git/doc/guix.texi:7627
  12925. msgid "@code{#:exclude-regexp}, only select files are installed depending on the filters. Each filters is specified by a list of strings."
  12926. msgstr ""
  12927. #. type: item
  12928. #: guix-git/doc/guix.texi:7628
  12929. #, no-wrap
  12930. msgid "With @code{#:include}, install all the files which the path suffix matches"
  12931. msgstr ""
  12932. #. type: itemize
  12933. #: guix-git/doc/guix.texi:7630
  12934. msgid "at least one of the elements in the given list."
  12935. msgstr ""
  12936. #. type: item
  12937. #: guix-git/doc/guix.texi:7630
  12938. #, no-wrap
  12939. msgid "With @code{#:include-regexp}, install all the files which the"
  12940. msgstr ""
  12941. #. type: itemize
  12942. #: guix-git/doc/guix.texi:7633
  12943. msgid "subpaths match at least one of the regular expressions in the given list."
  12944. msgstr ""
  12945. #. type: item
  12946. #: guix-git/doc/guix.texi:7633
  12947. #, no-wrap
  12948. msgid "The @code{#:exclude} and @code{#:exclude-regexp} filters"
  12949. msgstr ""
  12950. #. type: itemize
  12951. #: guix-git/doc/guix.texi:7638
  12952. 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."
  12953. msgstr ""
  12954. #. type: itemize
  12955. #: guix-git/doc/guix.texi:7642
  12956. msgid "In all cases, the paths relative to @var{source} are preserved within @var{target}."
  12957. msgstr ""
  12958. #. type: defvr
  12959. #: guix-git/doc/guix.texi:7645
  12960. msgid "Examples:"
  12961. msgstr ""
  12962. #. type: item
  12963. #: guix-git/doc/guix.texi:7647
  12964. #, no-wrap
  12965. msgid "@code{(\"foo/bar\" \"share/my-app/\")}: Install @file{bar} to @file{share/my-app/bar}."
  12966. msgstr ""
  12967. #. type: item
  12968. #: guix-git/doc/guix.texi:7648
  12969. #, no-wrap
  12970. msgid "@code{(\"foo/bar\" \"share/my-app/baz\")}: Install @file{bar} to @file{share/my-app/baz}."
  12971. msgstr ""
  12972. #. type: item
  12973. #: guix-git/doc/guix.texi:7649
  12974. #, no-wrap
  12975. msgid "@code{(\"foo/\" \"share/my-app\")}: Install the content of @file{foo} inside @file{share/my-app},"
  12976. msgstr ""
  12977. #. type: itemize
  12978. #: guix-git/doc/guix.texi:7651
  12979. msgid "e.g., install @file{foo/sub/file} to @file{share/my-app/sub/file}."
  12980. msgstr ""
  12981. #. type: item
  12982. #: guix-git/doc/guix.texi:7651
  12983. #, no-wrap
  12984. msgid "@code{(\"foo/\" \"share/my-app\" #:include (\"sub/file\"))}: Install only @file{foo/sub/file} to"
  12985. msgstr ""
  12986. #. type: itemize
  12987. #: guix-git/doc/guix.texi:7653
  12988. msgid "@file{share/my-app/sub/file}."
  12989. msgstr ""
  12990. #. type: item
  12991. #: guix-git/doc/guix.texi:7653
  12992. #, no-wrap
  12993. msgid "@code{(\"foo/sub\" \"share/my-app\" #:include (\"file\"))}: Install @file{foo/sub/file} to"
  12994. msgstr ""
  12995. #. type: itemize
  12996. #: guix-git/doc/guix.texi:7655
  12997. msgid "@file{share/my-app/file}."
  12998. msgstr ""
  12999. #. type: cindex
  13000. #: guix-git/doc/guix.texi:7659
  13001. #, no-wrap
  13002. msgid "Clojure (programming language)"
  13003. msgstr ""
  13004. #. type: cindex
  13005. #: guix-git/doc/guix.texi:7660
  13006. #, no-wrap
  13007. msgid "simple Clojure build system"
  13008. msgstr ""
  13009. #. type: defvr
  13010. #: guix-git/doc/guix.texi:7661
  13011. #, no-wrap
  13012. msgid "{Scheme Variable} clojure-build-system"
  13013. msgstr ""
  13014. #. type: defvr
  13015. #: guix-git/doc/guix.texi:7666
  13016. 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."
  13017. msgstr ""
  13018. #. type: defvr
  13019. #: guix-git/doc/guix.texi:7670
  13020. 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."
  13021. msgstr ""
  13022. #. type: defvr
  13023. #: guix-git/doc/guix.texi:7676
  13024. 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."
  13025. msgstr ""
  13026. #. type: defvr
  13027. #: guix-git/doc/guix.texi:7679
  13028. msgid "This build system is an extension of @code{ant-build-system}, but with the following phases changed:"
  13029. msgstr ""
  13030. #. type: item
  13031. #: guix-git/doc/guix.texi:7682 guix-git/doc/guix.texi:8250
  13032. #: guix-git/doc/guix.texi:8297 guix-git/doc/guix.texi:8366
  13033. #: guix-git/doc/guix.texi:33914 guix-git/doc/guix.texi:36068
  13034. #, no-wrap
  13035. msgid "build"
  13036. msgstr ""
  13037. #. type: table
  13038. #: guix-git/doc/guix.texi:7691
  13039. 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."
  13040. msgstr ""
  13041. #. type: item
  13042. #: guix-git/doc/guix.texi:7692 guix-git/doc/guix.texi:8254
  13043. #: guix-git/doc/guix.texi:8371
  13044. #, no-wrap
  13045. msgid "check"
  13046. msgstr ""
  13047. #. type: table
  13048. #: guix-git/doc/guix.texi:7699
  13049. 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."
  13050. msgstr ""
  13051. #. type: item
  13052. #: guix-git/doc/guix.texi:7700 guix-git/doc/guix.texi:8258
  13053. #: guix-git/doc/guix.texi:8301 guix-git/doc/guix.texi:8377
  13054. #, no-wrap
  13055. msgid "install"
  13056. msgstr ""
  13057. #. type: table
  13058. #: guix-git/doc/guix.texi:7702
  13059. msgid "This phase installs all jars built previously."
  13060. msgstr ""
  13061. #. type: defvr
  13062. #: guix-git/doc/guix.texi:7705
  13063. msgid "Apart from the above, this build system also contains an additional phase:"
  13064. msgstr ""
  13065. #. type: item
  13066. #: guix-git/doc/guix.texi:7708
  13067. #, no-wrap
  13068. msgid "install-doc"
  13069. msgstr ""
  13070. #. type: table
  13071. #: guix-git/doc/guix.texi:7713
  13072. 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."
  13073. msgstr ""
  13074. #. type: defvr
  13075. #: guix-git/doc/guix.texi:7716
  13076. #, no-wrap
  13077. msgid "{Scheme Variable} cmake-build-system"
  13078. msgstr ""
  13079. #. type: defvr
  13080. #: guix-git/doc/guix.texi:7720
  13081. 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}."
  13082. msgstr ""
  13083. #. type: defvr
  13084. #: guix-git/doc/guix.texi:7724
  13085. 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."
  13086. msgstr ""
  13087. #. type: defvr
  13088. #: guix-git/doc/guix.texi:7731
  13089. 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."
  13090. msgstr ""
  13091. #. type: defvr
  13092. #: guix-git/doc/guix.texi:7733
  13093. #, no-wrap
  13094. msgid "{Scheme Variable} dune-build-system"
  13095. msgstr ""
  13096. #. type: defvr
  13097. #: guix-git/doc/guix.texi:7740
  13098. 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."
  13099. msgstr ""
  13100. #. type: defvr
  13101. #: guix-git/doc/guix.texi:7744
  13102. 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."
  13103. msgstr ""
  13104. #. type: defvr
  13105. #: guix-git/doc/guix.texi:7748
  13106. 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."
  13107. msgstr ""
  13108. #. type: defvr
  13109. #: guix-git/doc/guix.texi:7752
  13110. 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}."
  13111. msgstr ""
  13112. #. type: defvr
  13113. #: guix-git/doc/guix.texi:7757
  13114. 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}."
  13115. msgstr ""
  13116. #. type: defvr
  13117. #: guix-git/doc/guix.texi:7760
  13118. #, no-wrap
  13119. msgid "{Scheme Variable} go-build-system"
  13120. msgstr ""
  13121. #. type: defvr
  13122. #: guix-git/doc/guix.texi:7765
  13123. 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}."
  13124. msgstr ""
  13125. #. type: defvr
  13126. #: guix-git/doc/guix.texi:7776
  13127. 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."
  13128. msgstr ""
  13129. #. type: defvr
  13130. #: guix-git/doc/guix.texi:7781
  13131. 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."
  13132. msgstr ""
  13133. #. type: defvr
  13134. #: guix-git/doc/guix.texi:7788
  13135. 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}."
  13136. msgstr ""
  13137. #. type: defvr
  13138. #: guix-git/doc/guix.texi:7790
  13139. #, no-wrap
  13140. msgid "{Scheme Variable} glib-or-gtk-build-system"
  13141. msgstr ""
  13142. #. type: defvr
  13143. #: guix-git/doc/guix.texi:7793
  13144. 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+."
  13145. msgstr ""
  13146. #. type: defvr
  13147. #: guix-git/doc/guix.texi:7796
  13148. msgid "This build system adds the following two phases to the ones defined by @code{gnu-build-system}:"
  13149. msgstr ""
  13150. #. type: item
  13151. #: guix-git/doc/guix.texi:7798 guix-git/doc/guix.texi:8274
  13152. #, no-wrap
  13153. msgid "glib-or-gtk-wrap"
  13154. msgstr ""
  13155. #. type: table
  13156. #: guix-git/doc/guix.texi:7805
  13157. 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."
  13158. msgstr ""
  13159. #. type: table
  13160. #: guix-git/doc/guix.texi:7812
  13161. 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+."
  13162. msgstr ""
  13163. #. type: item
  13164. #: guix-git/doc/guix.texi:7813 guix-git/doc/guix.texi:8278
  13165. #, no-wrap
  13166. msgid "glib-or-gtk-compile-schemas"
  13167. msgstr ""
  13168. #. type: table
  13169. #: guix-git/doc/guix.texi:7821
  13170. 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."
  13171. msgstr ""
  13172. #. type: defvr
  13173. #: guix-git/doc/guix.texi:7824
  13174. msgid "Both phases are executed after the @code{install} phase."
  13175. msgstr ""
  13176. #. type: defvr
  13177. #: guix-git/doc/guix.texi:7826
  13178. #, no-wrap
  13179. msgid "{Scheme Variable} guile-build-system"
  13180. msgstr ""
  13181. #. type: defvr
  13182. #: guix-git/doc/guix.texi:7833
  13183. 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."
  13184. msgstr ""
  13185. #. type: defvr
  13186. #: guix-git/doc/guix.texi:7836
  13187. msgid "This build system supports cross-compilation by using the @option{--target} option of @samp{guild compile}."
  13188. msgstr ""
  13189. #. type: defvr
  13190. #: guix-git/doc/guix.texi:7839
  13191. msgid "Packages built with @code{guile-build-system} must provide a Guile package in their @code{native-inputs} field."
  13192. msgstr ""
  13193. #. type: defvr
  13194. #: guix-git/doc/guix.texi:7841
  13195. #, no-wrap
  13196. msgid "{Scheme Variable} julia-build-system"
  13197. msgstr ""
  13198. #. type: defvr
  13199. #: guix-git/doc/guix.texi:7848
  13200. 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}."
  13201. msgstr ""
  13202. #. type: defvr
  13203. #: guix-git/doc/guix.texi:7852
  13204. msgid "The Julia package name is read from the file @file{Project.toml}. This value can be overridden by passing the argument @code{#:julia-package-name} (which must be correctly capitalized)."
  13205. msgstr ""
  13206. #. type: defvr
  13207. #: guix-git/doc/guix.texi:7856
  13208. 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}."
  13209. msgstr ""
  13210. #. type: defvr
  13211. #: guix-git/doc/guix.texi:7861
  13212. 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."
  13213. msgstr ""
  13214. #. type: defvr
  13215. #: guix-git/doc/guix.texi:7865
  13216. 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:"
  13217. msgstr ""
  13218. #. type: lisp
  13219. #: guix-git/doc/guix.texi:7877
  13220. #, no-wrap
  13221. msgid ""
  13222. "(add-after 'unpack 'override-binary-path\n"
  13223. " (lambda* (#:key inputs #:allow-other-keys)\n"
  13224. " (for-each (lambda (wrapper)\n"
  13225. " (substitute* wrapper\n"
  13226. " ((\"generate_wrapper_header.*\")\n"
  13227. " (string-append\n"
  13228. " \"generate_wrapper_header(\\\"MbedTLS\\\", \\\"\"\n"
  13229. " (assoc-ref inputs \"mbedtls-apache\") \"\\\")\\n\"))))\n"
  13230. " ;; There's a Julia file for each platform, override them all.\n"
  13231. " (find-files \"src/wrappers/\" \"\\\\.jl$\"))))\n"
  13232. msgstr ""
  13233. #. type: defvr
  13234. #: guix-git/doc/guix.texi:7885
  13235. msgid "Some older packages that aren't using @file{Package.toml} yet, will require this file to be created, too. The function @code{julia-create-package-toml} helps creating the file. You need to pass the outputs and the source of the package, its name (the same as the @code{file-name} parameter), the package uuid, the package version, and a list of dependencies specified by their name and their uuid."
  13236. msgstr ""
  13237. #. type: defvr
  13238. #: guix-git/doc/guix.texi:7887
  13239. #, no-wrap
  13240. msgid "{Scheme Variable} maven-build-system"
  13241. msgstr ""
  13242. #. type: defvr
  13243. #: guix-git/doc/guix.texi:7894
  13244. 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."
  13245. msgstr ""
  13246. #. type: defvr
  13247. #: guix-git/doc/guix.texi:7904
  13248. 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."
  13249. msgstr ""
  13250. #. type: defvr
  13251. #: guix-git/doc/guix.texi:7907
  13252. 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."
  13253. msgstr ""
  13254. #. type: defvr
  13255. #: guix-git/doc/guix.texi:7913
  13256. 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}."
  13257. msgstr ""
  13258. #. type: defvr
  13259. #: guix-git/doc/guix.texi:7919
  13260. 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."
  13261. msgstr ""
  13262. #. type: defvr
  13263. #: guix-git/doc/guix.texi:7922
  13264. msgid "You can override the default @code{jdk} and @code{maven} packages with the corresponding argument, @code{#:jdk} and @code{#:maven}."
  13265. msgstr ""
  13266. #. type: defvr
  13267. #: guix-git/doc/guix.texi:7927
  13268. 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."
  13269. msgstr ""
  13270. #. type: defvr
  13271. #: guix-git/doc/guix.texi:7929
  13272. #, no-wrap
  13273. msgid "{Scheme Variable} minetest-mod-build-system"
  13274. msgstr ""
  13275. #. type: defvr
  13276. #: guix-git/doc/guix.texi:7935
  13277. 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."
  13278. msgstr ""
  13279. #. type: defvr
  13280. #: guix-git/doc/guix.texi:7937
  13281. #, no-wrap
  13282. msgid "{Scheme Variable} minify-build-system"
  13283. msgstr ""
  13284. #. type: defvr
  13285. #: guix-git/doc/guix.texi:7940
  13286. msgid "This variable is exported by @code{(guix build-system minify)}. It implements a minification procedure for simple JavaScript packages."
  13287. msgstr ""
  13288. #. type: defvr
  13289. #: guix-git/doc/guix.texi:7946
  13290. 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."
  13291. msgstr ""
  13292. #. type: defvr
  13293. #: guix-git/doc/guix.texi:7950
  13294. 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."
  13295. msgstr ""
  13296. #. type: defvr
  13297. #: guix-git/doc/guix.texi:7952
  13298. #, no-wrap
  13299. msgid "{Scheme Variable} ocaml-build-system"
  13300. msgstr ""
  13301. #. type: defvr
  13302. #: guix-git/doc/guix.texi:7958
  13303. 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."
  13304. msgstr ""
  13305. #. type: defvr
  13306. #: guix-git/doc/guix.texi:7968
  13307. 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."
  13308. msgstr ""
  13309. #. type: defvr
  13310. #: guix-git/doc/guix.texi:7973
  13311. 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."
  13312. msgstr ""
  13313. #. type: defvr
  13314. #: guix-git/doc/guix.texi:7977
  13315. 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."
  13316. msgstr ""
  13317. #. type: defvr
  13318. #: guix-git/doc/guix.texi:7985
  13319. 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."
  13320. msgstr ""
  13321. #. type: defvr
  13322. #: guix-git/doc/guix.texi:7993
  13323. 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."
  13324. msgstr ""
  13325. #. type: defvr
  13326. #: guix-git/doc/guix.texi:7995
  13327. #, no-wrap
  13328. msgid "{Scheme Variable} python-build-system"
  13329. msgstr ""
  13330. #. type: defvr
  13331. #: guix-git/doc/guix.texi:8000
  13332. 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{}}."
  13333. msgstr ""
  13334. #. type: defvr
  13335. #: guix-git/doc/guix.texi:8004
  13336. msgid "For packages that install stand-alone Python programs under @code{bin/}, it takes care of wrapping these programs so that their @env{PYTHONPATH} environment variable points to all the Python libraries they depend on."
  13337. msgstr ""
  13338. #. type: defvr
  13339. #: guix-git/doc/guix.texi:8010
  13340. 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."
  13341. msgstr ""
  13342. #. type: defvr
  13343. #: guix-git/doc/guix.texi:8015
  13344. 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}."
  13345. msgstr ""
  13346. #. type: defvr
  13347. #: guix-git/doc/guix.texi:8017
  13348. #, no-wrap
  13349. msgid "{Scheme Variable} perl-build-system"
  13350. msgstr ""
  13351. #. type: defvr
  13352. #: guix-git/doc/guix.texi:8029
  13353. 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."
  13354. msgstr ""
  13355. #. type: defvr
  13356. #: guix-git/doc/guix.texi:8033
  13357. 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."
  13358. msgstr ""
  13359. #. type: defvr
  13360. #: guix-git/doc/guix.texi:8035
  13361. msgid "Which Perl package is used can be specified with @code{#:perl}."
  13362. msgstr ""
  13363. #. type: defvr
  13364. #: guix-git/doc/guix.texi:8037
  13365. #, no-wrap
  13366. msgid "{Scheme Variable} renpy-build-system"
  13367. msgstr ""
  13368. #. type: defvr
  13369. #: guix-git/doc/guix.texi:8041
  13370. 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."
  13371. msgstr ""
  13372. #. type: defvr
  13373. #: guix-git/doc/guix.texi:8044
  13374. 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."
  13375. msgstr ""
  13376. #. type: defvr
  13377. #: guix-git/doc/guix.texi:8048
  13378. 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}."
  13379. msgstr ""
  13380. #. type: defvr
  13381. #: guix-git/doc/guix.texi:8050
  13382. #, no-wrap
  13383. msgid "{Scheme Variable} qt-build-system"
  13384. msgstr ""
  13385. #. type: defvr
  13386. #: guix-git/doc/guix.texi:8053
  13387. msgid "This variable is exported by @code{(guix build-system qt)}. It is intended for use with applications using Qt or KDE."
  13388. msgstr ""
  13389. #. type: defvr
  13390. #: guix-git/doc/guix.texi:8056
  13391. msgid "This build system adds the following two phases to the ones defined by @code{cmake-build-system}:"
  13392. msgstr ""
  13393. #. type: item
  13394. #: guix-git/doc/guix.texi:8058
  13395. #, no-wrap
  13396. msgid "check-setup"
  13397. msgstr ""
  13398. #. type: table
  13399. #: guix-git/doc/guix.texi:8065
  13400. 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}."
  13401. msgstr ""
  13402. #. type: table
  13403. #: guix-git/doc/guix.texi:8068
  13404. msgid "This phase is added before the @code{check} phase. It's a separate phase to ease adjusting if necessary."
  13405. msgstr ""
  13406. #. type: item
  13407. #: guix-git/doc/guix.texi:8069
  13408. #, no-wrap
  13409. msgid "qt-wrap"
  13410. msgstr ""
  13411. #. type: table
  13412. #: guix-git/doc/guix.texi:8075
  13413. 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."
  13414. msgstr ""
  13415. #. type: table
  13416. #: guix-git/doc/guix.texi:8081
  13417. 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."
  13418. msgstr ""
  13419. #. type: table
  13420. #: guix-git/doc/guix.texi:8083
  13421. msgid "This phase is added after the @code{install} phase."
  13422. msgstr ""
  13423. #. type: defvr
  13424. #: guix-git/doc/guix.texi:8086
  13425. #, no-wrap
  13426. msgid "{Scheme Variable} r-build-system"
  13427. msgstr ""
  13428. #. type: defvr
  13429. #: guix-git/doc/guix.texi:8094
  13430. 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}."
  13431. msgstr ""
  13432. #. type: defvr
  13433. #: guix-git/doc/guix.texi:8096
  13434. #, no-wrap
  13435. msgid "{Scheme Variable} rakudo-build-system"
  13436. msgstr ""
  13437. #. type: defvr
  13438. #: guix-git/doc/guix.texi:8104
  13439. 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."
  13440. msgstr ""
  13441. #. type: defvr
  13442. #: guix-git/doc/guix.texi:8112
  13443. 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."
  13444. msgstr ""
  13445. #. type: defvr
  13446. #: guix-git/doc/guix.texi:8114
  13447. #, no-wrap
  13448. msgid "{Scheme Variable} texlive-build-system"
  13449. msgstr ""
  13450. #. type: defvr
  13451. #: guix-git/doc/guix.texi:8119
  13452. 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."
  13453. msgstr ""
  13454. #. type: defvr
  13455. #: guix-git/doc/guix.texi:8128
  13456. 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."
  13457. msgstr ""
  13458. #. type: defvr
  13459. #: guix-git/doc/guix.texi:8131
  13460. msgid "The @code{#:tex-directory} parameter tells the build system where to install the built files under the texmf tree."
  13461. msgstr ""
  13462. #. type: defvr
  13463. #: guix-git/doc/guix.texi:8133
  13464. #, no-wrap
  13465. msgid "{Scheme Variable} ruby-build-system"
  13466. msgstr ""
  13467. #. type: defvr
  13468. #: guix-git/doc/guix.texi:8137
  13469. 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}."
  13470. msgstr ""
  13471. #. type: defvr
  13472. #: guix-git/doc/guix.texi:8145
  13473. 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."
  13474. msgstr ""
  13475. #. type: defvr
  13476. #: guix-git/doc/guix.texi:8149
  13477. 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."
  13478. msgstr ""
  13479. #. type: defvr
  13480. #: guix-git/doc/guix.texi:8151
  13481. #, no-wrap
  13482. msgid "{Scheme Variable} waf-build-system"
  13483. msgstr ""
  13484. #. type: defvr
  13485. #: guix-git/doc/guix.texi:8157
  13486. 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."
  13487. msgstr ""
  13488. #. type: defvr
  13489. #: guix-git/doc/guix.texi:8161
  13490. 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."
  13491. msgstr ""
  13492. #. type: defvr
  13493. #: guix-git/doc/guix.texi:8163
  13494. #, no-wrap
  13495. msgid "{Scheme Variable} scons-build-system"
  13496. msgstr ""
  13497. #. type: defvr
  13498. #: guix-git/doc/guix.texi:8169
  13499. 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."
  13500. msgstr ""
  13501. #. type: defvr
  13502. #: guix-git/doc/guix.texi:8176
  13503. 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."
  13504. msgstr ""
  13505. #. type: defvr
  13506. #: guix-git/doc/guix.texi:8178
  13507. #, no-wrap
  13508. msgid "{Scheme Variable} haskell-build-system"
  13509. msgstr ""
  13510. #. type: defvr
  13511. #: guix-git/doc/guix.texi:8192
  13512. 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."
  13513. msgstr ""
  13514. #. type: defvr
  13515. #: guix-git/doc/guix.texi:8195
  13516. msgid "Which Haskell compiler is used can be specified with the @code{#:haskell} parameter which defaults to @code{ghc}."
  13517. msgstr ""
  13518. #. type: defvr
  13519. #: guix-git/doc/guix.texi:8197
  13520. #, no-wrap
  13521. msgid "{Scheme Variable} dub-build-system"
  13522. msgstr ""
  13523. #. type: defvr
  13524. #: guix-git/doc/guix.texi:8202
  13525. 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."
  13526. msgstr ""
  13527. #. type: defvr
  13528. #: guix-git/doc/guix.texi:8205
  13529. msgid "Which D compiler is used can be specified with the @code{#:ldc} parameter which defaults to @code{ldc}."
  13530. msgstr ""
  13531. #. type: anchor{#1}
  13532. #: guix-git/doc/guix.texi:8208
  13533. msgid "emacs-build-system"
  13534. msgstr ""
  13535. #. type: defvr
  13536. #: guix-git/doc/guix.texi:8208
  13537. #, no-wrap
  13538. msgid "{Scheme Variable} emacs-build-system"
  13539. msgstr ""
  13540. #. type: defvr
  13541. #: guix-git/doc/guix.texi:8212
  13542. 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})."
  13543. msgstr ""
  13544. #. type: defvr
  13545. #: guix-git/doc/guix.texi:8218
  13546. 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}."
  13547. msgstr ""
  13548. #. type: defvr
  13549. #: guix-git/doc/guix.texi:8220
  13550. #, no-wrap
  13551. msgid "{Scheme Variable} font-build-system"
  13552. msgstr ""
  13553. #. type: defvr
  13554. #: guix-git/doc/guix.texi:8226
  13555. 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."
  13556. msgstr ""
  13557. #. type: defvr
  13558. #: guix-git/doc/guix.texi:8228
  13559. #, no-wrap
  13560. msgid "{Scheme Variable} meson-build-system"
  13561. msgstr ""
  13562. #. type: defvr
  13563. #: guix-git/doc/guix.texi:8232
  13564. 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."
  13565. msgstr ""
  13566. #. type: defvr
  13567. #: guix-git/doc/guix.texi:8238
  13568. msgid "It adds both Meson and @uref{https://ninja-build.org/, Ninja} to the set of inputs, and they can be changed with the parameters @code{#:meson} and @code{#:ninja} if needed. The default Meson is @code{meson-for-build}, which is special because it doesn't clear the @code{RUNPATH} of binaries and libraries when they are installed."
  13569. msgstr ""
  13570. #. type: defvr
  13571. #: guix-git/doc/guix.texi:8241
  13572. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed to some specific for Meson:"
  13573. msgstr ""
  13574. #. type: item
  13575. #: guix-git/doc/guix.texi:8244 guix-git/doc/guix.texi:8293
  13576. #: guix-git/doc/guix.texi:8361
  13577. #, no-wrap
  13578. msgid "configure"
  13579. msgstr ""
  13580. #. type: table
  13581. #: guix-git/doc/guix.texi:8249
  13582. 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}."
  13583. msgstr ""
  13584. #. type: table
  13585. #: guix-git/doc/guix.texi:8253
  13586. msgid "The phase runs @code{ninja} to build the package in parallel by default, but this can be changed with @code{#:parallel-build?}."
  13587. msgstr ""
  13588. #. type: table
  13589. #: guix-git/doc/guix.texi:8257
  13590. msgid "The phase runs @code{ninja} with the target specified in @code{#:test-target}, which is @code{\"test\"} by default."
  13591. msgstr ""
  13592. #. type: table
  13593. #: guix-git/doc/guix.texi:8260
  13594. msgid "The phase runs @code{ninja install} and can not be changed."
  13595. msgstr ""
  13596. #. type: defvr
  13597. #: guix-git/doc/guix.texi:8263
  13598. msgid "Apart from that, the build system also adds the following phases:"
  13599. msgstr ""
  13600. #. type: item
  13601. #: guix-git/doc/guix.texi:8266
  13602. #, no-wrap
  13603. msgid "fix-runpath"
  13604. msgstr ""
  13605. #. type: table
  13606. #: guix-git/doc/guix.texi:8273
  13607. msgid "This phase ensures that all binaries can find the libraries they need. It searches for required libraries in subdirectories of the package being built, and adds those to @code{RUNPATH} where needed. It also removes references to libraries left over from the build phase by @code{meson-for-build}, such as test dependencies, that aren't actually required for the program to run."
  13608. msgstr ""
  13609. #. type: table
  13610. #: guix-git/doc/guix.texi:8277 guix-git/doc/guix.texi:8281
  13611. 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?}."
  13612. msgstr ""
  13613. #. type: defvr
  13614. #: guix-git/doc/guix.texi:8284
  13615. #, no-wrap
  13616. msgid "{Scheme Variable} linux-module-build-system"
  13617. msgstr ""
  13618. #. type: defvr
  13619. #: guix-git/doc/guix.texi:8286
  13620. msgid "@code{linux-module-build-system} allows building Linux kernel modules."
  13621. msgstr ""
  13622. #. type: defvr
  13623. #: guix-git/doc/guix.texi:8290
  13624. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed:"
  13625. msgstr ""
  13626. #. type: table
  13627. #: guix-git/doc/guix.texi:8296
  13628. msgid "This phase configures the environment so that the Linux kernel's Makefile can be used to build the external kernel module."
  13629. msgstr ""
  13630. #. type: table
  13631. #: guix-git/doc/guix.texi:8300
  13632. msgid "This phase uses the Linux kernel's Makefile in order to build the external kernel module."
  13633. msgstr ""
  13634. #. type: table
  13635. #: guix-git/doc/guix.texi:8304
  13636. msgid "This phase uses the Linux kernel's Makefile in order to install the external kernel module."
  13637. msgstr ""
  13638. #. type: defvr
  13639. #: guix-git/doc/guix.texi:8309
  13640. 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)."
  13641. msgstr ""
  13642. #. type: defvr
  13643. #: guix-git/doc/guix.texi:8311
  13644. #, no-wrap
  13645. msgid "{Scheme Variable} node-build-system"
  13646. msgstr ""
  13647. #. type: defvr
  13648. #: guix-git/doc/guix.texi:8316
  13649. 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."
  13650. msgstr ""
  13651. #. type: defvr
  13652. #: guix-git/doc/guix.texi:8320
  13653. 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}."
  13654. msgstr ""
  13655. #. type: Plain text
  13656. #: guix-git/doc/guix.texi:8326
  13657. 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."
  13658. msgstr ""
  13659. #. type: defvr
  13660. #: guix-git/doc/guix.texi:8327
  13661. #, no-wrap
  13662. msgid "{Scheme Variable} trivial-build-system"
  13663. msgstr ""
  13664. #. type: defvr
  13665. #: guix-git/doc/guix.texi:8329
  13666. msgid "This variable is exported by @code{(guix build-system trivial)}."
  13667. msgstr ""
  13668. #. type: defvr
  13669. #: guix-git/doc/guix.texi:8334
  13670. 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}})."
  13671. msgstr ""
  13672. #. type: cindex
  13673. #: guix-git/doc/guix.texi:8339
  13674. #, fuzzy, no-wrap
  13675. msgid "build phases, for packages"
  13676. msgstr "Python软件包的输入"
  13677. #. type: Plain text
  13678. #: guix-git/doc/guix.texi:8345
  13679. 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})."
  13680. msgstr ""
  13681. #. type: Plain text
  13682. #: guix-git/doc/guix.texi:8349
  13683. 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:"
  13684. msgstr ""
  13685. #. type: item
  13686. #: guix-git/doc/guix.texi:8351
  13687. #, no-wrap
  13688. msgid "unpack"
  13689. msgstr ""
  13690. #. type: table
  13691. #: guix-git/doc/guix.texi:8355
  13692. 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."
  13693. msgstr ""
  13694. #. type: item
  13695. #: guix-git/doc/guix.texi:8356
  13696. #, no-wrap
  13697. msgid "patch-source-shebangs"
  13698. msgstr ""
  13699. #. type: table
  13700. #: guix-git/doc/guix.texi:8360
  13701. 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}."
  13702. msgstr ""
  13703. #. type: table
  13704. #: guix-git/doc/guix.texi:8365
  13705. 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."
  13706. msgstr ""
  13707. #. type: table
  13708. #: guix-git/doc/guix.texi:8370
  13709. 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}."
  13710. msgstr ""
  13711. #. type: table
  13712. #: guix-git/doc/guix.texi:8376
  13713. 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}."
  13714. msgstr ""
  13715. #. type: table
  13716. #: guix-git/doc/guix.texi:8379
  13717. msgid "Run @code{make install} with the flags listed in @code{#:make-flags}."
  13718. msgstr ""
  13719. #. type: item
  13720. #: guix-git/doc/guix.texi:8380
  13721. #, no-wrap
  13722. msgid "patch-shebangs"
  13723. msgstr ""
  13724. #. type: table
  13725. #: guix-git/doc/guix.texi:8382
  13726. msgid "Patch shebangs on the installed executable files."
  13727. msgstr ""
  13728. #. type: item
  13729. #: guix-git/doc/guix.texi:8383
  13730. #, no-wrap
  13731. msgid "strip"
  13732. msgstr ""
  13733. #. type: table
  13734. #: guix-git/doc/guix.texi:8387
  13735. 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})."
  13736. msgstr ""
  13737. #. type: Plain text
  13738. #: guix-git/doc/guix.texi:8396
  13739. 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})."
  13740. msgstr ""
  13741. #. type: Plain text
  13742. #: guix-git/doc/guix.texi:8403
  13743. 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."
  13744. msgstr ""
  13745. #. type: vindex
  13746. #: guix-git/doc/guix.texi:8404
  13747. #, no-wrap
  13748. msgid "%standard-phases"
  13749. msgstr ""
  13750. #. type: Plain text
  13751. #: guix-git/doc/guix.texi:8410
  13752. 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!}:"
  13753. msgstr ""
  13754. #. type: lisp
  13755. #: guix-git/doc/guix.texi:8413
  13756. #, no-wrap
  13757. msgid ""
  13758. ";; The build phases of 'gnu-build-system'.\n"
  13759. "\n"
  13760. msgstr ""
  13761. #. type: lisp
  13762. #: guix-git/doc/guix.texi:8417
  13763. #, no-wrap
  13764. msgid ""
  13765. "(define* (unpack #:key source #:allow-other-keys)\n"
  13766. " ;; Extract the source tarball.\n"
  13767. " (invoke \"tar\" \"xvf\" source))\n"
  13768. "\n"
  13769. msgstr ""
  13770. #. type: lisp
  13771. #: guix-git/doc/guix.texi:8423
  13772. #, no-wrap
  13773. msgid ""
  13774. "(define* (configure #:key outputs #:allow-other-keys)\n"
  13775. " ;; Run the 'configure' script. Install to output \"out\".\n"
  13776. " (let ((out (assoc-ref outputs \"out\")))\n"
  13777. " (invoke \"./configure\"\n"
  13778. " (string-append \"--prefix=\" out))))\n"
  13779. "\n"
  13780. msgstr ""
  13781. #. type: lisp
  13782. #: guix-git/doc/guix.texi:8427
  13783. #, no-wrap
  13784. msgid ""
  13785. "(define* (build #:allow-other-keys)\n"
  13786. " ;; Compile.\n"
  13787. " (invoke \"make\"))\n"
  13788. "\n"
  13789. msgstr ""
  13790. #. type: lisp
  13791. #: guix-git/doc/guix.texi:8434
  13792. #, no-wrap
  13793. msgid ""
  13794. "(define* (check #:key (test-target \"check\") (tests? #true)\n"
  13795. " #:allow-other-keys)\n"
  13796. " ;; Run the test suite.\n"
  13797. " (if tests?\n"
  13798. " (invoke \"make\" test-target)\n"
  13799. " (display \"test suite not run\\n\")))\n"
  13800. "\n"
  13801. msgstr ""
  13802. #. type: lisp
  13803. #: guix-git/doc/guix.texi:8438
  13804. #, no-wrap
  13805. msgid ""
  13806. "(define* (install #:allow-other-keys)\n"
  13807. " ;; Install files to the prefix 'configure' specified.\n"
  13808. " (invoke \"make\" \"install\"))\n"
  13809. "\n"
  13810. msgstr ""
  13811. #. type: lisp
  13812. #: guix-git/doc/guix.texi:8447
  13813. #, no-wrap
  13814. msgid ""
  13815. "(define %standard-phases\n"
  13816. " ;; The list of standard phases (quite a few are omitted\n"
  13817. " ;; for brevity). Each element is a symbol/procedure pair.\n"
  13818. " (list (cons 'unpack unpack)\n"
  13819. " (cons 'configure configure)\n"
  13820. " (cons 'build build)\n"
  13821. " (cons 'check check)\n"
  13822. " (cons 'install install)))\n"
  13823. msgstr ""
  13824. #. type: Plain text
  13825. #: guix-git/doc/guix.texi:8457
  13826. 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."
  13827. msgstr ""
  13828. #. type: Plain text
  13829. #: guix-git/doc/guix.texi:8463
  13830. 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})."
  13831. msgstr ""
  13832. #. type: Plain text
  13833. #: guix-git/doc/guix.texi:8479
  13834. 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."
  13835. msgstr ""
  13836. #. type: cindex
  13837. #: guix-git/doc/guix.texi:8480
  13838. #, no-wrap
  13839. msgid "build phases, customizing"
  13840. msgstr ""
  13841. #. type: Plain text
  13842. #: guix-git/doc/guix.texi:8489
  13843. 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}})."
  13844. msgstr ""
  13845. #. type: Plain text
  13846. #: guix-git/doc/guix.texi:8494
  13847. 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}:"
  13848. msgstr ""
  13849. #. type: lisp
  13850. #: guix-git/doc/guix.texi:8514
  13851. #, no-wrap
  13852. msgid ""
  13853. "(define-public example\n"
  13854. " (package\n"
  13855. " (name \"example\")\n"
  13856. " ;; other fields omitted\n"
  13857. " (build-system gnu-build-system)\n"
  13858. " (arguments\n"
  13859. " '(#:phases (modify-phases %standard-phases\n"
  13860. " (delete 'configure)\n"
  13861. " (add-before 'build 'set-prefix-in-makefile\n"
  13862. " (lambda* (#:key outputs #:allow-other-keys)\n"
  13863. " ;; Modify the makefile so that its\n"
  13864. " ;; 'PREFIX' variable points to \"out\".\n"
  13865. " (let ((out (assoc-ref outputs \"out\")))\n"
  13866. " (substitute* \"Makefile\"\n"
  13867. " ((\"PREFIX =.*\")\n"
  13868. " (string-append \"PREFIX = \"\n"
  13869. " out \"\\n\")))\n"
  13870. " #true))))))))\n"
  13871. msgstr ""
  13872. #. type: Plain text
  13873. #: guix-git/doc/guix.texi:8520
  13874. 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}."
  13875. msgstr ""
  13876. #. type: cindex
  13877. #: guix-git/doc/guix.texi:8521 guix-git/doc/guix.texi:9494
  13878. #, no-wrap
  13879. msgid "code staging"
  13880. msgstr ""
  13881. #. type: cindex
  13882. #: guix-git/doc/guix.texi:8522 guix-git/doc/guix.texi:9495
  13883. #, fuzzy, no-wrap
  13884. msgid "staging, of code"
  13885. msgstr "代码格式化"
  13886. #. type: Plain text
  13887. #: guix-git/doc/guix.texi:8529
  13888. 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."
  13889. msgstr ""
  13890. #. type: Plain text
  13891. #: guix-git/doc/guix.texi:8539
  13892. 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."
  13893. msgstr ""
  13894. #. type: Plain text
  13895. #: guix-git/doc/guix.texi:8543
  13896. 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."
  13897. msgstr ""
  13898. #. type: Plain text
  13899. #: guix-git/doc/guix.texi:8548
  13900. 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}):"
  13901. msgstr ""
  13902. #. type: lisp
  13903. #: guix-git/doc/guix.texi:8555
  13904. #, no-wrap
  13905. msgid ""
  13906. "(with-imported-modules '((guix build utils)) ;import it\n"
  13907. " (computed-file \"empty-tree\"\n"
  13908. " #~(begin\n"
  13909. " ;; Put it in scope.\n"
  13910. " (use-modules (guix build utils))\n"
  13911. "\n"
  13912. msgstr ""
  13913. #. type: lisp
  13914. #: guix-git/doc/guix.texi:8558
  13915. #, no-wrap
  13916. msgid ""
  13917. " ;; Happily use its 'mkdir-p' procedure.\n"
  13918. " (mkdir-p (string-append #$output \"/a/b/c\")))))\n"
  13919. msgstr ""
  13920. #. type: Plain text
  13921. #: guix-git/doc/guix.texi:8562
  13922. msgid "The remainder of this section is the reference for most of the utility procedures provided by @code{(guix build utils)}."
  13923. msgstr ""
  13924. #. type: subsection
  13925. #: guix-git/doc/guix.texi:8565
  13926. #, no-wrap
  13927. msgid "Dealing with Store File Names"
  13928. msgstr ""
  13929. #. type: Plain text
  13930. #: guix-git/doc/guix.texi:8568
  13931. msgid "This section documents procedures that deal with store file names."
  13932. msgstr ""
  13933. #. type: deffn
  13934. #: guix-git/doc/guix.texi:8569
  13935. #, no-wrap
  13936. msgid "{Scheme Procedure} %store-directory"
  13937. msgstr ""
  13938. #. type: deffn
  13939. #: guix-git/doc/guix.texi:8571
  13940. #, fuzzy
  13941. msgid "Return the directory name of the store."
  13942. msgstr "仓库的纯函数式接口。"
  13943. #. type: deffn
  13944. #: guix-git/doc/guix.texi:8573
  13945. #, no-wrap
  13946. msgid "{Scheme Procedure} store-file-name? @var{file}"
  13947. msgstr ""
  13948. #. type: deffn
  13949. #: guix-git/doc/guix.texi:8575
  13950. msgid "Return true if @var{file} is in the store."
  13951. msgstr ""
  13952. #. type: deffn
  13953. #: guix-git/doc/guix.texi:8577
  13954. #, no-wrap
  13955. msgid "{Scheme Procedure} strip-store-file-name @var{file}"
  13956. msgstr ""
  13957. #. type: deffn
  13958. #: guix-git/doc/guix.texi:8580
  13959. 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."
  13960. msgstr ""
  13961. #. type: deffn
  13962. #: guix-git/doc/guix.texi:8582
  13963. #, no-wrap
  13964. msgid "{Scheme Procedure} package-name->name+version @var{name}"
  13965. msgstr ""
  13966. #. type: deffn
  13967. #: guix-git/doc/guix.texi:8587
  13968. 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."
  13969. msgstr ""
  13970. #. type: subsection
  13971. #: guix-git/doc/guix.texi:8589
  13972. #, fuzzy, no-wrap
  13973. msgid "File Types"
  13974. msgstr "文件系统"
  13975. #. type: Plain text
  13976. #: guix-git/doc/guix.texi:8592
  13977. msgid "The procedures below deal with files and file types."
  13978. msgstr ""
  13979. #. type: deffn
  13980. #: guix-git/doc/guix.texi:8593
  13981. #, no-wrap
  13982. msgid "{Scheme Procedure} directory-exists? @var{dir}"
  13983. msgstr ""
  13984. #. type: deffn
  13985. #: guix-git/doc/guix.texi:8595
  13986. msgid "Return @code{#t} if @var{dir} exists and is a directory."
  13987. msgstr ""
  13988. #. type: deffn
  13989. #: guix-git/doc/guix.texi:8597
  13990. #, no-wrap
  13991. msgid "{Scheme Procedure} executable-file? @var{file}"
  13992. msgstr ""
  13993. #. type: deffn
  13994. #: guix-git/doc/guix.texi:8599
  13995. msgid "Return @code{#t} if @var{file} exists and is executable."
  13996. msgstr ""
  13997. #. type: deffn
  13998. #: guix-git/doc/guix.texi:8601
  13999. #, no-wrap
  14000. msgid "{Scheme Procedure} symbolic-link? @var{file}"
  14001. msgstr ""
  14002. #. type: deffn
  14003. #: guix-git/doc/guix.texi:8603
  14004. msgid "Return @code{#t} if @var{file} is a symbolic link (aka. a ``symlink'')."
  14005. msgstr ""
  14006. #. type: deffn
  14007. #: guix-git/doc/guix.texi:8605
  14008. #, no-wrap
  14009. msgid "{Scheme Procedure} elf-file? @var{file}"
  14010. msgstr ""
  14011. #. type: deffnx
  14012. #: guix-git/doc/guix.texi:8606
  14013. #, no-wrap
  14014. msgid "{Scheme Procedure} ar-file? @var{file}"
  14015. msgstr ""
  14016. #. type: deffnx
  14017. #: guix-git/doc/guix.texi:8607
  14018. #, no-wrap
  14019. msgid "{Scheme Procedure} gzip-file? @var{file}"
  14020. msgstr ""
  14021. #. type: deffn
  14022. #: guix-git/doc/guix.texi:8610
  14023. 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."
  14024. msgstr ""
  14025. #. type: deffn
  14026. #: guix-git/doc/guix.texi:8612
  14027. #, no-wrap
  14028. msgid "{Scheme Procedure} reset-gzip-timestamp @var{file} [#:keep-mtime? #t]"
  14029. msgstr ""
  14030. #. type: deffn
  14031. #: guix-git/doc/guix.texi:8616
  14032. 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."
  14033. msgstr ""
  14034. #. type: subsection
  14035. #: guix-git/doc/guix.texi:8618
  14036. #, no-wrap
  14037. msgid "File Manipulation"
  14038. msgstr ""
  14039. #. type: Plain text
  14040. #: guix-git/doc/guix.texi:8625
  14041. 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})."
  14042. msgstr ""
  14043. #. type: deffn
  14044. #: guix-git/doc/guix.texi:8626
  14045. #, no-wrap
  14046. msgid "{Scheme Syntax} with-directory-excursion @var{directory} @var{body}@dots{}"
  14047. msgstr ""
  14048. #. type: deffn
  14049. #: guix-git/doc/guix.texi:8628
  14050. msgid "Run @var{body} with @var{directory} as the process's current directory."
  14051. msgstr ""
  14052. #. type: deffn
  14053. #: guix-git/doc/guix.texi:8635
  14054. 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."
  14055. msgstr ""
  14056. #. type: deffn
  14057. #: guix-git/doc/guix.texi:8637
  14058. #, no-wrap
  14059. msgid "{Scheme Procedure} mkdir-p @var{dir}"
  14060. msgstr ""
  14061. #. type: deffn
  14062. #: guix-git/doc/guix.texi:8639
  14063. msgid "Create directory @var{dir} and all its ancestors."
  14064. msgstr ""
  14065. #. type: deffn
  14066. #: guix-git/doc/guix.texi:8641
  14067. #, no-wrap
  14068. msgid "{Scheme Procedure} install-file @var{file} @var{directory}"
  14069. msgstr ""
  14070. #. type: deffn
  14071. #: guix-git/doc/guix.texi:8644
  14072. msgid "Create @var{directory} if it does not exist and copy @var{file} in there under the same name."
  14073. msgstr ""
  14074. #. type: deffn
  14075. #: guix-git/doc/guix.texi:8646
  14076. #, no-wrap
  14077. msgid "{Scheme Procedure} make-file-writable @var{file}"
  14078. msgstr ""
  14079. #. type: deffn
  14080. #: guix-git/doc/guix.texi:8648
  14081. msgid "Make @var{file} writable for its owner."
  14082. msgstr ""
  14083. #. type: deffn
  14084. #: guix-git/doc/guix.texi:8650
  14085. #, no-wrap
  14086. msgid "{Scheme Procedure} copy-recursively @var{source} @var{destination} @"
  14087. msgstr ""
  14088. #. type: deffn
  14089. #: guix-git/doc/guix.texi:8657
  14090. msgid "[#:log (current-output-port)] [#:follow-symlinks? #f] [#:keep-mtime? #f] Copy @var{source} directory to @var{destination}. Follow symlinks if @var{follow-symlinks?} is true; otherwise, just preserve them. When @var{keep-mtime?} is true, keep the modification time of the files in @var{source} on those of @var{destination}. Write verbose output to the @var{log} port."
  14091. msgstr ""
  14092. #. type: deffn
  14093. #: guix-git/doc/guix.texi:8659
  14094. #, no-wrap
  14095. msgid "{Scheme Procedure} delete-file-recursively @var{dir} @"
  14096. msgstr ""
  14097. #. type: deffn
  14098. #: guix-git/doc/guix.texi:8664
  14099. 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."
  14100. msgstr ""
  14101. #. type: deffn
  14102. #: guix-git/doc/guix.texi:8666
  14103. #, no-wrap
  14104. msgid "{Scheme Syntax} substitute* @var{file} @"
  14105. msgstr ""
  14106. #. type: deffn
  14107. #: guix-git/doc/guix.texi:8671
  14108. 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:"
  14109. msgstr ""
  14110. #. type: lisp
  14111. #: guix-git/doc/guix.texi:8678
  14112. #, no-wrap
  14113. msgid ""
  14114. "(substitute* file\n"
  14115. " ((\"hello\")\n"
  14116. " \"good morning\\n\")\n"
  14117. " ((\"foo([a-z]+)bar(.*)$\" all letters end)\n"
  14118. " (string-append \"baz\" letter end)))\n"
  14119. msgstr ""
  14120. #. type: deffn
  14121. #: guix-git/doc/guix.texi:8684
  14122. 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."
  14123. msgstr ""
  14124. #. type: deffn
  14125. #: guix-git/doc/guix.texi:8687
  14126. msgid "When one of the @var{match-var} is @code{_}, no variable is bound to the corresponding match substring."
  14127. msgstr ""
  14128. #. type: deffn
  14129. #: guix-git/doc/guix.texi:8690
  14130. msgid "Alternatively, @var{file} may be a list of file names, in which case they are all subject to the substitutions."
  14131. msgstr ""
  14132. #. type: deffn
  14133. #: guix-git/doc/guix.texi:8693
  14134. 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."
  14135. msgstr ""
  14136. #. type: subsection
  14137. #: guix-git/doc/guix.texi:8695
  14138. #, fuzzy, no-wrap
  14139. msgid "File Search"
  14140. msgstr "文件系统"
  14141. #. type: cindex
  14142. #: guix-git/doc/guix.texi:8697
  14143. #, no-wrap
  14144. msgid "file, searching"
  14145. msgstr ""
  14146. #. type: Plain text
  14147. #: guix-git/doc/guix.texi:8699
  14148. msgid "This section documents procedures to search and filter files."
  14149. msgstr ""
  14150. #. type: deffn
  14151. #: guix-git/doc/guix.texi:8700
  14152. #, no-wrap
  14153. msgid "{Scheme Procedure} file-name-predicate @var{regexp}"
  14154. msgstr ""
  14155. #. type: deffn
  14156. #: guix-git/doc/guix.texi:8703
  14157. msgid "Return a predicate that returns true when passed a file name whose base name matches @var{regexp}."
  14158. msgstr ""
  14159. #. type: deffn
  14160. #: guix-git/doc/guix.texi:8705
  14161. #, no-wrap
  14162. msgid "{Scheme Procedure} find-files @var{dir} [@var{pred}] @"
  14163. msgstr ""
  14164. #. type: deffn
  14165. #: guix-git/doc/guix.texi:8716
  14166. 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."
  14167. msgstr ""
  14168. #. type: Plain text
  14169. #: guix-git/doc/guix.texi:8720
  14170. msgid "Here are a few examples where we assume that the current directory is the root of the Guix source tree:"
  14171. msgstr ""
  14172. #. type: lisp
  14173. #: guix-git/doc/guix.texi:8725
  14174. #, no-wrap
  14175. msgid ""
  14176. ";; List all the regular files in the current directory.\n"
  14177. "(find-files \".\")\n"
  14178. "@result{} (\"./.dir-locals.el\" \"./.gitignore\" @dots{})\n"
  14179. "\n"
  14180. msgstr ""
  14181. #. type: lisp
  14182. #: guix-git/doc/guix.texi:8729
  14183. #, no-wrap
  14184. msgid ""
  14185. ";; List all the .scm files under gnu/services.\n"
  14186. "(find-files \"gnu/services\" \"\\\\.scm$\")\n"
  14187. "@result{} (\"gnu/services/admin.scm\" \"gnu/services/audio.scm\" @dots{})\n"
  14188. "\n"
  14189. msgstr ""
  14190. #. type: lisp
  14191. #: guix-git/doc/guix.texi:8733
  14192. #, no-wrap
  14193. msgid ""
  14194. ";; List ar files in the current directory.\n"
  14195. "(find-files \".\" (lambda (file stat) (ar-file? file)))\n"
  14196. "@result{} (\"./libformat.a\" \"./libstore.a\" @dots{})\n"
  14197. msgstr ""
  14198. #. type: deffn
  14199. #: guix-git/doc/guix.texi:8735
  14200. #, no-wrap
  14201. msgid "{Scheme Procedure} which @var{program}"
  14202. msgstr ""
  14203. #. type: deffn
  14204. #: guix-git/doc/guix.texi:8738
  14205. msgid "Return the complete file name for @var{program} as found in @code{$PATH}, or @code{#f} if @var{program} could not be found."
  14206. msgstr ""
  14207. #. type: Plain text
  14208. #: guix-git/doc/guix.texi:8749
  14209. 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})."
  14210. msgstr ""
  14211. #. type: Plain text
  14212. #: guix-git/doc/guix.texi:8753
  14213. 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."
  14214. msgstr ""
  14215. #. type: cindex
  14216. #: guix-git/doc/guix.texi:8754
  14217. #, fuzzy, no-wrap
  14218. msgid "build phases, modifying"
  14219. msgstr "构建后台进程"
  14220. #. type: deffn
  14221. #: guix-git/doc/guix.texi:8755
  14222. #, no-wrap
  14223. msgid "{Scheme Syntax} modify-phases @var{phases} @var{clause}@dots{}"
  14224. msgstr ""
  14225. #. type: deffn
  14226. #: guix-git/doc/guix.texi:8758
  14227. msgid "Modify @var{phases} sequentially as per each @var{clause}, which may have one of the following forms:"
  14228. msgstr ""
  14229. #. type: lisp
  14230. #: guix-git/doc/guix.texi:8764
  14231. #, no-wrap
  14232. msgid ""
  14233. "(delete @var{old-phase-name})\n"
  14234. "(replace @var{old-phase-name} @var{new-phase})\n"
  14235. "(add-before @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  14236. "(add-after @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  14237. msgstr ""
  14238. #. type: deffn
  14239. #: guix-git/doc/guix.texi:8768
  14240. msgid "Where every @var{phase-name} above is an expression evaluating to a symbol, and @var{new-phase} an expression evaluating to a procedure."
  14241. msgstr ""
  14242. #. type: Plain text
  14243. #: guix-git/doc/guix.texi:8779
  14244. 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:"
  14245. msgstr ""
  14246. #. type: lisp
  14247. #: guix-git/doc/guix.texi:8793
  14248. #, no-wrap
  14249. msgid ""
  14250. "(modify-phases %standard-phases\n"
  14251. " (add-after 'install 'fix-egrep-and-fgrep\n"
  14252. " ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its\n"
  14253. " ;; absolute file name instead of searching for it in $PATH.\n"
  14254. " (lambda* (#:key outputs #:allow-other-keys)\n"
  14255. " (let* ((out (assoc-ref outputs \"out\"))\n"
  14256. " (bin (string-append out \"/bin\")))\n"
  14257. " (substitute* (list (string-append bin \"/egrep\")\n"
  14258. " (string-append bin \"/fgrep\"))\n"
  14259. " ((\"^exec grep\")\n"
  14260. " (string-append \"exec \" bin \"/grep\")))\n"
  14261. " #t))))\n"
  14262. msgstr ""
  14263. #. type: Plain text
  14264. #: guix-git/doc/guix.texi:8800
  14265. 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:"
  14266. msgstr ""
  14267. #. type: lisp
  14268. #: guix-git/doc/guix.texi:8813
  14269. #, no-wrap
  14270. msgid ""
  14271. "(modify-phases %standard-phases\n"
  14272. " (delete 'configure) ;no 'configure' script\n"
  14273. " (replace 'install\n"
  14274. " (lambda* (#:key outputs #:allow-other-keys)\n"
  14275. " ;; The package's Makefile doesn't provide an \"install\"\n"
  14276. " ;; rule so do it by ourselves.\n"
  14277. " (let ((bin (string-append (assoc-ref outputs \"out\")\n"
  14278. " \"/bin\")))\n"
  14279. " (install-file \"footswitch\" bin)\n"
  14280. " (install-file \"scythe\" bin)\n"
  14281. " #t))))\n"
  14282. msgstr ""
  14283. #. type: cindex
  14284. #: guix-git/doc/guix.texi:8821
  14285. #, no-wrap
  14286. msgid "store items"
  14287. msgstr ""
  14288. #. type: cindex
  14289. #: guix-git/doc/guix.texi:8822
  14290. #, no-wrap
  14291. msgid "store paths"
  14292. msgstr ""
  14293. #. type: Plain text
  14294. #: guix-git/doc/guix.texi:8833
  14295. 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}."
  14296. msgstr ""
  14297. #. type: Plain text
  14298. #: guix-git/doc/guix.texi:8838
  14299. 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."
  14300. msgstr ""
  14301. #. type: quotation
  14302. #: guix-git/doc/guix.texi:8843
  14303. 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})."
  14304. msgstr ""
  14305. #. type: quotation
  14306. #: guix-git/doc/guix.texi:8847
  14307. 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."
  14308. msgstr ""
  14309. #. type: Plain text
  14310. #: guix-git/doc/guix.texi:8854
  14311. 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."
  14312. msgstr ""
  14313. #. type: defvr
  14314. #: guix-git/doc/guix.texi:8855
  14315. #, no-wrap
  14316. msgid "{Environment Variable} GUIX_DAEMON_SOCKET"
  14317. msgstr ""
  14318. #. type: defvr
  14319. #: guix-git/doc/guix.texi:8860
  14320. 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:"
  14321. msgstr ""
  14322. #. type: code{#1}
  14323. #: guix-git/doc/guix.texi:8862 guix-git/doc/guix.texi:25132
  14324. #, no-wrap
  14325. msgid "file"
  14326. msgstr ""
  14327. #. type: itemx
  14328. #: guix-git/doc/guix.texi:8863
  14329. #, no-wrap
  14330. msgid "unix"
  14331. msgstr ""
  14332. #. type: table
  14333. #: guix-git/doc/guix.texi:8867
  14334. msgid "These are for Unix-domain sockets. @code{file:///var/guix/daemon-socket/socket} is equivalent to @file{/var/guix/daemon-socket/socket}."
  14335. msgstr ""
  14336. #. type: table
  14337. #: guix-git/doc/guix.texi:8876
  14338. 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):"
  14339. msgstr ""
  14340. #. type: example
  14341. #: guix-git/doc/guix.texi:8879
  14342. #, no-wrap
  14343. msgid "guix://master.guix.example.org:1234\n"
  14344. msgstr ""
  14345. #. type: table
  14346. #: guix-git/doc/guix.texi:8884
  14347. 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}."
  14348. msgstr ""
  14349. #. type: table
  14350. #: guix-git/doc/guix.texi:8888
  14351. 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}})."
  14352. msgstr ""
  14353. #. type: item
  14354. #: guix-git/doc/guix.texi:8889
  14355. #, no-wrap
  14356. msgid "ssh"
  14357. msgstr ""
  14358. #. type: cindex
  14359. #: guix-git/doc/guix.texi:8890
  14360. #, no-wrap
  14361. msgid "SSH access to build daemons"
  14362. msgstr ""
  14363. #. type: table
  14364. #: guix-git/doc/guix.texi:8896
  14365. 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:"
  14366. msgstr ""
  14367. #. type: example
  14368. #: guix-git/doc/guix.texi:8899
  14369. #, no-wrap
  14370. msgid "ssh://charlie@@guix.example.org:22\n"
  14371. msgstr ""
  14372. #. type: table
  14373. #: guix-git/doc/guix.texi:8903
  14374. msgid "As for @command{guix copy}, the usual OpenSSH client configuration files are honored (@pxref{Invoking guix copy})."
  14375. msgstr ""
  14376. #. type: defvr
  14377. #: guix-git/doc/guix.texi:8906
  14378. msgid "Additional URI schemes may be supported in the future."
  14379. msgstr ""
  14380. #. type: quotation
  14381. #: guix-git/doc/guix.texi:8913
  14382. 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})."
  14383. msgstr ""
  14384. #. type: deffn
  14385. #: guix-git/doc/guix.texi:8916
  14386. #, no-wrap
  14387. msgid "{Scheme Procedure} open-connection [@var{uri}] [#:reserve-space? #t]"
  14388. msgstr ""
  14389. #. type: deffn
  14390. #: guix-git/doc/guix.texi:8921
  14391. 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."
  14392. msgstr ""
  14393. #. type: deffn
  14394. #: guix-git/doc/guix.texi:8924
  14395. msgid "@var{file} defaults to @code{%default-socket-path}, which is the normal location given the options that were passed to @command{configure}."
  14396. msgstr ""
  14397. #. type: deffn
  14398. #: guix-git/doc/guix.texi:8926
  14399. #, no-wrap
  14400. msgid "{Scheme Procedure} close-connection @var{server}"
  14401. msgstr ""
  14402. #. type: deffn
  14403. #: guix-git/doc/guix.texi:8928
  14404. msgid "Close the connection to @var{server}."
  14405. msgstr ""
  14406. #. type: defvr
  14407. #: guix-git/doc/guix.texi:8930
  14408. #, no-wrap
  14409. msgid "{Scheme Variable} current-build-output-port"
  14410. msgstr ""
  14411. #. type: defvr
  14412. #: guix-git/doc/guix.texi:8933
  14413. 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."
  14414. msgstr ""
  14415. #. type: Plain text
  14416. #: guix-git/doc/guix.texi:8937
  14417. msgid "Procedures that make RPCs all take a server object as their first argument."
  14418. msgstr ""
  14419. #. type: deffn
  14420. #: guix-git/doc/guix.texi:8938
  14421. #, no-wrap
  14422. msgid "{Scheme Procedure} valid-path? @var{server} @var{path}"
  14423. msgstr ""
  14424. #. type: cindex
  14425. #: guix-git/doc/guix.texi:8939
  14426. #, no-wrap
  14427. msgid "invalid store items"
  14428. msgstr ""
  14429. #. type: deffn
  14430. #: guix-git/doc/guix.texi:8944
  14431. 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)."
  14432. msgstr ""
  14433. #. type: deffn
  14434. #: guix-git/doc/guix.texi:8947
  14435. msgid "A @code{&store-protocol-error} condition is raised if @var{path} is not prefixed by the store directory (@file{/gnu/store})."
  14436. msgstr ""
  14437. #. type: deffn
  14438. #: guix-git/doc/guix.texi:8949
  14439. #, no-wrap
  14440. msgid "{Scheme Procedure} add-text-to-store @var{server} @var{name} @var{text} [@var{references}]"
  14441. msgstr ""
  14442. #. type: deffn
  14443. #: guix-git/doc/guix.texi:8953
  14444. 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."
  14445. msgstr ""
  14446. #. type: deffn
  14447. #: guix-git/doc/guix.texi:8955
  14448. #, no-wrap
  14449. msgid "{Scheme Procedure} build-derivations @var{store} @var{derivations} @"
  14450. msgstr ""
  14451. #. type: deffn
  14452. #: guix-git/doc/guix.texi:8960
  14453. 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."
  14454. msgstr ""
  14455. #. type: Plain text
  14456. #: guix-git/doc/guix.texi:8966
  14457. 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})."
  14458. msgstr ""
  14459. #. type: i{#1}
  14460. #: guix-git/doc/guix.texi:8969
  14461. msgid "This section is currently incomplete."
  14462. msgstr ""
  14463. #. type: cindex
  14464. #: guix-git/doc/guix.texi:8973
  14465. #, no-wrap
  14466. msgid "derivations"
  14467. msgstr ""
  14468. #. type: Plain text
  14469. #: guix-git/doc/guix.texi:8977
  14470. 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:"
  14471. msgstr ""
  14472. #. type: itemize
  14473. #: guix-git/doc/guix.texi:8982
  14474. msgid "The outputs of the derivation---derivations produce at least one file or directory in the store, but may produce more."
  14475. msgstr ""
  14476. #. type: cindex
  14477. #: guix-git/doc/guix.texi:8984
  14478. #, no-wrap
  14479. msgid "build-time dependencies"
  14480. msgstr ""
  14481. #. type: cindex
  14482. #: guix-git/doc/guix.texi:8985
  14483. #, no-wrap
  14484. msgid "dependencies, build-time"
  14485. msgstr ""
  14486. #. type: itemize
  14487. #: guix-git/doc/guix.texi:8989
  14488. 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.)."
  14489. msgstr ""
  14490. #. type: itemize
  14491. #: guix-git/doc/guix.texi:8992
  14492. msgid "The system type targeted by the derivation---e.g., @code{x86_64-linux}."
  14493. msgstr ""
  14494. #. type: itemize
  14495. #: guix-git/doc/guix.texi:8996
  14496. msgid "The file name of a build script in the store, along with the arguments to be passed."
  14497. msgstr ""
  14498. #. type: itemize
  14499. #: guix-git/doc/guix.texi:8999
  14500. msgid "A list of environment variables to be defined."
  14501. msgstr ""
  14502. #. type: cindex
  14503. #: guix-git/doc/guix.texi:9002
  14504. #, no-wrap
  14505. msgid "derivation path"
  14506. msgstr ""
  14507. #. type: Plain text
  14508. #: guix-git/doc/guix.texi:9010
  14509. 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})."
  14510. msgstr ""
  14511. #. type: cindex
  14512. #: guix-git/doc/guix.texi:9011
  14513. #, no-wrap
  14514. msgid "fixed-output derivations"
  14515. msgstr ""
  14516. #. type: Plain text
  14517. #: guix-git/doc/guix.texi:9018
  14518. 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."
  14519. msgstr ""
  14520. #. type: item
  14521. #: guix-git/doc/guix.texi:9019 guix-git/doc/guix.texi:12601
  14522. #, no-wrap
  14523. msgid "references"
  14524. msgstr ""
  14525. #. type: cindex
  14526. #: guix-git/doc/guix.texi:9020
  14527. #, no-wrap
  14528. msgid "run-time dependencies"
  14529. msgstr ""
  14530. #. type: cindex
  14531. #: guix-git/doc/guix.texi:9021
  14532. #, no-wrap
  14533. msgid "dependencies, run-time"
  14534. msgstr ""
  14535. #. type: Plain text
  14536. #: guix-git/doc/guix.texi:9028
  14537. 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."
  14538. msgstr ""
  14539. #. type: Plain text
  14540. #: guix-git/doc/guix.texi:9033
  14541. 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:"
  14542. msgstr ""
  14543. #. type: deffn
  14544. #: guix-git/doc/guix.texi:9034
  14545. #, no-wrap
  14546. msgid "{Scheme Procedure} derivation @var{store} @var{name} @var{builder} @"
  14547. msgstr ""
  14548. #. type: deffn
  14549. #: guix-git/doc/guix.texi:9043
  14550. 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."
  14551. msgstr ""
  14552. #. type: deffn
  14553. #: guix-git/doc/guix.texi:9050
  14554. 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."
  14555. msgstr ""
  14556. #. type: deffn
  14557. #: guix-git/doc/guix.texi:9055
  14558. 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."
  14559. msgstr ""
  14560. #. type: deffn
  14561. #: guix-git/doc/guix.texi:9060
  14562. 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."
  14563. msgstr ""
  14564. #. type: deffn
  14565. #: guix-git/doc/guix.texi:9067
  14566. 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."
  14567. msgstr ""
  14568. #. type: deffn
  14569. #: guix-git/doc/guix.texi:9072
  14570. 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."
  14571. msgstr ""
  14572. #. type: deffn
  14573. #: guix-git/doc/guix.texi:9077
  14574. 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."
  14575. msgstr ""
  14576. #. type: deffn
  14577. #: guix-git/doc/guix.texi:9080
  14578. msgid "@var{properties} must be an association list describing ``properties'' of the derivation. It is kept as-is, uninterpreted, in the derivation."
  14579. msgstr ""
  14580. #. type: Plain text
  14581. #: guix-git/doc/guix.texi:9086
  14582. 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:"
  14583. msgstr ""
  14584. #. type: lisp
  14585. #: guix-git/doc/guix.texi:9091
  14586. #, no-wrap
  14587. msgid ""
  14588. "(use-modules (guix utils)\n"
  14589. " (guix store)\n"
  14590. " (guix derivations))\n"
  14591. "\n"
  14592. msgstr ""
  14593. #. type: lisp
  14594. #: guix-git/doc/guix.texi:9100
  14595. #, no-wrap
  14596. msgid ""
  14597. "(let ((builder ; add the Bash script to the store\n"
  14598. " (add-text-to-store store \"my-builder.sh\"\n"
  14599. " \"echo hello world > $out\\n\" '())))\n"
  14600. " (derivation store \"foo\"\n"
  14601. " bash `(\"-e\" ,builder)\n"
  14602. " #:inputs `((,bash) (,builder))\n"
  14603. " #:env-vars '((\"HOME\" . \"/homeless\"))))\n"
  14604. "@result{} #<derivation /gnu/store/@dots{}-foo.drv => /gnu/store/@dots{}-foo>\n"
  14605. msgstr ""
  14606. #. type: Plain text
  14607. #: guix-git/doc/guix.texi:9107
  14608. 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}."
  14609. msgstr ""
  14610. #. type: Plain text
  14611. #: guix-git/doc/guix.texi:9112
  14612. 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}."
  14613. msgstr ""
  14614. #. type: deffn
  14615. #: guix-git/doc/guix.texi:9113
  14616. #, no-wrap
  14617. msgid "{Scheme Procedure} build-expression->derivation @var{store} @"
  14618. msgstr ""
  14619. #. type: deffn
  14620. #: guix-git/doc/guix.texi:9129
  14621. 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))}."
  14622. msgstr ""
  14623. #. type: deffn
  14624. #: guix-git/doc/guix.texi:9137
  14625. 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."
  14626. msgstr ""
  14627. #. type: deffn
  14628. #: guix-git/doc/guix.texi:9141
  14629. 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."
  14630. msgstr ""
  14631. #. type: deffn
  14632. #: guix-git/doc/guix.texi:9146
  14633. 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?}."
  14634. msgstr ""
  14635. #. type: Plain text
  14636. #: guix-git/doc/guix.texi:9151
  14637. msgid "Here's an example of a single-output derivation that creates a directory containing one file:"
  14638. msgstr ""
  14639. #. type: lisp
  14640. #: guix-git/doc/guix.texi:9159
  14641. #, no-wrap
  14642. msgid ""
  14643. "(let ((builder '(let ((out (assoc-ref %outputs \"out\")))\n"
  14644. " (mkdir out) ; create /gnu/store/@dots{}-goo\n"
  14645. " (call-with-output-file (string-append out \"/test\")\n"
  14646. " (lambda (p)\n"
  14647. " (display '(hello guix) p))))))\n"
  14648. " (build-expression->derivation store \"goo\" builder))\n"
  14649. "\n"
  14650. msgstr ""
  14651. #. type: lisp
  14652. #: guix-git/doc/guix.texi:9161
  14653. #, no-wrap
  14654. msgid "@result{} #<derivation /gnu/store/@dots{}-goo.drv => @dots{}>\n"
  14655. msgstr ""
  14656. #. type: cindex
  14657. #: guix-git/doc/guix.texi:9167
  14658. #, no-wrap
  14659. msgid "monad"
  14660. msgstr ""
  14661. #. type: Plain text
  14662. #: guix-git/doc/guix.texi:9173
  14663. 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."
  14664. msgstr ""
  14665. #. type: Plain text
  14666. #: guix-git/doc/guix.texi:9179
  14667. 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."
  14668. msgstr ""
  14669. #. type: cindex
  14670. #: guix-git/doc/guix.texi:9180
  14671. #, no-wrap
  14672. msgid "monadic values"
  14673. msgstr ""
  14674. #. type: cindex
  14675. #: guix-git/doc/guix.texi:9181
  14676. #, no-wrap
  14677. msgid "monadic functions"
  14678. msgstr ""
  14679. #. type: Plain text
  14680. #: guix-git/doc/guix.texi:9191
  14681. 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}."
  14682. msgstr ""
  14683. #. type: Plain text
  14684. #: guix-git/doc/guix.texi:9193
  14685. msgid "Consider this ``normal'' procedure:"
  14686. msgstr ""
  14687. #. type: lisp
  14688. #: guix-git/doc/guix.texi:9202
  14689. #, no-wrap
  14690. msgid ""
  14691. "(define (sh-symlink store)\n"
  14692. " ;; Return a derivation that symlinks the 'bash' executable.\n"
  14693. " (let* ((drv (package-derivation store bash))\n"
  14694. " (out (derivation->output-path drv))\n"
  14695. " (sh (string-append out \"/bin/bash\")))\n"
  14696. " (build-expression->derivation store \"sh\"\n"
  14697. " `(symlink ,sh %output))))\n"
  14698. msgstr ""
  14699. #. type: Plain text
  14700. #: guix-git/doc/guix.texi:9206
  14701. msgid "Using @code{(guix monads)} and @code{(guix gexp)}, it may be rewritten as a monadic function:"
  14702. msgstr ""
  14703. #. type: lisp
  14704. #: guix-git/doc/guix.texi:9214
  14705. #, no-wrap
  14706. msgid ""
  14707. "(define (sh-symlink)\n"
  14708. " ;; Same, but return a monadic value.\n"
  14709. " (mlet %store-monad ((drv (package->derivation bash)))\n"
  14710. " (gexp->derivation \"sh\"\n"
  14711. " #~(symlink (string-append #$drv \"/bin/bash\")\n"
  14712. " #$output))))\n"
  14713. msgstr ""
  14714. #. type: Plain text
  14715. #: guix-git/doc/guix.texi:9221
  14716. 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}."
  14717. msgstr ""
  14718. #. type: Plain text
  14719. #: guix-git/doc/guix.texi:9225
  14720. 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}):"
  14721. msgstr ""
  14722. #. type: lisp
  14723. #: guix-git/doc/guix.texi:9231
  14724. #, no-wrap
  14725. msgid ""
  14726. "(define (sh-symlink)\n"
  14727. " (gexp->derivation \"sh\"\n"
  14728. " #~(symlink (string-append #$bash \"/bin/bash\")\n"
  14729. " #$output)))\n"
  14730. msgstr ""
  14731. #. type: Plain text
  14732. #: guix-git/doc/guix.texi:9240
  14733. 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}:"
  14734. msgstr ""
  14735. #. type: lisp
  14736. #: guix-git/doc/guix.texi:9244
  14737. #, no-wrap
  14738. msgid ""
  14739. "(run-with-store (open-connection) (sh-symlink))\n"
  14740. "@result{} /gnu/store/...-sh-symlink\n"
  14741. msgstr ""
  14742. #. type: Plain text
  14743. #: guix-git/doc/guix.texi:9250
  14744. 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:"
  14745. msgstr ""
  14746. #. type: example
  14747. #: guix-git/doc/guix.texi:9254
  14748. #, no-wrap
  14749. msgid ""
  14750. "scheme@@(guile-user)> ,run-in-store (package->derivation hello)\n"
  14751. "$1 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  14752. msgstr ""
  14753. #. type: Plain text
  14754. #: guix-git/doc/guix.texi:9258
  14755. msgid "The latter enters a recursive REPL, where all the return values are automatically run through the store:"
  14756. msgstr ""
  14757. #. type: example
  14758. #: guix-git/doc/guix.texi:9267
  14759. #, no-wrap
  14760. msgid ""
  14761. "scheme@@(guile-user)> ,enter-store-monad\n"
  14762. "store-monad@@(guile-user) [1]> (package->derivation hello)\n"
  14763. "$2 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  14764. "store-monad@@(guile-user) [1]> (text-file \"foo\" \"Hello!\")\n"
  14765. "$3 = \"/gnu/store/@dots{}-foo\"\n"
  14766. "store-monad@@(guile-user) [1]> ,q\n"
  14767. "scheme@@(guile-user)>\n"
  14768. msgstr ""
  14769. #. type: Plain text
  14770. #: guix-git/doc/guix.texi:9272
  14771. msgid "Note that non-monadic values cannot be returned in the @code{store-monad} REPL."
  14772. msgstr ""
  14773. #. type: Plain text
  14774. #: guix-git/doc/guix.texi:9275
  14775. msgid "The main syntactic forms to deal with monads in general are provided by the @code{(guix monads)} module and are described below."
  14776. msgstr ""
  14777. #. type: deffn
  14778. #: guix-git/doc/guix.texi:9276
  14779. #, no-wrap
  14780. msgid "{Scheme Syntax} with-monad @var{monad} @var{body} ..."
  14781. msgstr ""
  14782. #. type: deffn
  14783. #: guix-git/doc/guix.texi:9279
  14784. msgid "Evaluate any @code{>>=} or @code{return} forms in @var{body} as being in @var{monad}."
  14785. msgstr ""
  14786. #. type: deffn
  14787. #: guix-git/doc/guix.texi:9281
  14788. #, no-wrap
  14789. msgid "{Scheme Syntax} return @var{val}"
  14790. msgstr ""
  14791. #. type: deffn
  14792. #: guix-git/doc/guix.texi:9283
  14793. msgid "Return a monadic value that encapsulates @var{val}."
  14794. msgstr ""
  14795. #. type: deffn
  14796. #: guix-git/doc/guix.texi:9285
  14797. #, no-wrap
  14798. msgid "{Scheme Syntax} >>= @var{mval} @var{mproc} ..."
  14799. msgstr ""
  14800. #. type: deffn
  14801. #: guix-git/doc/guix.texi:9292
  14802. 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:"
  14803. msgstr ""
  14804. #. type: lisp
  14805. #: guix-git/doc/guix.texi:9300
  14806. #, no-wrap
  14807. msgid ""
  14808. "(run-with-state\n"
  14809. " (with-monad %state-monad\n"
  14810. " (>>= (return 1)\n"
  14811. " (lambda (x) (return (+ 1 x)))\n"
  14812. " (lambda (x) (return (* 2 x)))))\n"
  14813. " 'some-state)\n"
  14814. "\n"
  14815. msgstr ""
  14816. #. type: lisp
  14817. #: guix-git/doc/guix.texi:9303
  14818. #, no-wrap
  14819. msgid ""
  14820. "@result{} 4\n"
  14821. "@result{} some-state\n"
  14822. msgstr ""
  14823. #. type: deffn
  14824. #: guix-git/doc/guix.texi:9306
  14825. #, no-wrap
  14826. msgid "{Scheme Syntax} mlet @var{monad} ((@var{var} @var{mval}) ...) @"
  14827. msgstr ""
  14828. #. type: deffn
  14829. #: guix-git/doc/guix.texi:9308
  14830. msgid "@var{body} ..."
  14831. msgstr ""
  14832. #. type: deffnx
  14833. #: guix-git/doc/guix.texi:9308
  14834. #, no-wrap
  14835. msgid "{Scheme Syntax} mlet* @var{monad} ((@var{var} @var{mval}) ...) @"
  14836. msgstr ""
  14837. #. type: deffn
  14838. #: guix-git/doc/guix.texi:9320
  14839. 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}."
  14840. msgstr ""
  14841. #. type: deffn
  14842. #: guix-git/doc/guix.texi:9323
  14843. msgid "@code{mlet*} is to @code{mlet} what @code{let*} is to @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual})."
  14844. msgstr ""
  14845. #. type: deffn
  14846. #: guix-git/doc/guix.texi:9325
  14847. #, no-wrap
  14848. msgid "{Scheme System} mbegin @var{monad} @var{mexp} ..."
  14849. msgstr ""
  14850. #. type: deffn
  14851. #: guix-git/doc/guix.texi:9329
  14852. 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."
  14853. msgstr ""
  14854. #. type: deffn
  14855. #: guix-git/doc/guix.texi:9333
  14856. 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."
  14857. msgstr ""
  14858. #. type: deffn
  14859. #: guix-git/doc/guix.texi:9335
  14860. #, no-wrap
  14861. msgid "{Scheme System} mwhen @var{condition} @var{mexp0} @var{mexp*} ..."
  14862. msgstr ""
  14863. #. type: deffn
  14864. #: guix-git/doc/guix.texi:9340
  14865. 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."
  14866. msgstr ""
  14867. #. type: deffn
  14868. #: guix-git/doc/guix.texi:9342
  14869. #, no-wrap
  14870. msgid "{Scheme System} munless @var{condition} @var{mexp0} @var{mexp*} ..."
  14871. msgstr ""
  14872. #. type: deffn
  14873. #: guix-git/doc/guix.texi:9347
  14874. 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."
  14875. msgstr ""
  14876. #. type: cindex
  14877. #: guix-git/doc/guix.texi:9349
  14878. #, no-wrap
  14879. msgid "state monad"
  14880. msgstr ""
  14881. #. type: Plain text
  14882. #: guix-git/doc/guix.texi:9353
  14883. 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."
  14884. msgstr ""
  14885. #. type: defvr
  14886. #: guix-git/doc/guix.texi:9354
  14887. #, no-wrap
  14888. msgid "{Scheme Variable} %state-monad"
  14889. msgstr ""
  14890. #. type: defvr
  14891. #: guix-git/doc/guix.texi:9357
  14892. msgid "The state monad. Procedures in the state monad can access and change the state that is threaded."
  14893. msgstr ""
  14894. #. type: defvr
  14895. #: guix-git/doc/guix.texi:9361
  14896. 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:"
  14897. msgstr ""
  14898. #. type: lisp
  14899. #: guix-git/doc/guix.texi:9368
  14900. #, no-wrap
  14901. msgid ""
  14902. "(define (square x)\n"
  14903. " (mlet %state-monad ((count (current-state)))\n"
  14904. " (mbegin %state-monad\n"
  14905. " (set-current-state (+ 1 count))\n"
  14906. " (return (* x x)))))\n"
  14907. "\n"
  14908. msgstr ""
  14909. #. type: lisp
  14910. #: guix-git/doc/guix.texi:9372
  14911. #, no-wrap
  14912. msgid ""
  14913. "(run-with-state (sequence %state-monad (map square (iota 3))) 0)\n"
  14914. "@result{} (0 1 4)\n"
  14915. "@result{} 3\n"
  14916. msgstr ""
  14917. #. type: defvr
  14918. #: guix-git/doc/guix.texi:9376
  14919. msgid "When ``run'' through @code{%state-monad}, we obtain that additional state value, which is the number of @code{square} calls."
  14920. msgstr ""
  14921. #. type: deffn
  14922. #: guix-git/doc/guix.texi:9378
  14923. #, no-wrap
  14924. msgid "{Monadic Procedure} current-state"
  14925. msgstr ""
  14926. #. type: deffn
  14927. #: guix-git/doc/guix.texi:9380
  14928. msgid "Return the current state as a monadic value."
  14929. msgstr ""
  14930. #. type: deffn
  14931. #: guix-git/doc/guix.texi:9382
  14932. #, no-wrap
  14933. msgid "{Monadic Procedure} set-current-state @var{value}"
  14934. msgstr ""
  14935. #. type: deffn
  14936. #: guix-git/doc/guix.texi:9385
  14937. msgid "Set the current state to @var{value} and return the previous state as a monadic value."
  14938. msgstr ""
  14939. #. type: deffn
  14940. #: guix-git/doc/guix.texi:9387
  14941. #, no-wrap
  14942. msgid "{Monadic Procedure} state-push @var{value}"
  14943. msgstr ""
  14944. #. type: deffn
  14945. #: guix-git/doc/guix.texi:9390
  14946. msgid "Push @var{value} to the current state, which is assumed to be a list, and return the previous state as a monadic value."
  14947. msgstr ""
  14948. #. type: deffn
  14949. #: guix-git/doc/guix.texi:9392
  14950. #, no-wrap
  14951. msgid "{Monadic Procedure} state-pop"
  14952. msgstr ""
  14953. #. type: deffn
  14954. #: guix-git/doc/guix.texi:9395
  14955. msgid "Pop a value from the current state and return it as a monadic value. The state is assumed to be a list."
  14956. msgstr ""
  14957. #. type: deffn
  14958. #: guix-git/doc/guix.texi:9397
  14959. #, no-wrap
  14960. msgid "{Scheme Procedure} run-with-state @var{mval} [@var{state}]"
  14961. msgstr ""
  14962. #. type: deffn
  14963. #: guix-git/doc/guix.texi:9400
  14964. msgid "Run monadic value @var{mval} starting with @var{state} as the initial state. Return two values: the resulting value, and the resulting state."
  14965. msgstr ""
  14966. #. type: Plain text
  14967. #: guix-git/doc/guix.texi:9404
  14968. msgid "The main interface to the store monad, provided by the @code{(guix store)} module, is as follows."
  14969. msgstr ""
  14970. #. type: defvr
  14971. #: guix-git/doc/guix.texi:9405
  14972. #, no-wrap
  14973. msgid "{Scheme Variable} %store-monad"
  14974. msgstr ""
  14975. #. type: defvr
  14976. #: guix-git/doc/guix.texi:9407
  14977. msgid "The store monad---an alias for @code{%state-monad}."
  14978. msgstr ""
  14979. #. type: defvr
  14980. #: guix-git/doc/guix.texi:9411
  14981. 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)."
  14982. msgstr ""
  14983. #. type: deffn
  14984. #: guix-git/doc/guix.texi:9413
  14985. #, no-wrap
  14986. msgid "{Scheme Procedure} run-with-store @var{store} @var{mval} [#:guile-for-build] [#:system (%current-system)]"
  14987. msgstr ""
  14988. #. type: deffn
  14989. #: guix-git/doc/guix.texi:9416
  14990. msgid "Run @var{mval}, a monadic value in the store monad, in @var{store}, an open store connection."
  14991. msgstr ""
  14992. #. type: deffn
  14993. #: guix-git/doc/guix.texi:9418
  14994. #, no-wrap
  14995. msgid "{Monadic Procedure} text-file @var{name} @var{text} [@var{references}]"
  14996. msgstr ""
  14997. #. type: deffn
  14998. #: guix-git/doc/guix.texi:9422
  14999. 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."
  15000. msgstr ""
  15001. #. type: deffn
  15002. #: guix-git/doc/guix.texi:9424
  15003. #, no-wrap
  15004. msgid "{Monadic Procedure} binary-file @var{name} @var{data} [@var{references}]"
  15005. msgstr ""
  15006. #. type: deffn
  15007. #: guix-git/doc/guix.texi:9428
  15008. 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."
  15009. msgstr ""
  15010. #. type: deffn
  15011. #: guix-git/doc/guix.texi:9430
  15012. #, no-wrap
  15013. msgid "{Monadic Procedure} interned-file @var{file} [@var{name}] @"
  15014. msgstr ""
  15015. #. type: deffn
  15016. #: guix-git/doc/guix.texi:9435
  15017. 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."
  15018. msgstr ""
  15019. #. type: deffn
  15020. #: guix-git/doc/guix.texi:9439 guix-git/doc/guix.texi:9862
  15021. 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."
  15022. msgstr ""
  15023. #. type: deffn
  15024. #: guix-git/doc/guix.texi:9444 guix-git/doc/guix.texi:9867
  15025. 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."
  15026. msgstr ""
  15027. #. type: deffn
  15028. #: guix-git/doc/guix.texi:9446
  15029. msgid "The example below adds a file to the store, under two different names:"
  15030. msgstr ""
  15031. #. type: lisp
  15032. #: guix-git/doc/guix.texi:9452
  15033. #, no-wrap
  15034. msgid ""
  15035. "(run-with-store (open-connection)\n"
  15036. " (mlet %store-monad ((a (interned-file \"README\"))\n"
  15037. " (b (interned-file \"README\" \"LEGU-MIN\")))\n"
  15038. " (return (list a b))))\n"
  15039. "\n"
  15040. msgstr ""
  15041. #. type: lisp
  15042. #: guix-git/doc/guix.texi:9454
  15043. #, no-wrap
  15044. msgid "@result{} (\"/gnu/store/rwm@dots{}-README\" \"/gnu/store/44i@dots{}-LEGU-MIN\")\n"
  15045. msgstr ""
  15046. #. type: Plain text
  15047. #: guix-git/doc/guix.texi:9460
  15048. msgid "The @code{(guix packages)} module exports the following package-related monadic procedures:"
  15049. msgstr ""
  15050. #. type: deffn
  15051. #: guix-git/doc/guix.texi:9461
  15052. #, no-wrap
  15053. msgid "{Monadic Procedure} package-file @var{package} [@var{file}] @"
  15054. msgstr ""
  15055. #. type: deffn
  15056. #: guix-git/doc/guix.texi:9469
  15057. 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."
  15058. msgstr ""
  15059. #. type: deffn
  15060. #: guix-git/doc/guix.texi:9473
  15061. 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."
  15062. msgstr ""
  15063. #. type: deffn
  15064. #: guix-git/doc/guix.texi:9475
  15065. #, no-wrap
  15066. msgid "{Monadic Procedure} package->derivation @var{package} [@var{system}]"
  15067. msgstr ""
  15068. #. type: deffnx
  15069. #: guix-git/doc/guix.texi:9476
  15070. #, no-wrap
  15071. msgid "{Monadic Procedure} package->cross-derivation @var{package} @"
  15072. msgstr ""
  15073. #. type: deffn
  15074. #: guix-git/doc/guix.texi:9480
  15075. msgid "@var{target} [@var{system}] Monadic version of @code{package-derivation} and @code{package-cross-derivation} (@pxref{Defining Packages})."
  15076. msgstr ""
  15077. #. type: cindex
  15078. #: guix-git/doc/guix.texi:9486
  15079. #, no-wrap
  15080. msgid "G-expression"
  15081. msgstr ""
  15082. #. type: cindex
  15083. #: guix-git/doc/guix.texi:9487
  15084. #, no-wrap
  15085. msgid "build code quoting"
  15086. msgstr ""
  15087. #. type: Plain text
  15088. #: guix-git/doc/guix.texi:9493
  15089. 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})."
  15090. msgstr ""
  15091. #. type: cindex
  15092. #: guix-git/doc/guix.texi:9496
  15093. #, no-wrap
  15094. msgid "strata of code"
  15095. msgstr ""
  15096. #. type: Plain text
  15097. #: guix-git/doc/guix.texi:9508
  15098. 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})."
  15099. msgstr ""
  15100. #. type: Plain text
  15101. #: guix-git/doc/guix.texi:9515
  15102. 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."
  15103. msgstr ""
  15104. #. type: Plain text
  15105. #: guix-git/doc/guix.texi:9524
  15106. 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:"
  15107. msgstr ""
  15108. #. type: itemize
  15109. #: guix-git/doc/guix.texi:9529
  15110. msgid "Gexps are meant to be written to a file and run or manipulated by other processes."
  15111. msgstr ""
  15112. #. type: itemize
  15113. #: guix-git/doc/guix.texi:9534
  15114. 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."
  15115. msgstr ""
  15116. #. type: itemize
  15117. #: guix-git/doc/guix.texi:9539
  15118. 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."
  15119. msgstr ""
  15120. #. type: cindex
  15121. #: guix-git/doc/guix.texi:9541 guix-git/doc/guix.texi:10098
  15122. #, no-wrap
  15123. msgid "lowering, of high-level objects in gexps"
  15124. msgstr ""
  15125. #. type: Plain text
  15126. #: guix-git/doc/guix.texi:9551
  15127. 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)."
  15128. msgstr ""
  15129. #. type: Plain text
  15130. #: guix-git/doc/guix.texi:9553
  15131. msgid "To illustrate the idea, here is an example of a gexp:"
  15132. msgstr ""
  15133. #. type: lisp
  15134. #: guix-git/doc/guix.texi:9561
  15135. #, no-wrap
  15136. msgid ""
  15137. "(define build-exp\n"
  15138. " #~(begin\n"
  15139. " (mkdir #$output)\n"
  15140. " (chdir #$output)\n"
  15141. " (symlink (string-append #$coreutils \"/bin/ls\")\n"
  15142. " \"list-files\")))\n"
  15143. msgstr ""
  15144. #. type: Plain text
  15145. #: guix-git/doc/guix.texi:9566
  15146. 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}:"
  15147. msgstr ""
  15148. #. type: lisp
  15149. #: guix-git/doc/guix.texi:9569
  15150. #, no-wrap
  15151. msgid "(gexp->derivation \"the-thing\" build-exp)\n"
  15152. msgstr ""
  15153. #. type: Plain text
  15154. #: guix-git/doc/guix.texi:9577
  15155. 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."
  15156. msgstr ""
  15157. #. type: cindex
  15158. #: guix-git/doc/guix.texi:9578
  15159. #, no-wrap
  15160. msgid "cross compilation"
  15161. msgstr ""
  15162. #. type: Plain text
  15163. #: guix-git/doc/guix.texi:9584
  15164. 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:"
  15165. msgstr ""
  15166. #. type: lisp
  15167. #: guix-git/doc/guix.texi:9595
  15168. #, no-wrap
  15169. msgid ""
  15170. "(gexp->derivation \"vi\"\n"
  15171. " #~(begin\n"
  15172. " (mkdir #$output)\n"
  15173. " (mkdir (string-append #$output \"/bin\"))\n"
  15174. " (system* (string-append #+coreutils \"/bin/ln\")\n"
  15175. " \"-s\"\n"
  15176. " (string-append #$emacs \"/bin/emacs\")\n"
  15177. " (string-append #$output \"/bin/vi\")))\n"
  15178. " #:target \"aarch64-linux-gnu\")\n"
  15179. msgstr ""
  15180. #. type: Plain text
  15181. #: guix-git/doc/guix.texi:9601
  15182. 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."
  15183. msgstr ""
  15184. #. type: cindex
  15185. #: guix-git/doc/guix.texi:9602
  15186. #, no-wrap
  15187. msgid "imported modules, for gexps"
  15188. msgstr ""
  15189. #. type: findex
  15190. #: guix-git/doc/guix.texi:9603
  15191. #, no-wrap
  15192. msgid "with-imported-modules"
  15193. msgstr ""
  15194. #. type: Plain text
  15195. #: guix-git/doc/guix.texi:9608
  15196. 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:"
  15197. msgstr ""
  15198. #. type: lisp
  15199. #: guix-git/doc/guix.texi:9619
  15200. #, no-wrap
  15201. msgid ""
  15202. "(let ((build (with-imported-modules '((guix build utils))\n"
  15203. " #~(begin\n"
  15204. " (use-modules (guix build utils))\n"
  15205. " (mkdir-p (string-append #$output \"/bin\"))))))\n"
  15206. " (gexp->derivation \"empty-dir\"\n"
  15207. " #~(begin\n"
  15208. " #$build\n"
  15209. " (display \"success!\\n\")\n"
  15210. " #t)))\n"
  15211. msgstr ""
  15212. #. type: Plain text
  15213. #: guix-git/doc/guix.texi:9625
  15214. 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."
  15215. msgstr ""
  15216. #. type: cindex
  15217. #: guix-git/doc/guix.texi:9626
  15218. #, no-wrap
  15219. msgid "module closure"
  15220. msgstr ""
  15221. #. type: findex
  15222. #: guix-git/doc/guix.texi:9627
  15223. #, no-wrap
  15224. msgid "source-module-closure"
  15225. msgstr ""
  15226. #. type: Plain text
  15227. #: guix-git/doc/guix.texi:9634
  15228. 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:"
  15229. msgstr ""
  15230. #. type: lisp
  15231. #: guix-git/doc/guix.texi:9637
  15232. #, no-wrap
  15233. msgid ""
  15234. "(use-modules (guix modules)) ;for 'source-module-closure'\n"
  15235. "\n"
  15236. msgstr ""
  15237. #. type: lisp
  15238. #: guix-git/doc/guix.texi:9646
  15239. #, no-wrap
  15240. msgid ""
  15241. "(with-imported-modules (source-module-closure\n"
  15242. " '((guix build utils)\n"
  15243. " (gnu build vm)))\n"
  15244. " (gexp->derivation \"something-with-vms\"\n"
  15245. " #~(begin\n"
  15246. " (use-modules (guix build utils)\n"
  15247. " (gnu build vm))\n"
  15248. " @dots{})))\n"
  15249. msgstr ""
  15250. #. type: cindex
  15251. #: guix-git/doc/guix.texi:9648
  15252. #, no-wrap
  15253. msgid "extensions, for gexps"
  15254. msgstr ""
  15255. #. type: findex
  15256. #: guix-git/doc/guix.texi:9649
  15257. #, no-wrap
  15258. msgid "with-extensions"
  15259. msgstr ""
  15260. #. type: Plain text
  15261. #: guix-git/doc/guix.texi:9654
  15262. 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:"
  15263. msgstr ""
  15264. #. type: lisp
  15265. #: guix-git/doc/guix.texi:9657
  15266. #, no-wrap
  15267. msgid ""
  15268. "(use-modules (gnu packages guile)) ;for 'guile-json'\n"
  15269. "\n"
  15270. msgstr ""
  15271. #. type: lisp
  15272. #: guix-git/doc/guix.texi:9663
  15273. #, no-wrap
  15274. msgid ""
  15275. "(with-extensions (list guile-json)\n"
  15276. " (gexp->derivation \"something-with-json\"\n"
  15277. " #~(begin\n"
  15278. " (use-modules (json))\n"
  15279. " @dots{})))\n"
  15280. msgstr ""
  15281. #. type: Plain text
  15282. #: guix-git/doc/guix.texi:9666
  15283. msgid "The syntactic form to construct gexps is summarized below."
  15284. msgstr ""
  15285. #. type: deffn
  15286. #: guix-git/doc/guix.texi:9667
  15287. #, no-wrap
  15288. msgid "{Scheme Syntax} #~@var{exp}"
  15289. msgstr ""
  15290. #. type: deffnx
  15291. #: guix-git/doc/guix.texi:9668
  15292. #, no-wrap
  15293. msgid "{Scheme Syntax} (gexp @var{exp})"
  15294. msgstr ""
  15295. #. type: deffn
  15296. #: guix-git/doc/guix.texi:9671
  15297. msgid "Return a G-expression containing @var{exp}. @var{exp} may contain one or more of the following forms:"
  15298. msgstr ""
  15299. #. type: item
  15300. #: guix-git/doc/guix.texi:9673
  15301. #, no-wrap
  15302. msgid "#$@var{obj}"
  15303. msgstr ""
  15304. #. type: itemx
  15305. #: guix-git/doc/guix.texi:9674
  15306. #, no-wrap
  15307. msgid "(ungexp @var{obj})"
  15308. msgstr ""
  15309. #. type: table
  15310. #: guix-git/doc/guix.texi:9679
  15311. 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}."
  15312. msgstr ""
  15313. #. type: table
  15314. #: guix-git/doc/guix.texi:9682
  15315. msgid "If @var{obj} is a list, it is traversed and references to supported objects are substituted similarly."
  15316. msgstr ""
  15317. #. type: table
  15318. #: guix-git/doc/guix.texi:9685
  15319. msgid "If @var{obj} is another gexp, its contents are inserted and its dependencies are added to those of the containing gexp."
  15320. msgstr ""
  15321. #. type: table
  15322. #: guix-git/doc/guix.texi:9687
  15323. msgid "If @var{obj} is another kind of object, it is inserted as is."
  15324. msgstr ""
  15325. #. type: item
  15326. #: guix-git/doc/guix.texi:9688
  15327. #, no-wrap
  15328. msgid "#$@var{obj}:@var{output}"
  15329. msgstr ""
  15330. #. type: itemx
  15331. #: guix-git/doc/guix.texi:9689
  15332. #, no-wrap
  15333. msgid "(ungexp @var{obj} @var{output})"
  15334. msgstr ""
  15335. #. type: table
  15336. #: guix-git/doc/guix.texi:9693
  15337. 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})."
  15338. msgstr ""
  15339. #. type: item
  15340. #: guix-git/doc/guix.texi:9694
  15341. #, no-wrap
  15342. msgid "#+@var{obj}"
  15343. msgstr ""
  15344. #. type: itemx
  15345. #: guix-git/doc/guix.texi:9695
  15346. #, no-wrap
  15347. msgid "#+@var{obj}:output"
  15348. msgstr ""
  15349. #. type: itemx
  15350. #: guix-git/doc/guix.texi:9696
  15351. #, no-wrap
  15352. msgid "(ungexp-native @var{obj})"
  15353. msgstr ""
  15354. #. type: itemx
  15355. #: guix-git/doc/guix.texi:9697
  15356. #, no-wrap
  15357. msgid "(ungexp-native @var{obj} @var{output})"
  15358. msgstr ""
  15359. #. type: table
  15360. #: guix-git/doc/guix.texi:9700
  15361. msgid "Same as @code{ungexp}, but produces a reference to the @emph{native} build of @var{obj} when used in a cross compilation context."
  15362. msgstr ""
  15363. #. type: item
  15364. #: guix-git/doc/guix.texi:9701
  15365. #, no-wrap
  15366. msgid "#$output[:@var{output}]"
  15367. msgstr ""
  15368. #. type: itemx
  15369. #: guix-git/doc/guix.texi:9702
  15370. #, no-wrap
  15371. msgid "(ungexp output [@var{output}])"
  15372. msgstr ""
  15373. #. type: table
  15374. #: guix-git/doc/guix.texi:9705
  15375. msgid "Insert a reference to derivation output @var{output}, or to the main output when @var{output} is omitted."
  15376. msgstr ""
  15377. #. type: table
  15378. #: guix-git/doc/guix.texi:9707
  15379. msgid "This only makes sense for gexps passed to @code{gexp->derivation}."
  15380. msgstr ""
  15381. #. type: item
  15382. #: guix-git/doc/guix.texi:9708
  15383. #, no-wrap
  15384. msgid "#$@@@var{lst}"
  15385. msgstr ""
  15386. #. type: itemx
  15387. #: guix-git/doc/guix.texi:9709
  15388. #, no-wrap
  15389. msgid "(ungexp-splicing @var{lst})"
  15390. msgstr ""
  15391. #. type: table
  15392. #: guix-git/doc/guix.texi:9712
  15393. msgid "Like the above, but splices the contents of @var{lst} inside the containing list."
  15394. msgstr ""
  15395. #. type: item
  15396. #: guix-git/doc/guix.texi:9713
  15397. #, no-wrap
  15398. msgid "#+@@@var{lst}"
  15399. msgstr ""
  15400. #. type: itemx
  15401. #: guix-git/doc/guix.texi:9714
  15402. #, no-wrap
  15403. msgid "(ungexp-native-splicing @var{lst})"
  15404. msgstr ""
  15405. #. type: table
  15406. #: guix-git/doc/guix.texi:9717
  15407. msgid "Like the above, but refers to native builds of the objects listed in @var{lst}."
  15408. msgstr ""
  15409. #. type: deffn
  15410. #: guix-git/doc/guix.texi:9722
  15411. msgid "G-expressions created by @code{gexp} or @code{#~} are run-time objects of the @code{gexp?} type (see below)."
  15412. msgstr ""
  15413. #. type: deffn
  15414. #: guix-git/doc/guix.texi:9724
  15415. #, no-wrap
  15416. msgid "{Scheme Syntax} with-imported-modules @var{modules} @var{body}@dots{}"
  15417. msgstr ""
  15418. #. type: deffn
  15419. #: guix-git/doc/guix.texi:9727
  15420. msgid "Mark the gexps defined in @var{body}@dots{} as requiring @var{modules} in their execution environment."
  15421. msgstr ""
  15422. #. type: deffn
  15423. #: guix-git/doc/guix.texi:9731
  15424. 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:"
  15425. msgstr ""
  15426. #. type: lisp
  15427. #: guix-git/doc/guix.texi:9737
  15428. #, no-wrap
  15429. msgid ""
  15430. "`((guix build utils)\n"
  15431. " (guix gcrypt)\n"
  15432. " ((guix config) => ,(scheme-file \"config.scm\"\n"
  15433. " #~(define-module @dots{}))))\n"
  15434. msgstr ""
  15435. #. type: deffn
  15436. #: guix-git/doc/guix.texi:9742
  15437. 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."
  15438. msgstr ""
  15439. #. type: deffn
  15440. #: guix-git/doc/guix.texi:9746
  15441. 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{}."
  15442. msgstr ""
  15443. #. type: deffn
  15444. #: guix-git/doc/guix.texi:9748
  15445. #, no-wrap
  15446. msgid "{Scheme Syntax} with-extensions @var{extensions} @var{body}@dots{}"
  15447. msgstr ""
  15448. #. type: deffn
  15449. #: guix-git/doc/guix.texi:9753
  15450. 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."
  15451. msgstr ""
  15452. #. type: deffn
  15453. #: guix-git/doc/guix.texi:9758
  15454. 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{}."
  15455. msgstr ""
  15456. #. type: deffn
  15457. #: guix-git/doc/guix.texi:9760
  15458. #, no-wrap
  15459. msgid "{Scheme Procedure} gexp? @var{obj}"
  15460. msgstr ""
  15461. #. type: deffn
  15462. #: guix-git/doc/guix.texi:9762
  15463. msgid "Return @code{#t} if @var{obj} is a G-expression."
  15464. msgstr ""
  15465. #. type: Plain text
  15466. #: guix-git/doc/guix.texi:9768
  15467. 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)."
  15468. msgstr ""
  15469. #. type: deffn
  15470. #: guix-git/doc/guix.texi:9769
  15471. #, no-wrap
  15472. msgid "{Monadic Procedure} gexp->derivation @var{name} @var{exp} @"
  15473. msgstr ""
  15474. #. type: deffn
  15475. #: guix-git/doc/guix.texi:9787
  15476. 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}."
  15477. msgstr ""
  15478. #. type: deffn
  15479. #: guix-git/doc/guix.texi:9795
  15480. 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))}."
  15481. msgstr ""
  15482. #. type: deffn
  15483. #: guix-git/doc/guix.texi:9798
  15484. 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\"}."
  15485. msgstr ""
  15486. #. type: deffn
  15487. #: guix-git/doc/guix.texi:9801
  15488. msgid "@var{graft?} determines whether packages referred to by @var{exp} should be grafted when applicable."
  15489. msgstr ""
  15490. #. type: deffn
  15491. #: guix-git/doc/guix.texi:9804
  15492. msgid "When @var{references-graphs} is true, it must be a list of tuples of one of the following forms:"
  15493. msgstr ""
  15494. #. type: example
  15495. #: guix-git/doc/guix.texi:9811
  15496. #, no-wrap
  15497. msgid ""
  15498. "(@var{file-name} @var{package})\n"
  15499. "(@var{file-name} @var{package} @var{output})\n"
  15500. "(@var{file-name} @var{derivation})\n"
  15501. "(@var{file-name} @var{derivation} @var{output})\n"
  15502. "(@var{file-name} @var{store-item})\n"
  15503. msgstr ""
  15504. #. type: deffn
  15505. #: guix-git/doc/guix.texi:9817
  15506. 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."
  15507. msgstr ""
  15508. #. type: deffn
  15509. #: guix-git/doc/guix.texi:9823
  15510. 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."
  15511. msgstr ""
  15512. #. type: deffn
  15513. #: guix-git/doc/guix.texi:9826
  15514. msgid "@var{deprecation-warnings} determines whether to show deprecation warnings while compiling modules. It can be @code{#f}, @code{#t}, or @code{'detailed}."
  15515. msgstr ""
  15516. #. type: deffn
  15517. #: guix-git/doc/guix.texi:9828
  15518. msgid "The other arguments are as for @code{derivation} (@pxref{Derivations})."
  15519. msgstr ""
  15520. #. type: cindex
  15521. #: guix-git/doc/guix.texi:9830
  15522. #, no-wrap
  15523. msgid "file-like objects"
  15524. msgstr ""
  15525. #. type: Plain text
  15526. #: guix-git/doc/guix.texi:9835
  15527. 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:"
  15528. msgstr ""
  15529. #. type: lisp
  15530. #: guix-git/doc/guix.texi:9839
  15531. #, no-wrap
  15532. msgid ""
  15533. "#~(system* #$(file-append glibc \"/sbin/nscd\") \"-f\"\n"
  15534. " #$(local-file \"/tmp/my-nscd.conf\"))\n"
  15535. msgstr ""
  15536. #. type: Plain text
  15537. #: guix-git/doc/guix.texi:9848
  15538. 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."
  15539. msgstr ""
  15540. #. type: deffn
  15541. #: guix-git/doc/guix.texi:9849
  15542. #, no-wrap
  15543. msgid "{Scheme Procedure} local-file @var{file} [@var{name}] @"
  15544. msgstr ""
  15545. #. type: deffn
  15546. #: guix-git/doc/guix.texi:9858
  15547. 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}."
  15548. msgstr ""
  15549. #. type: deffn
  15550. #: guix-git/doc/guix.texi:9870
  15551. msgid "This is the declarative counterpart of the @code{interned-file} monadic procedure (@pxref{The Store Monad, @code{interned-file}})."
  15552. msgstr ""
  15553. #. type: deffn
  15554. #: guix-git/doc/guix.texi:9872
  15555. #, no-wrap
  15556. msgid "{Scheme Procedure} plain-file @var{name} @var{content}"
  15557. msgstr ""
  15558. #. type: deffn
  15559. #: guix-git/doc/guix.texi:9875
  15560. 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."
  15561. msgstr ""
  15562. #. type: deffn
  15563. #: guix-git/doc/guix.texi:9877
  15564. msgid "This is the declarative counterpart of @code{text-file}."
  15565. msgstr ""
  15566. #. type: deffn
  15567. #: guix-git/doc/guix.texi:9879
  15568. #, no-wrap
  15569. msgid "{Scheme Procedure} computed-file @var{name} @var{gexp} @"
  15570. msgstr ""
  15571. #. type: deffn
  15572. #: guix-git/doc/guix.texi:9886
  15573. 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}."
  15574. msgstr ""
  15575. #. type: deffn
  15576. #: guix-git/doc/guix.texi:9888
  15577. msgid "This is the declarative counterpart of @code{gexp->derivation}."
  15578. msgstr ""
  15579. #. type: deffn
  15580. #: guix-git/doc/guix.texi:9890
  15581. #, no-wrap
  15582. msgid "{Monadic Procedure} gexp->script @var{name} @var{exp} @"
  15583. msgstr ""
  15584. #. type: deffn
  15585. #: guix-git/doc/guix.texi:9896
  15586. 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}."
  15587. msgstr ""
  15588. #. type: deffn
  15589. #: guix-git/doc/guix.texi:9899
  15590. msgid "The example below builds a script that simply invokes the @command{ls} command:"
  15591. msgstr ""
  15592. #. type: lisp
  15593. #: guix-git/doc/guix.texi:9902
  15594. #, no-wrap
  15595. msgid ""
  15596. "(use-modules (guix gexp) (gnu packages base))\n"
  15597. "\n"
  15598. msgstr ""
  15599. #. type: lisp
  15600. #: guix-git/doc/guix.texi:9906
  15601. #, no-wrap
  15602. msgid ""
  15603. "(gexp->script \"list-files\"\n"
  15604. " #~(execl #$(file-append coreutils \"/bin/ls\")\n"
  15605. " \"ls\"))\n"
  15606. msgstr ""
  15607. #. type: deffn
  15608. #: guix-git/doc/guix.texi:9911
  15609. 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:"
  15610. msgstr ""
  15611. #. type: example
  15612. #: guix-git/doc/guix.texi:9916
  15613. #, no-wrap
  15614. msgid ""
  15615. "#!/gnu/store/@dots{}-guile-2.0.11/bin/guile -ds\n"
  15616. "!#\n"
  15617. "(execl \"/gnu/store/@dots{}-coreutils-8.22\"/bin/ls\" \"ls\")\n"
  15618. msgstr ""
  15619. #. type: deffn
  15620. #: guix-git/doc/guix.texi:9919
  15621. #, no-wrap
  15622. msgid "{Scheme Procedure} program-file @var{name} @var{exp} @"
  15623. msgstr ""
  15624. #. type: deffn
  15625. #: guix-git/doc/guix.texi:9924
  15626. 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}."
  15627. msgstr ""
  15628. #. type: deffn
  15629. #: guix-git/doc/guix.texi:9926
  15630. msgid "This is the declarative counterpart of @code{gexp->script}."
  15631. msgstr ""
  15632. #. type: deffn
  15633. #: guix-git/doc/guix.texi:9928
  15634. #, no-wrap
  15635. msgid "{Monadic Procedure} gexp->file @var{name} @var{exp} @"
  15636. msgstr ""
  15637. #. type: deffn
  15638. #: guix-git/doc/guix.texi:9935
  15639. 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."
  15640. msgstr ""
  15641. #. type: deffn
  15642. #: guix-git/doc/guix.texi:9940
  15643. 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}."
  15644. msgstr ""
  15645. #. type: deffn
  15646. #: guix-git/doc/guix.texi:9943
  15647. msgid "The resulting file holds references to all the dependencies of @var{exp} or a subset thereof."
  15648. msgstr ""
  15649. #. type: deffn
  15650. #: guix-git/doc/guix.texi:9945
  15651. #, no-wrap
  15652. msgid "{Scheme Procedure} scheme-file @var{name} @var{exp} @"
  15653. msgstr ""
  15654. #. type: deffn
  15655. #: guix-git/doc/guix.texi:9949
  15656. msgid "[#:splice? #f] [#:set-load-path? #t] Return an object representing the Scheme file @var{name} that contains @var{exp}."
  15657. msgstr ""
  15658. #. type: deffn
  15659. #: guix-git/doc/guix.texi:9951
  15660. msgid "This is the declarative counterpart of @code{gexp->file}."
  15661. msgstr ""
  15662. #. type: deffn
  15663. #: guix-git/doc/guix.texi:9953
  15664. #, no-wrap
  15665. msgid "{Monadic Procedure} text-file* @var{name} @var{text} @dots{}"
  15666. msgstr ""
  15667. #. type: deffn
  15668. #: guix-git/doc/guix.texi:9959
  15669. 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."
  15670. msgstr ""
  15671. #. type: deffn
  15672. #: guix-git/doc/guix.texi:9964
  15673. 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:"
  15674. msgstr ""
  15675. #. type: lisp
  15676. #: guix-git/doc/guix.texi:9972
  15677. #, no-wrap
  15678. msgid ""
  15679. "(define (profile.sh)\n"
  15680. " ;; Return the name of a shell script in the store that\n"
  15681. " ;; initializes the 'PATH' environment variable.\n"
  15682. " (text-file* \"profile.sh\"\n"
  15683. " \"export PATH=\" coreutils \"/bin:\"\n"
  15684. " grep \"/bin:\" sed \"/bin\\n\"))\n"
  15685. msgstr ""
  15686. #. type: deffn
  15687. #: guix-git/doc/guix.texi:9977
  15688. 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."
  15689. msgstr ""
  15690. #. type: deffn
  15691. #: guix-git/doc/guix.texi:9979
  15692. #, no-wrap
  15693. msgid "{Scheme Procedure} mixed-text-file @var{name} @var{text} @dots{}"
  15694. msgstr ""
  15695. #. type: deffn
  15696. #: guix-git/doc/guix.texi:9983
  15697. 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:"
  15698. msgstr ""
  15699. #. type: lisp
  15700. #: guix-git/doc/guix.texi:9987
  15701. #, no-wrap
  15702. msgid ""
  15703. "(mixed-text-file \"profile\"\n"
  15704. " \"export PATH=\" coreutils \"/bin:\" grep \"/bin\")\n"
  15705. msgstr ""
  15706. #. type: deffn
  15707. #: guix-git/doc/guix.texi:9990
  15708. msgid "This is the declarative counterpart of @code{text-file*}."
  15709. msgstr ""
  15710. #. type: deffn
  15711. #: guix-git/doc/guix.texi:9992
  15712. #, no-wrap
  15713. msgid "{Scheme Procedure} file-union @var{name} @var{files}"
  15714. msgstr ""
  15715. #. type: deffn
  15716. #: guix-git/doc/guix.texi:9997
  15717. 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:"
  15718. msgstr ""
  15719. #. type: lisp
  15720. #: guix-git/doc/guix.texi:10004
  15721. #, no-wrap
  15722. msgid ""
  15723. "(file-union \"etc\"\n"
  15724. " `((\"hosts\" ,(plain-file \"hosts\"\n"
  15725. " \"127.0.0.1 localhost\"))\n"
  15726. " (\"bashrc\" ,(plain-file \"bashrc\"\n"
  15727. " \"alias ls='ls --color=auto'\"))))\n"
  15728. msgstr ""
  15729. #. type: deffn
  15730. #: guix-git/doc/guix.texi:10007
  15731. msgid "This yields an @code{etc} directory containing these two files."
  15732. msgstr ""
  15733. #. type: deffn
  15734. #: guix-git/doc/guix.texi:10009
  15735. #, no-wrap
  15736. msgid "{Scheme Procedure} directory-union @var{name} @var{things}"
  15737. msgstr ""
  15738. #. type: deffn
  15739. #: guix-git/doc/guix.texi:10012
  15740. 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:"
  15741. msgstr ""
  15742. #. type: lisp
  15743. #: guix-git/doc/guix.texi:10015
  15744. #, no-wrap
  15745. msgid "(directory-union \"guile+emacs\" (list guile emacs))\n"
  15746. msgstr ""
  15747. #. type: deffn
  15748. #: guix-git/doc/guix.texi:10018
  15749. msgid "yields a directory that is the union of the @code{guile} and @code{emacs} packages."
  15750. msgstr ""
  15751. #. type: deffn
  15752. #: guix-git/doc/guix.texi:10020
  15753. #, no-wrap
  15754. msgid "{Scheme Procedure} file-append @var{obj} @var{suffix} @dots{}"
  15755. msgstr ""
  15756. #. type: deffn
  15757. #: guix-git/doc/guix.texi:10024
  15758. 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."
  15759. msgstr ""
  15760. #. type: deffn
  15761. #: guix-git/doc/guix.texi:10026
  15762. msgid "As an example, consider this gexp:"
  15763. msgstr ""
  15764. #. type: lisp
  15765. #: guix-git/doc/guix.texi:10031
  15766. #, no-wrap
  15767. msgid ""
  15768. "(gexp->script \"run-uname\"\n"
  15769. " #~(system* #$(file-append coreutils\n"
  15770. " \"/bin/uname\")))\n"
  15771. msgstr ""
  15772. #. type: deffn
  15773. #: guix-git/doc/guix.texi:10034
  15774. msgid "The same effect could be achieved with:"
  15775. msgstr ""
  15776. #. type: lisp
  15777. #: guix-git/doc/guix.texi:10039
  15778. #, no-wrap
  15779. msgid ""
  15780. "(gexp->script \"run-uname\"\n"
  15781. " #~(system* (string-append #$coreutils\n"
  15782. " \"/bin/uname\")))\n"
  15783. msgstr ""
  15784. #. type: deffn
  15785. #: guix-git/doc/guix.texi:10045
  15786. 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}."
  15787. msgstr ""
  15788. #. type: deffn
  15789. #: guix-git/doc/guix.texi:10047
  15790. #, no-wrap
  15791. msgid "{Scheme Syntax} let-system @var{system} @var{body}@dots{}"
  15792. msgstr ""
  15793. #. type: deffnx
  15794. #: guix-git/doc/guix.texi:10048
  15795. #, no-wrap
  15796. msgid "{Scheme Syntax} let-system (@var{system} @var{target}) @var{body}@dots{}"
  15797. msgstr ""
  15798. #. type: deffn
  15799. #: guix-git/doc/guix.texi:10051
  15800. #, fuzzy
  15801. msgid "Bind @var{system} to the currently targeted system---e.g., @code{\"x86_64-linux\"}---within @var{body}."
  15802. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  15803. #. type: deffn
  15804. #: guix-git/doc/guix.texi:10056
  15805. 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."
  15806. msgstr ""
  15807. #. type: deffn
  15808. #: guix-git/doc/guix.texi:10059
  15809. 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:"
  15810. msgstr ""
  15811. #. type: lisp
  15812. #: guix-git/doc/guix.texi:10070
  15813. #, no-wrap
  15814. msgid ""
  15815. "#~(system*\n"
  15816. " #+(let-system system\n"
  15817. " (cond ((string-prefix? \"armhf-\" system)\n"
  15818. " (file-append qemu \"/bin/qemu-system-arm\"))\n"
  15819. " ((string-prefix? \"x86_64-\" system)\n"
  15820. " (file-append qemu \"/bin/qemu-system-x86_64\"))\n"
  15821. " (else\n"
  15822. " (error \"dunno!\"))))\n"
  15823. " \"-net\" \"user\" #$image)\n"
  15824. msgstr ""
  15825. #. type: deffn
  15826. #: guix-git/doc/guix.texi:10073
  15827. #, no-wrap
  15828. msgid "{Scheme Syntax} with-parameters ((@var{parameter} @var{value}) @dots{}) @var{exp}"
  15829. msgstr ""
  15830. #. type: deffn
  15831. #: guix-git/doc/guix.texi:10079
  15832. 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."
  15833. msgstr ""
  15834. #. type: deffn
  15835. #: guix-git/doc/guix.texi:10082
  15836. msgid "A typical use of @code{with-parameters} is to force the system in effect for a given object:"
  15837. msgstr ""
  15838. #. type: lisp
  15839. #: guix-git/doc/guix.texi:10086
  15840. #, no-wrap
  15841. msgid ""
  15842. "(with-parameters ((%current-system \"i686-linux\"))\n"
  15843. " coreutils)\n"
  15844. msgstr ""
  15845. #. type: deffn
  15846. #: guix-git/doc/guix.texi:10090
  15847. msgid "The example above returns an object that corresponds to the i686 build of Coreutils, regardless of the current value of @code{%current-system}."
  15848. msgstr ""
  15849. #. type: Plain text
  15850. #: guix-git/doc/guix.texi:10097
  15851. 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."
  15852. msgstr ""
  15853. #. type: Plain text
  15854. #: guix-git/doc/guix.texi:10103
  15855. 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."
  15856. msgstr ""
  15857. #. type: deffn
  15858. #: guix-git/doc/guix.texi:10104
  15859. #, no-wrap
  15860. msgid "{Monadic Procedure} lower-object @var{obj} [@var{system}] @"
  15861. msgstr ""
  15862. #. type: deffn
  15863. #: guix-git/doc/guix.texi:10110
  15864. 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>}."
  15865. msgstr ""
  15866. #. type: deffn
  15867. #: guix-git/doc/guix.texi:10112
  15868. #, no-wrap
  15869. msgid "{Procedure} gexp->approximate-sexp @var{gexp}"
  15870. msgstr ""
  15871. #. type: deffn
  15872. #: guix-git/doc/guix.texi:10120
  15873. 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."
  15874. msgstr ""
  15875. #. type: section
  15876. #: guix-git/doc/guix.texi:10123
  15877. #, no-wrap
  15878. msgid "Invoking @command{guix repl}"
  15879. msgstr ""
  15880. #. type: cindex
  15881. #: guix-git/doc/guix.texi:10125
  15882. #, fuzzy, no-wrap
  15883. msgid "REPL, read-eval-print loop, script"
  15884. msgstr "read-eval-print loop"
  15885. #. type: Plain text
  15886. #: guix-git/doc/guix.texi:10135
  15887. 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."
  15888. msgstr ""
  15889. #. type: example
  15890. #: guix-git/doc/guix.texi:10140
  15891. #, no-wrap
  15892. msgid "guix repl @var{options} [@var{file} @var{args}]\n"
  15893. msgstr ""
  15894. #. type: Plain text
  15895. #: guix-git/doc/guix.texi:10144
  15896. msgid "When a @var{file} argument is provided, @var{file} is executed as a Guile scripts:"
  15897. msgstr ""
  15898. #. type: example
  15899. #: guix-git/doc/guix.texi:10147
  15900. #, no-wrap
  15901. msgid "guix repl my-script.scm\n"
  15902. msgstr ""
  15903. #. type: Plain text
  15904. #: guix-git/doc/guix.texi:10151
  15905. msgid "To pass arguments to the script, use @code{--} to prevent them from being interpreted as arguments to @command{guix repl} itself:"
  15906. msgstr ""
  15907. #. type: example
  15908. #: guix-git/doc/guix.texi:10154
  15909. #, no-wrap
  15910. msgid "guix repl -- my-script.scm --input=foo.txt\n"
  15911. msgstr ""
  15912. #. type: Plain text
  15913. #: guix-git/doc/guix.texi:10159
  15914. 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:"
  15915. msgstr ""
  15916. #. type: example
  15917. #: guix-git/doc/guix.texi:10163
  15918. #, no-wrap
  15919. msgid ""
  15920. "@code{#!/usr/bin/env -S guix repl --}\n"
  15921. "@code{!#}\n"
  15922. msgstr ""
  15923. #. type: Plain text
  15924. #: guix-git/doc/guix.texi:10166
  15925. msgid "Without a file name argument, a Guile REPL is started:"
  15926. msgstr ""
  15927. #. type: example
  15928. #: guix-git/doc/guix.texi:10172
  15929. #, no-wrap
  15930. msgid ""
  15931. "$ guix repl\n"
  15932. "scheme@@(guile-user)> ,use (gnu packages base)\n"
  15933. "scheme@@(guile-user)> coreutils\n"
  15934. "$1 = #<package coreutils@@8.29 gnu/packages/base.scm:327 3e28300>\n"
  15935. msgstr ""
  15936. #. type: Plain text
  15937. #: guix-git/doc/guix.texi:10179
  15938. 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."
  15939. msgstr ""
  15940. #. type: Plain text
  15941. #: guix-git/doc/guix.texi:10181
  15942. msgid "The available options are as follows:"
  15943. msgstr ""
  15944. #. type: item
  15945. #: guix-git/doc/guix.texi:10183 guix-git/doc/guix.texi:12671
  15946. #, no-wrap
  15947. msgid "--type=@var{type}"
  15948. msgstr ""
  15949. #. type: itemx
  15950. #: guix-git/doc/guix.texi:10184 guix-git/doc/guix.texi:12672
  15951. #: guix-git/doc/guix.texi:34147
  15952. #, no-wrap
  15953. msgid "-t @var{type}"
  15954. msgstr ""
  15955. #. type: table
  15956. #: guix-git/doc/guix.texi:10186
  15957. msgid "Start a REPL of the given @var{TYPE}, which can be one of the following:"
  15958. msgstr ""
  15959. #. type: item
  15960. #: guix-git/doc/guix.texi:10188
  15961. #, no-wrap
  15962. msgid "guile"
  15963. msgstr ""
  15964. #. type: table
  15965. #: guix-git/doc/guix.texi:10190
  15966. msgid "This is default, and it spawns a standard full-featured Guile REPL."
  15967. msgstr ""
  15968. #. type: item
  15969. #: guix-git/doc/guix.texi:10190
  15970. #, no-wrap
  15971. msgid "machine"
  15972. msgstr ""
  15973. #. type: table
  15974. #: guix-git/doc/guix.texi:10193
  15975. msgid "Spawn a REPL that uses the machine-readable protocol. This is the protocol that the @code{(guix inferior)} module speaks."
  15976. msgstr ""
  15977. #. type: table
  15978. #: guix-git/doc/guix.texi:10199
  15979. 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:"
  15980. msgstr ""
  15981. #. type: item
  15982. #: guix-git/doc/guix.texi:10201
  15983. #, no-wrap
  15984. msgid "--listen=tcp:37146"
  15985. msgstr ""
  15986. #. type: table
  15987. #: guix-git/doc/guix.texi:10203
  15988. msgid "Accept connections on localhost on port 37146."
  15989. msgstr ""
  15990. #. type: item
  15991. #: guix-git/doc/guix.texi:10204
  15992. #, no-wrap
  15993. msgid "--listen=unix:/tmp/socket"
  15994. msgstr ""
  15995. #. type: table
  15996. #: guix-git/doc/guix.texi:10206
  15997. msgid "Accept connections on the Unix-domain socket @file{/tmp/socket}."
  15998. msgstr ""
  15999. #. type: item
  16000. #: guix-git/doc/guix.texi:10208 guix-git/doc/guix.texi:10312
  16001. #: guix-git/doc/guix.texi:12126 guix-git/doc/guix.texi:12306
  16002. #: guix-git/doc/guix.texi:12451 guix-git/doc/guix.texi:12719
  16003. #, no-wrap
  16004. msgid "--load-path=@var{directory}"
  16005. msgstr ""
  16006. #. type: itemx
  16007. #: guix-git/doc/guix.texi:10209 guix-git/doc/guix.texi:10313
  16008. #: guix-git/doc/guix.texi:12307 guix-git/doc/guix.texi:12452
  16009. #: guix-git/doc/guix.texi:12720
  16010. #, no-wrap
  16011. msgid "-L @var{directory}"
  16012. msgstr ""
  16013. #. type: table
  16014. #: guix-git/doc/guix.texi:10212 guix-git/doc/guix.texi:10316
  16015. #: guix-git/doc/guix.texi:12129 guix-git/doc/guix.texi:12310
  16016. #: guix-git/doc/guix.texi:12455 guix-git/doc/guix.texi:12723
  16017. msgid "Add @var{directory} to the front of the package module search path (@pxref{Package Modules})."
  16018. msgstr ""
  16019. #. type: table
  16020. #: guix-git/doc/guix.texi:10215
  16021. msgid "This allows users to define their own packages and make them visible to the script or REPL."
  16022. msgstr ""
  16023. #. type: itemx
  16024. #: guix-git/doc/guix.texi:10216 guix-git/doc/guix.texi:10776
  16025. #, no-wrap
  16026. msgid "-q"
  16027. msgstr ""
  16028. #. type: table
  16029. #: guix-git/doc/guix.texi:10219
  16030. msgid "Inhibit loading of the @file{~/.guile} file. By default, that configuration file is loaded when spawning a @code{guile} REPL."
  16031. msgstr ""
  16032. #. type: Plain text
  16033. #: guix-git/doc/guix.texi:10229
  16034. 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."
  16035. msgstr ""
  16036. #. type: cindex
  16037. #: guix-git/doc/guix.texi:10251
  16038. #, no-wrap
  16039. msgid "package building"
  16040. msgstr ""
  16041. #. type: command{#1}
  16042. #: guix-git/doc/guix.texi:10252
  16043. #, no-wrap
  16044. msgid "guix build"
  16045. msgstr ""
  16046. #. type: Plain text
  16047. #: guix-git/doc/guix.texi:10258
  16048. 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."
  16049. msgstr ""
  16050. #. type: example
  16051. #: guix-git/doc/guix.texi:10263
  16052. #, no-wrap
  16053. msgid "guix build @var{options} @var{package-or-derivation}@dots{}\n"
  16054. msgstr ""
  16055. #. type: Plain text
  16056. #: guix-git/doc/guix.texi:10268
  16057. 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:"
  16058. msgstr ""
  16059. #. type: example
  16060. #: guix-git/doc/guix.texi:10271
  16061. #, no-wrap
  16062. msgid "guix build emacs guile\n"
  16063. msgstr ""
  16064. #. type: Plain text
  16065. #: guix-git/doc/guix.texi:10274
  16066. msgid "Similarly, the following command builds all the available packages:"
  16067. msgstr ""
  16068. #. type: example
  16069. #: guix-git/doc/guix.texi:10278
  16070. #, no-wrap
  16071. msgid ""
  16072. "guix build --quiet --keep-going \\\n"
  16073. " $(guix package -A | awk '@{ print $1 \"@@\" $2 @}')\n"
  16074. msgstr ""
  16075. #. type: Plain text
  16076. #: guix-git/doc/guix.texi:10286
  16077. 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})."
  16078. msgstr ""
  16079. #. type: Plain text
  16080. #: guix-git/doc/guix.texi:10291
  16081. 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."
  16082. msgstr ""
  16083. #. type: Plain text
  16084. #: guix-git/doc/guix.texi:10294
  16085. msgid "There may be zero or more @var{options}. The available options are described in the subsections below."
  16086. msgstr ""
  16087. #. type: Plain text
  16088. #: guix-git/doc/guix.texi:10309
  16089. 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:"
  16090. msgstr ""
  16091. #. type: table
  16092. #: guix-git/doc/guix.texi:10319 guix-git/doc/guix.texi:12132
  16093. #: guix-git/doc/guix.texi:12313 guix-git/doc/guix.texi:12458
  16094. #: guix-git/doc/guix.texi:12726
  16095. msgid "This allows users to define their own packages and make them visible to the command-line tools."
  16096. msgstr ""
  16097. #. type: item
  16098. #: guix-git/doc/guix.texi:10320
  16099. #, no-wrap
  16100. msgid "--keep-failed"
  16101. msgstr ""
  16102. #. type: itemx
  16103. #: guix-git/doc/guix.texi:10321
  16104. #, no-wrap
  16105. msgid "-K"
  16106. msgstr ""
  16107. #. type: table
  16108. #: guix-git/doc/guix.texi:10327
  16109. 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."
  16110. msgstr ""
  16111. #. type: table
  16112. #: guix-git/doc/guix.texi:10331
  16113. 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})."
  16114. msgstr ""
  16115. #. type: item
  16116. #: guix-git/doc/guix.texi:10332
  16117. #, no-wrap
  16118. msgid "--keep-going"
  16119. msgstr ""
  16120. #. type: itemx
  16121. #: guix-git/doc/guix.texi:10333
  16122. #, no-wrap
  16123. msgid "-k"
  16124. msgstr ""
  16125. #. type: table
  16126. #: guix-git/doc/guix.texi:10336
  16127. msgid "Keep going when some of the derivations fail to build; return only once all the builds have either completed or failed."
  16128. msgstr ""
  16129. #. type: table
  16130. #: guix-git/doc/guix.texi:10339
  16131. msgid "The default behavior is to stop as soon as one of the specified derivations has failed."
  16132. msgstr ""
  16133. #. type: table
  16134. #: guix-git/doc/guix.texi:10343
  16135. msgid "Do not build the derivations."
  16136. msgstr ""
  16137. #. type: anchor{#1}
  16138. #: guix-git/doc/guix.texi:10345
  16139. msgid "fallback-option"
  16140. msgstr ""
  16141. #. type: item
  16142. #: guix-git/doc/guix.texi:10345
  16143. #, no-wrap
  16144. msgid "--fallback"
  16145. msgstr ""
  16146. #. type: table
  16147. #: guix-git/doc/guix.texi:10348
  16148. msgid "When substituting a pre-built binary fails, fall back to building packages locally (@pxref{Substitution Failure})."
  16149. msgstr ""
  16150. #. type: anchor{#1}
  16151. #: guix-git/doc/guix.texi:10354
  16152. msgid "client-substitute-urls"
  16153. msgstr ""
  16154. #. type: table
  16155. #: guix-git/doc/guix.texi:10354
  16156. 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})."
  16157. msgstr ""
  16158. #. type: table
  16159. #: guix-git/doc/guix.texi:10358
  16160. 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})."
  16161. msgstr ""
  16162. #. type: table
  16163. #: guix-git/doc/guix.texi:10361
  16164. msgid "When @var{urls} is the empty string, substitutes are effectively disabled."
  16165. msgstr ""
  16166. #. type: item
  16167. #: guix-git/doc/guix.texi:10367
  16168. #, no-wrap
  16169. msgid "--no-grafts"
  16170. msgstr ""
  16171. #. type: table
  16172. #: guix-git/doc/guix.texi:10371
  16173. 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."
  16174. msgstr ""
  16175. #. type: item
  16176. #: guix-git/doc/guix.texi:10372
  16177. #, no-wrap
  16178. msgid "--rounds=@var{n}"
  16179. msgstr ""
  16180. #. type: table
  16181. #: guix-git/doc/guix.texi:10375
  16182. msgid "Build each derivation @var{n} times in a row, and raise an error if consecutive build results are not bit-for-bit identical."
  16183. msgstr ""
  16184. #. type: table
  16185. #: guix-git/doc/guix.texi:10380
  16186. 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."
  16187. msgstr ""
  16188. #. type: table
  16189. #: guix-git/doc/guix.texi:10396
  16190. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--max-silent-time}})."
  16191. msgstr ""
  16192. #. type: table
  16193. #: guix-git/doc/guix.texi:10403
  16194. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--timeout}})."
  16195. msgstr ""
  16196. #. type: cindex
  16197. #: guix-git/doc/guix.texi:10406
  16198. #, no-wrap
  16199. msgid "verbosity, of the command-line tools"
  16200. msgstr ""
  16201. #. type: cindex
  16202. #: guix-git/doc/guix.texi:10407
  16203. #, no-wrap
  16204. msgid "build logs, verbosity"
  16205. msgstr ""
  16206. #. type: item
  16207. #: guix-git/doc/guix.texi:10408
  16208. #, no-wrap
  16209. msgid "-v @var{level}"
  16210. msgstr ""
  16211. #. type: itemx
  16212. #: guix-git/doc/guix.texi:10409
  16213. #, no-wrap
  16214. msgid "--verbosity=@var{level}"
  16215. msgstr ""
  16216. #. type: table
  16217. #: guix-git/doc/guix.texi:10414
  16218. 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."
  16219. msgstr ""
  16220. #. type: table
  16221. #: guix-git/doc/guix.texi:10419
  16222. 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."
  16223. msgstr ""
  16224. #. type: table
  16225. #: guix-git/doc/guix.texi:10425
  16226. 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."
  16227. msgstr ""
  16228. #. type: item
  16229. #: guix-git/doc/guix.texi:10426
  16230. #, no-wrap
  16231. msgid "--debug=@var{level}"
  16232. msgstr ""
  16233. #. type: table
  16234. #: guix-git/doc/guix.texi:10430
  16235. 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."
  16236. msgstr ""
  16237. #. type: Plain text
  16238. #: guix-git/doc/guix.texi:10437
  16239. 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."
  16240. msgstr ""
  16241. #. type: Plain text
  16242. #: guix-git/doc/guix.texi:10441
  16243. 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."
  16244. msgstr ""
  16245. #. type: defvr
  16246. #: guix-git/doc/guix.texi:10442
  16247. #, no-wrap
  16248. msgid "{Environment Variable} GUIX_BUILD_OPTIONS"
  16249. msgstr ""
  16250. #. type: defvr
  16251. #: guix-git/doc/guix.texi:10447
  16252. 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:"
  16253. msgstr ""
  16254. #. type: example
  16255. #: guix-git/doc/guix.texi:10450
  16256. #, no-wrap
  16257. msgid "$ export GUIX_BUILD_OPTIONS=\"--no-substitutes -c 2 -L /foo/bar\"\n"
  16258. msgstr ""
  16259. #. type: defvr
  16260. #: guix-git/doc/guix.texi:10454
  16261. msgid "These options are parsed independently, and the result is appended to the parsed command-line options."
  16262. msgstr ""
  16263. #. type: cindex
  16264. #: guix-git/doc/guix.texi:10460
  16265. #, no-wrap
  16266. msgid "package variants"
  16267. msgstr ""
  16268. #. type: Plain text
  16269. #: guix-git/doc/guix.texi:10468
  16270. 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})."
  16271. msgstr ""
  16272. #. type: Plain text
  16273. #: guix-git/doc/guix.texi:10472
  16274. 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."
  16275. msgstr ""
  16276. #. type: Plain text
  16277. #: guix-git/doc/guix.texi:10477
  16278. 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)."
  16279. msgstr ""
  16280. #. type: item
  16281. #: guix-git/doc/guix.texi:10480
  16282. #, no-wrap
  16283. msgid "--with-source=@var{source}"
  16284. msgstr ""
  16285. #. type: itemx
  16286. #: guix-git/doc/guix.texi:10481
  16287. #, no-wrap
  16288. msgid "--with-source=@var{package}=@var{source}"
  16289. msgstr ""
  16290. #. type: itemx
  16291. #: guix-git/doc/guix.texi:10482
  16292. #, no-wrap
  16293. msgid "--with-source=@var{package}@@@var{version}=@var{source}"
  16294. msgstr ""
  16295. #. type: table
  16296. #: guix-git/doc/guix.texi:10487
  16297. 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})."
  16298. msgstr ""
  16299. #. type: table
  16300. #: guix-git/doc/guix.texi:10493
  16301. 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}."
  16302. msgstr ""
  16303. #. type: table
  16304. #: guix-git/doc/guix.texi:10496
  16305. 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}."
  16306. msgstr ""
  16307. #. type: table
  16308. #: guix-git/doc/guix.texi:10501
  16309. 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:"
  16310. msgstr ""
  16311. #. type: example
  16312. #: guix-git/doc/guix.texi:10504
  16313. #, no-wrap
  16314. msgid "guix build ed --with-source=mirror://gnu/ed/ed-1.7.tar.gz\n"
  16315. msgstr ""
  16316. #. type: table
  16317. #: guix-git/doc/guix.texi:10508
  16318. msgid "As a developer, @option{--with-source} makes it easy to test release candidates:"
  16319. msgstr ""
  16320. #. type: example
  16321. #: guix-git/doc/guix.texi:10511
  16322. #, no-wrap
  16323. msgid "guix build guile --with-source=../guile-2.0.9.219-e1bb7.tar.xz\n"
  16324. msgstr ""
  16325. #. type: table
  16326. #: guix-git/doc/guix.texi:10514
  16327. msgid "@dots{} or to build from a checkout in a pristine environment:"
  16328. msgstr ""
  16329. #. type: example
  16330. #: guix-git/doc/guix.texi:10518
  16331. #, no-wrap
  16332. msgid ""
  16333. "$ git clone git://git.sv.gnu.org/guix.git\n"
  16334. "$ guix build guix --with-source=guix@@1.0=./guix\n"
  16335. msgstr ""
  16336. #. type: item
  16337. #: guix-git/doc/guix.texi:10520
  16338. #, no-wrap
  16339. msgid "--with-input=@var{package}=@var{replacement}"
  16340. msgstr ""
  16341. #. type: table
  16342. #: guix-git/doc/guix.texi:10525
  16343. 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}."
  16344. msgstr ""
  16345. #. type: table
  16346. #: guix-git/doc/guix.texi:10529
  16347. 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}:"
  16348. msgstr ""
  16349. #. type: example
  16350. #: guix-git/doc/guix.texi:10532
  16351. #, no-wrap
  16352. msgid "guix build --with-input=guile=guile@@2.0 guix\n"
  16353. msgstr ""
  16354. #. type: table
  16355. #: guix-git/doc/guix.texi:10537
  16356. 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}."
  16357. msgstr ""
  16358. #. type: table
  16359. #: guix-git/doc/guix.texi:10540
  16360. msgid "This is implemented using the @code{package-input-rewriting} Scheme procedure (@pxref{Defining Packages, @code{package-input-rewriting}})."
  16361. msgstr ""
  16362. #. type: item
  16363. #: guix-git/doc/guix.texi:10541
  16364. #, no-wrap
  16365. msgid "--with-graft=@var{package}=@var{replacement}"
  16366. msgstr ""
  16367. #. type: table
  16368. #: guix-git/doc/guix.texi:10547
  16369. 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."
  16370. msgstr ""
  16371. #. type: table
  16372. #: guix-git/doc/guix.texi:10551
  16373. 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:"
  16374. msgstr ""
  16375. #. type: example
  16376. #: guix-git/doc/guix.texi:10554
  16377. #, no-wrap
  16378. msgid "guix build --with-graft=gnutls=gnutls@@3.5.4 wget\n"
  16379. msgstr ""
  16380. #. type: table
  16381. #: guix-git/doc/guix.texi:10563
  16382. 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!"
  16383. msgstr ""
  16384. #. type: cindex
  16385. #: guix-git/doc/guix.texi:10564 guix-git/doc/guix.texi:36253
  16386. #, no-wrap
  16387. msgid "debugging info, rebuilding"
  16388. msgstr ""
  16389. #. type: item
  16390. #: guix-git/doc/guix.texi:10565
  16391. #, no-wrap
  16392. msgid "--with-debug-info=@var{package}"
  16393. msgstr ""
  16394. #. type: table
  16395. #: guix-git/doc/guix.texi:10570
  16396. 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})."
  16397. msgstr ""
  16398. #. type: table
  16399. #: guix-git/doc/guix.texi:10576
  16400. 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:"
  16401. msgstr ""
  16402. #. type: example
  16403. #: guix-git/doc/guix.texi:10579 guix-git/doc/guix.texi:36284
  16404. #, no-wrap
  16405. msgid "guix install inkscape --with-debug-info=glib\n"
  16406. msgstr ""
  16407. #. type: table
  16408. #: guix-git/doc/guix.texi:10583
  16409. msgid "Only GLib needs to be recompiled so this takes a reasonable amount of time. @xref{Installing Debugging Files}, for more info."
  16410. msgstr ""
  16411. #. type: quotation
  16412. #: guix-git/doc/guix.texi:10589
  16413. 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."
  16414. msgstr ""
  16415. #. type: quotation
  16416. #: guix-git/doc/guix.texi:10593
  16417. 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."
  16418. msgstr ""
  16419. #. type: cindex
  16420. #: guix-git/doc/guix.texi:10595
  16421. #, no-wrap
  16422. msgid "tool chain, changing the build tool chain of a package"
  16423. msgstr ""
  16424. #. type: item
  16425. #: guix-git/doc/guix.texi:10596
  16426. #, no-wrap
  16427. msgid "--with-c-toolchain=@var{package}=@var{toolchain}"
  16428. msgstr ""
  16429. #. type: table
  16430. #: guix-git/doc/guix.texi:10600
  16431. 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++."
  16432. msgstr ""
  16433. #. type: example
  16434. #: guix-git/doc/guix.texi:10607
  16435. #, no-wrap
  16436. msgid ""
  16437. "guix build octave-cli \\\n"
  16438. " --with-c-toolchain=fftw=gcc-toolchain@@10 \\\n"
  16439. " --with-c-toolchain=fftwf=gcc-toolchain@@10\n"
  16440. msgstr ""
  16441. #. type: table
  16442. #: guix-git/doc/guix.texi:10614
  16443. 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}."
  16444. msgstr ""
  16445. #. type: table
  16446. #: guix-git/doc/guix.texi:10618
  16447. 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:"
  16448. msgstr ""
  16449. #. type: example
  16450. #: guix-git/doc/guix.texi:10622
  16451. #, no-wrap
  16452. msgid ""
  16453. "guix build --with-c-toolchain=hwloc=clang-toolchain \\\n"
  16454. " intel-mpi-benchmarks\n"
  16455. msgstr ""
  16456. #. type: quotation
  16457. #: guix-git/doc/guix.texi:10631
  16458. 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."
  16459. msgstr ""
  16460. #. type: item
  16461. #: guix-git/doc/guix.texi:10633
  16462. #, no-wrap
  16463. msgid "--with-git-url=@var{package}=@var{url}"
  16464. msgstr ""
  16465. #. type: cindex
  16466. #: guix-git/doc/guix.texi:10634
  16467. #, no-wrap
  16468. msgid "Git, using the latest commit"
  16469. msgstr ""
  16470. #. type: cindex
  16471. #: guix-git/doc/guix.texi:10635
  16472. #, no-wrap
  16473. msgid "latest commit, building"
  16474. msgstr ""
  16475. #. type: table
  16476. #: guix-git/doc/guix.texi:10639
  16477. 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."
  16478. msgstr ""
  16479. #. type: table
  16480. #: guix-git/doc/guix.texi:10642
  16481. msgid "For example, the following command builds the NumPy Python library against the latest commit of the master branch of Python itself:"
  16482. msgstr ""
  16483. #. type: example
  16484. #: guix-git/doc/guix.texi:10646
  16485. #, no-wrap
  16486. msgid ""
  16487. "guix build python-numpy \\\n"
  16488. " --with-git-url=python=https://github.com/python/cpython\n"
  16489. msgstr ""
  16490. #. type: table
  16491. #: guix-git/doc/guix.texi:10650
  16492. msgid "This option can also be combined with @option{--with-branch} or @option{--with-commit} (see below)."
  16493. msgstr ""
  16494. #. type: cindex
  16495. #: guix-git/doc/guix.texi:10651 guix-git/doc/guix.texi:27897
  16496. #, no-wrap
  16497. msgid "continuous integration"
  16498. msgstr ""
  16499. #. type: table
  16500. #: guix-git/doc/guix.texi:10657
  16501. 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)."
  16502. msgstr ""
  16503. #. type: table
  16504. #: guix-git/doc/guix.texi:10661
  16505. 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."
  16506. msgstr ""
  16507. #. type: item
  16508. #: guix-git/doc/guix.texi:10662
  16509. #, no-wrap
  16510. msgid "--with-branch=@var{package}=@var{branch}"
  16511. msgstr ""
  16512. #. type: table
  16513. #: guix-git/doc/guix.texi:10668
  16514. 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."
  16515. msgstr ""
  16516. #. type: table
  16517. #: guix-git/doc/guix.texi:10673
  16518. 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:"
  16519. msgstr ""
  16520. #. type: example
  16521. #: guix-git/doc/guix.texi:10676
  16522. #, no-wrap
  16523. msgid "guix build --with-branch=guile-sqlite3=master cuirass\n"
  16524. msgstr ""
  16525. #. type: item
  16526. #: guix-git/doc/guix.texi:10678
  16527. #, no-wrap
  16528. msgid "--with-commit=@var{package}=@var{commit}"
  16529. msgstr ""
  16530. #. type: table
  16531. #: guix-git/doc/guix.texi:10683
  16532. 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}."
  16533. msgstr ""
  16534. #. type: item
  16535. #: guix-git/doc/guix.texi:10684
  16536. #, no-wrap
  16537. msgid "--with-patch=@var{package}=@var{file}"
  16538. msgstr ""
  16539. #. type: table
  16540. #: guix-git/doc/guix.texi:10691
  16541. 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})."
  16542. msgstr ""
  16543. #. type: table
  16544. #: guix-git/doc/guix.texi:10694
  16545. msgid "As an example, the command below rebuilds Coreutils with the GNU C Library (glibc) patched with the given patch:"
  16546. msgstr ""
  16547. #. type: example
  16548. #: guix-git/doc/guix.texi:10697
  16549. #, no-wrap
  16550. msgid "guix build coreutils --with-patch=glibc=./glibc-frob.patch\n"
  16551. msgstr ""
  16552. #. type: table
  16553. #: guix-git/doc/guix.texi:10701
  16554. msgid "In this example, glibc itself as well as everything that leads to Coreutils in the dependency graph is rebuilt."
  16555. msgstr ""
  16556. #. type: cindex
  16557. #: guix-git/doc/guix.texi:10702
  16558. #, fuzzy, no-wrap
  16559. msgid "upstream, latest version"
  16560. msgstr "软件包版本"
  16561. #. type: item
  16562. #: guix-git/doc/guix.texi:10703
  16563. #, fuzzy, no-wrap
  16564. msgid "--with-latest=@var{package}"
  16565. msgstr "--log-compression=@var{type}"
  16566. #. type: table
  16567. #: guix-git/doc/guix.texi:10708
  16568. 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})."
  16569. msgstr ""
  16570. #. type: table
  16571. #: guix-git/doc/guix.texi:10712
  16572. 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."
  16573. msgstr ""
  16574. #. type: table
  16575. #: guix-git/doc/guix.texi:10715
  16576. msgid "As an example, the command below builds Guix against the latest version of Guile-JSON:"
  16577. msgstr ""
  16578. #. type: example
  16579. #: guix-git/doc/guix.texi:10718
  16580. #, no-wrap
  16581. msgid "guix build guix --with-latest=guile-json\n"
  16582. msgstr ""
  16583. #. type: table
  16584. #: guix-git/doc/guix.texi:10727
  16585. 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."
  16586. msgstr ""
  16587. #. type: table
  16588. #: guix-git/doc/guix.texi:10732
  16589. 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})."
  16590. msgstr ""
  16591. #. type: cindex
  16592. #: guix-git/doc/guix.texi:10733
  16593. #, fuzzy, no-wrap
  16594. msgid "test suite, skipping"
  16595. msgstr "测试套件"
  16596. #. type: item
  16597. #: guix-git/doc/guix.texi:10734
  16598. #, no-wrap
  16599. msgid "--without-tests=@var{package}"
  16600. msgstr ""
  16601. #. type: table
  16602. #: guix-git/doc/guix.texi:10740
  16603. 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."
  16604. msgstr ""
  16605. #. type: table
  16606. #: guix-git/doc/guix.texi:10744
  16607. 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:"
  16608. msgstr ""
  16609. #. type: example
  16610. #: guix-git/doc/guix.texi:10747
  16611. #, no-wrap
  16612. msgid "guix install --without-tests=python python-notebook\n"
  16613. msgstr ""
  16614. #. type: table
  16615. #: guix-git/doc/guix.texi:10753
  16616. 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."
  16617. msgstr ""
  16618. #. type: table
  16619. #: guix-git/doc/guix.texi:10759
  16620. 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."
  16621. msgstr ""
  16622. #. type: Plain text
  16623. #: guix-git/doc/guix.texi:10766
  16624. 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."
  16625. msgstr ""
  16626. #. type: Plain text
  16627. #: guix-git/doc/guix.texi:10772
  16628. msgid "The command-line options presented below are specific to @command{guix build}."
  16629. msgstr ""
  16630. #. type: item
  16631. #: guix-git/doc/guix.texi:10775
  16632. #, no-wrap
  16633. msgid "--quiet"
  16634. msgstr ""
  16635. #. type: table
  16636. #: guix-git/doc/guix.texi:10780
  16637. 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."
  16638. msgstr ""
  16639. #. type: item
  16640. #: guix-git/doc/guix.texi:10781
  16641. #, no-wrap
  16642. msgid "--file=@var{file}"
  16643. msgstr ""
  16644. #. type: table
  16645. #: guix-git/doc/guix.texi:10785
  16646. msgid "Build the package, derivation, or other file-like object that the code within @var{file} evaluates to (@pxref{G-Expressions, file-like objects})."
  16647. msgstr ""
  16648. #. type: table
  16649. #: guix-git/doc/guix.texi:10788
  16650. msgid "As an example, @var{file} might contain a package definition like this (@pxref{Defining Packages}):"
  16651. msgstr ""
  16652. #. type: table
  16653. #: guix-git/doc/guix.texi:10797
  16654. 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}:"
  16655. msgstr ""
  16656. #. type: item
  16657. #: guix-git/doc/guix.texi:10802
  16658. #, fuzzy, no-wrap
  16659. msgid "--manifest=@var{manifest}"
  16660. msgstr "--listen=@var{endpoint}"
  16661. #. type: itemx
  16662. #: guix-git/doc/guix.texi:10803
  16663. #, fuzzy, no-wrap
  16664. msgid "-m @var{manifest}"
  16665. msgstr "-c @var{n}"
  16666. #. type: table
  16667. #: guix-git/doc/guix.texi:10806
  16668. msgid "Build all packages listed in the given @var{manifest} (@pxref{profile-manifest, @option{--manifest}})."
  16669. msgstr ""
  16670. #. type: table
  16671. #: guix-git/doc/guix.texi:10810
  16672. msgid "Build the package or derivation @var{expr} evaluates to."
  16673. msgstr ""
  16674. #. type: table
  16675. #: guix-git/doc/guix.texi:10814
  16676. 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."
  16677. msgstr ""
  16678. #. type: table
  16679. #: guix-git/doc/guix.texi:10818
  16680. 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})."
  16681. msgstr ""
  16682. #. type: table
  16683. #: guix-git/doc/guix.texi:10822
  16684. 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}."
  16685. msgstr ""
  16686. #. type: item
  16687. #: guix-git/doc/guix.texi:10823
  16688. #, no-wrap
  16689. msgid "--source"
  16690. msgstr ""
  16691. #. type: itemx
  16692. #: guix-git/doc/guix.texi:10824
  16693. #, no-wrap
  16694. msgid "-S"
  16695. msgstr ""
  16696. #. type: table
  16697. #: guix-git/doc/guix.texi:10827
  16698. msgid "Build the source derivations of the packages, rather than the packages themselves."
  16699. msgstr ""
  16700. #. type: table
  16701. #: guix-git/doc/guix.texi:10831
  16702. 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."
  16703. msgstr ""
  16704. #. type: table
  16705. #: guix-git/doc/guix.texi:10835
  16706. msgid "The returned source tarball is the result of applying any patches and code snippets specified in the package @code{origin} (@pxref{Defining Packages})."
  16707. msgstr ""
  16708. #. type: cindex
  16709. #: guix-git/doc/guix.texi:10836
  16710. #, no-wrap
  16711. msgid "source, verification"
  16712. msgstr ""
  16713. #. type: table
  16714. #: guix-git/doc/guix.texi:10842
  16715. 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."
  16716. msgstr ""
  16717. #. type: table
  16718. #: guix-git/doc/guix.texi:10847
  16719. 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."
  16720. msgstr ""
  16721. #. type: item
  16722. #: guix-git/doc/guix.texi:10848
  16723. #, no-wrap
  16724. msgid "--sources"
  16725. msgstr ""
  16726. #. type: table
  16727. #: guix-git/doc/guix.texi:10855
  16728. 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:"
  16729. msgstr ""
  16730. #. type: item
  16731. #: guix-git/doc/guix.texi:10857 guix-git/doc/guix.texi:12512
  16732. #, no-wrap
  16733. msgid "package"
  16734. msgstr ""
  16735. #. type: table
  16736. #: guix-git/doc/guix.texi:10860
  16737. msgid "This value causes the @option{--sources} option to behave in the same way as the @option{--source} option."
  16738. msgstr ""
  16739. #. type: item
  16740. #: guix-git/doc/guix.texi:10861 guix-git/doc/guix.texi:18638
  16741. #, no-wrap
  16742. msgid "all"
  16743. msgstr ""
  16744. #. type: table
  16745. #: guix-git/doc/guix.texi:10864
  16746. msgid "Build the source derivations of all packages, including any source that might be listed as @code{inputs}. This is the default value."
  16747. msgstr ""
  16748. #. type: example
  16749. #: guix-git/doc/guix.texi:10870
  16750. #, no-wrap
  16751. msgid ""
  16752. "$ guix build --sources tzdata\n"
  16753. "The following derivations will be built:\n"
  16754. " /gnu/store/@dots{}-tzdata2015b.tar.gz.drv\n"
  16755. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  16756. msgstr ""
  16757. #. type: item
  16758. #: guix-git/doc/guix.texi:10872
  16759. #, no-wrap
  16760. msgid "transitive"
  16761. msgstr ""
  16762. #. type: table
  16763. #: guix-git/doc/guix.texi:10876
  16764. 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."
  16765. msgstr ""
  16766. #. type: example
  16767. #: guix-git/doc/guix.texi:10887
  16768. #, no-wrap
  16769. msgid ""
  16770. "$ guix build --sources=transitive tzdata\n"
  16771. "The following derivations will be built:\n"
  16772. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  16773. " /gnu/store/@dots{}-findutils-4.4.2.tar.xz.drv\n"
  16774. " /gnu/store/@dots{}-grep-2.21.tar.xz.drv\n"
  16775. " /gnu/store/@dots{}-coreutils-8.23.tar.xz.drv\n"
  16776. " /gnu/store/@dots{}-make-4.1.tar.xz.drv\n"
  16777. " /gnu/store/@dots{}-bash-4.3.tar.xz.drv\n"
  16778. "@dots{}\n"
  16779. msgstr ""
  16780. #. type: table
  16781. #: guix-git/doc/guix.texi:10897
  16782. 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."
  16783. msgstr ""
  16784. #. type: quotation
  16785. #: guix-git/doc/guix.texi:10902
  16786. 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."
  16787. msgstr ""
  16788. #. type: table
  16789. #: guix-git/doc/guix.texi:10909
  16790. 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."
  16791. msgstr ""
  16792. #. type: quotation
  16793. #: guix-git/doc/guix.texi:10914
  16794. 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."
  16795. msgstr ""
  16796. #. type: table
  16797. #: guix-git/doc/guix.texi:10920
  16798. 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."
  16799. msgstr ""
  16800. #. type: table
  16801. #: guix-git/doc/guix.texi:10924
  16802. 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."
  16803. msgstr ""
  16804. #. type: table
  16805. #: guix-git/doc/guix.texi:10930
  16806. 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})."
  16807. msgstr ""
  16808. #. type: anchor{#1}
  16809. #: guix-git/doc/guix.texi:10932
  16810. msgid "build-check"
  16811. msgstr ""
  16812. #. type: item
  16813. #: guix-git/doc/guix.texi:10932
  16814. #, no-wrap
  16815. msgid "--check"
  16816. msgstr ""
  16817. #. type: cindex
  16818. #: guix-git/doc/guix.texi:10933
  16819. #, no-wrap
  16820. msgid "determinism, checking"
  16821. msgstr ""
  16822. #. type: cindex
  16823. #: guix-git/doc/guix.texi:10934
  16824. #, no-wrap
  16825. msgid "reproducibility, checking"
  16826. msgstr ""
  16827. #. type: table
  16828. #: guix-git/doc/guix.texi:10938
  16829. 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."
  16830. msgstr ""
  16831. #. type: table
  16832. #: guix-git/doc/guix.texi:10943
  16833. 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."
  16834. msgstr ""
  16835. #. type: item
  16836. #: guix-git/doc/guix.texi:10948
  16837. #, no-wrap
  16838. msgid "--repair"
  16839. msgstr ""
  16840. #. type: cindex
  16841. #: guix-git/doc/guix.texi:10949
  16842. #, no-wrap
  16843. msgid "repairing store items"
  16844. msgstr ""
  16845. #. type: table
  16846. #: guix-git/doc/guix.texi:10953
  16847. msgid "Attempt to repair the specified store items, if they are corrupt, by re-downloading or rebuilding them."
  16848. msgstr ""
  16849. #. type: table
  16850. #: guix-git/doc/guix.texi:10955
  16851. msgid "This operation is not atomic and thus restricted to @code{root}."
  16852. msgstr ""
  16853. #. type: item
  16854. #: guix-git/doc/guix.texi:10956
  16855. #, no-wrap
  16856. msgid "--derivations"
  16857. msgstr ""
  16858. #. type: table
  16859. #: guix-git/doc/guix.texi:10960
  16860. msgid "Return the derivation paths, not the output paths, of the given packages."
  16861. msgstr ""
  16862. #. type: cindex
  16863. #: guix-git/doc/guix.texi:10963
  16864. #, no-wrap
  16865. msgid "GC roots, adding"
  16866. msgstr ""
  16867. #. type: cindex
  16868. #: guix-git/doc/guix.texi:10964
  16869. #, no-wrap
  16870. msgid "garbage collector roots, adding"
  16871. msgstr ""
  16872. #. type: table
  16873. #: guix-git/doc/guix.texi:10967 guix-git/doc/guix.texi:34178
  16874. msgid "Make @var{file} a symlink to the result, and register it as a garbage collector root."
  16875. msgstr ""
  16876. #. type: table
  16877. #: guix-git/doc/guix.texi:10973
  16878. 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."
  16879. msgstr ""
  16880. #. type: item
  16881. #: guix-git/doc/guix.texi:10974
  16882. #, no-wrap
  16883. msgid "--log-file"
  16884. msgstr ""
  16885. #. type: cindex
  16886. #: guix-git/doc/guix.texi:10975
  16887. #, no-wrap
  16888. msgid "build logs, access"
  16889. msgstr ""
  16890. #. type: table
  16891. #: guix-git/doc/guix.texi:10979
  16892. 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."
  16893. msgstr ""
  16894. #. type: table
  16895. #: guix-git/doc/guix.texi:10982
  16896. msgid "This works regardless of how packages or derivations are specified. For instance, the following invocations are equivalent:"
  16897. msgstr ""
  16898. #. type: example
  16899. #: guix-git/doc/guix.texi:10988
  16900. #, no-wrap
  16901. msgid ""
  16902. "guix build --log-file $(guix build -d guile)\n"
  16903. "guix build --log-file $(guix build guile)\n"
  16904. "guix build --log-file guile\n"
  16905. "guix build --log-file -e '(@@ (gnu packages guile) guile-2.0)'\n"
  16906. msgstr ""
  16907. #. type: table
  16908. #: guix-git/doc/guix.texi:10993
  16909. 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})."
  16910. msgstr ""
  16911. #. type: table
  16912. #: guix-git/doc/guix.texi:10996
  16913. 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:"
  16914. msgstr ""
  16915. #. type: example
  16916. #: guix-git/doc/guix.texi:11000
  16917. #, no-wrap
  16918. msgid ""
  16919. "$ guix build --log-file gdb -s aarch64-linux\n"
  16920. "https://@value{SUBSTITUTE-SERVER-1}/log/@dots{}-gdb-7.10\n"
  16921. msgstr ""
  16922. #. type: table
  16923. #: guix-git/doc/guix.texi:11003
  16924. msgid "You can freely access a huge library of build logs!"
  16925. msgstr ""
  16926. #. type: cindex
  16927. #: guix-git/doc/guix.texi:11008
  16928. #, no-wrap
  16929. msgid "build failures, debugging"
  16930. msgstr ""
  16931. #. type: Plain text
  16932. #: guix-git/doc/guix.texi:11014
  16933. 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."
  16934. msgstr ""
  16935. #. type: Plain text
  16936. #: guix-git/doc/guix.texi:11019
  16937. 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}})."
  16938. msgstr ""
  16939. #. type: Plain text
  16940. #: guix-git/doc/guix.texi:11025
  16941. 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:"
  16942. msgstr ""
  16943. #. type: example
  16944. #: guix-git/doc/guix.texi:11032
  16945. #, no-wrap
  16946. msgid ""
  16947. "$ guix build foo -K\n"
  16948. "@dots{} @i{build fails}\n"
  16949. "$ cd /tmp/guix-build-foo.drv-0\n"
  16950. "$ source ./environment-variables\n"
  16951. "$ cd foo-1.2\n"
  16952. msgstr ""
  16953. #. type: Plain text
  16954. #: guix-git/doc/guix.texi:11036
  16955. msgid "Now, you can invoke commands as if you were the daemon (almost) and troubleshoot your build process."
  16956. msgstr ""
  16957. #. type: Plain text
  16958. #: guix-git/doc/guix.texi:11042
  16959. 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})."
  16960. msgstr ""
  16961. #. type: Plain text
  16962. #: guix-git/doc/guix.texi:11045
  16963. 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:"
  16964. msgstr ""
  16965. #. type: example
  16966. #: guix-git/doc/guix.texi:11053
  16967. #, no-wrap
  16968. msgid ""
  16969. "$ guix build -K foo\n"
  16970. "@dots{}\n"
  16971. "$ cd /tmp/guix-build-foo.drv-0\n"
  16972. "$ guix environment --no-grafts -C foo --ad-hoc strace gdb\n"
  16973. "[env]# source ./environment-variables\n"
  16974. "[env]# cd foo-1.2\n"
  16975. msgstr ""
  16976. #. type: Plain text
  16977. #: guix-git/doc/guix.texi:11062
  16978. msgid "Here, @command{guix environment -C} creates a container and spawns a new shell in it (@pxref{Invoking guix environment}). The @command{--ad-hoc strace gdb} part adds the @command{strace} and @command{gdb} commands to the container, which you may find handy while debugging. The @option{--no-grafts} option makes sure we get the exact same environment, with ungrafted packages (@pxref{Security Updates}, for more info on grafts)."
  16979. msgstr ""
  16980. #. type: Plain text
  16981. #: guix-git/doc/guix.texi:11065
  16982. msgid "To get closer to a container like that used by the build daemon, we can remove @file{/bin/sh}:"
  16983. msgstr ""
  16984. #. type: example
  16985. #: guix-git/doc/guix.texi:11068
  16986. #, no-wrap
  16987. msgid "[env]# rm /bin/sh\n"
  16988. msgstr ""
  16989. #. type: Plain text
  16990. #: guix-git/doc/guix.texi:11072
  16991. msgid "(Don't worry, this is harmless: this is all happening in the throw-away container created by @command{guix environment}.)"
  16992. msgstr ""
  16993. #. type: Plain text
  16994. #: guix-git/doc/guix.texi:11075
  16995. msgid "The @command{strace} command is probably not in the search path, but we can run:"
  16996. msgstr ""
  16997. #. type: example
  16998. #: guix-git/doc/guix.texi:11078
  16999. #, no-wrap
  17000. msgid "[env]# $GUIX_ENVIRONMENT/bin/strace -f -o log make check\n"
  17001. msgstr ""
  17002. #. type: Plain text
  17003. #: guix-git/doc/guix.texi:11083
  17004. 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."
  17005. msgstr ""
  17006. #. type: section
  17007. #: guix-git/doc/guix.texi:11086
  17008. #, no-wrap
  17009. msgid "Invoking @command{guix edit}"
  17010. msgstr ""
  17011. #. type: command{#1}
  17012. #: guix-git/doc/guix.texi:11088
  17013. #, no-wrap
  17014. msgid "guix edit"
  17015. msgstr ""
  17016. #. type: cindex
  17017. #: guix-git/doc/guix.texi:11089
  17018. #, no-wrap
  17019. msgid "package definition, editing"
  17020. msgstr ""
  17021. #. type: Plain text
  17022. #: guix-git/doc/guix.texi:11094
  17023. 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:"
  17024. msgstr ""
  17025. #. type: example
  17026. #: guix-git/doc/guix.texi:11097
  17027. #, no-wrap
  17028. msgid "guix edit gcc@@4.9 vim\n"
  17029. msgstr ""
  17030. #. type: Plain text
  17031. #: guix-git/doc/guix.texi:11103
  17032. 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."
  17033. msgstr ""
  17034. #. type: Plain text
  17035. #: guix-git/doc/guix.texi:11109
  17036. 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."
  17037. msgstr ""
  17038. #. type: Plain text
  17039. #: guix-git/doc/guix.texi:11114
  17040. 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."
  17041. msgstr ""
  17042. #. type: section
  17043. #: guix-git/doc/guix.texi:11116
  17044. #, no-wrap
  17045. msgid "Invoking @command{guix download}"
  17046. msgstr ""
  17047. #. type: command{#1}
  17048. #: guix-git/doc/guix.texi:11118
  17049. #, no-wrap
  17050. msgid "guix download"
  17051. msgstr ""
  17052. #. type: cindex
  17053. #: guix-git/doc/guix.texi:11119
  17054. #, no-wrap
  17055. msgid "downloading package sources"
  17056. msgstr ""
  17057. #. type: Plain text
  17058. #: guix-git/doc/guix.texi:11126
  17059. 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."
  17060. msgstr ""
  17061. #. type: Plain text
  17062. #: guix-git/doc/guix.texi:11133
  17063. 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})."
  17064. msgstr ""
  17065. #. type: Plain text
  17066. #: guix-git/doc/guix.texi:11141
  17067. 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."
  17068. msgstr ""
  17069. #. type: Plain text
  17070. #: guix-git/doc/guix.texi:11146
  17071. 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."
  17072. msgstr ""
  17073. #. type: Plain text
  17074. #: guix-git/doc/guix.texi:11148 guix-git/doc/guix.texi:12825
  17075. msgid "The following options are available:"
  17076. msgstr ""
  17077. #. type: item
  17078. #: guix-git/doc/guix.texi:11150 guix-git/doc/guix.texi:11194
  17079. #, no-wrap
  17080. msgid "--hash=@var{algorithm}"
  17081. msgstr ""
  17082. #. type: itemx
  17083. #: guix-git/doc/guix.texi:11151 guix-git/doc/guix.texi:11195
  17084. #, no-wrap
  17085. msgid "-H @var{algorithm}"
  17086. msgstr ""
  17087. #. type: table
  17088. #: guix-git/doc/guix.texi:11154
  17089. msgid "Compute a hash using the specified @var{algorithm}. @xref{Invoking guix hash}, for more information."
  17090. msgstr ""
  17091. #. type: item
  17092. #: guix-git/doc/guix.texi:11155 guix-git/doc/guix.texi:11204
  17093. #, no-wrap
  17094. msgid "--format=@var{fmt}"
  17095. msgstr ""
  17096. #. type: itemx
  17097. #: guix-git/doc/guix.texi:11156 guix-git/doc/guix.texi:11205
  17098. #, no-wrap
  17099. msgid "-f @var{fmt}"
  17100. msgstr ""
  17101. #. type: table
  17102. #: guix-git/doc/guix.texi:11159
  17103. 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}."
  17104. msgstr ""
  17105. #. type: item
  17106. #: guix-git/doc/guix.texi:11160
  17107. #, no-wrap
  17108. msgid "--no-check-certificate"
  17109. msgstr ""
  17110. #. type: table
  17111. #: guix-git/doc/guix.texi:11162
  17112. msgid "Do not validate the X.509 certificates of HTTPS servers."
  17113. msgstr ""
  17114. #. type: table
  17115. #: guix-git/doc/guix.texi:11166
  17116. 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."
  17117. msgstr ""
  17118. #. type: item
  17119. #: guix-git/doc/guix.texi:11167
  17120. #, no-wrap
  17121. msgid "--output=@var{file}"
  17122. msgstr ""
  17123. #. type: itemx
  17124. #: guix-git/doc/guix.texi:11168
  17125. #, no-wrap
  17126. msgid "-o @var{file}"
  17127. msgstr ""
  17128. #. type: table
  17129. #: guix-git/doc/guix.texi:11171
  17130. msgid "Save the downloaded file to @var{file} instead of adding it to the store."
  17131. msgstr ""
  17132. #. type: section
  17133. #: guix-git/doc/guix.texi:11174
  17134. #, no-wrap
  17135. msgid "Invoking @command{guix hash}"
  17136. msgstr ""
  17137. #. type: command{#1}
  17138. #: guix-git/doc/guix.texi:11176
  17139. #, no-wrap
  17140. msgid "guix hash"
  17141. msgstr ""
  17142. #. type: Plain text
  17143. #: guix-git/doc/guix.texi:11181
  17144. msgid "The @command{guix hash} command computes the hash of a file. It is primarily a convenience tool for anyone contributing to the distribution: it computes the cryptographic hash of a file, which can be used in the definition of a package (@pxref{Defining Packages})."
  17145. msgstr ""
  17146. #. type: example
  17147. #: guix-git/doc/guix.texi:11186
  17148. #, no-wrap
  17149. msgid "guix hash @var{option} @var{file}\n"
  17150. msgstr ""
  17151. #. type: Plain text
  17152. #: guix-git/doc/guix.texi:11191
  17153. 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:"
  17154. msgstr ""
  17155. #. type: table
  17156. #: guix-git/doc/guix.texi:11198
  17157. msgid "Compute a hash using the specified @var{algorithm}, @code{sha256} by default."
  17158. msgstr ""
  17159. #. type: table
  17160. #: guix-git/doc/guix.texi:11203
  17161. msgid "@var{algorithm} must the name of a cryptographic hash algorithm supported by Libgcrypt @i{via} Guile-Gcrypt---e.g., @code{sha512} or @code{sha3-256} (@pxref{Hash Functions,,, guile-gcrypt, Guile-Gcrypt Reference Manual})."
  17162. msgstr ""
  17163. #. type: table
  17164. #: guix-git/doc/guix.texi:11207
  17165. msgid "Write the hash in the format specified by @var{fmt}."
  17166. msgstr ""
  17167. #. type: table
  17168. #: guix-git/doc/guix.texi:11210
  17169. msgid "Supported formats: @code{base64}, @code{nix-base32}, @code{base32}, @code{base16} (@code{hex} and @code{hexadecimal} can be used as well)."
  17170. msgstr ""
  17171. #. type: table
  17172. #: guix-git/doc/guix.texi:11214
  17173. 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."
  17174. msgstr ""
  17175. #. type: table
  17176. #: guix-git/doc/guix.texi:11218
  17177. msgid "Compute the hash on @var{file} recursively."
  17178. msgstr ""
  17179. #. type: table
  17180. #: guix-git/doc/guix.texi:11227
  17181. msgid "In this case, the hash is computed on an archive containing @var{file}, including its children if it is a directory. Some of the metadata of @var{file} is part of the archive; for instance, when @var{file} is a regular file, the hash is different depending on whether @var{file} is executable or not. Metadata such as time stamps has no impact on the hash (@pxref{Invoking guix archive})."
  17182. msgstr ""
  17183. #. type: item
  17184. #: guix-git/doc/guix.texi:11228
  17185. #, no-wrap
  17186. msgid "--exclude-vcs"
  17187. msgstr ""
  17188. #. type: itemx
  17189. #: guix-git/doc/guix.texi:11229 guix-git/doc/guix.texi:12298
  17190. #, no-wrap
  17191. msgid "-x"
  17192. msgstr ""
  17193. #. type: table
  17194. #: guix-git/doc/guix.texi:11232
  17195. msgid "When combined with @option{--recursive}, exclude version control system directories (@file{.bzr}, @file{.git}, @file{.hg}, etc.)."
  17196. msgstr ""
  17197. #. type: vindex
  17198. #: guix-git/doc/guix.texi:11233
  17199. #, no-wrap
  17200. msgid "git-fetch"
  17201. msgstr ""
  17202. #. type: table
  17203. #: guix-git/doc/guix.texi:11237
  17204. 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}):"
  17205. msgstr ""
  17206. #. type: example
  17207. #: guix-git/doc/guix.texi:11242
  17208. #, no-wrap
  17209. msgid ""
  17210. "$ git clone http://example.org/foo.git\n"
  17211. "$ cd foo\n"
  17212. "$ guix hash -rx .\n"
  17213. msgstr ""
  17214. #. type: cindex
  17215. #: guix-git/doc/guix.texi:11246 guix-git/doc/guix.texi:11251
  17216. #, no-wrap
  17217. msgid "Invoking @command{guix import}"
  17218. msgstr ""
  17219. #. type: cindex
  17220. #: guix-git/doc/guix.texi:11248
  17221. #, no-wrap
  17222. msgid "importing packages"
  17223. msgstr ""
  17224. #. type: cindex
  17225. #: guix-git/doc/guix.texi:11249
  17226. #, no-wrap
  17227. msgid "package import"
  17228. msgstr ""
  17229. #. type: cindex
  17230. #: guix-git/doc/guix.texi:11250
  17231. #, no-wrap
  17232. msgid "package conversion"
  17233. msgstr ""
  17234. #. type: Plain text
  17235. #: guix-git/doc/guix.texi:11258
  17236. 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})."
  17237. msgstr ""
  17238. #. type: example
  17239. #: guix-git/doc/guix.texi:11263
  17240. #, no-wrap
  17241. msgid "guix import @var{importer} @var{options}@dots{}\n"
  17242. msgstr ""
  17243. #. type: Plain text
  17244. #: guix-git/doc/guix.texi:11268
  17245. 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}."
  17246. msgstr ""
  17247. #. type: Plain text
  17248. #: guix-git/doc/guix.texi:11272
  17249. 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."
  17250. msgstr ""
  17251. #. type: Plain text
  17252. #: guix-git/doc/guix.texi:11274
  17253. msgid "Currently, the available ``importers'' are:"
  17254. msgstr ""
  17255. #. type: item
  17256. #: guix-git/doc/guix.texi:11276 guix-git/doc/guix.texi:11909
  17257. #, no-wrap
  17258. msgid "gnu"
  17259. msgstr ""
  17260. #. type: table
  17261. #: guix-git/doc/guix.texi:11280
  17262. 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."
  17263. msgstr ""
  17264. #. type: table
  17265. #: guix-git/doc/guix.texi:11283
  17266. msgid "Additional information such as the package dependencies and its license needs to be figured out manually."
  17267. msgstr ""
  17268. #. type: table
  17269. #: guix-git/doc/guix.texi:11286
  17270. msgid "For example, the following command returns a package definition for GNU@tie{}Hello:"
  17271. msgstr ""
  17272. #. type: example
  17273. #: guix-git/doc/guix.texi:11289
  17274. #, no-wrap
  17275. msgid "guix import gnu hello\n"
  17276. msgstr ""
  17277. #. type: table
  17278. #: guix-git/doc/guix.texi:11292 guix-git/doc/guix.texi:11534
  17279. #: guix-git/doc/guix.texi:11584 guix-git/doc/guix.texi:11613
  17280. msgid "Specific command-line options are:"
  17281. msgstr ""
  17282. #. type: item
  17283. #: guix-git/doc/guix.texi:11294 guix-git/doc/guix.texi:12106
  17284. #, no-wrap
  17285. msgid "--key-download=@var{policy}"
  17286. msgstr ""
  17287. #. type: table
  17288. #: guix-git/doc/guix.texi:11298
  17289. 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}}."
  17290. msgstr ""
  17291. #. type: item
  17292. #: guix-git/doc/guix.texi:11300 guix-git/doc/guix.texi:11301
  17293. #: guix-git/doc/guix.texi:11933
  17294. #, no-wrap
  17295. msgid "pypi"
  17296. msgstr ""
  17297. #. type: table
  17298. #: guix-git/doc/guix.texi:11308
  17299. 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."
  17300. msgstr ""
  17301. #. type: table
  17302. #: guix-git/doc/guix.texi:11311
  17303. msgid "The command below imports metadata for the @code{itsdangerous} Python package:"
  17304. msgstr ""
  17305. #. type: example
  17306. #: guix-git/doc/guix.texi:11314
  17307. #, no-wrap
  17308. msgid "guix import pypi itsdangerous\n"
  17309. msgstr ""
  17310. #. type: table
  17311. #: guix-git/doc/guix.texi:11322 guix-git/doc/guix.texi:11347
  17312. #: guix-git/doc/guix.texi:11379 guix-git/doc/guix.texi:11557
  17313. #: guix-git/doc/guix.texi:11598 guix-git/doc/guix.texi:11649
  17314. #: guix-git/doc/guix.texi:11674 guix-git/doc/guix.texi:11690
  17315. #: guix-git/doc/guix.texi:11738 guix-git/doc/guix.texi:11768
  17316. 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."
  17317. msgstr ""
  17318. #. type: item
  17319. #: guix-git/doc/guix.texi:11324 guix-git/doc/guix.texi:11325
  17320. #: guix-git/doc/guix.texi:11935
  17321. #, no-wrap
  17322. msgid "gem"
  17323. msgstr ""
  17324. #. type: table
  17325. #: guix-git/doc/guix.texi:11334
  17326. 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."
  17327. msgstr ""
  17328. #. type: table
  17329. #: guix-git/doc/guix.texi:11336
  17330. msgid "The command below imports metadata for the @code{rails} Ruby package:"
  17331. msgstr ""
  17332. #. type: example
  17333. #: guix-git/doc/guix.texi:11339
  17334. #, no-wrap
  17335. msgid "guix import gem rails\n"
  17336. msgstr ""
  17337. #. type: cindex
  17338. #: guix-git/doc/guix.texi:11349 guix-git/doc/guix.texi:11350
  17339. #, no-wrap
  17340. msgid "minetest"
  17341. msgstr ""
  17342. #. type: cindex
  17343. #: guix-git/doc/guix.texi:11351
  17344. #, no-wrap
  17345. msgid "ContentDB"
  17346. msgstr ""
  17347. #. type: table
  17348. #: guix-git/doc/guix.texi:11360
  17349. 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."
  17350. msgstr ""
  17351. #. type: table
  17352. #: guix-git/doc/guix.texi:11362
  17353. msgid "The command below imports metadata for the Mesecons mod by Jeija:"
  17354. msgstr ""
  17355. #. type: example
  17356. #: guix-git/doc/guix.texi:11365
  17357. #, no-wrap
  17358. msgid "guix import minetest Jeija/mesecons\n"
  17359. msgstr ""
  17360. #. type: table
  17361. #: guix-git/doc/guix.texi:11368
  17362. msgid "The author name can also be left out:"
  17363. msgstr ""
  17364. #. type: example
  17365. #: guix-git/doc/guix.texi:11371
  17366. #, no-wrap
  17367. msgid "guix import minetest mesecons\n"
  17368. msgstr ""
  17369. #. type: item
  17370. #: guix-git/doc/guix.texi:11381 guix-git/doc/guix.texi:11931
  17371. #, no-wrap
  17372. msgid "cpan"
  17373. msgstr ""
  17374. #. type: cindex
  17375. #: guix-git/doc/guix.texi:11382
  17376. #, no-wrap
  17377. msgid "CPAN"
  17378. msgstr ""
  17379. #. type: table
  17380. #: guix-git/doc/guix.texi:11390
  17381. 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."
  17382. msgstr ""
  17383. #. type: table
  17384. #: guix-git/doc/guix.texi:11393
  17385. msgid "The command command below imports metadata for the Acme::Boolean Perl module:"
  17386. msgstr ""
  17387. #. type: example
  17388. #: guix-git/doc/guix.texi:11396
  17389. #, no-wrap
  17390. msgid "guix import cpan Acme::Boolean\n"
  17391. msgstr ""
  17392. #. type: item
  17393. #: guix-git/doc/guix.texi:11398 guix-git/doc/guix.texi:11927
  17394. #, no-wrap
  17395. msgid "cran"
  17396. msgstr ""
  17397. #. type: cindex
  17398. #: guix-git/doc/guix.texi:11399
  17399. #, no-wrap
  17400. msgid "CRAN"
  17401. msgstr ""
  17402. #. type: cindex
  17403. #: guix-git/doc/guix.texi:11400
  17404. #, no-wrap
  17405. msgid "Bioconductor"
  17406. msgstr ""
  17407. #. type: table
  17408. #: guix-git/doc/guix.texi:11404
  17409. 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}."
  17410. msgstr ""
  17411. #. type: table
  17412. #: guix-git/doc/guix.texi:11406
  17413. msgid "Information is extracted from the @file{DESCRIPTION} file of the package."
  17414. msgstr ""
  17415. #. type: table
  17416. #: guix-git/doc/guix.texi:11408
  17417. msgid "The command command below imports metadata for the Cairo R package:"
  17418. msgstr ""
  17419. #. type: example
  17420. #: guix-git/doc/guix.texi:11411
  17421. #, no-wrap
  17422. msgid "guix import cran Cairo\n"
  17423. msgstr ""
  17424. #. type: table
  17425. #: guix-git/doc/guix.texi:11416
  17426. 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."
  17427. msgstr ""
  17428. #. type: table
  17429. #: guix-git/doc/guix.texi:11423
  17430. 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}."
  17431. msgstr ""
  17432. #. type: table
  17433. #: guix-git/doc/guix.texi:11428
  17434. 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."
  17435. msgstr ""
  17436. #. type: table
  17437. #: guix-git/doc/guix.texi:11431
  17438. msgid "Information is extracted from the @file{DESCRIPTION} file contained in the package archive."
  17439. msgstr ""
  17440. #. type: table
  17441. #: guix-git/doc/guix.texi:11433
  17442. msgid "The command below imports metadata for the GenomicRanges R package:"
  17443. msgstr ""
  17444. #. type: example
  17445. #: guix-git/doc/guix.texi:11436
  17446. #, no-wrap
  17447. msgid "guix import cran --archive=bioconductor GenomicRanges\n"
  17448. msgstr ""
  17449. #. type: table
  17450. #: guix-git/doc/guix.texi:11441
  17451. 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:"
  17452. msgstr ""
  17453. #. type: example
  17454. #: guix-git/doc/guix.texi:11444
  17455. #, no-wrap
  17456. msgid "guix import cran --archive=git https://github.com/immunogenomics/harmony\n"
  17457. msgstr ""
  17458. #. type: item
  17459. #: guix-git/doc/guix.texi:11446
  17460. #, no-wrap
  17461. msgid "texlive"
  17462. msgstr ""
  17463. #. type: cindex
  17464. #: guix-git/doc/guix.texi:11447
  17465. #, no-wrap
  17466. msgid "TeX Live"
  17467. msgstr ""
  17468. #. type: cindex
  17469. #: guix-git/doc/guix.texi:11448
  17470. #, no-wrap
  17471. msgid "CTAN"
  17472. msgstr ""
  17473. #. type: table
  17474. #: guix-git/doc/guix.texi:11452
  17475. msgid "Import metadata from @uref{https://www.ctan.org/, CTAN}, the comprehensive TeX archive network for TeX packages that are part of the @uref{https://www.tug.org/texlive/, TeX Live distribution}."
  17476. msgstr ""
  17477. #. type: table
  17478. #: guix-git/doc/guix.texi:11457
  17479. msgid "Information about the package is obtained through the XML API provided by CTAN, while the source code is downloaded from the SVN repository of the Tex Live project. This is done because the CTAN does not keep versioned archives."
  17480. msgstr ""
  17481. #. type: table
  17482. #: guix-git/doc/guix.texi:11460
  17483. msgid "The command command below imports metadata for the @code{fontspec} TeX package:"
  17484. msgstr ""
  17485. #. type: example
  17486. #: guix-git/doc/guix.texi:11463
  17487. #, no-wrap
  17488. msgid "guix import texlive fontspec\n"
  17489. msgstr ""
  17490. #. type: table
  17491. #: guix-git/doc/guix.texi:11469
  17492. msgid "When @option{--archive=@var{directory}} is added, the source code is downloaded not from the @file{latex} sub-directory of the @file{texmf-dist/source} tree in the TeX Live SVN repository, but from the specified sibling @var{directory} under the same root."
  17493. msgstr ""
  17494. #. type: table
  17495. #: guix-git/doc/guix.texi:11473
  17496. msgid "The command below imports metadata for the @code{ifxetex} package from CTAN while fetching the sources from the directory @file{texmf/source/generic}:"
  17497. msgstr ""
  17498. #. type: example
  17499. #: guix-git/doc/guix.texi:11476
  17500. #, no-wrap
  17501. msgid "guix import texlive --archive=generic ifxetex\n"
  17502. msgstr ""
  17503. #. type: cindex
  17504. #: guix-git/doc/guix.texi:11479
  17505. #, no-wrap
  17506. msgid "JSON, import"
  17507. msgstr ""
  17508. #. type: table
  17509. #: guix-git/doc/guix.texi:11482
  17510. msgid "Import package metadata from a local JSON file. Consider the following example package definition in JSON format:"
  17511. msgstr ""
  17512. #. type: example
  17513. #: guix-git/doc/guix.texi:11495
  17514. #, no-wrap
  17515. msgid ""
  17516. "@{\n"
  17517. " \"name\": \"hello\",\n"
  17518. " \"version\": \"2.10\",\n"
  17519. " \"source\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  17520. " \"build-system\": \"gnu\",\n"
  17521. " \"home-page\": \"https://www.gnu.org/software/hello/\",\n"
  17522. " \"synopsis\": \"Hello, GNU world: An example GNU package\",\n"
  17523. " \"description\": \"GNU Hello prints a greeting.\",\n"
  17524. " \"license\": \"GPL-3.0+\",\n"
  17525. " \"native-inputs\": [\"gettext\"]\n"
  17526. "@}\n"
  17527. msgstr ""
  17528. #. type: table
  17529. #: guix-git/doc/guix.texi:11501
  17530. 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}."
  17531. msgstr ""
  17532. #. type: table
  17533. #: guix-git/doc/guix.texi:11504
  17534. msgid "The importer also supports a more explicit source definition using the common fields for @code{<origin>} records:"
  17535. msgstr ""
  17536. #. type: example
  17537. #: guix-git/doc/guix.texi:11517
  17538. #, no-wrap
  17539. msgid ""
  17540. "@{\n"
  17541. " @dots{}\n"
  17542. " \"source\": @{\n"
  17543. " \"method\": \"url-fetch\",\n"
  17544. " \"uri\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  17545. " \"sha256\": @{\n"
  17546. " \"base32\": \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"\n"
  17547. " @}\n"
  17548. " @}\n"
  17549. " @dots{}\n"
  17550. "@}\n"
  17551. msgstr ""
  17552. #. type: table
  17553. #: guix-git/doc/guix.texi:11521
  17554. msgid "The command below reads metadata from the JSON file @code{hello.json} and outputs a package expression:"
  17555. msgstr ""
  17556. #. type: example
  17557. #: guix-git/doc/guix.texi:11524
  17558. #, no-wrap
  17559. msgid "guix import json hello.json\n"
  17560. msgstr ""
  17561. #. type: item
  17562. #: guix-git/doc/guix.texi:11526 guix-git/doc/guix.texi:11527
  17563. #: guix-git/doc/guix.texi:11939
  17564. #, no-wrap
  17565. msgid "hackage"
  17566. msgstr ""
  17567. #. type: table
  17568. #: guix-git/doc/guix.texi:11532
  17569. 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."
  17570. msgstr ""
  17571. #. type: item
  17572. #: guix-git/doc/guix.texi:11536
  17573. #, no-wrap
  17574. msgid "--stdin"
  17575. msgstr ""
  17576. #. type: itemx
  17577. #: guix-git/doc/guix.texi:11537
  17578. #, no-wrap
  17579. msgid "-s"
  17580. msgstr ""
  17581. #. type: table
  17582. #: guix-git/doc/guix.texi:11539
  17583. msgid "Read a Cabal file from standard input."
  17584. msgstr ""
  17585. #. type: item
  17586. #: guix-git/doc/guix.texi:11539 guix-git/doc/guix.texi:11586
  17587. #, no-wrap
  17588. msgid "--no-test-dependencies"
  17589. msgstr ""
  17590. #. type: table
  17591. #: guix-git/doc/guix.texi:11542 guix-git/doc/guix.texi:11589
  17592. msgid "Do not include dependencies required only by the test suites."
  17593. msgstr ""
  17594. #. type: item
  17595. #: guix-git/doc/guix.texi:11542
  17596. #, no-wrap
  17597. msgid "--cabal-environment=@var{alist}"
  17598. msgstr ""
  17599. #. type: itemx
  17600. #: guix-git/doc/guix.texi:11543
  17601. #, no-wrap
  17602. msgid "-e @var{alist}"
  17603. msgstr ""
  17604. #. type: table
  17605. #: guix-git/doc/guix.texi:11552
  17606. 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."
  17607. msgstr ""
  17608. #. type: table
  17609. #: guix-git/doc/guix.texi:11562
  17610. 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}:"
  17611. msgstr ""
  17612. #. type: example
  17613. #: guix-git/doc/guix.texi:11565
  17614. #, no-wrap
  17615. msgid "guix import hackage -t -e \"'((\\\"network-uri\\\" . false))\" HTTP\n"
  17616. msgstr ""
  17617. #. type: table
  17618. #: guix-git/doc/guix.texi:11569
  17619. 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:"
  17620. msgstr ""
  17621. #. type: example
  17622. #: guix-git/doc/guix.texi:11572
  17623. #, no-wrap
  17624. msgid "guix import hackage mtl@@2.1.3.1\n"
  17625. msgstr ""
  17626. #. type: item
  17627. #: guix-git/doc/guix.texi:11574 guix-git/doc/guix.texi:11575
  17628. #: guix-git/doc/guix.texi:11941
  17629. #, no-wrap
  17630. msgid "stackage"
  17631. msgstr ""
  17632. #. type: table
  17633. #: guix-git/doc/guix.texi:11582
  17634. 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."
  17635. msgstr ""
  17636. #. type: item
  17637. #: guix-git/doc/guix.texi:11589
  17638. #, no-wrap
  17639. msgid "--lts-version=@var{version}"
  17640. msgstr ""
  17641. #. type: itemx
  17642. #: guix-git/doc/guix.texi:11590
  17643. #, no-wrap
  17644. msgid "-l @var{version}"
  17645. msgstr ""
  17646. #. type: table
  17647. #: guix-git/doc/guix.texi:11593
  17648. msgid "@var{version} is the desired LTS release version. If omitted the latest release is used."
  17649. msgstr ""
  17650. #. type: table
  17651. #: guix-git/doc/guix.texi:11602
  17652. msgid "The command below imports metadata for the HTTP Haskell package included in the LTS Stackage release version 7.18:"
  17653. msgstr ""
  17654. #. type: example
  17655. #: guix-git/doc/guix.texi:11605
  17656. #, no-wrap
  17657. msgid "guix import stackage --lts-version=7.18 HTTP\n"
  17658. msgstr ""
  17659. #. type: item
  17660. #: guix-git/doc/guix.texi:11607 guix-git/doc/guix.texi:11608
  17661. #: guix-git/doc/guix.texi:11925
  17662. #, no-wrap
  17663. msgid "elpa"
  17664. msgstr ""
  17665. #. type: table
  17666. #: guix-git/doc/guix.texi:11611
  17667. msgid "Import metadata from an Emacs Lisp Package Archive (ELPA) package repository (@pxref{Packages,,, emacs, The GNU Emacs Manual})."
  17668. msgstr ""
  17669. #. type: item
  17670. #: guix-git/doc/guix.texi:11615
  17671. #, no-wrap
  17672. msgid "--archive=@var{repo}"
  17673. msgstr ""
  17674. #. type: itemx
  17675. #: guix-git/doc/guix.texi:11616
  17676. #, no-wrap
  17677. msgid "-a @var{repo}"
  17678. msgstr ""
  17679. #. type: table
  17680. #: guix-git/doc/guix.texi:11620
  17681. msgid "@var{repo} identifies the archive repository from which to retrieve the information. Currently the supported repositories and their identifiers are:"
  17682. msgstr ""
  17683. #. type: itemize
  17684. #: guix-git/doc/guix.texi:11624
  17685. msgid "@uref{https://elpa.gnu.org/packages, GNU}, selected by the @code{gnu} identifier. This is the default."
  17686. msgstr ""
  17687. #. type: itemize
  17688. #: guix-git/doc/guix.texi:11630
  17689. 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})."
  17690. msgstr ""
  17691. #. type: itemize
  17692. #: guix-git/doc/guix.texi:11634
  17693. msgid "@uref{https://elpa.nongnu.org/nongnu/, NonGNU}, selected by the @code{nongnu} identifier."
  17694. msgstr ""
  17695. #. type: itemize
  17696. #: guix-git/doc/guix.texi:11638
  17697. msgid "@uref{https://stable.melpa.org/packages, MELPA-Stable}, selected by the @code{melpa-stable} identifier."
  17698. msgstr ""
  17699. #. type: itemize
  17700. #: guix-git/doc/guix.texi:11642
  17701. msgid "@uref{https://melpa.org/packages, MELPA}, selected by the @code{melpa} identifier."
  17702. msgstr ""
  17703. #. type: item
  17704. #: guix-git/doc/guix.texi:11651 guix-git/doc/guix.texi:11652
  17705. #: guix-git/doc/guix.texi:11943
  17706. #, no-wrap
  17707. msgid "crate"
  17708. msgstr ""
  17709. #. type: table
  17710. #: guix-git/doc/guix.texi:11655
  17711. msgid "Import metadata from the crates.io Rust package repository @uref{https://crates.io, crates.io}, as in this example:"
  17712. msgstr ""
  17713. #. type: example
  17714. #: guix-git/doc/guix.texi:11658
  17715. #, no-wrap
  17716. msgid "guix import crate blake2-rfc\n"
  17717. msgstr ""
  17718. #. type: table
  17719. #: guix-git/doc/guix.texi:11661
  17720. msgid "The crate importer also allows you to specify a version string:"
  17721. msgstr ""
  17722. #. type: example
  17723. #: guix-git/doc/guix.texi:11664
  17724. #, no-wrap
  17725. msgid "guix import crate constant-time-eq@@0.1.0\n"
  17726. msgstr ""
  17727. #. type: table
  17728. #: guix-git/doc/guix.texi:11667 guix-git/doc/guix.texi:11683
  17729. #: guix-git/doc/guix.texi:11731 guix-git/doc/guix.texi:11762
  17730. #, fuzzy
  17731. msgid "Additional options include:"
  17732. msgstr "额外的构建选项"
  17733. #. type: item
  17734. #: guix-git/doc/guix.texi:11676
  17735. #, no-wrap
  17736. msgid "opam"
  17737. msgstr ""
  17738. #. type: cindex
  17739. #: guix-git/doc/guix.texi:11677
  17740. #, no-wrap
  17741. msgid "OPAM"
  17742. msgstr ""
  17743. #. type: cindex
  17744. #: guix-git/doc/guix.texi:11678
  17745. #, no-wrap
  17746. msgid "OCaml"
  17747. msgstr ""
  17748. #. type: table
  17749. #: guix-git/doc/guix.texi:11681
  17750. msgid "Import metadata from the @uref{https://opam.ocaml.org/, OPAM} package repository used by the OCaml community."
  17751. msgstr ""
  17752. #. type: item
  17753. #: guix-git/doc/guix.texi:11690
  17754. #, no-wrap
  17755. msgid "--repo"
  17756. msgstr ""
  17757. #. type: table
  17758. #: guix-git/doc/guix.texi:11694
  17759. 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:"
  17760. msgstr ""
  17761. #. type: item
  17762. #: guix-git/doc/guix.texi:11696
  17763. #, no-wrap
  17764. msgid "the name of a known repository - can be one of @code{opam},"
  17765. msgstr ""
  17766. #. type: itemize
  17767. #: guix-git/doc/guix.texi:11699
  17768. msgid "@code{coq} (equivalent to @code{coq-released}), @code{coq-core-dev}, @code{coq-extra-dev} or @code{grew}."
  17769. msgstr ""
  17770. #. type: item
  17771. #: guix-git/doc/guix.texi:11699
  17772. #, no-wrap
  17773. msgid "the URL of a repository as expected by the"
  17774. msgstr ""
  17775. #. type: itemize
  17776. #: guix-git/doc/guix.texi:11703
  17777. msgid "@code{opam repository add} command (for instance, the URL equivalent of the above @code{opam} name would be @uref{https://opam.ocaml.org})."
  17778. msgstr ""
  17779. #. type: item
  17780. #: guix-git/doc/guix.texi:11703
  17781. #, no-wrap
  17782. msgid "the path to a local copy of a repository (a directory containing a"
  17783. msgstr ""
  17784. #. type: itemize
  17785. #: guix-git/doc/guix.texi:11705
  17786. #, fuzzy
  17787. msgid "@file{packages/} sub-directory)."
  17788. msgstr "软件包模块"
  17789. #. type: table
  17790. #: guix-git/doc/guix.texi:11710
  17791. 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."
  17792. msgstr ""
  17793. #. type: table
  17794. #: guix-git/doc/guix.texi:11715
  17795. 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}."
  17796. msgstr ""
  17797. #. type: cindex
  17798. #: guix-git/doc/guix.texi:11718 guix-git/doc/guix.texi:11719
  17799. #, no-wrap
  17800. msgid "go"
  17801. msgstr ""
  17802. #. type: table
  17803. #: guix-git/doc/guix.texi:11722
  17804. msgid "Import metadata for a Go module using @uref{https://proxy.golang.org, proxy.golang.org}."
  17805. msgstr ""
  17806. #. type: example
  17807. #: guix-git/doc/guix.texi:11725
  17808. #, no-wrap
  17809. msgid "guix import go gopkg.in/yaml.v2\n"
  17810. msgstr ""
  17811. #. type: table
  17812. #: guix-git/doc/guix.texi:11729
  17813. msgid "It is possible to use a package specification with a @code{@@VERSION} suffix to import a specific version."
  17814. msgstr ""
  17815. #. type: item
  17816. #: guix-git/doc/guix.texi:11738
  17817. #, no-wrap
  17818. msgid "--pin-versions"
  17819. msgstr ""
  17820. #. type: table
  17821. #: guix-git/doc/guix.texi:11746
  17822. 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."
  17823. msgstr ""
  17824. #. type: item
  17825. #: guix-git/doc/guix.texi:11748 guix-git/doc/guix.texi:11749
  17826. #: guix-git/doc/guix.texi:11923
  17827. #, no-wrap
  17828. msgid "egg"
  17829. msgstr ""
  17830. #. type: table
  17831. #: guix-git/doc/guix.texi:11756
  17832. msgid "Import metadata for @uref{https://wiki.call-cc.org/eggs, CHICKEN eggs}. The information is taken from @file{PACKAGE.egg} files found in the @uref{git://code.call-cc.org/eggs-5-latest, eggs-5-latest} Git repository. However, it does not provide all the information that we need, there is no ``description'' field, and the licenses used are not always precise (BSD is often used instead of BSD-N)."
  17833. msgstr ""
  17834. #. type: example
  17835. #: guix-git/doc/guix.texi:11759
  17836. #, no-wrap
  17837. msgid "guix import egg sourcehut\n"
  17838. msgstr ""
  17839. #. type: Plain text
  17840. #: guix-git/doc/guix.texi:11774
  17841. 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})."
  17842. msgstr ""
  17843. #. type: section
  17844. #: guix-git/doc/guix.texi:11776
  17845. #, no-wrap
  17846. msgid "Invoking @command{guix refresh}"
  17847. msgstr ""
  17848. #. type: command{#1}
  17849. #: guix-git/doc/guix.texi:11778
  17850. #, no-wrap
  17851. msgid "guix refresh"
  17852. msgstr ""
  17853. #. type: Plain text
  17854. #: guix-git/doc/guix.texi:11786
  17855. 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:"
  17856. msgstr ""
  17857. #. type: example
  17858. #: guix-git/doc/guix.texi:11791
  17859. #, no-wrap
  17860. msgid ""
  17861. "$ guix refresh\n"
  17862. "gnu/packages/gettext.scm:29:13: gettext would be upgraded from 0.18.1.1 to 0.18.2.1\n"
  17863. "gnu/packages/glib.scm:77:12: glib would be upgraded from 2.34.3 to 2.37.0\n"
  17864. msgstr ""
  17865. #. type: Plain text
  17866. #: guix-git/doc/guix.texi:11795
  17867. msgid "Alternatively, one can specify packages to consider, in which case a warning is emitted for packages that lack an updater:"
  17868. msgstr ""
  17869. #. type: example
  17870. #: guix-git/doc/guix.texi:11800
  17871. #, no-wrap
  17872. msgid ""
  17873. "$ guix refresh coreutils guile guile-ssh\n"
  17874. "gnu/packages/ssh.scm:205:2: warning: no updater for guile-ssh\n"
  17875. "gnu/packages/guile.scm:136:12: guile would be upgraded from 2.0.12 to 2.0.13\n"
  17876. msgstr ""
  17877. #. type: Plain text
  17878. #: guix-git/doc/guix.texi:11809
  17879. 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!"
  17880. msgstr ""
  17881. #. type: table
  17882. #: guix-git/doc/guix.texi:11814
  17883. msgid "Consider the packages specified, and all the packages upon which they depend."
  17884. msgstr ""
  17885. #. type: example
  17886. #: guix-git/doc/guix.texi:11822
  17887. #, no-wrap
  17888. msgid ""
  17889. "$ guix refresh --recursive coreutils\n"
  17890. "gnu/packages/acl.scm:40:13: acl would be upgraded from 2.2.53 to 2.3.1\n"
  17891. "gnu/packages/m4.scm:30:12: 1.4.18 is already the latest version of m4\n"
  17892. "gnu/packages/xml.scm:68:2: warning: no updater for expat\n"
  17893. "gnu/packages/multiprecision.scm:40:12: 6.1.2 is already the latest version of gmp\n"
  17894. "@dots{}\n"
  17895. msgstr ""
  17896. #. type: Plain text
  17897. #: guix-git/doc/guix.texi:11830
  17898. 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:"
  17899. msgstr ""
  17900. #. type: lisp
  17901. #: guix-git/doc/guix.texi:11837
  17902. #, no-wrap
  17903. msgid ""
  17904. "(define-public network-manager\n"
  17905. " (package\n"
  17906. " (name \"network-manager\")\n"
  17907. " ;; @dots{}\n"
  17908. " (properties '((upstream-name . \"NetworkManager\")))))\n"
  17909. msgstr ""
  17910. #. type: Plain text
  17911. #: guix-git/doc/guix.texi:11846
  17912. 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."
  17913. msgstr ""
  17914. #. type: Plain text
  17915. #: guix-git/doc/guix.texi:11852
  17916. 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."
  17917. msgstr ""
  17918. #. type: Plain text
  17919. #: guix-git/doc/guix.texi:11854
  17920. msgid "The following options are supported:"
  17921. msgstr ""
  17922. #. type: table
  17923. #: guix-git/doc/guix.texi:11862 guix-git/doc/guix.texi:12707
  17924. msgid "This is useful to precisely refer to a package, as in this example:"
  17925. msgstr ""
  17926. #. type: example
  17927. #: guix-git/doc/guix.texi:11865
  17928. #, no-wrap
  17929. msgid "guix refresh -l -e '(@@@@ (gnu packages commencement) glibc-final)'\n"
  17930. msgstr ""
  17931. #. type: table
  17932. #: guix-git/doc/guix.texi:11869
  17933. msgid "This command lists the dependents of the ``final'' libc (essentially all the packages)."
  17934. msgstr ""
  17935. #. type: item
  17936. #: guix-git/doc/guix.texi:11870
  17937. #, no-wrap
  17938. msgid "--update"
  17939. msgstr ""
  17940. #. type: itemx
  17941. #: guix-git/doc/guix.texi:11871
  17942. #, no-wrap
  17943. msgid "-u"
  17944. msgstr ""
  17945. #. type: table
  17946. #: guix-git/doc/guix.texi:11875
  17947. 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}):"
  17948. msgstr ""
  17949. #. type: example
  17950. #: guix-git/doc/guix.texi:11878
  17951. #, no-wrap
  17952. msgid "$ ./pre-inst-env guix refresh -s non-core -u\n"
  17953. msgstr ""
  17954. #. type: table
  17955. #: guix-git/doc/guix.texi:11881
  17956. msgid "@xref{Defining Packages}, for more information on package definitions."
  17957. msgstr ""
  17958. #. type: item
  17959. #: guix-git/doc/guix.texi:11882
  17960. #, no-wrap
  17961. msgid "--select=[@var{subset}]"
  17962. msgstr ""
  17963. #. type: itemx
  17964. #: guix-git/doc/guix.texi:11883
  17965. #, no-wrap
  17966. msgid "-s @var{subset}"
  17967. msgstr ""
  17968. #. type: table
  17969. #: guix-git/doc/guix.texi:11886
  17970. msgid "Select all the packages in @var{subset}, one of @code{core} or @code{non-core}."
  17971. msgstr ""
  17972. #. type: table
  17973. #: guix-git/doc/guix.texi:11893
  17974. 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."
  17975. msgstr ""
  17976. #. type: table
  17977. #: guix-git/doc/guix.texi:11897
  17978. 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."
  17979. msgstr ""
  17980. #. type: table
  17981. #: guix-git/doc/guix.texi:11902
  17982. 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."
  17983. msgstr ""
  17984. #. type: item
  17985. #: guix-git/doc/guix.texi:11903
  17986. #, no-wrap
  17987. msgid "--type=@var{updater}"
  17988. msgstr ""
  17989. #. type: itemx
  17990. #: guix-git/doc/guix.texi:11904
  17991. #, no-wrap
  17992. msgid "-t @var{updater}"
  17993. msgstr ""
  17994. #. type: table
  17995. #: guix-git/doc/guix.texi:11907
  17996. msgid "Select only packages handled by @var{updater} (may be a comma-separated list of updaters). Currently, @var{updater} may be one of:"
  17997. msgstr ""
  17998. #. type: table
  17999. #: guix-git/doc/guix.texi:11911
  18000. msgid "the updater for GNU packages;"
  18001. msgstr ""
  18002. #. type: item
  18003. #: guix-git/doc/guix.texi:11911
  18004. #, no-wrap
  18005. msgid "savannah"
  18006. msgstr ""
  18007. #. type: table
  18008. #: guix-git/doc/guix.texi:11913
  18009. msgid "the updater for packages hosted at @uref{https://savannah.gnu.org, Savannah};"
  18010. msgstr ""
  18011. #. type: item
  18012. #: guix-git/doc/guix.texi:11913
  18013. #, no-wrap
  18014. msgid "sourceforge"
  18015. msgstr ""
  18016. #. type: table
  18017. #: guix-git/doc/guix.texi:11915
  18018. msgid "the updater for packages hosted at @uref{https://sourceforge.net, SourceForge};"
  18019. msgstr ""
  18020. #. type: item
  18021. #: guix-git/doc/guix.texi:11915
  18022. #, no-wrap
  18023. msgid "gnome"
  18024. msgstr ""
  18025. #. type: table
  18026. #: guix-git/doc/guix.texi:11917
  18027. msgid "the updater for GNOME packages;"
  18028. msgstr ""
  18029. #. type: item
  18030. #: guix-git/doc/guix.texi:11917
  18031. #, no-wrap
  18032. msgid "kde"
  18033. msgstr ""
  18034. #. type: table
  18035. #: guix-git/doc/guix.texi:11919
  18036. msgid "the updater for KDE packages;"
  18037. msgstr ""
  18038. #. type: item
  18039. #: guix-git/doc/guix.texi:11919
  18040. #, no-wrap
  18041. msgid "xorg"
  18042. msgstr ""
  18043. #. type: table
  18044. #: guix-git/doc/guix.texi:11921
  18045. msgid "the updater for X.org packages;"
  18046. msgstr ""
  18047. #. type: item
  18048. #: guix-git/doc/guix.texi:11921
  18049. #, no-wrap
  18050. msgid "kernel.org"
  18051. msgstr ""
  18052. #. type: table
  18053. #: guix-git/doc/guix.texi:11923
  18054. msgid "the updater for packages hosted on kernel.org;"
  18055. msgstr ""
  18056. #. type: table
  18057. #: guix-git/doc/guix.texi:11925
  18058. msgid "the updater for @uref{https://wiki.call-cc.org/eggs/, Egg} packages;"
  18059. msgstr ""
  18060. #. type: table
  18061. #: guix-git/doc/guix.texi:11927
  18062. msgid "the updater for @uref{https://elpa.gnu.org/, ELPA} packages;"
  18063. msgstr ""
  18064. #. type: table
  18065. #: guix-git/doc/guix.texi:11929
  18066. msgid "the updater for @uref{https://cran.r-project.org/, CRAN} packages;"
  18067. msgstr ""
  18068. #. type: item
  18069. #: guix-git/doc/guix.texi:11929
  18070. #, no-wrap
  18071. msgid "bioconductor"
  18072. msgstr ""
  18073. #. type: table
  18074. #: guix-git/doc/guix.texi:11931
  18075. msgid "the updater for @uref{https://www.bioconductor.org/, Bioconductor} R packages;"
  18076. msgstr ""
  18077. #. type: table
  18078. #: guix-git/doc/guix.texi:11933
  18079. msgid "the updater for @uref{https://www.cpan.org/, CPAN} packages;"
  18080. msgstr ""
  18081. #. type: table
  18082. #: guix-git/doc/guix.texi:11935
  18083. msgid "the updater for @uref{https://pypi.python.org, PyPI} packages."
  18084. msgstr ""
  18085. #. type: table
  18086. #: guix-git/doc/guix.texi:11937
  18087. msgid "the updater for @uref{https://rubygems.org, RubyGems} packages."
  18088. msgstr ""
  18089. #. type: item
  18090. #: guix-git/doc/guix.texi:11937
  18091. #, no-wrap
  18092. msgid "github"
  18093. msgstr ""
  18094. #. type: table
  18095. #: guix-git/doc/guix.texi:11939
  18096. msgid "the updater for @uref{https://github.com, GitHub} packages."
  18097. msgstr ""
  18098. #. type: table
  18099. #: guix-git/doc/guix.texi:11941
  18100. msgid "the updater for @uref{https://hackage.haskell.org, Hackage} packages."
  18101. msgstr ""
  18102. #. type: table
  18103. #: guix-git/doc/guix.texi:11943
  18104. msgid "the updater for @uref{https://www.stackage.org, Stackage} packages."
  18105. msgstr ""
  18106. #. type: table
  18107. #: guix-git/doc/guix.texi:11945
  18108. msgid "the updater for @uref{https://crates.io, Crates} packages."
  18109. msgstr ""
  18110. #. type: item
  18111. #: guix-git/doc/guix.texi:11945
  18112. #, no-wrap
  18113. msgid "launchpad"
  18114. msgstr ""
  18115. #. type: table
  18116. #: guix-git/doc/guix.texi:11947
  18117. msgid "the updater for @uref{https://launchpad.net, Launchpad} packages."
  18118. msgstr ""
  18119. #. type: item
  18120. #: guix-git/doc/guix.texi:11947
  18121. #, no-wrap
  18122. msgid "generic-html"
  18123. msgstr ""
  18124. #. type: table
  18125. #: guix-git/doc/guix.texi:11950
  18126. msgid "a generic updater that crawls the HTML page where the source tarball of the package is hosted, when applicable."
  18127. msgstr ""
  18128. #. type: item
  18129. #: guix-git/doc/guix.texi:11951
  18130. #, no-wrap
  18131. msgid "generic-git"
  18132. msgstr ""
  18133. #. type: table
  18134. #: guix-git/doc/guix.texi:11956
  18135. 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."
  18136. msgstr ""
  18137. #. type: item
  18138. #: guix-git/doc/guix.texi:11958
  18139. #, no-wrap
  18140. msgid "@code{release-tag-prefix}: a regular expression for matching a prefix of"
  18141. msgstr ""
  18142. #. type: itemize
  18143. #: guix-git/doc/guix.texi:11960 guix-git/doc/guix.texi:11963
  18144. #, fuzzy
  18145. msgid "the tag name."
  18146. msgstr "仓库monad"
  18147. #. type: item
  18148. #: guix-git/doc/guix.texi:11961
  18149. #, no-wrap
  18150. msgid "@code{release-tag-suffix}: a regular expression for matching a suffix of"
  18151. msgstr ""
  18152. #. type: item
  18153. #: guix-git/doc/guix.texi:11964
  18154. #, no-wrap
  18155. msgid "@code{release-tag-version-delimiter}: a string used as the delimiter in"
  18156. msgstr ""
  18157. #. type: itemize
  18158. #: guix-git/doc/guix.texi:11966
  18159. msgid "the tag name for separating the numbers of the version."
  18160. msgstr ""
  18161. #. type: item
  18162. #: guix-git/doc/guix.texi:11967
  18163. #, no-wrap
  18164. msgid "@code{accept-pre-releases}: by default, the updater will ignore"
  18165. msgstr ""
  18166. #. type: itemize
  18167. #: guix-git/doc/guix.texi:11970
  18168. msgid "pre-releases; to make it also look for pre-releases, set the this property to @code{#t}."
  18169. msgstr ""
  18170. #. type: lisp
  18171. #: guix-git/doc/guix.texi:11981
  18172. #, no-wrap
  18173. msgid ""
  18174. "(package\n"
  18175. " (name \"foo\")\n"
  18176. " ;; ...\n"
  18177. " (properties\n"
  18178. " '((release-tag-prefix . \"^release0-\")\n"
  18179. " (release-tag-suffix . \"[a-z]?$\")\n"
  18180. " (release-tag-version-delimiter . \":\"))))\n"
  18181. msgstr ""
  18182. #. type: table
  18183. #: guix-git/doc/guix.texi:11988
  18184. 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:"
  18185. msgstr ""
  18186. #. type: example
  18187. #: guix-git/doc/guix.texi:11993
  18188. #, no-wrap
  18189. msgid ""
  18190. "$ guix refresh --type=elpa,cran\n"
  18191. "gnu/packages/statistics.scm:819:13: r-testthat would be upgraded from 0.10.0 to 0.11.0\n"
  18192. "gnu/packages/emacs.scm:856:13: emacs-auctex would be upgraded from 11.88.6 to 11.88.9\n"
  18193. msgstr ""
  18194. #. type: item
  18195. #: guix-git/doc/guix.texi:11995
  18196. #, no-wrap
  18197. msgid "--list-updaters"
  18198. msgstr ""
  18199. #. type: itemx
  18200. #: guix-git/doc/guix.texi:11996
  18201. #, no-wrap
  18202. msgid "-L"
  18203. msgstr ""
  18204. #. type: table
  18205. #: guix-git/doc/guix.texi:11998
  18206. msgid "List available updaters and exit (see @option{--type} above)."
  18207. msgstr ""
  18208. #. type: table
  18209. #: guix-git/doc/guix.texi:12001
  18210. msgid "For each updater, display the fraction of packages it covers; at the end, display the fraction of packages covered by all these updaters."
  18211. msgstr ""
  18212. #. type: Plain text
  18213. #: guix-git/doc/guix.texi:12005
  18214. msgid "In addition, @command{guix refresh} can be passed one or more package names, as in this example:"
  18215. msgstr ""
  18216. #. type: example
  18217. #: guix-git/doc/guix.texi:12008
  18218. #, no-wrap
  18219. msgid "$ ./pre-inst-env guix refresh -u emacs idutils gcc@@4.8\n"
  18220. msgstr ""
  18221. #. type: Plain text
  18222. #: guix-git/doc/guix.texi:12015
  18223. 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:"
  18224. msgstr ""
  18225. #. type: example
  18226. #: guix-git/doc/guix.texi:12019
  18227. #, no-wrap
  18228. msgid ""
  18229. "$ ./pre-inst-env guix refresh -u \\\n"
  18230. " $(guix package --list-installed | cut -f1)\n"
  18231. msgstr ""
  18232. #. type: Plain text
  18233. #: guix-git/doc/guix.texi:12025
  18234. 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:"
  18235. msgstr ""
  18236. #. type: item
  18237. #: guix-git/doc/guix.texi:12028
  18238. #, no-wrap
  18239. msgid "--list-dependent"
  18240. msgstr ""
  18241. #. type: itemx
  18242. #: guix-git/doc/guix.texi:12029 guix-git/doc/guix.texi:12288
  18243. #, no-wrap
  18244. msgid "-l"
  18245. msgstr ""
  18246. #. type: table
  18247. #: guix-git/doc/guix.texi:12032
  18248. msgid "List top-level dependent packages that would need to be rebuilt as a result of upgrading one or more packages."
  18249. msgstr ""
  18250. #. type: table
  18251. #: guix-git/doc/guix.texi:12036
  18252. 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."
  18253. msgstr ""
  18254. #. type: Plain text
  18255. #: guix-git/doc/guix.texi:12042
  18256. 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."
  18257. msgstr ""
  18258. #. type: example
  18259. #: guix-git/doc/guix.texi:12047
  18260. #, no-wrap
  18261. msgid ""
  18262. "$ guix refresh --list-dependent flex\n"
  18263. "Building the following 120 packages would ensure 213 dependent packages are rebuilt:\n"
  18264. "hop@@2.4.0 emacs-geiser@@0.13 notmuch@@0.18 mu@@0.9.9.5 cflow@@1.4 idutils@@4.6 @dots{}\n"
  18265. msgstr ""
  18266. #. type: Plain text
  18267. #: guix-git/doc/guix.texi:12051
  18268. msgid "The command above lists a set of packages that could be built to check for compatibility with an upgraded @code{flex} package."
  18269. msgstr ""
  18270. #. type: item
  18271. #: guix-git/doc/guix.texi:12054
  18272. #, no-wrap
  18273. msgid "--list-transitive"
  18274. msgstr ""
  18275. #. type: table
  18276. #: guix-git/doc/guix.texi:12056
  18277. msgid "List all the packages which one or more packages depend upon."
  18278. msgstr ""
  18279. #. type: example
  18280. #: guix-git/doc/guix.texi:12061
  18281. #, no-wrap
  18282. msgid ""
  18283. "$ guix refresh --list-transitive flex\n"
  18284. "flex@@2.6.4 depends on the following 25 packages: perl@@5.28.0 help2man@@1.47.6\n"
  18285. "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"
  18286. msgstr ""
  18287. #. type: Plain text
  18288. #: guix-git/doc/guix.texi:12067
  18289. msgid "The command above lists a set of packages which, when changed, would cause @code{flex} to be rebuilt."
  18290. msgstr ""
  18291. #. type: Plain text
  18292. #: guix-git/doc/guix.texi:12069
  18293. msgid "The following options can be used to customize GnuPG operation:"
  18294. msgstr ""
  18295. #. type: item
  18296. #: guix-git/doc/guix.texi:12072
  18297. #, no-wrap
  18298. msgid "--gpg=@var{command}"
  18299. msgstr ""
  18300. #. type: table
  18301. #: guix-git/doc/guix.texi:12075
  18302. msgid "Use @var{command} as the GnuPG 2.x command. @var{command} is searched for in @code{$PATH}."
  18303. msgstr ""
  18304. #. type: item
  18305. #: guix-git/doc/guix.texi:12076
  18306. #, no-wrap
  18307. msgid "--keyring=@var{file}"
  18308. msgstr ""
  18309. #. type: table
  18310. #: guix-git/doc/guix.texi:12082
  18311. 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)."
  18312. msgstr ""
  18313. #. type: table
  18314. #: guix-git/doc/guix.texi:12088
  18315. 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)."
  18316. msgstr ""
  18317. #. type: table
  18318. #: guix-git/doc/guix.texi:12091
  18319. msgid "You can export keys from your default GPG keyring into a keybox file using commands like this one:"
  18320. msgstr ""
  18321. #. type: example
  18322. #: guix-git/doc/guix.texi:12094
  18323. #, no-wrap
  18324. msgid "gpg --export rms@@gnu.org | kbxutil --import-openpgp >> mykeyring.kbx\n"
  18325. msgstr ""
  18326. #. type: table
  18327. #: guix-git/doc/guix.texi:12097
  18328. msgid "Likewise, you can fetch keys to a specific keybox file like this:"
  18329. msgstr ""
  18330. #. type: example
  18331. #: guix-git/doc/guix.texi:12101
  18332. #, no-wrap
  18333. msgid ""
  18334. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  18335. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  18336. msgstr ""
  18337. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  18338. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  18339. #. type: table
  18340. #: guix-git/doc/guix.texi:12105
  18341. msgid "@xref{GPG Configuration Options, @option{--keyring},, gnupg, Using the GNU Privacy Guard}, for more information on GPG's @option{--keyring} option."
  18342. msgstr ""
  18343. #. type: table
  18344. #: guix-git/doc/guix.texi:12109
  18345. msgid "Handle missing OpenPGP keys according to @var{policy}, which may be one of:"
  18346. msgstr ""
  18347. #. type: item
  18348. #: guix-git/doc/guix.texi:12111 guix-git/doc/guix.texi:21198
  18349. #, no-wrap
  18350. msgid "always"
  18351. msgstr ""
  18352. #. type: table
  18353. #: guix-git/doc/guix.texi:12114
  18354. msgid "Always download missing OpenPGP keys from the key server, and add them to the user's GnuPG keyring."
  18355. msgstr ""
  18356. #. type: item
  18357. #: guix-git/doc/guix.texi:12115 guix-git/doc/guix.texi:21200
  18358. #, no-wrap
  18359. msgid "never"
  18360. msgstr ""
  18361. #. type: table
  18362. #: guix-git/doc/guix.texi:12117
  18363. msgid "Never try to download missing OpenPGP keys. Instead just bail out."
  18364. msgstr ""
  18365. #. type: item
  18366. #: guix-git/doc/guix.texi:12118
  18367. #, no-wrap
  18368. msgid "interactive"
  18369. msgstr ""
  18370. #. type: table
  18371. #: guix-git/doc/guix.texi:12121
  18372. 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."
  18373. msgstr ""
  18374. #. type: item
  18375. #: guix-git/doc/guix.texi:12123
  18376. #, no-wrap
  18377. msgid "--key-server=@var{host}"
  18378. msgstr ""
  18379. #. type: table
  18380. #: guix-git/doc/guix.texi:12125
  18381. msgid "Use @var{host} as the OpenPGP key server when importing a public key."
  18382. msgstr ""
  18383. #. type: Plain text
  18384. #: guix-git/doc/guix.texi:12145
  18385. 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."
  18386. msgstr ""
  18387. #. type: section
  18388. #: guix-git/doc/guix.texi:12148
  18389. #, no-wrap
  18390. msgid "Invoking @command{guix lint}"
  18391. msgstr ""
  18392. #. type: command{#1}
  18393. #: guix-git/doc/guix.texi:12150
  18394. #, no-wrap
  18395. msgid "guix lint"
  18396. msgstr ""
  18397. #. type: cindex
  18398. #: guix-git/doc/guix.texi:12151
  18399. #, no-wrap
  18400. msgid "package, checking for errors"
  18401. msgstr ""
  18402. #. type: Plain text
  18403. #: guix-git/doc/guix.texi:12157
  18404. 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):"
  18405. msgstr ""
  18406. #. type: table
  18407. #: guix-git/doc/guix.texi:12163
  18408. msgid "Validate certain typographical and stylistic rules about package descriptions and synopses."
  18409. msgstr ""
  18410. #. type: item
  18411. #: guix-git/doc/guix.texi:12164
  18412. #, no-wrap
  18413. msgid "inputs-should-be-native"
  18414. msgstr ""
  18415. #. type: table
  18416. #: guix-git/doc/guix.texi:12166
  18417. msgid "Identify inputs that should most likely be native inputs."
  18418. msgstr ""
  18419. #. type: itemx
  18420. #: guix-git/doc/guix.texi:12169
  18421. #, no-wrap
  18422. msgid "mirror-url"
  18423. msgstr ""
  18424. #. type: itemx
  18425. #: guix-git/doc/guix.texi:12170
  18426. #, no-wrap
  18427. msgid "github-url"
  18428. msgstr ""
  18429. #. type: itemx
  18430. #: guix-git/doc/guix.texi:12171
  18431. #, no-wrap
  18432. msgid "source-file-name"
  18433. msgstr ""
  18434. #. type: table
  18435. #: guix-git/doc/guix.texi:12178
  18436. 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})."
  18437. msgstr ""
  18438. #. type: item
  18439. #: guix-git/doc/guix.texi:12179
  18440. #, no-wrap
  18441. msgid "source-unstable-tarball"
  18442. msgstr ""
  18443. #. type: table
  18444. #: guix-git/doc/guix.texi:12183
  18445. 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."
  18446. msgstr ""
  18447. #. type: table
  18448. #: guix-git/doc/guix.texi:12187
  18449. msgid "Check that the derivation of the given packages can be successfully computed for all the supported systems (@pxref{Derivations})."
  18450. msgstr ""
  18451. #. type: item
  18452. #: guix-git/doc/guix.texi:12188
  18453. #, no-wrap
  18454. msgid "profile-collisions"
  18455. msgstr ""
  18456. #. type: table
  18457. #: guix-git/doc/guix.texi:12194
  18458. 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."
  18459. msgstr ""
  18460. #. type: item
  18461. #: guix-git/doc/guix.texi:12195
  18462. #, no-wrap
  18463. msgid "archival"
  18464. msgstr ""
  18465. #. type: cindex
  18466. #: guix-git/doc/guix.texi:12196
  18467. #, no-wrap
  18468. msgid "Software Heritage, source code archive"
  18469. msgstr ""
  18470. #. type: cindex
  18471. #: guix-git/doc/guix.texi:12197
  18472. #, no-wrap
  18473. msgid "archival of source code, Software Heritage"
  18474. msgstr ""
  18475. #. type: table
  18476. #: guix-git/doc/guix.texi:12200
  18477. msgid "Checks whether the package's source code is archived at @uref{https://www.softwareheritage.org, Software Heritage}."
  18478. msgstr ""
  18479. #. type: table
  18480. #: guix-git/doc/guix.texi:12208
  18481. 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}."
  18482. msgstr ""
  18483. #. type: table
  18484. #: guix-git/doc/guix.texi:12213
  18485. 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."
  18486. msgstr ""
  18487. #. type: table
  18488. #: guix-git/doc/guix.texi:12219
  18489. 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."
  18490. msgstr ""
  18491. #. type: item
  18492. #: guix-git/doc/guix.texi:12220
  18493. #, no-wrap
  18494. msgid "cve"
  18495. msgstr ""
  18496. #. type: cindex
  18497. #: guix-git/doc/guix.texi:12221 guix-git/doc/guix.texi:36317
  18498. #, no-wrap
  18499. msgid "security vulnerabilities"
  18500. msgstr ""
  18501. #. type: cindex
  18502. #: guix-git/doc/guix.texi:12222
  18503. #, no-wrap
  18504. msgid "CVE, Common Vulnerabilities and Exposures"
  18505. msgstr ""
  18506. #. type: table
  18507. #: guix-git/doc/guix.texi:12227
  18508. 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}."
  18509. msgstr ""
  18510. #. type: table
  18511. #: guix-git/doc/guix.texi:12229
  18512. msgid "To view information about a particular vulnerability, visit pages such as:"
  18513. msgstr ""
  18514. #. type: indicateurl{#1}
  18515. #: guix-git/doc/guix.texi:12233
  18516. msgid "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-YYYY-ABCD"
  18517. msgstr ""
  18518. #. type: indicateurl{#1}
  18519. #: guix-git/doc/guix.texi:12235
  18520. msgid "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-YYYY-ABCD"
  18521. msgstr ""
  18522. #. type: table
  18523. #: guix-git/doc/guix.texi:12240
  18524. msgid "where @code{CVE-YYYY-ABCD} is the CVE identifier---e.g., @code{CVE-2015-7554}."
  18525. msgstr ""
  18526. #. type: table
  18527. #: guix-git/doc/guix.texi:12245
  18528. 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:"
  18529. msgstr ""
  18530. #. type: lisp
  18531. #: guix-git/doc/guix.texi:12253
  18532. #, no-wrap
  18533. msgid ""
  18534. "(package\n"
  18535. " (name \"grub\")\n"
  18536. " ;; @dots{}\n"
  18537. " ;; CPE calls this package \"grub2\".\n"
  18538. " (properties '((cpe-name . \"grub2\")\n"
  18539. " (cpe-version . \"2.3\"))))\n"
  18540. msgstr ""
  18541. #. type: table
  18542. #: guix-git/doc/guix.texi:12260
  18543. 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:"
  18544. msgstr ""
  18545. #. type: lisp
  18546. #: guix-git/doc/guix.texi:12270
  18547. #, no-wrap
  18548. msgid ""
  18549. "(package\n"
  18550. " (name \"t1lib\")\n"
  18551. " ;; @dots{}\n"
  18552. " ;; These CVEs no longer apply and can be safely ignored.\n"
  18553. " (properties `((lint-hidden-cve . (\"CVE-2011-0433\"\n"
  18554. " \"CVE-2011-1553\"\n"
  18555. " \"CVE-2011-1554\"\n"
  18556. " \"CVE-2011-5244\")))))\n"
  18557. msgstr ""
  18558. #. type: item
  18559. #: guix-git/doc/guix.texi:12272
  18560. #, no-wrap
  18561. msgid "formatting"
  18562. msgstr ""
  18563. #. type: table
  18564. #: guix-git/doc/guix.texi:12275
  18565. msgid "Warn about obvious source code formatting issues: trailing white space, use of tabulations, etc."
  18566. msgstr ""
  18567. #. type: example
  18568. #: guix-git/doc/guix.texi:12281
  18569. #, no-wrap
  18570. msgid "guix lint @var{options} @var{package}@dots{}\n"
  18571. msgstr ""
  18572. #. type: Plain text
  18573. #: guix-git/doc/guix.texi:12285
  18574. 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:"
  18575. msgstr ""
  18576. #. type: item
  18577. #: guix-git/doc/guix.texi:12287
  18578. #, no-wrap
  18579. msgid "--list-checkers"
  18580. msgstr ""
  18581. #. type: table
  18582. #: guix-git/doc/guix.texi:12291
  18583. msgid "List and describe all the available checkers that will be run on packages and exit."
  18584. msgstr ""
  18585. #. type: item
  18586. #: guix-git/doc/guix.texi:12292
  18587. #, no-wrap
  18588. msgid "--checkers"
  18589. msgstr ""
  18590. #. type: itemx
  18591. #: guix-git/doc/guix.texi:12293
  18592. #, no-wrap
  18593. msgid "-c"
  18594. msgstr ""
  18595. #. type: table
  18596. #: guix-git/doc/guix.texi:12296
  18597. msgid "Only enable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  18598. msgstr ""
  18599. #. type: item
  18600. #: guix-git/doc/guix.texi:12297
  18601. #, no-wrap
  18602. msgid "--exclude"
  18603. msgstr ""
  18604. #. type: table
  18605. #: guix-git/doc/guix.texi:12301
  18606. msgid "Only disable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  18607. msgstr ""
  18608. #. type: item
  18609. #: guix-git/doc/guix.texi:12302
  18610. #, no-wrap
  18611. msgid "--no-network"
  18612. msgstr ""
  18613. #. type: table
  18614. #: guix-git/doc/guix.texi:12305
  18615. msgid "Only enable the checkers that do not depend on Internet access."
  18616. msgstr ""
  18617. #. type: section
  18618. #: guix-git/doc/guix.texi:12317
  18619. #, no-wrap
  18620. msgid "Invoking @command{guix size}"
  18621. msgstr ""
  18622. #. type: code{#1}
  18623. #: guix-git/doc/guix.texi:12319 guix-git/doc/guix.texi:34490
  18624. #, no-wrap
  18625. msgid "size"
  18626. msgstr ""
  18627. #. type: cindex
  18628. #: guix-git/doc/guix.texi:12320
  18629. #, no-wrap
  18630. msgid "package size"
  18631. msgstr ""
  18632. #. type: command{#1}
  18633. #: guix-git/doc/guix.texi:12322
  18634. #, no-wrap
  18635. msgid "guix size"
  18636. msgstr ""
  18637. #. type: Plain text
  18638. #: guix-git/doc/guix.texi:12329
  18639. 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."
  18640. msgstr ""
  18641. #. type: Plain text
  18642. #: guix-git/doc/guix.texi:12334
  18643. 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:"
  18644. msgstr ""
  18645. #. type: example
  18646. #: guix-git/doc/guix.texi:12347
  18647. #, no-wrap
  18648. msgid ""
  18649. "$ guix size coreutils\n"
  18650. "store item total self\n"
  18651. "/gnu/store/@dots{}-gcc-5.5.0-lib 60.4 30.1 38.1%\n"
  18652. "/gnu/store/@dots{}-glibc-2.27 30.3 28.8 36.6%\n"
  18653. "/gnu/store/@dots{}-coreutils-8.28 78.9 15.0 19.0%\n"
  18654. "/gnu/store/@dots{}-gmp-6.1.2 63.1 2.7 3.4%\n"
  18655. "/gnu/store/@dots{}-bash-static-4.4.12 1.5 1.5 1.9%\n"
  18656. "/gnu/store/@dots{}-acl-2.2.52 61.1 0.4 0.5%\n"
  18657. "/gnu/store/@dots{}-attr-2.4.47 60.6 0.2 0.3%\n"
  18658. "/gnu/store/@dots{}-libcap-2.25 60.5 0.2 0.2%\n"
  18659. "total: 78.9 MiB\n"
  18660. msgstr ""
  18661. #. type: Plain text
  18662. #: guix-git/doc/guix.texi:12353
  18663. 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:"
  18664. msgstr ""
  18665. #. type: example
  18666. #: guix-git/doc/guix.texi:12356
  18667. #, no-wrap
  18668. msgid "$ guix gc -R /gnu/store/@dots{}-coreutils-8.23\n"
  18669. msgstr ""
  18670. #. type: Plain text
  18671. #: guix-git/doc/guix.texi:12364
  18672. 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."
  18673. msgstr ""
  18674. #. type: Plain text
  18675. #: guix-git/doc/guix.texi:12370
  18676. 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.)"
  18677. msgstr ""
  18678. #. type: Plain text
  18679. #: guix-git/doc/guix.texi:12373
  18680. msgid "Since the command also accepts store file names, assessing the size of a build result is straightforward:"
  18681. msgstr ""
  18682. #. type: example
  18683. #: guix-git/doc/guix.texi:12376
  18684. #, no-wrap
  18685. msgid "guix size $(guix system build config.scm)\n"
  18686. msgstr ""
  18687. #. type: Plain text
  18688. #: guix-git/doc/guix.texi:12386
  18689. 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})."
  18690. msgstr ""
  18691. #. type: Plain text
  18692. #: guix-git/doc/guix.texi:12391
  18693. 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."
  18694. msgstr ""
  18695. #. type: Plain text
  18696. #: guix-git/doc/guix.texi:12393
  18697. msgid "You can also specify several package names:"
  18698. msgstr ""
  18699. #. type: example
  18700. #: guix-git/doc/guix.texi:12403
  18701. #, no-wrap
  18702. msgid ""
  18703. "$ guix size coreutils grep sed bash\n"
  18704. "store item total self\n"
  18705. "/gnu/store/@dots{}-coreutils-8.24 77.8 13.8 13.4%\n"
  18706. "/gnu/store/@dots{}-grep-2.22 73.1 0.8 0.8%\n"
  18707. "/gnu/store/@dots{}-bash-4.3.42 72.3 4.7 4.6%\n"
  18708. "/gnu/store/@dots{}-readline-6.3 67.6 1.2 1.2%\n"
  18709. "@dots{}\n"
  18710. "total: 102.3 MiB\n"
  18711. msgstr ""
  18712. #. type: Plain text
  18713. #: guix-git/doc/guix.texi:12409
  18714. 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."
  18715. msgstr ""
  18716. #. type: Plain text
  18717. #: guix-git/doc/guix.texi:12415
  18718. 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})."
  18719. msgstr ""
  18720. #. type: Plain text
  18721. #: guix-git/doc/guix.texi:12417
  18722. msgid "The available options are:"
  18723. msgstr ""
  18724. #. type: table
  18725. #: guix-git/doc/guix.texi:12423
  18726. msgid "Use substitute information from @var{urls}. @xref{client-substitute-urls, the same option for @code{guix build}}."
  18727. msgstr ""
  18728. #. type: item
  18729. #: guix-git/doc/guix.texi:12424
  18730. #, no-wrap
  18731. msgid "--sort=@var{key}"
  18732. msgstr ""
  18733. #. type: table
  18734. #: guix-git/doc/guix.texi:12426
  18735. msgid "Sort lines according to @var{key}, one of the following options:"
  18736. msgstr ""
  18737. #. type: item
  18738. #: guix-git/doc/guix.texi:12428
  18739. #, no-wrap
  18740. msgid "self"
  18741. msgstr ""
  18742. #. type: table
  18743. #: guix-git/doc/guix.texi:12430
  18744. msgid "the size of each item (the default);"
  18745. msgstr ""
  18746. #. type: table
  18747. #: guix-git/doc/guix.texi:12432
  18748. msgid "the total size of the item's closure."
  18749. msgstr ""
  18750. #. type: item
  18751. #: guix-git/doc/guix.texi:12434
  18752. #, no-wrap
  18753. msgid "--map-file=@var{file}"
  18754. msgstr ""
  18755. #. type: table
  18756. #: guix-git/doc/guix.texi:12436
  18757. msgid "Write a graphical map of disk usage in PNG format to @var{file}."
  18758. msgstr ""
  18759. #. type: table
  18760. #: guix-git/doc/guix.texi:12438
  18761. msgid "For the example above, the map looks like this:"
  18762. msgstr ""
  18763. #. type: table
  18764. #: guix-git/doc/guix.texi:12441
  18765. msgid "@image{images/coreutils-size-map,5in,, map of Coreutils disk usage produced by @command{guix size}}"
  18766. msgstr ""
  18767. #. type: table
  18768. #: guix-git/doc/guix.texi:12446
  18769. 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."
  18770. msgstr ""
  18771. #. type: table
  18772. #: guix-git/doc/guix.texi:12450
  18773. msgid "Consider packages for @var{system}---e.g., @code{x86_64-linux}."
  18774. msgstr ""
  18775. #. type: section
  18776. #: guix-git/doc/guix.texi:12461
  18777. #, no-wrap
  18778. msgid "Invoking @command{guix graph}"
  18779. msgstr ""
  18780. #. type: cindex
  18781. #: guix-git/doc/guix.texi:12463
  18782. #, no-wrap
  18783. msgid "DAG"
  18784. msgstr ""
  18785. #. type: command{#1}
  18786. #: guix-git/doc/guix.texi:12464
  18787. #, no-wrap
  18788. msgid "guix graph"
  18789. msgstr ""
  18790. #. type: Plain text
  18791. #: guix-git/doc/guix.texi:12479
  18792. 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:"
  18793. msgstr ""
  18794. #. type: example
  18795. #: guix-git/doc/guix.texi:12482
  18796. #, no-wrap
  18797. msgid "guix graph @var{options} @var{package}@dots{}\n"
  18798. msgstr ""
  18799. #. type: Plain text
  18800. #: guix-git/doc/guix.texi:12487
  18801. 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:"
  18802. msgstr ""
  18803. #. type: example
  18804. #: guix-git/doc/guix.texi:12490
  18805. #, no-wrap
  18806. msgid "guix graph coreutils | dot -Tpdf > dag.pdf\n"
  18807. msgstr ""
  18808. #. type: Plain text
  18809. #: guix-git/doc/guix.texi:12493
  18810. msgid "The output looks like this:"
  18811. msgstr ""
  18812. #. type: Plain text
  18813. #: guix-git/doc/guix.texi:12495
  18814. msgid "@image{images/coreutils-graph,2in,,Dependency graph of the GNU Coreutils}"
  18815. msgstr ""
  18816. #. type: Plain text
  18817. #: guix-git/doc/guix.texi:12497
  18818. msgid "Nice little graph, no?"
  18819. msgstr ""
  18820. #. type: Plain text
  18821. #: guix-git/doc/guix.texi:12500
  18822. msgid "You may find it more pleasant to navigate the graph interactively with @command{xdot} (from the @code{xdot} package):"
  18823. msgstr ""
  18824. #. type: example
  18825. #: guix-git/doc/guix.texi:12503
  18826. #, no-wrap
  18827. msgid "guix graph coreutils | xdot -\n"
  18828. msgstr ""
  18829. #. type: Plain text
  18830. #: guix-git/doc/guix.texi:12510
  18831. 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:"
  18832. msgstr ""
  18833. #. type: table
  18834. #: guix-git/doc/guix.texi:12516
  18835. 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."
  18836. msgstr ""
  18837. #. type: item
  18838. #: guix-git/doc/guix.texi:12517
  18839. #, no-wrap
  18840. msgid "reverse-package"
  18841. msgstr ""
  18842. #. type: table
  18843. #: guix-git/doc/guix.texi:12519
  18844. msgid "This shows the @emph{reverse} DAG of packages. For example:"
  18845. msgstr ""
  18846. #. type: example
  18847. #: guix-git/doc/guix.texi:12522
  18848. #, no-wrap
  18849. msgid "guix graph --type=reverse-package ocaml\n"
  18850. msgstr ""
  18851. #. type: table
  18852. #: guix-git/doc/guix.texi:12527
  18853. 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)."
  18854. msgstr ""
  18855. #. type: table
  18856. #: guix-git/doc/guix.texi:12532
  18857. 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}})."
  18858. msgstr ""
  18859. #. type: item
  18860. #: guix-git/doc/guix.texi:12533
  18861. #, no-wrap
  18862. msgid "bag-emerged"
  18863. msgstr ""
  18864. #. type: table
  18865. #: guix-git/doc/guix.texi:12535
  18866. msgid "This is the package DAG, @emph{including} implicit inputs."
  18867. msgstr ""
  18868. #. type: table
  18869. #: guix-git/doc/guix.texi:12537
  18870. msgid "For instance, the following command:"
  18871. msgstr ""
  18872. #. type: example
  18873. #: guix-git/doc/guix.texi:12540
  18874. #, no-wrap
  18875. msgid "guix graph --type=bag-emerged coreutils\n"
  18876. msgstr ""
  18877. #. type: table
  18878. #: guix-git/doc/guix.texi:12543
  18879. msgid "...@: yields this bigger graph:"
  18880. msgstr ""
  18881. #. type: table
  18882. #: guix-git/doc/guix.texi:12545
  18883. msgid "@image{images/coreutils-bag-graph,,5in,Detailed dependency graph of the GNU Coreutils}"
  18884. msgstr ""
  18885. #. type: table
  18886. #: guix-git/doc/guix.texi:12548
  18887. 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}})."
  18888. msgstr ""
  18889. #. type: table
  18890. #: guix-git/doc/guix.texi:12552
  18891. msgid "Now, note that the dependencies of these implicit inputs---that is, the @dfn{bootstrap dependencies} (@pxref{Bootstrapping})---are not shown here, for conciseness."
  18892. msgstr ""
  18893. #. type: item
  18894. #: guix-git/doc/guix.texi:12553
  18895. #, no-wrap
  18896. msgid "bag"
  18897. msgstr ""
  18898. #. type: table
  18899. #: guix-git/doc/guix.texi:12556
  18900. msgid "Similar to @code{bag-emerged}, but this time including all the bootstrap dependencies."
  18901. msgstr ""
  18902. #. type: item
  18903. #: guix-git/doc/guix.texi:12557
  18904. #, no-wrap
  18905. msgid "bag-with-origins"
  18906. msgstr ""
  18907. #. type: table
  18908. #: guix-git/doc/guix.texi:12559
  18909. msgid "Similar to @code{bag}, but also showing origins and their dependencies."
  18910. msgstr ""
  18911. #. type: item
  18912. #: guix-git/doc/guix.texi:12560
  18913. #, no-wrap
  18914. msgid "reverse-bag"
  18915. msgstr ""
  18916. #. type: table
  18917. #: guix-git/doc/guix.texi:12563
  18918. msgid "This shows the @emph{reverse} DAG of packages. Unlike @code{reverse-package}, it also takes implicit dependencies into account. For example:"
  18919. msgstr ""
  18920. #. type: example
  18921. #: guix-git/doc/guix.texi:12566
  18922. #, no-wrap
  18923. msgid "guix graph -t reverse-bag dune\n"
  18924. msgstr ""
  18925. #. type: table
  18926. #: guix-git/doc/guix.texi:12573
  18927. 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."
  18928. msgstr ""
  18929. #. type: table
  18930. #: guix-git/doc/guix.texi:12579
  18931. 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."
  18932. msgstr ""
  18933. #. type: table
  18934. #: guix-git/doc/guix.texi:12582
  18935. msgid "For this type of graph, it is also possible to pass a @file{.drv} file name instead of a package name, as in:"
  18936. msgstr ""
  18937. #. type: example
  18938. #: guix-git/doc/guix.texi:12585
  18939. #, no-wrap
  18940. msgid "guix graph -t derivation $(guix system build -d my-config.scm)\n"
  18941. msgstr ""
  18942. #. type: item
  18943. #: guix-git/doc/guix.texi:12587
  18944. #, no-wrap
  18945. msgid "module"
  18946. msgstr "模块"
  18947. #. type: table
  18948. #: guix-git/doc/guix.texi:12591
  18949. 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:"
  18950. msgstr ""
  18951. #. type: example
  18952. #: guix-git/doc/guix.texi:12594
  18953. #, no-wrap
  18954. msgid "guix graph -t module guile | xdot -\n"
  18955. msgstr ""
  18956. #. type: Plain text
  18957. #: guix-git/doc/guix.texi:12599
  18958. msgid "All the types above correspond to @emph{build-time dependencies}. The following graph type represents the @emph{run-time dependencies}:"
  18959. msgstr ""
  18960. #. type: table
  18961. #: guix-git/doc/guix.texi:12604
  18962. msgid "This is the graph of @dfn{references} of a package output, as returned by @command{guix gc --references} (@pxref{Invoking guix gc})."
  18963. msgstr ""
  18964. #. type: table
  18965. #: guix-git/doc/guix.texi:12607
  18966. msgid "If the given package output is not available in the store, @command{guix graph} attempts to obtain dependency information from substitutes."
  18967. msgstr ""
  18968. #. type: table
  18969. #: guix-git/doc/guix.texi:12611
  18970. 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!):"
  18971. msgstr ""
  18972. #. type: example
  18973. #: guix-git/doc/guix.texi:12614
  18974. #, no-wrap
  18975. msgid "guix graph -t references $(readlink -f ~/.guix-profile)\n"
  18976. msgstr ""
  18977. #. type: item
  18978. #: guix-git/doc/guix.texi:12616
  18979. #, no-wrap
  18980. msgid "referrers"
  18981. msgstr ""
  18982. #. type: table
  18983. #: guix-git/doc/guix.texi:12619
  18984. msgid "This is the graph of the @dfn{referrers} of a store item, as returned by @command{guix gc --referrers} (@pxref{Invoking guix gc})."
  18985. msgstr ""
  18986. #. type: table
  18987. #: guix-git/doc/guix.texi:12625
  18988. 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."
  18989. msgstr ""
  18990. #. type: table
  18991. #: guix-git/doc/guix.texi:12628
  18992. msgid "It can help determine what is preventing a store item from being garbage collected."
  18993. msgstr ""
  18994. #. type: cindex
  18995. #: guix-git/doc/guix.texi:12631
  18996. #, fuzzy, no-wrap
  18997. msgid "shortest path, between packages"
  18998. msgstr "超过1200个受影响的软件包"
  18999. #. type: Plain text
  19000. #: guix-git/doc/guix.texi:12638
  19001. 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.):"
  19002. msgstr ""
  19003. #. type: example
  19004. #: guix-git/doc/guix.texi:12652
  19005. #, no-wrap
  19006. msgid ""
  19007. "$ guix graph --path emacs libunistring\n"
  19008. "emacs@@26.3\n"
  19009. "mailutils@@3.9\n"
  19010. "libunistring@@0.9.10\n"
  19011. "$ guix graph --path -t derivation emacs libunistring\n"
  19012. "/gnu/store/@dots{}-emacs-26.3.drv\n"
  19013. "/gnu/store/@dots{}-mailutils-3.9.drv\n"
  19014. "/gnu/store/@dots{}-libunistring-0.9.10.drv\n"
  19015. "$ guix graph --path -t references emacs libunistring\n"
  19016. "/gnu/store/@dots{}-emacs-26.3\n"
  19017. "/gnu/store/@dots{}-libidn2-2.2.0\n"
  19018. "/gnu/store/@dots{}-libunistring-0.9.10\n"
  19019. msgstr ""
  19020. #. type: Plain text
  19021. #: guix-git/doc/guix.texi:12660
  19022. 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:"
  19023. msgstr ""
  19024. #. type: example
  19025. #: guix-git/doc/guix.texi:12663
  19026. #, no-wrap
  19027. msgid "guix graph -M 2 libreoffice | xdot -f fdp -\n"
  19028. msgstr ""
  19029. #. type: Plain text
  19030. #: guix-git/doc/guix.texi:12667
  19031. 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."
  19032. msgstr ""
  19033. #. type: Plain text
  19034. #: guix-git/doc/guix.texi:12669
  19035. msgid "The available options are the following:"
  19036. msgstr ""
  19037. #. type: table
  19038. #: guix-git/doc/guix.texi:12675
  19039. msgid "Produce a graph output of @var{type}, where @var{type} must be one of the values listed above."
  19040. msgstr ""
  19041. #. type: item
  19042. #: guix-git/doc/guix.texi:12676
  19043. #, no-wrap
  19044. msgid "--list-types"
  19045. msgstr ""
  19046. #. type: table
  19047. #: guix-git/doc/guix.texi:12678
  19048. msgid "List the supported graph types."
  19049. msgstr ""
  19050. #. type: item
  19051. #: guix-git/doc/guix.texi:12679
  19052. #, no-wrap
  19053. msgid "--backend=@var{backend}"
  19054. msgstr ""
  19055. #. type: itemx
  19056. #: guix-git/doc/guix.texi:12680
  19057. #, no-wrap
  19058. msgid "-b @var{backend}"
  19059. msgstr ""
  19060. #. type: table
  19061. #: guix-git/doc/guix.texi:12682
  19062. msgid "Produce a graph using the selected @var{backend}."
  19063. msgstr ""
  19064. #. type: item
  19065. #: guix-git/doc/guix.texi:12683
  19066. #, no-wrap
  19067. msgid "--list-backends"
  19068. msgstr ""
  19069. #. type: table
  19070. #: guix-git/doc/guix.texi:12685
  19071. msgid "List the supported graph backends."
  19072. msgstr ""
  19073. #. type: table
  19074. #: guix-git/doc/guix.texi:12687
  19075. msgid "Currently, the available backends are Graphviz and d3.js."
  19076. msgstr ""
  19077. #. type: item
  19078. #: guix-git/doc/guix.texi:12688
  19079. #, no-wrap
  19080. msgid "--path"
  19081. msgstr ""
  19082. #. type: table
  19083. #: guix-git/doc/guix.texi:12693
  19084. 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}:"
  19085. msgstr ""
  19086. #. type: example
  19087. #: guix-git/doc/guix.texi:12700
  19088. #, no-wrap
  19089. msgid ""
  19090. "$ guix graph --path -t references libreoffice llvm\n"
  19091. "/gnu/store/@dots{}-libreoffice-6.4.2.2\n"
  19092. "/gnu/store/@dots{}-libepoxy-1.5.4\n"
  19093. "/gnu/store/@dots{}-mesa-19.3.4\n"
  19094. "/gnu/store/@dots{}-llvm-9.0.1\n"
  19095. msgstr ""
  19096. #. type: example
  19097. #: guix-git/doc/guix.texi:12710
  19098. #, no-wrap
  19099. msgid "guix graph -e '(@@@@ (gnu packages commencement) gnu-make-final)'\n"
  19100. msgstr ""
  19101. #. type: table
  19102. #: guix-git/doc/guix.texi:12715
  19103. msgid "Display the graph for @var{system}---e.g., @code{i686-linux}."
  19104. msgstr ""
  19105. #. type: table
  19106. #: guix-git/doc/guix.texi:12718
  19107. msgid "The package dependency graph is largely architecture-independent, but there are some architecture-dependent bits that this option allows you to visualize."
  19108. msgstr ""
  19109. #. type: Plain text
  19110. #: guix-git/doc/guix.texi:12734
  19111. 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:"
  19112. msgstr ""
  19113. #. type: example
  19114. #: guix-git/doc/guix.texi:12737
  19115. #, no-wrap
  19116. msgid "guix graph git --with-input=openssl=libressl\n"
  19117. msgstr ""
  19118. #. type: Plain text
  19119. #: guix-git/doc/guix.texi:12740
  19120. msgid "So many possibilities, so much fun!"
  19121. msgstr ""
  19122. #. type: section
  19123. #: guix-git/doc/guix.texi:12742
  19124. #, no-wrap
  19125. msgid "Invoking @command{guix publish}"
  19126. msgstr ""
  19127. #. type: command{#1}
  19128. #: guix-git/doc/guix.texi:12744
  19129. #, no-wrap
  19130. msgid "guix publish"
  19131. msgstr ""
  19132. #. type: Plain text
  19133. #: guix-git/doc/guix.texi:12748
  19134. 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})."
  19135. msgstr ""
  19136. #. type: Plain text
  19137. #: guix-git/doc/guix.texi:12754
  19138. 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."
  19139. msgstr ""
  19140. #. type: Plain text
  19141. #: guix-git/doc/guix.texi:12760
  19142. 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."
  19143. msgstr ""
  19144. #. type: Plain text
  19145. #: guix-git/doc/guix.texi:12764
  19146. msgid "The signing key pair must be generated before @command{guix publish} is launched, using @command{guix archive --generate-key} (@pxref{Invoking guix archive})."
  19147. msgstr ""
  19148. #. type: Plain text
  19149. #: guix-git/doc/guix.texi:12769
  19150. 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})."
  19151. msgstr ""
  19152. #. type: example
  19153. #: guix-git/doc/guix.texi:12774
  19154. #, no-wrap
  19155. msgid "guix publish @var{options}@dots{}\n"
  19156. msgstr ""
  19157. #. type: Plain text
  19158. #: guix-git/doc/guix.texi:12778
  19159. msgid "Running @command{guix publish} without any additional arguments will spawn an HTTP server on port 8080:"
  19160. msgstr ""
  19161. #. type: example
  19162. #: guix-git/doc/guix.texi:12781
  19163. #, no-wrap
  19164. msgid "guix publish\n"
  19165. msgstr ""
  19166. #. type: Plain text
  19167. #: guix-git/doc/guix.texi:12785
  19168. msgid "Once a publishing server has been authorized, the daemon may download substitutes from it. @xref{Getting Substitutes from Other Servers}."
  19169. msgstr ""
  19170. #. type: Plain text
  19171. #: guix-git/doc/guix.texi:12793
  19172. 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})."
  19173. msgstr ""
  19174. #. type: Plain text
  19175. #: guix-git/doc/guix.texi:12800
  19176. 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}):"
  19177. msgstr ""
  19178. #. type: example
  19179. #: guix-git/doc/guix.texi:12803
  19180. #, no-wrap
  19181. msgid "http://example.org/file/hello-2.10.tar.gz/sha256/0ssi1@dots{}ndq1i\n"
  19182. msgstr ""
  19183. #. type: Plain text
  19184. #: guix-git/doc/guix.texi:12807
  19185. msgid "Obviously, these URLs only work for files that are in the store; in other cases, they return 404 (``Not Found'')."
  19186. msgstr ""
  19187. #. type: cindex
  19188. #: guix-git/doc/guix.texi:12808
  19189. #, no-wrap
  19190. msgid "build logs, publication"
  19191. msgstr ""
  19192. #. type: Plain text
  19193. #: guix-git/doc/guix.texi:12810
  19194. msgid "Build logs are available from @code{/log} URLs like:"
  19195. msgstr ""
  19196. #. type: example
  19197. #: guix-git/doc/guix.texi:12813
  19198. #, no-wrap
  19199. msgid "http://example.org/log/gwspk@dots{}-guile-2.2.3\n"
  19200. msgstr ""
  19201. #. type: Plain text
  19202. #: guix-git/doc/guix.texi:12823
  19203. 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."
  19204. msgstr ""
  19205. #. type: item
  19206. #: guix-git/doc/guix.texi:12827
  19207. #, no-wrap
  19208. msgid "--port=@var{port}"
  19209. msgstr ""
  19210. #. type: itemx
  19211. #: guix-git/doc/guix.texi:12828
  19212. #, no-wrap
  19213. msgid "-p @var{port}"
  19214. msgstr ""
  19215. #. type: table
  19216. #: guix-git/doc/guix.texi:12830
  19217. msgid "Listen for HTTP requests on @var{port}."
  19218. msgstr ""
  19219. #. type: item
  19220. #: guix-git/doc/guix.texi:12831
  19221. #, no-wrap
  19222. msgid "--listen=@var{host}"
  19223. msgstr ""
  19224. #. type: table
  19225. #: guix-git/doc/guix.texi:12834
  19226. msgid "Listen on the network interface for @var{host}. The default is to accept connections from any interface."
  19227. msgstr ""
  19228. #. type: table
  19229. #: guix-git/doc/guix.texi:12839
  19230. 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."
  19231. msgstr ""
  19232. #. type: item
  19233. #: guix-git/doc/guix.texi:12840
  19234. #, fuzzy, no-wrap
  19235. msgid "--compression[=@var{method}[:@var{level}]]"
  19236. msgstr "--log-compression=@var{type}"
  19237. #. type: itemx
  19238. #: guix-git/doc/guix.texi:12841
  19239. #, no-wrap
  19240. msgid "-C [@var{method}[:@var{level}]]"
  19241. msgstr ""
  19242. #. type: table
  19243. #: guix-git/doc/guix.texi:12845
  19244. 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."
  19245. msgstr ""
  19246. #. type: table
  19247. #: guix-git/doc/guix.texi:12849
  19248. 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."
  19249. msgstr ""
  19250. #. type: table
  19251. #: guix-git/doc/guix.texi:12856
  19252. 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."
  19253. msgstr ""
  19254. #. type: table
  19255. #: guix-git/doc/guix.texi:12860
  19256. 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}."
  19257. msgstr ""
  19258. #. type: table
  19259. #: guix-git/doc/guix.texi:12869
  19260. 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."
  19261. msgstr ""
  19262. #. type: table
  19263. #: guix-git/doc/guix.texi:12874
  19264. 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."
  19265. msgstr ""
  19266. #. type: item
  19267. #: guix-git/doc/guix.texi:12875
  19268. #, no-wrap
  19269. msgid "--cache=@var{directory}"
  19270. msgstr ""
  19271. #. type: itemx
  19272. #: guix-git/doc/guix.texi:12876
  19273. #, no-wrap
  19274. msgid "-c @var{directory}"
  19275. msgstr ""
  19276. #. type: table
  19277. #: guix-git/doc/guix.texi:12879
  19278. msgid "Cache archives and meta-data (@code{.narinfo} URLs) to @var{directory} and only serve archives that are in cache."
  19279. msgstr ""
  19280. #. type: table
  19281. #: guix-git/doc/guix.texi:12887
  19282. 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."
  19283. msgstr ""
  19284. #. type: table
  19285. #: guix-git/doc/guix.texi:12895
  19286. 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."
  19287. msgstr ""
  19288. #. type: table
  19289. #: guix-git/doc/guix.texi:12902
  19290. 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."
  19291. msgstr ""
  19292. #. type: table
  19293. #: guix-git/doc/guix.texi:12906
  19294. 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."
  19295. msgstr ""
  19296. #. type: table
  19297. #: guix-git/doc/guix.texi:12909
  19298. msgid "When @option{--ttl} is used, cached entries are automatically deleted when they have expired."
  19299. msgstr ""
  19300. #. type: item
  19301. #: guix-git/doc/guix.texi:12910
  19302. #, no-wrap
  19303. msgid "--workers=@var{N}"
  19304. msgstr ""
  19305. #. type: table
  19306. #: guix-git/doc/guix.texi:12913
  19307. msgid "When @option{--cache} is used, request the allocation of @var{N} worker threads to ``bake'' archives."
  19308. msgstr ""
  19309. #. type: item
  19310. #: guix-git/doc/guix.texi:12914
  19311. #, no-wrap
  19312. msgid "--ttl=@var{ttl}"
  19313. msgstr ""
  19314. #. type: table
  19315. #: guix-git/doc/guix.texi:12918
  19316. 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."
  19317. msgstr ""
  19318. #. type: table
  19319. #: guix-git/doc/guix.texi:12923
  19320. 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}."
  19321. msgstr ""
  19322. #. type: table
  19323. #: guix-git/doc/guix.texi:12927
  19324. 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."
  19325. msgstr ""
  19326. #. type: item
  19327. #: guix-git/doc/guix.texi:12928
  19328. #, no-wrap
  19329. msgid "--negative-ttl=@var{ttl}"
  19330. msgstr ""
  19331. #. type: table
  19332. #: guix-git/doc/guix.texi:12933
  19333. 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."
  19334. msgstr ""
  19335. #. type: table
  19336. #: guix-git/doc/guix.texi:12937
  19337. 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."
  19338. msgstr ""
  19339. #. type: item
  19340. #: guix-git/doc/guix.texi:12938
  19341. #, no-wrap
  19342. msgid "--cache-bypass-threshold=@var{size}"
  19343. msgstr ""
  19344. #. type: table
  19345. #: guix-git/doc/guix.texi:12943
  19346. 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}."
  19347. msgstr ""
  19348. #. type: table
  19349. #: guix-git/doc/guix.texi:12948
  19350. 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."
  19351. msgstr ""
  19352. #. type: table
  19353. #: guix-git/doc/guix.texi:12952
  19354. 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."
  19355. msgstr ""
  19356. #. type: item
  19357. #: guix-git/doc/guix.texi:12953
  19358. #, no-wrap
  19359. msgid "--nar-path=@var{path}"
  19360. msgstr ""
  19361. #. type: table
  19362. #: guix-git/doc/guix.texi:12956
  19363. msgid "Use @var{path} as the prefix for the URLs of ``nar'' files (@pxref{Invoking guix archive, normalized archives})."
  19364. msgstr ""
  19365. #. type: table
  19366. #: guix-git/doc/guix.texi:12960
  19367. 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}."
  19368. msgstr ""
  19369. #. type: item
  19370. #: guix-git/doc/guix.texi:12961
  19371. #, no-wrap
  19372. msgid "--public-key=@var{file}"
  19373. msgstr ""
  19374. #. type: itemx
  19375. #: guix-git/doc/guix.texi:12962
  19376. #, no-wrap
  19377. msgid "--private-key=@var{file}"
  19378. msgstr ""
  19379. #. type: table
  19380. #: guix-git/doc/guix.texi:12965 guix-git/doc/guix.texi:28081
  19381. #: guix-git/doc/guix.texi:28118
  19382. msgid "Use the specific @var{file}s as the public/private key pair used to sign the store items being published."
  19383. msgstr ""
  19384. #. type: table
  19385. #: guix-git/doc/guix.texi:12972
  19386. 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."
  19387. msgstr ""
  19388. #. type: item
  19389. #: guix-git/doc/guix.texi:12973
  19390. #, no-wrap
  19391. msgid "--repl[=@var{port}]"
  19392. msgstr ""
  19393. #. type: itemx
  19394. #: guix-git/doc/guix.texi:12974
  19395. #, no-wrap
  19396. msgid "-r [@var{port}]"
  19397. msgstr ""
  19398. #. type: table
  19399. #: guix-git/doc/guix.texi:12978
  19400. 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."
  19401. msgstr ""
  19402. #. type: Plain text
  19403. #: guix-git/doc/guix.texi:12984
  19404. 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}})."
  19405. msgstr ""
  19406. #. type: Plain text
  19407. #: guix-git/doc/guix.texi:12987
  19408. msgid "If you are instead running Guix on a ``foreign distro'', follow these instructions:"
  19409. msgstr ""
  19410. #. type: itemize
  19411. #: guix-git/doc/guix.texi:12991
  19412. msgid "If your host distro uses the systemd init system:"
  19413. msgstr ""
  19414. #. type: example
  19415. #: guix-git/doc/guix.texi:12996
  19416. #, no-wrap
  19417. msgid ""
  19418. "# ln -s ~root/.guix-profile/lib/systemd/system/guix-publish.service \\\n"
  19419. " /etc/systemd/system/\n"
  19420. "# systemctl start guix-publish && systemctl enable guix-publish\n"
  19421. msgstr ""
  19422. #. type: example
  19423. #: guix-git/doc/guix.texi:13004
  19424. #, no-wrap
  19425. msgid ""
  19426. "# ln -s ~root/.guix-profile/lib/upstart/system/guix-publish.conf /etc/init/\n"
  19427. "# start guix-publish\n"
  19428. msgstr ""
  19429. #. type: itemize
  19430. #: guix-git/doc/guix.texi:13008
  19431. msgid "Otherwise, proceed similarly with your distro's init system."
  19432. msgstr ""
  19433. #. type: section
  19434. #: guix-git/doc/guix.texi:13011
  19435. #, no-wrap
  19436. msgid "Invoking @command{guix challenge}"
  19437. msgstr ""
  19438. #. type: cindex
  19439. #: guix-git/doc/guix.texi:13014
  19440. #, no-wrap
  19441. msgid "verifiable builds"
  19442. msgstr ""
  19443. #. type: command{#1}
  19444. #: guix-git/doc/guix.texi:13015
  19445. #, no-wrap
  19446. msgid "guix challenge"
  19447. msgstr ""
  19448. #. type: cindex
  19449. #: guix-git/doc/guix.texi:13016
  19450. #, no-wrap
  19451. msgid "challenge"
  19452. msgstr ""
  19453. #. type: Plain text
  19454. #: guix-git/doc/guix.texi:13021
  19455. 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."
  19456. msgstr ""
  19457. #. type: Plain text
  19458. #: guix-git/doc/guix.texi:13029
  19459. 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."
  19460. msgstr ""
  19461. #. type: Plain text
  19462. #: guix-git/doc/guix.texi:13038
  19463. 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."
  19464. msgstr ""
  19465. #. type: Plain text
  19466. #: guix-git/doc/guix.texi:13040
  19467. msgid "The command output looks like this:"
  19468. msgstr ""
  19469. #. type: smallexample
  19470. #: guix-git/doc/guix.texi:13052
  19471. #, no-wrap
  19472. msgid ""
  19473. "$ guix challenge --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  19474. "updating list of substitutes from 'https://@value{SUBSTITUTE-SERVER-1}'... 100.0%\n"
  19475. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  19476. "/gnu/store/@dots{}-openssl-1.0.2d contents differ:\n"
  19477. " local hash: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  19478. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-openssl-1.0.2d: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  19479. " https://guix.example.org/nar/@dots{}-openssl-1.0.2d: 1zy4fmaaqcnjrzzajkdn3f5gmjk754b43qkq47llbyak9z0qjyim\n"
  19480. " differing files:\n"
  19481. " /lib/libcrypto.so.1.1\n"
  19482. " /lib/libssl.so.1.1\n"
  19483. "\n"
  19484. msgstr ""
  19485. #. type: smallexample
  19486. #: guix-git/doc/guix.texi:13059
  19487. #, no-wrap
  19488. msgid ""
  19489. "/gnu/store/@dots{}-git-2.5.0 contents differ:\n"
  19490. " local hash: 00p3bmryhjxrhpn2gxs2fy0a15lnip05l97205pgbk5ra395hyha\n"
  19491. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-git-2.5.0: 069nb85bv4d4a6slrwjdy8v1cn4cwspm3kdbmyb81d6zckj3nq9f\n"
  19492. " https://guix.example.org/nar/@dots{}-git-2.5.0: 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73\n"
  19493. " differing file:\n"
  19494. " /libexec/git-core/git-fsck\n"
  19495. "\n"
  19496. msgstr ""
  19497. #. type: smallexample
  19498. #: guix-git/doc/guix.texi:13066
  19499. #, no-wrap
  19500. msgid ""
  19501. "/gnu/store/@dots{}-pius-2.1.1 contents differ:\n"
  19502. " local hash: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  19503. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-pius-2.1.1: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  19504. " https://guix.example.org/nar/@dots{}-pius-2.1.1: 1cy25x1a4fzq5rk0pmvc8xhwyffnqz95h2bpvqsz2mpvlbccy0gs\n"
  19505. " differing file:\n"
  19506. " /share/man/man1/pius.1.gz\n"
  19507. "\n"
  19508. msgstr ""
  19509. #. type: smallexample
  19510. #: guix-git/doc/guix.texi:13068
  19511. #, no-wrap
  19512. msgid ""
  19513. "@dots{}\n"
  19514. "\n"
  19515. msgstr ""
  19516. #. type: smallexample
  19517. #: guix-git/doc/guix.texi:13073
  19518. #, no-wrap
  19519. msgid ""
  19520. "6,406 store items were analyzed:\n"
  19521. " - 4,749 (74.1%) were identical\n"
  19522. " - 525 (8.2%) differed\n"
  19523. " - 1,132 (17.7%) were inconclusive\n"
  19524. msgstr ""
  19525. #. type: Plain text
  19526. #: guix-git/doc/guix.texi:13081
  19527. 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."
  19528. msgstr ""
  19529. #. type: cindex
  19530. #: guix-git/doc/guix.texi:13082
  19531. #, no-wrap
  19532. msgid "non-determinism, in package builds"
  19533. msgstr ""
  19534. #. type: Plain text
  19535. #: guix-git/doc/guix.texi:13093
  19536. 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."
  19537. msgstr ""
  19538. #. type: Plain text
  19539. #: guix-git/doc/guix.texi:13096
  19540. msgid "To find out what is wrong with this Git binary, the easiest approach is to run:"
  19541. msgstr ""
  19542. #. type: example
  19543. #: guix-git/doc/guix.texi:13101
  19544. #, no-wrap
  19545. msgid ""
  19546. "guix challenge git \\\n"
  19547. " --diff=diffoscope \\\n"
  19548. " --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  19549. msgstr ""
  19550. #. type: Plain text
  19551. #: guix-git/doc/guix.texi:13105
  19552. msgid "This automatically invokes @command{diffoscope}, which displays detailed information about files that differ."
  19553. msgstr ""
  19554. #. type: Plain text
  19555. #: guix-git/doc/guix.texi:13108
  19556. msgid "Alternatively, we can do something along these lines (@pxref{Invoking guix archive}):"
  19557. msgstr ""
  19558. #. type: example
  19559. #: guix-git/doc/guix.texi:13113
  19560. #, no-wrap
  19561. msgid ""
  19562. "$ wget -q -O - https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-git-2.5.0 \\\n"
  19563. " | lzip -d | guix archive -x /tmp/git\n"
  19564. "$ diff -ur --no-dereference /gnu/store/@dots{}-git.2.5.0 /tmp/git\n"
  19565. msgstr ""
  19566. #. type: Plain text
  19567. #: guix-git/doc/guix.texi:13122
  19568. 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."
  19569. msgstr ""
  19570. #. type: Plain text
  19571. #: guix-git/doc/guix.texi:13130
  19572. 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."
  19573. msgstr ""
  19574. #. type: Plain text
  19575. #: guix-git/doc/guix.texi:13134
  19576. 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:"
  19577. msgstr ""
  19578. #. type: example
  19579. #: guix-git/doc/guix.texi:13137
  19580. #, no-wrap
  19581. msgid "$ guix challenge @var{package}\n"
  19582. msgstr ""
  19583. #. type: Plain text
  19584. #: guix-git/doc/guix.texi:13142
  19585. msgid "where @var{package} is a package specification such as @code{guile@@2.0} or @code{glibc:debug}."
  19586. msgstr ""
  19587. #. type: example
  19588. #: guix-git/doc/guix.texi:13147
  19589. #, no-wrap
  19590. msgid "guix challenge @var{options} [@var{packages}@dots{}]\n"
  19591. msgstr ""
  19592. #. type: Plain text
  19593. #: guix-git/doc/guix.texi:13154
  19594. 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)."
  19595. msgstr ""
  19596. #. type: Plain text
  19597. #: guix-git/doc/guix.texi:13156
  19598. msgid "The one option that matters is:"
  19599. msgstr ""
  19600. #. type: table
  19601. #: guix-git/doc/guix.texi:13162
  19602. msgid "Consider @var{urls} the whitespace-separated list of substitute source URLs to compare to."
  19603. msgstr ""
  19604. #. type: item
  19605. #: guix-git/doc/guix.texi:13163
  19606. #, fuzzy, no-wrap
  19607. msgid "--diff=@var{mode}"
  19608. msgstr "--rounds=@var{N}"
  19609. #. type: table
  19610. #: guix-git/doc/guix.texi:13165
  19611. msgid "Upon mismatches, show differences according to @var{mode}, one of:"
  19612. msgstr ""
  19613. #. type: item
  19614. #: guix-git/doc/guix.texi:13167
  19615. #, fuzzy, no-wrap
  19616. msgid "@code{simple} (the default)"
  19617. msgstr "@code{speed}(默认值:@code{1.0})"
  19618. #. type: table
  19619. #: guix-git/doc/guix.texi:13169
  19620. msgid "Show the list of files that differ."
  19621. msgstr ""
  19622. #. type: code{#1}
  19623. #: guix-git/doc/guix.texi:13170
  19624. #, no-wrap
  19625. msgid "diffoscope"
  19626. msgstr ""
  19627. #. type: var{#1}
  19628. #: guix-git/doc/guix.texi:13171
  19629. #, no-wrap
  19630. msgid "command"
  19631. msgstr ""
  19632. #. type: table
  19633. #: guix-git/doc/guix.texi:13174
  19634. msgid "Invoke @uref{https://diffoscope.org/, Diffoscope}, passing it two directories whose contents do not match."
  19635. msgstr ""
  19636. #. type: table
  19637. #: guix-git/doc/guix.texi:13177
  19638. msgid "When @var{command} is an absolute file name, run @var{command} instead of Diffoscope."
  19639. msgstr ""
  19640. #. type: item
  19641. #: guix-git/doc/guix.texi:13178 guix-git/doc/guix.texi:16543
  19642. #: guix-git/doc/guix.texi:18635
  19643. #, no-wrap
  19644. msgid "none"
  19645. msgstr ""
  19646. #. type: table
  19647. #: guix-git/doc/guix.texi:13180
  19648. msgid "Do not show further details about the differences."
  19649. msgstr ""
  19650. #. type: table
  19651. #: guix-git/doc/guix.texi:13185
  19652. 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."
  19653. msgstr ""
  19654. #. type: item
  19655. #: guix-git/doc/guix.texi:13186
  19656. #, no-wrap
  19657. msgid "--verbose"
  19658. msgstr ""
  19659. #. type: itemx
  19660. #: guix-git/doc/guix.texi:13187
  19661. #, no-wrap
  19662. msgid "-v"
  19663. msgstr ""
  19664. #. type: table
  19665. #: guix-git/doc/guix.texi:13190
  19666. msgid "Show details about matches (identical contents) in addition to information about mismatches."
  19667. msgstr ""
  19668. #. type: section
  19669. #: guix-git/doc/guix.texi:13194
  19670. #, no-wrap
  19671. msgid "Invoking @command{guix copy}"
  19672. msgstr ""
  19673. #. type: cindex
  19674. #: guix-git/doc/guix.texi:13196
  19675. #, no-wrap
  19676. msgid "copy, of store items, over SSH"
  19677. msgstr ""
  19678. #. type: cindex
  19679. #: guix-git/doc/guix.texi:13197
  19680. #, no-wrap
  19681. msgid "SSH, copy of store items"
  19682. msgstr ""
  19683. #. type: cindex
  19684. #: guix-git/doc/guix.texi:13198
  19685. #, no-wrap
  19686. msgid "sharing store items across machines"
  19687. msgstr ""
  19688. #. type: cindex
  19689. #: guix-git/doc/guix.texi:13199
  19690. #, no-wrap
  19691. msgid "transferring store items across machines"
  19692. msgstr ""
  19693. #. type: Plain text
  19694. #: guix-git/doc/guix.texi:13206
  19695. 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}:"
  19696. msgstr ""
  19697. #. type: example
  19698. #: guix-git/doc/guix.texi:13210
  19699. #, no-wrap
  19700. msgid ""
  19701. "guix copy --to=@var{user}@@@var{host} \\\n"
  19702. " coreutils $(readlink -f ~/.guix-profile)\n"
  19703. msgstr ""
  19704. #. type: Plain text
  19705. #: guix-git/doc/guix.texi:13214
  19706. msgid "If some of the items to be copied are already present on @var{host}, they are not actually sent."
  19707. msgstr ""
  19708. #. type: Plain text
  19709. #: guix-git/doc/guix.texi:13217
  19710. msgid "The command below retrieves @code{libreoffice} and @code{gimp} from @var{host}, assuming they are available there:"
  19711. msgstr ""
  19712. #. type: example
  19713. #: guix-git/doc/guix.texi:13220
  19714. #, no-wrap
  19715. msgid "guix copy --from=@var{host} libreoffice gimp\n"
  19716. msgstr ""
  19717. #. type: Plain text
  19718. #: guix-git/doc/guix.texi:13225
  19719. 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."
  19720. msgstr ""
  19721. #. type: Plain text
  19722. #: guix-git/doc/guix.texi:13231
  19723. 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."
  19724. msgstr ""
  19725. #. type: example
  19726. #: guix-git/doc/guix.texi:13236
  19727. #, no-wrap
  19728. msgid "guix copy [--to=@var{spec}|--from=@var{spec}] @var{items}@dots{}\n"
  19729. msgstr ""
  19730. #. type: Plain text
  19731. #: guix-git/doc/guix.texi:13239
  19732. msgid "You must always specify one of the following options:"
  19733. msgstr ""
  19734. #. type: item
  19735. #: guix-git/doc/guix.texi:13241
  19736. #, no-wrap
  19737. msgid "--to=@var{spec}"
  19738. msgstr ""
  19739. #. type: itemx
  19740. #: guix-git/doc/guix.texi:13242
  19741. #, no-wrap
  19742. msgid "--from=@var{spec}"
  19743. msgstr ""
  19744. #. type: table
  19745. #: guix-git/doc/guix.texi:13246
  19746. 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}."
  19747. msgstr ""
  19748. #. type: Plain text
  19749. #: guix-git/doc/guix.texi:13250
  19750. 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}."
  19751. msgstr ""
  19752. #. type: Plain text
  19753. #: guix-git/doc/guix.texi:13254
  19754. 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})."
  19755. msgstr ""
  19756. #. type: section
  19757. #: guix-git/doc/guix.texi:13257
  19758. #, no-wrap
  19759. msgid "Invoking @command{guix container}"
  19760. msgstr ""
  19761. #. type: command{#1}
  19762. #: guix-git/doc/guix.texi:13259
  19763. #, no-wrap
  19764. msgid "guix container"
  19765. msgstr ""
  19766. #. type: quotation
  19767. #: guix-git/doc/guix.texi:13263
  19768. msgid "As of version @value{VERSION}, this tool is experimental. The interface is subject to radical change in the future."
  19769. msgstr ""
  19770. #. type: Plain text
  19771. #: guix-git/doc/guix.texi:13270
  19772. msgid "The purpose of @command{guix container} is to manipulate processes running within an isolated environment, commonly known as a ``container'', typically created by the @command{guix environment} (@pxref{Invoking guix environment}) and @command{guix system container} (@pxref{Invoking guix system}) commands."
  19773. msgstr ""
  19774. #. type: example
  19775. #: guix-git/doc/guix.texi:13275
  19776. #, no-wrap
  19777. msgid "guix container @var{action} @var{options}@dots{}\n"
  19778. msgstr ""
  19779. #. type: Plain text
  19780. #: guix-git/doc/guix.texi:13279
  19781. msgid "@var{action} specifies the operation to perform with a container, and @var{options} specifies the context-specific arguments for the action."
  19782. msgstr ""
  19783. #. type: Plain text
  19784. #: guix-git/doc/guix.texi:13281
  19785. msgid "The following actions are available:"
  19786. msgstr ""
  19787. #. type: item
  19788. #: guix-git/doc/guix.texi:13283
  19789. #, no-wrap
  19790. msgid "exec"
  19791. msgstr ""
  19792. #. type: table
  19793. #: guix-git/doc/guix.texi:13285
  19794. msgid "Execute a command within the context of a running container."
  19795. msgstr ""
  19796. #. type: table
  19797. #: guix-git/doc/guix.texi:13287
  19798. msgid "The syntax is:"
  19799. msgstr ""
  19800. #. type: example
  19801. #: guix-git/doc/guix.texi:13290
  19802. #, no-wrap
  19803. msgid "guix container exec @var{pid} @var{program} @var{arguments}@dots{}\n"
  19804. msgstr ""
  19805. #. type: table
  19806. #: guix-git/doc/guix.texi:13296
  19807. 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}."
  19808. msgstr ""
  19809. #. type: table
  19810. #: guix-git/doc/guix.texi:13300
  19811. 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:"
  19812. msgstr ""
  19813. #. type: example
  19814. #: guix-git/doc/guix.texi:13303
  19815. #, no-wrap
  19816. msgid "guix container exec 9001 /run/current-system/profile/bin/bash --login\n"
  19817. msgstr ""
  19818. #. type: table
  19819. #: guix-git/doc/guix.texi:13307
  19820. 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."
  19821. msgstr ""
  19822. #. type: section
  19823. #: guix-git/doc/guix.texi:13311
  19824. #, no-wrap
  19825. msgid "Invoking @command{guix weather}"
  19826. msgstr ""
  19827. #. type: Plain text
  19828. #: guix-git/doc/guix.texi:13320
  19829. 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})."
  19830. msgstr ""
  19831. #. type: cindex
  19832. #: guix-git/doc/guix.texi:13321
  19833. #, no-wrap
  19834. msgid "statistics, for substitutes"
  19835. msgstr ""
  19836. #. type: cindex
  19837. #: guix-git/doc/guix.texi:13322
  19838. #, no-wrap
  19839. msgid "availability of substitutes"
  19840. msgstr ""
  19841. #. type: cindex
  19842. #: guix-git/doc/guix.texi:13323
  19843. #, no-wrap
  19844. msgid "substitute availability"
  19845. msgstr ""
  19846. #. type: cindex
  19847. #: guix-git/doc/guix.texi:13324
  19848. #, no-wrap
  19849. msgid "weather, substitute availability"
  19850. msgstr ""
  19851. #. type: Plain text
  19852. #: guix-git/doc/guix.texi:13326
  19853. msgid "Here's a sample run:"
  19854. msgstr ""
  19855. #. type: example
  19856. #: guix-git/doc/guix.texi:13338
  19857. #, no-wrap
  19858. msgid ""
  19859. "$ guix weather --substitute-urls=https://guix.example.org\n"
  19860. "computing 5,872 package derivations for x86_64-linux...\n"
  19861. "looking for 6,128 store items on https://guix.example.org..\n"
  19862. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  19863. "https://guix.example.org\n"
  19864. " 43.4% substitutes available (2,658 out of 6,128)\n"
  19865. " 7,032.5 MiB of nars (compressed)\n"
  19866. " 19,824.2 MiB on disk (uncompressed)\n"
  19867. " 0.030 seconds per request (182.9 seconds in total)\n"
  19868. " 33.5 requests per second\n"
  19869. "\n"
  19870. msgstr ""
  19871. #. type: example
  19872. #: guix-git/doc/guix.texi:13348
  19873. #, no-wrap
  19874. msgid ""
  19875. " 9.8% (342 out of 3,470) of the missing items are queued\n"
  19876. " 867 queued builds\n"
  19877. " x86_64-linux: 518 (59.7%)\n"
  19878. " i686-linux: 221 (25.5%)\n"
  19879. " aarch64-linux: 128 (14.8%)\n"
  19880. " build rate: 23.41 builds per hour\n"
  19881. " x86_64-linux: 11.16 builds per hour\n"
  19882. " i686-linux: 6.03 builds per hour\n"
  19883. " aarch64-linux: 6.41 builds per hour\n"
  19884. msgstr ""
  19885. #. type: cindex
  19886. #: guix-git/doc/guix.texi:13350
  19887. #, no-wrap
  19888. msgid "continuous integration, statistics"
  19889. msgstr ""
  19890. #. type: Plain text
  19891. #: guix-git/doc/guix.texi:13361
  19892. 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)."
  19893. msgstr ""
  19894. #. type: Plain text
  19895. #: guix-git/doc/guix.texi:13367
  19896. 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."
  19897. msgstr ""
  19898. #. type: example
  19899. #: guix-git/doc/guix.texi:13372
  19900. #, no-wrap
  19901. msgid "guix weather @var{options}@dots{} [@var{packages}@dots{}]\n"
  19902. msgstr ""
  19903. #. type: Plain text
  19904. #: guix-git/doc/guix.texi:13380
  19905. 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%."
  19906. msgstr ""
  19907. #. type: Plain text
  19908. #: guix-git/doc/guix.texi:13382
  19909. msgid "The available options are listed below."
  19910. msgstr ""
  19911. #. type: table
  19912. #: guix-git/doc/guix.texi:13388
  19913. 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."
  19914. msgstr ""
  19915. #. type: table
  19916. #: guix-git/doc/guix.texi:13394
  19917. 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."
  19918. msgstr ""
  19919. #. type: table
  19920. #: guix-git/doc/guix.texi:13400
  19921. 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})."
  19922. msgstr ""
  19923. #. type: table
  19924. #: guix-git/doc/guix.texi:13403
  19925. msgid "This option can be repeated several times, in which case the manifests are concatenated."
  19926. msgstr ""
  19927. #. type: item
  19928. #: guix-git/doc/guix.texi:13404
  19929. #, no-wrap
  19930. msgid "--coverage[=@var{count}]"
  19931. msgstr ""
  19932. #. type: itemx
  19933. #: guix-git/doc/guix.texi:13405
  19934. #, no-wrap
  19935. msgid "-c [@var{count}]"
  19936. msgstr ""
  19937. #. type: table
  19938. #: guix-git/doc/guix.texi:13411
  19939. 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:"
  19940. msgstr ""
  19941. #. type: example
  19942. #: guix-git/doc/guix.texi:13425
  19943. #, no-wrap
  19944. msgid ""
  19945. "$ guix weather --substitute-urls=@value{SUBSTITUTE-URLS} -c 10\n"
  19946. "computing 8,983 package derivations for x86_64-linux...\n"
  19947. "looking for 9,343 store items on @value{SUBSTITUTE-URLS}...\n"
  19948. "updating substitutes from '@value{SUBSTITUTE-URLS}'... 100.0%\n"
  19949. "@value{SUBSTITUTE-URLS}\n"
  19950. " 64.7% substitutes available (6,047 out of 9,343)\n"
  19951. "@dots{}\n"
  19952. "2502 packages are missing from '@value{SUBSTITUTE-URLS}' for 'x86_64-linux', among which:\n"
  19953. " 58 kcoreaddons@@5.49.0 /gnu/store/@dots{}-kcoreaddons-5.49.0\n"
  19954. " 46 qgpgme@@1.11.1 /gnu/store/@dots{}-qgpgme-1.11.1\n"
  19955. " 37 perl-http-cookiejar@@0.008 /gnu/store/@dots{}-perl-http-cookiejar-0.008\n"
  19956. " @dots{}\n"
  19957. msgstr ""
  19958. #. type: table
  19959. #: guix-git/doc/guix.texi:13431
  19960. 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."
  19961. msgstr ""
  19962. #. type: table
  19963. #: guix-git/doc/guix.texi:13435
  19964. 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."
  19965. msgstr ""
  19966. #. type: item
  19967. #: guix-git/doc/guix.texi:13436
  19968. #, no-wrap
  19969. msgid "--display-missing"
  19970. msgstr ""
  19971. #. type: table
  19972. #: guix-git/doc/guix.texi:13438
  19973. msgid "Display the list of store items for which substitutes are missing."
  19974. msgstr ""
  19975. #. type: section
  19976. #: guix-git/doc/guix.texi:13441
  19977. #, no-wrap
  19978. msgid "Invoking @command{guix processes}"
  19979. msgstr ""
  19980. #. type: Plain text
  19981. #: guix-git/doc/guix.texi:13449
  19982. 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:"
  19983. msgstr ""
  19984. #. type: example
  19985. #: guix-git/doc/guix.texi:13455
  19986. #, no-wrap
  19987. msgid ""
  19988. "$ sudo guix processes\n"
  19989. "SessionPID: 19002\n"
  19990. "ClientPID: 19090\n"
  19991. "ClientCommand: guix environment --ad-hoc python\n"
  19992. "\n"
  19993. msgstr ""
  19994. #. type: example
  19995. #: guix-git/doc/guix.texi:13459
  19996. #, no-wrap
  19997. msgid ""
  19998. "SessionPID: 19402\n"
  19999. "ClientPID: 19367\n"
  20000. "ClientCommand: guix publish -u guix-publish -p 3000 -C 9 @dots{}\n"
  20001. "\n"
  20002. msgstr ""
  20003. #. type: example
  20004. #: guix-git/doc/guix.texi:13472
  20005. #, no-wrap
  20006. msgid ""
  20007. "SessionPID: 19444\n"
  20008. "ClientPID: 19419\n"
  20009. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  20010. "LockHeld: /gnu/store/@dots{}-perl-ipc-cmd-0.96.lock\n"
  20011. "LockHeld: /gnu/store/@dots{}-python-six-bootstrap-1.11.0.lock\n"
  20012. "LockHeld: /gnu/store/@dots{}-libjpeg-turbo-2.0.0.lock\n"
  20013. "ChildPID: 20495\n"
  20014. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  20015. "ChildPID: 27733\n"
  20016. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  20017. "ChildPID: 27793\n"
  20018. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  20019. msgstr ""
  20020. #. type: Plain text
  20021. #: guix-git/doc/guix.texi:13479
  20022. 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."
  20023. msgstr ""
  20024. #. type: Plain text
  20025. #: guix-git/doc/guix.texi:13486
  20026. 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})."
  20027. msgstr ""
  20028. #. type: Plain text
  20029. #: guix-git/doc/guix.texi:13491
  20030. 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:"
  20031. msgstr ""
  20032. #. type: example
  20033. #: guix-git/doc/guix.texi:13497
  20034. #, no-wrap
  20035. msgid ""
  20036. "$ sudo guix processes | \\\n"
  20037. " recsel -p ClientPID,ClientCommand -e 'LockHeld ~ \"perl\"'\n"
  20038. "ClientPID: 19419\n"
  20039. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  20040. msgstr ""
  20041. #. type: Plain text
  20042. #: guix-git/doc/guix.texi:13500
  20043. #, fuzzy
  20044. msgid "Additional options are listed below."
  20045. msgstr "额外的构建选项"
  20046. #. type: table
  20047. #: guix-git/doc/guix.texi:13510
  20048. msgid "The default option. It outputs a set of Session recutils records that include each @code{ChildProcess} as a field."
  20049. msgstr ""
  20050. #. type: item
  20051. #: guix-git/doc/guix.texi:13511
  20052. #, no-wrap
  20053. msgid "normalized"
  20054. msgstr ""
  20055. #. type: table
  20056. #: guix-git/doc/guix.texi:13518
  20057. 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}."
  20058. msgstr ""
  20059. #. type: example
  20060. #: guix-git/doc/guix.texi:13528
  20061. #, no-wrap
  20062. msgid ""
  20063. "$ guix processes --format=normalized | \\\n"
  20064. " recsel \\\n"
  20065. " -j Session \\\n"
  20066. " -t ChildProcess \\\n"
  20067. " -p Session.PID,PID \\\n"
  20068. " -e 'Session.ClientCommand ~ \"guix build\"'\n"
  20069. "PID: 4435\n"
  20070. "Session_PID: 4278\n"
  20071. "\n"
  20072. msgstr ""
  20073. #. type: example
  20074. #: guix-git/doc/guix.texi:13531
  20075. #, no-wrap
  20076. msgid ""
  20077. "PID: 4554\n"
  20078. "Session_PID: 4278\n"
  20079. "\n"
  20080. msgstr ""
  20081. #. type: example
  20082. #: guix-git/doc/guix.texi:13534
  20083. #, no-wrap
  20084. msgid ""
  20085. "PID: 4646\n"
  20086. "Session_PID: 4278\n"
  20087. msgstr ""
  20088. #. type: cindex
  20089. #: guix-git/doc/guix.texi:13541
  20090. #, no-wrap
  20091. msgid "system configuration"
  20092. msgstr ""
  20093. #. type: Plain text
  20094. #: guix-git/doc/guix.texi:13547
  20095. 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."
  20096. msgstr ""
  20097. #. type: Plain text
  20098. #: guix-git/doc/guix.texi:13557
  20099. 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."
  20100. msgstr ""
  20101. #. type: Plain text
  20102. #: guix-git/doc/guix.texi:13562
  20103. 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."
  20104. msgstr ""
  20105. #. type: Plain text
  20106. #: guix-git/doc/guix.texi:13591
  20107. 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:"
  20108. msgstr ""
  20109. #. type: code{#1}
  20110. #: guix-git/doc/guix.texi:13592 guix-git/doc/guix.texi:34419
  20111. #, no-wrap
  20112. msgid "operating-system"
  20113. msgstr ""
  20114. #. type: include
  20115. #: guix-git/doc/guix.texi:13594
  20116. #, no-wrap
  20117. msgid "os-config-bare-bones.texi"
  20118. msgstr ""
  20119. #. type: Plain text
  20120. #: guix-git/doc/guix.texi:13601
  20121. 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."
  20122. msgstr ""
  20123. #. type: Plain text
  20124. #: guix-git/doc/guix.texi:13606
  20125. 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}."
  20126. msgstr ""
  20127. #. type: unnumberedsubsec
  20128. #: guix-git/doc/guix.texi:13607
  20129. #, no-wrap
  20130. msgid "Bootloader"
  20131. msgstr ""
  20132. #. type: cindex
  20133. #: guix-git/doc/guix.texi:13609
  20134. #, no-wrap
  20135. msgid "legacy boot, on Intel machines"
  20136. msgstr ""
  20137. #. type: cindex
  20138. #: guix-git/doc/guix.texi:13610
  20139. #, no-wrap
  20140. msgid "BIOS boot, on Intel machines"
  20141. msgstr ""
  20142. #. type: cindex
  20143. #: guix-git/doc/guix.texi:13611
  20144. #, no-wrap
  20145. msgid "UEFI boot"
  20146. msgstr ""
  20147. #. type: cindex
  20148. #: guix-git/doc/guix.texi:13612
  20149. #, no-wrap
  20150. msgid "EFI boot"
  20151. msgstr ""
  20152. #. type: Plain text
  20153. #: guix-git/doc/guix.texi:13618
  20154. 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:"
  20155. msgstr ""
  20156. #. type: lisp
  20157. #: guix-git/doc/guix.texi:13623
  20158. #, no-wrap
  20159. msgid ""
  20160. "(bootloader-configuration\n"
  20161. " (bootloader grub-efi-bootloader)\n"
  20162. " (targets '(\"/boot/efi\")))\n"
  20163. msgstr ""
  20164. #. type: Plain text
  20165. #: guix-git/doc/guix.texi:13627
  20166. msgid "@xref{Bootloader Configuration}, for more information on the available configuration options."
  20167. msgstr ""
  20168. #. type: unnumberedsubsec
  20169. #: guix-git/doc/guix.texi:13628
  20170. #, no-wrap
  20171. msgid "Globally-Visible Packages"
  20172. msgstr ""
  20173. #. type: vindex
  20174. #: guix-git/doc/guix.texi:13630
  20175. #, no-wrap
  20176. msgid "%base-packages"
  20177. msgstr ""
  20178. #. type: Plain text
  20179. #: guix-git/doc/guix.texi:13643
  20180. 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:"
  20181. msgstr ""
  20182. #. type: lisp
  20183. #: guix-git/doc/guix.texi:13647
  20184. #, no-wrap
  20185. msgid ""
  20186. "(use-modules (gnu packages))\n"
  20187. "(use-modules (gnu packages dns))\n"
  20188. "\n"
  20189. msgstr ""
  20190. #. type: lisp
  20191. #: guix-git/doc/guix.texi:13652
  20192. #, no-wrap
  20193. msgid ""
  20194. "(operating-system\n"
  20195. " ;; ...\n"
  20196. " (packages (cons (list isc-bind \"utils\")\n"
  20197. " %base-packages)))\n"
  20198. msgstr ""
  20199. #. type: findex
  20200. #: guix-git/doc/guix.texi:13654
  20201. #, no-wrap
  20202. msgid "specification->package"
  20203. msgstr ""
  20204. #. type: Plain text
  20205. #: guix-git/doc/guix.texi:13663
  20206. 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:"
  20207. msgstr ""
  20208. #. type: lisp
  20209. #: guix-git/doc/guix.texi:13666
  20210. #, no-wrap
  20211. msgid ""
  20212. "(use-modules (gnu packages))\n"
  20213. "\n"
  20214. msgstr ""
  20215. #. type: lisp
  20216. #: guix-git/doc/guix.texi:13672
  20217. #, no-wrap
  20218. msgid ""
  20219. "(operating-system\n"
  20220. " ;; ...\n"
  20221. " (packages (append (map specification->package\n"
  20222. " '(\"tcpdump\" \"htop\" \"gnupg@@2.0\"))\n"
  20223. " %base-packages)))\n"
  20224. msgstr ""
  20225. #. type: unnumberedsubsec
  20226. #: guix-git/doc/guix.texi:13674
  20227. #, no-wrap
  20228. msgid "System Services"
  20229. msgstr ""
  20230. #. type: cindex
  20231. #: guix-git/doc/guix.texi:13676 guix-git/doc/guix.texi:33179
  20232. #: guix-git/doc/guix.texi:34648
  20233. #, no-wrap
  20234. msgid "services"
  20235. msgstr ""
  20236. #. type: vindex
  20237. #: guix-git/doc/guix.texi:13677
  20238. #, no-wrap
  20239. msgid "%base-services"
  20240. msgstr ""
  20241. #. type: Plain text
  20242. #: guix-git/doc/guix.texi:13687
  20243. 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})."
  20244. msgstr ""
  20245. #. type: cindex
  20246. #: guix-git/doc/guix.texi:13688
  20247. #, no-wrap
  20248. msgid "customization, of services"
  20249. msgstr ""
  20250. #. type: findex
  20251. #: guix-git/doc/guix.texi:13689
  20252. #, no-wrap
  20253. msgid "modify-services"
  20254. msgstr ""
  20255. #. type: Plain text
  20256. #: guix-git/doc/guix.texi:13693
  20257. 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."
  20258. msgstr ""
  20259. #. type: anchor{#1}
  20260. #: guix-git/doc/guix.texi:13699
  20261. msgid "auto-login to TTY"
  20262. msgstr ""
  20263. #. type: Plain text
  20264. #: guix-git/doc/guix.texi:13699
  20265. 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:"
  20266. msgstr ""
  20267. #. type: lisp
  20268. #: guix-git/doc/guix.texi:13716
  20269. #, no-wrap
  20270. msgid ""
  20271. "(define %my-services\n"
  20272. " ;; My very own list of services.\n"
  20273. " (modify-services %base-services\n"
  20274. " (guix-service-type config =>\n"
  20275. " (guix-configuration\n"
  20276. " (inherit config)\n"
  20277. " ;; Fetch substitutes from example.org.\n"
  20278. " (substitute-urls\n"
  20279. " (list \"https://example.org/guix\"\n"
  20280. " \"https://ci.guix.gnu.org\"))))\n"
  20281. " (mingetty-service-type config =>\n"
  20282. " (mingetty-configuration\n"
  20283. " (inherit config)\n"
  20284. " ;; Automatially log in as \"guest\".\n"
  20285. " (auto-login \"guest\")))))\n"
  20286. "\n"
  20287. msgstr ""
  20288. #. type: lisp
  20289. #: guix-git/doc/guix.texi:13720
  20290. #, no-wrap
  20291. msgid ""
  20292. "(operating-system\n"
  20293. " ;; @dots{}\n"
  20294. " (services %my-services))\n"
  20295. msgstr ""
  20296. #. type: Plain text
  20297. #: guix-git/doc/guix.texi:13733
  20298. 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."
  20299. msgstr ""
  20300. #. type: Plain text
  20301. #: guix-git/doc/guix.texi:13740
  20302. msgid "The configuration for a typical ``desktop'' usage, with an encrypted root partition, the X11 display server, GNOME and Xfce (users can choose which of these desktop environments to use at the log-in screen by pressing @kbd{F1}), network management, power management, and more, would look like this:"
  20303. msgstr ""
  20304. #. type: include
  20305. #: guix-git/doc/guix.texi:13742
  20306. #, no-wrap
  20307. msgid "os-config-desktop.texi"
  20308. msgstr ""
  20309. #. type: Plain text
  20310. #: guix-git/doc/guix.texi:13747
  20311. msgid "A graphical system with a choice of lightweight window managers instead of full-blown desktop environments would look like this:"
  20312. msgstr ""
  20313. #. type: include
  20314. #: guix-git/doc/guix.texi:13749
  20315. #, no-wrap
  20316. msgid "os-config-lightweight-desktop.texi"
  20317. msgstr ""
  20318. #. type: Plain text
  20319. #: guix-git/doc/guix.texi:13755
  20320. 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."
  20321. msgstr ""
  20322. #. type: Plain text
  20323. #: guix-git/doc/guix.texi:13759
  20324. 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."
  20325. msgstr ""
  20326. #. type: Plain text
  20327. #: guix-git/doc/guix.texi:13766
  20328. 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:"
  20329. msgstr ""
  20330. #. type: lisp
  20331. #: guix-git/doc/guix.texi:13771
  20332. #, no-wrap
  20333. msgid ""
  20334. "(remove (lambda (service)\n"
  20335. " (eq? (service-kind service) avahi-service-type))\n"
  20336. " %desktop-services)\n"
  20337. msgstr ""
  20338. #. type: Plain text
  20339. #: guix-git/doc/guix.texi:13774
  20340. msgid "Alternatively, the @code{modify-services} macro can be used:"
  20341. msgstr ""
  20342. #. type: lisp
  20343. #: guix-git/doc/guix.texi:13778
  20344. #, no-wrap
  20345. msgid ""
  20346. "(modify-services %desktop-services\n"
  20347. " (delete avahi-service-type))\n"
  20348. msgstr ""
  20349. #. type: unnumberedsubsec
  20350. #: guix-git/doc/guix.texi:13781
  20351. #, no-wrap
  20352. msgid "Instantiating the System"
  20353. msgstr ""
  20354. #. type: Plain text
  20355. #: guix-git/doc/guix.texi:13788
  20356. 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})."
  20357. msgstr ""
  20358. #. type: Plain text
  20359. #: guix-git/doc/guix.texi:13796
  20360. 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."
  20361. msgstr ""
  20362. #. type: cindex
  20363. #: guix-git/doc/guix.texi:13797
  20364. #, no-wrap
  20365. msgid "roll-back, of the operating system"
  20366. msgstr ""
  20367. #. type: Plain text
  20368. #: guix-git/doc/guix.texi:13807
  20369. 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}."
  20370. msgstr ""
  20371. #. type: Plain text
  20372. #: guix-git/doc/guix.texi:13813
  20373. 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})."
  20374. msgstr ""
  20375. #. type: unnumberedsubsec
  20376. #: guix-git/doc/guix.texi:13814
  20377. #, no-wrap
  20378. msgid "The Programming Interface"
  20379. msgstr ""
  20380. #. type: Plain text
  20381. #: guix-git/doc/guix.texi:13819
  20382. msgid "At the Scheme level, the bulk of an @code{operating-system} declaration is instantiated with the following monadic procedure (@pxref{The Store Monad}):"
  20383. msgstr ""
  20384. #. type: deffn
  20385. #: guix-git/doc/guix.texi:13820
  20386. #, no-wrap
  20387. msgid "{Monadic Procedure} operating-system-derivation os"
  20388. msgstr ""
  20389. #. type: deffn
  20390. #: guix-git/doc/guix.texi:13823
  20391. msgid "Return a derivation that builds @var{os}, an @code{operating-system} object (@pxref{Derivations})."
  20392. msgstr ""
  20393. #. type: deffn
  20394. #: guix-git/doc/guix.texi:13827
  20395. 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}."
  20396. msgstr ""
  20397. #. type: Plain text
  20398. #: guix-git/doc/guix.texi:13832
  20399. 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!"
  20400. msgstr ""
  20401. #. type: section
  20402. #: guix-git/doc/guix.texi:13835
  20403. #, no-wrap
  20404. msgid "@code{operating-system} Reference"
  20405. msgstr ""
  20406. #. type: Plain text
  20407. #: guix-git/doc/guix.texi:13840
  20408. msgid "This section summarizes all the options available in @code{operating-system} declarations (@pxref{Using the Configuration System})."
  20409. msgstr ""
  20410. #. type: deftp
  20411. #: guix-git/doc/guix.texi:13841
  20412. #, no-wrap
  20413. msgid "{Data Type} operating-system"
  20414. msgstr ""
  20415. #. type: deftp
  20416. #: guix-git/doc/guix.texi:13845
  20417. 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})."
  20418. msgstr ""
  20419. #. type: item
  20420. #: guix-git/doc/guix.texi:13847
  20421. #, fuzzy, no-wrap
  20422. msgid "@code{kernel} (default: @code{linux-libre})"
  20423. msgstr "@code{gnome}(默认值:@code{gnome})"
  20424. #. type: table
  20425. #: guix-git/doc/guix.texi:13852
  20426. 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.}."
  20427. msgstr ""
  20428. #. type: code{#1}
  20429. #: guix-git/doc/guix.texi:13853 guix-git/doc/guix.texi:29626
  20430. #, no-wrap
  20431. msgid "hurd"
  20432. msgstr ""
  20433. #. type: item
  20434. #: guix-git/doc/guix.texi:13854
  20435. #, fuzzy, no-wrap
  20436. msgid "@code{hurd} (default: @code{#f})"
  20437. msgstr "@code{port}(默认值:@code{22})"
  20438. #. type: table
  20439. #: guix-git/doc/guix.texi:13859
  20440. 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."
  20441. msgstr ""
  20442. #. type: quotation
  20443. #: guix-git/doc/guix.texi:13862
  20444. msgid "This feature is experimental and only supported for disk images."
  20445. msgstr ""
  20446. #. type: item
  20447. #: guix-git/doc/guix.texi:13864
  20448. #, fuzzy, no-wrap
  20449. msgid "@code{kernel-loadable-modules} (default: '())"
  20450. msgstr "@code{features} (@code{'()})"
  20451. #. type: table
  20452. #: guix-git/doc/guix.texi:13867
  20453. msgid "A list of objects (usually packages) to collect loadable kernel modules from--e.g. @code{(list ddcci-driver-linux)}."
  20454. msgstr ""
  20455. #. type: item
  20456. #: guix-git/doc/guix.texi:13868
  20457. #, fuzzy, no-wrap
  20458. msgid "@code{kernel-arguments} (default: @code{%default-kernel-arguments})"
  20459. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  20460. #. type: table
  20461. #: guix-git/doc/guix.texi:13871
  20462. msgid "List of strings or gexps representing additional arguments to pass on the command-line of the kernel---e.g., @code{(\"console=ttyS0\")}."
  20463. msgstr ""
  20464. #. type: code{#1}
  20465. #: guix-git/doc/guix.texi:13872 guix-git/doc/guix.texi:33411
  20466. #: guix-git/doc/guix.texi:33430
  20467. #, no-wrap
  20468. msgid "bootloader"
  20469. msgstr ""
  20470. #. type: table
  20471. #: guix-git/doc/guix.texi:13874
  20472. msgid "The system bootloader configuration object. @xref{Bootloader Configuration}."
  20473. msgstr ""
  20474. #. type: code{#1}
  20475. #: guix-git/doc/guix.texi:13875 guix-git/doc/guix.texi:33604
  20476. #, no-wrap
  20477. msgid "label"
  20478. msgstr ""
  20479. #. type: table
  20480. #: guix-git/doc/guix.texi:13878
  20481. 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."
  20482. msgstr ""
  20483. #. type: item
  20484. #: guix-git/doc/guix.texi:13879 guix-git/doc/guix.texi:15499
  20485. #: guix-git/doc/guix.texi:18459 guix-git/doc/guix.texi:33534
  20486. #, no-wrap
  20487. msgid "@code{keyboard-layout} (default: @code{#f})"
  20488. msgstr ""
  20489. #. type: table
  20490. #: guix-git/doc/guix.texi:13884
  20491. 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."
  20492. msgstr ""
  20493. #. type: table
  20494. #: guix-git/doc/guix.texi:13889
  20495. 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})."
  20496. msgstr ""
  20497. #. type: quotation
  20498. #: guix-git/doc/guix.texi:13896
  20499. 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."
  20500. msgstr ""
  20501. #. type: item
  20502. #: guix-git/doc/guix.texi:13898
  20503. #, no-wrap
  20504. msgid "@code{initrd-modules} (default: @code{%base-initrd-modules})"
  20505. msgstr ""
  20506. #. type: cindex
  20507. #: guix-git/doc/guix.texi:13899 guix-git/doc/guix.texi:33216
  20508. #: guix-git/doc/guix.texi:33339
  20509. #, no-wrap
  20510. msgid "initrd"
  20511. msgstr ""
  20512. #. type: cindex
  20513. #: guix-git/doc/guix.texi:13900 guix-git/doc/guix.texi:33217
  20514. #: guix-git/doc/guix.texi:33340
  20515. #, no-wrap
  20516. msgid "initial RAM disk"
  20517. msgstr ""
  20518. #. type: table
  20519. #: guix-git/doc/guix.texi:13903
  20520. msgid "The list of Linux kernel modules that need to be available in the initial RAM disk. @xref{Initial RAM Disk}."
  20521. msgstr ""
  20522. #. type: item
  20523. #: guix-git/doc/guix.texi:13904
  20524. #, no-wrap
  20525. msgid "@code{initrd} (default: @code{base-initrd})"
  20526. msgstr ""
  20527. #. type: table
  20528. #: guix-git/doc/guix.texi:13908
  20529. 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}."
  20530. msgstr ""
  20531. #. type: item
  20532. #: guix-git/doc/guix.texi:13909
  20533. #, fuzzy, no-wrap
  20534. msgid "@code{firmware} (default: @code{%base-firmware})"
  20535. msgstr "@code{mate}(默认值:@code{mate})"
  20536. #. type: cindex
  20537. #: guix-git/doc/guix.texi:13910
  20538. #, no-wrap
  20539. msgid "firmware"
  20540. msgstr ""
  20541. #. type: table
  20542. #: guix-git/doc/guix.texi:13912
  20543. msgid "List of firmware packages loadable by the operating system kernel."
  20544. msgstr ""
  20545. #. type: table
  20546. #: guix-git/doc/guix.texi:13917
  20547. 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."
  20548. msgstr ""
  20549. #. type: code{#1}
  20550. #: guix-git/doc/guix.texi:13918 guix-git/doc/guix.texi:34438
  20551. #, no-wrap
  20552. msgid "host-name"
  20553. msgstr ""
  20554. #. type: table
  20555. #: guix-git/doc/guix.texi:13920
  20556. msgid "The host name."
  20557. msgstr ""
  20558. #. type: code{#1}
  20559. #: guix-git/doc/guix.texi:13921
  20560. #, no-wrap
  20561. msgid "hosts-file"
  20562. msgstr ""
  20563. #. type: cindex
  20564. #: guix-git/doc/guix.texi:13922
  20565. #, no-wrap
  20566. msgid "hosts file"
  20567. msgstr ""
  20568. #. type: table
  20569. #: guix-git/doc/guix.texi:13927
  20570. 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}."
  20571. msgstr ""
  20572. #. type: item
  20573. #: guix-git/doc/guix.texi:13928
  20574. #, no-wrap
  20575. msgid "@code{mapped-devices} (default: @code{'()})"
  20576. msgstr ""
  20577. #. type: table
  20578. #: guix-git/doc/guix.texi:13930
  20579. msgid "A list of mapped devices. @xref{Mapped Devices}."
  20580. msgstr ""
  20581. #. type: code{#1}
  20582. #: guix-git/doc/guix.texi:13931
  20583. #, no-wrap
  20584. msgid "file-systems"
  20585. msgstr ""
  20586. #. type: table
  20587. #: guix-git/doc/guix.texi:13933
  20588. msgid "A list of file systems. @xref{File Systems}."
  20589. msgstr ""
  20590. #. type: cindex
  20591. #: guix-git/doc/guix.texi:13934
  20592. #, no-wrap
  20593. msgid "swap devices"
  20594. msgstr ""
  20595. #. type: cindex
  20596. #: guix-git/doc/guix.texi:13935
  20597. #, no-wrap
  20598. msgid "swap space"
  20599. msgstr ""
  20600. #. type: item
  20601. #: guix-git/doc/guix.texi:13936
  20602. #, no-wrap
  20603. msgid "@code{swap-devices} (default: @code{'()})"
  20604. msgstr ""
  20605. #. type: table
  20606. #: guix-git/doc/guix.texi:13941
  20607. msgid "A list of UUIDs, file system labels, or strings identifying devices or files to be used for ``swap space'' (@pxref{Memory Concepts,,, libc, The GNU C Library Reference Manual}). Here are some examples:"
  20608. msgstr ""
  20609. #. type: item
  20610. #: guix-git/doc/guix.texi:13943
  20611. #, no-wrap
  20612. msgid "(list (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\"))"
  20613. msgstr ""
  20614. #. type: table
  20615. #: guix-git/doc/guix.texi:13947
  20616. 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."
  20617. msgstr ""
  20618. #. type: item
  20619. #: guix-git/doc/guix.texi:13948
  20620. #, no-wrap
  20621. msgid "(list (file-system-label \"swap\"))"
  20622. msgstr ""
  20623. #. type: table
  20624. #: guix-git/doc/guix.texi:13952
  20625. msgid "Use the partition with label @code{swap}. Again, the @command{swaplabel} command allows you to view and change the label of a Linux swap partition."
  20626. msgstr ""
  20627. #. type: item
  20628. #: guix-git/doc/guix.texi:13953
  20629. #, no-wrap
  20630. msgid "(list \"/swapfile\")"
  20631. msgstr ""
  20632. #. type: table
  20633. #: guix-git/doc/guix.texi:13955
  20634. msgid "Use the file @file{/swapfile} as swap space."
  20635. msgstr ""
  20636. #. type: item
  20637. #: guix-git/doc/guix.texi:13956
  20638. #, no-wrap
  20639. msgid "(list \"/dev/sda3\" \"/dev/sdb2\")"
  20640. msgstr ""
  20641. #. type: table
  20642. #: guix-git/doc/guix.texi:13960
  20643. msgid "Use the @file{/dev/sda3} and @file{/dev/sdb2} partitions as swap space. We recommend referring to swap devices by UUIDs or labels as shown above instead."
  20644. msgstr ""
  20645. #. type: table
  20646. #: guix-git/doc/guix.texi:13966
  20647. msgid "It is possible to specify a swap file in a file system on a mapped device (under @file{/dev/mapper}), provided that the necessary device mapping and file system are also specified. @xref{Mapped Devices} and @ref{File Systems}."
  20648. msgstr ""
  20649. #. type: item
  20650. #: guix-git/doc/guix.texi:13967
  20651. #, no-wrap
  20652. msgid "@code{users} (default: @code{%base-user-accounts})"
  20653. msgstr ""
  20654. #. type: itemx
  20655. #: guix-git/doc/guix.texi:13968
  20656. #, fuzzy, no-wrap
  20657. msgid "@code{groups} (default: @code{%base-groups})"
  20658. msgstr "@code{gnome}(默认值:@code{gnome})"
  20659. #. type: table
  20660. #: guix-git/doc/guix.texi:13970
  20661. msgid "List of user accounts and groups. @xref{User Accounts}."
  20662. msgstr ""
  20663. #. type: table
  20664. #: guix-git/doc/guix.texi:13973
  20665. msgid "If the @code{users} list lacks a user account with UID@tie{}0, a ``root'' account with UID@tie{}0 is automatically added."
  20666. msgstr ""
  20667. #. type: item
  20668. #: guix-git/doc/guix.texi:13974
  20669. #, no-wrap
  20670. msgid "@code{skeletons} (default: @code{(default-skeletons)})"
  20671. msgstr ""
  20672. #. type: table
  20673. #: guix-git/doc/guix.texi:13978
  20674. 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."
  20675. msgstr ""
  20676. #. type: table
  20677. #: guix-git/doc/guix.texi:13980
  20678. msgid "For instance, a valid value may look like this:"
  20679. msgstr ""
  20680. #. type: lisp
  20681. #: guix-git/doc/guix.texi:13986
  20682. #, no-wrap
  20683. msgid ""
  20684. "`((\".bashrc\" ,(plain-file \"bashrc\" \"echo Hello\\n\"))\n"
  20685. " (\".guile\" ,(plain-file \"guile\"\n"
  20686. " \"(use-modules (ice-9 readline))\n"
  20687. " (activate-readline)\")))\n"
  20688. msgstr ""
  20689. #. type: item
  20690. #: guix-git/doc/guix.texi:13988
  20691. #, fuzzy, no-wrap
  20692. msgid "@code{issue} (default: @code{%default-issue})"
  20693. msgstr "@code{mate}(默认值:@code{mate})"
  20694. #. type: table
  20695. #: guix-git/doc/guix.texi:13991
  20696. msgid "A string denoting the contents of the @file{/etc/issue} file, which is displayed when users log in on a text console."
  20697. msgstr ""
  20698. #. type: item
  20699. #: guix-git/doc/guix.texi:13992
  20700. #, fuzzy, no-wrap
  20701. msgid "@code{packages} (default: @code{%base-packages})"
  20702. msgstr "@code{xfce}(默认值:@code{xfce})"
  20703. #. type: table
  20704. #: guix-git/doc/guix.texi:13996
  20705. 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:"
  20706. msgstr ""
  20707. #. type: lisp
  20708. #: guix-git/doc/guix.texi:14001
  20709. #, no-wrap
  20710. msgid ""
  20711. "(cons* git ; the default \"out\" output\n"
  20712. " (list git \"send-email\") ; another output of git\n"
  20713. " %base-packages) ; the default set\n"
  20714. msgstr ""
  20715. #. type: table
  20716. #: guix-git/doc/guix.texi:14006
  20717. msgid "The default set includes core utilities and it is good practice to install non-core utilities in user profiles (@pxref{Invoking guix package})."
  20718. msgstr ""
  20719. #. type: code{#1}
  20720. #: guix-git/doc/guix.texi:14007
  20721. #, no-wrap
  20722. msgid "timezone"
  20723. msgstr ""
  20724. #. type: table
  20725. #: guix-git/doc/guix.texi:14009
  20726. msgid "A timezone identifying string---e.g., @code{\"Europe/Paris\"}."
  20727. msgstr ""
  20728. #. type: table
  20729. #: guix-git/doc/guix.texi:14013
  20730. 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."
  20731. msgstr ""
  20732. #. type: item
  20733. #: guix-git/doc/guix.texi:14014 guix-git/doc/guix.texi:20064
  20734. #, no-wrap
  20735. msgid "@code{locale} (default: @code{\"en_US.utf8\"})"
  20736. msgstr ""
  20737. #. type: table
  20738. #: guix-git/doc/guix.texi:14017
  20739. msgid "The name of the default locale (@pxref{Locale Names,,, libc, The GNU C Library Reference Manual}). @xref{Locales}, for more information."
  20740. msgstr ""
  20741. #. type: item
  20742. #: guix-git/doc/guix.texi:14018
  20743. #, fuzzy, no-wrap
  20744. msgid "@code{locale-definitions} (default: @code{%default-locale-definitions})"
  20745. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  20746. #. type: table
  20747. #: guix-git/doc/guix.texi:14021
  20748. msgid "The list of locale definitions to be compiled and that may be used at run time. @xref{Locales}."
  20749. msgstr ""
  20750. #. type: item
  20751. #: guix-git/doc/guix.texi:14022
  20752. #, no-wrap
  20753. msgid "@code{locale-libcs} (default: @code{(list @var{glibc})})"
  20754. msgstr ""
  20755. #. type: table
  20756. #: guix-git/doc/guix.texi:14026
  20757. 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."
  20758. msgstr ""
  20759. #. type: item
  20760. #: guix-git/doc/guix.texi:14027
  20761. #, fuzzy, no-wrap
  20762. msgid "@code{name-service-switch} (default: @code{%default-nss})"
  20763. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  20764. #. type: table
  20765. #: guix-git/doc/guix.texi:14031
  20766. msgid "Configuration of the libc name service switch (NSS)---a @code{<name-service-switch>} object. @xref{Name Service Switch}, for details."
  20767. msgstr ""
  20768. #. type: item
  20769. #: guix-git/doc/guix.texi:14032
  20770. #, fuzzy, no-wrap
  20771. msgid "@code{services} (default: @code{%base-services})"
  20772. msgstr "@code{xfce}(默认值:@code{xfce})"
  20773. #. type: table
  20774. #: guix-git/doc/guix.texi:14034
  20775. msgid "A list of service objects denoting system services. @xref{Services}."
  20776. msgstr ""
  20777. #. type: cindex
  20778. #: guix-git/doc/guix.texi:14035
  20779. #, no-wrap
  20780. msgid "essential services"
  20781. msgstr ""
  20782. #. type: item
  20783. #: guix-git/doc/guix.texi:14036
  20784. #, no-wrap
  20785. msgid "@code{essential-services} (default: ...)"
  20786. msgstr ""
  20787. #. type: table
  20788. #: guix-git/doc/guix.texi:14041
  20789. 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."
  20790. msgstr ""
  20791. #. type: item
  20792. #: guix-git/doc/guix.texi:14042
  20793. #, no-wrap
  20794. msgid "@code{pam-services} (default: @code{(base-pam-services)})"
  20795. msgstr ""
  20796. #. type: cindex
  20797. #: guix-git/doc/guix.texi:14043
  20798. #, no-wrap
  20799. msgid "PAM"
  20800. msgstr ""
  20801. #. type: cindex
  20802. #: guix-git/doc/guix.texi:14044
  20803. #, no-wrap
  20804. msgid "pluggable authentication modules"
  20805. msgstr ""
  20806. #. type: table
  20807. #: guix-git/doc/guix.texi:14047
  20808. msgid "Linux @dfn{pluggable authentication module} (PAM) services."
  20809. msgstr ""
  20810. #. type: item
  20811. #: guix-git/doc/guix.texi:14048
  20812. #, fuzzy, no-wrap
  20813. msgid "@code{setuid-programs} (default: @code{%setuid-programs})"
  20814. msgstr "@code{features} (@code{'()})"
  20815. #. type: table
  20816. #: guix-git/doc/guix.texi:14051
  20817. msgid "List of @code{<setuid-program>}. @xref{Setuid Programs}, for more information."
  20818. msgstr ""
  20819. #. type: item
  20820. #: guix-git/doc/guix.texi:14052
  20821. #, fuzzy, no-wrap
  20822. msgid "@code{sudoers-file} (default: @code{%sudoers-specification})"
  20823. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  20824. #. type: cindex
  20825. #: guix-git/doc/guix.texi:14053
  20826. #, no-wrap
  20827. msgid "sudoers file"
  20828. msgstr ""
  20829. #. type: table
  20830. #: guix-git/doc/guix.texi:14056
  20831. msgid "The contents of the @file{/etc/sudoers} file as a file-like object (@pxref{G-Expressions, @code{local-file} and @code{plain-file}})."
  20832. msgstr ""
  20833. #. type: table
  20834. #: guix-git/doc/guix.texi:14061
  20835. 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}."
  20836. msgstr ""
  20837. #. type: deffn
  20838. #: guix-git/doc/guix.texi:14064
  20839. #, no-wrap
  20840. msgid "{Scheme Syntax} this-operating-system"
  20841. msgstr ""
  20842. #. type: deffn
  20843. #: guix-git/doc/guix.texi:14067
  20844. msgid "When used in the @emph{lexical scope} of an operating system field definition, this identifier resolves to the operating system being defined."
  20845. msgstr ""
  20846. #. type: deffn
  20847. #: guix-git/doc/guix.texi:14070
  20848. msgid "The example below shows how to refer to the operating system being defined in the definition of the @code{label} field:"
  20849. msgstr ""
  20850. #. type: lisp
  20851. #: guix-git/doc/guix.texi:14073 guix-git/doc/guix.texi:17680
  20852. #, no-wrap
  20853. msgid ""
  20854. "(use-modules (gnu) (guix))\n"
  20855. "\n"
  20856. msgstr ""
  20857. #. type: lisp
  20858. #: guix-git/doc/guix.texi:14078
  20859. #, no-wrap
  20860. msgid ""
  20861. "(operating-system\n"
  20862. " ;; ...\n"
  20863. " (label (package-full-name\n"
  20864. " (operating-system-kernel this-operating-system))))\n"
  20865. msgstr ""
  20866. #. type: deffn
  20867. #: guix-git/doc/guix.texi:14082
  20868. msgid "It is an error to refer to @code{this-operating-system} outside an operating system definition."
  20869. msgstr ""
  20870. #. type: Plain text
  20871. #: guix-git/doc/guix.texi:14093
  20872. 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:"
  20873. msgstr ""
  20874. #. type: lisp
  20875. #: guix-git/doc/guix.texi:14099
  20876. #, no-wrap
  20877. msgid ""
  20878. "(file-system\n"
  20879. " (mount-point \"/home\")\n"
  20880. " (device \"/dev/sda3\")\n"
  20881. " (type \"ext4\"))\n"
  20882. msgstr ""
  20883. #. type: Plain text
  20884. #: guix-git/doc/guix.texi:14103
  20885. msgid "As usual, some of the fields are mandatory---those shown in the example above---while others can be omitted. These are described below."
  20886. msgstr ""
  20887. #. type: deftp
  20888. #: guix-git/doc/guix.texi:14104
  20889. #, no-wrap
  20890. msgid "{Data Type} file-system"
  20891. msgstr ""
  20892. #. type: deftp
  20893. #: guix-git/doc/guix.texi:14107
  20894. msgid "Objects of this type represent file systems to be mounted. They contain the following members:"
  20895. msgstr ""
  20896. #. type: item
  20897. #: guix-git/doc/guix.texi:14109 guix-git/doc/guix.texi:14489
  20898. #, no-wrap
  20899. msgid "type"
  20900. msgstr ""
  20901. #. type: table
  20902. #: guix-git/doc/guix.texi:14112
  20903. msgid "This is a string specifying the type of the file system---e.g., @code{\"ext4\"}."
  20904. msgstr ""
  20905. #. type: code{#1}
  20906. #: guix-git/doc/guix.texi:14113
  20907. #, no-wrap
  20908. msgid "mount-point"
  20909. msgstr ""
  20910. #. type: table
  20911. #: guix-git/doc/guix.texi:14115
  20912. msgid "This designates the place where the file system is to be mounted."
  20913. msgstr ""
  20914. #. type: code{#1}
  20915. #: guix-git/doc/guix.texi:14116
  20916. #, no-wrap
  20917. msgid "device"
  20918. msgstr ""
  20919. #. type: table
  20920. #: guix-git/doc/guix.texi:14126
  20921. 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.}."
  20922. msgstr ""
  20923. #. type: findex
  20924. #: guix-git/doc/guix.texi:14127
  20925. #, no-wrap
  20926. msgid "file-system-label"
  20927. msgstr ""
  20928. #. type: table
  20929. #: guix-git/doc/guix.texi:14132
  20930. 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:"
  20931. msgstr ""
  20932. #. type: lisp
  20933. #: guix-git/doc/guix.texi:14138
  20934. #, no-wrap
  20935. msgid ""
  20936. "(file-system\n"
  20937. " (mount-point \"/home\")\n"
  20938. " (type \"ext4\")\n"
  20939. " (device (file-system-label \"my-home\")))\n"
  20940. msgstr ""
  20941. #. type: code{#1}
  20942. #: guix-git/doc/guix.texi:14140 guix-git/doc/guix.texi:32023
  20943. #: guix-git/doc/guix.texi:32039
  20944. #, no-wrap
  20945. msgid "uuid"
  20946. msgstr ""
  20947. #. type: table
  20948. #: guix-git/doc/guix.texi:14148
  20949. 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:"
  20950. msgstr ""
  20951. #. type: lisp
  20952. #: guix-git/doc/guix.texi:14154
  20953. #, no-wrap
  20954. msgid ""
  20955. "(file-system\n"
  20956. " (mount-point \"/home\")\n"
  20957. " (type \"ext4\")\n"
  20958. " (device (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  20959. msgstr ""
  20960. #. type: table
  20961. #: guix-git/doc/guix.texi:14162
  20962. 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."
  20963. msgstr ""
  20964. #. type: item
  20965. #: guix-git/doc/guix.texi:14163
  20966. #, no-wrap
  20967. msgid "@code{flags} (default: @code{'()})"
  20968. msgstr ""
  20969. #. type: table
  20970. #: guix-git/doc/guix.texi:14173
  20971. 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."
  20972. msgstr ""
  20973. #. type: item
  20974. #: guix-git/doc/guix.texi:14174
  20975. #, no-wrap
  20976. msgid "@code{options} (default: @code{#f})"
  20977. msgstr ""
  20978. #. type: table
  20979. #: guix-git/doc/guix.texi:14183
  20980. 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."
  20981. msgstr ""
  20982. #. type: item
  20983. #: guix-git/doc/guix.texi:14184
  20984. #, no-wrap
  20985. msgid "@code{mount?} (default: @code{#t})"
  20986. msgstr ""
  20987. #. type: table
  20988. #: guix-git/doc/guix.texi:14189
  20989. 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."
  20990. msgstr ""
  20991. #. type: item
  20992. #: guix-git/doc/guix.texi:14190
  20993. #, no-wrap
  20994. msgid "@code{needed-for-boot?} (default: @code{#f})"
  20995. msgstr ""
  20996. #. type: table
  20997. #: guix-git/doc/guix.texi:14195
  20998. 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."
  20999. msgstr ""
  21000. #. type: item
  21001. #: guix-git/doc/guix.texi:14196
  21002. #, no-wrap
  21003. msgid "@code{check?} (default: @code{#t})"
  21004. msgstr ""
  21005. #. type: table
  21006. #: guix-git/doc/guix.texi:14200
  21007. 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."
  21008. msgstr ""
  21009. #. type: item
  21010. #: guix-git/doc/guix.texi:14201
  21011. #, fuzzy, no-wrap
  21012. msgid "@code{skip-check-if-clean?} (default: @code{#t})"
  21013. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  21014. #. type: table
  21015. #: guix-git/doc/guix.texi:14206
  21016. 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."
  21017. msgstr ""
  21018. #. type: table
  21019. #: guix-git/doc/guix.texi:14210
  21020. 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!"
  21021. msgstr ""
  21022. #. type: table
  21023. #: guix-git/doc/guix.texi:14214
  21024. 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."
  21025. msgstr ""
  21026. #. type: item
  21027. #: guix-git/doc/guix.texi:14215
  21028. #, fuzzy, no-wrap
  21029. msgid "@code{repair} (default: @code{'preen})"
  21030. msgstr "@code{features} (@code{'()})"
  21031. #. type: table
  21032. #: guix-git/doc/guix.texi:14218
  21033. msgid "When @code{check?} finds errors, it can (try to) repair them and continue booting. This option controls when and how to do so."
  21034. msgstr ""
  21035. #. type: table
  21036. #: guix-git/doc/guix.texi:14222
  21037. 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."
  21038. msgstr ""
  21039. #. type: table
  21040. #: guix-git/doc/guix.texi:14225
  21041. 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."
  21042. msgstr ""
  21043. #. type: table
  21044. #: guix-git/doc/guix.texi:14229
  21045. 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''."
  21046. msgstr ""
  21047. #. type: item
  21048. #: guix-git/doc/guix.texi:14230
  21049. #, no-wrap
  21050. msgid "@code{create-mount-point?} (default: @code{#f})"
  21051. msgstr ""
  21052. #. type: table
  21053. #: guix-git/doc/guix.texi:14232
  21054. msgid "When true, the mount point is created if it does not exist yet."
  21055. msgstr ""
  21056. #. type: item
  21057. #: guix-git/doc/guix.texi:14233
  21058. #, fuzzy, no-wrap
  21059. msgid "@code{mount-may-fail?} (default: @code{#f})"
  21060. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  21061. #. type: table
  21062. #: guix-git/doc/guix.texi:14238
  21063. 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."
  21064. msgstr ""
  21065. #. type: item
  21066. #: guix-git/doc/guix.texi:14239
  21067. #, no-wrap
  21068. msgid "@code{dependencies} (default: @code{'()})"
  21069. msgstr ""
  21070. #. type: table
  21071. #: guix-git/doc/guix.texi:14243
  21072. 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."
  21073. msgstr ""
  21074. #. type: table
  21075. #: guix-git/doc/guix.texi:14247
  21076. 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}."
  21077. msgstr ""
  21078. #. type: table
  21079. #: guix-git/doc/guix.texi:14250
  21080. msgid "Another example is a file system that depends on a mapped device, for example for an encrypted partition (@pxref{Mapped Devices})."
  21081. msgstr ""
  21082. #. type: deffn
  21083. #: guix-git/doc/guix.texi:14253
  21084. #, no-wrap
  21085. msgid "{Scheme Procedure} file-system-label @var{str}"
  21086. msgstr ""
  21087. #. type: deffn
  21088. #: guix-git/doc/guix.texi:14256
  21089. msgid "This procedure returns an opaque file system label from @var{str}, a string:"
  21090. msgstr ""
  21091. #. type: lisp
  21092. #: guix-git/doc/guix.texi:14260
  21093. #, no-wrap
  21094. msgid ""
  21095. "(file-system-label \"home\")\n"
  21096. "@result{} #<file-system-label \"home\">\n"
  21097. msgstr ""
  21098. #. type: deffn
  21099. #: guix-git/doc/guix.texi:14264
  21100. msgid "File system labels are used to refer to file systems by label rather than by device name. See above for examples."
  21101. msgstr ""
  21102. #. type: Plain text
  21103. #: guix-git/doc/guix.texi:14268
  21104. msgid "The @code{(gnu system file-systems)} exports the following useful variables."
  21105. msgstr ""
  21106. #. type: defvr
  21107. #: guix-git/doc/guix.texi:14269
  21108. #, no-wrap
  21109. msgid "{Scheme Variable} %base-file-systems"
  21110. msgstr ""
  21111. #. type: defvr
  21112. #: guix-git/doc/guix.texi:14274
  21113. 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."
  21114. msgstr ""
  21115. #. type: defvr
  21116. #: guix-git/doc/guix.texi:14276
  21117. #, no-wrap
  21118. msgid "{Scheme Variable} %pseudo-terminal-file-system"
  21119. msgstr ""
  21120. #. type: defvr
  21121. #: guix-git/doc/guix.texi:14282
  21122. 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}."
  21123. msgstr ""
  21124. #. type: defvr
  21125. #: guix-git/doc/guix.texi:14284
  21126. #, no-wrap
  21127. msgid "{Scheme Variable} %shared-memory-file-system"
  21128. msgstr ""
  21129. #. type: defvr
  21130. #: guix-git/doc/guix.texi:14288
  21131. 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})."
  21132. msgstr ""
  21133. #. type: defvr
  21134. #: guix-git/doc/guix.texi:14290
  21135. #, no-wrap
  21136. msgid "{Scheme Variable} %immutable-store"
  21137. msgstr ""
  21138. #. type: defvr
  21139. #: guix-git/doc/guix.texi:14295
  21140. 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."
  21141. msgstr ""
  21142. #. type: defvr
  21143. #: guix-git/doc/guix.texi:14298
  21144. msgid "The daemon itself is still able to write to the store: it remounts it read-write in its own ``name space.''"
  21145. msgstr ""
  21146. #. type: defvr
  21147. #: guix-git/doc/guix.texi:14300
  21148. #, no-wrap
  21149. msgid "{Scheme Variable} %binary-format-file-system"
  21150. msgstr ""
  21151. #. type: defvr
  21152. #: guix-git/doc/guix.texi:14304
  21153. 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."
  21154. msgstr ""
  21155. #. type: defvr
  21156. #: guix-git/doc/guix.texi:14306
  21157. #, no-wrap
  21158. msgid "{Scheme Variable} %fuse-control-file-system"
  21159. msgstr ""
  21160. #. type: defvr
  21161. #: guix-git/doc/guix.texi:14310
  21162. 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."
  21163. msgstr ""
  21164. #. type: Plain text
  21165. #: guix-git/doc/guix.texi:14314
  21166. msgid "The @code{(gnu system uuid)} module provides tools to deal with file system ``unique identifiers'' (UUIDs)."
  21167. msgstr ""
  21168. #. type: deffn
  21169. #: guix-git/doc/guix.texi:14315
  21170. #, no-wrap
  21171. msgid "{Scheme Procedure} uuid @var{str} [@var{type}]"
  21172. msgstr ""
  21173. #. type: deffn
  21174. #: guix-git/doc/guix.texi:14318
  21175. msgid "Return an opaque UUID (unique identifier) object of the given @var{type} (a symbol) by parsing @var{str} (a string):"
  21176. msgstr ""
  21177. #. type: lisp
  21178. #: guix-git/doc/guix.texi:14322
  21179. #, no-wrap
  21180. msgid ""
  21181. "(uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")\n"
  21182. "@result{} #<<uuid> type: dce bv: @dots{}>\n"
  21183. "\n"
  21184. msgstr ""
  21185. #. type: lisp
  21186. #: guix-git/doc/guix.texi:14325
  21187. #, no-wrap
  21188. msgid ""
  21189. "(uuid \"1234-ABCD\" 'fat)\n"
  21190. "@result{} #<<uuid> type: fat bv: @dots{}>\n"
  21191. msgstr ""
  21192. #. type: deffn
  21193. #: guix-git/doc/guix.texi:14329
  21194. msgid "@var{type} may be one of @code{dce}, @code{iso9660}, @code{fat}, @code{ntfs}, or one of the commonly found synonyms for these."
  21195. msgstr ""
  21196. #. type: deffn
  21197. #: guix-git/doc/guix.texi:14332
  21198. msgid "UUIDs are another way to unambiguously refer to file systems in operating system configuration. See the examples above."
  21199. msgstr ""
  21200. #. type: subsection
  21201. #: guix-git/doc/guix.texi:14335 guix-git/doc/guix.texi:14336
  21202. #, fuzzy, no-wrap
  21203. msgid "Btrfs file system"
  21204. msgstr "网络文件系统"
  21205. #. type: Plain text
  21206. #: guix-git/doc/guix.texi:14342
  21207. 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."
  21208. msgstr ""
  21209. #. type: Plain text
  21210. #: guix-git/doc/guix.texi:14345
  21211. msgid "In its simplest usage, a Btrfs file system can be described, for example, by:"
  21212. msgstr ""
  21213. #. type: lisp
  21214. #: guix-git/doc/guix.texi:14351
  21215. #, no-wrap
  21216. msgid ""
  21217. "(file-system\n"
  21218. " (mount-point \"/home\")\n"
  21219. " (type \"btrfs\")\n"
  21220. " (device (file-system-label \"my-home\")))\n"
  21221. msgstr ""
  21222. #. type: Plain text
  21223. #: guix-git/doc/guix.texi:14357
  21224. 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}):"
  21225. msgstr ""
  21226. #. type: lisp
  21227. #: guix-git/doc/guix.texi:14365
  21228. #, no-wrap
  21229. msgid ""
  21230. "(file-system\n"
  21231. " (device (file-system-label \"my-btrfs-pool\"))\n"
  21232. " (mount-point \"/\")\n"
  21233. " (type \"btrfs\")\n"
  21234. " (options \"subvol=rootfs\")\n"
  21235. " (dependencies mapped-devices))\n"
  21236. msgstr ""
  21237. #. type: Plain text
  21238. #: guix-git/doc/guix.texi:14376
  21239. 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."
  21240. msgstr ""
  21241. #. type: Plain text
  21242. #: guix-git/doc/guix.texi:14384
  21243. 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.:"
  21244. msgstr ""
  21245. #. type: example
  21246. #: guix-git/doc/guix.texi:14391
  21247. #, no-wrap
  21248. msgid ""
  21249. "/ (top level)\n"
  21250. "├── rootfs (subvolume directory)\n"
  21251. " ├── gnu (normal directory)\n"
  21252. " ├── store (normal directory)\n"
  21253. "[...]\n"
  21254. msgstr ""
  21255. #. type: Plain text
  21256. #: guix-git/doc/guix.texi:14396
  21257. 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."
  21258. msgstr ""
  21259. #. type: Plain text
  21260. #: guix-git/doc/guix.texi:14399
  21261. msgid "The next example shows a nested hierarchy of subvolumes and directories:"
  21262. msgstr ""
  21263. #. type: example
  21264. #: guix-git/doc/guix.texi:14406
  21265. #, no-wrap
  21266. msgid ""
  21267. "/ (top level)\n"
  21268. "├── rootfs (subvolume)\n"
  21269. " ├── gnu (normal directory)\n"
  21270. " ├── store (subvolume)\n"
  21271. "[...]\n"
  21272. msgstr ""
  21273. #. type: Plain text
  21274. #: guix-git/doc/guix.texi:14413
  21275. 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}."
  21276. msgstr ""
  21277. #. type: Plain text
  21278. #: guix-git/doc/guix.texi:14415
  21279. msgid "Finally, a more contrived example of nested subvolumes:"
  21280. msgstr ""
  21281. #. type: example
  21282. #: guix-git/doc/guix.texi:14422
  21283. #, no-wrap
  21284. msgid ""
  21285. "/ (top level)\n"
  21286. "├── root-snapshots (subvolume)\n"
  21287. " ├── root-current (subvolume)\n"
  21288. " ├── guix-store (subvolume)\n"
  21289. "[...]\n"
  21290. msgstr ""
  21291. #. type: Plain text
  21292. #: guix-git/doc/guix.texi:14429
  21293. 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:"
  21294. msgstr ""
  21295. #. type: lisp
  21296. #: guix-git/doc/guix.texi:14437
  21297. #, no-wrap
  21298. msgid ""
  21299. "(file-system\n"
  21300. " (device (file-system-label \"btrfs-pool-1\"))\n"
  21301. " (mount-point \"/gnu/store\")\n"
  21302. " (type \"btrfs\")\n"
  21303. " (options \"subvol=root-snapshots/root-current/guix-store,\\\n"
  21304. "compress-force=zstd,space_cache=v2\"))\n"
  21305. msgstr ""
  21306. #. type: cindex
  21307. #: guix-git/doc/guix.texi:14442
  21308. #, no-wrap
  21309. msgid "device mapping"
  21310. msgstr ""
  21311. #. type: cindex
  21312. #: guix-git/doc/guix.texi:14443
  21313. #, no-wrap
  21314. msgid "mapped devices"
  21315. msgstr ""
  21316. #. type: Plain text
  21317. #: guix-git/doc/guix.texi:14460
  21318. 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."
  21319. msgstr ""
  21320. #. type: Plain text
  21321. #: guix-git/doc/guix.texi:14463
  21322. msgid "Mapped devices are declared using the @code{mapped-device} form, defined as follows; for examples, see below."
  21323. msgstr ""
  21324. #. type: deftp
  21325. #: guix-git/doc/guix.texi:14464
  21326. #, no-wrap
  21327. msgid "{Data Type} mapped-device"
  21328. msgstr ""
  21329. #. type: deftp
  21330. #: guix-git/doc/guix.texi:14467
  21331. msgid "Objects of this type represent device mappings that will be made when the system boots up."
  21332. msgstr ""
  21333. #. type: table
  21334. #: guix-git/doc/guix.texi:14474
  21335. 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."
  21336. msgstr ""
  21337. #. type: item
  21338. #: guix-git/doc/guix.texi:14475
  21339. #, no-wrap
  21340. msgid "target"
  21341. msgstr ""
  21342. #. type: table
  21343. #: guix-git/doc/guix.texi:14484
  21344. 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\"}."
  21345. msgstr ""
  21346. #. type: code{#1}
  21347. #: guix-git/doc/guix.texi:14485 guix-git/doc/guix.texi:33506
  21348. #, no-wrap
  21349. msgid "targets"
  21350. msgstr ""
  21351. #. type: table
  21352. #: guix-git/doc/guix.texi:14488
  21353. msgid "This list of strings specifies names of the resulting mapped devices in case there are several. The format is identical to @var{target}."
  21354. msgstr ""
  21355. #. type: table
  21356. #: guix-git/doc/guix.texi:14492
  21357. msgid "This must be a @code{mapped-device-kind} object, which specifies how @var{source} is mapped to @var{target}."
  21358. msgstr ""
  21359. #. type: defvr
  21360. #: guix-git/doc/guix.texi:14495
  21361. #, no-wrap
  21362. msgid "{Scheme Variable} luks-device-mapping"
  21363. msgstr ""
  21364. #. type: defvr
  21365. #: guix-git/doc/guix.texi:14499
  21366. 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."
  21367. msgstr ""
  21368. #. type: defvr
  21369. #: guix-git/doc/guix.texi:14501
  21370. #, no-wrap
  21371. msgid "{Scheme Variable} raid-device-mapping"
  21372. msgstr ""
  21373. #. type: defvr
  21374. #: guix-git/doc/guix.texi:14506
  21375. 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."
  21376. msgstr ""
  21377. #. type: cindex
  21378. #: guix-git/doc/guix.texi:14508
  21379. #, no-wrap
  21380. msgid "LVM, logical volume manager"
  21381. msgstr ""
  21382. #. type: defvr
  21383. #: guix-git/doc/guix.texi:14509
  21384. #, no-wrap
  21385. msgid "{Scheme Variable} lvm-device-mapping"
  21386. msgstr ""
  21387. #. type: defvr
  21388. #: guix-git/doc/guix.texi:14514
  21389. 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."
  21390. msgstr ""
  21391. #. type: cindex
  21392. #: guix-git/doc/guix.texi:14516
  21393. #, no-wrap
  21394. msgid "disk encryption"
  21395. msgstr ""
  21396. #. type: cindex
  21397. #: guix-git/doc/guix.texi:14517
  21398. #, no-wrap
  21399. msgid "LUKS"
  21400. msgstr ""
  21401. #. type: Plain text
  21402. #: guix-git/doc/guix.texi:14525
  21403. 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})."
  21404. msgstr ""
  21405. #. type: lisp
  21406. #: guix-git/doc/guix.texi:14531
  21407. #, no-wrap
  21408. msgid ""
  21409. "(mapped-device\n"
  21410. " (source \"/dev/sda3\")\n"
  21411. " (target \"home\")\n"
  21412. " (type luks-device-mapping))\n"
  21413. msgstr ""
  21414. #. type: Plain text
  21415. #: guix-git/doc/guix.texi:14536
  21416. 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:"
  21417. msgstr ""
  21418. #. type: example
  21419. #: guix-git/doc/guix.texi:14539
  21420. #, no-wrap
  21421. msgid "cryptsetup luksUUID /dev/sda3\n"
  21422. msgstr ""
  21423. #. type: Plain text
  21424. #: guix-git/doc/guix.texi:14542
  21425. msgid "and use it as follows:"
  21426. msgstr ""
  21427. #. type: lisp
  21428. #: guix-git/doc/guix.texi:14548
  21429. #, no-wrap
  21430. msgid ""
  21431. "(mapped-device\n"
  21432. " (source (uuid \"cb67fc72-0d54-4c88-9d4b-b225f30b0f44\"))\n"
  21433. " (target \"home\")\n"
  21434. " (type luks-device-mapping))\n"
  21435. msgstr ""
  21436. #. type: cindex
  21437. #: guix-git/doc/guix.texi:14550
  21438. #, no-wrap
  21439. msgid "swap encryption"
  21440. msgstr ""
  21441. #. type: Plain text
  21442. #: guix-git/doc/guix.texi:14556
  21443. msgid "It is also desirable to encrypt swap space, since swap space may contain sensitive data. One way to accomplish that is to use a swap file in a file system on a device mapped via LUKS encryption. In this way, the swap file is encrypted because the entire device is encrypted. @xref{Preparing for Installation,,Disk Partitioning}, for an example."
  21444. msgstr ""
  21445. #. type: Plain text
  21446. #: guix-git/doc/guix.texi:14559
  21447. msgid "A RAID device formed of the partitions @file{/dev/sda1} and @file{/dev/sdb1} may be declared as follows:"
  21448. msgstr ""
  21449. #. type: lisp
  21450. #: guix-git/doc/guix.texi:14565
  21451. #, no-wrap
  21452. msgid ""
  21453. "(mapped-device\n"
  21454. " (source (list \"/dev/sda1\" \"/dev/sdb1\"))\n"
  21455. " (target \"/dev/md0\")\n"
  21456. " (type raid-device-mapping))\n"
  21457. msgstr ""
  21458. #. type: Plain text
  21459. #: guix-git/doc/guix.texi:14572
  21460. 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."
  21461. msgstr ""
  21462. #. type: Plain text
  21463. #: guix-git/doc/guix.texi:14575
  21464. msgid "LVM logical volumes ``alpha'' and ``beta'' from volume group ``vg0'' can be declared as follows:"
  21465. msgstr ""
  21466. #. type: lisp
  21467. #: guix-git/doc/guix.texi:14581
  21468. #, no-wrap
  21469. msgid ""
  21470. "(mapped-device\n"
  21471. " (source \"vg0\")\n"
  21472. " (targets (list \"vg0-alpha\" \"vg0-beta\"))\n"
  21473. " (type lvm-device-mapping))\n"
  21474. msgstr ""
  21475. #. type: Plain text
  21476. #: guix-git/doc/guix.texi:14586
  21477. 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})."
  21478. msgstr ""
  21479. #. type: cindex
  21480. #: guix-git/doc/guix.texi:14590
  21481. #, no-wrap
  21482. msgid "users"
  21483. msgstr ""
  21484. #. type: cindex
  21485. #: guix-git/doc/guix.texi:14591
  21486. #, no-wrap
  21487. msgid "accounts"
  21488. msgstr ""
  21489. #. type: cindex
  21490. #: guix-git/doc/guix.texi:14592
  21491. #, no-wrap
  21492. msgid "user accounts"
  21493. msgstr ""
  21494. #. type: Plain text
  21495. #: guix-git/doc/guix.texi:14596
  21496. 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:"
  21497. msgstr ""
  21498. #. type: lisp
  21499. #: guix-git/doc/guix.texi:14606
  21500. #, no-wrap
  21501. msgid ""
  21502. "(user-account\n"
  21503. " (name \"alice\")\n"
  21504. " (group \"users\")\n"
  21505. " (supplementary-groups '(\"wheel\" ;allow use of sudo, etc.\n"
  21506. " \"audio\" ;sound card\n"
  21507. " \"video\" ;video devices such as webcams\n"
  21508. " \"cdrom\")) ;the good ol' CD-ROM\n"
  21509. " (comment \"Bob's sister\"))\n"
  21510. msgstr ""
  21511. #. type: Plain text
  21512. #: guix-git/doc/guix.texi:14610
  21513. msgid "Here's a user account that uses a different shell and a custom home directory (the default would be @file{\"/home/bob\"}):"
  21514. msgstr ""
  21515. #. type: lisp
  21516. #: guix-git/doc/guix.texi:14618
  21517. #, no-wrap
  21518. msgid ""
  21519. "(user-account\n"
  21520. " (name \"bob\")\n"
  21521. " (group \"users\")\n"
  21522. " (comment \"Alice's bro\")\n"
  21523. " (shell (file-append zsh \"/bin/zsh\"))\n"
  21524. " (home-directory \"/home/robert\"))\n"
  21525. msgstr ""
  21526. #. type: Plain text
  21527. #: guix-git/doc/guix.texi:14627
  21528. 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."
  21529. msgstr ""
  21530. #. type: deftp
  21531. #: guix-git/doc/guix.texi:14628
  21532. #, no-wrap
  21533. msgid "{Data Type} user-account"
  21534. msgstr ""
  21535. #. type: deftp
  21536. #: guix-git/doc/guix.texi:14631
  21537. msgid "Objects of this type represent user accounts. The following members may be specified:"
  21538. msgstr ""
  21539. #. type: table
  21540. #: guix-git/doc/guix.texi:14635
  21541. msgid "The name of the user account."
  21542. msgstr ""
  21543. #. type: itemx
  21544. #: guix-git/doc/guix.texi:14636 guix-git/doc/guix.texi:33170
  21545. #, no-wrap
  21546. msgid "group"
  21547. msgstr ""
  21548. #. type: cindex
  21549. #: guix-git/doc/guix.texi:14637 guix-git/doc/guix.texi:14716
  21550. #, no-wrap
  21551. msgid "groups"
  21552. msgstr ""
  21553. #. type: table
  21554. #: guix-git/doc/guix.texi:14640
  21555. msgid "This is the name (a string) or identifier (a number) of the user group this account belongs to."
  21556. msgstr ""
  21557. #. type: item
  21558. #: guix-git/doc/guix.texi:14641
  21559. #, no-wrap
  21560. msgid "@code{supplementary-groups} (default: @code{'()})"
  21561. msgstr ""
  21562. #. type: table
  21563. #: guix-git/doc/guix.texi:14644
  21564. msgid "Optionally, this can be defined as a list of group names that this account belongs to."
  21565. msgstr ""
  21566. #. type: item
  21567. #: guix-git/doc/guix.texi:14645
  21568. #, no-wrap
  21569. msgid "@code{uid} (default: @code{#f})"
  21570. msgstr ""
  21571. #. type: table
  21572. #: guix-git/doc/guix.texi:14649
  21573. 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."
  21574. msgstr ""
  21575. #. type: item
  21576. #: guix-git/doc/guix.texi:14650
  21577. #, no-wrap
  21578. msgid "@code{comment} (default: @code{\"\"})"
  21579. msgstr ""
  21580. #. type: table
  21581. #: guix-git/doc/guix.texi:14652
  21582. msgid "A comment about the account, such as the account owner's full name."
  21583. msgstr ""
  21584. #. type: code{#1}
  21585. #: guix-git/doc/guix.texi:14653
  21586. #, no-wrap
  21587. msgid "home-directory"
  21588. msgstr ""
  21589. #. type: table
  21590. #: guix-git/doc/guix.texi:14655
  21591. msgid "This is the name of the home directory for the account."
  21592. msgstr ""
  21593. #. type: item
  21594. #: guix-git/doc/guix.texi:14656
  21595. #, no-wrap
  21596. msgid "@code{create-home-directory?} (default: @code{#t})"
  21597. msgstr ""
  21598. #. type: table
  21599. #: guix-git/doc/guix.texi:14659
  21600. msgid "Indicates whether the home directory of this account should be created if it does not exist yet."
  21601. msgstr ""
  21602. #. type: item
  21603. #: guix-git/doc/guix.texi:14660
  21604. #, no-wrap
  21605. msgid "@code{shell} (default: Bash)"
  21606. msgstr ""
  21607. #. type: table
  21608. #: guix-git/doc/guix.texi:14664
  21609. 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:"
  21610. msgstr ""
  21611. #. type: lisp
  21612. #: guix-git/doc/guix.texi:14667
  21613. #, no-wrap
  21614. msgid "(file-append bash \"/bin/bash\")\n"
  21615. msgstr ""
  21616. #. type: table
  21617. #: guix-git/doc/guix.texi:14671
  21618. msgid "... and to the Zsh executable like that:"
  21619. msgstr ""
  21620. #. type: lisp
  21621. #: guix-git/doc/guix.texi:14674
  21622. #, no-wrap
  21623. msgid "(file-append zsh \"/bin/zsh\")\n"
  21624. msgstr ""
  21625. #. type: item
  21626. #: guix-git/doc/guix.texi:14676 guix-git/doc/guix.texi:14734
  21627. #, no-wrap
  21628. msgid "@code{system?} (default: @code{#f})"
  21629. msgstr ""
  21630. #. type: table
  21631. #: guix-git/doc/guix.texi:14680
  21632. 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."
  21633. msgstr ""
  21634. #. type: anchor{#1}
  21635. #: guix-git/doc/guix.texi:14682
  21636. msgid "user-account-password"
  21637. msgstr ""
  21638. #. type: cindex
  21639. #: guix-git/doc/guix.texi:14682
  21640. #, no-wrap
  21641. msgid "password, for user accounts"
  21642. msgstr ""
  21643. #. type: item
  21644. #: guix-git/doc/guix.texi:14683 guix-git/doc/guix.texi:14738
  21645. #, no-wrap
  21646. msgid "@code{password} (default: @code{#f})"
  21647. msgstr ""
  21648. #. type: table
  21649. #: guix-git/doc/guix.texi:14689
  21650. 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."
  21651. msgstr ""
  21652. #. type: table
  21653. #: guix-git/doc/guix.texi:14693
  21654. 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:"
  21655. msgstr ""
  21656. #. type: lisp
  21657. #: guix-git/doc/guix.texi:14698
  21658. #, no-wrap
  21659. msgid ""
  21660. "(user-account\n"
  21661. " (name \"charlie\")\n"
  21662. " (group \"users\")\n"
  21663. "\n"
  21664. msgstr ""
  21665. #. type: lisp
  21666. #: guix-git/doc/guix.texi:14701
  21667. #, no-wrap
  21668. msgid ""
  21669. " ;; Specify a SHA-512-hashed initial password.\n"
  21670. " (password (crypt \"InitialPassword!\" \"$6$abc\")))\n"
  21671. msgstr ""
  21672. #. type: quotation
  21673. #: guix-git/doc/guix.texi:14707
  21674. 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."
  21675. msgstr ""
  21676. #. type: table
  21677. #: guix-git/doc/guix.texi:14712
  21678. 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."
  21679. msgstr ""
  21680. #. type: Plain text
  21681. #: guix-git/doc/guix.texi:14718
  21682. msgid "User group declarations are even simpler:"
  21683. msgstr ""
  21684. #. type: lisp
  21685. #: guix-git/doc/guix.texi:14721
  21686. #, no-wrap
  21687. msgid "(user-group (name \"students\"))\n"
  21688. msgstr ""
  21689. #. type: deftp
  21690. #: guix-git/doc/guix.texi:14723
  21691. #, no-wrap
  21692. msgid "{Data Type} user-group"
  21693. msgstr ""
  21694. #. type: deftp
  21695. #: guix-git/doc/guix.texi:14725
  21696. msgid "This type is for, well, user groups. There are just a few fields:"
  21697. msgstr ""
  21698. #. type: table
  21699. #: guix-git/doc/guix.texi:14729
  21700. msgid "The name of the group."
  21701. msgstr ""
  21702. #. type: item
  21703. #: guix-git/doc/guix.texi:14730 guix-git/doc/guix.texi:29713
  21704. #, no-wrap
  21705. msgid "@code{id} (default: @code{#f})"
  21706. msgstr ""
  21707. #. type: table
  21708. #: guix-git/doc/guix.texi:14733
  21709. msgid "The group identifier (a number). If @code{#f}, a new number is automatically allocated when the group is created."
  21710. msgstr ""
  21711. #. type: table
  21712. #: guix-git/doc/guix.texi:14737
  21713. msgid "This Boolean value indicates whether the group is a ``system'' group. System groups have low numerical IDs."
  21714. msgstr ""
  21715. #. type: table
  21716. #: guix-git/doc/guix.texi:14741
  21717. msgid "What, user groups can have a password? Well, apparently yes. Unless @code{#f}, this field specifies the password of the group."
  21718. msgstr ""
  21719. #. type: Plain text
  21720. #: guix-git/doc/guix.texi:14747
  21721. msgid "For convenience, a variable lists all the basic user groups one may expect:"
  21722. msgstr ""
  21723. #. type: defvr
  21724. #: guix-git/doc/guix.texi:14748
  21725. #, no-wrap
  21726. msgid "{Scheme Variable} %base-groups"
  21727. msgstr ""
  21728. #. type: defvr
  21729. #: guix-git/doc/guix.texi:14753
  21730. 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''."
  21731. msgstr ""
  21732. #. type: defvr
  21733. #: guix-git/doc/guix.texi:14755
  21734. #, no-wrap
  21735. msgid "{Scheme Variable} %base-user-accounts"
  21736. msgstr ""
  21737. #. type: defvr
  21738. #: guix-git/doc/guix.texi:14758
  21739. 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."
  21740. msgstr ""
  21741. #. type: defvr
  21742. #: guix-git/doc/guix.texi:14761
  21743. 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."
  21744. msgstr ""
  21745. #. type: cindex
  21746. #: guix-git/doc/guix.texi:14767
  21747. #, no-wrap
  21748. msgid "keymap"
  21749. msgstr ""
  21750. #. type: Plain text
  21751. #: guix-git/doc/guix.texi:14775
  21752. 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."
  21753. msgstr ""
  21754. #. type: cindex
  21755. #: guix-git/doc/guix.texi:14776
  21756. #, no-wrap
  21757. msgid "keyboard layout, definition"
  21758. msgstr ""
  21759. #. type: Plain text
  21760. #: guix-git/doc/guix.texi:14778
  21761. msgid "There are three components that will want to know about your keyboard layout:"
  21762. msgstr ""
  21763. #. type: itemize
  21764. #: guix-git/doc/guix.texi:14785
  21765. 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."
  21766. msgstr ""
  21767. #. type: itemize
  21768. #: guix-git/doc/guix.texi:14790
  21769. msgid "The @emph{operating system kernel}, Linux, will need that so that the console is properly configured (@pxref{operating-system Reference, @code{keyboard-layout}})."
  21770. msgstr ""
  21771. #. type: itemize
  21772. #: guix-git/doc/guix.texi:14794
  21773. msgid "The @emph{graphical display server}, usually Xorg, also has its own idea of the keyboard layout (@pxref{X Window, @code{keyboard-layout}})."
  21774. msgstr ""
  21775. #. type: Plain text
  21776. #: guix-git/doc/guix.texi:14798
  21777. msgid "Guix allows you to configure all three separately but, fortunately, it allows you to share the same keyboard layout for all three components."
  21778. msgstr ""
  21779. #. type: cindex
  21780. #: guix-git/doc/guix.texi:14799
  21781. #, no-wrap
  21782. msgid "XKB, keyboard layouts"
  21783. msgstr ""
  21784. #. type: Plain text
  21785. #: guix-git/doc/guix.texi:14807
  21786. 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."
  21787. msgstr ""
  21788. #. type: deffn
  21789. #: guix-git/doc/guix.texi:14808
  21790. #, no-wrap
  21791. msgid "{Scheme Procedure} keyboard-layout @var{name} [@var{variant}] @"
  21792. msgstr ""
  21793. #. type: deffn
  21794. #: guix-git/doc/guix.texi:14811
  21795. msgid "[#:model] [#:options '()] Return a new keyboard layout with the given @var{name} and @var{variant}."
  21796. msgstr ""
  21797. #. type: deffn
  21798. #: guix-git/doc/guix.texi:14815
  21799. 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."
  21800. msgstr ""
  21801. #. type: Plain text
  21802. #: guix-git/doc/guix.texi:14818
  21803. msgid "Here are a few examples:"
  21804. msgstr ""
  21805. #. type: lisp
  21806. #: guix-git/doc/guix.texi:14823
  21807. #, no-wrap
  21808. msgid ""
  21809. ";; The German QWERTZ layout. Here we assume a standard\n"
  21810. ";; \"pc105\" keyboard model.\n"
  21811. "(keyboard-layout \"de\")\n"
  21812. "\n"
  21813. msgstr ""
  21814. #. type: lisp
  21815. #: guix-git/doc/guix.texi:14826
  21816. #, no-wrap
  21817. msgid ""
  21818. ";; The bépo variant of the French layout.\n"
  21819. "(keyboard-layout \"fr\" \"bepo\")\n"
  21820. "\n"
  21821. msgstr ""
  21822. #. type: lisp
  21823. #: guix-git/doc/guix.texi:14829
  21824. #, no-wrap
  21825. msgid ""
  21826. ";; The Catalan layout.\n"
  21827. "(keyboard-layout \"es\" \"cat\")\n"
  21828. "\n"
  21829. msgstr ""
  21830. #. type: lisp
  21831. #: guix-git/doc/guix.texi:14832
  21832. #, no-wrap
  21833. msgid ""
  21834. ";; Arabic layout with \"Alt-Shift\" to switch to US layout.\n"
  21835. "(keyboard-layout \"ar,us\" #:options '(\"grp:alt_shift_toggle\"))\n"
  21836. "\n"
  21837. msgstr ""
  21838. #. type: lisp
  21839. #: guix-git/doc/guix.texi:14839
  21840. #, no-wrap
  21841. msgid ""
  21842. ";; The Latin American Spanish layout. In addition, the\n"
  21843. ";; \"Caps Lock\" key is used as an additional \"Ctrl\" key,\n"
  21844. ";; and the \"Menu\" key is used as a \"Compose\" key to enter\n"
  21845. ";; accented letters.\n"
  21846. "(keyboard-layout \"latam\"\n"
  21847. " #:options '(\"ctrl:nocaps\" \"compose:menu\"))\n"
  21848. "\n"
  21849. msgstr ""
  21850. #. type: lisp
  21851. #: guix-git/doc/guix.texi:14842
  21852. #, no-wrap
  21853. msgid ""
  21854. ";; The Russian layout for a ThinkPad keyboard.\n"
  21855. "(keyboard-layout \"ru\" #:model \"thinkpad\")\n"
  21856. "\n"
  21857. msgstr ""
  21858. #. type: lisp
  21859. #: guix-git/doc/guix.texi:14847
  21860. #, no-wrap
  21861. msgid ""
  21862. ";; The \"US international\" layout, which is the US layout plus\n"
  21863. ";; dead keys to enter accented characters. This is for an\n"
  21864. ";; Apple MacBook keyboard.\n"
  21865. "(keyboard-layout \"us\" \"intl\" #:model \"macbook78\")\n"
  21866. msgstr ""
  21867. #. type: Plain text
  21868. #: guix-git/doc/guix.texi:14851
  21869. msgid "See the @file{share/X11/xkb} directory of the @code{xkeyboard-config} package for a complete list of supported layouts, variants, and models."
  21870. msgstr ""
  21871. #. type: cindex
  21872. #: guix-git/doc/guix.texi:14852
  21873. #, no-wrap
  21874. msgid "keyboard layout, configuration"
  21875. msgstr ""
  21876. #. type: Plain text
  21877. #: guix-git/doc/guix.texi:14856
  21878. 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:"
  21879. msgstr ""
  21880. #. type: findex
  21881. #: guix-git/doc/guix.texi:14857
  21882. #, no-wrap
  21883. msgid "set-xorg-configuration"
  21884. msgstr ""
  21885. #. type: lisp
  21886. #: guix-git/doc/guix.texi:14861
  21887. #, no-wrap
  21888. msgid ""
  21889. ";; Using the Turkish layout for the bootloader, the console,\n"
  21890. ";; and for Xorg.\n"
  21891. "\n"
  21892. msgstr ""
  21893. #. type: lisp
  21894. #: guix-git/doc/guix.texi:14873
  21895. #, no-wrap
  21896. msgid ""
  21897. "(operating-system\n"
  21898. " ;; ...\n"
  21899. " (keyboard-layout (keyboard-layout \"tr\")) ;for the console\n"
  21900. " (bootloader (bootloader-configuration\n"
  21901. " (bootloader grub-efi-bootloader)\n"
  21902. " (targets '(\"/boot/efi\"))\n"
  21903. " (keyboard-layout keyboard-layout))) ;for GRUB\n"
  21904. " (services (cons (set-xorg-configuration\n"
  21905. " (xorg-configuration ;for Xorg\n"
  21906. " (keyboard-layout keyboard-layout)))\n"
  21907. " %desktop-services)))\n"
  21908. msgstr ""
  21909. #. type: Plain text
  21910. #: guix-git/doc/guix.texi:14880
  21911. 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."
  21912. msgstr ""
  21913. #. type: Plain text
  21914. #: guix-git/doc/guix.texi:14883
  21915. 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:"
  21916. msgstr ""
  21917. #. type: itemize
  21918. #: guix-git/doc/guix.texi:14888
  21919. msgid "If you're using GNOME, its settings panel has a ``Region & Language'' entry where you can select one or more keyboard layouts."
  21920. msgstr ""
  21921. #. type: itemize
  21922. #: guix-git/doc/guix.texi:14893
  21923. 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:"
  21924. msgstr ""
  21925. #. type: example
  21926. #: guix-git/doc/guix.texi:14896
  21927. #, no-wrap
  21928. msgid "setxkbmap us dvorak\n"
  21929. msgstr ""
  21930. #. type: itemize
  21931. #: guix-git/doc/guix.texi:14903
  21932. 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:"
  21933. msgstr ""
  21934. #. type: example
  21935. #: guix-git/doc/guix.texi:14906
  21936. #, no-wrap
  21937. msgid "loadkeys fr-bepo\n"
  21938. msgstr ""
  21939. #. type: cindex
  21940. #: guix-git/doc/guix.texi:14912
  21941. #, no-wrap
  21942. msgid "locale"
  21943. msgstr ""
  21944. #. type: Plain text
  21945. #: guix-git/doc/guix.texi:14919
  21946. 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."
  21947. msgstr ""
  21948. #. type: cindex
  21949. #: guix-git/doc/guix.texi:14920
  21950. #, no-wrap
  21951. msgid "locale definition"
  21952. msgstr ""
  21953. #. type: Plain text
  21954. #: guix-git/doc/guix.texi:14924
  21955. 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}})."
  21956. msgstr ""
  21957. #. type: Plain text
  21958. #: guix-git/doc/guix.texi:14933
  21959. 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."
  21960. msgstr ""
  21961. #. type: Plain text
  21962. #: guix-git/doc/guix.texi:14936
  21963. msgid "For instance, to add the North Frisian locale for Germany, the value of that field may be:"
  21964. msgstr ""
  21965. #. type: lisp
  21966. #: guix-git/doc/guix.texi:14941
  21967. #, no-wrap
  21968. msgid ""
  21969. "(cons (locale-definition\n"
  21970. " (name \"fy_DE.utf8\") (source \"fy_DE\"))\n"
  21971. " %default-locale-definitions)\n"
  21972. msgstr ""
  21973. #. type: Plain text
  21974. #: guix-git/doc/guix.texi:14945
  21975. msgid "Likewise, to save space, one might want @code{locale-definitions} to list only the locales that are actually used, as in:"
  21976. msgstr ""
  21977. #. type: lisp
  21978. #: guix-git/doc/guix.texi:14950
  21979. #, no-wrap
  21980. msgid ""
  21981. "(list (locale-definition\n"
  21982. " (name \"ja_JP.eucjp\") (source \"ja_JP\")\n"
  21983. " (charset \"EUC-JP\")))\n"
  21984. msgstr ""
  21985. #. type: Plain text
  21986. #: guix-git/doc/guix.texi:14959
  21987. 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})."
  21988. msgstr ""
  21989. #. type: Plain text
  21990. #: guix-git/doc/guix.texi:14962
  21991. msgid "The @code{locale-definition} form is provided by the @code{(gnu system locale)} module. Details are given below."
  21992. msgstr ""
  21993. #. type: deftp
  21994. #: guix-git/doc/guix.texi:14963
  21995. #, no-wrap
  21996. msgid "{Data Type} locale-definition"
  21997. msgstr ""
  21998. #. type: deftp
  21999. #: guix-git/doc/guix.texi:14965
  22000. msgid "This is the data type of a locale definition."
  22001. msgstr ""
  22002. #. type: table
  22003. #: guix-git/doc/guix.texi:14971
  22004. msgid "The name of the locale. @xref{Locale Names,,, libc, The GNU C Library Reference Manual}, for more information on locale names."
  22005. msgstr ""
  22006. #. type: table
  22007. #: guix-git/doc/guix.texi:14975
  22008. msgid "The name of the source for that locale. This is typically the @code{@var{language}_@var{territory}} part of the locale name."
  22009. msgstr ""
  22010. #. type: item
  22011. #: guix-git/doc/guix.texi:14976
  22012. #, no-wrap
  22013. msgid "@code{charset} (default: @code{\"UTF-8\"})"
  22014. msgstr ""
  22015. #. type: table
  22016. #: guix-git/doc/guix.texi:14980
  22017. msgid "The ``character set'' or ``code set'' for that locale, @uref{https://www.iana.org/assignments/character-sets, as defined by IANA}."
  22018. msgstr ""
  22019. #. type: defvr
  22020. #: guix-git/doc/guix.texi:14984
  22021. #, no-wrap
  22022. msgid "{Scheme Variable} %default-locale-definitions"
  22023. msgstr ""
  22024. #. type: defvr
  22025. #: guix-git/doc/guix.texi:14988
  22026. 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."
  22027. msgstr ""
  22028. #. type: cindex
  22029. #: guix-git/doc/guix.texi:14989
  22030. #, no-wrap
  22031. msgid "locale name"
  22032. msgstr ""
  22033. #. type: cindex
  22034. #: guix-git/doc/guix.texi:14990
  22035. #, no-wrap
  22036. msgid "normalized codeset in locale names"
  22037. msgstr ""
  22038. #. type: defvr
  22039. #: guix-git/doc/guix.texi:14996
  22040. 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}."
  22041. msgstr ""
  22042. #. type: subsection
  22043. #: guix-git/doc/guix.texi:14998
  22044. #, no-wrap
  22045. msgid "Locale Data Compatibility Considerations"
  22046. msgstr ""
  22047. #. type: cindex
  22048. #: guix-git/doc/guix.texi:15000
  22049. #, no-wrap
  22050. msgid "incompatibility, of locale data"
  22051. msgstr ""
  22052. #. type: Plain text
  22053. #: guix-git/doc/guix.texi:15007
  22054. 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."
  22055. msgstr ""
  22056. #. type: Plain text
  22057. #: guix-git/doc/guix.texi:15019
  22058. 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."
  22059. msgstr ""
  22060. #. type: Plain text
  22061. #: guix-git/doc/guix.texi:15024
  22062. 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."
  22063. msgstr ""
  22064. #. type: Plain text
  22065. #: guix-git/doc/guix.texi:15028
  22066. 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})."
  22067. msgstr ""
  22068. #. type: Plain text
  22069. #: guix-git/doc/guix.texi:15035
  22070. 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}:"
  22071. msgstr ""
  22072. #. type: lisp
  22073. #: guix-git/doc/guix.texi:15038
  22074. #, no-wrap
  22075. msgid ""
  22076. "(use-package-modules base)\n"
  22077. "\n"
  22078. msgstr ""
  22079. #. type: lisp
  22080. #: guix-git/doc/guix.texi:15042
  22081. #, no-wrap
  22082. msgid ""
  22083. "(operating-system\n"
  22084. " ;; @dots{}\n"
  22085. " (locale-libcs (list glibc-2.21 (canonical-package glibc))))\n"
  22086. msgstr ""
  22087. #. type: Plain text
  22088. #: guix-git/doc/guix.texi:15047
  22089. 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}."
  22090. msgstr ""
  22091. #. type: cindex
  22092. #: guix-git/doc/guix.texi:15052
  22093. #, no-wrap
  22094. msgid "system services"
  22095. msgstr ""
  22096. #. type: Plain text
  22097. #: guix-git/doc/guix.texi:15058
  22098. 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."
  22099. msgstr ""
  22100. #. type: Plain text
  22101. #: guix-git/doc/guix.texi:15065
  22102. 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:"
  22103. msgstr ""
  22104. #. type: example
  22105. #: guix-git/doc/guix.texi:15068
  22106. #, no-wrap
  22107. msgid "# herd status\n"
  22108. msgstr ""
  22109. #. type: Plain text
  22110. #: guix-git/doc/guix.texi:15073
  22111. 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:"
  22112. msgstr ""
  22113. #. type: example
  22114. #: guix-git/doc/guix.texi:15077
  22115. #, no-wrap
  22116. msgid ""
  22117. "# herd doc nscd\n"
  22118. "Run libc's name service cache daemon (nscd).\n"
  22119. "\n"
  22120. msgstr ""
  22121. #. type: example
  22122. #: guix-git/doc/guix.texi:15080
  22123. #, no-wrap
  22124. msgid ""
  22125. "# herd doc nscd action invalidate\n"
  22126. "invalidate: Invalidate the given cache--e.g., 'hosts' for host name lookups.\n"
  22127. msgstr ""
  22128. #. type: Plain text
  22129. #: guix-git/doc/guix.texi:15085
  22130. 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:"
  22131. msgstr ""
  22132. #. type: example
  22133. #: guix-git/doc/guix.texi:15092
  22134. #, no-wrap
  22135. msgid ""
  22136. "# herd stop nscd\n"
  22137. "Service nscd has been stopped.\n"
  22138. "# herd restart xorg-server\n"
  22139. "Service xorg-server has been stopped.\n"
  22140. "Service xorg-server has been started.\n"
  22141. msgstr ""
  22142. #. type: Plain text
  22143. #: guix-git/doc/guix.texi:15097
  22144. msgid "The following sections document the available services, starting with the core services, that may be used in an @code{operating-system} declaration."
  22145. msgstr ""
  22146. #. type: subsection
  22147. #: guix-git/doc/guix.texi:15132 guix-git/doc/guix.texi:23147
  22148. #: guix-git/doc/guix.texi:23148
  22149. #, fuzzy, no-wrap
  22150. msgid "File-Sharing Services"
  22151. msgstr "消息服务"
  22152. #. type: menuentry
  22153. #: guix-git/doc/guix.texi:15132
  22154. #, fuzzy
  22155. msgid "File-sharing services."
  22156. msgstr "消息服务。"
  22157. #. type: Plain text
  22158. #: guix-git/doc/guix.texi:15140
  22159. 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."
  22160. msgstr ""
  22161. #. type: defvr
  22162. #: guix-git/doc/guix.texi:15141
  22163. #, no-wrap
  22164. msgid "{Scheme Variable} %base-services"
  22165. msgstr ""
  22166. #. type: defvr
  22167. #: guix-git/doc/guix.texi:15147
  22168. 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."
  22169. msgstr ""
  22170. #. type: defvr
  22171. #: guix-git/doc/guix.texi:15152
  22172. 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:"
  22173. msgstr ""
  22174. #. type: lisp
  22175. #: guix-git/doc/guix.texi:15157
  22176. #, no-wrap
  22177. msgid ""
  22178. "(append (list (service avahi-service-type)\n"
  22179. " (service openssh-service-type))\n"
  22180. " %base-services)\n"
  22181. msgstr ""
  22182. #. type: defvr
  22183. #: guix-git/doc/guix.texi:15160
  22184. #, no-wrap
  22185. msgid "{Scheme Variable} special-files-service-type"
  22186. msgstr ""
  22187. #. type: defvr
  22188. #: guix-git/doc/guix.texi:15163
  22189. 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}."
  22190. msgstr ""
  22191. #. type: defvr
  22192. #: guix-git/doc/guix.texi:15167
  22193. 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:"
  22194. msgstr ""
  22195. #. type: file{#1}
  22196. #: guix-git/doc/guix.texi:15168
  22197. #, no-wrap
  22198. msgid "/bin/sh"
  22199. msgstr ""
  22200. #. type: cindex
  22201. #: guix-git/doc/guix.texi:15169
  22202. #, no-wrap
  22203. msgid "@file{sh}, in @file{/bin}"
  22204. msgstr ""
  22205. #. type: lisp
  22206. #: guix-git/doc/guix.texi:15172
  22207. #, no-wrap
  22208. msgid "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\")))\n"
  22209. msgstr ""
  22210. #. type: file{#1}
  22211. #: guix-git/doc/guix.texi:15174
  22212. #, no-wrap
  22213. msgid "/usr/bin/env"
  22214. msgstr ""
  22215. #. type: cindex
  22216. #: guix-git/doc/guix.texi:15175
  22217. #, no-wrap
  22218. msgid "@file{env}, in @file{/usr/bin}"
  22219. msgstr ""
  22220. #. type: defvr
  22221. #: guix-git/doc/guix.texi:15178
  22222. msgid "If you want to add, say, @code{/usr/bin/env} to your system, you can change it to:"
  22223. msgstr ""
  22224. #. type: lisp
  22225. #: guix-git/doc/guix.texi:15182
  22226. #, no-wrap
  22227. msgid ""
  22228. "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\"))\n"
  22229. " (\"/usr/bin/env\" ,(file-append coreutils \"/bin/env\")))\n"
  22230. msgstr ""
  22231. #. type: defvr
  22232. #: guix-git/doc/guix.texi:15189
  22233. 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)."
  22234. msgstr ""
  22235. #. type: deffn
  22236. #: guix-git/doc/guix.texi:15191
  22237. #, no-wrap
  22238. msgid "{Scheme Procedure} extra-special-file @var{file} @var{target}"
  22239. msgstr ""
  22240. #. type: deffn
  22241. #: guix-git/doc/guix.texi:15193
  22242. msgid "Use @var{target} as the ``special file'' @var{file}."
  22243. msgstr ""
  22244. #. type: deffn
  22245. #: guix-git/doc/guix.texi:15197
  22246. 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:"
  22247. msgstr ""
  22248. #. type: lisp
  22249. #: guix-git/doc/guix.texi:15201
  22250. #, no-wrap
  22251. msgid ""
  22252. "(extra-special-file \"/usr/bin/env\"\n"
  22253. " (file-append coreutils \"/bin/env\"))\n"
  22254. msgstr ""
  22255. #. type: deffn
  22256. #: guix-git/doc/guix.texi:15204
  22257. #, no-wrap
  22258. msgid "{Scheme Procedure} host-name-service @var{name}"
  22259. msgstr ""
  22260. #. type: deffn
  22261. #: guix-git/doc/guix.texi:15206
  22262. msgid "Return a service that sets the host name to @var{name}."
  22263. msgstr ""
  22264. #. type: defvr
  22265. #: guix-git/doc/guix.texi:15208
  22266. #, no-wrap
  22267. msgid "{Scheme Variable} console-font-service-type"
  22268. msgstr ""
  22269. #. type: defvr
  22270. #: guix-git/doc/guix.texi:15213
  22271. 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:"
  22272. msgstr ""
  22273. #. type: lisp
  22274. #: guix-git/doc/guix.texi:15222
  22275. #, no-wrap
  22276. msgid ""
  22277. "`((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  22278. " (\"tty2\" . ,(file-append\n"
  22279. " font-tamzen\n"
  22280. " \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  22281. " (\"tty3\" . ,(file-append\n"
  22282. " font-terminus\n"
  22283. " \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  22284. msgstr ""
  22285. #. type: deffn
  22286. #: guix-git/doc/guix.texi:15225
  22287. #, no-wrap
  22288. msgid "{Scheme Procedure} login-service @var{config}"
  22289. msgstr ""
  22290. #. type: deffn
  22291. #: guix-git/doc/guix.texi:15229
  22292. 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."
  22293. msgstr ""
  22294. #. type: deftp
  22295. #: guix-git/doc/guix.texi:15231
  22296. #, no-wrap
  22297. msgid "{Data Type} login-configuration"
  22298. msgstr ""
  22299. #. type: deftp
  22300. #: guix-git/doc/guix.texi:15233
  22301. msgid "This is the data type representing the configuration of login."
  22302. msgstr ""
  22303. #. type: code{#1}
  22304. #: guix-git/doc/guix.texi:15236
  22305. #, no-wrap
  22306. msgid "motd"
  22307. msgstr ""
  22308. #. type: cindex
  22309. #: guix-git/doc/guix.texi:15237
  22310. #, no-wrap
  22311. msgid "message of the day"
  22312. msgstr ""
  22313. #. type: table
  22314. #: guix-git/doc/guix.texi:15239
  22315. msgid "A file-like object containing the ``message of the day''."
  22316. msgstr ""
  22317. #. type: item
  22318. #: guix-git/doc/guix.texi:15240 guix-git/doc/guix.texi:18236
  22319. #, no-wrap
  22320. msgid "@code{allow-empty-passwords?} (default: @code{#t})"
  22321. msgstr ""
  22322. #. type: table
  22323. #: guix-git/doc/guix.texi:15243
  22324. msgid "Allow empty passwords by default so that first-time users can log in when the 'root' account has just been created."
  22325. msgstr ""
  22326. #. type: deffn
  22327. #: guix-git/doc/guix.texi:15247
  22328. #, no-wrap
  22329. msgid "{Scheme Procedure} mingetty-service @var{config}"
  22330. msgstr ""
  22331. #. type: deffn
  22332. #: guix-git/doc/guix.texi:15251
  22333. 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."
  22334. msgstr ""
  22335. #. type: deftp
  22336. #: guix-git/doc/guix.texi:15253
  22337. #, no-wrap
  22338. msgid "{Data Type} mingetty-configuration"
  22339. msgstr ""
  22340. #. type: deftp
  22341. #: guix-git/doc/guix.texi:15256
  22342. msgid "This is the data type representing the configuration of Mingetty, which provides the default implementation of virtual console log-in."
  22343. msgstr ""
  22344. #. type: code{#1}
  22345. #: guix-git/doc/guix.texi:15259 guix-git/doc/guix.texi:15298
  22346. #: guix-git/doc/guix.texi:32443
  22347. #, no-wrap
  22348. msgid "tty"
  22349. msgstr ""
  22350. #. type: table
  22351. #: guix-git/doc/guix.texi:15261
  22352. msgid "The name of the console this Mingetty runs on---e.g., @code{\"tty1\"}."
  22353. msgstr ""
  22354. #. type: item
  22355. #: guix-git/doc/guix.texi:15262 guix-git/doc/guix.texi:15327
  22356. #: guix-git/doc/guix.texi:15486
  22357. #, no-wrap
  22358. msgid "@code{auto-login} (default: @code{#f})"
  22359. msgstr ""
  22360. #. type: table
  22361. #: guix-git/doc/guix.texi:15266
  22362. 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."
  22363. msgstr ""
  22364. #. type: item
  22365. #: guix-git/doc/guix.texi:15267
  22366. #, no-wrap
  22367. msgid "@code{login-program} (default: @code{#f})"
  22368. msgstr ""
  22369. #. type: table
  22370. #: guix-git/doc/guix.texi:15271
  22371. 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."
  22372. msgstr ""
  22373. #. type: item
  22374. #: guix-git/doc/guix.texi:15272
  22375. #, no-wrap
  22376. msgid "@code{login-pause?} (default: @code{#f})"
  22377. msgstr ""
  22378. #. type: table
  22379. #: guix-git/doc/guix.texi:15275
  22380. 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."
  22381. msgstr ""
  22382. #. type: item
  22383. #: guix-git/doc/guix.texi:15276
  22384. #, fuzzy, no-wrap
  22385. msgid "@code{clear-on-logout?} (default: @code{#t})"
  22386. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  22387. #. type: table
  22388. #: guix-git/doc/guix.texi:15278
  22389. msgid "When set to @code{#t}, the screen will be cleared after logout."
  22390. msgstr ""
  22391. #. type: item
  22392. #: guix-git/doc/guix.texi:15279
  22393. #, no-wrap
  22394. msgid "@code{mingetty} (default: @var{mingetty})"
  22395. msgstr ""
  22396. #. type: table
  22397. #: guix-git/doc/guix.texi:15281
  22398. msgid "The Mingetty package to use."
  22399. msgstr ""
  22400. #. type: deffn
  22401. #: guix-git/doc/guix.texi:15285
  22402. #, no-wrap
  22403. msgid "{Scheme Procedure} agetty-service @var{config}"
  22404. msgstr ""
  22405. #. type: deffn
  22406. #: guix-git/doc/guix.texi:15289
  22407. 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."
  22408. msgstr ""
  22409. #. type: deftp
  22410. #: guix-git/doc/guix.texi:15291
  22411. #, no-wrap
  22412. msgid "{Data Type} agetty-configuration"
  22413. msgstr ""
  22414. #. type: deftp
  22415. #: guix-git/doc/guix.texi:15295
  22416. 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."
  22417. msgstr ""
  22418. #. type: table
  22419. #: guix-git/doc/guix.texi:15302
  22420. 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."
  22421. msgstr ""
  22422. #. type: table
  22423. #: guix-git/doc/guix.texi:15306
  22424. 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."
  22425. msgstr ""
  22426. #. type: table
  22427. #: guix-git/doc/guix.texi:15310
  22428. 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."
  22429. msgstr ""
  22430. #. type: table
  22431. #: guix-git/doc/guix.texi:15314
  22432. 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."
  22433. msgstr ""
  22434. #. type: item
  22435. #: guix-git/doc/guix.texi:15315 guix-git/doc/guix.texi:32604
  22436. #, no-wrap
  22437. msgid "@code{baud-rate} (default: @code{#f})"
  22438. msgstr ""
  22439. #. type: table
  22440. #: guix-git/doc/guix.texi:15318
  22441. msgid "A string containing a comma-separated list of one or more baud rates, in descending order."
  22442. msgstr ""
  22443. #. type: item
  22444. #: guix-git/doc/guix.texi:15319
  22445. #, no-wrap
  22446. msgid "@code{term} (default: @code{#f})"
  22447. msgstr ""
  22448. #. type: table
  22449. #: guix-git/doc/guix.texi:15322
  22450. msgid "A string containing the value used for the @env{TERM} environment variable."
  22451. msgstr ""
  22452. #. type: item
  22453. #: guix-git/doc/guix.texi:15323
  22454. #, no-wrap
  22455. msgid "@code{eight-bits?} (default: @code{#f})"
  22456. msgstr ""
  22457. #. type: table
  22458. #: guix-git/doc/guix.texi:15326
  22459. msgid "When @code{#t}, the tty is assumed to be 8-bit clean, and parity detection is disabled."
  22460. msgstr ""
  22461. #. type: table
  22462. #: guix-git/doc/guix.texi:15330 guix-git/doc/guix.texi:15489
  22463. 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."
  22464. msgstr ""
  22465. #. type: item
  22466. #: guix-git/doc/guix.texi:15331
  22467. #, no-wrap
  22468. msgid "@code{no-reset?} (default: @code{#f})"
  22469. msgstr ""
  22470. #. type: table
  22471. #: guix-git/doc/guix.texi:15333
  22472. msgid "When @code{#t}, don't reset terminal cflags (control modes)."
  22473. msgstr ""
  22474. #. type: item
  22475. #: guix-git/doc/guix.texi:15334
  22476. #, no-wrap
  22477. msgid "@code{host} (default: @code{#f})"
  22478. msgstr ""
  22479. #. type: table
  22480. #: guix-git/doc/guix.texi:15337
  22481. msgid "This accepts a string containing the ``login_host'', which will be written into the @file{/var/run/utmpx} file."
  22482. msgstr ""
  22483. #. type: item
  22484. #: guix-git/doc/guix.texi:15338
  22485. #, no-wrap
  22486. msgid "@code{remote?} (default: @code{#f})"
  22487. msgstr ""
  22488. #. type: table
  22489. #: guix-git/doc/guix.texi:15342
  22490. 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}."
  22491. msgstr ""
  22492. #. type: item
  22493. #: guix-git/doc/guix.texi:15343
  22494. #, no-wrap
  22495. msgid "@code{flow-control?} (default: @code{#f})"
  22496. msgstr ""
  22497. #. type: table
  22498. #: guix-git/doc/guix.texi:15345
  22499. msgid "When set to @code{#t}, enable hardware (RTS/CTS) flow control."
  22500. msgstr ""
  22501. #. type: item
  22502. #: guix-git/doc/guix.texi:15346
  22503. #, no-wrap
  22504. msgid "@code{no-issue?} (default: @code{#f})"
  22505. msgstr ""
  22506. #. type: table
  22507. #: guix-git/doc/guix.texi:15349
  22508. msgid "When set to @code{#t}, the contents of the @file{/etc/issue} file will not be displayed before presenting the login prompt."
  22509. msgstr ""
  22510. #. type: item
  22511. #: guix-git/doc/guix.texi:15350
  22512. #, no-wrap
  22513. msgid "@code{init-string} (default: @code{#f})"
  22514. msgstr ""
  22515. #. type: table
  22516. #: guix-git/doc/guix.texi:15353
  22517. 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."
  22518. msgstr ""
  22519. #. type: item
  22520. #: guix-git/doc/guix.texi:15354
  22521. #, no-wrap
  22522. msgid "@code{no-clear?} (default: @code{#f})"
  22523. msgstr ""
  22524. #. type: table
  22525. #: guix-git/doc/guix.texi:15357
  22526. msgid "When set to @code{#t}, agetty will not clear the screen before showing the login prompt."
  22527. msgstr ""
  22528. #. type: item
  22529. #: guix-git/doc/guix.texi:15358
  22530. #, no-wrap
  22531. msgid "@code{login-program} (default: (file-append shadow \"/bin/login\"))"
  22532. msgstr ""
  22533. #. type: table
  22534. #: guix-git/doc/guix.texi:15362
  22535. 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."
  22536. msgstr ""
  22537. #. type: item
  22538. #: guix-git/doc/guix.texi:15363
  22539. #, no-wrap
  22540. msgid "@code{local-line} (default: @code{#f})"
  22541. msgstr ""
  22542. #. type: table
  22543. #: guix-git/doc/guix.texi:15367
  22544. 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}."
  22545. msgstr ""
  22546. #. type: item
  22547. #: guix-git/doc/guix.texi:15368
  22548. #, no-wrap
  22549. msgid "@code{extract-baud?} (default: @code{#f})"
  22550. msgstr ""
  22551. #. type: table
  22552. #: guix-git/doc/guix.texi:15371
  22553. 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."
  22554. msgstr ""
  22555. #. type: item
  22556. #: guix-git/doc/guix.texi:15372
  22557. #, no-wrap
  22558. msgid "@code{skip-login?} (default: @code{#f})"
  22559. msgstr ""
  22560. #. type: table
  22561. #: guix-git/doc/guix.texi:15376
  22562. 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."
  22563. msgstr ""
  22564. #. type: item
  22565. #: guix-git/doc/guix.texi:15377
  22566. #, no-wrap
  22567. msgid "@code{no-newline?} (default: @code{#f})"
  22568. msgstr ""
  22569. #. type: table
  22570. #: guix-git/doc/guix.texi:15380
  22571. msgid "When set to @code{#t}, do not print a newline before printing the @file{/etc/issue} file."
  22572. msgstr ""
  22573. #. type: item
  22574. #: guix-git/doc/guix.texi:15382
  22575. #, no-wrap
  22576. msgid "@code{login-options} (default: @code{#f})"
  22577. msgstr ""
  22578. #. type: table
  22579. #: guix-git/doc/guix.texi:15387
  22580. 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."
  22581. msgstr ""
  22582. #. type: item
  22583. #: guix-git/doc/guix.texi:15388
  22584. #, no-wrap
  22585. msgid "@code{login-pause} (default: @code{#f})"
  22586. msgstr ""
  22587. #. type: table
  22588. #: guix-git/doc/guix.texi:15392
  22589. 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."
  22590. msgstr ""
  22591. #. type: item
  22592. #: guix-git/doc/guix.texi:15393
  22593. #, no-wrap
  22594. msgid "@code{chroot} (default: @code{#f})"
  22595. msgstr ""
  22596. #. type: table
  22597. #: guix-git/doc/guix.texi:15396
  22598. msgid "Change root to the specified directory. This option accepts a directory path as a string."
  22599. msgstr ""
  22600. #. type: item
  22601. #: guix-git/doc/guix.texi:15397
  22602. #, no-wrap
  22603. msgid "@code{hangup?} (default: @code{#f})"
  22604. msgstr ""
  22605. #. type: table
  22606. #: guix-git/doc/guix.texi:15400
  22607. msgid "Use the Linux system call @code{vhangup} to do a virtual hangup of the specified terminal."
  22608. msgstr ""
  22609. #. type: item
  22610. #: guix-git/doc/guix.texi:15401
  22611. #, no-wrap
  22612. msgid "@code{keep-baud?} (default: @code{#f})"
  22613. msgstr ""
  22614. #. type: table
  22615. #: guix-git/doc/guix.texi:15405
  22616. 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."
  22617. msgstr ""
  22618. #. type: item
  22619. #: guix-git/doc/guix.texi:15406
  22620. #, no-wrap
  22621. msgid "@code{timeout} (default: @code{#f})"
  22622. msgstr ""
  22623. #. type: table
  22624. #: guix-git/doc/guix.texi:15409
  22625. msgid "When set to an integer value, terminate if no user name could be read within @var{timeout} seconds."
  22626. msgstr ""
  22627. #. type: item
  22628. #: guix-git/doc/guix.texi:15410
  22629. #, no-wrap
  22630. msgid "@code{detect-case?} (default: @code{#f})"
  22631. msgstr ""
  22632. #. type: table
  22633. #: guix-git/doc/guix.texi:15416
  22634. 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."
  22635. msgstr ""
  22636. #. type: item
  22637. #: guix-git/doc/guix.texi:15417
  22638. #, no-wrap
  22639. msgid "@code{wait-cr?} (default: @code{#f})"
  22640. msgstr ""
  22641. #. type: table
  22642. #: guix-git/doc/guix.texi:15422
  22643. 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."
  22644. msgstr ""
  22645. #. type: item
  22646. #: guix-git/doc/guix.texi:15423
  22647. #, no-wrap
  22648. msgid "@code{no-hints?} (default: @code{#f})"
  22649. msgstr ""
  22650. #. type: table
  22651. #: guix-git/doc/guix.texi:15426
  22652. msgid "When set to @code{#t}, do not print hints about Num, Caps, and Scroll locks."
  22653. msgstr ""
  22654. #. type: item
  22655. #: guix-git/doc/guix.texi:15427
  22656. #, no-wrap
  22657. msgid "@code{no-hostname?} (default: @code{#f})"
  22658. msgstr ""
  22659. #. type: table
  22660. #: guix-git/doc/guix.texi:15430
  22661. msgid "By default, the hostname is printed. When this option is set to @code{#t}, no hostname will be shown at all."
  22662. msgstr ""
  22663. #. type: item
  22664. #: guix-git/doc/guix.texi:15431
  22665. #, no-wrap
  22666. msgid "@code{long-hostname?} (default: @code{#f})"
  22667. msgstr ""
  22668. #. type: table
  22669. #: guix-git/doc/guix.texi:15435
  22670. 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."
  22671. msgstr ""
  22672. #. type: item
  22673. #: guix-git/doc/guix.texi:15436
  22674. #, no-wrap
  22675. msgid "@code{erase-characters} (default: @code{#f})"
  22676. msgstr ""
  22677. #. type: table
  22678. #: guix-git/doc/guix.texi:15439
  22679. msgid "This option accepts a string of additional characters that should be interpreted as backspace when the user types their login name."
  22680. msgstr ""
  22681. #. type: item
  22682. #: guix-git/doc/guix.texi:15440
  22683. #, no-wrap
  22684. msgid "@code{kill-characters} (default: @code{#f})"
  22685. msgstr ""
  22686. #. type: table
  22687. #: guix-git/doc/guix.texi:15444
  22688. 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."
  22689. msgstr ""
  22690. #. type: item
  22691. #: guix-git/doc/guix.texi:15445
  22692. #, no-wrap
  22693. msgid "@code{chdir} (default: @code{#f})"
  22694. msgstr ""
  22695. #. type: table
  22696. #: guix-git/doc/guix.texi:15448
  22697. msgid "This option accepts, as a string, a directory path that will be changed to before login."
  22698. msgstr ""
  22699. #. type: item
  22700. #: guix-git/doc/guix.texi:15449
  22701. #, no-wrap
  22702. msgid "@code{delay} (default: @code{#f})"
  22703. msgstr ""
  22704. #. type: table
  22705. #: guix-git/doc/guix.texi:15452
  22706. msgid "This options accepts, as an integer, the number of seconds to sleep before opening the tty and displaying the login prompt."
  22707. msgstr ""
  22708. #. type: item
  22709. #: guix-git/doc/guix.texi:15453
  22710. #, no-wrap
  22711. msgid "@code{nice} (default: @code{#f})"
  22712. msgstr ""
  22713. #. type: table
  22714. #: guix-git/doc/guix.texi:15456
  22715. msgid "This option accepts, as an integer, the nice value with which to run the @command{login} program."
  22716. msgstr ""
  22717. #. type: item
  22718. #: guix-git/doc/guix.texi:15457 guix-git/doc/guix.texi:15745
  22719. #: guix-git/doc/guix.texi:16616 guix-git/doc/guix.texi:24130
  22720. #: guix-git/doc/guix.texi:25607 guix-git/doc/guix.texi:28014
  22721. #: guix-git/doc/guix.texi:28809 guix-git/doc/guix.texi:30509
  22722. #: guix-git/doc/guix.texi:32934
  22723. #, no-wrap
  22724. msgid "@code{extra-options} (default: @code{'()})"
  22725. msgstr ""
  22726. #. type: table
  22727. #: guix-git/doc/guix.texi:15460
  22728. msgid "This option provides an ``escape hatch'' for the user to provide arbitrary command-line arguments to @command{agetty} as a list of strings."
  22729. msgstr ""
  22730. #. type: deffn
  22731. #: guix-git/doc/guix.texi:15464
  22732. #, no-wrap
  22733. msgid "{Scheme Procedure} kmscon-service-type @var{config}"
  22734. msgstr ""
  22735. #. type: deffn
  22736. #: guix-git/doc/guix.texi:15468
  22737. 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."
  22738. msgstr ""
  22739. #. type: deftp
  22740. #: guix-git/doc/guix.texi:15470
  22741. #, no-wrap
  22742. msgid "{Data Type} kmscon-configuration"
  22743. msgstr ""
  22744. #. type: deftp
  22745. #: guix-git/doc/guix.texi:15473
  22746. msgid "This is the data type representing the configuration of Kmscon, which implements virtual console log-in."
  22747. msgstr ""
  22748. #. type: code{#1}
  22749. #: guix-git/doc/guix.texi:15476
  22750. #, no-wrap
  22751. msgid "virtual-terminal"
  22752. msgstr ""
  22753. #. type: table
  22754. #: guix-git/doc/guix.texi:15478
  22755. msgid "The name of the console this Kmscon runs on---e.g., @code{\"tty1\"}."
  22756. msgstr ""
  22757. #. type: item
  22758. #: guix-git/doc/guix.texi:15479
  22759. #, no-wrap
  22760. msgid "@code{login-program} (default: @code{#~(string-append #$shadow \"/bin/login\")})"
  22761. msgstr ""
  22762. #. type: table
  22763. #: guix-git/doc/guix.texi:15482
  22764. msgid "A gexp denoting the name of the log-in program. The default log-in program is @command{login} from the Shadow tool suite."
  22765. msgstr ""
  22766. #. type: item
  22767. #: guix-git/doc/guix.texi:15483
  22768. #, no-wrap
  22769. msgid "@code{login-arguments} (default: @code{'(\"-p\")})"
  22770. msgstr ""
  22771. #. type: table
  22772. #: guix-git/doc/guix.texi:15485
  22773. msgid "A list of arguments to pass to @command{login}."
  22774. msgstr ""
  22775. #. type: item
  22776. #: guix-git/doc/guix.texi:15490
  22777. #, no-wrap
  22778. msgid "@code{hardware-acceleration?} (default: #f)"
  22779. msgstr ""
  22780. #. type: table
  22781. #: guix-git/doc/guix.texi:15492
  22782. msgid "Whether to use hardware acceleration."
  22783. msgstr ""
  22784. #. type: item
  22785. #: guix-git/doc/guix.texi:15493
  22786. #, fuzzy, no-wrap
  22787. msgid "@code{font-engine} (default: @code{\"pango\"})"
  22788. msgstr "@code{journal-content}(默认值:@code{#f})"
  22789. #. type: table
  22790. #: guix-git/doc/guix.texi:15495
  22791. msgid "Font engine used in Kmscon."
  22792. msgstr ""
  22793. #. type: item
  22794. #: guix-git/doc/guix.texi:15496
  22795. #, fuzzy, no-wrap
  22796. msgid "@code{font-size} (default: @code{12})"
  22797. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  22798. #. type: table
  22799. #: guix-git/doc/guix.texi:15498
  22800. msgid "Font size used in Kmscon."
  22801. msgstr ""
  22802. #. type: table
  22803. #: guix-git/doc/guix.texi:15502
  22804. msgid "If this is @code{#f}, Kmscon uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  22805. msgstr ""
  22806. #. type: table
  22807. #: guix-git/doc/guix.texi:15506
  22808. 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."
  22809. msgstr ""
  22810. #. type: item
  22811. #: guix-git/doc/guix.texi:15507
  22812. #, no-wrap
  22813. msgid "@code{kmscon} (default: @var{kmscon})"
  22814. msgstr ""
  22815. #. type: table
  22816. #: guix-git/doc/guix.texi:15509
  22817. msgid "The Kmscon package to use."
  22818. msgstr ""
  22819. #. type: cindex
  22820. #: guix-git/doc/guix.texi:15513
  22821. #, no-wrap
  22822. msgid "name service cache daemon"
  22823. msgstr ""
  22824. #. type: cindex
  22825. #: guix-git/doc/guix.texi:15514
  22826. #, no-wrap
  22827. msgid "nscd"
  22828. msgstr ""
  22829. #. type: deffn
  22830. #: guix-git/doc/guix.texi:15515
  22831. #, no-wrap
  22832. msgid "{Scheme Procedure} nscd-service [@var{config}] [#:glibc glibc] @"
  22833. msgstr ""
  22834. #. type: deffn
  22835. #: guix-git/doc/guix.texi:15520
  22836. 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."
  22837. msgstr ""
  22838. #. type: deffn
  22839. #: guix-git/doc/guix.texi:15522
  22840. msgid "For convenience, the Shepherd service for nscd provides the following actions:"
  22841. msgstr ""
  22842. #. type: item
  22843. #: guix-git/doc/guix.texi:15524
  22844. #, no-wrap
  22845. msgid "invalidate"
  22846. msgstr ""
  22847. #. type: cindex
  22848. #: guix-git/doc/guix.texi:15525
  22849. #, no-wrap
  22850. msgid "cache invalidation, nscd"
  22851. msgstr ""
  22852. #. type: cindex
  22853. #: guix-git/doc/guix.texi:15526
  22854. #, no-wrap
  22855. msgid "nscd, cache invalidation"
  22856. msgstr ""
  22857. #. type: table
  22858. #: guix-git/doc/guix.texi:15528
  22859. msgid "This invalidate the given cache. For instance, running:"
  22860. msgstr ""
  22861. #. type: example
  22862. #: guix-git/doc/guix.texi:15531
  22863. #, no-wrap
  22864. msgid "herd invalidate nscd hosts\n"
  22865. msgstr ""
  22866. #. type: table
  22867. #: guix-git/doc/guix.texi:15535
  22868. msgid "invalidates the host name lookup cache of nscd."
  22869. msgstr ""
  22870. #. type: item
  22871. #: guix-git/doc/guix.texi:15536
  22872. #, no-wrap
  22873. msgid "statistics"
  22874. msgstr ""
  22875. #. type: table
  22876. #: guix-git/doc/guix.texi:15539
  22877. msgid "Running @command{herd statistics nscd} displays information about nscd usage and caches."
  22878. msgstr ""
  22879. #. type: defvr
  22880. #: guix-git/doc/guix.texi:15543
  22881. #, no-wrap
  22882. msgid "{Scheme Variable} %nscd-default-configuration"
  22883. msgstr ""
  22884. #. type: defvr
  22885. #: guix-git/doc/guix.texi:15547
  22886. 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."
  22887. msgstr ""
  22888. #. type: deftp
  22889. #: guix-git/doc/guix.texi:15549
  22890. #, no-wrap
  22891. msgid "{Data Type} nscd-configuration"
  22892. msgstr ""
  22893. #. type: deftp
  22894. #: guix-git/doc/guix.texi:15552
  22895. msgid "This is the data type representing the name service cache daemon (nscd) configuration."
  22896. msgstr ""
  22897. #. type: item
  22898. #: guix-git/doc/guix.texi:15555
  22899. #, no-wrap
  22900. msgid "@code{name-services} (default: @code{'()})"
  22901. msgstr ""
  22902. #. type: table
  22903. #: guix-git/doc/guix.texi:15558
  22904. msgid "List of packages denoting @dfn{name services} that must be visible to the nscd---e.g., @code{(list @var{nss-mdns})}."
  22905. msgstr ""
  22906. #. type: item
  22907. #: guix-git/doc/guix.texi:15559
  22908. #, no-wrap
  22909. msgid "@code{glibc} (default: @var{glibc})"
  22910. msgstr ""
  22911. #. type: table
  22912. #: guix-git/doc/guix.texi:15562
  22913. msgid "Package object denoting the GNU C Library providing the @command{nscd} command."
  22914. msgstr ""
  22915. #. type: item
  22916. #: guix-git/doc/guix.texi:15563
  22917. #, no-wrap
  22918. msgid "@code{log-file} (default: @code{\"/var/log/nscd.log\"})"
  22919. msgstr ""
  22920. #. type: table
  22921. #: guix-git/doc/guix.texi:15566
  22922. msgid "Name of the nscd log file. This is where debugging output goes when @code{debug-level} is strictly positive."
  22923. msgstr ""
  22924. #. type: item
  22925. #: guix-git/doc/guix.texi:15567
  22926. #, no-wrap
  22927. msgid "@code{debug-level} (default: @code{0})"
  22928. msgstr ""
  22929. #. type: table
  22930. #: guix-git/doc/guix.texi:15570
  22931. msgid "Integer denoting the debugging levels. Higher numbers mean that more debugging output is logged."
  22932. msgstr ""
  22933. #. type: item
  22934. #: guix-git/doc/guix.texi:15571
  22935. #, fuzzy, no-wrap
  22936. msgid "@code{caches} (default: @code{%nscd-default-caches})"
  22937. msgstr "@code{xfce}(默认值:@code{xfce})"
  22938. #. type: table
  22939. #: guix-git/doc/guix.texi:15574
  22940. msgid "List of @code{<nscd-cache>} objects denoting things to be cached; see below."
  22941. msgstr ""
  22942. #. type: deftp
  22943. #: guix-git/doc/guix.texi:15578
  22944. #, no-wrap
  22945. msgid "{Data Type} nscd-cache"
  22946. msgstr ""
  22947. #. type: deftp
  22948. #: guix-git/doc/guix.texi:15580
  22949. msgid "Data type representing a cache database of nscd and its parameters."
  22950. msgstr ""
  22951. #. type: cindex
  22952. #: guix-git/doc/guix.texi:15583 guix-git/doc/guix.texi:20020
  22953. #, no-wrap
  22954. msgid "database"
  22955. msgstr ""
  22956. #. type: table
  22957. #: guix-git/doc/guix.texi:15588
  22958. 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})."
  22959. msgstr ""
  22960. #. type: code{#1}
  22961. #: guix-git/doc/guix.texi:15589
  22962. #, no-wrap
  22963. msgid "positive-time-to-live"
  22964. msgstr ""
  22965. #. type: itemx
  22966. #: guix-git/doc/guix.texi:15590
  22967. #, no-wrap
  22968. msgid "@code{negative-time-to-live} (default: @code{20})"
  22969. msgstr ""
  22970. #. type: table
  22971. #: guix-git/doc/guix.texi:15593
  22972. msgid "A number representing the number of seconds during which a positive or negative lookup result remains in cache."
  22973. msgstr ""
  22974. #. type: item
  22975. #: guix-git/doc/guix.texi:15594
  22976. #, no-wrap
  22977. msgid "@code{check-files?} (default: @code{#t})"
  22978. msgstr ""
  22979. #. type: table
  22980. #: guix-git/doc/guix.texi:15597
  22981. msgid "Whether to check for updates of the files corresponding to @var{database}."
  22982. msgstr ""
  22983. #. type: table
  22984. #: guix-git/doc/guix.texi:15601
  22985. 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."
  22986. msgstr ""
  22987. #. type: item
  22988. #: guix-git/doc/guix.texi:15602
  22989. #, no-wrap
  22990. msgid "@code{persistent?} (default: @code{#t})"
  22991. msgstr ""
  22992. #. type: table
  22993. #: guix-git/doc/guix.texi:15604
  22994. msgid "Whether the cache should be stored persistently on disk."
  22995. msgstr ""
  22996. #. type: item
  22997. #: guix-git/doc/guix.texi:15605
  22998. #, no-wrap
  22999. msgid "@code{shared?} (default: @code{#t})"
  23000. msgstr ""
  23001. #. type: table
  23002. #: guix-git/doc/guix.texi:15607
  23003. msgid "Whether the cache should be shared among users."
  23004. msgstr ""
  23005. #. type: item
  23006. #: guix-git/doc/guix.texi:15608
  23007. #, no-wrap
  23008. msgid "@code{max-database-size} (default: 32@tie{}MiB)"
  23009. msgstr ""
  23010. #. type: table
  23011. #: guix-git/doc/guix.texi:15610
  23012. msgid "Maximum size in bytes of the database cache."
  23013. msgstr ""
  23014. #. type: defvr
  23015. #: guix-git/doc/guix.texi:15617
  23016. #, no-wrap
  23017. msgid "{Scheme Variable} %nscd-default-caches"
  23018. msgstr ""
  23019. #. type: defvr
  23020. #: guix-git/doc/guix.texi:15620
  23021. msgid "List of @code{<nscd-cache>} objects used by default by @code{nscd-configuration} (see above)."
  23022. msgstr ""
  23023. #. type: defvr
  23024. #: guix-git/doc/guix.texi:15626
  23025. 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."
  23026. msgstr ""
  23027. #. type: anchor{#1}
  23028. #: guix-git/doc/guix.texi:15629
  23029. msgid "syslog-configuration-type"
  23030. msgstr ""
  23031. #. type: cindex
  23032. #: guix-git/doc/guix.texi:15629 guix-git/doc/guix.texi:15645
  23033. #, no-wrap
  23034. msgid "syslog"
  23035. msgstr ""
  23036. #. type: cindex
  23037. #: guix-git/doc/guix.texi:15630 guix-git/doc/guix.texi:16216
  23038. #, no-wrap
  23039. msgid "logging"
  23040. msgstr ""
  23041. #. type: deftp
  23042. #: guix-git/doc/guix.texi:15631
  23043. #, no-wrap
  23044. msgid "{Data Type} syslog-configuration"
  23045. msgstr ""
  23046. #. type: deftp
  23047. #: guix-git/doc/guix.texi:15633
  23048. msgid "This data type represents the configuration of the syslog daemon."
  23049. msgstr ""
  23050. #. type: item
  23051. #: guix-git/doc/guix.texi:15635
  23052. #, no-wrap
  23053. msgid "@code{syslogd} (default: @code{#~(string-append #$inetutils \"/libexec/syslogd\")})"
  23054. msgstr ""
  23055. #. type: table
  23056. #: guix-git/doc/guix.texi:15637
  23057. msgid "The syslog daemon to use."
  23058. msgstr ""
  23059. #. type: item
  23060. #: guix-git/doc/guix.texi:15638
  23061. #, no-wrap
  23062. msgid "@code{config-file} (default: @code{%default-syslog.conf})"
  23063. msgstr ""
  23064. #. type: table
  23065. #: guix-git/doc/guix.texi:15640
  23066. msgid "The syslog configuration file to use."
  23067. msgstr ""
  23068. #. type: anchor{#1}
  23069. #: guix-git/doc/guix.texi:15645
  23070. msgid "syslog-service"
  23071. msgstr ""
  23072. #. type: deffn
  23073. #: guix-git/doc/guix.texi:15646
  23074. #, no-wrap
  23075. msgid "{Scheme Procedure} syslog-service @var{config}"
  23076. msgstr ""
  23077. #. type: deffn
  23078. #: guix-git/doc/guix.texi:15648
  23079. msgid "Return a service that runs a syslog daemon according to @var{config}."
  23080. msgstr ""
  23081. #. type: deffn
  23082. #: guix-git/doc/guix.texi:15651
  23083. msgid "@xref{syslogd invocation,,, inetutils, GNU Inetutils}, for more information on the configuration file syntax."
  23084. msgstr ""
  23085. #. type: defvr
  23086. #: guix-git/doc/guix.texi:15653
  23087. #, no-wrap
  23088. msgid "{Scheme Variable} guix-service-type"
  23089. msgstr ""
  23090. #. type: defvr
  23091. #: guix-git/doc/guix.texi:15657
  23092. 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."
  23093. msgstr ""
  23094. #. type: anchor{#1}
  23095. #: guix-git/doc/guix.texi:15660
  23096. msgid "guix-configuration-type"
  23097. msgstr ""
  23098. #. type: deftp
  23099. #: guix-git/doc/guix.texi:15660
  23100. #, no-wrap
  23101. msgid "{Data Type} guix-configuration"
  23102. msgstr ""
  23103. #. type: deftp
  23104. #: guix-git/doc/guix.texi:15663
  23105. msgid "This data type represents the configuration of the Guix build daemon. @xref{Invoking guix-daemon}, for more information."
  23106. msgstr ""
  23107. #. type: item
  23108. #: guix-git/doc/guix.texi:15665
  23109. #, no-wrap
  23110. msgid "@code{guix} (default: @var{guix})"
  23111. msgstr ""
  23112. #. type: table
  23113. #: guix-git/doc/guix.texi:15667 guix-git/doc/guix.texi:15944
  23114. msgid "The Guix package to use."
  23115. msgstr ""
  23116. #. type: item
  23117. #: guix-git/doc/guix.texi:15668
  23118. #, no-wrap
  23119. msgid "@code{build-group} (default: @code{\"guixbuild\"})"
  23120. msgstr ""
  23121. #. type: table
  23122. #: guix-git/doc/guix.texi:15670
  23123. msgid "Name of the group for build user accounts."
  23124. msgstr ""
  23125. #. type: item
  23126. #: guix-git/doc/guix.texi:15671
  23127. #, no-wrap
  23128. msgid "@code{build-accounts} (default: @code{10})"
  23129. msgstr ""
  23130. #. type: table
  23131. #: guix-git/doc/guix.texi:15673
  23132. msgid "Number of build user accounts to create."
  23133. msgstr ""
  23134. #. type: item
  23135. #: guix-git/doc/guix.texi:15674
  23136. #, no-wrap
  23137. msgid "@code{authorize-key?} (default: @code{#t})"
  23138. msgstr ""
  23139. #. type: table
  23140. #: guix-git/doc/guix.texi:15681
  23141. 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})."
  23142. msgstr ""
  23143. #. type: table
  23144. #: guix-git/doc/guix.texi:15687
  23145. 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."
  23146. msgstr ""
  23147. #. type: quotation
  23148. #: guix-git/doc/guix.texi:15694
  23149. 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}."
  23150. msgstr ""
  23151. #. type: vindex
  23152. #: guix-git/doc/guix.texi:15696
  23153. #, no-wrap
  23154. msgid "%default-authorized-guix-keys"
  23155. msgstr ""
  23156. #. type: item
  23157. #: guix-git/doc/guix.texi:15697
  23158. #, fuzzy, no-wrap
  23159. msgid "@code{authorized-keys} (default: @code{%default-authorized-guix-keys})"
  23160. msgstr "@code{mate}(默认值:@code{mate})"
  23161. #. type: table
  23162. #: guix-git/doc/guix.texi:15703
  23163. 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."
  23164. msgstr ""
  23165. #. type: item
  23166. #: guix-git/doc/guix.texi:15704
  23167. #, no-wrap
  23168. msgid "@code{use-substitutes?} (default: @code{#t})"
  23169. msgstr ""
  23170. #. type: table
  23171. #: guix-git/doc/guix.texi:15706
  23172. msgid "Whether to use substitutes."
  23173. msgstr ""
  23174. #. type: item
  23175. #: guix-git/doc/guix.texi:15707 guix-git/doc/guix.texi:28111
  23176. #, fuzzy, no-wrap
  23177. msgid "@code{substitute-urls} (default: @code{%default-substitute-urls})"
  23178. msgstr "@code{mate}(默认值:@code{mate})"
  23179. #. type: table
  23180. #: guix-git/doc/guix.texi:15709 guix-git/doc/guix.texi:28113
  23181. msgid "The list of URLs where to look for substitutes by default."
  23182. msgstr ""
  23183. #. type: table
  23184. #: guix-git/doc/guix.texi:15716
  23185. 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:"
  23186. msgstr ""
  23187. #. type: lisp
  23188. #: guix-git/doc/guix.texi:15725
  23189. #, no-wrap
  23190. msgid ""
  23191. "(guix-configuration\n"
  23192. " (substitute-urls\n"
  23193. " (append (list \"https://guix.example.org\")\n"
  23194. " %default-substitute-urls))\n"
  23195. " (authorized-keys\n"
  23196. " (append (list (local-file \"./guix.example.org-key.pub\"))\n"
  23197. " %default-authorized-guix-keys)))\n"
  23198. msgstr ""
  23199. #. type: table
  23200. #: guix-git/doc/guix.texi:15730
  23201. 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."
  23202. msgstr ""
  23203. #. type: item
  23204. #: guix-git/doc/guix.texi:15731
  23205. #, no-wrap
  23206. msgid "@code{max-silent-time} (default: @code{0})"
  23207. msgstr ""
  23208. #. type: itemx
  23209. #: guix-git/doc/guix.texi:15732
  23210. #, no-wrap
  23211. msgid "@code{timeout} (default: @code{0})"
  23212. msgstr ""
  23213. #. type: table
  23214. #: guix-git/doc/guix.texi:15736
  23215. 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."
  23216. msgstr ""
  23217. #. type: item
  23218. #: guix-git/doc/guix.texi:15737
  23219. #, no-wrap
  23220. msgid "@code{log-compression} (default: @code{'bzip2})"
  23221. msgstr ""
  23222. #. type: table
  23223. #: guix-git/doc/guix.texi:15740
  23224. msgid "The type of compression used for build logs---one of @code{gzip}, @code{bzip2}, or @code{none}."
  23225. msgstr ""
  23226. #. type: item
  23227. #: guix-git/doc/guix.texi:15741
  23228. #, fuzzy, no-wrap
  23229. msgid "@code{discover?} (default: @code{#f})"
  23230. msgstr "@code{speed}(默认值:@code{1.0})"
  23231. #. type: table
  23232. #: guix-git/doc/guix.texi:15747
  23233. msgid "List of extra command-line options for @command{guix-daemon}."
  23234. msgstr ""
  23235. #. type: item
  23236. #: guix-git/doc/guix.texi:15748
  23237. #, no-wrap
  23238. msgid "@code{log-file} (default: @code{\"/var/log/guix-daemon.log\"})"
  23239. msgstr ""
  23240. #. type: table
  23241. #: guix-git/doc/guix.texi:15751
  23242. msgid "File where @command{guix-daemon}'s standard output and standard error are written."
  23243. msgstr ""
  23244. #. type: cindex
  23245. #: guix-git/doc/guix.texi:15752
  23246. #, no-wrap
  23247. msgid "HTTP proxy, for @code{guix-daemon}"
  23248. msgstr ""
  23249. #. type: cindex
  23250. #: guix-git/doc/guix.texi:15753
  23251. #, no-wrap
  23252. msgid "proxy, for @code{guix-daemon} HTTP access"
  23253. msgstr ""
  23254. #. type: item
  23255. #: guix-git/doc/guix.texi:15754
  23256. #, no-wrap
  23257. msgid "@code{http-proxy} (default: @code{#f})"
  23258. msgstr ""
  23259. #. type: table
  23260. #: guix-git/doc/guix.texi:15757
  23261. msgid "The URL of the HTTP and HTTPS proxy used for downloading fixed-output derivations and substitutes."
  23262. msgstr ""
  23263. #. type: table
  23264. #: guix-git/doc/guix.texi:15760
  23265. msgid "It is also possible to change the daemon's proxy at run time through the @code{set-http-proxy} action, which restarts it:"
  23266. msgstr ""
  23267. #. type: example
  23268. #: guix-git/doc/guix.texi:15763
  23269. #, no-wrap
  23270. msgid "herd set-http-proxy guix-daemon http://localhost:8118\n"
  23271. msgstr ""
  23272. #. type: table
  23273. #: guix-git/doc/guix.texi:15766
  23274. msgid "To clear the proxy settings, run:"
  23275. msgstr ""
  23276. #. type: example
  23277. #: guix-git/doc/guix.texi:15769
  23278. #, fuzzy, no-wrap
  23279. msgid "herd set-http-proxy guix-daemon\n"
  23280. msgstr "安全,guix-daemon"
  23281. #. type: item
  23282. #: guix-git/doc/guix.texi:15771
  23283. #, no-wrap
  23284. msgid "@code{tmpdir} (default: @code{#f})"
  23285. msgstr ""
  23286. #. type: table
  23287. #: guix-git/doc/guix.texi:15773
  23288. msgid "A directory path where the @command{guix-daemon} will perform builds."
  23289. msgstr ""
  23290. #. type: deffn
  23291. #: guix-git/doc/guix.texi:15777
  23292. #, no-wrap
  23293. msgid "{Scheme Procedure} udev-service [#:udev @var{eudev} #:rules @code{'()}]"
  23294. msgstr ""
  23295. #. type: deffn
  23296. #: guix-git/doc/guix.texi:15783
  23297. 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."
  23298. msgstr ""
  23299. #. type: deffn
  23300. #: guix-git/doc/guix.texi:15786
  23301. msgid "The @command{herd rules udev} command, as root, returns the name of the directory containing all the active udev rules."
  23302. msgstr ""
  23303. #. type: deffn
  23304. #: guix-git/doc/guix.texi:15788
  23305. #, no-wrap
  23306. msgid "{Scheme Procedure} udev-rule [@var{file-name} @var{contents}]"
  23307. msgstr ""
  23308. #. type: deffn
  23309. #: guix-git/doc/guix.texi:15791
  23310. msgid "Return a udev-rule file named @var{file-name} containing the rules defined by the @var{contents} literal."
  23311. msgstr ""
  23312. #. type: deffn
  23313. #: guix-git/doc/guix.texi:15795
  23314. 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."
  23315. msgstr ""
  23316. #. type: lisp
  23317. #: guix-git/doc/guix.texi:15803
  23318. #, no-wrap
  23319. msgid ""
  23320. "(define %example-udev-rule\n"
  23321. " (udev-rule\n"
  23322. " \"90-usb-thing.rules\"\n"
  23323. " (string-append \"ACTION==\\\"add\\\", SUBSYSTEM==\\\"usb\\\", \"\n"
  23324. " \"ATTR@{product@}==\\\"Example\\\", \"\n"
  23325. " \"RUN+=\\\"/path/to/script\\\"\")))\n"
  23326. msgstr ""
  23327. #. type: deffn
  23328. #: guix-git/doc/guix.texi:15806
  23329. #, no-wrap
  23330. msgid "{Scheme Procedure} udev-rules-service [@var{name} @var{rules}] @"
  23331. msgstr ""
  23332. #. type: deffn
  23333. #: guix-git/doc/guix.texi:15813
  23334. 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."
  23335. msgstr ""
  23336. #. type: deffn
  23337. #: guix-git/doc/guix.texi:15816
  23338. msgid "Here we show how it can be used to extend @code{udev-service-type} with the previously defined rule @code{%example-udev-rule}."
  23339. msgstr ""
  23340. #. type: lisp
  23341. #: guix-git/doc/guix.texi:15823
  23342. #, no-wrap
  23343. msgid ""
  23344. "(operating-system\n"
  23345. " ;; @dots{}\n"
  23346. " (services\n"
  23347. " (cons (udev-rules-service 'usb-thing %example-udev-rule)\n"
  23348. " %desktop-services)))\n"
  23349. msgstr ""
  23350. #. type: deffn
  23351. #: guix-git/doc/guix.texi:15826
  23352. #, no-wrap
  23353. msgid "{Scheme Procedure} file->udev-rule [@var{file-name} @var{file}]"
  23354. msgstr ""
  23355. #. type: deffn
  23356. #: guix-git/doc/guix.texi:15829
  23357. msgid "Return a udev file named @var{file-name} containing the rules defined within @var{file}, a file-like object."
  23358. msgstr ""
  23359. #. type: deffn
  23360. #: guix-git/doc/guix.texi:15831
  23361. msgid "The following example showcases how we can use an existing rule file."
  23362. msgstr ""
  23363. #. type: lisp
  23364. #: guix-git/doc/guix.texi:15836
  23365. #, no-wrap
  23366. msgid ""
  23367. "(use-modules (guix download) ;for url-fetch\n"
  23368. " (guix packages) ;for origin\n"
  23369. " @dots{})\n"
  23370. "\n"
  23371. msgstr ""
  23372. #. type: lisp
  23373. #: guix-git/doc/guix.texi:15847
  23374. #, no-wrap
  23375. msgid ""
  23376. "(define %android-udev-rules\n"
  23377. " (file->udev-rule\n"
  23378. " \"51-android-udev.rules\"\n"
  23379. " (let ((version \"20170910\"))\n"
  23380. " (origin\n"
  23381. " (method url-fetch)\n"
  23382. " (uri (string-append \"https://raw.githubusercontent.com/M0Rf30/\"\n"
  23383. " \"android-udev-rules/\" version \"/51-android.rules\"))\n"
  23384. " (sha256\n"
  23385. " (base32 \"0lmmagpyb6xsq6zcr2w1cyx9qmjqmajkvrdbhjx32gqf1d9is003\"))))))\n"
  23386. msgstr ""
  23387. #. type: Plain text
  23388. #: guix-git/doc/guix.texi:15856
  23389. 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."
  23390. msgstr ""
  23391. #. type: Plain text
  23392. #: guix-git/doc/guix.texi:15865
  23393. 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."
  23394. msgstr ""
  23395. #. type: lisp
  23396. #: guix-git/doc/guix.texi:15870
  23397. #, no-wrap
  23398. msgid ""
  23399. "(use-modules (gnu packages android) ;for android-udev-rules\n"
  23400. " (gnu system shadow) ;for user-group\n"
  23401. " @dots{})\n"
  23402. "\n"
  23403. msgstr ""
  23404. #. type: lisp
  23405. #: guix-git/doc/guix.texi:15883
  23406. #, no-wrap
  23407. msgid ""
  23408. "(operating-system\n"
  23409. " ;; @dots{}\n"
  23410. " (users (cons (user-account\n"
  23411. " ;; @dots{}\n"
  23412. " (supplementary-groups\n"
  23413. " '(\"adbusers\" ;for adb\n"
  23414. " \"wheel\" \"netdev\" \"audio\" \"video\")))))\n"
  23415. " ;; @dots{}\n"
  23416. " (services\n"
  23417. " (cons (udev-rules-service 'android android-udev-rules\n"
  23418. " #:groups '(\"adbusers\"))\n"
  23419. " %desktop-services)))\n"
  23420. msgstr ""
  23421. #. type: defvr
  23422. #: guix-git/doc/guix.texi:15885
  23423. #, no-wrap
  23424. msgid "{Scheme Variable} urandom-seed-service-type"
  23425. msgstr ""
  23426. #. type: defvr
  23427. #: guix-git/doc/guix.texi:15890
  23428. 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."
  23429. msgstr ""
  23430. #. type: defvr
  23431. #: guix-git/doc/guix.texi:15892
  23432. #, no-wrap
  23433. msgid "{Scheme Variable} %random-seed-file"
  23434. msgstr ""
  23435. #. type: defvr
  23436. #: guix-git/doc/guix.texi:15896
  23437. 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}."
  23438. msgstr ""
  23439. #. type: cindex
  23440. #: guix-git/doc/guix.texi:15898
  23441. #, no-wrap
  23442. msgid "mouse"
  23443. msgstr ""
  23444. #. type: cindex
  23445. #: guix-git/doc/guix.texi:15899
  23446. #, no-wrap
  23447. msgid "gpm"
  23448. msgstr ""
  23449. #. type: defvr
  23450. #: guix-git/doc/guix.texi:15900
  23451. #, no-wrap
  23452. msgid "{Scheme Variable} gpm-service-type"
  23453. msgstr ""
  23454. #. type: defvr
  23455. #: guix-git/doc/guix.texi:15905
  23456. 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."
  23457. msgstr ""
  23458. #. type: defvr
  23459. #: guix-git/doc/guix.texi:15908
  23460. 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}."
  23461. msgstr ""
  23462. #. type: deftp
  23463. #: guix-git/doc/guix.texi:15910
  23464. #, no-wrap
  23465. msgid "{Data Type} gpm-configuration"
  23466. msgstr ""
  23467. #. type: deftp
  23468. #: guix-git/doc/guix.texi:15912
  23469. msgid "Data type representing the configuration of GPM."
  23470. msgstr ""
  23471. #. type: item
  23472. #: guix-git/doc/guix.texi:15914
  23473. #, no-wrap
  23474. msgid "@code{options} (default: @code{%default-gpm-options})"
  23475. msgstr ""
  23476. #. type: table
  23477. #: guix-git/doc/guix.texi:15919
  23478. 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."
  23479. msgstr ""
  23480. #. type: item
  23481. #: guix-git/doc/guix.texi:15920
  23482. #, no-wrap
  23483. msgid "@code{gpm} (default: @code{gpm})"
  23484. msgstr ""
  23485. #. type: table
  23486. #: guix-git/doc/guix.texi:15922
  23487. msgid "The GPM package to use."
  23488. msgstr ""
  23489. #. type: anchor{#1}
  23490. #: guix-git/doc/guix.texi:15927
  23491. msgid "guix-publish-service-type"
  23492. msgstr ""
  23493. #. type: deffn
  23494. #: guix-git/doc/guix.texi:15927
  23495. #, no-wrap
  23496. msgid "{Scheme Variable} guix-publish-service-type"
  23497. msgstr ""
  23498. #. type: deffn
  23499. #: guix-git/doc/guix.texi:15931
  23500. 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."
  23501. msgstr ""
  23502. #. type: deffn
  23503. #: guix-git/doc/guix.texi:15935
  23504. 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."
  23505. msgstr ""
  23506. #. type: deftp
  23507. #: guix-git/doc/guix.texi:15937
  23508. #, no-wrap
  23509. msgid "{Data Type} guix-publish-configuration"
  23510. msgstr ""
  23511. #. type: deftp
  23512. #: guix-git/doc/guix.texi:15940
  23513. msgid "Data type representing the configuration of the @code{guix publish} service."
  23514. msgstr ""
  23515. #. type: item
  23516. #: guix-git/doc/guix.texi:15942
  23517. #, no-wrap
  23518. msgid "@code{guix} (default: @code{guix})"
  23519. msgstr ""
  23520. #. type: item
  23521. #: guix-git/doc/guix.texi:15945 guix-git/doc/guix.texi:30364
  23522. #, no-wrap
  23523. msgid "@code{port} (default: @code{80})"
  23524. msgstr ""
  23525. #. type: table
  23526. #: guix-git/doc/guix.texi:15947
  23527. msgid "The TCP port to listen for connections."
  23528. msgstr ""
  23529. #. type: item
  23530. #: guix-git/doc/guix.texi:15948 guix-git/doc/guix.texi:27994
  23531. #: guix-git/doc/guix.texi:31745
  23532. #, no-wrap
  23533. msgid "@code{host} (default: @code{\"localhost\"})"
  23534. msgstr ""
  23535. #. type: table
  23536. #: guix-git/doc/guix.texi:15951
  23537. msgid "The host (and thus, network interface) to listen to. Use @code{\"0.0.0.0\"} to listen on all the network interfaces."
  23538. msgstr ""
  23539. #. type: item
  23540. #: guix-git/doc/guix.texi:15952
  23541. #, fuzzy, no-wrap
  23542. msgid "@code{advertise?} (default: @code{#f})"
  23543. msgstr "@code{challenge}(默认值:@code{#f})"
  23544. #. type: table
  23545. #: guix-git/doc/guix.texi:15955
  23546. msgid "When true, advertise the service on the local network @i{via} the DNS-SD protocol, using Avahi."
  23547. msgstr ""
  23548. #. type: table
  23549. #: guix-git/doc/guix.texi:15959
  23550. 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."
  23551. msgstr ""
  23552. #. type: item
  23553. #: guix-git/doc/guix.texi:15960
  23554. #, fuzzy, no-wrap
  23555. msgid "@code{compression} (default: @code{'((\"gzip\" 3) (\"zstd\" 3))})"
  23556. msgstr "@code{compression-level}(默认值:@code{3})"
  23557. #. type: table
  23558. #: guix-git/doc/guix.texi:15964
  23559. 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:"
  23560. msgstr ""
  23561. #. type: lisp
  23562. #: guix-git/doc/guix.texi:15967
  23563. #, no-wrap
  23564. msgid "'((\"lzip\" 7) (\"gzip\" 9))\n"
  23565. msgstr ""
  23566. #. type: table
  23567. #: guix-git/doc/guix.texi:15973
  23568. 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."
  23569. msgstr ""
  23570. #. type: table
  23571. #: guix-git/doc/guix.texi:15975
  23572. msgid "An empty list disables compression altogether."
  23573. msgstr ""
  23574. #. type: item
  23575. #: guix-git/doc/guix.texi:15976
  23576. #, no-wrap
  23577. msgid "@code{nar-path} (default: @code{\"nar\"})"
  23578. msgstr ""
  23579. #. type: table
  23580. #: guix-git/doc/guix.texi:15979
  23581. msgid "The URL path at which ``nars'' can be fetched. @xref{Invoking guix publish, @option{--nar-path}}, for details."
  23582. msgstr ""
  23583. #. type: item
  23584. #: guix-git/doc/guix.texi:15980
  23585. #, no-wrap
  23586. msgid "@code{cache} (default: @code{#f})"
  23587. msgstr ""
  23588. #. type: table
  23589. #: guix-git/doc/guix.texi:15986
  23590. 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."
  23591. msgstr ""
  23592. #. type: item
  23593. #: guix-git/doc/guix.texi:15987
  23594. #, no-wrap
  23595. msgid "@code{workers} (default: @code{#f})"
  23596. msgstr ""
  23597. #. type: table
  23598. #: guix-git/doc/guix.texi:15991
  23599. 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."
  23600. msgstr ""
  23601. #. type: item
  23602. #: guix-git/doc/guix.texi:15992
  23603. #, no-wrap
  23604. msgid "@code{cache-bypass-threshold} (default: 10 MiB)"
  23605. msgstr ""
  23606. #. type: table
  23607. #: guix-git/doc/guix.texi:15997
  23608. 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."
  23609. msgstr ""
  23610. #. type: item
  23611. #: guix-git/doc/guix.texi:15998
  23612. #, no-wrap
  23613. msgid "@code{ttl} (default: @code{#f})"
  23614. msgstr ""
  23615. #. type: table
  23616. #: guix-git/doc/guix.texi:16002
  23617. 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."
  23618. msgstr ""
  23619. #. type: anchor{#1}
  23620. #: guix-git/doc/guix.texi:16006
  23621. msgid "rngd-service"
  23622. msgstr ""
  23623. #. type: deffn
  23624. #: guix-git/doc/guix.texi:16006
  23625. #, no-wrap
  23626. msgid "{Scheme Procedure} rngd-service [#:rng-tools @var{rng-tools}] @"
  23627. msgstr ""
  23628. #. type: deffn
  23629. #: guix-git/doc/guix.texi:16011
  23630. 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."
  23631. msgstr ""
  23632. #. type: anchor{#1}
  23633. #: guix-git/doc/guix.texi:16014
  23634. msgid "pam-limits-service"
  23635. msgstr ""
  23636. #. type: cindex
  23637. #: guix-git/doc/guix.texi:16014
  23638. #, no-wrap
  23639. msgid "session limits"
  23640. msgstr ""
  23641. #. type: cindex
  23642. #: guix-git/doc/guix.texi:16015
  23643. #, no-wrap
  23644. msgid "ulimit"
  23645. msgstr ""
  23646. #. type: cindex
  23647. #: guix-git/doc/guix.texi:16016
  23648. #, no-wrap
  23649. msgid "priority"
  23650. msgstr ""
  23651. #. type: cindex
  23652. #: guix-git/doc/guix.texi:16017
  23653. #, no-wrap
  23654. msgid "realtime"
  23655. msgstr ""
  23656. #. type: cindex
  23657. #: guix-git/doc/guix.texi:16018
  23658. #, no-wrap
  23659. msgid "jackd"
  23660. msgstr ""
  23661. #. type: cindex
  23662. #: guix-git/doc/guix.texi:16019
  23663. #, no-wrap
  23664. msgid "nofile"
  23665. msgstr ""
  23666. #. type: cindex
  23667. #: guix-git/doc/guix.texi:16020
  23668. #, fuzzy, no-wrap
  23669. msgid "open file descriptors"
  23670. msgstr "简介和描述"
  23671. #. type: deffn
  23672. #: guix-git/doc/guix.texi:16021
  23673. #, no-wrap
  23674. msgid "{Scheme Procedure} pam-limits-service [#:limits @code{'()}]"
  23675. msgstr ""
  23676. #. type: deffn
  23677. #: guix-git/doc/guix.texi:16028
  23678. 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."
  23679. msgstr ""
  23680. #. type: deffn
  23681. #: guix-git/doc/guix.texi:16031
  23682. msgid "The following limits definition sets two hard and soft limits for all login sessions of users in the @code{realtime} group:"
  23683. msgstr ""
  23684. #. type: lisp
  23685. #: guix-git/doc/guix.texi:16037
  23686. #, no-wrap
  23687. msgid ""
  23688. "(pam-limits-service\n"
  23689. " (list\n"
  23690. " (pam-limits-entry \"@@realtime\" 'both 'rtprio 99)\n"
  23691. " (pam-limits-entry \"@@realtime\" 'both 'memlock 'unlimited)))\n"
  23692. msgstr ""
  23693. #. type: deffn
  23694. #: guix-git/doc/guix.texi:16043
  23695. 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."
  23696. msgstr ""
  23697. #. type: deffn
  23698. #: guix-git/doc/guix.texi:16046
  23699. msgid "Another useful example is raising the maximum number of open file descriptors that can be used:"
  23700. msgstr ""
  23701. #. type: lisp
  23702. #: guix-git/doc/guix.texi:16051
  23703. #, no-wrap
  23704. msgid ""
  23705. "(pam-limits-service\n"
  23706. " (list\n"
  23707. " (pam-limits-entry \"*\" 'both 'nofile 100000)))\n"
  23708. msgstr ""
  23709. #. type: deffn
  23710. #: guix-git/doc/guix.texi:16059
  23711. 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."
  23712. msgstr ""
  23713. #. type: cindex
  23714. #: guix-git/doc/guix.texi:16064 guix-git/doc/guix.texi:35807
  23715. #, no-wrap
  23716. msgid "cron"
  23717. msgstr ""
  23718. #. type: cindex
  23719. #: guix-git/doc/guix.texi:16065 guix-git/doc/guix.texi:35808
  23720. #, no-wrap
  23721. msgid "mcron"
  23722. msgstr ""
  23723. #. type: cindex
  23724. #: guix-git/doc/guix.texi:16066 guix-git/doc/guix.texi:35809
  23725. #, no-wrap
  23726. msgid "scheduling jobs"
  23727. msgstr ""
  23728. #. type: Plain text
  23729. #: guix-git/doc/guix.texi:16073
  23730. 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."
  23731. msgstr ""
  23732. #. type: Plain text
  23733. #: guix-git/doc/guix.texi:16081
  23734. 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})."
  23735. msgstr ""
  23736. #. type: lisp
  23737. #: guix-git/doc/guix.texi:16085
  23738. #, no-wrap
  23739. msgid ""
  23740. "(use-modules (guix) (gnu) (gnu services mcron))\n"
  23741. "(use-package-modules base idutils)\n"
  23742. "\n"
  23743. msgstr ""
  23744. #. type: lisp
  23745. #: guix-git/doc/guix.texi:16095
  23746. #, no-wrap
  23747. msgid ""
  23748. "(define updatedb-job\n"
  23749. " ;; Run 'updatedb' at 3AM every day. Here we write the\n"
  23750. " ;; job's action as a Scheme procedure.\n"
  23751. " #~(job '(next-hour '(3))\n"
  23752. " (lambda ()\n"
  23753. " (execl (string-append #$findutils \"/bin/updatedb\")\n"
  23754. " \"updatedb\"\n"
  23755. " \"--prunepaths=/tmp /var/tmp /gnu/store\"))\n"
  23756. " \"updatedb\"))\n"
  23757. "\n"
  23758. msgstr ""
  23759. #. type: lisp
  23760. #: guix-git/doc/guix.texi:16101
  23761. #, no-wrap
  23762. msgid ""
  23763. "(define garbage-collector-job\n"
  23764. " ;; Collect garbage 5 minutes after midnight every day.\n"
  23765. " ;; The job's action is a shell command.\n"
  23766. " #~(job \"5 0 * * *\" ;Vixie cron syntax\n"
  23767. " \"guix gc -F 1G\"))\n"
  23768. "\n"
  23769. msgstr ""
  23770. #. type: lisp
  23771. #: guix-git/doc/guix.texi:16108
  23772. #, no-wrap
  23773. msgid ""
  23774. "(define idutils-job\n"
  23775. " ;; Update the index database as user \"charlie\" at 12:15PM\n"
  23776. " ;; and 19:15PM. This runs from the user's home directory.\n"
  23777. " #~(job '(next-minute-from (next-hour '(12 19)) '(15))\n"
  23778. " (string-append #$idutils \"/bin/mkid src\")\n"
  23779. " #:user \"charlie\"))\n"
  23780. "\n"
  23781. msgstr ""
  23782. #. type: lisp
  23783. #: guix-git/doc/guix.texi:16111
  23784. #, no-wrap
  23785. msgid ""
  23786. "(operating-system\n"
  23787. " ;; @dots{}\n"
  23788. "\n"
  23789. msgstr ""
  23790. #. type: lisp
  23791. #: guix-git/doc/guix.texi:16121
  23792. #, no-wrap
  23793. msgid ""
  23794. " ;; %BASE-SERVICES already includes an instance of\n"
  23795. " ;; 'mcron-service-type', which we extend with additional\n"
  23796. " ;; jobs using 'simple-service'.\n"
  23797. " (services (cons (simple-service 'my-cron-jobs\n"
  23798. " mcron-service-type\n"
  23799. " (list garbage-collector-job\n"
  23800. " updatedb-job\n"
  23801. " idutils-job))\n"
  23802. " %base-services)))\n"
  23803. msgstr ""
  23804. #. type: quotation
  23805. #: guix-git/doc/guix.texi:16123
  23806. #, fuzzy, no-wrap
  23807. #| msgid "Top"
  23808. msgid "Tip"
  23809. msgstr "Top"
  23810. #. type: quotation
  23811. #: guix-git/doc/guix.texi:16129
  23812. 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!"
  23813. msgstr ""
  23814. #. type: Plain text
  23815. #: guix-git/doc/guix.texi:16136
  23816. 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."
  23817. msgstr ""
  23818. #. type: lisp
  23819. #: guix-git/doc/guix.texi:16152
  23820. #, no-wrap
  23821. msgid ""
  23822. "(define %battery-alert-job\n"
  23823. " ;; Beep when the battery percentage falls below %MIN-LEVEL.\n"
  23824. " #~(job\n"
  23825. " '(next-minute (range 0 60 1))\n"
  23826. " #$(program-file\n"
  23827. " \"battery-alert.scm\"\n"
  23828. " (with-imported-modules (source-module-closure\n"
  23829. " '((guix build utils)))\n"
  23830. " #~(begin\n"
  23831. " (use-modules (guix build utils)\n"
  23832. " (ice-9 popen)\n"
  23833. " (ice-9 regex)\n"
  23834. " (ice-9 textual-ports)\n"
  23835. " (srfi srfi-2))\n"
  23836. "\n"
  23837. msgstr ""
  23838. #. type: lisp
  23839. #: guix-git/doc/guix.texi:16154
  23840. #, no-wrap
  23841. msgid ""
  23842. " (define %min-level 20)\n"
  23843. "\n"
  23844. msgstr ""
  23845. #. type: lisp
  23846. #: guix-git/doc/guix.texi:16165
  23847. #, no-wrap
  23848. msgid ""
  23849. " (setenv \"LC_ALL\" \"C\") ;ensure English output\n"
  23850. " (and-let* ((input-pipe (open-pipe*\n"
  23851. " OPEN_READ\n"
  23852. " #$(file-append acpi \"/bin/acpi\")))\n"
  23853. " (output (get-string-all input-pipe))\n"
  23854. " (m (string-match \"Discharging, ([0-9]+)%\" output))\n"
  23855. " (level (string->number (match:substring m 1)))\n"
  23856. " ((< level %min-level)))\n"
  23857. " (format #t \"warning: Battery level is low (~a%)~%\" level)\n"
  23858. " (invoke #$(file-append beep \"/bin/beep\") \"-r5\")))))))\n"
  23859. msgstr ""
  23860. #. type: Plain text
  23861. #: guix-git/doc/guix.texi:16170
  23862. 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."
  23863. msgstr ""
  23864. #. type: Plain text
  23865. #: guix-git/doc/guix.texi:16173
  23866. 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:"
  23867. msgstr ""
  23868. #. type: example
  23869. #: guix-git/doc/guix.texi:16176
  23870. #, no-wrap
  23871. msgid "# herd schedule mcron\n"
  23872. msgstr ""
  23873. #. type: Plain text
  23874. #: guix-git/doc/guix.texi:16181
  23875. msgid "The example above lists the next five tasks that will be executed, but you can also specify the number of tasks to display:"
  23876. msgstr ""
  23877. #. type: example
  23878. #: guix-git/doc/guix.texi:16184
  23879. #, no-wrap
  23880. msgid "# herd schedule mcron 10\n"
  23881. msgstr ""
  23882. #. type: defvr
  23883. #: guix-git/doc/guix.texi:16186
  23884. #, no-wrap
  23885. msgid "{Scheme Variable} mcron-service-type"
  23886. msgstr ""
  23887. #. type: defvr
  23888. #: guix-git/doc/guix.texi:16189
  23889. msgid "This is the type of the @code{mcron} service, whose value is an @code{mcron-configuration} object."
  23890. msgstr ""
  23891. #. type: defvr
  23892. #: guix-git/doc/guix.texi:16194 guix-git/doc/guix.texi:35828
  23893. 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."
  23894. msgstr ""
  23895. #. type: deftp
  23896. #: guix-git/doc/guix.texi:16196
  23897. #, no-wrap
  23898. msgid "{Data Type} mcron-configuration"
  23899. msgstr ""
  23900. #. type: deftp
  23901. #: guix-git/doc/guix.texi:16198 guix-git/doc/guix.texi:35832
  23902. msgid "Data type representing the configuration of mcron."
  23903. msgstr ""
  23904. #. type: item
  23905. #: guix-git/doc/guix.texi:16200 guix-git/doc/guix.texi:35834
  23906. #, no-wrap
  23907. msgid "@code{mcron} (default: @var{mcron})"
  23908. msgstr ""
  23909. #. type: table
  23910. #: guix-git/doc/guix.texi:16202 guix-git/doc/guix.texi:35836
  23911. msgid "The mcron package to use."
  23912. msgstr ""
  23913. #. type: code{#1}
  23914. #: guix-git/doc/guix.texi:16203 guix-git/doc/guix.texi:16272
  23915. #: guix-git/doc/guix.texi:35837
  23916. #, no-wrap
  23917. msgid "jobs"
  23918. msgstr ""
  23919. #. type: table
  23920. #: guix-git/doc/guix.texi:16207 guix-git/doc/guix.texi:35841
  23921. 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})."
  23922. msgstr ""
  23923. #. type: cindex
  23924. #: guix-git/doc/guix.texi:16214
  23925. #, no-wrap
  23926. msgid "rottlog"
  23927. msgstr ""
  23928. #. type: cindex
  23929. #: guix-git/doc/guix.texi:16215
  23930. #, no-wrap
  23931. msgid "log rotation"
  23932. msgstr ""
  23933. #. type: Plain text
  23934. #: guix-git/doc/guix.texi:16222
  23935. 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})."
  23936. msgstr ""
  23937. #. type: Plain text
  23938. #: guix-git/doc/guix.texi:16228
  23939. 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):"
  23940. msgstr ""
  23941. #. type: lisp
  23942. #: guix-git/doc/guix.texi:16232
  23943. #, no-wrap
  23944. msgid ""
  23945. "(use-modules (guix) (gnu))\n"
  23946. "(use-service-modules admin)\n"
  23947. "\n"
  23948. msgstr ""
  23949. #. type: lisp
  23950. #: guix-git/doc/guix.texi:16236
  23951. #, no-wrap
  23952. msgid ""
  23953. "(define my-log-files\n"
  23954. " ;; Log files that I want to rotate.\n"
  23955. " '(\"/var/log/something.log\" \"/var/log/another.log\"))\n"
  23956. "\n"
  23957. msgstr ""
  23958. #. type: lisp
  23959. #: guix-git/doc/guix.texi:16245
  23960. #, no-wrap
  23961. msgid ""
  23962. "(operating-system\n"
  23963. " ;; @dots{}\n"
  23964. " (services (cons (simple-service 'rotate-my-stuff\n"
  23965. " rottlog-service-type\n"
  23966. " (list (log-rotation\n"
  23967. " (frequency 'daily)\n"
  23968. " (files my-log-files))))\n"
  23969. " %base-services)))\n"
  23970. msgstr ""
  23971. #. type: defvr
  23972. #: guix-git/doc/guix.texi:16247
  23973. #, no-wrap
  23974. msgid "{Scheme Variable} rottlog-service-type"
  23975. msgstr ""
  23976. #. type: defvr
  23977. #: guix-git/doc/guix.texi:16250
  23978. msgid "This is the type of the Rottlog service, whose value is a @code{rottlog-configuration} object."
  23979. msgstr ""
  23980. #. type: defvr
  23981. #: guix-git/doc/guix.texi:16253
  23982. msgid "Other services can extend this one with new @code{log-rotation} objects (see below), thereby augmenting the set of files to be rotated."
  23983. msgstr ""
  23984. #. type: defvr
  23985. #: guix-git/doc/guix.texi:16256
  23986. msgid "This service type can define mcron jobs (@pxref{Scheduled Job Execution}) to run the rottlog service."
  23987. msgstr ""
  23988. #. type: deftp
  23989. #: guix-git/doc/guix.texi:16258
  23990. #, no-wrap
  23991. msgid "{Data Type} rottlog-configuration"
  23992. msgstr ""
  23993. #. type: deftp
  23994. #: guix-git/doc/guix.texi:16260
  23995. msgid "Data type representing the configuration of rottlog."
  23996. msgstr ""
  23997. #. type: item
  23998. #: guix-git/doc/guix.texi:16262
  23999. #, no-wrap
  24000. msgid "@code{rottlog} (default: @code{rottlog})"
  24001. msgstr ""
  24002. #. type: table
  24003. #: guix-git/doc/guix.texi:16264
  24004. msgid "The Rottlog package to use."
  24005. msgstr ""
  24006. #. type: item
  24007. #: guix-git/doc/guix.texi:16265
  24008. #, no-wrap
  24009. msgid "@code{rc-file} (default: @code{(file-append rottlog \"/etc/rc\")})"
  24010. msgstr ""
  24011. #. type: table
  24012. #: guix-git/doc/guix.texi:16268
  24013. msgid "The Rottlog configuration file to use (@pxref{Mandatory RC Variables,,, rottlog, GNU Rot[t]log Manual})."
  24014. msgstr ""
  24015. #. type: item
  24016. #: guix-git/doc/guix.texi:16269
  24017. #, no-wrap
  24018. msgid "@code{rotations} (default: @code{%default-rotations})"
  24019. msgstr ""
  24020. #. type: table
  24021. #: guix-git/doc/guix.texi:16271
  24022. msgid "A list of @code{log-rotation} objects as defined below."
  24023. msgstr ""
  24024. #. type: table
  24025. #: guix-git/doc/guix.texi:16275
  24026. msgid "This is a list of gexps where each gexp corresponds to an mcron job specification (@pxref{Scheduled Job Execution})."
  24027. msgstr ""
  24028. #. type: deftp
  24029. #: guix-git/doc/guix.texi:16278
  24030. #, no-wrap
  24031. msgid "{Data Type} log-rotation"
  24032. msgstr ""
  24033. #. type: deftp
  24034. #: guix-git/doc/guix.texi:16280
  24035. msgid "Data type representing the rotation of a group of log files."
  24036. msgstr ""
  24037. #. type: deftp
  24038. #: guix-git/doc/guix.texi:16284
  24039. 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:"
  24040. msgstr ""
  24041. #. type: lisp
  24042. #: guix-git/doc/guix.texi:16293
  24043. #, no-wrap
  24044. msgid ""
  24045. "(log-rotation\n"
  24046. " (frequency 'daily)\n"
  24047. " (files '(\"/var/log/apache/*\"))\n"
  24048. " (options '(\"storedir apache-archives\"\n"
  24049. " \"rotate 6\"\n"
  24050. " \"notifempty\"\n"
  24051. " \"nocompress\")))\n"
  24052. msgstr ""
  24053. #. type: deftp
  24054. #: guix-git/doc/guix.texi:16296
  24055. msgid "The list of fields is as follows:"
  24056. msgstr ""
  24057. #. type: item
  24058. #: guix-git/doc/guix.texi:16298
  24059. #, no-wrap
  24060. msgid "@code{frequency} (default: @code{'weekly})"
  24061. msgstr ""
  24062. #. type: table
  24063. #: guix-git/doc/guix.texi:16300
  24064. msgid "The log rotation frequency, a symbol."
  24065. msgstr ""
  24066. #. type: code{#1}
  24067. #: guix-git/doc/guix.texi:16301
  24068. #, no-wrap
  24069. msgid "files"
  24070. msgstr ""
  24071. #. type: table
  24072. #: guix-git/doc/guix.texi:16303
  24073. msgid "The list of files or file glob patterns to rotate."
  24074. msgstr ""
  24075. #. type: item
  24076. #: guix-git/doc/guix.texi:16304
  24077. #, no-wrap
  24078. msgid "@code{options} (default: @code{'()})"
  24079. msgstr ""
  24080. #. type: table
  24081. #: guix-git/doc/guix.texi:16307
  24082. msgid "The list of rottlog options for this rotation (@pxref{Configuration parameters,,, rottlog, GNU Rot[t]lg Manual})."
  24083. msgstr ""
  24084. #. type: item
  24085. #: guix-git/doc/guix.texi:16308
  24086. #, no-wrap
  24087. msgid "@code{post-rotate} (default: @code{#f})"
  24088. msgstr ""
  24089. #. type: table
  24090. #: guix-git/doc/guix.texi:16310
  24091. msgid "Either @code{#f} or a gexp to execute once the rotation has completed."
  24092. msgstr ""
  24093. #. type: defvr
  24094. #: guix-git/doc/guix.texi:16313
  24095. #, no-wrap
  24096. msgid "{Scheme Variable} %default-rotations"
  24097. msgstr ""
  24098. #. type: defvr
  24099. #: guix-git/doc/guix.texi:16316
  24100. msgid "Specifies weekly rotation of @code{%rotated-files} and of @file{/var/log/guix-daemon.log}."
  24101. msgstr ""
  24102. #. type: defvr
  24103. #: guix-git/doc/guix.texi:16318
  24104. #, no-wrap
  24105. msgid "{Scheme Variable} %rotated-files"
  24106. msgstr ""
  24107. #. type: defvr
  24108. #: guix-git/doc/guix.texi:16322
  24109. 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\")}."
  24110. msgstr ""
  24111. #. type: Plain text
  24112. #: guix-git/doc/guix.texi:16329
  24113. msgid "The @code{(gnu services networking)} module provides services to configure the network interface."
  24114. msgstr ""
  24115. #. type: cindex
  24116. #: guix-git/doc/guix.texi:16330
  24117. #, no-wrap
  24118. msgid "DHCP, networking service"
  24119. msgstr ""
  24120. #. type: defvr
  24121. #: guix-git/doc/guix.texi:16331
  24122. #, no-wrap
  24123. msgid "{Scheme Variable} dhcp-client-service-type"
  24124. msgstr ""
  24125. #. type: defvr
  24126. #: guix-git/doc/guix.texi:16335
  24127. 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."
  24128. msgstr ""
  24129. #. type: deffn
  24130. #: guix-git/doc/guix.texi:16337
  24131. #, no-wrap
  24132. msgid "{Scheme Procedure} dhcpd-service-type"
  24133. msgstr ""
  24134. #. type: deffn
  24135. #: guix-git/doc/guix.texi:16341
  24136. 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:"
  24137. msgstr ""
  24138. #. type: lisp
  24139. #: guix-git/doc/guix.texi:16347
  24140. #, no-wrap
  24141. msgid ""
  24142. "(service dhcpd-service-type\n"
  24143. " (dhcpd-configuration\n"
  24144. " (config-file (local-file \"my-dhcpd.conf\"))\n"
  24145. " (interfaces '(\"enp0s25\"))))\n"
  24146. msgstr ""
  24147. #. type: deftp
  24148. #: guix-git/doc/guix.texi:16350
  24149. #, no-wrap
  24150. msgid "{Data Type} dhcpd-configuration"
  24151. msgstr ""
  24152. #. type: item
  24153. #: guix-git/doc/guix.texi:16352
  24154. #, no-wrap
  24155. msgid "@code{package} (default: @code{isc-dhcp})"
  24156. msgstr ""
  24157. #. type: table
  24158. #: guix-git/doc/guix.texi:16357
  24159. 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}."
  24160. msgstr ""
  24161. #. type: item
  24162. #: guix-git/doc/guix.texi:16357 guix-git/doc/guix.texi:16613
  24163. #: guix-git/doc/guix.texi:21828
  24164. #, no-wrap
  24165. msgid "@code{config-file} (default: @code{#f})"
  24166. msgstr ""
  24167. #. type: table
  24168. #: guix-git/doc/guix.texi:16362
  24169. 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."
  24170. msgstr ""
  24171. #. type: item
  24172. #: guix-git/doc/guix.texi:16362
  24173. #, no-wrap
  24174. msgid "@code{version} (default: @code{\"4\"})"
  24175. msgstr ""
  24176. #. type: table
  24177. #: guix-git/doc/guix.texi:16367
  24178. 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."
  24179. msgstr ""
  24180. #. type: item
  24181. #: guix-git/doc/guix.texi:16367
  24182. #, no-wrap
  24183. msgid "@code{run-directory} (default: @code{\"/run/dhcpd\"})"
  24184. msgstr ""
  24185. #. type: table
  24186. #: guix-git/doc/guix.texi:16370
  24187. msgid "The run directory to use. At service activation time, this directory will be created if it does not exist."
  24188. msgstr ""
  24189. #. type: item
  24190. #: guix-git/doc/guix.texi:16370
  24191. #, no-wrap
  24192. msgid "@code{pid-file} (default: @code{\"/run/dhcpd/dhcpd.pid\"})"
  24193. msgstr ""
  24194. #. type: table
  24195. #: guix-git/doc/guix.texi:16373
  24196. msgid "The PID file to use. This corresponds to the @code{-pf} option of @code{dhcpd}. See @code{man dhcpd} for details."
  24197. msgstr ""
  24198. #. type: item
  24199. #: guix-git/doc/guix.texi:16373
  24200. #, no-wrap
  24201. msgid "@code{interfaces} (default: @code{'()})"
  24202. msgstr ""
  24203. #. type: table
  24204. #: guix-git/doc/guix.texi:16379
  24205. 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."
  24206. msgstr ""
  24207. #. type: defvr
  24208. #: guix-git/doc/guix.texi:16382
  24209. #, no-wrap
  24210. msgid "{Scheme Variable} static-networking-service-type"
  24211. msgstr ""
  24212. #. type: defvr
  24213. #: guix-git/doc/guix.texi:16385
  24214. msgid "This is the type for statically-configured network interfaces."
  24215. msgstr ""
  24216. #. type: deffn
  24217. #: guix-git/doc/guix.texi:16387
  24218. #, no-wrap
  24219. msgid "{Scheme Procedure} static-networking-service @var{interface} @var{ip} @"
  24220. msgstr ""
  24221. #. type: deffn
  24222. #: guix-git/doc/guix.texi:16395
  24223. msgid "[#:netmask #f] [#:gateway #f] [#:name-servers @code{'()}] @ [#:requirement @code{'(udev)}] Return a service that starts @var{interface} with address @var{ip}. If @var{netmask} is true, use it as the network mask. If @var{gateway} is true, it must be a string specifying the default network gateway. @var{requirement} can be used to declare a dependency on another service before configuring the interface."
  24224. msgstr ""
  24225. #. type: deffn
  24226. #: guix-git/doc/guix.texi:16400
  24227. msgid "This procedure can be called several times, one for each network interface of interest. Behind the scenes what it does is extend @code{static-networking-service-type} with additional network interfaces to handle."
  24228. msgstr ""
  24229. #. type: defvr
  24230. #: guix-git/doc/guix.texi:16402 guix-git/doc/guix.texi:29675
  24231. msgid "For example:"
  24232. msgstr ""
  24233. #. type: lisp
  24234. #: guix-git/doc/guix.texi:16407
  24235. #, no-wrap
  24236. msgid ""
  24237. "(static-networking-service \"eno1\" \"192.168.1.82\"\n"
  24238. " #:gateway \"192.168.1.2\"\n"
  24239. " #:name-servers '(\"192.168.1.2\"))\n"
  24240. msgstr ""
  24241. #. type: cindex
  24242. #: guix-git/doc/guix.texi:16410
  24243. #, no-wrap
  24244. msgid "wicd"
  24245. msgstr ""
  24246. #. type: cindex
  24247. #: guix-git/doc/guix.texi:16413
  24248. #, no-wrap
  24249. msgid "network management"
  24250. msgstr ""
  24251. #. type: deffn
  24252. #: guix-git/doc/guix.texi:16414
  24253. #, no-wrap
  24254. msgid "{Scheme Procedure} wicd-service [#:wicd @var{wicd}]"
  24255. msgstr ""
  24256. #. type: deffn
  24257. #: guix-git/doc/guix.texi:16417
  24258. msgid "Return a service that runs @url{https://launchpad.net/wicd,Wicd}, a network management daemon that aims to simplify wired and wireless networking."
  24259. msgstr ""
  24260. #. type: deffn
  24261. #: guix-git/doc/guix.texi:16422
  24262. 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."
  24263. msgstr ""
  24264. #. type: cindex
  24265. #: guix-git/doc/guix.texi:16424
  24266. #, no-wrap
  24267. msgid "ModemManager"
  24268. msgstr ""
  24269. #. type: defvr
  24270. #: guix-git/doc/guix.texi:16426
  24271. #, no-wrap
  24272. msgid "{Scheme Variable} modem-manager-service-type"
  24273. msgstr ""
  24274. #. type: defvr
  24275. #: guix-git/doc/guix.texi:16431
  24276. 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."
  24277. msgstr ""
  24278. #. type: defvr
  24279. #: guix-git/doc/guix.texi:16434 guix-git/doc/guix.texi:16463
  24280. #: guix-git/doc/guix.texi:16495
  24281. msgid "This service is part of @code{%desktop-services} (@pxref{Desktop Services})."
  24282. msgstr ""
  24283. #. type: deftp
  24284. #: guix-git/doc/guix.texi:16436
  24285. #, no-wrap
  24286. msgid "{Data Type} modem-manager-configuration"
  24287. msgstr ""
  24288. #. type: deftp
  24289. #: guix-git/doc/guix.texi:16438
  24290. msgid "Data type representing the configuration of ModemManager."
  24291. msgstr ""
  24292. #. type: item
  24293. #: guix-git/doc/guix.texi:16440
  24294. #, no-wrap
  24295. msgid "@code{modem-manager} (default: @code{modem-manager})"
  24296. msgstr ""
  24297. #. type: table
  24298. #: guix-git/doc/guix.texi:16442
  24299. msgid "The ModemManager package to use."
  24300. msgstr ""
  24301. #. type: cindex
  24302. #: guix-git/doc/guix.texi:16446
  24303. #, no-wrap
  24304. msgid "USB_ModeSwitch"
  24305. msgstr ""
  24306. #. type: cindex
  24307. #: guix-git/doc/guix.texi:16447
  24308. #, no-wrap
  24309. msgid "Modeswitching"
  24310. msgstr ""
  24311. #. type: defvr
  24312. #: guix-git/doc/guix.texi:16449
  24313. #, no-wrap
  24314. msgid "{Scheme Variable} usb-modeswitch-service-type"
  24315. msgstr ""
  24316. #. type: defvr
  24317. #: guix-git/doc/guix.texi:16454
  24318. 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."
  24319. msgstr ""
  24320. #. type: defvr
  24321. #: guix-git/doc/guix.texi:16460
  24322. 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."
  24323. msgstr ""
  24324. #. type: deftp
  24325. #: guix-git/doc/guix.texi:16465
  24326. #, no-wrap
  24327. msgid "{Data Type} usb-modeswitch-configuration"
  24328. msgstr ""
  24329. #. type: deftp
  24330. #: guix-git/doc/guix.texi:16467
  24331. msgid "Data type representing the configuration of USB_ModeSwitch."
  24332. msgstr ""
  24333. #. type: item
  24334. #: guix-git/doc/guix.texi:16469
  24335. #, fuzzy, no-wrap
  24336. msgid "@code{usb-modeswitch} (default: @code{usb-modeswitch})"
  24337. msgstr "@code{mate}(默认值:@code{mate})"
  24338. #. type: table
  24339. #: guix-git/doc/guix.texi:16471
  24340. msgid "The USB_ModeSwitch package providing the binaries for modeswitching."
  24341. msgstr ""
  24342. #. type: item
  24343. #: guix-git/doc/guix.texi:16472
  24344. #, fuzzy, no-wrap
  24345. msgid "@code{usb-modeswitch-data} (default: @code{usb-modeswitch-data})"
  24346. msgstr "@code{mate}(默认值:@code{mate})"
  24347. #. type: table
  24348. #: guix-git/doc/guix.texi:16475
  24349. msgid "The package providing the device data and udev rules file used by USB_ModeSwitch."
  24350. msgstr ""
  24351. #. type: item
  24352. #: guix-git/doc/guix.texi:16476
  24353. #, no-wrap
  24354. msgid "@code{config-file} (default: @code{#~(string-append #$usb-modeswitch:dispatcher \"/etc/usb_modeswitch.conf\")})"
  24355. msgstr ""
  24356. #. type: table
  24357. #: guix-git/doc/guix.texi:16481
  24358. 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."
  24359. msgstr ""
  24360. #. type: cindex
  24361. #: guix-git/doc/guix.texi:16485
  24362. #, no-wrap
  24363. msgid "NetworkManager"
  24364. msgstr ""
  24365. #. type: defvr
  24366. #: guix-git/doc/guix.texi:16487
  24367. #, no-wrap
  24368. msgid "{Scheme Variable} network-manager-service-type"
  24369. msgstr ""
  24370. #. type: defvr
  24371. #: guix-git/doc/guix.texi:16492
  24372. 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."
  24373. msgstr ""
  24374. #. type: deftp
  24375. #: guix-git/doc/guix.texi:16497
  24376. #, no-wrap
  24377. msgid "{Data Type} network-manager-configuration"
  24378. msgstr ""
  24379. #. type: deftp
  24380. #: guix-git/doc/guix.texi:16499
  24381. msgid "Data type representing the configuration of NetworkManager."
  24382. msgstr ""
  24383. #. type: item
  24384. #: guix-git/doc/guix.texi:16501
  24385. #, no-wrap
  24386. msgid "@code{network-manager} (default: @code{network-manager})"
  24387. msgstr ""
  24388. #. type: table
  24389. #: guix-git/doc/guix.texi:16503
  24390. msgid "The NetworkManager package to use."
  24391. msgstr ""
  24392. #. type: item
  24393. #: guix-git/doc/guix.texi:16504
  24394. #, no-wrap
  24395. msgid "@code{dns} (default: @code{\"default\"})"
  24396. msgstr ""
  24397. #. type: table
  24398. #: guix-git/doc/guix.texi:16507
  24399. msgid "Processing mode for DNS, which affects how NetworkManager uses the @code{resolv.conf} configuration file."
  24400. msgstr ""
  24401. #. type: table
  24402. #: guix-git/doc/guix.texi:16512
  24403. msgid "NetworkManager will update @code{resolv.conf} to reflect the nameservers provided by currently active connections."
  24404. msgstr ""
  24405. #. type: item
  24406. #: guix-git/doc/guix.texi:16513
  24407. #, no-wrap
  24408. msgid "dnsmasq"
  24409. msgstr ""
  24410. #. type: table
  24411. #: guix-git/doc/guix.texi:16517
  24412. 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."
  24413. msgstr ""
  24414. #. type: table
  24415. #: guix-git/doc/guix.texi:16523
  24416. 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)."
  24417. msgstr ""
  24418. #. type: table
  24419. #: guix-git/doc/guix.texi:16530
  24420. 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:"
  24421. msgstr ""
  24422. #. type: example
  24423. #: guix-git/doc/guix.texi:16537
  24424. #, no-wrap
  24425. msgid ""
  24426. "nmcli connection add type tun \\\n"
  24427. " connection.interface-name tap0 \\\n"
  24428. " tun.mode tap tun.owner $(id -u) \\\n"
  24429. " ipv4.method shared \\\n"
  24430. " ipv4.addresses 172.28.112.1/24\n"
  24431. msgstr ""
  24432. #. type: table
  24433. #: guix-git/doc/guix.texi:16542
  24434. 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-...}."
  24435. msgstr ""
  24436. #. type: table
  24437. #: guix-git/doc/guix.texi:16545
  24438. msgid "NetworkManager will not modify @code{resolv.conf}."
  24439. msgstr ""
  24440. #. type: item
  24441. #: guix-git/doc/guix.texi:16547
  24442. #, no-wrap
  24443. msgid "@code{vpn-plugins} (default: @code{'()})"
  24444. msgstr ""
  24445. #. type: table
  24446. #: guix-git/doc/guix.texi:16551
  24447. 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."
  24448. msgstr ""
  24449. #. type: cindex
  24450. #: guix-git/doc/guix.texi:16555
  24451. #, no-wrap
  24452. msgid "Connman"
  24453. msgstr ""
  24454. #. type: deffn
  24455. #: guix-git/doc/guix.texi:16556
  24456. #, no-wrap
  24457. msgid "{Scheme Variable} connman-service-type"
  24458. msgstr ""
  24459. #. type: deffn
  24460. #: guix-git/doc/guix.texi:16559
  24461. msgid "This is the service type to run @url{https://01.org/connman,Connman}, a network connection manager."
  24462. msgstr ""
  24463. #. type: deffn
  24464. #: guix-git/doc/guix.texi:16562
  24465. msgid "Its value must be an @code{connman-configuration} record as in this example:"
  24466. msgstr ""
  24467. #. type: lisp
  24468. #: guix-git/doc/guix.texi:16567
  24469. #, no-wrap
  24470. msgid ""
  24471. "(service connman-service-type\n"
  24472. " (connman-configuration\n"
  24473. " (disable-vpn? #t)))\n"
  24474. msgstr ""
  24475. #. type: deffn
  24476. #: guix-git/doc/guix.texi:16570
  24477. msgid "See below for details about @code{connman-configuration}."
  24478. msgstr ""
  24479. #. type: deftp
  24480. #: guix-git/doc/guix.texi:16572
  24481. #, no-wrap
  24482. msgid "{Data Type} connman-configuration"
  24483. msgstr ""
  24484. #. type: deftp
  24485. #: guix-git/doc/guix.texi:16574
  24486. msgid "Data Type representing the configuration of connman."
  24487. msgstr ""
  24488. #. type: item
  24489. #: guix-git/doc/guix.texi:16576
  24490. #, no-wrap
  24491. msgid "@code{connman} (default: @var{connman})"
  24492. msgstr ""
  24493. #. type: table
  24494. #: guix-git/doc/guix.texi:16578
  24495. msgid "The connman package to use."
  24496. msgstr ""
  24497. #. type: item
  24498. #: guix-git/doc/guix.texi:16579
  24499. #, no-wrap
  24500. msgid "@code{disable-vpn?} (default: @code{#f})"
  24501. msgstr ""
  24502. #. type: table
  24503. #: guix-git/doc/guix.texi:16581
  24504. msgid "When true, disable connman's vpn plugin."
  24505. msgstr ""
  24506. #. type: cindex
  24507. #: guix-git/doc/guix.texi:16584
  24508. #, no-wrap
  24509. msgid "WPA Supplicant"
  24510. msgstr ""
  24511. #. type: defvr
  24512. #: guix-git/doc/guix.texi:16585
  24513. #, no-wrap
  24514. msgid "{Scheme Variable} wpa-supplicant-service-type"
  24515. msgstr ""
  24516. #. type: defvr
  24517. #: guix-git/doc/guix.texi:16589
  24518. 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."
  24519. msgstr ""
  24520. #. type: deftp
  24521. #: guix-git/doc/guix.texi:16591
  24522. #, no-wrap
  24523. msgid "{Data Type} wpa-supplicant-configuration"
  24524. msgstr ""
  24525. #. type: deftp
  24526. #: guix-git/doc/guix.texi:16593
  24527. msgid "Data type representing the configuration of WPA Supplicant."
  24528. msgstr ""
  24529. #. type: deftp
  24530. #: guix-git/doc/guix.texi:16595 guix-git/doc/guix.texi:31832
  24531. msgid "It takes the following parameters:"
  24532. msgstr ""
  24533. #. type: item
  24534. #: guix-git/doc/guix.texi:16597
  24535. #, no-wrap
  24536. msgid "@code{wpa-supplicant} (default: @code{wpa-supplicant})"
  24537. msgstr ""
  24538. #. type: table
  24539. #: guix-git/doc/guix.texi:16599
  24540. msgid "The WPA Supplicant package to use."
  24541. msgstr ""
  24542. #. type: item
  24543. #: guix-git/doc/guix.texi:16600
  24544. #, no-wrap
  24545. msgid "@code{requirement} (default: @code{'(user-processes loopback syslogd)}"
  24546. msgstr ""
  24547. #. type: table
  24548. #: guix-git/doc/guix.texi:16602
  24549. msgid "List of services that should be started before WPA Supplicant starts."
  24550. msgstr ""
  24551. #. type: item
  24552. #: guix-git/doc/guix.texi:16603
  24553. #, no-wrap
  24554. msgid "@code{dbus?} (default: @code{#t})"
  24555. msgstr ""
  24556. #. type: table
  24557. #: guix-git/doc/guix.texi:16605
  24558. msgid "Whether to listen for requests on D-Bus."
  24559. msgstr ""
  24560. #. type: item
  24561. #: guix-git/doc/guix.texi:16606
  24562. #, no-wrap
  24563. msgid "@code{pid-file} (default: @code{\"/var/run/wpa_supplicant.pid\"})"
  24564. msgstr ""
  24565. #. type: table
  24566. #: guix-git/doc/guix.texi:16608
  24567. msgid "Where to store the PID file."
  24568. msgstr ""
  24569. #. type: item
  24570. #: guix-git/doc/guix.texi:16609 guix-git/doc/guix.texi:30133
  24571. #: guix-git/doc/guix.texi:30275
  24572. #, no-wrap
  24573. msgid "@code{interface} (default: @code{#f})"
  24574. msgstr ""
  24575. #. type: table
  24576. #: guix-git/doc/guix.texi:16612
  24577. msgid "If this is set, it must specify the name of a network interface that WPA supplicant will control."
  24578. msgstr ""
  24579. #. type: table
  24580. #: guix-git/doc/guix.texi:16615
  24581. msgid "Optional configuration file to use."
  24582. msgstr ""
  24583. #. type: table
  24584. #: guix-git/doc/guix.texi:16618
  24585. msgid "List of additional command-line arguments to pass to the daemon."
  24586. msgstr ""
  24587. #. type: cindex
  24588. #: guix-git/doc/guix.texi:16621
  24589. #, no-wrap
  24590. msgid "hostapd service, for Wi-Fi access points"
  24591. msgstr ""
  24592. #. type: cindex
  24593. #: guix-git/doc/guix.texi:16622
  24594. #, no-wrap
  24595. msgid "Wi-Fi access points, hostapd service"
  24596. msgstr ""
  24597. #. type: defvr
  24598. #: guix-git/doc/guix.texi:16623
  24599. #, no-wrap
  24600. msgid "{Scheme Variable} hostapd-service-type"
  24601. msgstr ""
  24602. #. type: defvr
  24603. #: guix-git/doc/guix.texi:16628
  24604. 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:"
  24605. msgstr ""
  24606. #. type: lisp
  24607. #: guix-git/doc/guix.texi:16636
  24608. #, no-wrap
  24609. msgid ""
  24610. ";; Use wlan1 to run the access point for \"My Network\".\n"
  24611. "(service hostapd-service-type\n"
  24612. " (hostapd-configuration\n"
  24613. " (interface \"wlan1\")\n"
  24614. " (ssid \"My Network\")\n"
  24615. " (channel 12)))\n"
  24616. msgstr ""
  24617. #. type: deftp
  24618. #: guix-git/doc/guix.texi:16639
  24619. #, no-wrap
  24620. msgid "{Data Type} hostapd-configuration"
  24621. msgstr ""
  24622. #. type: deftp
  24623. #: guix-git/doc/guix.texi:16642
  24624. msgid "This data type represents the configuration of the hostapd service, with the following fields:"
  24625. msgstr ""
  24626. #. type: item
  24627. #: guix-git/doc/guix.texi:16644
  24628. #, fuzzy, no-wrap
  24629. msgid "@code{package} (default: @code{hostapd})"
  24630. msgstr "@code{mate}(默认值:@code{mate})"
  24631. #. type: table
  24632. #: guix-git/doc/guix.texi:16646
  24633. #, fuzzy
  24634. msgid "The hostapd package to use."
  24635. msgstr "软件包数据类型。"
  24636. #. type: item
  24637. #: guix-git/doc/guix.texi:16647
  24638. #, fuzzy, no-wrap
  24639. msgid "@code{interface} (default: @code{\"wlan0\"})"
  24640. msgstr "@code{display}(默认值:@code{\":0\"})"
  24641. #. type: table
  24642. #: guix-git/doc/guix.texi:16649
  24643. msgid "The network interface to run the WiFi access point."
  24644. msgstr ""
  24645. #. type: code{#1}
  24646. #: guix-git/doc/guix.texi:16650
  24647. #, no-wrap
  24648. msgid "ssid"
  24649. msgstr ""
  24650. #. type: table
  24651. #: guix-git/doc/guix.texi:16653
  24652. msgid "The SSID (@dfn{service set identifier}), a string that identifies this network."
  24653. msgstr ""
  24654. #. type: item
  24655. #: guix-git/doc/guix.texi:16654
  24656. #, fuzzy, no-wrap
  24657. msgid "@code{broadcast-ssid?} (default: @code{#t})"
  24658. msgstr "@code{mate}(默认值:@code{mate})"
  24659. #. type: table
  24660. #: guix-git/doc/guix.texi:16656
  24661. msgid "Whether to broadcast this SSID."
  24662. msgstr ""
  24663. #. type: item
  24664. #: guix-git/doc/guix.texi:16657
  24665. #, fuzzy, no-wrap
  24666. msgid "@code{channel} (default: @code{1})"
  24667. msgstr "@code{challenge}(默认值:@code{#f})"
  24668. #. type: table
  24669. #: guix-git/doc/guix.texi:16659
  24670. msgid "The WiFi channel to use."
  24671. msgstr ""
  24672. #. type: item
  24673. #: guix-git/doc/guix.texi:16660
  24674. #, fuzzy, no-wrap
  24675. msgid "@code{driver} (default: @code{\"nl80211\"})"
  24676. msgstr "@code{display}(默认值:@code{\":0\"})"
  24677. #. type: table
  24678. #: guix-git/doc/guix.texi:16664
  24679. 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."
  24680. msgstr ""
  24681. #. type: item
  24682. #: guix-git/doc/guix.texi:16665 guix-git/doc/guix.texi:22677
  24683. #: guix-git/doc/guix.texi:25756
  24684. #, no-wrap
  24685. msgid "@code{extra-settings} (default: @code{\"\"})"
  24686. msgstr ""
  24687. #. type: table
  24688. #: guix-git/doc/guix.texi:16669
  24689. 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."
  24690. msgstr ""
  24691. #. type: defvr
  24692. #: guix-git/doc/guix.texi:16672
  24693. #, no-wrap
  24694. msgid "{Scheme Variable} simulated-wifi-service-type"
  24695. msgstr ""
  24696. #. type: defvr
  24697. #: guix-git/doc/guix.texi:16679
  24698. 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."
  24699. msgstr ""
  24700. #. type: defvr
  24701. #: guix-git/doc/guix.texi:16681
  24702. msgid "The service's value is a @code{hostapd-configuration} record."
  24703. msgstr ""
  24704. #. type: cindex
  24705. #: guix-git/doc/guix.texi:16683
  24706. #, no-wrap
  24707. msgid "iptables"
  24708. msgstr ""
  24709. #. type: defvr
  24710. #: guix-git/doc/guix.texi:16684
  24711. #, no-wrap
  24712. msgid "{Scheme Variable} iptables-service-type"
  24713. msgstr ""
  24714. #. type: defvr
  24715. #: guix-git/doc/guix.texi:16690
  24716. 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."
  24717. msgstr ""
  24718. #. type: lisp
  24719. #: guix-git/doc/guix.texi:16712
  24720. #, no-wrap
  24721. msgid ""
  24722. "(service iptables-service-type\n"
  24723. " (iptables-configuration\n"
  24724. " (ipv4-rules (plain-file \"iptables.rules\" \"*filter\n"
  24725. ":INPUT ACCEPT\n"
  24726. ":FORWARD ACCEPT\n"
  24727. ":OUTPUT ACCEPT\n"
  24728. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  24729. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  24730. "-A INPUT -j REJECT --reject-with icmp-port-unreachable\n"
  24731. "COMMIT\n"
  24732. "\"))\n"
  24733. " (ipv6-rules (plain-file \"ip6tables.rules\" \"*filter\n"
  24734. ":INPUT ACCEPT\n"
  24735. ":FORWARD ACCEPT\n"
  24736. ":OUTPUT ACCEPT\n"
  24737. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  24738. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  24739. "-A INPUT -j REJECT --reject-with icmp6-port-unreachable\n"
  24740. "COMMIT\n"
  24741. "\"))))\n"
  24742. msgstr ""
  24743. #. type: deftp
  24744. #: guix-git/doc/guix.texi:16715
  24745. #, no-wrap
  24746. msgid "{Data Type} iptables-configuration"
  24747. msgstr ""
  24748. #. type: deftp
  24749. #: guix-git/doc/guix.texi:16717
  24750. msgid "The data type representing the configuration of iptables."
  24751. msgstr ""
  24752. #. type: item
  24753. #: guix-git/doc/guix.texi:16719
  24754. #, no-wrap
  24755. msgid "@code{iptables} (default: @code{iptables})"
  24756. msgstr ""
  24757. #. type: table
  24758. #: guix-git/doc/guix.texi:16722
  24759. msgid "The iptables package that provides @code{iptables-restore} and @code{ip6tables-restore}."
  24760. msgstr ""
  24761. #. type: item
  24762. #: guix-git/doc/guix.texi:16722
  24763. #, no-wrap
  24764. msgid "@code{ipv4-rules} (default: @code{%iptables-accept-all-rules})"
  24765. msgstr ""
  24766. #. type: table
  24767. #: guix-git/doc/guix.texi:16726
  24768. 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})."
  24769. msgstr ""
  24770. #. type: item
  24771. #: guix-git/doc/guix.texi:16726
  24772. #, no-wrap
  24773. msgid "@code{ipv6-rules} (default: @code{%iptables-accept-all-rules})"
  24774. msgstr ""
  24775. #. type: table
  24776. #: guix-git/doc/guix.texi:16730
  24777. 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})."
  24778. msgstr ""
  24779. #. type: cindex
  24780. #: guix-git/doc/guix.texi:16733
  24781. #, no-wrap
  24782. msgid "nftables"
  24783. msgstr ""
  24784. #. type: defvr
  24785. #: guix-git/doc/guix.texi:16734
  24786. #, no-wrap
  24787. msgid "{Scheme Variable} nftables-service-type"
  24788. msgstr ""
  24789. #. type: defvr
  24790. #: guix-git/doc/guix.texi:16742
  24791. 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:"
  24792. msgstr ""
  24793. #. type: lisp
  24794. #: guix-git/doc/guix.texi:16745
  24795. #, no-wrap
  24796. msgid "(service nftables-service-type)\n"
  24797. msgstr ""
  24798. #. type: deftp
  24799. #: guix-git/doc/guix.texi:16748
  24800. #, fuzzy, no-wrap
  24801. msgid "{Data Type} nftables-configuration"
  24802. msgstr "{数据类型} build-machine"
  24803. #. type: deftp
  24804. #: guix-git/doc/guix.texi:16750
  24805. #, fuzzy
  24806. msgid "The data type representing the configuration of nftables."
  24807. msgstr "管理操作系统配置。"
  24808. #. type: item
  24809. #: guix-git/doc/guix.texi:16752
  24810. #, fuzzy, no-wrap
  24811. msgid "@code{package} (default: @code{nftables})"
  24812. msgstr "@code{xfce}(默认值:@code{xfce})"
  24813. #. type: table
  24814. #: guix-git/doc/guix.texi:16754
  24815. msgid "The nftables package that provides @command{nft}."
  24816. msgstr ""
  24817. #. type: item
  24818. #: guix-git/doc/guix.texi:16754
  24819. #, fuzzy, no-wrap
  24820. msgid "@code{ruleset} (default: @code{%default-nftables-ruleset})"
  24821. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  24822. #. type: table
  24823. #: guix-git/doc/guix.texi:16757
  24824. msgid "The nftables ruleset to use. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects})."
  24825. msgstr ""
  24826. #. type: cindex
  24827. #: guix-git/doc/guix.texi:16760
  24828. #, no-wrap
  24829. msgid "NTP (Network Time Protocol), service"
  24830. msgstr ""
  24831. #. type: cindex
  24832. #: guix-git/doc/guix.texi:16761
  24833. #, no-wrap
  24834. msgid "ntpd, service for the Network Time Protocol daemon"
  24835. msgstr ""
  24836. #. type: cindex
  24837. #: guix-git/doc/guix.texi:16762
  24838. #, no-wrap
  24839. msgid "real time clock"
  24840. msgstr ""
  24841. #. type: defvr
  24842. #: guix-git/doc/guix.texi:16763
  24843. #, no-wrap
  24844. msgid "{Scheme Variable} ntp-service-type"
  24845. msgstr ""
  24846. #. type: defvr
  24847. #: guix-git/doc/guix.texi:16767
  24848. 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."
  24849. msgstr ""
  24850. #. type: defvr
  24851. #: guix-git/doc/guix.texi:16770
  24852. msgid "The value of this service is an @code{ntpd-configuration} object, as described below."
  24853. msgstr ""
  24854. #. type: deftp
  24855. #: guix-git/doc/guix.texi:16772
  24856. #, no-wrap
  24857. msgid "{Data Type} ntp-configuration"
  24858. msgstr ""
  24859. #. type: deftp
  24860. #: guix-git/doc/guix.texi:16774
  24861. msgid "This is the data type for the NTP service configuration."
  24862. msgstr ""
  24863. #. type: item
  24864. #: guix-git/doc/guix.texi:16776
  24865. #, no-wrap
  24866. msgid "@code{servers} (default: @code{%ntp-servers})"
  24867. msgstr ""
  24868. #. type: table
  24869. #: guix-git/doc/guix.texi:16780
  24870. 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."
  24871. msgstr ""
  24872. #. type: item
  24873. #: guix-git/doc/guix.texi:16781
  24874. #, fuzzy, no-wrap
  24875. msgid "@code{allow-large-adjustment?} (default: @code{#t})"
  24876. msgstr "@code{challenge}(默认值:@code{#f})"
  24877. #. type: table
  24878. #: guix-git/doc/guix.texi:16784
  24879. msgid "This determines whether @command{ntpd} is allowed to make an initial adjustment of more than 1,000 seconds."
  24880. msgstr ""
  24881. #. type: item
  24882. #: guix-git/doc/guix.texi:16785
  24883. #, no-wrap
  24884. msgid "@code{ntp} (default: @code{ntp})"
  24885. msgstr ""
  24886. #. type: table
  24887. #: guix-git/doc/guix.texi:16787
  24888. msgid "The NTP package to use."
  24889. msgstr ""
  24890. #. type: defvr
  24891. #: guix-git/doc/guix.texi:16790
  24892. #, no-wrap
  24893. msgid "{Scheme Variable} %ntp-servers"
  24894. msgstr ""
  24895. #. type: defvr
  24896. #: guix-git/doc/guix.texi:16793
  24897. 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}."
  24898. msgstr ""
  24899. #. type: deftp
  24900. #: guix-git/doc/guix.texi:16795
  24901. #, no-wrap
  24902. msgid "{Data Type} ntp-server"
  24903. msgstr ""
  24904. #. type: deftp
  24905. #: guix-git/doc/guix.texi:16797
  24906. msgid "The data type representing the configuration of a NTP server."
  24907. msgstr ""
  24908. #. type: item
  24909. #: guix-git/doc/guix.texi:16799
  24910. #, fuzzy, no-wrap
  24911. msgid "@code{type} (default: @code{'server})"
  24912. msgstr "@code{mate}(默认值:@code{mate})"
  24913. #. type: table
  24914. #: guix-git/doc/guix.texi:16802
  24915. msgid "The type of the NTP server, given as a symbol. One of @code{'pool}, @code{'server}, @code{'peer}, @code{'broadcast} or @code{'manycastclient}."
  24916. msgstr ""
  24917. #. type: code{#1}
  24918. #: guix-git/doc/guix.texi:16803
  24919. #, no-wrap
  24920. msgid "address"
  24921. msgstr ""
  24922. #. type: table
  24923. #: guix-git/doc/guix.texi:16805
  24924. msgid "The address of the server, as a string."
  24925. msgstr ""
  24926. #. type: code{#1}
  24927. #: guix-git/doc/guix.texi:16806 guix-git/doc/guix.texi:32667
  24928. #: guix-git/doc/guix.texi:32687
  24929. #, no-wrap
  24930. msgid "options"
  24931. msgstr ""
  24932. #. type: table
  24933. #: guix-git/doc/guix.texi:16811
  24934. 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."
  24935. msgstr ""
  24936. #. type: example
  24937. #: guix-git/doc/guix.texi:16817
  24938. #, no-wrap
  24939. msgid ""
  24940. "(ntp-server\n"
  24941. " (type 'server)\n"
  24942. " (address \"some.ntp.server.org\")\n"
  24943. " (options `(iburst (version 3) (maxpoll 16) prefer))))\n"
  24944. msgstr ""
  24945. #. type: cindex
  24946. #: guix-git/doc/guix.texi:16821
  24947. #, no-wrap
  24948. msgid "OpenNTPD"
  24949. msgstr ""
  24950. #. type: deffn
  24951. #: guix-git/doc/guix.texi:16822
  24952. #, no-wrap
  24953. msgid "{Scheme Procedure} openntpd-service-type"
  24954. msgstr ""
  24955. #. type: deffn
  24956. #: guix-git/doc/guix.texi:16826
  24957. 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."
  24958. msgstr ""
  24959. #. type: lisp
  24960. #: guix-git/doc/guix.texi:16835
  24961. #, no-wrap
  24962. msgid ""
  24963. "(service\n"
  24964. " openntpd-service-type\n"
  24965. " (openntpd-configuration\n"
  24966. " (listen-on '(\"127.0.0.1\" \"::1\"))\n"
  24967. " (sensor '(\"udcf0 correction 70000\"))\n"
  24968. " (constraint-from '(\"www.gnu.org\"))\n"
  24969. " (constraints-from '(\"https://www.google.com/\"))))\n"
  24970. "\n"
  24971. msgstr ""
  24972. #. type: defvr
  24973. #: guix-git/doc/guix.texi:16839
  24974. #, no-wrap
  24975. msgid "{Scheme Variable} %openntpd-servers"
  24976. msgstr ""
  24977. #. type: defvr
  24978. #: guix-git/doc/guix.texi:16842
  24979. msgid "This variable is a list of the server addresses defined in @code{%ntp-servers}."
  24980. msgstr ""
  24981. #. type: deftp
  24982. #: guix-git/doc/guix.texi:16844
  24983. #, no-wrap
  24984. msgid "{Data Type} openntpd-configuration"
  24985. msgstr ""
  24986. #. type: item
  24987. #: guix-git/doc/guix.texi:16846
  24988. #, no-wrap
  24989. msgid "@code{openntpd} (default: @code{(file-append openntpd \"/sbin/ntpd\")})"
  24990. msgstr ""
  24991. #. type: table
  24992. #: guix-git/doc/guix.texi:16848
  24993. msgid "The openntpd executable to use."
  24994. msgstr ""
  24995. #. type: item
  24996. #: guix-git/doc/guix.texi:16848
  24997. #, no-wrap
  24998. msgid "@code{listen-on} (default: @code{'(\"127.0.0.1\" \"::1\")})"
  24999. msgstr ""
  25000. #. type: table
  25001. #: guix-git/doc/guix.texi:16850
  25002. msgid "A list of local IP addresses or hostnames the ntpd daemon should listen on."
  25003. msgstr ""
  25004. #. type: item
  25005. #: guix-git/doc/guix.texi:16850
  25006. #, no-wrap
  25007. msgid "@code{query-from} (default: @code{'()})"
  25008. msgstr ""
  25009. #. type: table
  25010. #: guix-git/doc/guix.texi:16852
  25011. msgid "A list of local IP address the ntpd daemon should use for outgoing queries."
  25012. msgstr ""
  25013. #. type: item
  25014. #: guix-git/doc/guix.texi:16852
  25015. #, no-wrap
  25016. msgid "@code{sensor} (default: @code{'()})"
  25017. msgstr ""
  25018. #. type: table
  25019. #: guix-git/doc/guix.texi:16857
  25020. 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."
  25021. msgstr ""
  25022. #. type: item
  25023. #: guix-git/doc/guix.texi:16857
  25024. #, fuzzy, no-wrap
  25025. msgid "@code{server} (default: @code{'()})"
  25026. msgstr "@code{features} (@code{'()})"
  25027. #. type: table
  25028. #: guix-git/doc/guix.texi:16859
  25029. msgid "Specify a list of IP addresses or hostnames of NTP servers to synchronize to."
  25030. msgstr ""
  25031. #. type: item
  25032. #: guix-git/doc/guix.texi:16859
  25033. #, fuzzy, no-wrap
  25034. msgid "@code{servers} (default: @code{%openntp-servers})"
  25035. msgstr "@code{speed}(默认值:@code{1.0})"
  25036. #. type: table
  25037. #: guix-git/doc/guix.texi:16861
  25038. msgid "Specify a list of IP addresses or hostnames of NTP pools to synchronize to."
  25039. msgstr ""
  25040. #. type: item
  25041. #: guix-git/doc/guix.texi:16861
  25042. #, no-wrap
  25043. msgid "@code{constraint-from} (default: @code{'()})"
  25044. msgstr ""
  25045. #. type: table
  25046. #: guix-git/doc/guix.texi:16868
  25047. 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."
  25048. msgstr ""
  25049. #. type: item
  25050. #: guix-git/doc/guix.texi:16868
  25051. #, no-wrap
  25052. msgid "@code{constraints-from} (default: @code{'()})"
  25053. msgstr ""
  25054. #. type: table
  25055. #: guix-git/doc/guix.texi:16872
  25056. 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."
  25057. msgstr ""
  25058. #. type: cindex
  25059. #: guix-git/doc/guix.texi:16875
  25060. #, no-wrap
  25061. msgid "inetd"
  25062. msgstr ""
  25063. #. type: deffn
  25064. #: guix-git/doc/guix.texi:16876
  25065. #, no-wrap
  25066. msgid "{Scheme variable} inetd-service-type"
  25067. msgstr ""
  25068. #. type: deffn
  25069. #: guix-git/doc/guix.texi:16881
  25070. 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."
  25071. msgstr ""
  25072. #. type: deffn
  25073. #: guix-git/doc/guix.texi:16887
  25074. 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}:"
  25075. msgstr ""
  25076. #. type: lisp
  25077. #: guix-git/doc/guix.texi:16910
  25078. #, no-wrap
  25079. msgid ""
  25080. "(service\n"
  25081. " inetd-service-type\n"
  25082. " (inetd-configuration\n"
  25083. " (entries (list\n"
  25084. " (inetd-entry\n"
  25085. " (name \"echo\")\n"
  25086. " (socket-type 'stream)\n"
  25087. " (protocol \"tcp\")\n"
  25088. " (wait? #f)\n"
  25089. " (user \"root\"))\n"
  25090. " (inetd-entry\n"
  25091. " (node \"127.0.0.1\")\n"
  25092. " (name \"smtp\")\n"
  25093. " (socket-type 'stream)\n"
  25094. " (protocol \"tcp\")\n"
  25095. " (wait? #f)\n"
  25096. " (user \"root\")\n"
  25097. " (program (file-append openssh \"/bin/ssh\"))\n"
  25098. " (arguments\n"
  25099. " '(\"ssh\" \"-qT\" \"-i\" \"/path/to/ssh_key\"\n"
  25100. " \"-W\" \"smtp-server:25\" \"user@@hostname\")))))))\n"
  25101. msgstr ""
  25102. #. type: deffn
  25103. #: guix-git/doc/guix.texi:16913
  25104. msgid "See below for more details about @code{inetd-configuration}."
  25105. msgstr ""
  25106. #. type: deftp
  25107. #: guix-git/doc/guix.texi:16915
  25108. #, no-wrap
  25109. msgid "{Data Type} inetd-configuration"
  25110. msgstr ""
  25111. #. type: deftp
  25112. #: guix-git/doc/guix.texi:16917
  25113. msgid "Data type representing the configuration of @command{inetd}."
  25114. msgstr ""
  25115. #. type: item
  25116. #: guix-git/doc/guix.texi:16919
  25117. #, no-wrap
  25118. msgid "@code{program} (default: @code{(file-append inetutils \"/libexec/inetd\")})"
  25119. msgstr ""
  25120. #. type: table
  25121. #: guix-git/doc/guix.texi:16921
  25122. msgid "The @command{inetd} executable to use."
  25123. msgstr ""
  25124. #. type: item
  25125. #: guix-git/doc/guix.texi:16922 guix-git/doc/guix.texi:26598
  25126. #, no-wrap
  25127. msgid "@code{entries} (default: @code{'()})"
  25128. msgstr ""
  25129. #. type: table
  25130. #: guix-git/doc/guix.texi:16925
  25131. msgid "A list of @command{inetd} service entries. Each entry should be created by the @code{inetd-entry} constructor."
  25132. msgstr ""
  25133. #. type: deftp
  25134. #: guix-git/doc/guix.texi:16928
  25135. #, no-wrap
  25136. msgid "{Data Type} inetd-entry"
  25137. msgstr ""
  25138. #. type: deftp
  25139. #: guix-git/doc/guix.texi:16932
  25140. msgid "Data type representing an entry in the @command{inetd} configuration. Each entry corresponds to a socket where @command{inetd} will listen for requests."
  25141. msgstr ""
  25142. #. type: item
  25143. #: guix-git/doc/guix.texi:16934
  25144. #, no-wrap
  25145. msgid "@code{node} (default: @code{#f})"
  25146. msgstr ""
  25147. #. type: table
  25148. #: guix-git/doc/guix.texi:16939
  25149. 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."
  25150. msgstr ""
  25151. #. type: table
  25152. #: guix-git/doc/guix.texi:16941
  25153. msgid "A string, the name must correspond to an entry in @code{/etc/services}."
  25154. msgstr ""
  25155. #. type: code{#1}
  25156. #: guix-git/doc/guix.texi:16941
  25157. #, no-wrap
  25158. msgid "socket-type"
  25159. msgstr ""
  25160. #. type: table
  25161. #: guix-git/doc/guix.texi:16944
  25162. msgid "One of @code{'stream}, @code{'dgram}, @code{'raw}, @code{'rdm} or @code{'seqpacket}."
  25163. msgstr ""
  25164. #. type: code{#1}
  25165. #: guix-git/doc/guix.texi:16944
  25166. #, no-wrap
  25167. msgid "protocol"
  25168. msgstr ""
  25169. #. type: table
  25170. #: guix-git/doc/guix.texi:16946
  25171. msgid "A string, must correspond to an entry in @code{/etc/protocols}."
  25172. msgstr ""
  25173. #. type: item
  25174. #: guix-git/doc/guix.texi:16946
  25175. #, no-wrap
  25176. msgid "@code{wait?} (default: @code{#t})"
  25177. msgstr ""
  25178. #. type: table
  25179. #: guix-git/doc/guix.texi:16949
  25180. msgid "Whether @command{inetd} should wait for the server to exit before listening to new service requests."
  25181. msgstr ""
  25182. #. type: table
  25183. #: guix-git/doc/guix.texi:16954
  25184. 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\"}."
  25185. msgstr ""
  25186. #. type: item
  25187. #: guix-git/doc/guix.texi:16954
  25188. #, no-wrap
  25189. msgid "@code{program} (default: @code{\"internal\"})"
  25190. msgstr ""
  25191. #. type: table
  25192. #: guix-git/doc/guix.texi:16957
  25193. msgid "The server program which will serve the requests, or @code{\"internal\"} if @command{inetd} should use a built-in service."
  25194. msgstr ""
  25195. #. type: table
  25196. #: guix-git/doc/guix.texi:16962
  25197. 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\")}."
  25198. msgstr ""
  25199. #. type: deftp
  25200. #: guix-git/doc/guix.texi:16966
  25201. msgid "@xref{Configuration file,,, inetutils, GNU Inetutils} for a more detailed discussion of each configuration field."
  25202. msgstr ""
  25203. #. type: cindex
  25204. #: guix-git/doc/guix.texi:16968
  25205. #, no-wrap
  25206. msgid "opendht, distributed hash table network service"
  25207. msgstr ""
  25208. #. type: cindex
  25209. #: guix-git/doc/guix.texi:16969
  25210. #, no-wrap
  25211. msgid "dhtproxy, for use with jami"
  25212. msgstr ""
  25213. #. type: defvr
  25214. #: guix-git/doc/guix.texi:16970
  25215. #, no-wrap
  25216. msgid "{Scheme Variable} opendht-service-type"
  25217. msgstr ""
  25218. #. type: defvr
  25219. #: guix-git/doc/guix.texi:16975
  25220. 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."
  25221. msgstr ""
  25222. #. type: quotation
  25223. #: guix-git/doc/guix.texi:16985
  25224. 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."
  25225. msgstr ""
  25226. #. type: defvr
  25227. #: guix-git/doc/guix.texi:16989
  25228. msgid "The value of this service is a @code{opendht-configuration} object, as described below."
  25229. msgstr ""
  25230. #. type: deftp
  25231. #: guix-git/doc/guix.texi:16991
  25232. #, fuzzy, no-wrap
  25233. msgid "{Data Type} opendht-configuration"
  25234. msgstr "系统配置"
  25235. #. type: deftp
  25236. #: guix-git/doc/guix.texi:16993
  25237. #, fuzzy
  25238. msgid "This is the data type for the OpenDHT service configuration."
  25239. msgstr "管理操作系统配置。"
  25240. #. type: deftp
  25241. #: guix-git/doc/guix.texi:16998
  25242. msgid "Available @code{opendht-configuration} fields are:"
  25243. msgstr ""
  25244. #. type: deftypevr
  25245. #: guix-git/doc/guix.texi:16999
  25246. #, no-wrap
  25247. msgid "{@code{opendht-configuration} parameter} package opendht"
  25248. msgstr ""
  25249. #. type: deftypevr
  25250. #: guix-git/doc/guix.texi:17001
  25251. #, fuzzy
  25252. msgid "The @code{opendht} package to use."
  25253. msgstr "软件包数据类型。"
  25254. #. type: deftypevr
  25255. #: guix-git/doc/guix.texi:17004
  25256. #, no-wrap
  25257. msgid "{@code{opendht-configuration} parameter} boolean peer-discovery?"
  25258. msgstr ""
  25259. #. type: deftypevr
  25260. #: guix-git/doc/guix.texi:17006
  25261. msgid "Whether to enable the multicast local peer discovery mechanism."
  25262. msgstr ""
  25263. #. type: deftypevr
  25264. #: guix-git/doc/guix.texi:17008 guix-git/doc/guix.texi:17016
  25265. #: guix-git/doc/guix.texi:17024 guix-git/doc/guix.texi:18668
  25266. #: guix-git/doc/guix.texi:18738 guix-git/doc/guix.texi:18780
  25267. #: guix-git/doc/guix.texi:18800 guix-git/doc/guix.texi:18806
  25268. #: guix-git/doc/guix.texi:18822 guix-git/doc/guix.texi:18910
  25269. #: guix-git/doc/guix.texi:18998 guix-git/doc/guix.texi:19311
  25270. #: guix-git/doc/guix.texi:19324 guix-git/doc/guix.texi:20441
  25271. #: guix-git/doc/guix.texi:21919 guix-git/doc/guix.texi:22025
  25272. #: guix-git/doc/guix.texi:22090 guix-git/doc/guix.texi:22099
  25273. #: guix-git/doc/guix.texi:23332 guix-git/doc/guix.texi:23376
  25274. #: guix-git/doc/guix.texi:23393 guix-git/doc/guix.texi:23401
  25275. #: guix-git/doc/guix.texi:23416 guix-git/doc/guix.texi:23434
  25276. #: guix-git/doc/guix.texi:23458 guix-git/doc/guix.texi:23511
  25277. #: guix-git/doc/guix.texi:23644 guix-git/doc/guix.texi:23678
  25278. #: guix-git/doc/guix.texi:23714 guix-git/doc/guix.texi:23730
  25279. #: guix-git/doc/guix.texi:23758 guix-git/doc/guix.texi:23819
  25280. #: guix-git/doc/guix.texi:23902 guix-git/doc/guix.texi:27310
  25281. #: guix-git/doc/guix.texi:27324 guix-git/doc/guix.texi:27346
  25282. #: guix-git/doc/guix.texi:27465 guix-git/doc/guix.texi:27479
  25283. #: guix-git/doc/guix.texi:27500 guix-git/doc/guix.texi:27521
  25284. #: guix-git/doc/guix.texi:27528 guix-git/doc/guix.texi:27573
  25285. #: guix-git/doc/guix.texi:27580 guix-git/doc/guix.texi:28366
  25286. #: guix-git/doc/guix.texi:28380 guix-git/doc/guix.texi:28552
  25287. #: guix-git/doc/guix.texi:28597 guix-git/doc/guix.texi:28684
  25288. #: guix-git/doc/guix.texi:28886 guix-git/doc/guix.texi:28919
  25289. #: guix-git/doc/guix.texi:29059 guix-git/doc/guix.texi:29070
  25290. #: guix-git/doc/guix.texi:29321 guix-git/doc/guix.texi:30787
  25291. #: guix-git/doc/guix.texi:30796 guix-git/doc/guix.texi:30804
  25292. #: guix-git/doc/guix.texi:30812 guix-git/doc/guix.texi:30828
  25293. #: guix-git/doc/guix.texi:30844 guix-git/doc/guix.texi:30852
  25294. #: guix-git/doc/guix.texi:30860 guix-git/doc/guix.texi:30869
  25295. #: guix-git/doc/guix.texi:30878 guix-git/doc/guix.texi:30894
  25296. #: guix-git/doc/guix.texi:30958 guix-git/doc/guix.texi:31064
  25297. #: guix-git/doc/guix.texi:31072 guix-git/doc/guix.texi:31080
  25298. #: guix-git/doc/guix.texi:31105 guix-git/doc/guix.texi:31159
  25299. #: guix-git/doc/guix.texi:31207 guix-git/doc/guix.texi:31408
  25300. #: guix-git/doc/guix.texi:31415
  25301. msgid "Defaults to @samp{#f}."
  25302. msgstr ""
  25303. #. type: deftypevr
  25304. #: guix-git/doc/guix.texi:17011
  25305. #, no-wrap
  25306. msgid "{@code{opendht-configuration} parameter} boolean enable-logging?"
  25307. msgstr ""
  25308. #. type: deftypevr
  25309. #: guix-git/doc/guix.texi:17014
  25310. msgid "Whether to enable logging messages to syslog. It is disabled by default as it is rather verbose."
  25311. msgstr ""
  25312. #. type: deftypevr
  25313. #: guix-git/doc/guix.texi:17019
  25314. #, no-wrap
  25315. msgid "{@code{opendht-configuration} parameter} boolean debug?"
  25316. msgstr ""
  25317. #. type: deftypevr
  25318. #: guix-git/doc/guix.texi:17022
  25319. msgid "Whether to enable debug-level logging messages. This has no effect if logging is disabled."
  25320. msgstr ""
  25321. #. type: deftypevr
  25322. #: guix-git/doc/guix.texi:17027
  25323. #, no-wrap
  25324. msgid "{@code{opendht-configuration} parameter} maybe-string bootstrap-host"
  25325. msgstr ""
  25326. #. type: deftypevr
  25327. #: guix-git/doc/guix.texi:17033
  25328. 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."
  25329. msgstr ""
  25330. #. type: deftypevr
  25331. #: guix-git/doc/guix.texi:17035
  25332. msgid "Defaults to @samp{\"bootstrap.jami.net:4222\"}."
  25333. msgstr ""
  25334. #. type: deftypevr
  25335. #: guix-git/doc/guix.texi:17038
  25336. #, no-wrap
  25337. msgid "{@code{opendht-configuration} parameter} maybe-number port"
  25338. msgstr ""
  25339. #. type: deftypevr
  25340. #: guix-git/doc/guix.texi:17041
  25341. msgid "The UDP port to bind to. When set to @code{'disabled}, an available port is automatically selected."
  25342. msgstr ""
  25343. #. type: deftypevr
  25344. #: guix-git/doc/guix.texi:17043
  25345. msgid "Defaults to @samp{4222}."
  25346. msgstr ""
  25347. #. type: deftypevr
  25348. #: guix-git/doc/guix.texi:17046
  25349. #, no-wrap
  25350. msgid "{@code{opendht-configuration} parameter} maybe-number proxy-server-port"
  25351. msgstr ""
  25352. #. type: deftypevr
  25353. #: guix-git/doc/guix.texi:17048
  25354. msgid "Spawn a proxy server listening on the specified port."
  25355. msgstr ""
  25356. #. type: deftypevr
  25357. #: guix-git/doc/guix.texi:17050 guix-git/doc/guix.texi:17057
  25358. #: guix-git/doc/guix.texi:23340 guix-git/doc/guix.texi:23384
  25359. #: guix-git/doc/guix.texi:23597 guix-git/doc/guix.texi:23653
  25360. #: guix-git/doc/guix.texi:23827 guix-git/doc/guix.texi:23838
  25361. #: guix-git/doc/guix.texi:23911 guix-git/doc/guix.texi:24636
  25362. #: guix-git/doc/guix.texi:24679 guix-git/doc/guix.texi:24687
  25363. #: guix-git/doc/guix.texi:24695 guix-git/doc/guix.texi:24703
  25364. #: guix-git/doc/guix.texi:24712 guix-git/doc/guix.texi:24720
  25365. #: guix-git/doc/guix.texi:24727 guix-git/doc/guix.texi:24735
  25366. #: guix-git/doc/guix.texi:24743 guix-git/doc/guix.texi:24753
  25367. #: guix-git/doc/guix.texi:24760 guix-git/doc/guix.texi:24784
  25368. #: guix-git/doc/guix.texi:24792 guix-git/doc/guix.texi:24818
  25369. #: guix-git/doc/guix.texi:24827 guix-git/doc/guix.texi:24836
  25370. #: guix-git/doc/guix.texi:24845 guix-git/doc/guix.texi:24854
  25371. #: guix-git/doc/guix.texi:24863 guix-git/doc/guix.texi:24871
  25372. #: guix-git/doc/guix.texi:24879 guix-git/doc/guix.texi:24886
  25373. #: guix-git/doc/guix.texi:24894 guix-git/doc/guix.texi:24901
  25374. #: guix-git/doc/guix.texi:24909 guix-git/doc/guix.texi:24917
  25375. #: guix-git/doc/guix.texi:24926 guix-git/doc/guix.texi:24935
  25376. #: guix-git/doc/guix.texi:24943 guix-git/doc/guix.texi:24951
  25377. #: guix-git/doc/guix.texi:24959 guix-git/doc/guix.texi:24970
  25378. #: guix-git/doc/guix.texi:24980 guix-git/doc/guix.texi:24991
  25379. #: guix-git/doc/guix.texi:25000 guix-git/doc/guix.texi:25010
  25380. #: guix-git/doc/guix.texi:25018 guix-git/doc/guix.texi:25029
  25381. #: guix-git/doc/guix.texi:25038 guix-git/doc/guix.texi:25048
  25382. #: guix-git/doc/guix.texi:28279 guix-git/doc/guix.texi:28286
  25383. #: guix-git/doc/guix.texi:28293 guix-git/doc/guix.texi:28300
  25384. #: guix-git/doc/guix.texi:28307 guix-git/doc/guix.texi:28314
  25385. #: guix-git/doc/guix.texi:28322 guix-git/doc/guix.texi:28330
  25386. #: guix-git/doc/guix.texi:28337 guix-git/doc/guix.texi:28344
  25387. #: guix-git/doc/guix.texi:28351 guix-git/doc/guix.texi:28358
  25388. #: guix-git/doc/guix.texi:28388 guix-git/doc/guix.texi:28426
  25389. #: guix-git/doc/guix.texi:28433 guix-git/doc/guix.texi:28442
  25390. #: guix-git/doc/guix.texi:28464 guix-git/doc/guix.texi:28472
  25391. #: guix-git/doc/guix.texi:28479 guix-git/doc/guix.texi:28634
  25392. #: guix-git/doc/guix.texi:28654 guix-git/doc/guix.texi:28669
  25393. #: guix-git/doc/guix.texi:28676 guix-git/doc/guix.texi:31360
  25394. #: guix-git/doc/guix.texi:31368 guix-git/doc/guix.texi:31376
  25395. #: guix-git/doc/guix.texi:31384 guix-git/doc/guix.texi:31392
  25396. #: guix-git/doc/guix.texi:31400
  25397. msgid "Defaults to @samp{disabled}."
  25398. msgstr ""
  25399. #. type: deftypevr
  25400. #: guix-git/doc/guix.texi:17053
  25401. #, no-wrap
  25402. msgid "{@code{opendht-configuration} parameter} maybe-number proxy-server-port-tls"
  25403. msgstr ""
  25404. #. type: deftypevr
  25405. #: guix-git/doc/guix.texi:17055
  25406. msgid "Spawn a proxy server listening to TLS connections on the specified port."
  25407. msgstr ""
  25408. #. type: cindex
  25409. #: guix-git/doc/guix.texi:17061
  25410. #, no-wrap
  25411. msgid "Tor"
  25412. msgstr ""
  25413. #. type: defvr
  25414. #: guix-git/doc/guix.texi:17062
  25415. #, no-wrap
  25416. msgid "{Scheme Variable} tor-service-type"
  25417. msgstr ""
  25418. #. type: defvr
  25419. #: guix-git/doc/guix.texi:17067
  25420. 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."
  25421. msgstr ""
  25422. #. type: deftp
  25423. #: guix-git/doc/guix.texi:17070
  25424. #, no-wrap
  25425. msgid "{Data Type} tor-configuration"
  25426. msgstr ""
  25427. #. type: item
  25428. #: guix-git/doc/guix.texi:17072
  25429. #, no-wrap
  25430. msgid "@code{tor} (default: @code{tor})"
  25431. msgstr ""
  25432. #. type: table
  25433. #: guix-git/doc/guix.texi:17077
  25434. 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."
  25435. msgstr ""
  25436. #. type: item
  25437. #: guix-git/doc/guix.texi:17078
  25438. #, no-wrap
  25439. msgid "@code{config-file} (default: @code{(plain-file \"empty\" \"\")})"
  25440. msgstr ""
  25441. #. type: table
  25442. #: guix-git/doc/guix.texi:17084
  25443. 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."
  25444. msgstr ""
  25445. #. type: item
  25446. #: guix-git/doc/guix.texi:17085
  25447. #, no-wrap
  25448. msgid "@code{hidden-services} (default: @code{'()})"
  25449. msgstr ""
  25450. #. type: table
  25451. #: guix-git/doc/guix.texi:17091
  25452. 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."
  25453. msgstr ""
  25454. #. type: item
  25455. #: guix-git/doc/guix.texi:17092
  25456. #, no-wrap
  25457. msgid "@code{socks-socket-type} (default: @code{'tcp})"
  25458. msgstr ""
  25459. #. type: table
  25460. #: guix-git/doc/guix.texi:17099
  25461. 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."
  25462. msgstr ""
  25463. #. type: table
  25464. #: guix-git/doc/guix.texi:17104
  25465. 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."
  25466. msgstr ""
  25467. #. type: item
  25468. #: guix-git/doc/guix.texi:17105
  25469. #, fuzzy, no-wrap
  25470. msgid "@code{control-socket?} (default: @code{#f})"
  25471. msgstr "@code{journal-content}(默认值:@code{#f})"
  25472. #. type: table
  25473. #: guix-git/doc/guix.texi:17111
  25474. 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."
  25475. msgstr ""
  25476. #. type: cindex
  25477. #: guix-git/doc/guix.texi:17115
  25478. #, no-wrap
  25479. msgid "hidden service"
  25480. msgstr ""
  25481. #. type: deffn
  25482. #: guix-git/doc/guix.texi:17116
  25483. #, no-wrap
  25484. msgid "{Scheme Procedure} tor-hidden-service @var{name} @var{mapping}"
  25485. msgstr ""
  25486. #. type: deffn
  25487. #: guix-git/doc/guix.texi:17119
  25488. 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:"
  25489. msgstr ""
  25490. #. type: example
  25491. #: guix-git/doc/guix.texi:17123
  25492. #, no-wrap
  25493. msgid ""
  25494. " '((22 \"127.0.0.1:22\")\n"
  25495. " (80 \"127.0.0.1:8080\"))\n"
  25496. msgstr ""
  25497. #. type: deffn
  25498. #: guix-git/doc/guix.texi:17127
  25499. 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."
  25500. msgstr ""
  25501. #. type: deffn
  25502. #: guix-git/doc/guix.texi:17131
  25503. 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."
  25504. msgstr ""
  25505. #. type: deffn
  25506. #: guix-git/doc/guix.texi:17134
  25507. msgid "See @uref{https://www.torproject.org/docs/tor-hidden-service.html.en, the Tor project's documentation} for more information."
  25508. msgstr ""
  25509. #. type: Plain text
  25510. #: guix-git/doc/guix.texi:17137
  25511. msgid "The @code{(gnu services rsync)} module provides the following services:"
  25512. msgstr ""
  25513. #. type: Plain text
  25514. #: guix-git/doc/guix.texi:17141
  25515. 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."
  25516. msgstr ""
  25517. #. type: deffn
  25518. #: guix-git/doc/guix.texi:17142
  25519. #, no-wrap
  25520. msgid "{Scheme Variable} rsync-service-type"
  25521. msgstr ""
  25522. #. type: deffn
  25523. #: guix-git/doc/guix.texi:17146
  25524. 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:"
  25525. msgstr ""
  25526. #. type: lisp
  25527. #: guix-git/doc/guix.texi:17149
  25528. #, no-wrap
  25529. msgid "(service rsync-service-type)\n"
  25530. msgstr ""
  25531. #. type: deffn
  25532. #: guix-git/doc/guix.texi:17152
  25533. msgid "See below for details about @code{rsync-configuration}."
  25534. msgstr ""
  25535. #. type: deftp
  25536. #: guix-git/doc/guix.texi:17154
  25537. #, no-wrap
  25538. msgid "{Data Type} rsync-configuration"
  25539. msgstr ""
  25540. #. type: deftp
  25541. #: guix-git/doc/guix.texi:17156
  25542. msgid "Data type representing the configuration for @code{rsync-service}."
  25543. msgstr ""
  25544. #. type: item
  25545. #: guix-git/doc/guix.texi:17158
  25546. #, no-wrap
  25547. msgid "@code{package} (default: @var{rsync})"
  25548. msgstr ""
  25549. #. type: table
  25550. #: guix-git/doc/guix.texi:17160
  25551. msgid "@code{rsync} package to use."
  25552. msgstr ""
  25553. #. type: item
  25554. #: guix-git/doc/guix.texi:17161
  25555. #, no-wrap
  25556. msgid "@code{port-number} (default: @code{873})"
  25557. msgstr ""
  25558. #. type: table
  25559. #: guix-git/doc/guix.texi:17165
  25560. 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."
  25561. msgstr ""
  25562. #. type: item
  25563. #: guix-git/doc/guix.texi:17166
  25564. #, no-wrap
  25565. msgid "@code{pid-file} (default: @code{\"/var/run/rsyncd/rsyncd.pid\"})"
  25566. msgstr ""
  25567. #. type: table
  25568. #: guix-git/doc/guix.texi:17168
  25569. msgid "Name of the file where @command{rsync} writes its PID."
  25570. msgstr ""
  25571. #. type: item
  25572. #: guix-git/doc/guix.texi:17169
  25573. #, no-wrap
  25574. msgid "@code{lock-file} (default: @code{\"/var/run/rsyncd/rsyncd.lock\"})"
  25575. msgstr ""
  25576. #. type: table
  25577. #: guix-git/doc/guix.texi:17171
  25578. msgid "Name of the file where @command{rsync} writes its lock file."
  25579. msgstr ""
  25580. #. type: item
  25581. #: guix-git/doc/guix.texi:17172
  25582. #, no-wrap
  25583. msgid "@code{log-file} (default: @code{\"/var/log/rsyncd.log\"})"
  25584. msgstr ""
  25585. #. type: table
  25586. #: guix-git/doc/guix.texi:17174
  25587. msgid "Name of the file where @command{rsync} writes its log file."
  25588. msgstr ""
  25589. #. type: item
  25590. #: guix-git/doc/guix.texi:17175
  25591. #, no-wrap
  25592. msgid "@code{use-chroot?} (default: @var{#t})"
  25593. msgstr ""
  25594. #. type: table
  25595. #: guix-git/doc/guix.texi:17177
  25596. msgid "Whether to use chroot for @command{rsync} shared directory."
  25597. msgstr ""
  25598. #. type: item
  25599. #: guix-git/doc/guix.texi:17178
  25600. #, no-wrap
  25601. msgid "@code{share-path} (default: @file{/srv/rsync})"
  25602. msgstr ""
  25603. #. type: table
  25604. #: guix-git/doc/guix.texi:17180
  25605. msgid "Location of the @command{rsync} shared directory."
  25606. msgstr ""
  25607. #. type: item
  25608. #: guix-git/doc/guix.texi:17181
  25609. #, no-wrap
  25610. msgid "@code{share-comment} (default: @code{\"Rsync share\"})"
  25611. msgstr ""
  25612. #. type: table
  25613. #: guix-git/doc/guix.texi:17183
  25614. msgid "Comment of the @command{rsync} shared directory."
  25615. msgstr ""
  25616. #. type: item
  25617. #: guix-git/doc/guix.texi:17184
  25618. #, no-wrap
  25619. msgid "@code{read-only?} (default: @var{#f})"
  25620. msgstr ""
  25621. #. type: table
  25622. #: guix-git/doc/guix.texi:17186
  25623. msgid "Read-write permissions to shared directory."
  25624. msgstr ""
  25625. #. type: item
  25626. #: guix-git/doc/guix.texi:17187
  25627. #, no-wrap
  25628. msgid "@code{timeout} (default: @code{300})"
  25629. msgstr ""
  25630. #. type: table
  25631. #: guix-git/doc/guix.texi:17189
  25632. msgid "I/O timeout in seconds."
  25633. msgstr ""
  25634. #. type: item
  25635. #: guix-git/doc/guix.texi:17190
  25636. #, no-wrap
  25637. msgid "@code{user} (default: @var{\"root\"})"
  25638. msgstr ""
  25639. #. type: table
  25640. #: guix-git/doc/guix.texi:17192
  25641. msgid "Owner of the @code{rsync} process."
  25642. msgstr ""
  25643. #. type: item
  25644. #: guix-git/doc/guix.texi:17193
  25645. #, no-wrap
  25646. msgid "@code{group} (default: @var{\"root\"})"
  25647. msgstr ""
  25648. #. type: table
  25649. #: guix-git/doc/guix.texi:17195
  25650. msgid "Group of the @code{rsync} process."
  25651. msgstr ""
  25652. #. type: item
  25653. #: guix-git/doc/guix.texi:17196
  25654. #, no-wrap
  25655. msgid "@code{uid} (default: @var{\"rsyncd\"})"
  25656. msgstr ""
  25657. #. type: table
  25658. #: guix-git/doc/guix.texi:17199
  25659. 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}."
  25660. msgstr ""
  25661. #. type: item
  25662. #: guix-git/doc/guix.texi:17200
  25663. #, no-wrap
  25664. msgid "@code{gid} (default: @var{\"rsyncd\"})"
  25665. msgstr ""
  25666. #. type: table
  25667. #: guix-git/doc/guix.texi:17202 guix-git/doc/guix.texi:17645
  25668. msgid "Group name or group ID that will be used when accessing the module."
  25669. msgstr ""
  25670. #. type: Plain text
  25671. #: guix-git/doc/guix.texi:17207
  25672. msgid "The @code{(gnu services syncthing)} module provides the following services:"
  25673. msgstr ""
  25674. #. type: cindex
  25675. #: guix-git/doc/guix.texi:17207
  25676. #, no-wrap
  25677. msgid "syncthing"
  25678. msgstr ""
  25679. #. type: Plain text
  25680. #: guix-git/doc/guix.texi:17212
  25681. 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."
  25682. msgstr ""
  25683. #. type: deffn
  25684. #: guix-git/doc/guix.texi:17213
  25685. #, no-wrap
  25686. msgid "{Scheme Variable} syncthing-service-type"
  25687. msgstr ""
  25688. #. type: deffn
  25689. #: guix-git/doc/guix.texi:17217
  25690. 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:"
  25691. msgstr ""
  25692. #. type: lisp
  25693. #: guix-git/doc/guix.texi:17221
  25694. #, no-wrap
  25695. msgid ""
  25696. "(service syncthing-service-type\n"
  25697. " (syncthing-configuration (user \"alice\")))\n"
  25698. msgstr ""
  25699. #. type: deffn
  25700. #: guix-git/doc/guix.texi:17224
  25701. msgid "See below for details about @code{syncthing-configuration}."
  25702. msgstr ""
  25703. #. type: deftp
  25704. #: guix-git/doc/guix.texi:17225
  25705. #, fuzzy, no-wrap
  25706. msgid "{Data Type} syncthing-configuration"
  25707. msgstr "{数据类型} build-machine"
  25708. #. type: deftp
  25709. #: guix-git/doc/guix.texi:17227
  25710. #, fuzzy
  25711. msgid "Data type representing the configuration for @code{syncthing-service-type}."
  25712. msgstr "管理操作系统配置。"
  25713. #. type: item
  25714. #: guix-git/doc/guix.texi:17229
  25715. #, fuzzy, no-wrap
  25716. msgid "@code{syncthing} (default: @var{syncthing})"
  25717. msgstr "@code{xfce}(默认值:@code{xfce})"
  25718. #. type: table
  25719. #: guix-git/doc/guix.texi:17231
  25720. #, fuzzy
  25721. msgid "@code{syncthing} package to use."
  25722. msgstr "软件包数据类型。"
  25723. #. type: item
  25724. #: guix-git/doc/guix.texi:17232
  25725. #, fuzzy, no-wrap
  25726. msgid "@code{arguments} (default: @var{'()})"
  25727. msgstr "@code{features} (@code{'()})"
  25728. #. type: table
  25729. #: guix-git/doc/guix.texi:17234
  25730. msgid "List of command-line arguments passing to @code{syncthing} binary."
  25731. msgstr ""
  25732. #. type: item
  25733. #: guix-git/doc/guix.texi:17235
  25734. #, fuzzy, no-wrap
  25735. msgid "@code{logflags} (default: @var{0})"
  25736. msgstr "@code{challenge}(默认值:@code{#f})"
  25737. #. type: table
  25738. #: guix-git/doc/guix.texi:17238
  25739. msgid "Sum of logging flags, see @uref{https://docs.syncthing.net/users/syncthing.html#cmdoption-logflags, Syncthing documentation logflags}."
  25740. msgstr ""
  25741. #. type: item
  25742. #: guix-git/doc/guix.texi:17239
  25743. #, fuzzy, no-wrap
  25744. msgid "@code{user} (default: @var{#f})"
  25745. msgstr "@code{challenge}(默认值:@code{#f})"
  25746. #. type: table
  25747. #: guix-git/doc/guix.texi:17242
  25748. msgid "The user as which the Syncthing service is to be run. This assumes that the specified user exists."
  25749. msgstr ""
  25750. #. type: item
  25751. #: guix-git/doc/guix.texi:17243
  25752. #, fuzzy, no-wrap
  25753. msgid "@code{group} (default: @var{\"users\"})"
  25754. msgstr "@code{gnome}(默认值:@code{gnome})"
  25755. #. type: table
  25756. #: guix-git/doc/guix.texi:17246
  25757. msgid "The group as which the Syncthing service is to be run. This assumes that the specified group exists."
  25758. msgstr ""
  25759. #. type: item
  25760. #: guix-git/doc/guix.texi:17247
  25761. #, fuzzy, no-wrap
  25762. msgid "@code{home} (default: @var{#f})"
  25763. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  25764. #. type: table
  25765. #: guix-git/doc/guix.texi:17250
  25766. msgid "Common configuration and data directory. The default configuration directory is @file{$HOME} of the specified Syncthing @code{user}."
  25767. msgstr ""
  25768. #. type: Plain text
  25769. #: guix-git/doc/guix.texi:17256
  25770. msgid "Furthermore, @code{(gnu services ssh)} provides the following services."
  25771. msgstr ""
  25772. #. type: cindex
  25773. #: guix-git/doc/guix.texi:17256 guix-git/doc/guix.texi:17295
  25774. #: guix-git/doc/guix.texi:34581
  25775. #, no-wrap
  25776. msgid "SSH"
  25777. msgstr ""
  25778. #. type: cindex
  25779. #: guix-git/doc/guix.texi:17257 guix-git/doc/guix.texi:17296
  25780. #: guix-git/doc/guix.texi:34582
  25781. #, no-wrap
  25782. msgid "SSH server"
  25783. msgstr ""
  25784. #. type: deffn
  25785. #: guix-git/doc/guix.texi:17259
  25786. #, no-wrap
  25787. msgid "{Scheme Procedure} lsh-service [#:host-key \"/etc/lsh/host-key\"] @"
  25788. msgstr ""
  25789. #. type: deffn
  25790. #: guix-git/doc/guix.texi:17268
  25791. 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."
  25792. msgstr ""
  25793. #. type: deffn
  25794. #: guix-git/doc/guix.texi:17274
  25795. 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}."
  25796. msgstr ""
  25797. #. type: deffn
  25798. #: guix-git/doc/guix.texi:17278
  25799. 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."
  25800. msgstr ""
  25801. #. type: deffn
  25802. #: guix-git/doc/guix.texi:17283
  25803. 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})."
  25804. msgstr ""
  25805. #. type: deffn
  25806. #: guix-git/doc/guix.texi:17287
  25807. 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."
  25808. msgstr ""
  25809. #. type: deffn
  25810. #: guix-git/doc/guix.texi:17291
  25811. 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."
  25812. msgstr ""
  25813. #. type: deffn
  25814. #: guix-git/doc/guix.texi:17293
  25815. msgid "The other options should be self-descriptive."
  25816. msgstr ""
  25817. #. type: deffn
  25818. #: guix-git/doc/guix.texi:17297
  25819. #, no-wrap
  25820. msgid "{Scheme Variable} openssh-service-type"
  25821. msgstr ""
  25822. #. type: deffn
  25823. #: guix-git/doc/guix.texi:17301
  25824. 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:"
  25825. msgstr ""
  25826. #. type: lisp
  25827. #: guix-git/doc/guix.texi:17310
  25828. #, no-wrap
  25829. msgid ""
  25830. "(service openssh-service-type\n"
  25831. " (openssh-configuration\n"
  25832. " (x11-forwarding? #t)\n"
  25833. " (permit-root-login 'prohibit-password)\n"
  25834. " (authorized-keys\n"
  25835. " `((\"alice\" ,(local-file \"alice.pub\"))\n"
  25836. " (\"bob\" ,(local-file \"bob.pub\"))))))\n"
  25837. msgstr ""
  25838. #. type: deffn
  25839. #: guix-git/doc/guix.texi:17313
  25840. msgid "See below for details about @code{openssh-configuration}."
  25841. msgstr ""
  25842. #. type: deffn
  25843. #: guix-git/doc/guix.texi:17316
  25844. msgid "This service can be extended with extra authorized keys, as in this example:"
  25845. msgstr ""
  25846. #. type: lisp
  25847. #: guix-git/doc/guix.texi:17321
  25848. #, no-wrap
  25849. msgid ""
  25850. "(service-extension openssh-service-type\n"
  25851. " (const `((\"charlie\"\n"
  25852. " ,(local-file \"charlie.pub\")))))\n"
  25853. msgstr ""
  25854. #. type: deftp
  25855. #: guix-git/doc/guix.texi:17324
  25856. #, no-wrap
  25857. msgid "{Data Type} openssh-configuration"
  25858. msgstr ""
  25859. #. type: deftp
  25860. #: guix-git/doc/guix.texi:17326
  25861. msgid "This is the configuration record for OpenSSH's @command{sshd}."
  25862. msgstr ""
  25863. #. type: item
  25864. #: guix-git/doc/guix.texi:17328
  25865. #, fuzzy, no-wrap
  25866. msgid "@code{openssh} (default @var{openssh})"
  25867. msgstr "@code{gnome}(默认值:@code{gnome})"
  25868. #. type: table
  25869. #: guix-git/doc/guix.texi:17330
  25870. #, fuzzy
  25871. msgid "The Openssh package to use."
  25872. msgstr "软件包数据类型。"
  25873. #. type: item
  25874. #: guix-git/doc/guix.texi:17331
  25875. #, no-wrap
  25876. msgid "@code{pid-file} (default: @code{\"/var/run/sshd.pid\"})"
  25877. msgstr ""
  25878. #. type: table
  25879. #: guix-git/doc/guix.texi:17333
  25880. msgid "Name of the file where @command{sshd} writes its PID."
  25881. msgstr ""
  25882. #. type: item
  25883. #: guix-git/doc/guix.texi:17334
  25884. #, no-wrap
  25885. msgid "@code{port-number} (default: @code{22})"
  25886. msgstr ""
  25887. #. type: table
  25888. #: guix-git/doc/guix.texi:17336
  25889. msgid "TCP port on which @command{sshd} listens for incoming connections."
  25890. msgstr ""
  25891. #. type: item
  25892. #: guix-git/doc/guix.texi:17337
  25893. #, no-wrap
  25894. msgid "@code{permit-root-login} (default: @code{#f})"
  25895. msgstr ""
  25896. #. type: table
  25897. #: guix-git/doc/guix.texi:17342
  25898. 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."
  25899. msgstr ""
  25900. #. type: item
  25901. #: guix-git/doc/guix.texi:17343 guix-git/doc/guix.texi:17504
  25902. #, no-wrap
  25903. msgid "@code{allow-empty-passwords?} (default: @code{#f})"
  25904. msgstr ""
  25905. #. type: table
  25906. #: guix-git/doc/guix.texi:17346
  25907. msgid "When true, users with empty passwords may log in. When false, they may not."
  25908. msgstr ""
  25909. #. type: item
  25910. #: guix-git/doc/guix.texi:17347 guix-git/doc/guix.texi:17507
  25911. #, no-wrap
  25912. msgid "@code{password-authentication?} (default: @code{#t})"
  25913. msgstr ""
  25914. #. type: table
  25915. #: guix-git/doc/guix.texi:17350
  25916. msgid "When true, users may log in with their password. When false, they have other authentication methods."
  25917. msgstr ""
  25918. #. type: item
  25919. #: guix-git/doc/guix.texi:17351
  25920. #, no-wrap
  25921. msgid "@code{public-key-authentication?} (default: @code{#t})"
  25922. msgstr ""
  25923. #. type: table
  25924. #: guix-git/doc/guix.texi:17354
  25925. msgid "When true, users may log in using public key authentication. When false, users have to use other authentication method."
  25926. msgstr ""
  25927. #. type: table
  25928. #: guix-git/doc/guix.texi:17357
  25929. msgid "Authorized public keys are stored in @file{~/.ssh/authorized_keys}. This is used only by protocol version 2."
  25930. msgstr ""
  25931. #. type: item
  25932. #: guix-git/doc/guix.texi:17358
  25933. #, no-wrap
  25934. msgid "@code{x11-forwarding?} (default: @code{#f})"
  25935. msgstr ""
  25936. #. type: table
  25937. #: guix-git/doc/guix.texi:17362
  25938. msgid "When true, forwarding of X11 graphical client connections is enabled---in other words, @command{ssh} options @option{-X} and @option{-Y} will work."
  25939. msgstr ""
  25940. #. type: item
  25941. #: guix-git/doc/guix.texi:17363
  25942. #, no-wrap
  25943. msgid "@code{allow-agent-forwarding?} (default: @code{#t})"
  25944. msgstr ""
  25945. #. type: table
  25946. #: guix-git/doc/guix.texi:17365
  25947. msgid "Whether to allow agent forwarding."
  25948. msgstr ""
  25949. #. type: item
  25950. #: guix-git/doc/guix.texi:17366
  25951. #, no-wrap
  25952. msgid "@code{allow-tcp-forwarding?} (default: @code{#t})"
  25953. msgstr ""
  25954. #. type: table
  25955. #: guix-git/doc/guix.texi:17368
  25956. msgid "Whether to allow TCP forwarding."
  25957. msgstr ""
  25958. #. type: item
  25959. #: guix-git/doc/guix.texi:17369
  25960. #, no-wrap
  25961. msgid "@code{gateway-ports?} (default: @code{#f})"
  25962. msgstr ""
  25963. #. type: table
  25964. #: guix-git/doc/guix.texi:17371
  25965. msgid "Whether to allow gateway ports."
  25966. msgstr ""
  25967. #. type: item
  25968. #: guix-git/doc/guix.texi:17372
  25969. #, no-wrap
  25970. msgid "@code{challenge-response-authentication?} (default: @code{#f})"
  25971. msgstr ""
  25972. #. type: table
  25973. #: guix-git/doc/guix.texi:17375
  25974. msgid "Specifies whether challenge response authentication is allowed (e.g.@: via PAM)."
  25975. msgstr ""
  25976. #. type: item
  25977. #: guix-git/doc/guix.texi:17376
  25978. #, no-wrap
  25979. msgid "@code{use-pam?} (default: @code{#t})"
  25980. msgstr ""
  25981. #. type: table
  25982. #: guix-git/doc/guix.texi:17382
  25983. 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."
  25984. msgstr ""
  25985. #. type: table
  25986. #: guix-git/doc/guix.texi:17387
  25987. 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?}."
  25988. msgstr ""
  25989. #. type: item
  25990. #: guix-git/doc/guix.texi:17388
  25991. #, no-wrap
  25992. msgid "@code{print-last-log?} (default: @code{#t})"
  25993. msgstr ""
  25994. #. type: table
  25995. #: guix-git/doc/guix.texi:17391
  25996. msgid "Specifies whether @command{sshd} should print the date and time of the last user login when a user logs in interactively."
  25997. msgstr ""
  25998. #. type: item
  25999. #: guix-git/doc/guix.texi:17392
  26000. #, no-wrap
  26001. msgid "@code{subsystems} (default: @code{'((\"sftp\" \"internal-sftp\"))})"
  26002. msgstr ""
  26003. #. type: table
  26004. #: guix-git/doc/guix.texi:17394
  26005. msgid "Configures external subsystems (e.g.@: file transfer daemon)."
  26006. msgstr ""
  26007. #. type: table
  26008. #: guix-git/doc/guix.texi:17398
  26009. 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."
  26010. msgstr ""
  26011. #. type: table
  26012. #: guix-git/doc/guix.texi:17401
  26013. msgid "The command @command{internal-sftp} implements an in-process SFTP server. Alternatively, one can specify the @command{sftp-server} command:"
  26014. msgstr ""
  26015. #. type: lisp
  26016. #: guix-git/doc/guix.texi:17406
  26017. #, no-wrap
  26018. msgid ""
  26019. "(service openssh-service-type\n"
  26020. " (openssh-configuration\n"
  26021. " (subsystems\n"
  26022. " `((\"sftp\" ,(file-append openssh \"/libexec/sftp-server\"))))))\n"
  26023. msgstr ""
  26024. #. type: item
  26025. #: guix-git/doc/guix.texi:17408
  26026. #, no-wrap
  26027. msgid "@code{accepted-environment} (default: @code{'()})"
  26028. msgstr ""
  26029. #. type: table
  26030. #: guix-git/doc/guix.texi:17410
  26031. msgid "List of strings describing which environment variables may be exported."
  26032. msgstr ""
  26033. #. type: table
  26034. #: guix-git/doc/guix.texi:17413
  26035. msgid "Each string gets on its own line. See the @code{AcceptEnv} option in @code{man sshd_config}."
  26036. msgstr ""
  26037. #. type: table
  26038. #: guix-git/doc/guix.texi:17418
  26039. 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."
  26040. msgstr ""
  26041. #. type: lisp
  26042. #: guix-git/doc/guix.texi:17423
  26043. #, no-wrap
  26044. msgid ""
  26045. "(service openssh-service-type\n"
  26046. " (openssh-configuration\n"
  26047. " (accepted-environment '(\"COLORTERM\"))))\n"
  26048. msgstr ""
  26049. #. type: item
  26050. #: guix-git/doc/guix.texi:17425
  26051. #, no-wrap
  26052. msgid "@code{authorized-keys} (default: @code{'()})"
  26053. msgstr ""
  26054. #. type: cindex
  26055. #: guix-git/doc/guix.texi:17426
  26056. #, no-wrap
  26057. msgid "authorized keys, SSH"
  26058. msgstr ""
  26059. #. type: cindex
  26060. #: guix-git/doc/guix.texi:17427
  26061. #, no-wrap
  26062. msgid "SSH authorized keys"
  26063. msgstr ""
  26064. #. type: table
  26065. #: guix-git/doc/guix.texi:17431
  26066. 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:"
  26067. msgstr ""
  26068. #. type: lisp
  26069. #: guix-git/doc/guix.texi:17438
  26070. #, no-wrap
  26071. msgid ""
  26072. "(openssh-configuration\n"
  26073. " (authorized-keys\n"
  26074. " `((\"rekado\" ,(local-file \"rekado.pub\"))\n"
  26075. " (\"chris\" ,(local-file \"chris.pub\"))\n"
  26076. " (\"root\" ,(local-file \"rekado.pub\") ,(local-file \"chris.pub\")))))\n"
  26077. msgstr ""
  26078. #. type: table
  26079. #: guix-git/doc/guix.texi:17443
  26080. msgid "registers the specified public keys for user accounts @code{rekado}, @code{chris}, and @code{root}."
  26081. msgstr ""
  26082. #. type: table
  26083. #: guix-git/doc/guix.texi:17446
  26084. msgid "Additional authorized keys can be specified @i{via} @code{service-extension}."
  26085. msgstr ""
  26086. #. type: table
  26087. #: guix-git/doc/guix.texi:17449
  26088. msgid "Note that this does @emph{not} interfere with the use of @file{~/.ssh/authorized_keys}."
  26089. msgstr ""
  26090. #. type: item
  26091. #: guix-git/doc/guix.texi:17450 guix-git/doc/guix.texi:17881
  26092. #, no-wrap
  26093. msgid "@code{log-level} (default: @code{'info})"
  26094. msgstr ""
  26095. #. type: table
  26096. #: guix-git/doc/guix.texi:17454
  26097. 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."
  26098. msgstr ""
  26099. #. type: item
  26100. #: guix-git/doc/guix.texi:17455 guix-git/doc/guix.texi:20277
  26101. #: guix-git/doc/guix.texi:25418
  26102. #, no-wrap
  26103. msgid "@code{extra-content} (default: @code{\"\"})"
  26104. msgstr ""
  26105. #. type: table
  26106. #: guix-git/doc/guix.texi:17460
  26107. 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:"
  26108. msgstr ""
  26109. #. type: lisp
  26110. #: guix-git/doc/guix.texi:17466
  26111. #, no-wrap
  26112. msgid ""
  26113. "(openssh-configuration\n"
  26114. " (extra-content \"\\\n"
  26115. "Match Address 192.168.0.1\n"
  26116. " PermitRootLogin yes\"))\n"
  26117. msgstr ""
  26118. #. type: deffn
  26119. #: guix-git/doc/guix.texi:17471
  26120. #, no-wrap
  26121. msgid "{Scheme Procedure} dropbear-service [@var{config}]"
  26122. msgstr ""
  26123. #. type: deffn
  26124. #: guix-git/doc/guix.texi:17475
  26125. 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."
  26126. msgstr ""
  26127. #. type: deffn
  26128. #: guix-git/doc/guix.texi:17478
  26129. msgid "For example, to specify a Dropbear service listening on port 1234, add this call to the operating system's @code{services} field:"
  26130. msgstr ""
  26131. #. type: lisp
  26132. #: guix-git/doc/guix.texi:17482
  26133. #, no-wrap
  26134. msgid ""
  26135. "(dropbear-service (dropbear-configuration\n"
  26136. " (port-number 1234)))\n"
  26137. msgstr ""
  26138. #. type: deftp
  26139. #: guix-git/doc/guix.texi:17485
  26140. #, no-wrap
  26141. msgid "{Data Type} dropbear-configuration"
  26142. msgstr ""
  26143. #. type: deftp
  26144. #: guix-git/doc/guix.texi:17487
  26145. msgid "This data type represents the configuration of a Dropbear SSH daemon."
  26146. msgstr ""
  26147. #. type: item
  26148. #: guix-git/doc/guix.texi:17489
  26149. #, no-wrap
  26150. msgid "@code{dropbear} (default: @var{dropbear})"
  26151. msgstr ""
  26152. #. type: table
  26153. #: guix-git/doc/guix.texi:17491
  26154. msgid "The Dropbear package to use."
  26155. msgstr ""
  26156. #. type: item
  26157. #: guix-git/doc/guix.texi:17492
  26158. #, no-wrap
  26159. msgid "@code{port-number} (default: 22)"
  26160. msgstr ""
  26161. #. type: table
  26162. #: guix-git/doc/guix.texi:17494
  26163. msgid "The TCP port where the daemon waits for incoming connections."
  26164. msgstr ""
  26165. #. type: item
  26166. #: guix-git/doc/guix.texi:17495
  26167. #, no-wrap
  26168. msgid "@code{syslog-output?} (default: @code{#t})"
  26169. msgstr ""
  26170. #. type: table
  26171. #: guix-git/doc/guix.texi:17497
  26172. msgid "Whether to enable syslog output."
  26173. msgstr ""
  26174. #. type: item
  26175. #: guix-git/doc/guix.texi:17498
  26176. #, no-wrap
  26177. msgid "@code{pid-file} (default: @code{\"/var/run/dropbear.pid\"})"
  26178. msgstr ""
  26179. #. type: table
  26180. #: guix-git/doc/guix.texi:17500
  26181. msgid "File name of the daemon's PID file."
  26182. msgstr ""
  26183. #. type: item
  26184. #: guix-git/doc/guix.texi:17501
  26185. #, no-wrap
  26186. msgid "@code{root-login?} (default: @code{#f})"
  26187. msgstr ""
  26188. #. type: table
  26189. #: guix-git/doc/guix.texi:17503
  26190. msgid "Whether to allow @code{root} logins."
  26191. msgstr ""
  26192. #. type: table
  26193. #: guix-git/doc/guix.texi:17506
  26194. msgid "Whether to allow empty passwords."
  26195. msgstr ""
  26196. #. type: table
  26197. #: guix-git/doc/guix.texi:17509
  26198. msgid "Whether to enable password-based authentication."
  26199. msgstr ""
  26200. #. type: cindex
  26201. #: guix-git/doc/guix.texi:17512
  26202. #, no-wrap
  26203. msgid "AutoSSH"
  26204. msgstr ""
  26205. #. type: deffn
  26206. #: guix-git/doc/guix.texi:17513
  26207. #, no-wrap
  26208. msgid "{Scheme Variable} autossh-service-type"
  26209. msgstr ""
  26210. #. type: deffn
  26211. #: guix-git/doc/guix.texi:17521
  26212. 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."
  26213. msgstr ""
  26214. #. type: deffn
  26215. #: guix-git/doc/guix.texi:17525
  26216. 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."
  26217. msgstr ""
  26218. #. type: deffn
  26219. #: guix-git/doc/guix.texi:17530
  26220. 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:"
  26221. msgstr ""
  26222. #. type: lisp
  26223. #: guix-git/doc/guix.texi:17536
  26224. #, no-wrap
  26225. msgid ""
  26226. "(service autossh-service-type\n"
  26227. " (autossh-configuration\n"
  26228. " (user \"pino\")\n"
  26229. " (ssh-options (list \"-T\" \"-N\" \"-L\" \"8081:localhost:8081\" \"remote.net\"))))\n"
  26230. msgstr ""
  26231. #. type: deftp
  26232. #: guix-git/doc/guix.texi:17539
  26233. #, no-wrap
  26234. msgid "{Data Type} autossh-configuration"
  26235. msgstr ""
  26236. #. type: deftp
  26237. #: guix-git/doc/guix.texi:17541
  26238. msgid "This data type represents the configuration of an AutoSSH service."
  26239. msgstr ""
  26240. #. type: item
  26241. #: guix-git/doc/guix.texi:17544
  26242. #, fuzzy, no-wrap
  26243. msgid "@code{user} (default @code{\"autossh\"})"
  26244. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  26245. #. type: table
  26246. #: guix-git/doc/guix.texi:17547
  26247. msgid "The user as which the AutoSSH service is to be run. This assumes that the specified user exists."
  26248. msgstr ""
  26249. #. type: item
  26250. #: guix-git/doc/guix.texi:17548
  26251. #, fuzzy, no-wrap
  26252. msgid "@code{poll} (default @code{600})"
  26253. msgstr "@code{port}(默认值:@code{22})"
  26254. #. type: table
  26255. #: guix-git/doc/guix.texi:17550
  26256. msgid "Specifies the connection poll time in seconds."
  26257. msgstr ""
  26258. #. type: item
  26259. #: guix-git/doc/guix.texi:17551
  26260. #, fuzzy, no-wrap
  26261. msgid "@code{first-poll} (default @code{#f})"
  26262. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  26263. #. type: table
  26264. #: guix-git/doc/guix.texi:17557
  26265. 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}."
  26266. msgstr ""
  26267. #. type: item
  26268. #: guix-git/doc/guix.texi:17558
  26269. #, fuzzy, no-wrap
  26270. msgid "@code{gate-time} (default @code{30})"
  26271. msgstr "@code{mate}(默认值:@code{mate})"
  26272. #. type: table
  26273. #: guix-git/doc/guix.texi:17561
  26274. msgid "Specifies how many seconds an SSH connection must be active before it is considered successful."
  26275. msgstr ""
  26276. #. type: item
  26277. #: guix-git/doc/guix.texi:17562
  26278. #, fuzzy, no-wrap
  26279. msgid "@code{log-level} (default @code{1})"
  26280. msgstr "@code{speed}(默认值:@code{1.0})"
  26281. #. type: table
  26282. #: guix-git/doc/guix.texi:17565
  26283. msgid "The log level, corresponding to the levels used by syslog---so @code{0} is the most silent while @code{7} is the chattiest."
  26284. msgstr ""
  26285. #. type: item
  26286. #: guix-git/doc/guix.texi:17566
  26287. #, fuzzy, no-wrap
  26288. msgid "@code{max-start} (default @code{#f})"
  26289. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  26290. #. type: table
  26291. #: guix-git/doc/guix.texi:17569
  26292. 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."
  26293. msgstr ""
  26294. #. type: item
  26295. #: guix-git/doc/guix.texi:17570
  26296. #, fuzzy, no-wrap
  26297. msgid "@code{message} (default @code{\"\"})"
  26298. msgstr "@code{display}(默认值:@code{\":0\"})"
  26299. #. type: table
  26300. #: guix-git/doc/guix.texi:17572
  26301. msgid "The message to append to the echo message sent when testing connections."
  26302. msgstr ""
  26303. #. type: item
  26304. #: guix-git/doc/guix.texi:17573
  26305. #, fuzzy, no-wrap
  26306. msgid "@code{port} (default @code{\"0\"})"
  26307. msgstr "@code{port}(默认值:@code{22})"
  26308. #. type: table
  26309. #: guix-git/doc/guix.texi:17583
  26310. 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."
  26311. msgstr ""
  26312. #. type: item
  26313. #: guix-git/doc/guix.texi:17584
  26314. #, fuzzy, no-wrap
  26315. msgid "@code{ssh-options} (default @code{'()})"
  26316. msgstr "@code{includes}(默认值:@code{'()})"
  26317. #. type: table
  26318. #: guix-git/doc/guix.texi:17588
  26319. 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."
  26320. msgstr ""
  26321. #. type: cindex
  26322. #: guix-git/doc/guix.texi:17592
  26323. #, no-wrap
  26324. msgid "WebSSH"
  26325. msgstr ""
  26326. #. type: deffn
  26327. #: guix-git/doc/guix.texi:17593
  26328. #, no-wrap
  26329. msgid "{Scheme Variable} webssh-service-type"
  26330. msgstr ""
  26331. #. type: deffn
  26332. #: guix-git/doc/guix.texi:17599
  26333. 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."
  26334. msgstr ""
  26335. #. type: deffn
  26336. #: guix-git/doc/guix.texi:17605
  26337. 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:"
  26338. msgstr ""
  26339. #. type: lisp
  26340. #: guix-git/doc/guix.texi:17613
  26341. #, no-wrap
  26342. msgid ""
  26343. "(service webssh-service-type\n"
  26344. " (webssh-configuration (address \"127.0.0.1\")\n"
  26345. " (port 8888)\n"
  26346. " (policy 'reject)\n"
  26347. " (known-hosts '(\"localhost ecdsa-sha2-nistp256 AAAA…\"\n"
  26348. " \"127.0.0.1 ecdsa-sha2-nistp256 AAAA…\"))))\n"
  26349. "\n"
  26350. msgstr ""
  26351. #. type: lisp
  26352. #: guix-git/doc/guix.texi:17629
  26353. #, no-wrap
  26354. msgid ""
  26355. "(service nginx-service-type\n"
  26356. " (nginx-configuration\n"
  26357. " (server-blocks\n"
  26358. " (list\n"
  26359. " (nginx-server-configuration\n"
  26360. " (inherit %webssh-configuration-nginx)\n"
  26361. " (server-name '(\"webssh.example.com\"))\n"
  26362. " (listen '(\"443 ssl\"))\n"
  26363. " (ssl-certificate (letsencrypt-certificate \"webssh.example.com\"))\n"
  26364. " (ssl-certificate-key (letsencrypt-key \"webssh.example.com\"))\n"
  26365. " (locations\n"
  26366. " (cons (nginx-location-configuration\n"
  26367. " (uri \"/.well-known\")\n"
  26368. " (body '(\"root /var/www;\")))\n"
  26369. " (nginx-server-configuration-locations %webssh-configuration-nginx))))))))\n"
  26370. msgstr ""
  26371. #. type: deftp
  26372. #: guix-git/doc/guix.texi:17632
  26373. #, no-wrap
  26374. msgid "{Data Type} webssh-configuration"
  26375. msgstr ""
  26376. #. type: deftp
  26377. #: guix-git/doc/guix.texi:17634
  26378. msgid "Data type representing the configuration for @code{webssh-service}."
  26379. msgstr ""
  26380. #. type: item
  26381. #: guix-git/doc/guix.texi:17636
  26382. #, fuzzy, no-wrap
  26383. msgid "@code{package} (default: @var{webssh})"
  26384. msgstr "@code{xfce}(默认值:@code{xfce})"
  26385. #. type: table
  26386. #: guix-git/doc/guix.texi:17638
  26387. msgid "@code{webssh} package to use."
  26388. msgstr ""
  26389. #. type: item
  26390. #: guix-git/doc/guix.texi:17639
  26391. #, fuzzy, no-wrap
  26392. msgid "@code{user-name} (default: @var{\"webssh\"})"
  26393. msgstr "@code{gnome}(默认值:@code{gnome})"
  26394. #. type: table
  26395. #: guix-git/doc/guix.texi:17642
  26396. msgid "User name or user ID that file transfers to and from that module should take place."
  26397. msgstr ""
  26398. #. type: item
  26399. #: guix-git/doc/guix.texi:17643
  26400. #, fuzzy, no-wrap
  26401. msgid "@code{group-name} (default: @var{\"webssh\"})"
  26402. msgstr "@code{gnome}(默认值:@code{gnome})"
  26403. #. type: item
  26404. #: guix-git/doc/guix.texi:17646
  26405. #, fuzzy, no-wrap
  26406. msgid "@code{address} (default: @var{#f})"
  26407. msgstr "@code{challenge}(默认值:@code{#f})"
  26408. #. type: table
  26409. #: guix-git/doc/guix.texi:17648
  26410. msgid "IP address on which @command{webssh} listens for incoming connections."
  26411. msgstr ""
  26412. #. type: item
  26413. #: guix-git/doc/guix.texi:17649
  26414. #, fuzzy, no-wrap
  26415. msgid "@code{port} (default: @var{8888})"
  26416. msgstr "@code{port}(默认值:@code{22})"
  26417. #. type: table
  26418. #: guix-git/doc/guix.texi:17651
  26419. msgid "TCP port on which @command{webssh} listens for incoming connections."
  26420. msgstr ""
  26421. #. type: item
  26422. #: guix-git/doc/guix.texi:17652
  26423. #, fuzzy, no-wrap
  26424. msgid "@code{policy} (default: @var{#f})"
  26425. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  26426. #. type: table
  26427. #: guix-git/doc/guix.texi:17654
  26428. msgid "Connection policy. @var{reject} policy requires to specify @var{known-hosts}."
  26429. msgstr ""
  26430. #. type: item
  26431. #: guix-git/doc/guix.texi:17655
  26432. #, fuzzy, no-wrap
  26433. msgid "@code{known-hosts} (default: @var{'()})"
  26434. msgstr "@code{features} (@code{'()})"
  26435. #. type: table
  26436. #: guix-git/doc/guix.texi:17657
  26437. msgid "List of hosts which allowed for SSH connection from @command{webssh}."
  26438. msgstr ""
  26439. #. type: item
  26440. #: guix-git/doc/guix.texi:17658
  26441. #, fuzzy, no-wrap
  26442. msgid "@code{log-file} (default: @file{\"/var/log/webssh.log\"})"
  26443. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  26444. #. type: table
  26445. #: guix-git/doc/guix.texi:17660
  26446. msgid "Name of the file where @command{webssh} writes its log file."
  26447. msgstr ""
  26448. #. type: item
  26449. #: guix-git/doc/guix.texi:17661
  26450. #, fuzzy, no-wrap
  26451. msgid "@code{log-level} (default: @var{#f})"
  26452. msgstr "@code{challenge}(默认值:@code{#f})"
  26453. #. type: table
  26454. #: guix-git/doc/guix.texi:17663
  26455. msgid "Logging level."
  26456. msgstr ""
  26457. #. type: defvr
  26458. #: guix-git/doc/guix.texi:17667
  26459. #, no-wrap
  26460. msgid "{Scheme Variable} %facebook-host-aliases"
  26461. msgstr ""
  26462. #. type: defvr
  26463. #: guix-git/doc/guix.texi:17673
  26464. 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}."
  26465. msgstr ""
  26466. #. type: defvr
  26467. #: guix-git/doc/guix.texi:17677
  26468. 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}}):"
  26469. msgstr ""
  26470. #. type: lisp
  26471. #: guix-git/doc/guix.texi:17690
  26472. #, no-wrap
  26473. msgid ""
  26474. "(operating-system\n"
  26475. " (host-name \"mymachine\")\n"
  26476. " ;; ...\n"
  26477. " (hosts-file\n"
  26478. " ;; Create a /etc/hosts file with aliases for \"localhost\"\n"
  26479. " ;; and \"mymachine\", as well as for Facebook servers.\n"
  26480. " (plain-file \"hosts\"\n"
  26481. " (string-append (local-host-aliases host-name)\n"
  26482. " %facebook-host-aliases))))\n"
  26483. msgstr ""
  26484. #. type: defvr
  26485. #: guix-git/doc/guix.texi:17694
  26486. msgid "This mechanism can prevent programs running locally, such as Web browsers, from accessing Facebook."
  26487. msgstr ""
  26488. #. type: Plain text
  26489. #: guix-git/doc/guix.texi:17697
  26490. msgid "The @code{(gnu services avahi)} provides the following definition."
  26491. msgstr ""
  26492. #. type: defvr
  26493. #: guix-git/doc/guix.texi:17698
  26494. #, no-wrap
  26495. msgid "{Scheme Variable} avahi-service-type"
  26496. msgstr ""
  26497. #. type: defvr
  26498. #: guix-git/doc/guix.texi:17703
  26499. 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."
  26500. msgstr ""
  26501. #. type: defvr
  26502. #: guix-git/doc/guix.texi:17708
  26503. 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."
  26504. msgstr ""
  26505. #. type: defvr
  26506. #: guix-git/doc/guix.texi:17711
  26507. msgid "Additionally, add the @var{avahi} package to the system profile so that commands such as @command{avahi-browse} are directly usable."
  26508. msgstr ""
  26509. #. type: deftp
  26510. #: guix-git/doc/guix.texi:17713
  26511. #, no-wrap
  26512. msgid "{Data Type} avahi-configuration"
  26513. msgstr ""
  26514. #. type: deftp
  26515. #: guix-git/doc/guix.texi:17715
  26516. msgid "Data type representation the configuration for Avahi."
  26517. msgstr ""
  26518. #. type: item
  26519. #: guix-git/doc/guix.texi:17718
  26520. #, no-wrap
  26521. msgid "@code{host-name} (default: @code{#f})"
  26522. msgstr ""
  26523. #. type: table
  26524. #: guix-git/doc/guix.texi:17721
  26525. 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."
  26526. msgstr ""
  26527. #. type: item
  26528. #: guix-git/doc/guix.texi:17722 guix-git/doc/guix.texi:28072
  26529. #, no-wrap
  26530. msgid "@code{publish?} (default: @code{#t})"
  26531. msgstr ""
  26532. #. type: table
  26533. #: guix-git/doc/guix.texi:17725
  26534. msgid "When true, allow host names and services to be published (broadcast) over the network."
  26535. msgstr ""
  26536. #. type: item
  26537. #: guix-git/doc/guix.texi:17726
  26538. #, no-wrap
  26539. msgid "@code{publish-workstation?} (default: @code{#t})"
  26540. msgstr ""
  26541. #. type: table
  26542. #: guix-git/doc/guix.texi:17730
  26543. 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:"
  26544. msgstr ""
  26545. #. type: example
  26546. #: guix-git/doc/guix.texi:17733
  26547. #, no-wrap
  26548. msgid "avahi-browse _workstation._tcp\n"
  26549. msgstr ""
  26550. #. type: item
  26551. #: guix-git/doc/guix.texi:17735
  26552. #, no-wrap
  26553. msgid "@code{wide-area?} (default: @code{#f})"
  26554. msgstr ""
  26555. #. type: table
  26556. #: guix-git/doc/guix.texi:17737
  26557. msgid "When true, DNS-SD over unicast DNS is enabled."
  26558. msgstr ""
  26559. #. type: item
  26560. #: guix-git/doc/guix.texi:17738
  26561. #, no-wrap
  26562. msgid "@code{ipv4?} (default: @code{#t})"
  26563. msgstr ""
  26564. #. type: itemx
  26565. #: guix-git/doc/guix.texi:17739
  26566. #, no-wrap
  26567. msgid "@code{ipv6?} (default: @code{#t})"
  26568. msgstr ""
  26569. #. type: table
  26570. #: guix-git/doc/guix.texi:17741
  26571. msgid "These fields determine whether to use IPv4/IPv6 sockets."
  26572. msgstr ""
  26573. #. type: item
  26574. #: guix-git/doc/guix.texi:17742
  26575. #, no-wrap
  26576. msgid "@code{domains-to-browse} (default: @code{'()})"
  26577. msgstr ""
  26578. #. type: table
  26579. #: guix-git/doc/guix.texi:17744
  26580. msgid "This is a list of domains to browse."
  26581. msgstr ""
  26582. #. type: deffn
  26583. #: guix-git/doc/guix.texi:17747
  26584. #, no-wrap
  26585. msgid "{Scheme Variable} openvswitch-service-type"
  26586. msgstr ""
  26587. #. type: deffn
  26588. #: guix-git/doc/guix.texi:17751
  26589. msgid "This is the type of the @uref{https://www.openvswitch.org, Open vSwitch} service, whose value should be an @code{openvswitch-configuration} object."
  26590. msgstr ""
  26591. #. type: deftp
  26592. #: guix-git/doc/guix.texi:17753
  26593. #, no-wrap
  26594. msgid "{Data Type} openvswitch-configuration"
  26595. msgstr ""
  26596. #. type: deftp
  26597. #: guix-git/doc/guix.texi:17757
  26598. msgid "Data type representing the configuration of Open vSwitch, a multilayer virtual switch which is designed to enable massive network automation through programmatic extension."
  26599. msgstr ""
  26600. #. type: item
  26601. #: guix-git/doc/guix.texi:17759
  26602. #, no-wrap
  26603. msgid "@code{package} (default: @var{openvswitch})"
  26604. msgstr ""
  26605. #. type: table
  26606. #: guix-git/doc/guix.texi:17761
  26607. msgid "Package object of the Open vSwitch."
  26608. msgstr ""
  26609. #. type: defvr
  26610. #: guix-git/doc/guix.texi:17765
  26611. #, no-wrap
  26612. msgid "{Scheme Variable} pagekite-service-type"
  26613. msgstr ""
  26614. #. type: defvr
  26615. #: guix-git/doc/guix.texi:17770
  26616. 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."
  26617. msgstr ""
  26618. #. type: defvr
  26619. #: guix-git/doc/guix.texi:17772
  26620. msgid "Here's an example exposing the local HTTP and SSH daemons:"
  26621. msgstr ""
  26622. #. type: lisp
  26623. #: guix-git/doc/guix.texi:17779
  26624. #, no-wrap
  26625. msgid ""
  26626. "(service pagekite-service-type\n"
  26627. " (pagekite-configuration\n"
  26628. " (kites '(\"http:@@kitename:localhost:80:@@kitesecret\"\n"
  26629. " \"raw/22:@@kitename:localhost:22:@@kitesecret\"))\n"
  26630. " (extra-file \"/etc/pagekite.rc\")))\n"
  26631. msgstr ""
  26632. #. type: deftp
  26633. #: guix-git/doc/guix.texi:17782
  26634. #, fuzzy, no-wrap
  26635. msgid "{Data Type} pagekite-configuration"
  26636. msgstr "管理操作系统配置。"
  26637. #. type: deftp
  26638. #: guix-git/doc/guix.texi:17784
  26639. #, fuzzy
  26640. msgid "Data type representing the configuration of PageKite."
  26641. msgstr "管理操作系统配置。"
  26642. #. type: item
  26643. #: guix-git/doc/guix.texi:17786
  26644. #, fuzzy, no-wrap
  26645. msgid "@code{package} (default: @var{pagekite})"
  26646. msgstr "@code{mate}(默认值:@code{mate})"
  26647. #. type: table
  26648. #: guix-git/doc/guix.texi:17788
  26649. msgid "Package object of PageKite."
  26650. msgstr ""
  26651. #. type: item
  26652. #: guix-git/doc/guix.texi:17789
  26653. #, fuzzy, no-wrap
  26654. msgid "@code{kitename} (default: @code{#f})"
  26655. msgstr "@code{challenge}(默认值:@code{#f})"
  26656. #. type: table
  26657. #: guix-git/doc/guix.texi:17791
  26658. msgid "PageKite name for authenticating to the frontend server."
  26659. msgstr ""
  26660. #. type: item
  26661. #: guix-git/doc/guix.texi:17792
  26662. #, fuzzy, no-wrap
  26663. msgid "@code{kitesecret} (default: @code{#f})"
  26664. msgstr "@code{speed}(默认值:@code{1.0})"
  26665. #. type: table
  26666. #: guix-git/doc/guix.texi:17795
  26667. msgid "Shared secret for authenticating to the frontend server. You should probably put this inside @code{extra-file} instead."
  26668. msgstr ""
  26669. #. type: item
  26670. #: guix-git/doc/guix.texi:17796
  26671. #, fuzzy, no-wrap
  26672. msgid "@code{frontend} (default: @code{#f})"
  26673. msgstr "@code{journal-content}(默认值:@code{#f})"
  26674. #. type: table
  26675. #: guix-git/doc/guix.texi:17799
  26676. msgid "Connect to the named PageKite frontend server instead of the @uref{https://pagekite.net,,pagekite.net} service."
  26677. msgstr ""
  26678. #. type: item
  26679. #: guix-git/doc/guix.texi:17800
  26680. #, no-wrap
  26681. msgid "@code{kites} (default: @code{'(\"http:@@kitename:localhost:80:@@kitesecret\")})"
  26682. msgstr ""
  26683. #. type: table
  26684. #: guix-git/doc/guix.texi:17803
  26685. msgid "List of service kites to use. Exposes HTTP on port 80 by default. The format is @code{proto:kitename:host:port:secret}."
  26686. msgstr ""
  26687. #. type: item
  26688. #: guix-git/doc/guix.texi:17804
  26689. #, fuzzy, no-wrap
  26690. msgid "@code{extra-file} (default: @code{#f})"
  26691. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  26692. #. type: table
  26693. #: guix-git/doc/guix.texi:17807
  26694. 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."
  26695. msgstr ""
  26696. #. type: defvr
  26697. #: guix-git/doc/guix.texi:17811
  26698. #, no-wrap
  26699. msgid "{Scheme Variable} yggdrasil-service-type"
  26700. msgstr ""
  26701. #. type: defvr
  26702. #: guix-git/doc/guix.texi:17815
  26703. 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."
  26704. msgstr ""
  26705. #. type: quotation
  26706. #: guix-git/doc/guix.texi:17822
  26707. 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}"
  26708. msgstr ""
  26709. #. type: defvr
  26710. #: guix-git/doc/guix.texi:17826
  26711. msgid "Pass it a value of @code{yggdrasil-configuration} to connect it to public peers and/or local peers."
  26712. msgstr ""
  26713. #. type: defvr
  26714. #: guix-git/doc/guix.texi:17830
  26715. 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})."
  26716. msgstr ""
  26717. #. type: lisp
  26718. #: guix-git/doc/guix.texi:17842
  26719. #, no-wrap
  26720. msgid ""
  26721. ";; part of the operating-system declaration\n"
  26722. "(service yggdrasil-service-type\n"
  26723. " (yggdrasil-configuration\n"
  26724. " (autoconf? #f) ;; use only the public peers\n"
  26725. " (json-config\n"
  26726. " ;; choose one from\n"
  26727. " ;; https://github.com/yggdrasil-network/public-peers\n"
  26728. " '((peers . #(\"tcp://1.2.3.4:1337\"))))\n"
  26729. " ;; /etc/yggdrasil-private.conf is the default value for config-file\n"
  26730. " ))\n"
  26731. msgstr ""
  26732. #. type: example
  26733. #: guix-git/doc/guix.texi:17849
  26734. #, no-wrap
  26735. msgid ""
  26736. "# sample content for /etc/yggdrasil-private.conf\n"
  26737. "@{\n"
  26738. " # Your public encryption key. Your peers may ask you for this to put\n"
  26739. " # into their AllowedEncryptionPublicKeys configuration.\n"
  26740. " EncryptionPublicKey: 378dc5...\n"
  26741. "\n"
  26742. msgstr ""
  26743. #. type: example
  26744. #: guix-git/doc/guix.texi:17852
  26745. #, no-wrap
  26746. msgid ""
  26747. " # Your private encryption key. DO NOT share this with anyone!\n"
  26748. " EncryptionPrivateKey: 0777...\n"
  26749. "\n"
  26750. msgstr ""
  26751. #. type: example
  26752. #: guix-git/doc/guix.texi:17856
  26753. #, no-wrap
  26754. msgid ""
  26755. " # Your public signing key. You should not ordinarily need to share\n"
  26756. " # this with anyone.\n"
  26757. " SigningPublicKey: e1664...\n"
  26758. "\n"
  26759. msgstr ""
  26760. #. type: example
  26761. #: guix-git/doc/guix.texi:17860
  26762. #, no-wrap
  26763. msgid ""
  26764. " # Your private signing key. DO NOT share this with anyone!\n"
  26765. " SigningPrivateKey: 0589d...\n"
  26766. "@}\n"
  26767. msgstr ""
  26768. #. type: deftp
  26769. #: guix-git/doc/guix.texi:17863
  26770. #, fuzzy, no-wrap
  26771. msgid "{Data Type} yggdrasil-configuration"
  26772. msgstr "{数据类型} build-machine"
  26773. #. type: deftp
  26774. #: guix-git/doc/guix.texi:17865
  26775. #, fuzzy
  26776. msgid "Data type representing the configuration of Yggdrasil."
  26777. msgstr "管理操作系统配置。"
  26778. #. type: item
  26779. #: guix-git/doc/guix.texi:17867
  26780. #, fuzzy, no-wrap
  26781. msgid "@code{package} (default: @code{yggdrasil})"
  26782. msgstr "@code{mate}(默认值:@code{mate})"
  26783. #. type: table
  26784. #: guix-git/doc/guix.texi:17869
  26785. msgid "Package object of Yggdrasil."
  26786. msgstr ""
  26787. #. type: item
  26788. #: guix-git/doc/guix.texi:17870
  26789. #, fuzzy, no-wrap
  26790. msgid "@code{json-config} (default: @code{'()})"
  26791. msgstr "@code{includes}(默认值:@code{'()})"
  26792. #. type: table
  26793. #: guix-git/doc/guix.texi:17876
  26794. 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."
  26795. msgstr ""
  26796. #. type: item
  26797. #: guix-git/doc/guix.texi:17877
  26798. #, fuzzy, no-wrap
  26799. msgid "@code{autoconf?} (default: @code{#f})"
  26800. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  26801. #. type: table
  26802. #: guix-git/doc/guix.texi:17880
  26803. msgid "Whether to use automatic mode. Enabling it makes Yggdrasil use adynamic IP and peer with IPv6 neighbors."
  26804. msgstr ""
  26805. #. type: table
  26806. #: guix-git/doc/guix.texi:17883
  26807. msgid "How much detail to include in logs. Use @code{'debug} for more detail."
  26808. msgstr ""
  26809. #. type: item
  26810. #: guix-git/doc/guix.texi:17884
  26811. #, fuzzy, no-wrap
  26812. msgid "@code{log-to} (default: @code{'stdout})"
  26813. msgstr "@code{port}(默认值:@code{22})"
  26814. #. type: table
  26815. #: guix-git/doc/guix.texi:17888
  26816. 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."
  26817. msgstr ""
  26818. #. type: item
  26819. #: guix-git/doc/guix.texi:17889
  26820. #, fuzzy, no-wrap
  26821. msgid "@code{config-file} (default: @code{\"/etc/yggdrasil-private.conf\"})"
  26822. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  26823. #. type: table
  26824. #: guix-git/doc/guix.texi:17896
  26825. 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:"
  26826. msgstr ""
  26827. #. type: code{#1}
  26828. #: guix-git/doc/guix.texi:17898
  26829. #, no-wrap
  26830. msgid "EncryptionPublicKey"
  26831. msgstr ""
  26832. #. type: code{#1}
  26833. #: guix-git/doc/guix.texi:17899
  26834. #, no-wrap
  26835. msgid "EncryptionPrivateKey"
  26836. msgstr ""
  26837. #. type: code{#1}
  26838. #: guix-git/doc/guix.texi:17900
  26839. #, no-wrap
  26840. msgid "SigningPublicKey"
  26841. msgstr ""
  26842. #. type: code{#1}
  26843. #: guix-git/doc/guix.texi:17901
  26844. #, no-wrap
  26845. msgid "SigningPrivateKey"
  26846. msgstr ""
  26847. #. type: cindex
  26848. #: guix-git/doc/guix.texi:17906
  26849. #, no-wrap
  26850. msgid "IPFS"
  26851. msgstr ""
  26852. #. type: defvr
  26853. #: guix-git/doc/guix.texi:17907
  26854. #, no-wrap
  26855. msgid "{Scheme Variable} ipfs-service-type"
  26856. msgstr ""
  26857. #. type: defvr
  26858. #: guix-git/doc/guix.texi:17911
  26859. 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."
  26860. msgstr ""
  26861. #. type: defvr
  26862. #: guix-git/doc/guix.texi:17913
  26863. msgid "Here's an example configuration, using some non-standard ports:"
  26864. msgstr ""
  26865. #. type: lisp
  26866. #: guix-git/doc/guix.texi:17919
  26867. #, no-wrap
  26868. msgid ""
  26869. "(service ipfs-service-type\n"
  26870. " (ipfs-configuration\n"
  26871. " (gateway \"/ip4/127.0.0.1/tcp/8880\")\n"
  26872. " (api \"/ip4/127.0.0.1/tcp/8881\")))\n"
  26873. msgstr ""
  26874. #. type: deftp
  26875. #: guix-git/doc/guix.texi:17922
  26876. #, fuzzy, no-wrap
  26877. msgid "{Data Type} ipfs-configuration"
  26878. msgstr "系统配置"
  26879. #. type: deftp
  26880. #: guix-git/doc/guix.texi:17924
  26881. #, fuzzy
  26882. msgid "Data type representing the configuration of IPFS."
  26883. msgstr "管理操作系统配置。"
  26884. #. type: item
  26885. #: guix-git/doc/guix.texi:17926
  26886. #, fuzzy, no-wrap
  26887. msgid "@code{package} (default: @code{go-ipfs})"
  26888. msgstr "@code{mate}(默认值:@code{mate})"
  26889. #. type: table
  26890. #: guix-git/doc/guix.texi:17928
  26891. msgid "Package object of IPFS."
  26892. msgstr ""
  26893. #. type: item
  26894. #: guix-git/doc/guix.texi:17929
  26895. #, fuzzy, no-wrap
  26896. msgid "@code{gateway} (default: @code{\"/ip4/127.0.0.1/tcp/8082\"})"
  26897. msgstr "@code{speed}(默认值:@code{1.0})"
  26898. #. type: table
  26899. #: guix-git/doc/guix.texi:17931
  26900. msgid "Address of the gateway, in ‘multiaddress’ format."
  26901. msgstr ""
  26902. #. type: item
  26903. #: guix-git/doc/guix.texi:17932
  26904. #, fuzzy, no-wrap
  26905. msgid "@code{api} (default: @code{\"/ip4/127.0.0.1/tcp/5001\"})"
  26906. msgstr "@code{speed}(默认值:@code{1.0})"
  26907. #. type: table
  26908. #: guix-git/doc/guix.texi:17934
  26909. msgid "Address of the API endpoint, in ‘multiaddress’ format."
  26910. msgstr ""
  26911. #. type: cindex
  26912. #: guix-git/doc/guix.texi:17937
  26913. #, no-wrap
  26914. msgid "keepalived"
  26915. msgstr ""
  26916. #. type: deffn
  26917. #: guix-git/doc/guix.texi:17938
  26918. #, no-wrap
  26919. msgid "{Scheme Variable} keepalived-service-type"
  26920. msgstr ""
  26921. #. type: deffn
  26922. #: guix-git/doc/guix.texi:17943
  26923. 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:"
  26924. msgstr ""
  26925. #. type: lisp
  26926. #: guix-git/doc/guix.texi:17948
  26927. #, fuzzy, no-wrap
  26928. msgid ""
  26929. "(service keepalived-service-type\n"
  26930. " (keepalived-configuration\n"
  26931. " (config-file (local-file \"keepalived-master.conf\"))))\n"
  26932. msgstr ""
  26933. "(service qemu-binfmt-service-type\n"
  26934. " (qemu-binfmt-configuration\n"
  26935. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  26936. " (guix-support? #t)))\n"
  26937. #. type: deffn
  26938. #: guix-git/doc/guix.texi:17951
  26939. msgid "where @file{keepalived-master.conf}:"
  26940. msgstr ""
  26941. #. type: example
  26942. #: guix-git/doc/guix.texi:17963
  26943. #, no-wrap
  26944. msgid ""
  26945. "vrrp_instance my-group @{\n"
  26946. " state MASTER\n"
  26947. " interface enp9s0\n"
  26948. " virtual_router_id 100\n"
  26949. " priority 100\n"
  26950. " unicast_peer @{ 10.0.0.2 @}\n"
  26951. " virtual_ipaddress @{\n"
  26952. " 10.0.0.4/24\n"
  26953. " @}\n"
  26954. "@}\n"
  26955. msgstr ""
  26956. #. type: deffn
  26957. #: guix-git/doc/guix.texi:17966
  26958. msgid "and for backup machine:"
  26959. msgstr ""
  26960. #. type: lisp
  26961. #: guix-git/doc/guix.texi:17971
  26962. #, fuzzy, no-wrap
  26963. msgid ""
  26964. "(service keepalived-service-type\n"
  26965. " (keepalived-configuration\n"
  26966. " (config-file (local-file \"keepalived-backup.conf\"))))\n"
  26967. msgstr ""
  26968. "(service qemu-binfmt-service-type\n"
  26969. " (qemu-binfmt-configuration\n"
  26970. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  26971. " (guix-support? #t)))\n"
  26972. #. type: deffn
  26973. #: guix-git/doc/guix.texi:17974
  26974. msgid "where @file{keepalived-backup.conf}:"
  26975. msgstr ""
  26976. #. type: example
  26977. #: guix-git/doc/guix.texi:17986
  26978. #, no-wrap
  26979. msgid ""
  26980. "vrrp_instance my-group @{\n"
  26981. " state BACKUP\n"
  26982. " interface enp9s0\n"
  26983. " virtual_router_id 100\n"
  26984. " priority 99\n"
  26985. " unicast_peer @{ 10.0.0.3 @}\n"
  26986. " virtual_ipaddress @{\n"
  26987. " 10.0.0.4/24\n"
  26988. " @}\n"
  26989. "@}\n"
  26990. msgstr ""
  26991. #. type: cindex
  26992. #: guix-git/doc/guix.texi:17992
  26993. #, no-wrap
  26994. msgid "unattended upgrades"
  26995. msgstr ""
  26996. #. type: cindex
  26997. #: guix-git/doc/guix.texi:17993
  26998. #, no-wrap
  26999. msgid "upgrades, unattended"
  27000. msgstr ""
  27001. #. type: Plain text
  27002. #: guix-git/doc/guix.texi:17998
  27003. 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:"
  27004. msgstr ""
  27005. #. type: itemize
  27006. #: guix-git/doc/guix.texi:18003
  27007. msgid "upgrades are transactional (either the upgrade succeeds or it fails, but you cannot end up with an ``in-between'' system state);"
  27008. msgstr ""
  27009. #. type: itemize
  27010. #: guix-git/doc/guix.texi:18007
  27011. 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;"
  27012. msgstr ""
  27013. #. type: itemize
  27014. #: guix-git/doc/guix.texi:18010
  27015. msgid "channel code is authenticated so you know you can only run genuine code (@pxref{Channels});"
  27016. msgstr ""
  27017. #. type: itemize
  27018. #: guix-git/doc/guix.texi:18013
  27019. msgid "@command{guix system reconfigure} prevents downgrades, which makes it immune to @dfn{downgrade attacks}."
  27020. msgstr ""
  27021. #. type: Plain text
  27022. #: guix-git/doc/guix.texi:18018
  27023. 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:"
  27024. msgstr ""
  27025. #. type: lisp
  27026. #: guix-git/doc/guix.texi:18021
  27027. #, no-wrap
  27028. msgid "(service unattended-upgrade-service-type)\n"
  27029. msgstr ""
  27030. #. type: Plain text
  27031. #: guix-git/doc/guix.texi:18028
  27032. 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."
  27033. msgstr ""
  27034. #. type: Plain text
  27035. #: guix-git/doc/guix.texi:18034
  27036. 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."
  27037. msgstr ""
  27038. #. type: Plain text
  27039. #: guix-git/doc/guix.texi:18038
  27040. 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)."
  27041. msgstr ""
  27042. #. type: defvr
  27043. #: guix-git/doc/guix.texi:18039
  27044. #, no-wrap
  27045. msgid "{Scheme Variable} unattended-upgrade-service-type"
  27046. msgstr ""
  27047. #. type: defvr
  27048. #: guix-git/doc/guix.texi:18043
  27049. 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."
  27050. msgstr ""
  27051. #. type: defvr
  27052. #: guix-git/doc/guix.texi:18046
  27053. msgid "Its value must be a @code{unattended-upgrade-configuration} record (see below)."
  27054. msgstr ""
  27055. #. type: deftp
  27056. #: guix-git/doc/guix.texi:18048
  27057. #, no-wrap
  27058. msgid "{Data Type} unattended-upgrade-configuration"
  27059. msgstr ""
  27060. #. type: deftp
  27061. #: guix-git/doc/guix.texi:18051
  27062. msgid "This data type represents the configuration of the unattended upgrade service. The following fields are available:"
  27063. msgstr ""
  27064. #. type: item
  27065. #: guix-git/doc/guix.texi:18053
  27066. #, fuzzy, no-wrap
  27067. msgid "@code{schedule} (default: @code{\"30 01 * * 0\"})"
  27068. msgstr "@code{speed}(默认值:@code{1.0})"
  27069. #. type: table
  27070. #: guix-git/doc/guix.texi:18057
  27071. 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})."
  27072. msgstr ""
  27073. #. type: item
  27074. #: guix-git/doc/guix.texi:18058
  27075. #, fuzzy, no-wrap
  27076. msgid "@code{channels} (default: @code{#~%default-channels})"
  27077. msgstr "@code{challenge}(默认值:@code{#f})"
  27078. #. type: table
  27079. #: guix-git/doc/guix.texi:18062
  27080. 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."
  27081. msgstr ""
  27082. #. type: item
  27083. #: guix-git/doc/guix.texi:18063
  27084. #, no-wrap
  27085. msgid "@code{operating-system-file} (default: @code{\"/run/current-system/configuration.scm\"})"
  27086. msgstr ""
  27087. #. type: table
  27088. #: guix-git/doc/guix.texi:18066
  27089. msgid "This field specifies the operating system configuration file to use. The default is to reuse the config file of the current configuration."
  27090. msgstr ""
  27091. #. type: table
  27092. #: guix-git/doc/guix.texi:18072
  27093. 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:"
  27094. msgstr ""
  27095. #. type: lisp
  27096. #: guix-git/doc/guix.texi:18078
  27097. #, no-wrap
  27098. msgid ""
  27099. "(unattended-upgrade-configuration\n"
  27100. " (operating-system-file\n"
  27101. " (file-append (local-file \".\" \"config-dir\" #:recursive? #t)\n"
  27102. " \"/config.scm\")))\n"
  27103. msgstr ""
  27104. #. type: table
  27105. #: guix-git/doc/guix.texi:18085
  27106. 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}."
  27107. msgstr ""
  27108. #. type: item
  27109. #: guix-git/doc/guix.texi:18086
  27110. #, fuzzy, no-wrap
  27111. msgid "@code{services-to-restart} (default: @code{'(mcron)})"
  27112. msgstr "@code{features} (@code{'()})"
  27113. #. type: table
  27114. #: guix-git/doc/guix.texi:18089
  27115. msgid "This field specifies the Shepherd services to restart when the upgrade completes."
  27116. msgstr ""
  27117. #. type: table
  27118. #: guix-git/doc/guix.texi:18096
  27119. 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."
  27120. msgstr ""
  27121. #. type: table
  27122. #: guix-git/doc/guix.texi:18100
  27123. 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}."
  27124. msgstr ""
  27125. #. type: table
  27126. #: guix-git/doc/guix.texi:18103
  27127. 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."
  27128. msgstr ""
  27129. #. type: item
  27130. #: guix-git/doc/guix.texi:18104
  27131. #, fuzzy, no-wrap
  27132. msgid "@code{system-expiration} (default: @code{(* 3 30 24 3600)})"
  27133. msgstr "@code{port}(默认值:@code{22})"
  27134. #. type: table
  27135. #: guix-git/doc/guix.texi:18108
  27136. 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."
  27137. msgstr ""
  27138. #. type: quotation
  27139. #: guix-git/doc/guix.texi:18113
  27140. 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."
  27141. msgstr ""
  27142. #. type: item
  27143. #: guix-git/doc/guix.texi:18115
  27144. #, fuzzy, no-wrap
  27145. msgid "@code{maximum-duration} (default: @code{3600})"
  27146. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  27147. #. type: table
  27148. #: guix-git/doc/guix.texi:18118
  27149. msgid "Maximum duration in seconds for the upgrade; past that time, the upgrade aborts."
  27150. msgstr ""
  27151. #. type: table
  27152. #: guix-git/doc/guix.texi:18121
  27153. msgid "This is primarily useful to ensure the upgrade does not end up rebuilding or re-downloading ``the world''."
  27154. msgstr ""
  27155. #. type: item
  27156. #: guix-git/doc/guix.texi:18122
  27157. #, fuzzy, no-wrap
  27158. msgid "@code{log-file} (default: @code{\"/var/log/unattended-upgrade.log\"})"
  27159. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  27160. #. type: table
  27161. #: guix-git/doc/guix.texi:18124
  27162. msgid "File where unattended upgrades are logged."
  27163. msgstr ""
  27164. #. type: cindex
  27165. #: guix-git/doc/guix.texi:18130
  27166. #, no-wrap
  27167. msgid "X11"
  27168. msgstr ""
  27169. #. type: cindex
  27170. #: guix-git/doc/guix.texi:18131
  27171. #, no-wrap
  27172. msgid "X Window System"
  27173. msgstr ""
  27174. #. type: cindex
  27175. #: guix-git/doc/guix.texi:18132 guix-git/doc/guix.texi:18392
  27176. #, no-wrap
  27177. msgid "login manager"
  27178. msgstr ""
  27179. #. type: Plain text
  27180. #: guix-git/doc/guix.texi:18137
  27181. 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)."
  27182. msgstr ""
  27183. #. type: cindex
  27184. #: guix-git/doc/guix.texi:18138
  27185. #, no-wrap
  27186. msgid "GDM"
  27187. msgstr ""
  27188. #. type: cindex
  27189. #: guix-git/doc/guix.texi:18139
  27190. #, no-wrap
  27191. msgid "GNOME, login manager"
  27192. msgstr ""
  27193. #. type: Plain text
  27194. #: guix-git/doc/guix.texi:18143
  27195. 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."
  27196. msgstr ""
  27197. #. type: cindex
  27198. #: guix-git/doc/guix.texi:18144
  27199. #, no-wrap
  27200. msgid "window manager"
  27201. msgstr ""
  27202. #. type: Plain text
  27203. #: guix-git/doc/guix.texi:18149
  27204. 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})."
  27205. msgstr ""
  27206. #. type: defvr
  27207. #: guix-git/doc/guix.texi:18150
  27208. #, no-wrap
  27209. msgid "{Scheme Variable} gdm-service-type"
  27210. msgstr ""
  27211. #. type: defvr
  27212. #: guix-git/doc/guix.texi:18155
  27213. 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)."
  27214. msgstr ""
  27215. #. type: cindex
  27216. #: guix-git/doc/guix.texi:18156
  27217. #, no-wrap
  27218. msgid "session types (X11)"
  27219. msgstr ""
  27220. #. type: cindex
  27221. #: guix-git/doc/guix.texi:18157
  27222. #, no-wrap
  27223. msgid "X11 session types"
  27224. msgstr ""
  27225. #. type: defvr
  27226. #: guix-git/doc/guix.texi:18163
  27227. msgid "GDM looks for @dfn{session types} described by the @file{.desktop} files in @file{/run/current-system/profile/share/xsessions} and allows users to choose a session from the log-in screen. Packages such as @code{gnome}, @code{xfce}, and @code{i3} provide @file{.desktop} files; adding them to the system-wide set of packages automatically makes them available at the log-in screen."
  27228. msgstr ""
  27229. #. type: defvr
  27230. #: guix-git/doc/guix.texi:18167
  27231. 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."
  27232. msgstr ""
  27233. #. type: deftp
  27234. #: guix-git/doc/guix.texi:18169
  27235. #, no-wrap
  27236. msgid "{Data Type} gdm-configuration"
  27237. msgstr ""
  27238. #. type: item
  27239. #: guix-git/doc/guix.texi:18171 guix-git/doc/guix.texi:18247
  27240. #, no-wrap
  27241. msgid "@code{auto-login?} (default: @code{#f})"
  27242. msgstr ""
  27243. #. type: itemx
  27244. #: guix-git/doc/guix.texi:18172
  27245. #, no-wrap
  27246. msgid "@code{default-user} (default: @code{#f})"
  27247. msgstr ""
  27248. #. type: table
  27249. #: guix-git/doc/guix.texi:18174
  27250. msgid "When @code{auto-login?} is false, GDM presents a log-in screen."
  27251. msgstr ""
  27252. #. type: table
  27253. #: guix-git/doc/guix.texi:18177
  27254. msgid "When @code{auto-login?} is true, GDM logs in directly as @code{default-user}."
  27255. msgstr ""
  27256. #. type: item
  27257. #: guix-git/doc/guix.texi:18178 guix-git/doc/guix.texi:24026
  27258. #: guix-git/doc/guix.texi:25735 guix-git/doc/guix.texi:30153
  27259. #: guix-git/doc/guix.texi:30182 guix-git/doc/guix.texi:30211
  27260. #: guix-git/doc/guix.texi:30238 guix-git/doc/guix.texi:30293
  27261. #: guix-git/doc/guix.texi:30318 guix-git/doc/guix.texi:30345
  27262. #: guix-git/doc/guix.texi:30371 guix-git/doc/guix.texi:30413
  27263. #, no-wrap
  27264. msgid "@code{debug?} (default: @code{#f})"
  27265. msgstr ""
  27266. #. type: table
  27267. #: guix-git/doc/guix.texi:18180
  27268. msgid "When true, GDM writes debug messages to its log."
  27269. msgstr ""
  27270. #. type: item
  27271. #: guix-git/doc/guix.texi:18181
  27272. #, no-wrap
  27273. msgid "@code{gnome-shell-assets} (default: ...)"
  27274. msgstr ""
  27275. #. type: table
  27276. #: guix-git/doc/guix.texi:18183
  27277. msgid "List of GNOME Shell assets needed by GDM: icon theme, fonts, etc."
  27278. msgstr ""
  27279. #. type: item
  27280. #: guix-git/doc/guix.texi:18184
  27281. #, no-wrap
  27282. msgid "@code{xorg-configuration} (default: @code{(xorg-configuration)})"
  27283. msgstr ""
  27284. #. type: table
  27285. #: guix-git/doc/guix.texi:18186 guix-git/doc/guix.texi:18274
  27286. #: guix-git/doc/guix.texi:18358
  27287. msgid "Configuration of the Xorg graphical server."
  27288. msgstr ""
  27289. #. type: item
  27290. #: guix-git/doc/guix.texi:18187
  27291. #, no-wrap
  27292. msgid "@code{xsession} (default: @code{(xinitrc)})"
  27293. msgstr ""
  27294. #. type: table
  27295. #: guix-git/doc/guix.texi:18189 guix-git/doc/guix.texi:18373
  27296. msgid "Script to run before starting a X session."
  27297. msgstr ""
  27298. #. type: item
  27299. #: guix-git/doc/guix.texi:18190
  27300. #, no-wrap
  27301. msgid "@code{dbus-daemon} (default: @code{dbus-daemon-wrapper})"
  27302. msgstr ""
  27303. #. type: table
  27304. #: guix-git/doc/guix.texi:18192
  27305. msgid "File name of the @code{dbus-daemon} executable."
  27306. msgstr ""
  27307. #. type: item
  27308. #: guix-git/doc/guix.texi:18193
  27309. #, no-wrap
  27310. msgid "@code{gdm} (default: @code{gdm})"
  27311. msgstr ""
  27312. #. type: table
  27313. #: guix-git/doc/guix.texi:18195
  27314. msgid "The GDM package to use."
  27315. msgstr ""
  27316. #. type: defvr
  27317. #: guix-git/doc/guix.texi:18198
  27318. #, no-wrap
  27319. msgid "{Scheme Variable} slim-service-type"
  27320. msgstr ""
  27321. #. type: defvr
  27322. #: guix-git/doc/guix.texi:18200
  27323. msgid "This is the type for the SLiM graphical login manager for X11."
  27324. msgstr ""
  27325. #. type: defvr
  27326. #: guix-git/doc/guix.texi:18204
  27327. 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."
  27328. msgstr ""
  27329. #. type: defvr
  27330. #: guix-git/doc/guix.texi:18211
  27331. 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."
  27332. msgstr ""
  27333. #. type: lisp
  27334. #: guix-git/doc/guix.texi:18217
  27335. #, no-wrap
  27336. msgid ""
  27337. "(use-modules (gnu services)\n"
  27338. " (gnu services desktop)\n"
  27339. " (gnu services xorg)\n"
  27340. " (srfi srfi-1)) ;for 'remove'\n"
  27341. "\n"
  27342. msgstr ""
  27343. #. type: lisp
  27344. #: guix-git/doc/guix.texi:18228
  27345. #, no-wrap
  27346. msgid ""
  27347. "(operating-system\n"
  27348. " ;; ...\n"
  27349. " (services (cons* (service slim-service-type (slim-configuration\n"
  27350. " (display \":0\")\n"
  27351. " (vt \"vt7\")))\n"
  27352. " (service slim-service-type (slim-configuration\n"
  27353. " (display \":1\")\n"
  27354. " (vt \"vt8\")))\n"
  27355. " (modify-services %desktop-services\n"
  27356. " (delete gdm-service-type)))))\n"
  27357. msgstr ""
  27358. #. type: deftp
  27359. #: guix-git/doc/guix.texi:18232
  27360. #, no-wrap
  27361. msgid "{Data Type} slim-configuration"
  27362. msgstr ""
  27363. #. type: deftp
  27364. #: guix-git/doc/guix.texi:18234
  27365. msgid "Data type representing the configuration of @code{slim-service-type}."
  27366. msgstr ""
  27367. #. type: table
  27368. #: guix-git/doc/guix.texi:18238
  27369. msgid "Whether to allow logins with empty passwords."
  27370. msgstr ""
  27371. #. type: item
  27372. #: guix-git/doc/guix.texi:18239
  27373. #, fuzzy, no-wrap
  27374. msgid "@code{gnupg?} (default: @code{#f})"
  27375. msgstr "@code{challenge}(默认值:@code{#f})"
  27376. #. type: table
  27377. #: guix-git/doc/guix.texi:18246
  27378. 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}."
  27379. msgstr ""
  27380. #. type: itemx
  27381. #: guix-git/doc/guix.texi:18248
  27382. #, no-wrap
  27383. msgid "@code{default-user} (default: @code{\"\"})"
  27384. msgstr ""
  27385. #. type: table
  27386. #: guix-git/doc/guix.texi:18250
  27387. msgid "When @code{auto-login?} is false, SLiM presents a log-in screen."
  27388. msgstr ""
  27389. #. type: table
  27390. #: guix-git/doc/guix.texi:18253
  27391. msgid "When @code{auto-login?} is true, SLiM logs in directly as @code{default-user}."
  27392. msgstr ""
  27393. #. type: item
  27394. #: guix-git/doc/guix.texi:18254
  27395. #, no-wrap
  27396. msgid "@code{theme} (default: @code{%default-slim-theme})"
  27397. msgstr ""
  27398. #. type: itemx
  27399. #: guix-git/doc/guix.texi:18255
  27400. #, no-wrap
  27401. msgid "@code{theme-name} (default: @code{%default-slim-theme-name})"
  27402. msgstr ""
  27403. #. type: table
  27404. #: guix-git/doc/guix.texi:18257
  27405. msgid "The graphical theme to use and its name."
  27406. msgstr ""
  27407. #. type: item
  27408. #: guix-git/doc/guix.texi:18258
  27409. #, no-wrap
  27410. msgid "@code{auto-login-session} (default: @code{#f})"
  27411. msgstr ""
  27412. #. type: table
  27413. #: guix-git/doc/guix.texi:18261
  27414. 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\")}."
  27415. msgstr ""
  27416. #. type: table
  27417. #: guix-git/doc/guix.texi:18265
  27418. 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."
  27419. msgstr ""
  27420. #. type: quotation
  27421. #: guix-git/doc/guix.texi:18270
  27422. 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."
  27423. msgstr ""
  27424. #. type: item
  27425. #: guix-git/doc/guix.texi:18272 guix-git/doc/guix.texi:18356
  27426. #, no-wrap
  27427. msgid "@code{xorg-configuration} (default @code{(xorg-configuration)})"
  27428. msgstr ""
  27429. #. type: item
  27430. #: guix-git/doc/guix.texi:18275
  27431. #, no-wrap
  27432. msgid "@code{display} (default @code{\":0\"})"
  27433. msgstr "@code{display}(默认值:@code{\":0\"})"
  27434. #. type: table
  27435. #: guix-git/doc/guix.texi:18277
  27436. msgid "The display on which to start the Xorg graphical server."
  27437. msgstr ""
  27438. #. type: item
  27439. #: guix-git/doc/guix.texi:18278
  27440. #, no-wrap
  27441. msgid "@code{vt} (default @code{\"vt7\"})"
  27442. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  27443. #. type: table
  27444. #: guix-git/doc/guix.texi:18280
  27445. msgid "The VT on which to start the Xorg graphical server."
  27446. msgstr ""
  27447. #. type: item
  27448. #: guix-git/doc/guix.texi:18281
  27449. #, no-wrap
  27450. msgid "@code{xauth} (default: @code{xauth})"
  27451. msgstr ""
  27452. #. type: table
  27453. #: guix-git/doc/guix.texi:18283
  27454. msgid "The XAuth package to use."
  27455. msgstr ""
  27456. #. type: item
  27457. #: guix-git/doc/guix.texi:18284
  27458. #, no-wrap
  27459. msgid "@code{shepherd} (default: @code{shepherd})"
  27460. msgstr ""
  27461. #. type: table
  27462. #: guix-git/doc/guix.texi:18287
  27463. msgid "The Shepherd package used when invoking @command{halt} and @command{reboot}."
  27464. msgstr ""
  27465. #. type: item
  27466. #: guix-git/doc/guix.texi:18288
  27467. #, no-wrap
  27468. msgid "@code{sessreg} (default: @code{sessreg})"
  27469. msgstr ""
  27470. #. type: table
  27471. #: guix-git/doc/guix.texi:18290
  27472. msgid "The sessreg package used in order to register the session."
  27473. msgstr ""
  27474. #. type: item
  27475. #: guix-git/doc/guix.texi:18291
  27476. #, no-wrap
  27477. msgid "@code{slim} (default: @code{slim})"
  27478. msgstr ""
  27479. #. type: table
  27480. #: guix-git/doc/guix.texi:18293
  27481. msgid "The SLiM package to use."
  27482. msgstr ""
  27483. #. type: defvr
  27484. #: guix-git/doc/guix.texi:18296
  27485. #, no-wrap
  27486. msgid "{Scheme Variable} %default-theme"
  27487. msgstr ""
  27488. #. type: defvrx
  27489. #: guix-git/doc/guix.texi:18297
  27490. #, no-wrap
  27491. msgid "{Scheme Variable} %default-theme-name"
  27492. msgstr ""
  27493. #. type: defvr
  27494. #: guix-git/doc/guix.texi:18299
  27495. msgid "The default SLiM theme and its name."
  27496. msgstr ""
  27497. #. type: deftp
  27498. #: guix-git/doc/guix.texi:18302 guix-git/doc/guix.texi:18409
  27499. #, no-wrap
  27500. msgid "{Data Type} sddm-configuration"
  27501. msgstr ""
  27502. #. type: deftp
  27503. #: guix-git/doc/guix.texi:18304
  27504. msgid "This is the data type representing the SDDM service configuration."
  27505. msgstr ""
  27506. #. type: item
  27507. #: guix-git/doc/guix.texi:18306
  27508. #, no-wrap
  27509. msgid "@code{display-server} (default: \"x11\")"
  27510. msgstr ""
  27511. #. type: table
  27512. #: guix-git/doc/guix.texi:18309
  27513. msgid "Select display server to use for the greeter. Valid values are @samp{\"x11\"} or @samp{\"wayland\"}."
  27514. msgstr ""
  27515. #. type: item
  27516. #: guix-git/doc/guix.texi:18310
  27517. #, no-wrap
  27518. msgid "@code{numlock} (default: \"on\")"
  27519. msgstr ""
  27520. #. type: table
  27521. #: guix-git/doc/guix.texi:18312
  27522. msgid "Valid values are @samp{\"on\"}, @samp{\"off\"} or @samp{\"none\"}."
  27523. msgstr ""
  27524. #. type: item
  27525. #: guix-git/doc/guix.texi:18313
  27526. #, no-wrap
  27527. msgid "@code{halt-command} (default @code{#~(string-apppend #$shepherd \"/sbin/halt\")})"
  27528. msgstr ""
  27529. #. type: table
  27530. #: guix-git/doc/guix.texi:18315
  27531. msgid "Command to run when halting."
  27532. msgstr ""
  27533. #. type: item
  27534. #: guix-git/doc/guix.texi:18316
  27535. #, no-wrap
  27536. msgid "@code{reboot-command} (default @code{#~(string-append #$shepherd \"/sbin/reboot\")})"
  27537. msgstr ""
  27538. #. type: table
  27539. #: guix-git/doc/guix.texi:18318
  27540. msgid "Command to run when rebooting."
  27541. msgstr ""
  27542. #. type: item
  27543. #: guix-git/doc/guix.texi:18319
  27544. #, no-wrap
  27545. msgid "@code{theme} (default \"maldives\")"
  27546. msgstr ""
  27547. #. type: table
  27548. #: guix-git/doc/guix.texi:18322
  27549. msgid "Theme to use. Default themes provided by SDDM are @samp{\"elarun\"}, @samp{\"maldives\"} or @samp{\"maya\"}."
  27550. msgstr ""
  27551. #. type: item
  27552. #: guix-git/doc/guix.texi:18323
  27553. #, no-wrap
  27554. msgid "@code{themes-directory} (default \"/run/current-system/profile/share/sddm/themes\")"
  27555. msgstr ""
  27556. #. type: table
  27557. #: guix-git/doc/guix.texi:18325
  27558. msgid "Directory to look for themes."
  27559. msgstr ""
  27560. #. type: item
  27561. #: guix-git/doc/guix.texi:18326
  27562. #, no-wrap
  27563. msgid "@code{faces-directory} (default \"/run/current-system/profile/share/sddm/faces\")"
  27564. msgstr ""
  27565. #. type: table
  27566. #: guix-git/doc/guix.texi:18328
  27567. msgid "Directory to look for faces."
  27568. msgstr ""
  27569. #. type: item
  27570. #: guix-git/doc/guix.texi:18329
  27571. #, no-wrap
  27572. msgid "@code{default-path} (default \"/run/current-system/profile/bin\")"
  27573. msgstr ""
  27574. #. type: table
  27575. #: guix-git/doc/guix.texi:18331
  27576. msgid "Default PATH to use."
  27577. msgstr ""
  27578. #. type: item
  27579. #: guix-git/doc/guix.texi:18332
  27580. #, fuzzy, no-wrap
  27581. msgid "@code{minimum-uid} (default: 1000)"
  27582. msgstr "@code{includes}(默认值:@code{'()})"
  27583. #. type: table
  27584. #: guix-git/doc/guix.texi:18334
  27585. msgid "Minimum UID displayed in SDDM and allowed for log-in."
  27586. msgstr ""
  27587. #. type: item
  27588. #: guix-git/doc/guix.texi:18335
  27589. #, fuzzy, no-wrap
  27590. msgid "@code{maximum-uid} (default: 2000)"
  27591. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  27592. #. type: table
  27593. #: guix-git/doc/guix.texi:18337
  27594. msgid "Maximum UID to display in SDDM."
  27595. msgstr ""
  27596. #. type: item
  27597. #: guix-git/doc/guix.texi:18338
  27598. #, no-wrap
  27599. msgid "@code{remember-last-user?} (default #t)"
  27600. msgstr ""
  27601. #. type: table
  27602. #: guix-git/doc/guix.texi:18340
  27603. msgid "Remember last user."
  27604. msgstr ""
  27605. #. type: item
  27606. #: guix-git/doc/guix.texi:18341
  27607. #, no-wrap
  27608. msgid "@code{remember-last-session?} (default #t)"
  27609. msgstr ""
  27610. #. type: table
  27611. #: guix-git/doc/guix.texi:18343
  27612. msgid "Remember last session."
  27613. msgstr ""
  27614. #. type: item
  27615. #: guix-git/doc/guix.texi:18344
  27616. #, no-wrap
  27617. msgid "@code{hide-users} (default \"\")"
  27618. msgstr ""
  27619. #. type: table
  27620. #: guix-git/doc/guix.texi:18346
  27621. msgid "Usernames to hide from SDDM greeter."
  27622. msgstr ""
  27623. #. type: item
  27624. #: guix-git/doc/guix.texi:18347
  27625. #, no-wrap
  27626. msgid "@code{hide-shells} (default @code{#~(string-append #$shadow \"/sbin/nologin\")})"
  27627. msgstr ""
  27628. #. type: table
  27629. #: guix-git/doc/guix.texi:18349
  27630. msgid "Users with shells listed will be hidden from the SDDM greeter."
  27631. msgstr ""
  27632. #. type: item
  27633. #: guix-git/doc/guix.texi:18350
  27634. #, no-wrap
  27635. msgid "@code{session-command} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/wayland-session\")})"
  27636. msgstr ""
  27637. #. type: table
  27638. #: guix-git/doc/guix.texi:18352
  27639. msgid "Script to run before starting a wayland session."
  27640. msgstr ""
  27641. #. type: item
  27642. #: guix-git/doc/guix.texi:18353
  27643. #, no-wrap
  27644. msgid "@code{sessions-directory} (default \"/run/current-system/profile/share/wayland-sessions\")"
  27645. msgstr ""
  27646. #. type: table
  27647. #: guix-git/doc/guix.texi:18355
  27648. msgid "Directory to look for desktop files starting wayland sessions."
  27649. msgstr ""
  27650. #. type: item
  27651. #: guix-git/doc/guix.texi:18359
  27652. #, no-wrap
  27653. msgid "@code{xauth-path} (default @code{#~(string-append #$xauth \"/bin/xauth\")})"
  27654. msgstr ""
  27655. #. type: table
  27656. #: guix-git/doc/guix.texi:18361
  27657. msgid "Path to xauth."
  27658. msgstr ""
  27659. #. type: item
  27660. #: guix-git/doc/guix.texi:18362
  27661. #, no-wrap
  27662. msgid "@code{xephyr-path} (default @code{#~(string-append #$xorg-server \"/bin/Xephyr\")})"
  27663. msgstr ""
  27664. #. type: table
  27665. #: guix-git/doc/guix.texi:18364
  27666. msgid "Path to Xephyr."
  27667. msgstr ""
  27668. #. type: item
  27669. #: guix-git/doc/guix.texi:18365
  27670. #, no-wrap
  27671. msgid "@code{xdisplay-start} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xsetup\")})"
  27672. msgstr ""
  27673. #. type: table
  27674. #: guix-git/doc/guix.texi:18367
  27675. msgid "Script to run after starting xorg-server."
  27676. msgstr ""
  27677. #. type: item
  27678. #: guix-git/doc/guix.texi:18368
  27679. #, no-wrap
  27680. msgid "@code{xdisplay-stop} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xstop\")})"
  27681. msgstr ""
  27682. #. type: table
  27683. #: guix-git/doc/guix.texi:18370
  27684. msgid "Script to run before stopping xorg-server."
  27685. msgstr ""
  27686. #. type: item
  27687. #: guix-git/doc/guix.texi:18371
  27688. #, no-wrap
  27689. msgid "@code{xsession-command} (default: @code{xinitrc})"
  27690. msgstr ""
  27691. #. type: item
  27692. #: guix-git/doc/guix.texi:18374
  27693. #, no-wrap
  27694. msgid "@code{xsessions-directory} (default: \"/run/current-system/profile/share/xsessions\")"
  27695. msgstr ""
  27696. #. type: table
  27697. #: guix-git/doc/guix.texi:18376
  27698. msgid "Directory to look for desktop files starting X sessions."
  27699. msgstr ""
  27700. #. type: item
  27701. #: guix-git/doc/guix.texi:18377
  27702. #, no-wrap
  27703. msgid "@code{minimum-vt} (default: 7)"
  27704. msgstr ""
  27705. #. type: table
  27706. #: guix-git/doc/guix.texi:18379
  27707. msgid "Minimum VT to use."
  27708. msgstr ""
  27709. #. type: item
  27710. #: guix-git/doc/guix.texi:18380
  27711. #, no-wrap
  27712. msgid "@code{auto-login-user} (default \"\")"
  27713. msgstr ""
  27714. #. type: table
  27715. #: guix-git/doc/guix.texi:18382
  27716. msgid "User to use for auto-login."
  27717. msgstr ""
  27718. #. type: item
  27719. #: guix-git/doc/guix.texi:18383
  27720. #, no-wrap
  27721. msgid "@code{auto-login-session} (default \"\")"
  27722. msgstr ""
  27723. #. type: table
  27724. #: guix-git/doc/guix.texi:18385
  27725. msgid "Desktop file to use for auto-login."
  27726. msgstr ""
  27727. #. type: item
  27728. #: guix-git/doc/guix.texi:18386
  27729. #, no-wrap
  27730. msgid "@code{relogin?} (default #f)"
  27731. msgstr ""
  27732. #. type: table
  27733. #: guix-git/doc/guix.texi:18388
  27734. msgid "Relogin after logout."
  27735. msgstr ""
  27736. #. type: cindex
  27737. #: guix-git/doc/guix.texi:18393
  27738. #, no-wrap
  27739. msgid "X11 login"
  27740. msgstr ""
  27741. #. type: defvr
  27742. #: guix-git/doc/guix.texi:18394
  27743. #, no-wrap
  27744. msgid "{Scheme Variable} sddm-service-type"
  27745. msgstr ""
  27746. #. type: defvr
  27747. #: guix-git/doc/guix.texi:18398
  27748. 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)."
  27749. msgstr ""
  27750. #. type: defvr
  27751. #: guix-git/doc/guix.texi:18400
  27752. msgid "Here's an example use:"
  27753. msgstr ""
  27754. #. type: lisp
  27755. #: guix-git/doc/guix.texi:18406
  27756. #, no-wrap
  27757. msgid ""
  27758. "(service sddm-service-type\n"
  27759. " (sddm-configuration\n"
  27760. " (auto-login-user \"alice\")\n"
  27761. " (auto-login-session \"xfce.desktop\")))\n"
  27762. msgstr ""
  27763. #. type: deftp
  27764. #: guix-git/doc/guix.texi:18412
  27765. #, fuzzy
  27766. msgid "This data type represents the configuration of the SDDM login manager. The available fields are:"
  27767. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  27768. #. type: item
  27769. #: guix-git/doc/guix.texi:18414
  27770. #, fuzzy, no-wrap
  27771. msgid "@code{sddm} (default: @code{sddm})"
  27772. msgstr "@code{speed}(默认值:@code{1.0})"
  27773. #. type: table
  27774. #: guix-git/doc/guix.texi:18416
  27775. #, fuzzy
  27776. msgid "The SDDM package to use."
  27777. msgstr "软件包数据类型。"
  27778. #. type: item
  27779. #: guix-git/doc/guix.texi:18417
  27780. #, fuzzy, no-wrap
  27781. msgid "@code{display-server} (default: @code{\"x11\"})"
  27782. msgstr "@code{display}(默认值:@code{\":0\"})"
  27783. #. type: table
  27784. #: guix-git/doc/guix.texi:18419
  27785. msgid "This must be either @code{\"x11\"} or @code{\"wayland\"}."
  27786. msgstr ""
  27787. #. type: item
  27788. #: guix-git/doc/guix.texi:18422
  27789. #, fuzzy, no-wrap
  27790. msgid "@code{auto-login-user} (default: @code{\"\"})"
  27791. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  27792. #. type: table
  27793. #: guix-git/doc/guix.texi:18425
  27794. msgid "If non-empty, this is the user account under which to log in automatically."
  27795. msgstr ""
  27796. #. type: item
  27797. #: guix-git/doc/guix.texi:18426
  27798. #, fuzzy, no-wrap
  27799. msgid "@code{auto-login-session} (default: @code{\"\"})"
  27800. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  27801. #. type: table
  27802. #: guix-git/doc/guix.texi:18429
  27803. msgid "If non-empty, this is the @file{.desktop} file name to use as the auto-login session."
  27804. msgstr ""
  27805. #. type: cindex
  27806. #: guix-git/doc/guix.texi:18432
  27807. #, no-wrap
  27808. msgid "Xorg, configuration"
  27809. msgstr ""
  27810. #. type: deftp
  27811. #: guix-git/doc/guix.texi:18433
  27812. #, no-wrap
  27813. msgid "{Data Type} xorg-configuration"
  27814. msgstr ""
  27815. #. type: deftp
  27816. #: guix-git/doc/guix.texi:18438
  27817. 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."
  27818. msgstr ""
  27819. #. type: item
  27820. #: guix-git/doc/guix.texi:18440
  27821. #, no-wrap
  27822. msgid "@code{modules} (default: @code{%default-xorg-modules})"
  27823. msgstr ""
  27824. #. type: table
  27825. #: guix-git/doc/guix.texi:18443
  27826. 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."
  27827. msgstr ""
  27828. #. type: item
  27829. #: guix-git/doc/guix.texi:18444
  27830. #, no-wrap
  27831. msgid "@code{fonts} (default: @code{%default-xorg-fonts})"
  27832. msgstr ""
  27833. #. type: table
  27834. #: guix-git/doc/guix.texi:18446
  27835. msgid "This is a list of font directories to add to the server's @dfn{font path}."
  27836. msgstr ""
  27837. #. type: item
  27838. #: guix-git/doc/guix.texi:18447
  27839. #, no-wrap
  27840. msgid "@code{drivers} (default: @code{'()})"
  27841. msgstr ""
  27842. #. type: table
  27843. #: guix-git/doc/guix.texi:18451
  27844. 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\")}."
  27845. msgstr ""
  27846. #. type: item
  27847. #: guix-git/doc/guix.texi:18452
  27848. #, no-wrap
  27849. msgid "@code{resolutions} (default: @code{'()})"
  27850. msgstr ""
  27851. #. type: table
  27852. #: guix-git/doc/guix.texi:18456
  27853. 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))}."
  27854. msgstr ""
  27855. #. type: cindex
  27856. #: guix-git/doc/guix.texi:18457
  27857. #, no-wrap
  27858. msgid "keyboard layout, for Xorg"
  27859. msgstr ""
  27860. #. type: cindex
  27861. #: guix-git/doc/guix.texi:18458
  27862. #, no-wrap
  27863. msgid "keymap, for Xorg"
  27864. msgstr ""
  27865. #. type: table
  27866. #: guix-git/doc/guix.texi:18462
  27867. msgid "If this is @code{#f}, Xorg uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  27868. msgstr ""
  27869. #. type: table
  27870. #: guix-git/doc/guix.texi:18466
  27871. 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."
  27872. msgstr ""
  27873. #. type: item
  27874. #: guix-git/doc/guix.texi:18467 guix-git/doc/guix.texi:20172
  27875. #: guix-git/doc/guix.texi:32929
  27876. #, no-wrap
  27877. msgid "@code{extra-config} (default: @code{'()})"
  27878. msgstr ""
  27879. #. type: table
  27880. #: guix-git/doc/guix.texi:18470 guix-git/doc/guix.texi:32933
  27881. 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."
  27882. msgstr ""
  27883. #. type: item
  27884. #: guix-git/doc/guix.texi:18471
  27885. #, no-wrap
  27886. msgid "@code{server} (default: @code{xorg-server})"
  27887. msgstr ""
  27888. #. type: table
  27889. #: guix-git/doc/guix.texi:18473
  27890. msgid "This is the package providing the Xorg server."
  27891. msgstr ""
  27892. #. type: item
  27893. #: guix-git/doc/guix.texi:18474
  27894. #, no-wrap
  27895. msgid "@code{server-arguments} (default: @code{%default-xorg-server-arguments})"
  27896. msgstr ""
  27897. #. type: table
  27898. #: guix-git/doc/guix.texi:18477
  27899. msgid "This is the list of command-line arguments to pass to the X server. The default is @code{-nolisten tcp}."
  27900. msgstr ""
  27901. #. type: deffn
  27902. #: guix-git/doc/guix.texi:18480
  27903. #, no-wrap
  27904. msgid "{Scheme Procedure} set-xorg-configuration @var{config} @"
  27905. msgstr ""
  27906. #. type: deffn
  27907. #: guix-git/doc/guix.texi:18484
  27908. 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."
  27909. msgstr ""
  27910. #. type: deffn
  27911. #: guix-git/doc/guix.texi:18488
  27912. 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."
  27913. msgstr ""
  27914. #. type: deffn
  27915. #: guix-git/doc/guix.texi:18490
  27916. #, no-wrap
  27917. msgid "{Scheme Procedure} xorg-start-command [@var{config}]"
  27918. msgstr ""
  27919. #. type: deffn
  27920. #: guix-git/doc/guix.texi:18494
  27921. 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}."
  27922. msgstr ""
  27923. #. type: deffn
  27924. #: guix-git/doc/guix.texi:18496
  27925. msgid "Usually the X server is started by a login manager."
  27926. msgstr ""
  27927. #. type: deffn
  27928. #: guix-git/doc/guix.texi:18499
  27929. #, no-wrap
  27930. msgid "{Scheme Procedure} screen-locker-service @var{package} [@var{program}]"
  27931. msgstr ""
  27932. #. type: deffn
  27933. #: guix-git/doc/guix.texi:18503
  27934. 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:"
  27935. msgstr ""
  27936. #. type: lisp
  27937. #: guix-git/doc/guix.texi:18506
  27938. #, no-wrap
  27939. msgid "(screen-locker-service xlockmore \"xlock\")\n"
  27940. msgstr ""
  27941. #. type: deffn
  27942. #: guix-git/doc/guix.texi:18509
  27943. msgid "makes the good ol' XlockMore usable."
  27944. msgstr ""
  27945. #. type: cindex
  27946. #: guix-git/doc/guix.texi:18515
  27947. #, no-wrap
  27948. msgid "printer support with CUPS"
  27949. msgstr ""
  27950. #. type: Plain text
  27951. #: guix-git/doc/guix.texi:18519
  27952. 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:"
  27953. msgstr ""
  27954. #. type: deffn
  27955. #: guix-git/doc/guix.texi:18520
  27956. #, no-wrap
  27957. msgid "{Scheme Variable} cups-service-type"
  27958. msgstr ""
  27959. #. type: deffn
  27960. #: guix-git/doc/guix.texi:18524
  27961. 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:"
  27962. msgstr ""
  27963. #. type: lisp
  27964. #: guix-git/doc/guix.texi:18526
  27965. #, no-wrap
  27966. msgid "(service cups-service-type)\n"
  27967. msgstr ""
  27968. #. type: Plain text
  27969. #: guix-git/doc/guix.texi:18536
  27970. 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."
  27971. msgstr ""
  27972. #. type: Plain text
  27973. #: guix-git/doc/guix.texi:18542
  27974. 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):"
  27975. msgstr ""
  27976. #. type: lisp
  27977. #: guix-git/doc/guix.texi:18549
  27978. #, no-wrap
  27979. msgid ""
  27980. "(service cups-service-type\n"
  27981. " (cups-configuration\n"
  27982. " (web-interface? #t)\n"
  27983. " (extensions\n"
  27984. " (list cups-filters epson-inkjet-printer-escpr hplip-minimal))))\n"
  27985. msgstr ""
  27986. #. type: Plain text
  27987. #: guix-git/doc/guix.texi:18554
  27988. 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."
  27989. msgstr ""
  27990. #. type: Plain text
  27991. #: guix-git/doc/guix.texi:18561
  27992. 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."
  27993. msgstr ""
  27994. #. type: Plain text
  27995. #: guix-git/doc/guix.texi:18572
  27996. msgid "Available @code{cups-configuration} fields are:"
  27997. msgstr ""
  27998. #. type: deftypevr
  27999. #: guix-git/doc/guix.texi:18573
  28000. #, no-wrap
  28001. msgid "{@code{cups-configuration} parameter} package cups"
  28002. msgstr ""
  28003. #. type: deftypevr
  28004. #: guix-git/doc/guix.texi:18575 guix-git/doc/guix.texi:19337
  28005. msgid "The CUPS package."
  28006. msgstr ""
  28007. #. type: deftypevr
  28008. #: guix-git/doc/guix.texi:18577
  28009. #, no-wrap
  28010. msgid "{@code{cups-configuration} parameter} package-list extensions (default: @code{(list brlaser cups-filters epson-inkjet-printer-escpr foomatic-filters hplip-minimal splix)})"
  28011. msgstr ""
  28012. #. type: deftypevr
  28013. #: guix-git/doc/guix.texi:18579
  28014. msgid "Drivers and other extensions to the CUPS package."
  28015. msgstr ""
  28016. #. type: deftypevr
  28017. #: guix-git/doc/guix.texi:18581
  28018. #, no-wrap
  28019. msgid "{@code{cups-configuration} parameter} files-configuration files-configuration"
  28020. msgstr ""
  28021. #. type: deftypevr
  28022. #: guix-git/doc/guix.texi:18584
  28023. msgid "Configuration of where to write logs, what directories to use for print spools, and related privileged configuration parameters."
  28024. msgstr ""
  28025. #. type: deftypevr
  28026. #: guix-git/doc/guix.texi:18586
  28027. msgid "Available @code{files-configuration} fields are:"
  28028. msgstr ""
  28029. #. type: deftypevr
  28030. #: guix-git/doc/guix.texi:18587
  28031. #, no-wrap
  28032. msgid "{@code{files-configuration} parameter} log-location access-log"
  28033. msgstr ""
  28034. #. type: deftypevr
  28035. #: guix-git/doc/guix.texi:18595
  28036. 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}."
  28037. msgstr ""
  28038. #. type: deftypevr
  28039. #: guix-git/doc/guix.texi:18597
  28040. msgid "Defaults to @samp{\"/var/log/cups/access_log\"}."
  28041. msgstr ""
  28042. #. type: deftypevr
  28043. #: guix-git/doc/guix.texi:18599
  28044. #, no-wrap
  28045. msgid "{@code{files-configuration} parameter} file-name cache-dir"
  28046. msgstr ""
  28047. #. type: deftypevr
  28048. #: guix-git/doc/guix.texi:18601
  28049. msgid "Where CUPS should cache data."
  28050. msgstr ""
  28051. #. type: deftypevr
  28052. #: guix-git/doc/guix.texi:18603
  28053. msgid "Defaults to @samp{\"/var/cache/cups\"}."
  28054. msgstr ""
  28055. #. type: deftypevr
  28056. #: guix-git/doc/guix.texi:18605
  28057. #, no-wrap
  28058. msgid "{@code{files-configuration} parameter} string config-file-perm"
  28059. msgstr ""
  28060. #. type: deftypevr
  28061. #: guix-git/doc/guix.texi:18608
  28062. msgid "Specifies the permissions for all configuration files that the scheduler writes."
  28063. msgstr ""
  28064. #. type: deftypevr
  28065. #: guix-git/doc/guix.texi:18614
  28066. 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."
  28067. msgstr ""
  28068. #. type: deftypevr
  28069. #: guix-git/doc/guix.texi:18616
  28070. msgid "Defaults to @samp{\"0640\"}."
  28071. msgstr ""
  28072. #. type: deftypevr
  28073. #: guix-git/doc/guix.texi:18618
  28074. #, no-wrap
  28075. msgid "{@code{files-configuration} parameter} log-location error-log"
  28076. msgstr ""
  28077. #. type: deftypevr
  28078. #: guix-git/doc/guix.texi:18626
  28079. 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}."
  28080. msgstr ""
  28081. #. type: deftypevr
  28082. #: guix-git/doc/guix.texi:18628
  28083. msgid "Defaults to @samp{\"/var/log/cups/error_log\"}."
  28084. msgstr ""
  28085. #. type: deftypevr
  28086. #: guix-git/doc/guix.texi:18630
  28087. #, no-wrap
  28088. msgid "{@code{files-configuration} parameter} string fatal-errors"
  28089. msgstr ""
  28090. #. type: deftypevr
  28091. #: guix-git/doc/guix.texi:18633
  28092. msgid "Specifies which errors are fatal, causing the scheduler to exit. The kind strings are:"
  28093. msgstr ""
  28094. #. type: table
  28095. #: guix-git/doc/guix.texi:18637
  28096. msgid "No errors are fatal."
  28097. msgstr ""
  28098. #. type: table
  28099. #: guix-git/doc/guix.texi:18640
  28100. msgid "All of the errors below are fatal."
  28101. msgstr ""
  28102. #. type: item
  28103. #: guix-git/doc/guix.texi:18641
  28104. #, no-wrap
  28105. msgid "browse"
  28106. msgstr ""
  28107. #. type: table
  28108. #: guix-git/doc/guix.texi:18644
  28109. msgid "Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon."
  28110. msgstr ""
  28111. #. type: item
  28112. #: guix-git/doc/guix.texi:18645
  28113. #, no-wrap
  28114. msgid "config"
  28115. msgstr ""
  28116. #. type: table
  28117. #: guix-git/doc/guix.texi:18647
  28118. msgid "Configuration file syntax errors are fatal."
  28119. msgstr ""
  28120. #. type: item
  28121. #: guix-git/doc/guix.texi:18648
  28122. #, no-wrap
  28123. msgid "listen"
  28124. msgstr ""
  28125. #. type: table
  28126. #: guix-git/doc/guix.texi:18651
  28127. msgid "Listen or Port errors are fatal, except for IPv6 failures on the loopback or @code{any} addresses."
  28128. msgstr ""
  28129. #. type: item
  28130. #: guix-git/doc/guix.texi:18652
  28131. #, no-wrap
  28132. msgid "log"
  28133. msgstr ""
  28134. #. type: table
  28135. #: guix-git/doc/guix.texi:18654
  28136. msgid "Log file creation or write errors are fatal."
  28137. msgstr ""
  28138. #. type: item
  28139. #: guix-git/doc/guix.texi:18655
  28140. #, no-wrap
  28141. msgid "permissions"
  28142. msgstr ""
  28143. #. type: table
  28144. #: guix-git/doc/guix.texi:18658
  28145. msgid "Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions."
  28146. msgstr ""
  28147. #. type: deftypevr
  28148. #: guix-git/doc/guix.texi:18661
  28149. msgid "Defaults to @samp{\"all -browse\"}."
  28150. msgstr ""
  28151. #. type: deftypevr
  28152. #: guix-git/doc/guix.texi:18663
  28153. #, no-wrap
  28154. msgid "{@code{files-configuration} parameter} boolean file-device?"
  28155. msgstr ""
  28156. #. type: deftypevr
  28157. #: guix-git/doc/guix.texi:18666
  28158. msgid "Specifies whether the file pseudo-device can be used for new printer queues. The URI @uref{file:///dev/null} is always allowed."
  28159. msgstr ""
  28160. #. type: deftypevr
  28161. #: guix-git/doc/guix.texi:18670
  28162. #, no-wrap
  28163. msgid "{@code{files-configuration} parameter} string group"
  28164. msgstr ""
  28165. #. type: deftypevr
  28166. #: guix-git/doc/guix.texi:18673
  28167. msgid "Specifies the group name or ID that will be used when executing external programs."
  28168. msgstr ""
  28169. #. type: deftypevr
  28170. #: guix-git/doc/guix.texi:18675 guix-git/doc/guix.texi:18755
  28171. msgid "Defaults to @samp{\"lp\"}."
  28172. msgstr ""
  28173. #. type: deftypevr
  28174. #: guix-git/doc/guix.texi:18677
  28175. #, no-wrap
  28176. msgid "{@code{files-configuration} parameter} string log-file-perm"
  28177. msgstr ""
  28178. #. type: deftypevr
  28179. #: guix-git/doc/guix.texi:18679
  28180. msgid "Specifies the permissions for all log files that the scheduler writes."
  28181. msgstr ""
  28182. #. type: deftypevr
  28183. #: guix-git/doc/guix.texi:18681
  28184. msgid "Defaults to @samp{\"0644\"}."
  28185. msgstr ""
  28186. #. type: deftypevr
  28187. #: guix-git/doc/guix.texi:18683
  28188. #, no-wrap
  28189. msgid "{@code{files-configuration} parameter} log-location page-log"
  28190. msgstr ""
  28191. #. type: deftypevr
  28192. #: guix-git/doc/guix.texi:18691
  28193. 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}."
  28194. msgstr ""
  28195. #. type: deftypevr
  28196. #: guix-git/doc/guix.texi:18693
  28197. msgid "Defaults to @samp{\"/var/log/cups/page_log\"}."
  28198. msgstr ""
  28199. #. type: deftypevr
  28200. #: guix-git/doc/guix.texi:18695
  28201. #, no-wrap
  28202. msgid "{@code{files-configuration} parameter} string remote-root"
  28203. msgstr ""
  28204. #. type: deftypevr
  28205. #: guix-git/doc/guix.texi:18698
  28206. msgid "Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user. The default is @code{remroot}."
  28207. msgstr ""
  28208. #. type: deftypevr
  28209. #: guix-git/doc/guix.texi:18700
  28210. msgid "Defaults to @samp{\"remroot\"}."
  28211. msgstr ""
  28212. #. type: deftypevr
  28213. #: guix-git/doc/guix.texi:18702
  28214. #, no-wrap
  28215. msgid "{@code{files-configuration} parameter} file-name request-root"
  28216. msgstr ""
  28217. #. type: deftypevr
  28218. #: guix-git/doc/guix.texi:18705
  28219. msgid "Specifies the directory that contains print jobs and other HTTP request data."
  28220. msgstr ""
  28221. #. type: deftypevr
  28222. #: guix-git/doc/guix.texi:18707
  28223. msgid "Defaults to @samp{\"/var/spool/cups\"}."
  28224. msgstr ""
  28225. #. type: deftypevr
  28226. #: guix-git/doc/guix.texi:18709
  28227. #, no-wrap
  28228. msgid "{@code{files-configuration} parameter} sandboxing sandboxing"
  28229. msgstr ""
  28230. #. type: deftypevr
  28231. #: guix-git/doc/guix.texi:18714
  28232. 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."
  28233. msgstr ""
  28234. #. type: deftypevr
  28235. #: guix-git/doc/guix.texi:18716
  28236. msgid "Defaults to @samp{strict}."
  28237. msgstr ""
  28238. #. type: deftypevr
  28239. #: guix-git/doc/guix.texi:18718
  28240. #, no-wrap
  28241. msgid "{@code{files-configuration} parameter} file-name server-keychain"
  28242. msgstr ""
  28243. #. type: deftypevr
  28244. #: guix-git/doc/guix.texi:18723
  28245. 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."
  28246. msgstr ""
  28247. #. type: deftypevr
  28248. #: guix-git/doc/guix.texi:18725
  28249. msgid "Defaults to @samp{\"/etc/cups/ssl\"}."
  28250. msgstr ""
  28251. #. type: deftypevr
  28252. #: guix-git/doc/guix.texi:18727
  28253. #, no-wrap
  28254. msgid "{@code{files-configuration} parameter} file-name server-root"
  28255. msgstr ""
  28256. #. type: deftypevr
  28257. #: guix-git/doc/guix.texi:18729
  28258. msgid "Specifies the directory containing the server configuration files."
  28259. msgstr ""
  28260. #. type: deftypevr
  28261. #: guix-git/doc/guix.texi:18731
  28262. msgid "Defaults to @samp{\"/etc/cups\"}."
  28263. msgstr ""
  28264. #. type: deftypevr
  28265. #: guix-git/doc/guix.texi:18733
  28266. #, no-wrap
  28267. msgid "{@code{files-configuration} parameter} boolean sync-on-close?"
  28268. msgstr ""
  28269. #. type: deftypevr
  28270. #: guix-git/doc/guix.texi:18736
  28271. msgid "Specifies whether the scheduler calls fsync(2) after writing configuration or state files."
  28272. msgstr ""
  28273. #. type: deftypevr
  28274. #: guix-git/doc/guix.texi:18740
  28275. #, no-wrap
  28276. msgid "{@code{files-configuration} parameter} space-separated-string-list system-group"
  28277. msgstr ""
  28278. #. type: deftypevr
  28279. #: guix-git/doc/guix.texi:18742
  28280. msgid "Specifies the group(s) to use for @code{@@SYSTEM} group authentication."
  28281. msgstr ""
  28282. #. type: deftypevr
  28283. #: guix-git/doc/guix.texi:18744
  28284. #, no-wrap
  28285. msgid "{@code{files-configuration} parameter} file-name temp-dir"
  28286. msgstr ""
  28287. #. type: deftypevr
  28288. #: guix-git/doc/guix.texi:18746
  28289. msgid "Specifies the directory where temporary files are stored."
  28290. msgstr ""
  28291. #. type: deftypevr
  28292. #: guix-git/doc/guix.texi:18748
  28293. msgid "Defaults to @samp{\"/var/spool/cups/tmp\"}."
  28294. msgstr ""
  28295. #. type: deftypevr
  28296. #: guix-git/doc/guix.texi:18750
  28297. #, no-wrap
  28298. msgid "{@code{files-configuration} parameter} string user"
  28299. msgstr ""
  28300. #. type: deftypevr
  28301. #: guix-git/doc/guix.texi:18753
  28302. msgid "Specifies the user name or ID that is used when running external programs."
  28303. msgstr ""
  28304. #. type: deftypevr
  28305. #: guix-git/doc/guix.texi:18757
  28306. #, no-wrap
  28307. msgid "{@code{files-configuration} parameter} string set-env"
  28308. msgstr ""
  28309. #. type: deftypevr
  28310. #: guix-git/doc/guix.texi:18759
  28311. msgid "Set the specified environment variable to be passed to child processes."
  28312. msgstr ""
  28313. #. type: deftypevr
  28314. #: guix-git/doc/guix.texi:18761
  28315. msgid "Defaults to @samp{\"variable value\"}."
  28316. msgstr ""
  28317. #. type: deftypevr
  28318. #: guix-git/doc/guix.texi:18764
  28319. #, no-wrap
  28320. msgid "{@code{cups-configuration} parameter} access-log-level access-log-level"
  28321. msgstr ""
  28322. #. type: deftypevr
  28323. #: guix-git/doc/guix.texi:18771
  28324. 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."
  28325. msgstr ""
  28326. #. type: deftypevr
  28327. #: guix-git/doc/guix.texi:18773
  28328. msgid "Defaults to @samp{actions}."
  28329. msgstr ""
  28330. #. type: deftypevr
  28331. #: guix-git/doc/guix.texi:18775
  28332. #, no-wrap
  28333. msgid "{@code{cups-configuration} parameter} boolean auto-purge-jobs?"
  28334. msgstr ""
  28335. #. type: deftypevr
  28336. #: guix-git/doc/guix.texi:18778
  28337. msgid "Specifies whether to purge job history data automatically when it is no longer required for quotas."
  28338. msgstr ""
  28339. #. type: deftypevr
  28340. #: guix-git/doc/guix.texi:18782
  28341. #, no-wrap
  28342. msgid "{@code{cups-configuration} parameter} comma-separated-string-list browse-dns-sd-sub-types"
  28343. msgstr ""
  28344. #. type: deftypevr
  28345. #: guix-git/doc/guix.texi:18786
  28346. 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."
  28347. msgstr ""
  28348. #. type: deftypevr
  28349. #: guix-git/doc/guix.texi:18788
  28350. msgid "Defaults to @samp{\"_cups\"}."
  28351. msgstr ""
  28352. #. type: deftypevr
  28353. #: guix-git/doc/guix.texi:18790
  28354. #, no-wrap
  28355. msgid "{@code{cups-configuration} parameter} browse-local-protocols browse-local-protocols"
  28356. msgstr ""
  28357. #. type: deftypevr
  28358. #: guix-git/doc/guix.texi:18792
  28359. msgid "Specifies which protocols to use for local printer sharing."
  28360. msgstr ""
  28361. #. type: deftypevr
  28362. #: guix-git/doc/guix.texi:18794
  28363. msgid "Defaults to @samp{dnssd}."
  28364. msgstr ""
  28365. #. type: deftypevr
  28366. #: guix-git/doc/guix.texi:18796
  28367. #, no-wrap
  28368. msgid "{@code{cups-configuration} parameter} boolean browse-web-if?"
  28369. msgstr ""
  28370. #. type: deftypevr
  28371. #: guix-git/doc/guix.texi:18798
  28372. msgid "Specifies whether the CUPS web interface is advertised."
  28373. msgstr ""
  28374. #. type: deftypevr
  28375. #: guix-git/doc/guix.texi:18802
  28376. #, no-wrap
  28377. msgid "{@code{cups-configuration} parameter} boolean browsing?"
  28378. msgstr ""
  28379. #. type: deftypevr
  28380. #: guix-git/doc/guix.texi:18804
  28381. msgid "Specifies whether shared printers are advertised."
  28382. msgstr ""
  28383. #. type: deftypevr
  28384. #: guix-git/doc/guix.texi:18808
  28385. #, no-wrap
  28386. msgid "{@code{cups-configuration} parameter} string classification"
  28387. msgstr ""
  28388. #. type: deftypevr
  28389. #: guix-git/doc/guix.texi:18813
  28390. 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."
  28391. msgstr ""
  28392. #. type: deftypevr
  28393. #: guix-git/doc/guix.texi:18815 guix-git/doc/guix.texi:19146
  28394. #: guix-git/doc/guix.texi:21129 guix-git/doc/guix.texi:21141
  28395. #: guix-git/doc/guix.texi:21169 guix-git/doc/guix.texi:21926
  28396. #: guix-git/doc/guix.texi:21940 guix-git/doc/guix.texi:21947
  28397. #: guix-git/doc/guix.texi:21954 guix-git/doc/guix.texi:21984
  28398. #: guix-git/doc/guix.texi:22082 guix-git/doc/guix.texi:24201
  28399. #: guix-git/doc/guix.texi:24227 guix-git/doc/guix.texi:24263
  28400. #: guix-git/doc/guix.texi:24309 guix-git/doc/guix.texi:24328
  28401. #: guix-git/doc/guix.texi:24367 guix-git/doc/guix.texi:24426
  28402. #: guix-git/doc/guix.texi:24436 guix-git/doc/guix.texi:29025
  28403. #: guix-git/doc/guix.texi:29033 guix-git/doc/guix.texi:29041
  28404. #: guix-git/doc/guix.texi:29049 guix-git/doc/guix.texi:29328
  28405. #: guix-git/doc/guix.texi:30630 guix-git/doc/guix.texi:30638
  28406. #: guix-git/doc/guix.texi:30646 guix-git/doc/guix.texi:30754
  28407. #: guix-git/doc/guix.texi:30779 guix-git/doc/guix.texi:30910
  28408. #: guix-git/doc/guix.texi:30918 guix-git/doc/guix.texi:30926
  28409. #: guix-git/doc/guix.texi:30934 guix-git/doc/guix.texi:30942
  28410. #: guix-git/doc/guix.texi:30950 guix-git/doc/guix.texi:30973
  28411. #: guix-git/doc/guix.texi:30981 guix-git/doc/guix.texi:31033
  28412. #: guix-git/doc/guix.texi:31049 guix-git/doc/guix.texi:31057
  28413. #: guix-git/doc/guix.texi:31096 guix-git/doc/guix.texi:31119
  28414. #: guix-git/doc/guix.texi:31141 guix-git/doc/guix.texi:31148
  28415. #: guix-git/doc/guix.texi:31183 guix-git/doc/guix.texi:31191
  28416. #: guix-git/doc/guix.texi:31215 guix-git/doc/guix.texi:31247
  28417. #: guix-git/doc/guix.texi:31276 guix-git/doc/guix.texi:31283
  28418. #: guix-git/doc/guix.texi:31290 guix-git/doc/guix.texi:31298
  28419. #: guix-git/doc/guix.texi:31312 guix-git/doc/guix.texi:31321
  28420. #: guix-git/doc/guix.texi:31331 guix-git/doc/guix.texi:31338
  28421. #: guix-git/doc/guix.texi:31345 guix-git/doc/guix.texi:31352
  28422. #: guix-git/doc/guix.texi:31423 guix-git/doc/guix.texi:31430
  28423. #: guix-git/doc/guix.texi:31437 guix-git/doc/guix.texi:31446
  28424. #: guix-git/doc/guix.texi:31462 guix-git/doc/guix.texi:31469
  28425. #: guix-git/doc/guix.texi:31476 guix-git/doc/guix.texi:31483
  28426. #: guix-git/doc/guix.texi:31491 guix-git/doc/guix.texi:31499
  28427. msgid "Defaults to @samp{\"\"}."
  28428. msgstr ""
  28429. #. type: deftypevr
  28430. #: guix-git/doc/guix.texi:18817
  28431. #, no-wrap
  28432. msgid "{@code{cups-configuration} parameter} boolean classify-override?"
  28433. msgstr ""
  28434. #. type: deftypevr
  28435. #: guix-git/doc/guix.texi:18820
  28436. msgid "Specifies whether users may override the classification (cover page) of individual print jobs using the @code{job-sheets} option."
  28437. msgstr ""
  28438. #. type: deftypevr
  28439. #: guix-git/doc/guix.texi:18824
  28440. #, no-wrap
  28441. msgid "{@code{cups-configuration} parameter} default-auth-type default-auth-type"
  28442. msgstr ""
  28443. #. type: deftypevr
  28444. #: guix-git/doc/guix.texi:18826
  28445. msgid "Specifies the default type of authentication to use."
  28446. msgstr ""
  28447. #. type: deftypevr
  28448. #: guix-git/doc/guix.texi:18828
  28449. msgid "Defaults to @samp{Basic}."
  28450. msgstr ""
  28451. #. type: deftypevr
  28452. #: guix-git/doc/guix.texi:18830
  28453. #, no-wrap
  28454. msgid "{@code{cups-configuration} parameter} default-encryption default-encryption"
  28455. msgstr ""
  28456. #. type: deftypevr
  28457. #: guix-git/doc/guix.texi:18832
  28458. msgid "Specifies whether encryption will be used for authenticated requests."
  28459. msgstr ""
  28460. #. type: deftypevr
  28461. #: guix-git/doc/guix.texi:18834
  28462. msgid "Defaults to @samp{Required}."
  28463. msgstr ""
  28464. #. type: deftypevr
  28465. #: guix-git/doc/guix.texi:18836
  28466. #, no-wrap
  28467. msgid "{@code{cups-configuration} parameter} string default-language"
  28468. msgstr ""
  28469. #. type: deftypevr
  28470. #: guix-git/doc/guix.texi:18838
  28471. msgid "Specifies the default language to use for text and web content."
  28472. msgstr ""
  28473. #. type: deftypevr
  28474. #: guix-git/doc/guix.texi:18840
  28475. msgid "Defaults to @samp{\"en\"}."
  28476. msgstr ""
  28477. #. type: deftypevr
  28478. #: guix-git/doc/guix.texi:18842
  28479. #, no-wrap
  28480. msgid "{@code{cups-configuration} parameter} string default-paper-size"
  28481. msgstr ""
  28482. #. type: deftypevr
  28483. #: guix-git/doc/guix.texi:18847
  28484. 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\"}."
  28485. msgstr ""
  28486. #. type: deftypevr
  28487. #: guix-git/doc/guix.texi:18849
  28488. msgid "Defaults to @samp{\"Auto\"}."
  28489. msgstr ""
  28490. #. type: deftypevr
  28491. #: guix-git/doc/guix.texi:18851
  28492. #, no-wrap
  28493. msgid "{@code{cups-configuration} parameter} string default-policy"
  28494. msgstr ""
  28495. #. type: deftypevr
  28496. #: guix-git/doc/guix.texi:18853
  28497. msgid "Specifies the default access policy to use."
  28498. msgstr ""
  28499. #. type: deftypevr
  28500. #: guix-git/doc/guix.texi:18855
  28501. msgid "Defaults to @samp{\"default\"}."
  28502. msgstr ""
  28503. #. type: deftypevr
  28504. #: guix-git/doc/guix.texi:18857
  28505. #, no-wrap
  28506. msgid "{@code{cups-configuration} parameter} boolean default-shared?"
  28507. msgstr ""
  28508. #. type: deftypevr
  28509. #: guix-git/doc/guix.texi:18859
  28510. msgid "Specifies whether local printers are shared by default."
  28511. msgstr ""
  28512. #. type: deftypevr
  28513. #: guix-git/doc/guix.texi:18861 guix-git/doc/guix.texi:18941
  28514. #: guix-git/doc/guix.texi:19231 guix-git/doc/guix.texi:22016
  28515. #: guix-git/doc/guix.texi:22067 guix-git/doc/guix.texi:22074
  28516. #: guix-git/doc/guix.texi:23356 guix-git/doc/guix.texi:23544
  28517. #: guix-git/doc/guix.texi:23661 guix-git/doc/guix.texi:23697
  28518. #: guix-git/doc/guix.texi:23748 guix-git/doc/guix.texi:23767
  28519. #: guix-git/doc/guix.texi:23777 guix-git/doc/guix.texi:23787
  28520. #: guix-git/doc/guix.texi:23846 guix-git/doc/guix.texi:23868
  28521. #: guix-git/doc/guix.texi:23893 guix-git/doc/guix.texi:23919
  28522. #: guix-git/doc/guix.texi:23937 guix-git/doc/guix.texi:27123
  28523. #: guix-git/doc/guix.texi:27151 guix-git/doc/guix.texi:27287
  28524. #: guix-git/doc/guix.texi:27294 guix-git/doc/guix.texi:27302
  28525. #: guix-git/doc/guix.texi:27339 guix-git/doc/guix.texi:27353
  28526. #: guix-git/doc/guix.texi:27442 guix-git/doc/guix.texi:27449
  28527. #: guix-git/doc/guix.texi:27457 guix-git/doc/guix.texi:28233
  28528. #: guix-git/doc/guix.texi:28373 guix-git/doc/guix.texi:28559
  28529. #: guix-git/doc/guix.texi:28566 guix-git/doc/guix.texi:28588
  28530. #: guix-git/doc/guix.texi:28627 guix-git/doc/guix.texi:28647
  28531. #: guix-git/doc/guix.texi:28661 guix-git/doc/guix.texi:28874
  28532. #: guix-git/doc/guix.texi:30732 guix-git/doc/guix.texi:30820
  28533. #: guix-git/doc/guix.texi:30836 guix-git/doc/guix.texi:30886
  28534. msgid "Defaults to @samp{#t}."
  28535. msgstr ""
  28536. #. type: deftypevr
  28537. #: guix-git/doc/guix.texi:18863
  28538. #, no-wrap
  28539. msgid "{@code{cups-configuration} parameter} non-negative-integer dirty-clean-interval"
  28540. msgstr ""
  28541. #. type: deftypevr
  28542. #: guix-git/doc/guix.texi:18867
  28543. 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."
  28544. msgstr ""
  28545. #. type: deftypevr
  28546. #: guix-git/doc/guix.texi:18869 guix-git/doc/guix.texi:18917
  28547. #: guix-git/doc/guix.texi:18926 guix-git/doc/guix.texi:19238
  28548. #: guix-git/doc/guix.texi:23706 guix-git/doc/guix.texi:23739
  28549. msgid "Defaults to @samp{30}."
  28550. msgstr ""
  28551. #. type: deftypevr
  28552. #: guix-git/doc/guix.texi:18871
  28553. #, no-wrap
  28554. msgid "{@code{cups-configuration} parameter} error-policy error-policy"
  28555. msgstr ""
  28556. #. type: deftypevr
  28557. #: guix-git/doc/guix.texi:18877
  28558. 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."
  28559. msgstr ""
  28560. #. type: deftypevr
  28561. #: guix-git/doc/guix.texi:18879
  28562. msgid "Defaults to @samp{stop-printer}."
  28563. msgstr ""
  28564. #. type: deftypevr
  28565. #: guix-git/doc/guix.texi:18881
  28566. #, no-wrap
  28567. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-limit"
  28568. msgstr ""
  28569. #. type: deftypevr
  28570. #: guix-git/doc/guix.texi:18889
  28571. 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."
  28572. msgstr ""
  28573. #. type: deftypevr
  28574. #: guix-git/doc/guix.texi:18891 guix-git/doc/guix.texi:18899
  28575. #: guix-git/doc/guix.texi:18948 guix-git/doc/guix.texi:19064
  28576. #: guix-git/doc/guix.texi:19078 guix-git/doc/guix.texi:19085
  28577. #: guix-git/doc/guix.texi:20571 guix-git/doc/guix.texi:20587
  28578. #: guix-git/doc/guix.texi:21244 guix-git/doc/guix.texi:21256
  28579. #: guix-git/doc/guix.texi:22035 guix-git/doc/guix.texi:22044
  28580. #: guix-git/doc/guix.texi:22052 guix-git/doc/guix.texi:22060
  28581. #: guix-git/doc/guix.texi:28249 guix-git/doc/guix.texi:28574
  28582. #: guix-git/doc/guix.texi:30725 guix-git/doc/guix.texi:31025
  28583. #: guix-git/doc/guix.texi:31199
  28584. msgid "Defaults to @samp{0}."
  28585. msgstr ""
  28586. #. type: deftypevr
  28587. #: guix-git/doc/guix.texi:18893
  28588. #, no-wrap
  28589. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-nice"
  28590. msgstr ""
  28591. #. type: deftypevr
  28592. #: guix-git/doc/guix.texi:18897
  28593. 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."
  28594. msgstr ""
  28595. #. type: deftypevr
  28596. #: guix-git/doc/guix.texi:18901
  28597. #, no-wrap
  28598. msgid "{@code{cups-configuration} parameter} host-name-lookups host-name-lookups"
  28599. msgstr ""
  28600. #. type: deftypevr
  28601. #: guix-git/doc/guix.texi:18908
  28602. 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."
  28603. msgstr ""
  28604. #. type: deftypevr
  28605. #: guix-git/doc/guix.texi:18912
  28606. #, no-wrap
  28607. msgid "{@code{cups-configuration} parameter} non-negative-integer job-kill-delay"
  28608. msgstr ""
  28609. #. type: deftypevr
  28610. #: guix-git/doc/guix.texi:18915
  28611. msgid "Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job."
  28612. msgstr ""
  28613. #. type: deftypevr
  28614. #: guix-git/doc/guix.texi:18919
  28615. #, no-wrap
  28616. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-interval"
  28617. msgstr ""
  28618. #. type: deftypevr
  28619. #: guix-git/doc/guix.texi:18924
  28620. 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}."
  28621. msgstr ""
  28622. #. type: deftypevr
  28623. #: guix-git/doc/guix.texi:18928
  28624. #, no-wrap
  28625. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-limit"
  28626. msgstr ""
  28627. #. type: deftypevr
  28628. #: guix-git/doc/guix.texi:18933
  28629. 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}."
  28630. msgstr ""
  28631. #. type: deftypevr
  28632. #: guix-git/doc/guix.texi:18935 guix-git/doc/guix.texi:23670
  28633. #: guix-git/doc/guix.texi:29126 guix-git/doc/guix.texi:29146
  28634. #: guix-git/doc/guix.texi:29162 guix-git/doc/guix.texi:29176
  28635. #: guix-git/doc/guix.texi:29183 guix-git/doc/guix.texi:29190
  28636. #: guix-git/doc/guix.texi:29197 guix-git/doc/guix.texi:29357
  28637. #: guix-git/doc/guix.texi:29373 guix-git/doc/guix.texi:29380
  28638. #: guix-git/doc/guix.texi:29387 guix-git/doc/guix.texi:29398
  28639. #: guix-git/doc/guix.texi:30677 guix-git/doc/guix.texi:30685
  28640. #: guix-git/doc/guix.texi:30693 guix-git/doc/guix.texi:30717
  28641. msgid "Defaults to @samp{5}."
  28642. msgstr ""
  28643. #. type: deftypevr
  28644. #: guix-git/doc/guix.texi:18937
  28645. #, no-wrap
  28646. msgid "{@code{cups-configuration} parameter} boolean keep-alive?"
  28647. msgstr ""
  28648. #. type: deftypevr
  28649. #: guix-git/doc/guix.texi:18939
  28650. msgid "Specifies whether to support HTTP keep-alive connections."
  28651. msgstr ""
  28652. #. type: deftypevr
  28653. #: guix-git/doc/guix.texi:18943
  28654. #, no-wrap
  28655. msgid "{@code{cups-configuration} parameter} non-negative-integer limit-request-body"
  28656. msgstr ""
  28657. #. type: deftypevr
  28658. #: guix-git/doc/guix.texi:18946
  28659. msgid "Specifies the maximum size of print files, IPP requests, and HTML form data. A limit of 0 disables the limit check."
  28660. msgstr ""
  28661. #. type: deftypevr
  28662. #: guix-git/doc/guix.texi:18950
  28663. #, no-wrap
  28664. msgid "{@code{cups-configuration} parameter} multiline-string-list listen"
  28665. msgstr ""
  28666. #. type: deftypevr
  28667. #: guix-git/doc/guix.texi:18957
  28668. 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."
  28669. msgstr ""
  28670. #. type: deftypevr
  28671. #: guix-git/doc/guix.texi:18959
  28672. #, no-wrap
  28673. msgid "{@code{cups-configuration} parameter} non-negative-integer listen-back-log"
  28674. msgstr ""
  28675. #. type: deftypevr
  28676. #: guix-git/doc/guix.texi:18966
  28677. 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."
  28678. msgstr ""
  28679. #. type: deftypevr
  28680. #: guix-git/doc/guix.texi:18968
  28681. msgid "Defaults to @samp{128}."
  28682. msgstr ""
  28683. #. type: deftypevr
  28684. #: guix-git/doc/guix.texi:18970
  28685. #, no-wrap
  28686. msgid "{@code{cups-configuration} parameter} location-access-control-list location-access-controls"
  28687. msgstr ""
  28688. #. type: deftypevr
  28689. #: guix-git/doc/guix.texi:18972
  28690. msgid "Specifies a set of additional access controls."
  28691. msgstr ""
  28692. #. type: deftypevr
  28693. #: guix-git/doc/guix.texi:18974
  28694. msgid "Available @code{location-access-controls} fields are:"
  28695. msgstr ""
  28696. #. type: deftypevr
  28697. #: guix-git/doc/guix.texi:18975
  28698. #, no-wrap
  28699. msgid "{@code{location-access-controls} parameter} file-name path"
  28700. msgstr ""
  28701. #. type: deftypevr
  28702. #: guix-git/doc/guix.texi:18977
  28703. msgid "Specifies the URI path to which the access control applies."
  28704. msgstr ""
  28705. #. type: deftypevr
  28706. #: guix-git/doc/guix.texi:18979
  28707. #, no-wrap
  28708. msgid "{@code{location-access-controls} parameter} access-control-list access-controls"
  28709. msgstr ""
  28710. #. type: deftypevr
  28711. #: guix-git/doc/guix.texi:18982
  28712. msgid "Access controls for all access to this path, in the same format as the @code{access-controls} of @code{operation-access-control}."
  28713. msgstr ""
  28714. #. type: deftypevr
  28715. #: guix-git/doc/guix.texi:18984 guix-git/doc/guix.texi:18990
  28716. #: guix-git/doc/guix.texi:19004 guix-git/doc/guix.texi:19011
  28717. #: guix-git/doc/guix.texi:19153 guix-git/doc/guix.texi:19212
  28718. #: guix-git/doc/guix.texi:19290 guix-git/doc/guix.texi:19304
  28719. #: guix-git/doc/guix.texi:20451 guix-git/doc/guix.texi:20460
  28720. #: guix-git/doc/guix.texi:21730 guix-git/doc/guix.texi:21933
  28721. #: guix-git/doc/guix.texi:21961 guix-git/doc/guix.texi:21991
  28722. #: guix-git/doc/guix.texi:22106 guix-git/doc/guix.texi:22119
  28723. #: guix-git/doc/guix.texi:22126 guix-git/doc/guix.texi:23876
  28724. #: guix-git/doc/guix.texi:24271 guix-git/doc/guix.texi:24375
  28725. #: guix-git/doc/guix.texi:24802 guix-git/doc/guix.texi:24810
  28726. #: guix-git/doc/guix.texi:25055 guix-git/doc/guix.texi:27182
  28727. #: guix-git/doc/guix.texi:27360 guix-git/doc/guix.texi:27559
  28728. #: guix-git/doc/guix.texi:29017 guix-git/doc/guix.texi:29077
  28729. #: guix-git/doc/guix.texi:29085 guix-git/doc/guix.texi:30740
  28730. #: guix-git/doc/guix.texi:30747 guix-git/doc/guix.texi:31089
  28731. #: guix-git/doc/guix.texi:31167 guix-git/doc/guix.texi:31261
  28732. #: guix-git/doc/guix.texi:31269 guix-git/doc/guix.texi:31305
  28733. #: guix-git/doc/guix.texi:31455 guix-git/doc/guix.texi:31506
  28734. #: guix-git/doc/guix.texi:31515
  28735. msgid "Defaults to @samp{()}."
  28736. msgstr ""
  28737. #. type: deftypevr
  28738. #: guix-git/doc/guix.texi:18986
  28739. #, no-wrap
  28740. msgid "{@code{location-access-controls} parameter} method-access-control-list method-access-controls"
  28741. msgstr ""
  28742. #. type: deftypevr
  28743. #: guix-git/doc/guix.texi:18988
  28744. msgid "Access controls for method-specific access to this path."
  28745. msgstr ""
  28746. #. type: deftypevr
  28747. #: guix-git/doc/guix.texi:18992
  28748. msgid "Available @code{method-access-controls} fields are:"
  28749. msgstr ""
  28750. #. type: deftypevr
  28751. #: guix-git/doc/guix.texi:18993
  28752. #, no-wrap
  28753. msgid "{@code{method-access-controls} parameter} boolean reverse?"
  28754. msgstr ""
  28755. #. type: deftypevr
  28756. #: guix-git/doc/guix.texi:18996
  28757. msgid "If @code{#t}, apply access controls to all methods except the listed methods. Otherwise apply to only the listed methods."
  28758. msgstr ""
  28759. #. type: deftypevr
  28760. #: guix-git/doc/guix.texi:19000
  28761. #, no-wrap
  28762. msgid "{@code{method-access-controls} parameter} method-list methods"
  28763. msgstr ""
  28764. #. type: deftypevr
  28765. #: guix-git/doc/guix.texi:19002
  28766. msgid "Methods to which this access control applies."
  28767. msgstr ""
  28768. #. type: deftypevr
  28769. #: guix-git/doc/guix.texi:19006
  28770. #, no-wrap
  28771. msgid "{@code{method-access-controls} parameter} access-control-list access-controls"
  28772. msgstr ""
  28773. #. type: deftypevr
  28774. #: guix-git/doc/guix.texi:19009
  28775. msgid "Access control directives, as a list of strings. Each string should be one directive, such as @samp{\"Order allow,deny\"}."
  28776. msgstr ""
  28777. #. type: deftypevr
  28778. #: guix-git/doc/guix.texi:19015
  28779. #, no-wrap
  28780. msgid "{@code{cups-configuration} parameter} non-negative-integer log-debug-history"
  28781. msgstr ""
  28782. #. type: deftypevr
  28783. #: guix-git/doc/guix.texi:19019
  28784. 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."
  28785. msgstr ""
  28786. #. type: deftypevr
  28787. #: guix-git/doc/guix.texi:19021 guix-git/doc/guix.texi:19042
  28788. #: guix-git/doc/guix.texi:19049 guix-git/doc/guix.texi:21490
  28789. #: guix-git/doc/guix.texi:23408 guix-git/doc/guix.texi:23423
  28790. #: guix-git/doc/guix.texi:27544
  28791. msgid "Defaults to @samp{100}."
  28792. msgstr ""
  28793. #. type: deftypevr
  28794. #: guix-git/doc/guix.texi:19023
  28795. #, no-wrap
  28796. msgid "{@code{cups-configuration} parameter} log-level log-level"
  28797. msgstr ""
  28798. #. type: deftypevr
  28799. #: guix-git/doc/guix.texi:19026
  28800. msgid "Specifies the level of logging for the ErrorLog file. The value @code{none} stops all logging while @code{debug2} logs everything."
  28801. msgstr ""
  28802. #. type: deftypevr
  28803. #: guix-git/doc/guix.texi:19028 guix-git/doc/guix.texi:23885
  28804. msgid "Defaults to @samp{info}."
  28805. msgstr ""
  28806. #. type: deftypevr
  28807. #: guix-git/doc/guix.texi:19030
  28808. #, no-wrap
  28809. msgid "{@code{cups-configuration} parameter} log-time-format log-time-format"
  28810. msgstr ""
  28811. #. type: deftypevr
  28812. #: guix-git/doc/guix.texi:19033
  28813. 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."
  28814. msgstr ""
  28815. #. type: deftypevr
  28816. #: guix-git/doc/guix.texi:19035
  28817. msgid "Defaults to @samp{standard}."
  28818. msgstr ""
  28819. #. type: deftypevr
  28820. #: guix-git/doc/guix.texi:19037
  28821. #, no-wrap
  28822. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients"
  28823. msgstr ""
  28824. #. type: deftypevr
  28825. #: guix-git/doc/guix.texi:19040
  28826. msgid "Specifies the maximum number of simultaneous clients that are allowed by the scheduler."
  28827. msgstr ""
  28828. #. type: deftypevr
  28829. #: guix-git/doc/guix.texi:19044
  28830. #, no-wrap
  28831. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients-per-host"
  28832. msgstr ""
  28833. #. type: deftypevr
  28834. #: guix-git/doc/guix.texi:19047
  28835. msgid "Specifies the maximum number of simultaneous clients that are allowed from a single address."
  28836. msgstr ""
  28837. #. type: deftypevr
  28838. #: guix-git/doc/guix.texi:19051
  28839. #, no-wrap
  28840. msgid "{@code{cups-configuration} parameter} non-negative-integer max-copies"
  28841. msgstr ""
  28842. #. type: deftypevr
  28843. #: guix-git/doc/guix.texi:19054
  28844. msgid "Specifies the maximum number of copies that a user can print of each job."
  28845. msgstr ""
  28846. #. type: deftypevr
  28847. #: guix-git/doc/guix.texi:19056
  28848. msgid "Defaults to @samp{9999}."
  28849. msgstr ""
  28850. #. type: deftypevr
  28851. #: guix-git/doc/guix.texi:19058
  28852. #, no-wrap
  28853. msgid "{@code{cups-configuration} parameter} non-negative-integer max-hold-time"
  28854. msgstr ""
  28855. #. type: deftypevr
  28856. #: guix-git/doc/guix.texi:19062
  28857. 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."
  28858. msgstr ""
  28859. #. type: deftypevr
  28860. #: guix-git/doc/guix.texi:19066
  28861. #, no-wrap
  28862. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs"
  28863. msgstr ""
  28864. #. type: deftypevr
  28865. #: guix-git/doc/guix.texi:19069
  28866. msgid "Specifies the maximum number of simultaneous jobs that are allowed. Set to 0 to allow an unlimited number of jobs."
  28867. msgstr ""
  28868. #. type: deftypevr
  28869. #: guix-git/doc/guix.texi:19071
  28870. msgid "Defaults to @samp{500}."
  28871. msgstr ""
  28872. #. type: deftypevr
  28873. #: guix-git/doc/guix.texi:19073
  28874. #, no-wrap
  28875. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-printer"
  28876. msgstr ""
  28877. #. type: deftypevr
  28878. #: guix-git/doc/guix.texi:19076
  28879. msgid "Specifies the maximum number of simultaneous jobs that are allowed per printer. A value of 0 allows up to MaxJobs jobs per printer."
  28880. msgstr ""
  28881. #. type: deftypevr
  28882. #: guix-git/doc/guix.texi:19080
  28883. #, no-wrap
  28884. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-user"
  28885. msgstr ""
  28886. #. type: deftypevr
  28887. #: guix-git/doc/guix.texi:19083
  28888. msgid "Specifies the maximum number of simultaneous jobs that are allowed per user. A value of 0 allows up to MaxJobs jobs per user."
  28889. msgstr ""
  28890. #. type: deftypevr
  28891. #: guix-git/doc/guix.texi:19087
  28892. #, no-wrap
  28893. msgid "{@code{cups-configuration} parameter} non-negative-integer max-job-time"
  28894. msgstr ""
  28895. #. type: deftypevr
  28896. #: guix-git/doc/guix.texi:19090
  28897. 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."
  28898. msgstr ""
  28899. #. type: deftypevr
  28900. #: guix-git/doc/guix.texi:19092
  28901. msgid "Defaults to @samp{10800}."
  28902. msgstr ""
  28903. #. type: deftypevr
  28904. #: guix-git/doc/guix.texi:19094
  28905. #, no-wrap
  28906. msgid "{@code{cups-configuration} parameter} non-negative-integer max-log-size"
  28907. msgstr ""
  28908. #. type: deftypevr
  28909. #: guix-git/doc/guix.texi:19097
  28910. msgid "Specifies the maximum size of the log files before they are rotated, in bytes. The value 0 disables log rotation."
  28911. msgstr ""
  28912. #. type: deftypevr
  28913. #: guix-git/doc/guix.texi:19099
  28914. msgid "Defaults to @samp{1048576}."
  28915. msgstr ""
  28916. #. type: deftypevr
  28917. #: guix-git/doc/guix.texi:19101
  28918. #, no-wrap
  28919. msgid "{@code{cups-configuration} parameter} non-negative-integer multiple-operation-timeout"
  28920. msgstr ""
  28921. #. type: deftypevr
  28922. #: guix-git/doc/guix.texi:19104
  28923. msgid "Specifies the maximum amount of time to allow between files in a multiple file print job, in seconds."
  28924. msgstr ""
  28925. #. type: deftypevr
  28926. #: guix-git/doc/guix.texi:19106 guix-git/doc/guix.texi:19317
  28927. #: guix-git/doc/guix.texi:27116
  28928. msgid "Defaults to @samp{300}."
  28929. msgstr ""
  28930. #. type: deftypevr
  28931. #: guix-git/doc/guix.texi:19108
  28932. #, no-wrap
  28933. msgid "{@code{cups-configuration} parameter} string page-log-format"
  28934. msgstr ""
  28935. #. type: deftypevr
  28936. #: guix-git/doc/guix.texi:19113
  28937. 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:"
  28938. msgstr ""
  28939. #. type: item
  28940. #: guix-git/doc/guix.texi:19115
  28941. #, no-wrap
  28942. msgid "%%"
  28943. msgstr ""
  28944. #. type: table
  28945. #: guix-git/doc/guix.texi:19117
  28946. msgid "insert a single percent character"
  28947. msgstr ""
  28948. #. type: item
  28949. #: guix-git/doc/guix.texi:19118
  28950. #, no-wrap
  28951. msgid "%@{name@}"
  28952. msgstr ""
  28953. #. type: table
  28954. #: guix-git/doc/guix.texi:19120
  28955. msgid "insert the value of the specified IPP attribute"
  28956. msgstr ""
  28957. #. type: item
  28958. #: guix-git/doc/guix.texi:19121
  28959. #, no-wrap
  28960. msgid "%C"
  28961. msgstr ""
  28962. #. type: table
  28963. #: guix-git/doc/guix.texi:19123
  28964. msgid "insert the number of copies for the current page"
  28965. msgstr ""
  28966. #. type: item
  28967. #: guix-git/doc/guix.texi:19124
  28968. #, no-wrap
  28969. msgid "%P"
  28970. msgstr ""
  28971. #. type: table
  28972. #: guix-git/doc/guix.texi:19126
  28973. msgid "insert the current page number"
  28974. msgstr ""
  28975. #. type: item
  28976. #: guix-git/doc/guix.texi:19127
  28977. #, no-wrap
  28978. msgid "%T"
  28979. msgstr ""
  28980. #. type: table
  28981. #: guix-git/doc/guix.texi:19129
  28982. msgid "insert the current date and time in common log format"
  28983. msgstr ""
  28984. #. type: item
  28985. #: guix-git/doc/guix.texi:19130
  28986. #, no-wrap
  28987. msgid "%j"
  28988. msgstr ""
  28989. #. type: table
  28990. #: guix-git/doc/guix.texi:19132
  28991. msgid "insert the job ID"
  28992. msgstr ""
  28993. #. type: item
  28994. #: guix-git/doc/guix.texi:19133 guix-git/doc/guix.texi:21089
  28995. #, no-wrap
  28996. msgid "%p"
  28997. msgstr ""
  28998. #. type: table
  28999. #: guix-git/doc/guix.texi:19135
  29000. msgid "insert the printer name"
  29001. msgstr ""
  29002. #. type: item
  29003. #: guix-git/doc/guix.texi:19136 guix-git/doc/guix.texi:21112
  29004. #, no-wrap
  29005. msgid "%u"
  29006. msgstr ""
  29007. #. type: table
  29008. #: guix-git/doc/guix.texi:19138
  29009. msgid "insert the username"
  29010. msgstr ""
  29011. #. type: deftypevr
  29012. #: guix-git/doc/guix.texi:19144
  29013. 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."
  29014. msgstr ""
  29015. #. type: deftypevr
  29016. #: guix-git/doc/guix.texi:19148
  29017. #, no-wrap
  29018. msgid "{@code{cups-configuration} parameter} environment-variables environment-variables"
  29019. msgstr ""
  29020. #. type: deftypevr
  29021. #: guix-git/doc/guix.texi:19151
  29022. msgid "Passes the specified environment variable(s) to child processes; a list of strings."
  29023. msgstr ""
  29024. #. type: deftypevr
  29025. #: guix-git/doc/guix.texi:19155
  29026. #, no-wrap
  29027. msgid "{@code{cups-configuration} parameter} policy-configuration-list policies"
  29028. msgstr ""
  29029. #. type: deftypevr
  29030. #: guix-git/doc/guix.texi:19157
  29031. msgid "Specifies named access control policies."
  29032. msgstr ""
  29033. #. type: deftypevr
  29034. #: guix-git/doc/guix.texi:19159
  29035. msgid "Available @code{policy-configuration} fields are:"
  29036. msgstr ""
  29037. #. type: deftypevr
  29038. #: guix-git/doc/guix.texi:19160
  29039. #, no-wrap
  29040. msgid "{@code{policy-configuration} parameter} string name"
  29041. msgstr ""
  29042. #. type: deftypevr
  29043. #: guix-git/doc/guix.texi:19162
  29044. msgid "Name of the policy."
  29045. msgstr ""
  29046. #. type: deftypevr
  29047. #: guix-git/doc/guix.texi:19164
  29048. #, no-wrap
  29049. msgid "{@code{policy-configuration} parameter} string job-private-access"
  29050. msgstr ""
  29051. #. type: deftypevr
  29052. #: guix-git/doc/guix.texi:19174
  29053. 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}."
  29054. msgstr ""
  29055. #. type: deftypevr
  29056. #: guix-git/doc/guix.texi:19176 guix-git/doc/guix.texi:19198
  29057. msgid "Defaults to @samp{\"@@OWNER @@SYSTEM\"}."
  29058. msgstr ""
  29059. #. type: deftypevr
  29060. #: guix-git/doc/guix.texi:19178
  29061. #, no-wrap
  29062. msgid "{@code{policy-configuration} parameter} string job-private-values"
  29063. msgstr ""
  29064. #. type: deftypevr
  29065. #: guix-git/doc/guix.texi:19181 guix-git/doc/guix.texi:19203
  29066. msgid "Specifies the list of job values to make private, or @code{all}, @code{default}, or @code{none}."
  29067. msgstr ""
  29068. #. type: deftypevr
  29069. #: guix-git/doc/guix.texi:19184
  29070. msgid "Defaults to @samp{\"job-name job-originating-host-name job-originating-user-name phone\"}."
  29071. msgstr ""
  29072. #. type: deftypevr
  29073. #: guix-git/doc/guix.texi:19186
  29074. #, no-wrap
  29075. msgid "{@code{policy-configuration} parameter} string subscription-private-access"
  29076. msgstr ""
  29077. #. type: deftypevr
  29078. #: guix-git/doc/guix.texi:19196
  29079. 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}."
  29080. msgstr ""
  29081. #. type: deftypevr
  29082. #: guix-git/doc/guix.texi:19200
  29083. #, no-wrap
  29084. msgid "{@code{policy-configuration} parameter} string subscription-private-values"
  29085. msgstr ""
  29086. #. type: deftypevr
  29087. #: guix-git/doc/guix.texi:19206
  29088. msgid "Defaults to @samp{\"notify-events notify-pull-method notify-recipient-uri notify-subscriber-user-name notify-user-data\"}."
  29089. msgstr ""
  29090. #. type: deftypevr
  29091. #: guix-git/doc/guix.texi:19208
  29092. #, no-wrap
  29093. msgid "{@code{policy-configuration} parameter} operation-access-control-list access-controls"
  29094. msgstr ""
  29095. #. type: deftypevr
  29096. #: guix-git/doc/guix.texi:19210
  29097. msgid "Access control by IPP operation."
  29098. msgstr ""
  29099. #. type: deftypevr
  29100. #: guix-git/doc/guix.texi:19215
  29101. #, no-wrap
  29102. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-files"
  29103. msgstr ""
  29104. #. type: deftypevr
  29105. #: guix-git/doc/guix.texi:19220
  29106. 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."
  29107. msgstr ""
  29108. #. type: deftypevr
  29109. #: guix-git/doc/guix.texi:19222
  29110. msgid "Defaults to @samp{86400}."
  29111. msgstr ""
  29112. #. type: deftypevr
  29113. #: guix-git/doc/guix.texi:19224
  29114. #, no-wrap
  29115. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-history"
  29116. msgstr ""
  29117. #. type: deftypevr
  29118. #: guix-git/doc/guix.texi:19229
  29119. 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."
  29120. msgstr ""
  29121. #. type: deftypevr
  29122. #: guix-git/doc/guix.texi:19233
  29123. #, no-wrap
  29124. msgid "{@code{cups-configuration} parameter} non-negative-integer reload-timeout"
  29125. msgstr ""
  29126. #. type: deftypevr
  29127. #: guix-git/doc/guix.texi:19236
  29128. msgid "Specifies the amount of time to wait for job completion before restarting the scheduler."
  29129. msgstr ""
  29130. #. type: deftypevr
  29131. #: guix-git/doc/guix.texi:19240
  29132. #, no-wrap
  29133. msgid "{@code{cups-configuration} parameter} string rip-cache"
  29134. msgstr ""
  29135. #. type: deftypevr
  29136. #: guix-git/doc/guix.texi:19243
  29137. msgid "Specifies the maximum amount of memory to use when converting documents into bitmaps for a printer."
  29138. msgstr ""
  29139. #. type: deftypevr
  29140. #: guix-git/doc/guix.texi:19245
  29141. msgid "Defaults to @samp{\"128m\"}."
  29142. msgstr ""
  29143. #. type: deftypevr
  29144. #: guix-git/doc/guix.texi:19247
  29145. #, no-wrap
  29146. msgid "{@code{cups-configuration} parameter} string server-admin"
  29147. msgstr ""
  29148. #. type: deftypevr
  29149. #: guix-git/doc/guix.texi:19249
  29150. msgid "Specifies the email address of the server administrator."
  29151. msgstr ""
  29152. #. type: deftypevr
  29153. #: guix-git/doc/guix.texi:19251
  29154. msgid "Defaults to @samp{\"root@@localhost.localdomain\"}."
  29155. msgstr ""
  29156. #. type: deftypevr
  29157. #: guix-git/doc/guix.texi:19253
  29158. #, no-wrap
  29159. msgid "{@code{cups-configuration} parameter} host-name-list-or-* server-alias"
  29160. msgstr ""
  29161. #. type: deftypevr
  29162. #: guix-git/doc/guix.texi:19261
  29163. 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{*}."
  29164. msgstr ""
  29165. #. type: deftypevr
  29166. #: guix-git/doc/guix.texi:19263
  29167. msgid "Defaults to @samp{*}."
  29168. msgstr ""
  29169. #. type: deftypevr
  29170. #: guix-git/doc/guix.texi:19265
  29171. #, no-wrap
  29172. msgid "{@code{cups-configuration} parameter} string server-name"
  29173. msgstr ""
  29174. #. type: deftypevr
  29175. #: guix-git/doc/guix.texi:19267
  29176. msgid "Specifies the fully-qualified host name of the server."
  29177. msgstr ""
  29178. #. type: deftypevr
  29179. #: guix-git/doc/guix.texi:19269 guix-git/doc/guix.texi:24398
  29180. #: guix-git/doc/guix.texi:24443
  29181. msgid "Defaults to @samp{\"localhost\"}."
  29182. msgstr ""
  29183. #. type: deftypevr
  29184. #: guix-git/doc/guix.texi:19271
  29185. #, no-wrap
  29186. msgid "{@code{cups-configuration} parameter} server-tokens server-tokens"
  29187. msgstr ""
  29188. #. type: deftypevr
  29189. #: guix-git/doc/guix.texi:19279
  29190. 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}."
  29191. msgstr ""
  29192. #. type: deftypevr
  29193. #: guix-git/doc/guix.texi:19281
  29194. msgid "Defaults to @samp{Minimal}."
  29195. msgstr ""
  29196. #. type: deftypevr
  29197. #: guix-git/doc/guix.texi:19283
  29198. #, no-wrap
  29199. msgid "{@code{cups-configuration} parameter} multiline-string-list ssl-listen"
  29200. msgstr ""
  29201. #. type: deftypevr
  29202. #: guix-git/doc/guix.texi:19288
  29203. 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."
  29204. msgstr ""
  29205. #. type: deftypevr
  29206. #: guix-git/doc/guix.texi:19292
  29207. #, no-wrap
  29208. msgid "{@code{cups-configuration} parameter} ssl-options ssl-options"
  29209. msgstr ""
  29210. #. type: deftypevr
  29211. #: guix-git/doc/guix.texi:19302
  29212. 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."
  29213. msgstr ""
  29214. #. type: deftypevr
  29215. #: guix-git/doc/guix.texi:19306
  29216. #, no-wrap
  29217. msgid "{@code{cups-configuration} parameter} boolean strict-conformance?"
  29218. msgstr ""
  29219. #. type: deftypevr
  29220. #: guix-git/doc/guix.texi:19309
  29221. msgid "Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications."
  29222. msgstr ""
  29223. #. type: deftypevr
  29224. #: guix-git/doc/guix.texi:19313
  29225. #, no-wrap
  29226. msgid "{@code{cups-configuration} parameter} non-negative-integer timeout"
  29227. msgstr ""
  29228. #. type: deftypevr
  29229. #: guix-git/doc/guix.texi:19315
  29230. msgid "Specifies the HTTP request timeout, in seconds."
  29231. msgstr ""
  29232. #. type: deftypevr
  29233. #: guix-git/doc/guix.texi:19320
  29234. #, no-wrap
  29235. msgid "{@code{cups-configuration} parameter} boolean web-interface?"
  29236. msgstr ""
  29237. #. type: deftypevr
  29238. #: guix-git/doc/guix.texi:19322
  29239. msgid "Specifies whether the web interface is enabled."
  29240. msgstr ""
  29241. #. type: Plain text
  29242. #: guix-git/doc/guix.texi:19332
  29243. 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}."
  29244. msgstr ""
  29245. #. type: Plain text
  29246. #: guix-git/doc/guix.texi:19334
  29247. msgid "Available @code{opaque-cups-configuration} fields are:"
  29248. msgstr ""
  29249. #. type: deftypevr
  29250. #: guix-git/doc/guix.texi:19335
  29251. #, no-wrap
  29252. msgid "{@code{opaque-cups-configuration} parameter} package cups"
  29253. msgstr ""
  29254. #. type: deftypevr
  29255. #: guix-git/doc/guix.texi:19339
  29256. #, no-wrap
  29257. msgid "{@code{opaque-cups-configuration} parameter} string cupsd.conf"
  29258. msgstr ""
  29259. #. type: deftypevr
  29260. #: guix-git/doc/guix.texi:19341
  29261. msgid "The contents of the @code{cupsd.conf}, as a string."
  29262. msgstr ""
  29263. #. type: deftypevr
  29264. #: guix-git/doc/guix.texi:19343
  29265. #, no-wrap
  29266. msgid "{@code{opaque-cups-configuration} parameter} string cups-files.conf"
  29267. msgstr ""
  29268. #. type: deftypevr
  29269. #: guix-git/doc/guix.texi:19345
  29270. msgid "The contents of the @code{cups-files.conf} file, as a string."
  29271. msgstr ""
  29272. #. type: Plain text
  29273. #: guix-git/doc/guix.texi:19350
  29274. 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:"
  29275. msgstr ""
  29276. #. type: lisp
  29277. #: guix-git/doc/guix.texi:19356
  29278. #, no-wrap
  29279. msgid ""
  29280. "(service cups-service-type\n"
  29281. " (opaque-cups-configuration\n"
  29282. " (cupsd.conf cupsd.conf)\n"
  29283. " (cups-files.conf cups-files.conf)))\n"
  29284. msgstr ""
  29285. #. type: Plain text
  29286. #: guix-git/doc/guix.texi:19367
  29287. 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."
  29288. msgstr ""
  29289. #. type: Plain text
  29290. #: guix-git/doc/guix.texi:19371
  29291. 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:"
  29292. msgstr ""
  29293. #. type: defvr
  29294. #: guix-git/doc/guix.texi:19372
  29295. #, no-wrap
  29296. msgid "{Scheme Variable} %desktop-services"
  29297. msgstr ""
  29298. #. type: defvr
  29299. #: guix-git/doc/guix.texi:19375
  29300. msgid "This is a list of services that builds upon @code{%base-services} and adds or adjusts services for a typical ``desktop'' setup."
  29301. msgstr ""
  29302. #. type: defvr
  29303. #: guix-git/doc/guix.texi:19386
  29304. 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})."
  29305. msgstr ""
  29306. #. type: Plain text
  29307. #: guix-git/doc/guix.texi:19391
  29308. 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}})."
  29309. msgstr ""
  29310. #. type: Plain text
  29311. #: guix-git/doc/guix.texi:19414
  29312. 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."
  29313. msgstr ""
  29314. #. type: Plain text
  29315. #: guix-git/doc/guix.texi:19423
  29316. msgid "The desktop environments in Guix use the Xorg display server by default. If you'd like to use the newer display server protocol called Wayland, you need to use the @code{sddm-service} instead of GDM as the graphical login manager. You should then select the ``GNOME (Wayland)'' session in SDDM@. Alternatively you can also try starting GNOME on Wayland manually from a TTY with the command ``XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session``. Currently only GNOME has support for Wayland."
  29317. msgstr ""
  29318. #. type: defvr
  29319. #: guix-git/doc/guix.texi:19424
  29320. #, no-wrap
  29321. msgid "{Scheme Variable} gnome-desktop-service-type"
  29322. msgstr ""
  29323. #. type: defvr
  29324. #: guix-git/doc/guix.texi:19428
  29325. 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)."
  29326. msgstr ""
  29327. #. type: defvr
  29328. #: guix-git/doc/guix.texi:19431
  29329. msgid "This service adds the @code{gnome} package to the system profile, and extends polkit with the actions from @code{gnome-settings-daemon}."
  29330. msgstr ""
  29331. #. type: deftp
  29332. #: guix-git/doc/guix.texi:19433
  29333. #, no-wrap
  29334. msgid "{Data Type} gnome-desktop-configuration"
  29335. msgstr ""
  29336. #. type: deftp
  29337. #: guix-git/doc/guix.texi:19435
  29338. msgid "Configuration record for the GNOME desktop environment."
  29339. msgstr ""
  29340. #. type: item
  29341. #: guix-git/doc/guix.texi:19437
  29342. #, no-wrap
  29343. msgid "@code{gnome} (default: @code{gnome})"
  29344. msgstr "@code{gnome}(默认值:@code{gnome})"
  29345. #. type: table
  29346. #: guix-git/doc/guix.texi:19439
  29347. msgid "The GNOME package to use."
  29348. msgstr ""
  29349. #. type: defvr
  29350. #: guix-git/doc/guix.texi:19442
  29351. #, no-wrap
  29352. msgid "{Scheme Variable} xfce-desktop-service-type"
  29353. msgstr ""
  29354. #. type: defvr
  29355. #: guix-git/doc/guix.texi:19446
  29356. 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)."
  29357. msgstr ""
  29358. #. type: defvr
  29359. #: guix-git/doc/guix.texi:19451
  29360. 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."
  29361. msgstr ""
  29362. #. type: defvr
  29363. #: guix-git/doc/guix.texi:19457
  29364. 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}."
  29365. msgstr ""
  29366. #. type: deftp
  29367. #: guix-git/doc/guix.texi:19459
  29368. #, no-wrap
  29369. msgid "{Data Type} xfce-desktop-configuration"
  29370. msgstr ""
  29371. #. type: deftp
  29372. #: guix-git/doc/guix.texi:19461
  29373. msgid "Configuration record for the Xfce desktop environment."
  29374. msgstr ""
  29375. #. type: item
  29376. #: guix-git/doc/guix.texi:19463
  29377. #, no-wrap
  29378. msgid "@code{xfce} (default: @code{xfce})"
  29379. msgstr "@code{xfce}(默认值:@code{xfce})"
  29380. #. type: table
  29381. #: guix-git/doc/guix.texi:19465
  29382. msgid "The Xfce package to use."
  29383. msgstr ""
  29384. #. type: deffn
  29385. #: guix-git/doc/guix.texi:19468
  29386. #, no-wrap
  29387. msgid "{Scheme Variable} mate-desktop-service-type"
  29388. msgstr ""
  29389. #. type: deffn
  29390. #: guix-git/doc/guix.texi:19472
  29391. 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)."
  29392. msgstr ""
  29393. #. type: deffn
  29394. #: guix-git/doc/guix.texi:19476
  29395. msgid "This service adds the @code{mate} package to the system profile, and extends polkit with the actions from @code{mate-settings-daemon}."
  29396. msgstr ""
  29397. #. type: deftp
  29398. #: guix-git/doc/guix.texi:19478
  29399. #, no-wrap
  29400. msgid "{Data Type} mate-desktop-configuration"
  29401. msgstr ""
  29402. #. type: deftp
  29403. #: guix-git/doc/guix.texi:19480
  29404. msgid "Configuration record for the MATE desktop environment."
  29405. msgstr ""
  29406. #. type: item
  29407. #: guix-git/doc/guix.texi:19482
  29408. #, no-wrap
  29409. msgid "@code{mate} (default: @code{mate})"
  29410. msgstr "@code{mate}(默认值:@code{mate})"
  29411. #. type: table
  29412. #: guix-git/doc/guix.texi:19484
  29413. msgid "The MATE package to use."
  29414. msgstr ""
  29415. #. type: deffn
  29416. #: guix-git/doc/guix.texi:19487
  29417. #, no-wrap
  29418. msgid "{Scheme Variable} lxqt-desktop-service-type"
  29419. msgstr ""
  29420. #. type: deffn
  29421. #: guix-git/doc/guix.texi:19491
  29422. 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)."
  29423. msgstr ""
  29424. #. type: deffn
  29425. #: guix-git/doc/guix.texi:19494
  29426. msgid "This service adds the @code{lxqt} package to the system profile."
  29427. msgstr ""
  29428. #. type: deftp
  29429. #: guix-git/doc/guix.texi:19496
  29430. #, no-wrap
  29431. msgid "{Data Type} lxqt-desktop-configuration"
  29432. msgstr ""
  29433. #. type: deftp
  29434. #: guix-git/doc/guix.texi:19498
  29435. msgid "Configuration record for the LXQt desktop environment."
  29436. msgstr ""
  29437. #. type: item
  29438. #: guix-git/doc/guix.texi:19500
  29439. #, fuzzy, no-wrap
  29440. msgid "@code{lxqt} (default: @code{lxqt})"
  29441. msgstr "@code{xfce}(默认值:@code{xfce})"
  29442. #. type: table
  29443. #: guix-git/doc/guix.texi:19502
  29444. #, fuzzy
  29445. msgid "The LXQT package to use."
  29446. msgstr "软件包数据类型。"
  29447. #. type: deffn
  29448. #: guix-git/doc/guix.texi:19505
  29449. #, no-wrap
  29450. msgid "{Scheme Variable} enlightenment-desktop-service-type"
  29451. msgstr ""
  29452. #. type: deffn
  29453. #: guix-git/doc/guix.texi:19508
  29454. msgid "Return a service that adds the @code{enlightenment} package to the system profile, and extends dbus with actions from @code{efl}."
  29455. msgstr ""
  29456. #. type: deftp
  29457. #: guix-git/doc/guix.texi:19510
  29458. #, no-wrap
  29459. msgid "{Data Type} enlightenment-desktop-service-configuration"
  29460. msgstr ""
  29461. #. type: item
  29462. #: guix-git/doc/guix.texi:19512
  29463. #, no-wrap
  29464. msgid "@code{enlightenment} (default: @code{enlightenment})"
  29465. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  29466. #. type: table
  29467. #: guix-git/doc/guix.texi:19514
  29468. msgid "The enlightenment package to use."
  29469. msgstr ""
  29470. #. type: Plain text
  29471. #: guix-git/doc/guix.texi:19522
  29472. 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}:"
  29473. msgstr ""
  29474. #. type: lisp
  29475. #: guix-git/doc/guix.texi:19533
  29476. #, no-wrap
  29477. msgid ""
  29478. "(use-modules (gnu))\n"
  29479. "(use-service-modules desktop)\n"
  29480. "(operating-system\n"
  29481. " ...\n"
  29482. " ;; cons* adds items to the list given as its last argument.\n"
  29483. " (services (cons* (service gnome-desktop-service-type)\n"
  29484. " (service xfce-desktop-service)\n"
  29485. " %desktop-services))\n"
  29486. " ...)\n"
  29487. msgstr ""
  29488. #. type: Plain text
  29489. #: guix-git/doc/guix.texi:19537
  29490. msgid "These desktop environments will then be available as options in the graphical login window."
  29491. msgstr ""
  29492. #. type: Plain text
  29493. #: guix-git/doc/guix.texi:19541
  29494. 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."
  29495. msgstr ""
  29496. #. type: deffn
  29497. #: guix-git/doc/guix.texi:19542
  29498. #, no-wrap
  29499. msgid "{Scheme Procedure} dbus-service [#:dbus @var{dbus}] [#:services '()]"
  29500. msgstr ""
  29501. #. type: deffn
  29502. #: guix-git/doc/guix.texi:19545
  29503. msgid "Return a service that runs the ``system bus'', using @var{dbus}, with support for @var{services}."
  29504. msgstr ""
  29505. #. type: deffn
  29506. #: guix-git/doc/guix.texi:19549
  29507. 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."
  29508. msgstr ""
  29509. #. type: deffn
  29510. #: guix-git/doc/guix.texi:19554
  29511. 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)}."
  29512. msgstr ""
  29513. #. type: deffn
  29514. #: guix-git/doc/guix.texi:19556
  29515. #, no-wrap
  29516. msgid "{Scheme Procedure} elogind-service [#:config @var{config}]"
  29517. msgstr ""
  29518. #. type: deffn
  29519. #: guix-git/doc/guix.texi:19562
  29520. 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."
  29521. msgstr ""
  29522. #. type: deffn
  29523. #: guix-git/doc/guix.texi:19566
  29524. 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."
  29525. msgstr ""
  29526. #. type: deffn
  29527. #: guix-git/doc/guix.texi:19571
  29528. 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:"
  29529. msgstr ""
  29530. #. type: item
  29531. #: guix-git/doc/guix.texi:19573
  29532. #, no-wrap
  29533. msgid "kill-user-processes?"
  29534. msgstr ""
  29535. #. type: code{#1}
  29536. #: guix-git/doc/guix.texi:19575 guix-git/doc/guix.texi:19595
  29537. #: guix-git/doc/guix.texi:19597 guix-git/doc/guix.texi:19599
  29538. #: guix-git/doc/guix.texi:19611
  29539. msgid "#f"
  29540. msgstr ""
  29541. #. type: item
  29542. #: guix-git/doc/guix.texi:19575
  29543. #, no-wrap
  29544. msgid "kill-only-users"
  29545. msgstr ""
  29546. #. type: code{#1}
  29547. #: guix-git/doc/guix.texi:19577 guix-git/doc/guix.texi:19617
  29548. msgid "()"
  29549. msgstr ""
  29550. #. type: item
  29551. #: guix-git/doc/guix.texi:19577
  29552. #, no-wrap
  29553. msgid "kill-exclude-users"
  29554. msgstr ""
  29555. #. type: code{#1}
  29556. #: guix-git/doc/guix.texi:19579
  29557. msgid "(\"root\")"
  29558. msgstr ""
  29559. #. type: item
  29560. #: guix-git/doc/guix.texi:19579
  29561. #, no-wrap
  29562. msgid "inhibit-delay-max-seconds"
  29563. msgstr ""
  29564. #. type: code{#1}
  29565. #: guix-git/doc/guix.texi:19581
  29566. msgid "5"
  29567. msgstr ""
  29568. #. type: item
  29569. #: guix-git/doc/guix.texi:19581
  29570. #, no-wrap
  29571. msgid "handle-power-key"
  29572. msgstr ""
  29573. #. type: code{#1}
  29574. #: guix-git/doc/guix.texi:19583
  29575. msgid "poweroff"
  29576. msgstr ""
  29577. #. type: item
  29578. #: guix-git/doc/guix.texi:19583
  29579. #, no-wrap
  29580. msgid "handle-suspend-key"
  29581. msgstr ""
  29582. #. type: code{#1}
  29583. #: guix-git/doc/guix.texi:19585 guix-git/doc/guix.texi:19589
  29584. msgid "suspend"
  29585. msgstr ""
  29586. #. type: item
  29587. #: guix-git/doc/guix.texi:19585
  29588. #, no-wrap
  29589. msgid "handle-hibernate-key"
  29590. msgstr ""
  29591. #. type: code{#1}
  29592. #: guix-git/doc/guix.texi:19587
  29593. msgid "hibernate"
  29594. msgstr ""
  29595. #. type: item
  29596. #: guix-git/doc/guix.texi:19587
  29597. #, no-wrap
  29598. msgid "handle-lid-switch"
  29599. msgstr ""
  29600. #. type: item
  29601. #: guix-git/doc/guix.texi:19589
  29602. #, no-wrap
  29603. msgid "handle-lid-switch-docked"
  29604. msgstr ""
  29605. #. type: code{#1}
  29606. #: guix-git/doc/guix.texi:19591 guix-git/doc/guix.texi:19593
  29607. #: guix-git/doc/guix.texi:19605
  29608. msgid "ignore"
  29609. msgstr ""
  29610. #. type: item
  29611. #: guix-git/doc/guix.texi:19591
  29612. #, no-wrap
  29613. msgid "handle-lid-switch-external-power"
  29614. msgstr ""
  29615. #. type: item
  29616. #: guix-git/doc/guix.texi:19593
  29617. #, no-wrap
  29618. msgid "power-key-ignore-inhibited?"
  29619. msgstr ""
  29620. #. type: item
  29621. #: guix-git/doc/guix.texi:19595
  29622. #, no-wrap
  29623. msgid "suspend-key-ignore-inhibited?"
  29624. msgstr ""
  29625. #. type: item
  29626. #: guix-git/doc/guix.texi:19597
  29627. #, no-wrap
  29628. msgid "hibernate-key-ignore-inhibited?"
  29629. msgstr ""
  29630. #. type: item
  29631. #: guix-git/doc/guix.texi:19599
  29632. #, no-wrap
  29633. msgid "lid-switch-ignore-inhibited?"
  29634. msgstr ""
  29635. #. type: code{#1}
  29636. #: guix-git/doc/guix.texi:19601 guix-git/doc/guix.texi:19613
  29637. msgid "#t"
  29638. msgstr ""
  29639. #. type: item
  29640. #: guix-git/doc/guix.texi:19601
  29641. #, no-wrap
  29642. msgid "holdoff-timeout-seconds"
  29643. msgstr ""
  29644. #. type: code{#1}
  29645. #: guix-git/doc/guix.texi:19603
  29646. msgid "30"
  29647. msgstr ""
  29648. #. type: item
  29649. #: guix-git/doc/guix.texi:19603
  29650. #, no-wrap
  29651. msgid "idle-action"
  29652. msgstr ""
  29653. #. type: item
  29654. #: guix-git/doc/guix.texi:19605
  29655. #, no-wrap
  29656. msgid "idle-action-seconds"
  29657. msgstr ""
  29658. #. type: code{#1}
  29659. #: guix-git/doc/guix.texi:19607
  29660. msgid "(* 30 60)"
  29661. msgstr ""
  29662. #. type: item
  29663. #: guix-git/doc/guix.texi:19607
  29664. #, no-wrap
  29665. msgid "runtime-directory-size-percent"
  29666. msgstr ""
  29667. #. type: code{#1}
  29668. #: guix-git/doc/guix.texi:19609
  29669. msgid "10"
  29670. msgstr ""
  29671. #. type: item
  29672. #: guix-git/doc/guix.texi:19609
  29673. #, no-wrap
  29674. msgid "runtime-directory-size"
  29675. msgstr ""
  29676. #. type: item
  29677. #: guix-git/doc/guix.texi:19611
  29678. #, no-wrap
  29679. msgid "remove-ipc?"
  29680. msgstr ""
  29681. #. type: item
  29682. #: guix-git/doc/guix.texi:19613
  29683. #, no-wrap
  29684. msgid "suspend-state"
  29685. msgstr ""
  29686. #. type: code{#1}
  29687. #: guix-git/doc/guix.texi:19615
  29688. msgid "(\"mem\" \"standby\" \"freeze\")"
  29689. msgstr ""
  29690. #. type: item
  29691. #: guix-git/doc/guix.texi:19615
  29692. #, no-wrap
  29693. msgid "suspend-mode"
  29694. msgstr ""
  29695. #. type: item
  29696. #: guix-git/doc/guix.texi:19617
  29697. #, no-wrap
  29698. msgid "hibernate-state"
  29699. msgstr ""
  29700. #. type: code{#1}
  29701. #: guix-git/doc/guix.texi:19619 guix-git/doc/guix.texi:19623
  29702. msgid "(\"disk\")"
  29703. msgstr ""
  29704. #. type: item
  29705. #: guix-git/doc/guix.texi:19619
  29706. #, no-wrap
  29707. msgid "hibernate-mode"
  29708. msgstr ""
  29709. #. type: code{#1}
  29710. #: guix-git/doc/guix.texi:19621
  29711. msgid "(\"platform\" \"shutdown\")"
  29712. msgstr ""
  29713. #. type: item
  29714. #: guix-git/doc/guix.texi:19621
  29715. #, no-wrap
  29716. msgid "hybrid-sleep-state"
  29717. msgstr ""
  29718. #. type: item
  29719. #: guix-git/doc/guix.texi:19623
  29720. #, no-wrap
  29721. msgid "hybrid-sleep-mode"
  29722. msgstr ""
  29723. #. type: code{#1}
  29724. #: guix-git/doc/guix.texi:19625
  29725. msgid "(\"suspend\" \"platform\" \"shutdown\")"
  29726. msgstr ""
  29727. #. type: deffn
  29728. #: guix-git/doc/guix.texi:19628
  29729. #, no-wrap
  29730. msgid "{Scheme Procedure} accountsservice-service @"
  29731. msgstr ""
  29732. #. type: deffn
  29733. #: guix-git/doc/guix.texi:19636
  29734. 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."
  29735. msgstr ""
  29736. #. type: deffn
  29737. #: guix-git/doc/guix.texi:19639
  29738. msgid "The @var{accountsservice} keyword argument is the @code{accountsservice} package to expose as a service."
  29739. msgstr ""
  29740. #. type: deffn
  29741. #: guix-git/doc/guix.texi:19641
  29742. #, no-wrap
  29743. msgid "{Scheme Procedure} polkit-service @"
  29744. msgstr ""
  29745. #. type: deffn
  29746. #: guix-git/doc/guix.texi:19650
  29747. 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."
  29748. msgstr ""
  29749. #. type: defvr
  29750. #: guix-git/doc/guix.texi:19652
  29751. #, no-wrap
  29752. msgid "{Scheme Variable} polkit-wheel-service"
  29753. msgstr ""
  29754. #. type: defvr
  29755. #: guix-git/doc/guix.texi:19657
  29756. 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}."
  29757. msgstr ""
  29758. #. type: defvr
  29759. #: guix-git/doc/guix.texi:19659
  29760. #, no-wrap
  29761. msgid "{Scheme Variable} upower-service-type"
  29762. msgstr ""
  29763. #. type: defvr
  29764. #: guix-git/doc/guix.texi:19663
  29765. 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."
  29766. msgstr ""
  29767. #. type: defvr
  29768. #: guix-git/doc/guix.texi:19666
  29769. msgid "It implements the @code{org.freedesktop.UPower} D-Bus interface, and is notably used by GNOME."
  29770. msgstr ""
  29771. #. type: deftp
  29772. #: guix-git/doc/guix.texi:19668
  29773. #, no-wrap
  29774. msgid "{Data Type} upower-configuration"
  29775. msgstr ""
  29776. #. type: deftp
  29777. #: guix-git/doc/guix.texi:19670
  29778. msgid "Data type representation the configuration for UPower."
  29779. msgstr ""
  29780. #. type: item
  29781. #: guix-git/doc/guix.texi:19673
  29782. #, no-wrap
  29783. msgid "@code{upower} (default: @var{upower})"
  29784. msgstr ""
  29785. #. type: table
  29786. #: guix-git/doc/guix.texi:19675
  29787. msgid "Package to use for @code{upower}."
  29788. msgstr ""
  29789. #. type: item
  29790. #: guix-git/doc/guix.texi:19676
  29791. #, no-wrap
  29792. msgid "@code{watts-up-pro?} (default: @code{#f})"
  29793. msgstr ""
  29794. #. type: table
  29795. #: guix-git/doc/guix.texi:19678
  29796. msgid "Enable the Watts Up Pro device."
  29797. msgstr ""
  29798. #. type: item
  29799. #: guix-git/doc/guix.texi:19679
  29800. #, no-wrap
  29801. msgid "@code{poll-batteries?} (default: @code{#t})"
  29802. msgstr ""
  29803. #. type: table
  29804. #: guix-git/doc/guix.texi:19681
  29805. msgid "Enable polling the kernel for battery level changes."
  29806. msgstr ""
  29807. #. type: item
  29808. #: guix-git/doc/guix.texi:19682
  29809. #, no-wrap
  29810. msgid "@code{ignore-lid?} (default: @code{#f})"
  29811. msgstr ""
  29812. #. type: table
  29813. #: guix-git/doc/guix.texi:19684
  29814. msgid "Ignore the lid state, this can be useful if it's incorrect on a device."
  29815. msgstr ""
  29816. #. type: item
  29817. #: guix-git/doc/guix.texi:19685
  29818. #, no-wrap
  29819. msgid "@code{use-percentage-for-policy?} (default: @code{#f})"
  29820. msgstr ""
  29821. #. type: table
  29822. #: guix-git/doc/guix.texi:19688
  29823. 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."
  29824. msgstr ""
  29825. #. type: item
  29826. #: guix-git/doc/guix.texi:19689
  29827. #, no-wrap
  29828. msgid "@code{percentage-low} (default: @code{10})"
  29829. msgstr ""
  29830. #. type: table
  29831. #: guix-git/doc/guix.texi:19692
  29832. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered low."
  29833. msgstr ""
  29834. #. type: item
  29835. #: guix-git/doc/guix.texi:19693
  29836. #, no-wrap
  29837. msgid "@code{percentage-critical} (default: @code{3})"
  29838. msgstr ""
  29839. #. type: table
  29840. #: guix-git/doc/guix.texi:19696
  29841. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered critical."
  29842. msgstr ""
  29843. #. type: item
  29844. #: guix-git/doc/guix.texi:19697
  29845. #, no-wrap
  29846. msgid "@code{percentage-action} (default: @code{2})"
  29847. msgstr ""
  29848. #. type: table
  29849. #: guix-git/doc/guix.texi:19700
  29850. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which action will be taken."
  29851. msgstr ""
  29852. #. type: item
  29853. #: guix-git/doc/guix.texi:19701
  29854. #, no-wrap
  29855. msgid "@code{time-low} (default: @code{1200})"
  29856. msgstr ""
  29857. #. type: table
  29858. #: guix-git/doc/guix.texi:19704
  29859. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered low."
  29860. msgstr ""
  29861. #. type: item
  29862. #: guix-git/doc/guix.texi:19705
  29863. #, no-wrap
  29864. msgid "@code{time-critical} (default: @code{300})"
  29865. msgstr ""
  29866. #. type: table
  29867. #: guix-git/doc/guix.texi:19708
  29868. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered critical."
  29869. msgstr ""
  29870. #. type: item
  29871. #: guix-git/doc/guix.texi:19709
  29872. #, no-wrap
  29873. msgid "@code{time-action} (default: @code{120})"
  29874. msgstr ""
  29875. #. type: table
  29876. #: guix-git/doc/guix.texi:19712
  29877. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which action will be taken."
  29878. msgstr ""
  29879. #. type: item
  29880. #: guix-git/doc/guix.texi:19713
  29881. #, no-wrap
  29882. msgid "@code{critical-power-action} (default: @code{'hybrid-sleep})"
  29883. msgstr ""
  29884. #. type: table
  29885. #: guix-git/doc/guix.texi:19716
  29886. msgid "The action taken when @code{percentage-action} or @code{time-action} is reached (depending on the configuration of @code{use-percentage-for-policy?})."
  29887. msgstr ""
  29888. #. type: table
  29889. #: guix-git/doc/guix.texi:19718
  29890. msgid "Possible values are:"
  29891. msgstr ""
  29892. #. type: code{#1}
  29893. #: guix-git/doc/guix.texi:19722
  29894. msgid "'power-off"
  29895. msgstr ""
  29896. #. type: code{#1}
  29897. #: guix-git/doc/guix.texi:19725
  29898. msgid "'hibernate"
  29899. msgstr ""
  29900. #. type: itemize
  29901. #: guix-git/doc/guix.texi:19728
  29902. msgid "@code{'hybrid-sleep}."
  29903. msgstr ""
  29904. #. type: deffn
  29905. #: guix-git/doc/guix.texi:19733
  29906. #, no-wrap
  29907. msgid "{Scheme Procedure} udisks-service [#:udisks @var{udisks}]"
  29908. msgstr ""
  29909. #. type: deffn
  29910. #: guix-git/doc/guix.texi:19743
  29911. 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."
  29912. msgstr ""
  29913. #. type: deffn
  29914. #: guix-git/doc/guix.texi:19745
  29915. #, no-wrap
  29916. msgid "{Scheme Variable} colord-service-type"
  29917. msgstr ""
  29918. #. type: deffn
  29919. #: guix-git/doc/guix.texi:19752
  29920. 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."
  29921. msgstr ""
  29922. #. type: cindex
  29923. #: guix-git/doc/guix.texi:19754
  29924. #, no-wrap
  29925. msgid "scanner access"
  29926. msgstr ""
  29927. #. type: defvr
  29928. #: guix-git/doc/guix.texi:19755
  29929. #, no-wrap
  29930. msgid "{Scheme Variable} sane-service-type"
  29931. msgstr ""
  29932. #. type: defvr
  29933. #: guix-git/doc/guix.texi:19761
  29934. 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."
  29935. msgstr ""
  29936. #. type: defvr
  29937. #: guix-git/doc/guix.texi:19763
  29938. #, no-wrap
  29939. msgid "{Scheme Variable} sane-backends-minimal"
  29940. msgstr ""
  29941. #. type: defvr
  29942. #: guix-git/doc/guix.texi:19766
  29943. msgid "The default package which the @code{sane-service-type} installs. It supports many recent scanners."
  29944. msgstr ""
  29945. #. type: defvr
  29946. #: guix-git/doc/guix.texi:19768
  29947. #, no-wrap
  29948. msgid "{Scheme Variable} sane-backends"
  29949. msgstr ""
  29950. #. type: defvr
  29951. #: guix-git/doc/guix.texi:19775
  29952. 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:"
  29953. msgstr ""
  29954. #. type: lisp
  29955. #: guix-git/doc/guix.texi:19784
  29956. #, no-wrap
  29957. msgid ""
  29958. "(use-modules (gnu))\n"
  29959. "(use-service-modules\n"
  29960. " @dots{}\n"
  29961. " desktop)\n"
  29962. "(use-package-modules\n"
  29963. " @dots{}\n"
  29964. " scanner)\n"
  29965. "\n"
  29966. msgstr ""
  29967. #. type: lisp
  29968. #: guix-git/doc/guix.texi:19789
  29969. #, no-wrap
  29970. msgid ""
  29971. "(define %my-desktop-services\n"
  29972. " ;; List of desktop services that supports a broader range of scanners.\n"
  29973. " (modify-services %desktop-services\n"
  29974. " (sane-service-type _ => sane-backends)))\n"
  29975. "\n"
  29976. msgstr ""
  29977. #. type: lisp
  29978. #: guix-git/doc/guix.texi:19793
  29979. #, no-wrap
  29980. msgid ""
  29981. "(operating-system\n"
  29982. " @dots{}\n"
  29983. " (services %my-desktop-services)\n"
  29984. msgstr ""
  29985. #. type: deffn
  29986. #: guix-git/doc/guix.texi:19796
  29987. #, no-wrap
  29988. msgid "{Scheme Procedure} geoclue-application name [#:allowed? #t] [#:system? #f] [#:users '()]"
  29989. msgstr ""
  29990. #. type: deffn
  29991. #: guix-git/doc/guix.texi:19805
  29992. 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."
  29993. msgstr ""
  29994. #. type: defvr
  29995. #: guix-git/doc/guix.texi:19807
  29996. #, no-wrap
  29997. msgid "{Scheme Variable} %standard-geoclue-applications"
  29998. msgstr ""
  29999. #. type: defvr
  30000. #: guix-git/doc/guix.texi:19814
  30001. 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."
  30002. msgstr ""
  30003. #. type: deffn
  30004. #: guix-git/doc/guix.texi:19816
  30005. #, no-wrap
  30006. msgid "{Scheme Procedure} geoclue-service [#:colord @var{colord}] @"
  30007. msgstr ""
  30008. #. type: deffn
  30009. #: guix-git/doc/guix.texi:19829
  30010. 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."
  30011. msgstr ""
  30012. #. type: deffn
  30013. #: guix-git/doc/guix.texi:19831
  30014. #, no-wrap
  30015. msgid "{Scheme Procedure} bluetooth-service [#:bluez @var{bluez}] @"
  30016. msgstr ""
  30017. #. type: deffn
  30018. #: guix-git/doc/guix.texi:19838
  30019. 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."
  30020. msgstr ""
  30021. #. type: deffn
  30022. #: guix-git/doc/guix.texi:19840
  30023. msgid "Users need to be in the @code{lp} group to access the D-Bus service."
  30024. msgstr ""
  30025. #. type: defvr
  30026. #: guix-git/doc/guix.texi:19842
  30027. #, no-wrap
  30028. msgid "{Scheme Variable} gnome-keyring-service-type"
  30029. msgstr ""
  30030. #. type: defvr
  30031. #: guix-git/doc/guix.texi:19846
  30032. 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)."
  30033. msgstr ""
  30034. #. type: defvr
  30035. #: guix-git/doc/guix.texi:19850
  30036. 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."
  30037. msgstr ""
  30038. #. type: deftp
  30039. #: guix-git/doc/guix.texi:19852
  30040. #, no-wrap
  30041. msgid "{Data Type} gnome-keyring-configuration"
  30042. msgstr ""
  30043. #. type: deftp
  30044. #: guix-git/doc/guix.texi:19854
  30045. msgid "Configuration record for the GNOME Keyring service."
  30046. msgstr ""
  30047. #. type: item
  30048. #: guix-git/doc/guix.texi:19856
  30049. #, fuzzy, no-wrap
  30050. msgid "@code{keyring} (default: @code{gnome-keyring})"
  30051. msgstr "@code{gnome}(默认值:@code{gnome})"
  30052. #. type: table
  30053. #: guix-git/doc/guix.texi:19858
  30054. msgid "The GNOME keyring package to use."
  30055. msgstr ""
  30056. #. type: code{#1}
  30057. #: guix-git/doc/guix.texi:19859
  30058. #, fuzzy, no-wrap
  30059. msgid "pam-services"
  30060. msgstr "基础服务"
  30061. #. type: table
  30062. #: guix-git/doc/guix.texi:19864
  30063. 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}."
  30064. msgstr ""
  30065. #. type: table
  30066. #: guix-git/doc/guix.texi:19870
  30067. 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."
  30068. msgstr ""
  30069. #. type: table
  30070. #: guix-git/doc/guix.texi:19873
  30071. msgid "By default, this field contains ``gdm-password'' with the value @code{login} and ``passwd'' is with the value @code{passwd}."
  30072. msgstr ""
  30073. #. type: cindex
  30074. #: guix-git/doc/guix.texi:19880
  30075. #, no-wrap
  30076. msgid "sound support"
  30077. msgstr ""
  30078. #. type: cindex
  30079. #: guix-git/doc/guix.texi:19881
  30080. #, no-wrap
  30081. msgid "ALSA"
  30082. msgstr ""
  30083. #. type: cindex
  30084. #: guix-git/doc/guix.texi:19882
  30085. #, no-wrap
  30086. msgid "PulseAudio, sound support"
  30087. msgstr ""
  30088. #. type: Plain text
  30089. #: guix-git/doc/guix.texi:19887
  30090. 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."
  30091. msgstr ""
  30092. #. type: deffn
  30093. #: guix-git/doc/guix.texi:19888
  30094. #, no-wrap
  30095. msgid "{Scheme Variable} alsa-service-type"
  30096. msgstr ""
  30097. #. type: deffn
  30098. #: guix-git/doc/guix.texi:19893
  30099. 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:"
  30100. msgstr ""
  30101. #. type: lisp
  30102. #: guix-git/doc/guix.texi:19896
  30103. #, no-wrap
  30104. msgid "(service alsa-service-type)\n"
  30105. msgstr ""
  30106. #. type: deffn
  30107. #: guix-git/doc/guix.texi:19899
  30108. msgid "See below for details about @code{alsa-configuration}."
  30109. msgstr ""
  30110. #. type: deftp
  30111. #: guix-git/doc/guix.texi:19901
  30112. #, no-wrap
  30113. msgid "{Data Type} alsa-configuration"
  30114. msgstr ""
  30115. #. type: deftp
  30116. #: guix-git/doc/guix.texi:19903
  30117. msgid "Data type representing the configuration for @code{alsa-service}."
  30118. msgstr ""
  30119. #. type: item
  30120. #: guix-git/doc/guix.texi:19905
  30121. #, no-wrap
  30122. msgid "@code{alsa-plugins} (default: @var{alsa-plugins})"
  30123. msgstr ""
  30124. #. type: table
  30125. #: guix-git/doc/guix.texi:19907
  30126. msgid "@code{alsa-plugins} package to use."
  30127. msgstr ""
  30128. #. type: item
  30129. #: guix-git/doc/guix.texi:19908
  30130. #, no-wrap
  30131. msgid "@code{pulseaudio?} (default: @var{#t})"
  30132. msgstr ""
  30133. #. type: table
  30134. #: guix-git/doc/guix.texi:19911
  30135. msgid "Whether ALSA applications should transparently be made to use the @uref{https://www.pulseaudio.org/, PulseAudio} sound server."
  30136. msgstr ""
  30137. #. type: table
  30138. #: guix-git/doc/guix.texi:19915
  30139. 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."
  30140. msgstr ""
  30141. #. type: item
  30142. #: guix-git/doc/guix.texi:19916
  30143. #, no-wrap
  30144. msgid "@code{extra-options} (default: @var{\"\"})"
  30145. msgstr ""
  30146. #. type: table
  30147. #: guix-git/doc/guix.texi:19918
  30148. msgid "String to append to the @file{/etc/asound.conf} file."
  30149. msgstr ""
  30150. #. type: Plain text
  30151. #: guix-git/doc/guix.texi:19924
  30152. msgid "Individual users who want to override the system configuration of ALSA can do it with the @file{~/.asoundrc} file:"
  30153. msgstr ""
  30154. #. type: example
  30155. #: guix-git/doc/guix.texi:19930
  30156. #, no-wrap
  30157. msgid ""
  30158. "# In guix, we have to specify the absolute path for plugins.\n"
  30159. "pcm_type.jack @{\n"
  30160. " lib \"/home/alice/.guix-profile/lib/alsa-lib/libasound_module_pcm_jack.so\"\n"
  30161. "@}\n"
  30162. "\n"
  30163. msgstr ""
  30164. #. type: example
  30165. #: guix-git/doc/guix.texi:19939
  30166. #, no-wrap
  30167. msgid ""
  30168. "# Routing ALSA to jack:\n"
  30169. "# <http://jackaudio.org/faq/routing_alsa.html>.\n"
  30170. "pcm.rawjack @{\n"
  30171. " type jack\n"
  30172. " playback_ports @{\n"
  30173. " 0 system:playback_1\n"
  30174. " 1 system:playback_2\n"
  30175. " @}\n"
  30176. "\n"
  30177. msgstr ""
  30178. #. type: example
  30179. #: guix-git/doc/guix.texi:19945
  30180. #, no-wrap
  30181. msgid ""
  30182. " capture_ports @{\n"
  30183. " 0 system:capture_1\n"
  30184. " 1 system:capture_2\n"
  30185. " @}\n"
  30186. "@}\n"
  30187. "\n"
  30188. msgstr ""
  30189. #. type: example
  30190. #: guix-git/doc/guix.texi:19952
  30191. #, no-wrap
  30192. msgid ""
  30193. "pcm.!default @{\n"
  30194. " type plug\n"
  30195. " slave @{\n"
  30196. " pcm \"rawjack\"\n"
  30197. " @}\n"
  30198. "@}\n"
  30199. msgstr ""
  30200. #. type: Plain text
  30201. #: guix-git/doc/guix.texi:19956
  30202. msgid "See @uref{https://www.alsa-project.org/main/index.php/Asoundrc} for the details."
  30203. msgstr ""
  30204. #. type: deffn
  30205. #: guix-git/doc/guix.texi:19957
  30206. #, no-wrap
  30207. msgid "{Scheme Variable} pulseaudio-service-type"
  30208. msgstr ""
  30209. #. type: deffn
  30210. #: guix-git/doc/guix.texi:19961
  30211. 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."
  30212. msgstr ""
  30213. #. type: quotation
  30214. #: guix-git/doc/guix.texi:19967
  30215. 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}."
  30216. msgstr ""
  30217. #. type: quotation
  30218. #: guix-git/doc/guix.texi:19975
  30219. 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."
  30220. msgstr ""
  30221. #. type: deftp
  30222. #: guix-git/doc/guix.texi:19978
  30223. #, fuzzy, no-wrap
  30224. msgid "{Data Type} pulseaudio-configuration"
  30225. msgstr "{数据类型} build-machine"
  30226. #. type: deftp
  30227. #: guix-git/doc/guix.texi:19980
  30228. msgid "Data type representing the configuration for @code{pulseaudio-service}."
  30229. msgstr ""
  30230. #. type: item
  30231. #: guix-git/doc/guix.texi:19982
  30232. #, fuzzy, no-wrap
  30233. msgid "@code{client-conf} (default: @code{'()})"
  30234. msgstr "@code{includes}(默认值:@code{'()})"
  30235. #. type: table
  30236. #: guix-git/doc/guix.texi:19987
  30237. msgid "List of settings to set in @file{client.conf}. Accepts a list of strings or a symbol-value pairs. A string will be inserted as-is with a newline added. A pair will be formatted as ``key = value'', again with a newline added."
  30238. msgstr ""
  30239. #. type: item
  30240. #: guix-git/doc/guix.texi:19988
  30241. #, fuzzy, no-wrap
  30242. msgid "@code{daemon-conf} (default: @code{'((flat-volumes . no))})"
  30243. msgstr "@code{mate}(默认值:@code{mate})"
  30244. #. type: table
  30245. #: guix-git/doc/guix.texi:19991
  30246. msgid "List of settings to set in @file{daemon.conf}, formatted just like @var{client-conf}."
  30247. msgstr ""
  30248. #. type: item
  30249. #: guix-git/doc/guix.texi:19992
  30250. #, no-wrap
  30251. msgid "@code{script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/default.pa\")})"
  30252. msgstr ""
  30253. #. type: table
  30254. #: guix-git/doc/guix.texi:19994
  30255. msgid "Script file to use as @file{default.pa}."
  30256. msgstr ""
  30257. #. type: item
  30258. #: guix-git/doc/guix.texi:19995
  30259. #, no-wrap
  30260. msgid "@code{system-script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/system.pa\")})"
  30261. msgstr ""
  30262. #. type: table
  30263. #: guix-git/doc/guix.texi:19997
  30264. msgid "Script file to use as @file{system.pa}."
  30265. msgstr ""
  30266. #. type: deffn
  30267. #: guix-git/doc/guix.texi:20000
  30268. #, no-wrap
  30269. msgid "{Scheme Variable} ladspa-service-type"
  30270. msgstr ""
  30271. #. type: deffn
  30272. #: guix-git/doc/guix.texi:20003
  30273. msgid "This service sets the @var{LADSPA_PATH} variable, so that programs, which respect it, e.g. PulseAudio, can load LADSPA plugins."
  30274. msgstr ""
  30275. #. type: deffn
  30276. #: guix-git/doc/guix.texi:20006
  30277. msgid "The following example will setup the service to enable modules from the @code{swh-plugins} package:"
  30278. msgstr ""
  30279. #. type: lisp
  30280. #: guix-git/doc/guix.texi:20010
  30281. #, no-wrap
  30282. msgid ""
  30283. "(service ladspa-service-type\n"
  30284. " (ladspa-configuration (plugins (list swh-plugins))))\n"
  30285. msgstr ""
  30286. #. type: deffn
  30287. #: guix-git/doc/guix.texi:20014
  30288. msgid "See @uref{http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html} for the details."
  30289. msgstr ""
  30290. #. type: cindex
  30291. #: guix-git/doc/guix.texi:20021
  30292. #, no-wrap
  30293. msgid "SQL"
  30294. msgstr ""
  30295. #. type: Plain text
  30296. #: guix-git/doc/guix.texi:20023
  30297. msgid "The @code{(gnu services databases)} module provides the following services."
  30298. msgstr ""
  30299. #. type: subsubheading
  30300. #: guix-git/doc/guix.texi:20024
  30301. #, no-wrap
  30302. msgid "PostgreSQL"
  30303. msgstr ""
  30304. #. type: Plain text
  30305. #: guix-git/doc/guix.texi:20028
  30306. msgid "The following example describes a PostgreSQL service with the default configuration."
  30307. msgstr ""
  30308. #. type: lisp
  30309. #: guix-git/doc/guix.texi:20033
  30310. #, no-wrap
  30311. msgid ""
  30312. "(service postgresql-service-type\n"
  30313. " (postgresql-configuration\n"
  30314. " (postgresql postgresql-10)))\n"
  30315. msgstr ""
  30316. #. type: Plain text
  30317. #: guix-git/doc/guix.texi:20039
  30318. 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."
  30319. msgstr ""
  30320. #. type: Plain text
  30321. #: guix-git/doc/guix.texi:20046
  30322. 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."
  30323. msgstr ""
  30324. #. type: example
  30325. #: guix-git/doc/guix.texi:20051
  30326. #, no-wrap
  30327. msgid ""
  30328. "sudo -u postgres -s /bin/sh\n"
  30329. "createuser --interactive\n"
  30330. "createdb $MY_USER_LOGIN # Replace appropriately.\n"
  30331. msgstr ""
  30332. #. type: deftp
  30333. #: guix-git/doc/guix.texi:20053
  30334. #, no-wrap
  30335. msgid "{Data Type} postgresql-configuration"
  30336. msgstr ""
  30337. #. type: deftp
  30338. #: guix-git/doc/guix.texi:20056
  30339. msgid "Data type representing the configuration for the @code{postgresql-service-type}."
  30340. msgstr ""
  30341. #. type: code{#1}
  30342. #: guix-git/doc/guix.texi:20058
  30343. #, no-wrap
  30344. msgid "postgresql"
  30345. msgstr ""
  30346. #. type: table
  30347. #: guix-git/doc/guix.texi:20060
  30348. msgid "PostgreSQL package to use for the service."
  30349. msgstr ""
  30350. #. type: item
  30351. #: guix-git/doc/guix.texi:20061
  30352. #, fuzzy, no-wrap
  30353. msgid "@code{port} (default: @code{5432})"
  30354. msgstr "@code{port}(默认值:@code{22})"
  30355. #. type: table
  30356. #: guix-git/doc/guix.texi:20063
  30357. msgid "Port on which PostgreSQL should listen."
  30358. msgstr ""
  30359. #. type: table
  30360. #: guix-git/doc/guix.texi:20066
  30361. msgid "Locale to use as the default when creating the database cluster."
  30362. msgstr ""
  30363. #. type: item
  30364. #: guix-git/doc/guix.texi:20067
  30365. #, fuzzy, no-wrap
  30366. msgid "@code{config-file} (default: @code{(postgresql-config-file)})"
  30367. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  30368. #. type: table
  30369. #: guix-git/doc/guix.texi:20071
  30370. 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."
  30371. msgstr ""
  30372. #. type: item
  30373. #: guix-git/doc/guix.texi:20072
  30374. #, fuzzy, no-wrap
  30375. msgid "@code{log-directory} (default: @code{\"/var/log/postgresql\"})"
  30376. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30377. #. type: table
  30378. #: guix-git/doc/guix.texi:20076
  30379. 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."
  30380. msgstr ""
  30381. #. type: item
  30382. #: guix-git/doc/guix.texi:20077
  30383. #, fuzzy, no-wrap
  30384. msgid "@code{data-directory} (default: @code{\"/var/lib/postgresql/data\"})"
  30385. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30386. #. type: table
  30387. #: guix-git/doc/guix.texi:20079
  30388. msgid "Directory in which to store the data."
  30389. msgstr ""
  30390. #. type: item
  30391. #: guix-git/doc/guix.texi:20080
  30392. #, fuzzy, no-wrap
  30393. msgid "@code{extension-packages} (default: @code{'()})"
  30394. msgstr "@code{includes}(默认值:@code{'()})"
  30395. #. type: cindex
  30396. #: guix-git/doc/guix.texi:20081
  30397. #, no-wrap
  30398. msgid "postgresql extension-packages"
  30399. msgstr ""
  30400. #. type: table
  30401. #: guix-git/doc/guix.texi:20086
  30402. 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:"
  30403. msgstr ""
  30404. #. type: cindex
  30405. #: guix-git/doc/guix.texi:20087
  30406. #, no-wrap
  30407. msgid "postgis"
  30408. msgstr ""
  30409. #. type: lisp
  30410. #: guix-git/doc/guix.texi:20090
  30411. #, no-wrap
  30412. msgid ""
  30413. "(use-package-modules databases geo)\n"
  30414. "\n"
  30415. msgstr ""
  30416. #. type: lisp
  30417. #: guix-git/doc/guix.texi:20103
  30418. #, no-wrap
  30419. msgid ""
  30420. "(operating-system\n"
  30421. " ...\n"
  30422. " ;; postgresql is required to run `psql' but postgis is not required for\n"
  30423. " ;; proper operation.\n"
  30424. " (packages (cons* postgresql %base-packages))\n"
  30425. " (services\n"
  30426. " (cons*\n"
  30427. " (service postgresql-service-type\n"
  30428. " (postgresql-configuration\n"
  30429. " (postgresql postgresql-10)\n"
  30430. " (extension-packages (list postgis))))\n"
  30431. " %base-services)))\n"
  30432. msgstr ""
  30433. #. type: table
  30434. #: guix-git/doc/guix.texi:20107
  30435. msgid "Then the extension becomes visible and you can initialise an empty geographic database in this way:"
  30436. msgstr ""
  30437. #. type: example
  30438. #: guix-git/doc/guix.texi:20114
  30439. #, no-wrap
  30440. msgid ""
  30441. "psql -U postgres\n"
  30442. "> create database postgistest;\n"
  30443. "> \\connect postgistest;\n"
  30444. "> create extension postgis;\n"
  30445. "> create extension postgis_topology;\n"
  30446. msgstr ""
  30447. #. type: table
  30448. #: guix-git/doc/guix.texi:20119
  30449. 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."
  30450. msgstr ""
  30451. #. type: deftp
  30452. #: guix-git/doc/guix.texi:20123
  30453. #, no-wrap
  30454. msgid "{Data Type} postgresql-config-file"
  30455. msgstr ""
  30456. #. type: deftp
  30457. #: guix-git/doc/guix.texi:20129
  30458. 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."
  30459. msgstr ""
  30460. #. type: lisp
  30461. #: guix-git/doc/guix.texi:20149
  30462. #, no-wrap
  30463. msgid ""
  30464. "(service postgresql-service-type\n"
  30465. " (postgresql-configuration\n"
  30466. " (config-file\n"
  30467. " (postgresql-config-file\n"
  30468. " (log-destination \"stderr\")\n"
  30469. " (hba-file\n"
  30470. " (plain-file \"pg_hba.conf\"\n"
  30471. " \"\n"
  30472. "local\tall\tall\t\t\ttrust\n"
  30473. "host\tall\tall\t127.0.0.1/32 \tmd5\n"
  30474. "host\tall\tall\t::1/128 \tmd5\"))\n"
  30475. " (extra-config\n"
  30476. " '((\"session_preload_libraries\" \"auto_explain\")\n"
  30477. " (\"random_page_cost\" 2)\n"
  30478. " (\"auto_explain.log_min_duration\" \"100 ms\")\n"
  30479. " (\"work_mem\" \"500 MB\")\n"
  30480. " (\"logging_collector\" #t)\n"
  30481. " (\"log_directory\" \"/var/log/postgresql\")))))))\n"
  30482. msgstr ""
  30483. #. type: item
  30484. #: guix-git/doc/guix.texi:20152
  30485. #, fuzzy, no-wrap
  30486. msgid "@code{log-destination} (default: @code{\"syslog\"})"
  30487. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  30488. #. type: table
  30489. #: guix-git/doc/guix.texi:20155
  30490. msgid "The logging method to use for PostgreSQL@. Multiple values are accepted, separated by commas."
  30491. msgstr ""
  30492. #. type: item
  30493. #: guix-git/doc/guix.texi:20156
  30494. #, fuzzy, no-wrap
  30495. msgid "@code{hba-file} (default: @code{%default-postgres-hba})"
  30496. msgstr "@code{mate}(默认值:@code{mate})"
  30497. #. type: table
  30498. #: guix-git/doc/guix.texi:20159
  30499. msgid "Filename or G-expression for the host-based authentication configuration."
  30500. msgstr ""
  30501. #. type: item
  30502. #: guix-git/doc/guix.texi:20160
  30503. #, fuzzy, no-wrap
  30504. msgid "@code{ident-file} (default: @code{%default-postgres-ident})"
  30505. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  30506. #. type: table
  30507. #: guix-git/doc/guix.texi:20162
  30508. msgid "Filename or G-expression for the user name mapping configuration."
  30509. msgstr ""
  30510. #. type: item
  30511. #: guix-git/doc/guix.texi:20163
  30512. #, fuzzy, no-wrap
  30513. msgid "@code{socket-directory} (default: @code{#false})"
  30514. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30515. #. type: table
  30516. #: guix-git/doc/guix.texi:20168
  30517. 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."
  30518. msgstr ""
  30519. #. type: table
  30520. #: guix-git/doc/guix.texi:20171
  30521. msgid "By default, the @code{#false} value means the PostgreSQL default value will be used, which is currently @samp{/tmp}."
  30522. msgstr ""
  30523. #. type: table
  30524. #: guix-git/doc/guix.texi:20176
  30525. 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."
  30526. msgstr ""
  30527. #. type: table
  30528. #: guix-git/doc/guix.texi:20182
  30529. 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}."
  30530. msgstr ""
  30531. #. type: deffn
  30532. #: guix-git/doc/guix.texi:20186
  30533. #, no-wrap
  30534. msgid "{Scheme Variable} postgresql-role-service-type"
  30535. msgstr ""
  30536. #. type: deffn
  30537. #: guix-git/doc/guix.texi:20189
  30538. msgid "This service allows to create PostgreSQL roles and databases after PostgreSQL service start. Here is an example of its use."
  30539. msgstr ""
  30540. #. type: lisp
  30541. #: guix-git/doc/guix.texi:20197
  30542. #, no-wrap
  30543. msgid ""
  30544. "(service postgresql-role-service-type\n"
  30545. " (postgresql-role-configuration\n"
  30546. " (roles\n"
  30547. " (list (postgresql-role\n"
  30548. " (name \"test\")\n"
  30549. " (create-database? #t))))))\n"
  30550. msgstr ""
  30551. #. type: deffn
  30552. #: guix-git/doc/guix.texi:20201
  30553. msgid "This service can be extended with extra roles, as in this example:"
  30554. msgstr ""
  30555. #. type: lisp
  30556. #: guix-git/doc/guix.texi:20207
  30557. #, no-wrap
  30558. msgid ""
  30559. "(service-extension postgresql-role-service-type\n"
  30560. " (const (postgresql-role\n"
  30561. " (name \"alice\")\n"
  30562. " (create-database? #t))))\n"
  30563. msgstr ""
  30564. #. type: deftp
  30565. #: guix-git/doc/guix.texi:20210
  30566. #, fuzzy, no-wrap
  30567. msgid "{Data Type} postgresql-role"
  30568. msgstr "{数据类型} build-machine"
  30569. #. type: deftp
  30570. #: guix-git/doc/guix.texi:20216
  30571. 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."
  30572. msgstr ""
  30573. #. type: table
  30574. #: guix-git/doc/guix.texi:20220
  30575. #, fuzzy
  30576. msgid "The role name."
  30577. msgstr "仓库monad"
  30578. #. type: item
  30579. #: guix-git/doc/guix.texi:20221
  30580. #, fuzzy, no-wrap
  30581. msgid "@code{permissions} (default: @code{'(createdb login)})"
  30582. msgstr "@code{includes}(默认值:@code{'()})"
  30583. #. type: table
  30584. #: guix-git/doc/guix.texi:20225
  30585. msgid "The role permissions list. Supported permissions are @code{bypassrls}, @code{createdb}, @code{createrole}, @code{login}, @code{replication} and @code{superuser}."
  30586. msgstr ""
  30587. #. type: item
  30588. #: guix-git/doc/guix.texi:20226
  30589. #, fuzzy, no-wrap
  30590. msgid "@code{create-database?} (default: @code{#f})"
  30591. msgstr "@code{challenge}(默认值:@code{#f})"
  30592. #. type: table
  30593. #: guix-git/doc/guix.texi:20228
  30594. msgid "Whether to create a database with the same name as the role."
  30595. msgstr ""
  30596. #. type: deftp
  30597. #: guix-git/doc/guix.texi:20232
  30598. #, fuzzy, no-wrap
  30599. msgid "{Data Type} postgresql-role-configuration"
  30600. msgstr "管理操作系统配置。"
  30601. #. type: deftp
  30602. #: guix-git/doc/guix.texi:20235
  30603. #, fuzzy
  30604. msgid "Data type representing the configuration of @var{postgresql-role-service-type}."
  30605. msgstr "管理操作系统配置。"
  30606. #. type: item
  30607. #: guix-git/doc/guix.texi:20237
  30608. #, fuzzy, no-wrap
  30609. msgid "@code{host} (default: @code{\"/var/run/postgresql\"})"
  30610. msgstr "@code{port}(默认值:@code{22})"
  30611. #. type: table
  30612. #: guix-git/doc/guix.texi:20239
  30613. msgid "The PostgreSQL host to connect to."
  30614. msgstr ""
  30615. #. type: item
  30616. #: guix-git/doc/guix.texi:20240
  30617. #, fuzzy, no-wrap
  30618. msgid "@code{log} (default: @code{\"/var/log/postgresql_roles.log\"})"
  30619. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  30620. #. type: table
  30621. #: guix-git/doc/guix.texi:20242
  30622. #, fuzzy
  30623. msgid "File name of the log file."
  30624. msgstr "远程机器的主机名。"
  30625. #. type: item
  30626. #: guix-git/doc/guix.texi:20243
  30627. #, fuzzy, no-wrap
  30628. msgid "@code{roles} (default: @code{'()})"
  30629. msgstr "@code{features} (@code{'()})"
  30630. #. type: table
  30631. #: guix-git/doc/guix.texi:20245
  30632. msgid "The initial PostgreSQL roles to create."
  30633. msgstr ""
  30634. #. type: subsubheading
  30635. #: guix-git/doc/guix.texi:20248
  30636. #, no-wrap
  30637. msgid "MariaDB/MySQL"
  30638. msgstr ""
  30639. #. type: defvr
  30640. #: guix-git/doc/guix.texi:20250
  30641. #, no-wrap
  30642. msgid "{Scheme Variable} mysql-service-type"
  30643. msgstr ""
  30644. #. type: defvr
  30645. #: guix-git/doc/guix.texi:20254
  30646. 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."
  30647. msgstr ""
  30648. #. type: deftp
  30649. #: guix-git/doc/guix.texi:20256
  30650. #, no-wrap
  30651. msgid "{Data Type} mysql-configuration"
  30652. msgstr ""
  30653. #. type: deftp
  30654. #: guix-git/doc/guix.texi:20258
  30655. #, fuzzy
  30656. msgid "Data type representing the configuration of @var{mysql-service-type}."
  30657. msgstr "管理操作系统配置。"
  30658. #. type: item
  30659. #: guix-git/doc/guix.texi:20260
  30660. #, no-wrap
  30661. msgid "@code{mysql} (default: @var{mariadb})"
  30662. msgstr ""
  30663. #. type: table
  30664. #: guix-git/doc/guix.texi:20263
  30665. msgid "Package object of the MySQL database server, can be either @var{mariadb} or @var{mysql}."
  30666. msgstr ""
  30667. #. type: table
  30668. #: guix-git/doc/guix.texi:20266
  30669. msgid "For MySQL, a temporary root password will be displayed at activation time. For MariaDB, the root password is empty."
  30670. msgstr ""
  30671. #. type: item
  30672. #: guix-git/doc/guix.texi:20267 guix-git/doc/guix.texi:24087
  30673. #, no-wrap
  30674. msgid "@code{bind-address} (default: @code{\"127.0.0.1\"})"
  30675. msgstr ""
  30676. #. type: table
  30677. #: guix-git/doc/guix.texi:20270
  30678. msgid "The IP on which to listen for network connections. Use @code{\"0.0.0.0\"} to bind to all available network interfaces."
  30679. msgstr ""
  30680. #. type: item
  30681. #: guix-git/doc/guix.texi:20271
  30682. #, no-wrap
  30683. msgid "@code{port} (default: @code{3306})"
  30684. msgstr ""
  30685. #. type: table
  30686. #: guix-git/doc/guix.texi:20273
  30687. msgid "TCP port on which the database server listens for incoming connections."
  30688. msgstr ""
  30689. #. type: item
  30690. #: guix-git/doc/guix.texi:20274
  30691. #, fuzzy, no-wrap
  30692. msgid "@code{socket} (default: @code{\"/run/mysqld/mysqld.sock\"})"
  30693. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30694. #. type: table
  30695. #: guix-git/doc/guix.texi:20276
  30696. msgid "Socket file to use for local (non-network) connections."
  30697. msgstr ""
  30698. #. type: table
  30699. #: guix-git/doc/guix.texi:20279
  30700. msgid "Additional settings for the @file{my.cnf} configuration file."
  30701. msgstr ""
  30702. #. type: item
  30703. #: guix-git/doc/guix.texi:20280
  30704. #, fuzzy, no-wrap
  30705. msgid "@code{extra-environment} (default: @code{#~'()})"
  30706. msgstr "@code{features} (@code{'()})"
  30707. #. type: table
  30708. #: guix-git/doc/guix.texi:20282
  30709. msgid "List of environment variables passed to the @command{mysqld} process."
  30710. msgstr ""
  30711. #. type: item
  30712. #: guix-git/doc/guix.texi:20283
  30713. #, fuzzy, no-wrap
  30714. msgid "@code{auto-upgrade?} (default: @code{#t})"
  30715. msgstr "@code{mate}(默认值:@code{mate})"
  30716. #. type: table
  30717. #: guix-git/doc/guix.texi:20288
  30718. 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."
  30719. msgstr ""
  30720. #. type: subsubheading
  30721. #: guix-git/doc/guix.texi:20292
  30722. #, no-wrap
  30723. msgid "Memcached"
  30724. msgstr ""
  30725. #. type: defvr
  30726. #: guix-git/doc/guix.texi:20294
  30727. #, no-wrap
  30728. msgid "{Scheme Variable} memcached-service-type"
  30729. msgstr ""
  30730. #. type: defvr
  30731. #: guix-git/doc/guix.texi:20298
  30732. 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."
  30733. msgstr ""
  30734. #. type: lisp
  30735. #: guix-git/doc/guix.texi:20302
  30736. #, no-wrap
  30737. msgid "(service memcached-service-type)\n"
  30738. msgstr ""
  30739. #. type: deftp
  30740. #: guix-git/doc/guix.texi:20304
  30741. #, no-wrap
  30742. msgid "{Data Type} memcached-configuration"
  30743. msgstr ""
  30744. #. type: deftp
  30745. #: guix-git/doc/guix.texi:20306
  30746. msgid "Data type representing the configuration of memcached."
  30747. msgstr ""
  30748. #. type: item
  30749. #: guix-git/doc/guix.texi:20308
  30750. #, no-wrap
  30751. msgid "@code{memcached} (default: @code{memcached})"
  30752. msgstr ""
  30753. #. type: table
  30754. #: guix-git/doc/guix.texi:20310
  30755. msgid "The Memcached package to use."
  30756. msgstr ""
  30757. #. type: item
  30758. #: guix-git/doc/guix.texi:20311
  30759. #, no-wrap
  30760. msgid "@code{interfaces} (default: @code{'(\"0.0.0.0\")})"
  30761. msgstr ""
  30762. #. type: table
  30763. #: guix-git/doc/guix.texi:20313
  30764. msgid "Network interfaces on which to listen."
  30765. msgstr ""
  30766. #. type: item
  30767. #: guix-git/doc/guix.texi:20314
  30768. #, no-wrap
  30769. msgid "@code{tcp-port} (default: @code{11211})"
  30770. msgstr ""
  30771. #. type: table
  30772. #: guix-git/doc/guix.texi:20316
  30773. msgid "Port on which to accept connections."
  30774. msgstr ""
  30775. #. type: item
  30776. #: guix-git/doc/guix.texi:20317
  30777. #, no-wrap
  30778. msgid "@code{udp-port} (default: @code{11211})"
  30779. msgstr ""
  30780. #. type: table
  30781. #: guix-git/doc/guix.texi:20320
  30782. msgid "Port on which to accept UDP connections on, a value of 0 will disable listening on a UDP socket."
  30783. msgstr ""
  30784. #. type: item
  30785. #: guix-git/doc/guix.texi:20321
  30786. #, no-wrap
  30787. msgid "@code{additional-options} (default: @code{'()})"
  30788. msgstr ""
  30789. #. type: table
  30790. #: guix-git/doc/guix.texi:20323
  30791. msgid "Additional command line options to pass to @code{memcached}."
  30792. msgstr ""
  30793. #. type: subsubheading
  30794. #: guix-git/doc/guix.texi:20326
  30795. #, no-wrap
  30796. msgid "Redis"
  30797. msgstr ""
  30798. #. type: defvr
  30799. #: guix-git/doc/guix.texi:20328
  30800. #, no-wrap
  30801. msgid "{Scheme Variable} redis-service-type"
  30802. msgstr ""
  30803. #. type: defvr
  30804. #: guix-git/doc/guix.texi:20331
  30805. msgid "This is the service type for the @uref{https://redis.io/, Redis} key/value store, whose value is a @code{redis-configuration} object."
  30806. msgstr ""
  30807. #. type: deftp
  30808. #: guix-git/doc/guix.texi:20333
  30809. #, no-wrap
  30810. msgid "{Data Type} redis-configuration"
  30811. msgstr ""
  30812. #. type: deftp
  30813. #: guix-git/doc/guix.texi:20335
  30814. msgid "Data type representing the configuration of redis."
  30815. msgstr ""
  30816. #. type: item
  30817. #: guix-git/doc/guix.texi:20337
  30818. #, no-wrap
  30819. msgid "@code{redis} (default: @code{redis})"
  30820. msgstr ""
  30821. #. type: table
  30822. #: guix-git/doc/guix.texi:20339
  30823. msgid "The Redis package to use."
  30824. msgstr ""
  30825. #. type: item
  30826. #: guix-git/doc/guix.texi:20340
  30827. #, no-wrap
  30828. msgid "@code{bind} (default: @code{\"127.0.0.1\"})"
  30829. msgstr ""
  30830. #. type: table
  30831. #: guix-git/doc/guix.texi:20342
  30832. msgid "Network interface on which to listen."
  30833. msgstr ""
  30834. #. type: item
  30835. #: guix-git/doc/guix.texi:20343
  30836. #, no-wrap
  30837. msgid "@code{port} (default: @code{6379})"
  30838. msgstr ""
  30839. #. type: table
  30840. #: guix-git/doc/guix.texi:20346
  30841. msgid "Port on which to accept connections on, a value of 0 will disable listening on a TCP socket."
  30842. msgstr ""
  30843. #. type: item
  30844. #: guix-git/doc/guix.texi:20347
  30845. #, no-wrap
  30846. msgid "@code{working-directory} (default: @code{\"/var/lib/redis\"})"
  30847. msgstr ""
  30848. #. type: table
  30849. #: guix-git/doc/guix.texi:20349
  30850. msgid "Directory in which to store the database and related files."
  30851. msgstr ""
  30852. #. type: cindex
  30853. #: guix-git/doc/guix.texi:20355
  30854. #, no-wrap
  30855. msgid "mail"
  30856. msgstr ""
  30857. #. type: cindex
  30858. #: guix-git/doc/guix.texi:20356
  30859. #, no-wrap
  30860. msgid "email"
  30861. msgstr ""
  30862. #. type: Plain text
  30863. #: guix-git/doc/guix.texi:20361
  30864. 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."
  30865. msgstr ""
  30866. #. type: subsubheading
  30867. #: guix-git/doc/guix.texi:20362
  30868. #, no-wrap
  30869. msgid "Dovecot Service"
  30870. msgstr ""
  30871. #. type: deffn
  30872. #: guix-git/doc/guix.texi:20364
  30873. #, no-wrap
  30874. msgid "{Scheme Procedure} dovecot-service [#:config (dovecot-configuration)]"
  30875. msgstr ""
  30876. #. type: deffn
  30877. #: guix-git/doc/guix.texi:20366
  30878. msgid "Return a service that runs the Dovecot IMAP/POP3/LMTP mail server."
  30879. msgstr ""
  30880. #. type: Plain text
  30881. #: guix-git/doc/guix.texi:20376
  30882. 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."
  30883. msgstr ""
  30884. #. type: Plain text
  30885. #: guix-git/doc/guix.texi:20379
  30886. msgid "For example, to specify that mail is located at @code{maildir~/.mail}, one would instantiate the Dovecot service like this:"
  30887. msgstr ""
  30888. #. type: lisp
  30889. #: guix-git/doc/guix.texi:20384
  30890. #, no-wrap
  30891. msgid ""
  30892. "(dovecot-service #:config\n"
  30893. " (dovecot-configuration\n"
  30894. " (mail-location \"maildir:~/.mail\")))\n"
  30895. msgstr ""
  30896. #. type: Plain text
  30897. #: guix-git/doc/guix.texi:20392
  30898. 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."
  30899. msgstr ""
  30900. #. type: Plain text
  30901. #: guix-git/doc/guix.texi:20402
  30902. msgid "Available @code{dovecot-configuration} fields are:"
  30903. msgstr ""
  30904. #. type: deftypevr
  30905. #: guix-git/doc/guix.texi:20403
  30906. #, no-wrap
  30907. msgid "{@code{dovecot-configuration} parameter} package dovecot"
  30908. msgstr ""
  30909. #. type: deftypevr
  30910. #: guix-git/doc/guix.texi:20405 guix-git/doc/guix.texi:21754
  30911. msgid "The dovecot package."
  30912. msgstr ""
  30913. #. type: deftypevr
  30914. #: guix-git/doc/guix.texi:20407
  30915. #, no-wrap
  30916. msgid "{@code{dovecot-configuration} parameter} comma-separated-string-list listen"
  30917. msgstr ""
  30918. #. type: deftypevr
  30919. #: guix-git/doc/guix.texi:20413
  30920. 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."
  30921. msgstr ""
  30922. #. type: deftypevr
  30923. #: guix-git/doc/guix.texi:20415
  30924. #, no-wrap
  30925. msgid "{@code{dovecot-configuration} parameter} protocol-configuration-list protocols"
  30926. msgstr ""
  30927. #. type: deftypevr
  30928. #: guix-git/doc/guix.texi:20418
  30929. msgid "List of protocols we want to serve. Available protocols include @samp{imap}, @samp{pop3}, and @samp{lmtp}."
  30930. msgstr ""
  30931. #. type: deftypevr
  30932. #: guix-git/doc/guix.texi:20420
  30933. msgid "Available @code{protocol-configuration} fields are:"
  30934. msgstr ""
  30935. #. type: deftypevr
  30936. #: guix-git/doc/guix.texi:20421
  30937. #, no-wrap
  30938. msgid "{@code{protocol-configuration} parameter} string name"
  30939. msgstr ""
  30940. #. type: deftypevr
  30941. #: guix-git/doc/guix.texi:20423
  30942. msgid "The name of the protocol."
  30943. msgstr ""
  30944. #. type: deftypevr
  30945. #: guix-git/doc/guix.texi:20425
  30946. #, no-wrap
  30947. msgid "{@code{protocol-configuration} parameter} string auth-socket-path"
  30948. msgstr ""
  30949. #. type: deftypevr
  30950. #: guix-git/doc/guix.texi:20429
  30951. 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\"}."
  30952. msgstr ""
  30953. #. type: deftypevr
  30954. #: guix-git/doc/guix.texi:20431
  30955. #, no-wrap
  30956. msgid "{@code{protocol-configuration} parameter} boolean imap-metadata?"
  30957. msgstr ""
  30958. #. type: deftypevr
  30959. #: guix-git/doc/guix.texi:20436
  30960. 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."
  30961. msgstr ""
  30962. #. type: deftypevr
  30963. #: guix-git/doc/guix.texi:20439
  30964. msgid "If this is @samp{#t}, you must also specify a dictionary @i{via} the @code{mail-attribute-dict} setting."
  30965. msgstr ""
  30966. #. type: deftypevr
  30967. #: guix-git/doc/guix.texi:20444
  30968. #, no-wrap
  30969. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-notify-capabilities"
  30970. msgstr ""
  30971. #. type: deftypevr
  30972. #: guix-git/doc/guix.texi:20449
  30973. 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."
  30974. msgstr ""
  30975. #. type: deftypevr
  30976. #: guix-git/doc/guix.texi:20453
  30977. #, no-wrap
  30978. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-sieve-capability"
  30979. msgstr ""
  30980. #. type: deftypevr
  30981. #: guix-git/doc/guix.texi:20458
  30982. 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."
  30983. msgstr ""
  30984. #. type: deftypevr
  30985. #: guix-git/doc/guix.texi:20463
  30986. #, no-wrap
  30987. msgid "{@code{protocol-configuration} parameter} space-separated-string-list mail-plugins"
  30988. msgstr ""
  30989. #. type: deftypevr
  30990. #: guix-git/doc/guix.texi:20465
  30991. msgid "Space separated list of plugins to load."
  30992. msgstr ""
  30993. #. type: deftypevr
  30994. #: guix-git/doc/guix.texi:20467
  30995. #, no-wrap
  30996. msgid "{@code{protocol-configuration} parameter} non-negative-integer mail-max-userip-connections"
  30997. msgstr ""
  30998. #. type: deftypevr
  30999. #: guix-git/doc/guix.texi:20471
  31000. 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}."
  31001. msgstr ""
  31002. #. type: deftypevr
  31003. #: guix-git/doc/guix.texi:20475
  31004. #, no-wrap
  31005. msgid "{@code{dovecot-configuration} parameter} service-configuration-list services"
  31006. msgstr ""
  31007. #. type: deftypevr
  31008. #: guix-git/doc/guix.texi:20479
  31009. msgid "List of services to enable. Available services include @samp{imap}, @samp{imap-login}, @samp{pop3}, @samp{pop3-login}, @samp{auth}, and @samp{lmtp}."
  31010. msgstr ""
  31011. #. type: deftypevr
  31012. #: guix-git/doc/guix.texi:20481
  31013. msgid "Available @code{service-configuration} fields are:"
  31014. msgstr ""
  31015. #. type: deftypevr
  31016. #: guix-git/doc/guix.texi:20482
  31017. #, no-wrap
  31018. msgid "{@code{service-configuration} parameter} string kind"
  31019. msgstr ""
  31020. #. type: deftypevr
  31021. #: guix-git/doc/guix.texi:20487
  31022. 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."
  31023. msgstr ""
  31024. #. type: deftypevr
  31025. #: guix-git/doc/guix.texi:20489
  31026. #, no-wrap
  31027. msgid "{@code{service-configuration} parameter} listener-configuration-list listeners"
  31028. msgstr ""
  31029. #. type: deftypevr
  31030. #: guix-git/doc/guix.texi:20494
  31031. 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{()}."
  31032. msgstr ""
  31033. #. type: deftypevr
  31034. #: guix-git/doc/guix.texi:20496
  31035. msgid "Available @code{unix-listener-configuration} fields are:"
  31036. msgstr ""
  31037. #. type: deftypevr
  31038. #: guix-git/doc/guix.texi:20497
  31039. #, no-wrap
  31040. msgid "{@code{unix-listener-configuration} parameter} string path"
  31041. msgstr ""
  31042. #. type: deftypevr
  31043. #: guix-git/doc/guix.texi:20500 guix-git/doc/guix.texi:20523
  31044. msgid "Path to the file, relative to @code{base-dir} field. This is also used as the section name."
  31045. msgstr ""
  31046. #. type: deftypevr
  31047. #: guix-git/doc/guix.texi:20502
  31048. #, no-wrap
  31049. msgid "{@code{unix-listener-configuration} parameter} string mode"
  31050. msgstr ""
  31051. #. type: deftypevr
  31052. #: guix-git/doc/guix.texi:20505 guix-git/doc/guix.texi:20528
  31053. msgid "The access mode for the socket. Defaults to @samp{\"0600\"}."
  31054. msgstr ""
  31055. #. type: deftypevr
  31056. #: guix-git/doc/guix.texi:20507
  31057. #, no-wrap
  31058. msgid "{@code{unix-listener-configuration} parameter} string user"
  31059. msgstr ""
  31060. #. type: deftypevr
  31061. #: guix-git/doc/guix.texi:20510 guix-git/doc/guix.texi:20533
  31062. msgid "The user to own the socket. Defaults to @samp{\"\"}."
  31063. msgstr ""
  31064. #. type: deftypevr
  31065. #: guix-git/doc/guix.texi:20512
  31066. #, no-wrap
  31067. msgid "{@code{unix-listener-configuration} parameter} string group"
  31068. msgstr ""
  31069. #. type: deftypevr
  31070. #: guix-git/doc/guix.texi:20515 guix-git/doc/guix.texi:20538
  31071. msgid "The group to own the socket. Defaults to @samp{\"\"}."
  31072. msgstr ""
  31073. #. type: deftypevr
  31074. #: guix-git/doc/guix.texi:20519
  31075. msgid "Available @code{fifo-listener-configuration} fields are:"
  31076. msgstr ""
  31077. #. type: deftypevr
  31078. #: guix-git/doc/guix.texi:20520
  31079. #, no-wrap
  31080. msgid "{@code{fifo-listener-configuration} parameter} string path"
  31081. msgstr ""
  31082. #. type: deftypevr
  31083. #: guix-git/doc/guix.texi:20525
  31084. #, no-wrap
  31085. msgid "{@code{fifo-listener-configuration} parameter} string mode"
  31086. msgstr ""
  31087. #. type: deftypevr
  31088. #: guix-git/doc/guix.texi:20530
  31089. #, no-wrap
  31090. msgid "{@code{fifo-listener-configuration} parameter} string user"
  31091. msgstr ""
  31092. #. type: deftypevr
  31093. #: guix-git/doc/guix.texi:20535
  31094. #, no-wrap
  31095. msgid "{@code{fifo-listener-configuration} parameter} string group"
  31096. msgstr ""
  31097. #. type: deftypevr
  31098. #: guix-git/doc/guix.texi:20542
  31099. msgid "Available @code{inet-listener-configuration} fields are:"
  31100. msgstr ""
  31101. #. type: deftypevr
  31102. #: guix-git/doc/guix.texi:20543
  31103. #, no-wrap
  31104. msgid "{@code{inet-listener-configuration} parameter} string protocol"
  31105. msgstr ""
  31106. #. type: deftypevr
  31107. #: guix-git/doc/guix.texi:20545
  31108. msgid "The protocol to listen for."
  31109. msgstr ""
  31110. #. type: deftypevr
  31111. #: guix-git/doc/guix.texi:20547
  31112. #, no-wrap
  31113. msgid "{@code{inet-listener-configuration} parameter} string address"
  31114. msgstr ""
  31115. #. type: deftypevr
  31116. #: guix-git/doc/guix.texi:20550
  31117. msgid "The address on which to listen, or empty for all addresses. Defaults to @samp{\"\"}."
  31118. msgstr ""
  31119. #. type: deftypevr
  31120. #: guix-git/doc/guix.texi:20552
  31121. #, no-wrap
  31122. msgid "{@code{inet-listener-configuration} parameter} non-negative-integer port"
  31123. msgstr ""
  31124. #. type: deftypevr
  31125. #: guix-git/doc/guix.texi:20554
  31126. msgid "The port on which to listen."
  31127. msgstr ""
  31128. #. type: deftypevr
  31129. #: guix-git/doc/guix.texi:20556
  31130. #, no-wrap
  31131. msgid "{@code{inet-listener-configuration} parameter} boolean ssl?"
  31132. msgstr ""
  31133. #. type: deftypevr
  31134. #: guix-git/doc/guix.texi:20560
  31135. msgid "Whether to use SSL for this service; @samp{yes}, @samp{no}, or @samp{required}. Defaults to @samp{#t}."
  31136. msgstr ""
  31137. #. type: deftypevr
  31138. #: guix-git/doc/guix.texi:20564
  31139. #, no-wrap
  31140. msgid "{@code{service-configuration} parameter} non-negative-integer client-limit"
  31141. msgstr ""
  31142. #. type: deftypevr
  31143. #: guix-git/doc/guix.texi:20569
  31144. 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."
  31145. msgstr ""
  31146. #. type: deftypevr
  31147. #: guix-git/doc/guix.texi:20574
  31148. #, no-wrap
  31149. msgid "{@code{service-configuration} parameter} non-negative-integer service-count"
  31150. msgstr ""
  31151. #. type: deftypevr
  31152. #: guix-git/doc/guix.texi:20579
  31153. 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}."
  31154. msgstr ""
  31155. #. type: deftypevr
  31156. #: guix-git/doc/guix.texi:20582
  31157. #, no-wrap
  31158. msgid "{@code{service-configuration} parameter} non-negative-integer process-limit"
  31159. msgstr ""
  31160. #. type: deftypevr
  31161. #: guix-git/doc/guix.texi:20585
  31162. msgid "Maximum number of processes that can exist for this service. If set to 0, @code{default-process-limit} is used instead."
  31163. msgstr ""
  31164. #. type: deftypevr
  31165. #: guix-git/doc/guix.texi:20590
  31166. #, no-wrap
  31167. msgid "{@code{service-configuration} parameter} non-negative-integer process-min-avail"
  31168. msgstr ""
  31169. #. type: deftypevr
  31170. #: guix-git/doc/guix.texi:20593
  31171. msgid "Number of processes to always keep waiting for more connections. Defaults to @samp{0}."
  31172. msgstr ""
  31173. #. type: deftypevr
  31174. #: guix-git/doc/guix.texi:20595
  31175. #, no-wrap
  31176. msgid "{@code{service-configuration} parameter} non-negative-integer vsz-limit"
  31177. msgstr ""
  31178. #. type: deftypevr
  31179. #: guix-git/doc/guix.texi:20599
  31180. msgid "If you set @samp{service-count 0}, you probably need to grow this. Defaults to @samp{256000000}."
  31181. msgstr ""
  31182. #. type: deftypevr
  31183. #: guix-git/doc/guix.texi:20603
  31184. #, no-wrap
  31185. msgid "{@code{dovecot-configuration} parameter} dict-configuration dict"
  31186. msgstr ""
  31187. #. type: deftypevr
  31188. #: guix-git/doc/guix.texi:20606
  31189. msgid "Dict configuration, as created by the @code{dict-configuration} constructor."
  31190. msgstr ""
  31191. #. type: deftypevr
  31192. #: guix-git/doc/guix.texi:20608
  31193. msgid "Available @code{dict-configuration} fields are:"
  31194. msgstr ""
  31195. #. type: deftypevr
  31196. #: guix-git/doc/guix.texi:20609
  31197. #, no-wrap
  31198. msgid "{@code{dict-configuration} parameter} free-form-fields entries"
  31199. msgstr ""
  31200. #. type: deftypevr
  31201. #: guix-git/doc/guix.texi:20612
  31202. msgid "A list of key-value pairs that this dict should hold. Defaults to @samp{()}."
  31203. msgstr ""
  31204. #. type: deftypevr
  31205. #: guix-git/doc/guix.texi:20616
  31206. #, no-wrap
  31207. msgid "{@code{dovecot-configuration} parameter} passdb-configuration-list passdbs"
  31208. msgstr ""
  31209. #. type: deftypevr
  31210. #: guix-git/doc/guix.texi:20619
  31211. msgid "A list of passdb configurations, each one created by the @code{passdb-configuration} constructor."
  31212. msgstr ""
  31213. #. type: deftypevr
  31214. #: guix-git/doc/guix.texi:20621
  31215. msgid "Available @code{passdb-configuration} fields are:"
  31216. msgstr ""
  31217. #. type: deftypevr
  31218. #: guix-git/doc/guix.texi:20622
  31219. #, no-wrap
  31220. msgid "{@code{passdb-configuration} parameter} string driver"
  31221. msgstr ""
  31222. #. type: deftypevr
  31223. #: guix-git/doc/guix.texi:20627
  31224. 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\"}."
  31225. msgstr ""
  31226. #. type: deftypevr
  31227. #: guix-git/doc/guix.texi:20629
  31228. #, no-wrap
  31229. msgid "{@code{passdb-configuration} parameter} space-separated-string-list args"
  31230. msgstr ""
  31231. #. type: deftypevr
  31232. #: guix-git/doc/guix.texi:20632
  31233. msgid "Space separated list of arguments to the passdb driver. Defaults to @samp{\"\"}."
  31234. msgstr ""
  31235. #. type: deftypevr
  31236. #: guix-git/doc/guix.texi:20636
  31237. #, no-wrap
  31238. msgid "{@code{dovecot-configuration} parameter} userdb-configuration-list userdbs"
  31239. msgstr ""
  31240. #. type: deftypevr
  31241. #: guix-git/doc/guix.texi:20639
  31242. msgid "List of userdb configurations, each one created by the @code{userdb-configuration} constructor."
  31243. msgstr ""
  31244. #. type: deftypevr
  31245. #: guix-git/doc/guix.texi:20641
  31246. msgid "Available @code{userdb-configuration} fields are:"
  31247. msgstr ""
  31248. #. type: deftypevr
  31249. #: guix-git/doc/guix.texi:20642
  31250. #, no-wrap
  31251. msgid "{@code{userdb-configuration} parameter} string driver"
  31252. msgstr ""
  31253. #. type: deftypevr
  31254. #: guix-git/doc/guix.texi:20646
  31255. msgid "The driver that the userdb should use. Valid values include @samp{passwd} and @samp{static}. Defaults to @samp{\"passwd\"}."
  31256. msgstr ""
  31257. #. type: deftypevr
  31258. #: guix-git/doc/guix.texi:20648
  31259. #, no-wrap
  31260. msgid "{@code{userdb-configuration} parameter} space-separated-string-list args"
  31261. msgstr ""
  31262. #. type: deftypevr
  31263. #: guix-git/doc/guix.texi:20651
  31264. msgid "Space separated list of arguments to the userdb driver. Defaults to @samp{\"\"}."
  31265. msgstr ""
  31266. #. type: deftypevr
  31267. #: guix-git/doc/guix.texi:20653
  31268. #, no-wrap
  31269. msgid "{@code{userdb-configuration} parameter} free-form-args override-fields"
  31270. msgstr ""
  31271. #. type: deftypevr
  31272. #: guix-git/doc/guix.texi:20656
  31273. msgid "Override fields from passwd. Defaults to @samp{()}."
  31274. msgstr ""
  31275. #. type: deftypevr
  31276. #: guix-git/doc/guix.texi:20660
  31277. #, no-wrap
  31278. msgid "{@code{dovecot-configuration} parameter} plugin-configuration plugin-configuration"
  31279. msgstr ""
  31280. #. type: deftypevr
  31281. #: guix-git/doc/guix.texi:20663
  31282. msgid "Plug-in configuration, created by the @code{plugin-configuration} constructor."
  31283. msgstr ""
  31284. #. type: deftypevr
  31285. #: guix-git/doc/guix.texi:20665
  31286. #, no-wrap
  31287. msgid "{@code{dovecot-configuration} parameter} list-of-namespace-configuration namespaces"
  31288. msgstr ""
  31289. #. type: deftypevr
  31290. #: guix-git/doc/guix.texi:20668
  31291. msgid "List of namespaces. Each item in the list is created by the @code{namespace-configuration} constructor."
  31292. msgstr ""
  31293. #. type: deftypevr
  31294. #: guix-git/doc/guix.texi:20670
  31295. msgid "Available @code{namespace-configuration} fields are:"
  31296. msgstr ""
  31297. #. type: deftypevr
  31298. #: guix-git/doc/guix.texi:20671
  31299. #, no-wrap
  31300. msgid "{@code{namespace-configuration} parameter} string name"
  31301. msgstr ""
  31302. #. type: deftypevr
  31303. #: guix-git/doc/guix.texi:20673
  31304. msgid "Name for this namespace."
  31305. msgstr ""
  31306. #. type: deftypevr
  31307. #: guix-git/doc/guix.texi:20675
  31308. #, no-wrap
  31309. msgid "{@code{namespace-configuration} parameter} string type"
  31310. msgstr ""
  31311. #. type: deftypevr
  31312. #: guix-git/doc/guix.texi:20678
  31313. msgid "Namespace type: @samp{private}, @samp{shared} or @samp{public}. Defaults to @samp{\"private\"}."
  31314. msgstr ""
  31315. #. type: deftypevr
  31316. #: guix-git/doc/guix.texi:20680
  31317. #, no-wrap
  31318. msgid "{@code{namespace-configuration} parameter} string separator"
  31319. msgstr ""
  31320. #. type: deftypevr
  31321. #: guix-git/doc/guix.texi:20686
  31322. 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{\"\"}."
  31323. msgstr ""
  31324. #. type: deftypevr
  31325. #: guix-git/doc/guix.texi:20688
  31326. #, no-wrap
  31327. msgid "{@code{namespace-configuration} parameter} string prefix"
  31328. msgstr ""
  31329. #. type: deftypevr
  31330. #: guix-git/doc/guix.texi:20692
  31331. msgid "Prefix required to access this namespace. This needs to be different for all namespaces. For example @samp{Public/}. Defaults to @samp{\"\"}."
  31332. msgstr ""
  31333. #. type: deftypevr
  31334. #: guix-git/doc/guix.texi:20694
  31335. #, no-wrap
  31336. msgid "{@code{namespace-configuration} parameter} string location"
  31337. msgstr ""
  31338. #. type: deftypevr
  31339. #: guix-git/doc/guix.texi:20698
  31340. 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{\"\"}."
  31341. msgstr ""
  31342. #. type: deftypevr
  31343. #: guix-git/doc/guix.texi:20700
  31344. #, no-wrap
  31345. msgid "{@code{namespace-configuration} parameter} boolean inbox?"
  31346. msgstr ""
  31347. #. type: deftypevr
  31348. #: guix-git/doc/guix.texi:20704
  31349. msgid "There can be only one INBOX, and this setting defines which namespace has it. Defaults to @samp{#f}."
  31350. msgstr ""
  31351. #. type: deftypevr
  31352. #: guix-git/doc/guix.texi:20706
  31353. #, no-wrap
  31354. msgid "{@code{namespace-configuration} parameter} boolean hidden?"
  31355. msgstr ""
  31356. #. type: deftypevr
  31357. #: guix-git/doc/guix.texi:20714
  31358. 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}."
  31359. msgstr ""
  31360. #. type: deftypevr
  31361. #: guix-git/doc/guix.texi:20716
  31362. #, no-wrap
  31363. msgid "{@code{namespace-configuration} parameter} boolean list?"
  31364. msgstr ""
  31365. #. type: deftypevr
  31366. #: guix-git/doc/guix.texi:20722
  31367. 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}."
  31368. msgstr ""
  31369. #. type: deftypevr
  31370. #: guix-git/doc/guix.texi:20724
  31371. #, no-wrap
  31372. msgid "{@code{namespace-configuration} parameter} boolean subscriptions?"
  31373. msgstr ""
  31374. #. type: deftypevr
  31375. #: guix-git/doc/guix.texi:20729
  31376. 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}."
  31377. msgstr ""
  31378. #. type: deftypevr
  31379. #: guix-git/doc/guix.texi:20731
  31380. #, no-wrap
  31381. msgid "{@code{namespace-configuration} parameter} mailbox-configuration-list mailboxes"
  31382. msgstr ""
  31383. #. type: deftypevr
  31384. #: guix-git/doc/guix.texi:20734
  31385. msgid "List of predefined mailboxes in this namespace. Defaults to @samp{()}."
  31386. msgstr ""
  31387. #. type: deftypevr
  31388. #: guix-git/doc/guix.texi:20736
  31389. msgid "Available @code{mailbox-configuration} fields are:"
  31390. msgstr ""
  31391. #. type: deftypevr
  31392. #: guix-git/doc/guix.texi:20737
  31393. #, no-wrap
  31394. msgid "{@code{mailbox-configuration} parameter} string name"
  31395. msgstr ""
  31396. #. type: deftypevr
  31397. #: guix-git/doc/guix.texi:20739
  31398. msgid "Name for this mailbox."
  31399. msgstr ""
  31400. #. type: deftypevr
  31401. #: guix-git/doc/guix.texi:20741
  31402. #, no-wrap
  31403. msgid "{@code{mailbox-configuration} parameter} string auto"
  31404. msgstr ""
  31405. #. type: deftypevr
  31406. #: guix-git/doc/guix.texi:20745
  31407. msgid "@samp{create} will automatically create this mailbox. @samp{subscribe} will both create and subscribe to the mailbox. Defaults to @samp{\"no\"}."
  31408. msgstr ""
  31409. #. type: deftypevr
  31410. #: guix-git/doc/guix.texi:20747
  31411. #, no-wrap
  31412. msgid "{@code{mailbox-configuration} parameter} space-separated-string-list special-use"
  31413. msgstr ""
  31414. #. type: deftypevr
  31415. #: guix-git/doc/guix.texi:20752
  31416. 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{()}."
  31417. msgstr ""
  31418. #. type: deftypevr
  31419. #: guix-git/doc/guix.texi:20758
  31420. #, no-wrap
  31421. msgid "{@code{dovecot-configuration} parameter} file-name base-dir"
  31422. msgstr ""
  31423. #. type: deftypevr
  31424. #: guix-git/doc/guix.texi:20761
  31425. msgid "Base directory where to store runtime data. Defaults to @samp{\"/var/run/dovecot/\"}."
  31426. msgstr ""
  31427. #. type: deftypevr
  31428. #: guix-git/doc/guix.texi:20763
  31429. #, no-wrap
  31430. msgid "{@code{dovecot-configuration} parameter} string login-greeting"
  31431. msgstr ""
  31432. #. type: deftypevr
  31433. #: guix-git/doc/guix.texi:20766
  31434. msgid "Greeting message for clients. Defaults to @samp{\"Dovecot ready.\"}."
  31435. msgstr ""
  31436. #. type: deftypevr
  31437. #: guix-git/doc/guix.texi:20768
  31438. #, no-wrap
  31439. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-trusted-networks"
  31440. msgstr ""
  31441. #. type: deftypevr
  31442. #: guix-git/doc/guix.texi:20775
  31443. 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{()}."
  31444. msgstr ""
  31445. #. type: deftypevr
  31446. #: guix-git/doc/guix.texi:20777
  31447. #, no-wrap
  31448. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-access-sockets"
  31449. msgstr ""
  31450. #. type: deftypevr
  31451. #: guix-git/doc/guix.texi:20780
  31452. msgid "List of login access check sockets (e.g.@: tcpwrap). Defaults to @samp{()}."
  31453. msgstr ""
  31454. #. type: deftypevr
  31455. #: guix-git/doc/guix.texi:20782
  31456. #, no-wrap
  31457. msgid "{@code{dovecot-configuration} parameter} boolean verbose-proctitle?"
  31458. msgstr ""
  31459. #. type: deftypevr
  31460. #: guix-git/doc/guix.texi:20788
  31461. 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}."
  31462. msgstr ""
  31463. #. type: deftypevr
  31464. #: guix-git/doc/guix.texi:20790
  31465. #, no-wrap
  31466. msgid "{@code{dovecot-configuration} parameter} boolean shutdown-clients?"
  31467. msgstr ""
  31468. #. type: deftypevr
  31469. #: guix-git/doc/guix.texi:20796
  31470. 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}."
  31471. msgstr ""
  31472. #. type: deftypevr
  31473. #: guix-git/doc/guix.texi:20798
  31474. #, no-wrap
  31475. msgid "{@code{dovecot-configuration} parameter} non-negative-integer doveadm-worker-count"
  31476. msgstr ""
  31477. #. type: deftypevr
  31478. #: guix-git/doc/guix.texi:20802
  31479. 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}."
  31480. msgstr ""
  31481. #. type: deftypevr
  31482. #: guix-git/doc/guix.texi:20804
  31483. #, no-wrap
  31484. msgid "{@code{dovecot-configuration} parameter} string doveadm-socket-path"
  31485. msgstr ""
  31486. #. type: deftypevr
  31487. #: guix-git/doc/guix.texi:20807
  31488. msgid "UNIX socket or host:port used for connecting to doveadm server. Defaults to @samp{\"doveadm-server\"}."
  31489. msgstr ""
  31490. #. type: deftypevr
  31491. #: guix-git/doc/guix.texi:20809
  31492. #, no-wrap
  31493. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list import-environment"
  31494. msgstr ""
  31495. #. type: deftypevr
  31496. #: guix-git/doc/guix.texi:20813
  31497. 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."
  31498. msgstr ""
  31499. #. type: deftypevr
  31500. #: guix-git/doc/guix.texi:20815
  31501. #, no-wrap
  31502. msgid "{@code{dovecot-configuration} parameter} boolean disable-plaintext-auth?"
  31503. msgstr ""
  31504. #. type: deftypevr
  31505. #: guix-git/doc/guix.texi:20822
  31506. 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}."
  31507. msgstr ""
  31508. #. type: deftypevr
  31509. #: guix-git/doc/guix.texi:20824
  31510. #, no-wrap
  31511. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-cache-size"
  31512. msgstr ""
  31513. #. type: deftypevr
  31514. #: guix-git/doc/guix.texi:20829
  31515. 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}."
  31516. msgstr ""
  31517. #. type: deftypevr
  31518. #: guix-git/doc/guix.texi:20831
  31519. #, no-wrap
  31520. msgid "{@code{dovecot-configuration} parameter} string auth-cache-ttl"
  31521. msgstr ""
  31522. #. type: deftypevr
  31523. #: guix-git/doc/guix.texi:20839
  31524. 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\"}."
  31525. msgstr ""
  31526. #. type: deftypevr
  31527. #: guix-git/doc/guix.texi:20841
  31528. #, no-wrap
  31529. msgid "{@code{dovecot-configuration} parameter} string auth-cache-negative-ttl"
  31530. msgstr ""
  31531. #. type: deftypevr
  31532. #: guix-git/doc/guix.texi:20845
  31533. msgid "TTL for negative hits (user not found, password mismatch). 0 disables caching them completely. Defaults to @samp{\"1 hour\"}."
  31534. msgstr ""
  31535. #. type: deftypevr
  31536. #: guix-git/doc/guix.texi:20847
  31537. #, no-wrap
  31538. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-realms"
  31539. msgstr ""
  31540. #. type: deftypevr
  31541. #: guix-git/doc/guix.texi:20853
  31542. 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{()}."
  31543. msgstr ""
  31544. #. type: deftypevr
  31545. #: guix-git/doc/guix.texi:20855
  31546. #, no-wrap
  31547. msgid "{@code{dovecot-configuration} parameter} string auth-default-realm"
  31548. msgstr ""
  31549. #. type: deftypevr
  31550. #: guix-git/doc/guix.texi:20860
  31551. 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{\"\"}."
  31552. msgstr ""
  31553. #. type: deftypevr
  31554. #: guix-git/doc/guix.texi:20862
  31555. #, no-wrap
  31556. msgid "{@code{dovecot-configuration} parameter} string auth-username-chars"
  31557. msgstr ""
  31558. #. type: deftypevr
  31559. #: guix-git/doc/guix.texi:20869
  31560. 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.-_@@\"}."
  31561. msgstr ""
  31562. #. type: deftypevr
  31563. #: guix-git/doc/guix.texi:20871
  31564. #, no-wrap
  31565. msgid "{@code{dovecot-configuration} parameter} string auth-username-translation"
  31566. msgstr ""
  31567. #. type: deftypevr
  31568. #: guix-git/doc/guix.texi:20877
  31569. 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{\"\"}."
  31570. msgstr ""
  31571. #. type: deftypevr
  31572. #: guix-git/doc/guix.texi:20879
  31573. #, no-wrap
  31574. msgid "{@code{dovecot-configuration} parameter} string auth-username-format"
  31575. msgstr ""
  31576. #. type: deftypevr
  31577. #: guix-git/doc/guix.texi:20886
  31578. 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\"}."
  31579. msgstr ""
  31580. #. type: deftypevr
  31581. #: guix-git/doc/guix.texi:20888
  31582. #, no-wrap
  31583. msgid "{@code{dovecot-configuration} parameter} string auth-master-user-separator"
  31584. msgstr ""
  31585. #. type: deftypevr
  31586. #: guix-git/doc/guix.texi:20896
  31587. 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{\"\"}."
  31588. msgstr ""
  31589. #. type: deftypevr
  31590. #: guix-git/doc/guix.texi:20898
  31591. #, no-wrap
  31592. msgid "{@code{dovecot-configuration} parameter} string auth-anonymous-username"
  31593. msgstr ""
  31594. #. type: deftypevr
  31595. #: guix-git/doc/guix.texi:20902
  31596. msgid "Username to use for users logging in with ANONYMOUS SASL mechanism. Defaults to @samp{\"anonymous\"}."
  31597. msgstr ""
  31598. #. type: deftypevr
  31599. #: guix-git/doc/guix.texi:20904
  31600. #, no-wrap
  31601. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-worker-max-count"
  31602. msgstr ""
  31603. #. type: deftypevr
  31604. #: guix-git/doc/guix.texi:20909
  31605. 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}."
  31606. msgstr ""
  31607. #. type: deftypevr
  31608. #: guix-git/doc/guix.texi:20911
  31609. #, no-wrap
  31610. msgid "{@code{dovecot-configuration} parameter} string auth-gssapi-hostname"
  31611. msgstr ""
  31612. #. type: deftypevr
  31613. #: guix-git/doc/guix.texi:20916
  31614. 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{\"\"}."
  31615. msgstr ""
  31616. #. type: deftypevr
  31617. #: guix-git/doc/guix.texi:20918
  31618. #, no-wrap
  31619. msgid "{@code{dovecot-configuration} parameter} string auth-krb5-keytab"
  31620. msgstr ""
  31621. #. type: deftypevr
  31622. #: guix-git/doc/guix.texi:20924
  31623. 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{\"\"}."
  31624. msgstr ""
  31625. #. type: deftypevr
  31626. #: guix-git/doc/guix.texi:20926
  31627. #, no-wrap
  31628. msgid "{@code{dovecot-configuration} parameter} boolean auth-use-winbind?"
  31629. msgstr ""
  31630. #. type: deftypevr
  31631. #: guix-git/doc/guix.texi:20931
  31632. 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}."
  31633. msgstr ""
  31634. #. type: deftypevr
  31635. #: guix-git/doc/guix.texi:20933
  31636. #, no-wrap
  31637. msgid "{@code{dovecot-configuration} parameter} file-name auth-winbind-helper-path"
  31638. msgstr ""
  31639. #. type: deftypevr
  31640. #: guix-git/doc/guix.texi:20936
  31641. msgid "Path for Samba's @samp{ntlm-auth} helper binary. Defaults to @samp{\"/usr/bin/ntlm_auth\"}."
  31642. msgstr ""
  31643. #. type: deftypevr
  31644. #: guix-git/doc/guix.texi:20938
  31645. #, no-wrap
  31646. msgid "{@code{dovecot-configuration} parameter} string auth-failure-delay"
  31647. msgstr ""
  31648. #. type: deftypevr
  31649. #: guix-git/doc/guix.texi:20941
  31650. msgid "Time to delay before replying to failed authentications. Defaults to @samp{\"2 secs\"}."
  31651. msgstr ""
  31652. #. type: deftypevr
  31653. #: guix-git/doc/guix.texi:20943
  31654. #, no-wrap
  31655. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-require-client-cert?"
  31656. msgstr ""
  31657. #. type: deftypevr
  31658. #: guix-git/doc/guix.texi:20947
  31659. msgid "Require a valid SSL client certificate or the authentication fails. Defaults to @samp{#f}."
  31660. msgstr ""
  31661. #. type: deftypevr
  31662. #: guix-git/doc/guix.texi:20949
  31663. #, no-wrap
  31664. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-username-from-cert?"
  31665. msgstr ""
  31666. #. type: deftypevr
  31667. #: guix-git/doc/guix.texi:20954
  31668. 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}."
  31669. msgstr ""
  31670. #. type: deftypevr
  31671. #: guix-git/doc/guix.texi:20956
  31672. #, no-wrap
  31673. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-mechanisms"
  31674. msgstr ""
  31675. #. type: deftypevr
  31676. #: guix-git/doc/guix.texi:20962
  31677. 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."
  31678. msgstr ""
  31679. #. type: deftypevr
  31680. #: guix-git/doc/guix.texi:20964
  31681. #, no-wrap
  31682. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-servers"
  31683. msgstr ""
  31684. #. type: deftypevr
  31685. #: guix-git/doc/guix.texi:20969
  31686. 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{()}."
  31687. msgstr ""
  31688. #. type: deftypevr
  31689. #: guix-git/doc/guix.texi:20971
  31690. #, no-wrap
  31691. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-mail-servers"
  31692. msgstr ""
  31693. #. type: deftypevr
  31694. #: guix-git/doc/guix.texi:20975
  31695. 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{()}."
  31696. msgstr ""
  31697. #. type: deftypevr
  31698. #: guix-git/doc/guix.texi:20977
  31699. #, no-wrap
  31700. msgid "{@code{dovecot-configuration} parameter} string director-user-expire"
  31701. msgstr ""
  31702. #. type: deftypevr
  31703. #: guix-git/doc/guix.texi:20981
  31704. msgid "How long to redirect users to a specific server after it no longer has any connections. Defaults to @samp{\"15 min\"}."
  31705. msgstr ""
  31706. #. type: deftypevr
  31707. #: guix-git/doc/guix.texi:20983
  31708. #, no-wrap
  31709. msgid "{@code{dovecot-configuration} parameter} string director-username-hash"
  31710. msgstr ""
  31711. #. type: deftypevr
  31712. #: guix-git/doc/guix.texi:20988
  31713. 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\"}."
  31714. msgstr ""
  31715. #. type: deftypevr
  31716. #: guix-git/doc/guix.texi:20990
  31717. #, no-wrap
  31718. msgid "{@code{dovecot-configuration} parameter} string log-path"
  31719. msgstr ""
  31720. #. type: deftypevr
  31721. #: guix-git/doc/guix.texi:20994
  31722. msgid "Log file to use for error messages. @samp{syslog} logs to syslog, @samp{/dev/stderr} logs to stderr. Defaults to @samp{\"syslog\"}."
  31723. msgstr ""
  31724. #. type: deftypevr
  31725. #: guix-git/doc/guix.texi:20996
  31726. #, no-wrap
  31727. msgid "{@code{dovecot-configuration} parameter} string info-log-path"
  31728. msgstr ""
  31729. #. type: deftypevr
  31730. #: guix-git/doc/guix.texi:21000
  31731. msgid "Log file to use for informational messages. Defaults to @samp{log-path}. Defaults to @samp{\"\"}."
  31732. msgstr ""
  31733. #. type: deftypevr
  31734. #: guix-git/doc/guix.texi:21002
  31735. #, no-wrap
  31736. msgid "{@code{dovecot-configuration} parameter} string debug-log-path"
  31737. msgstr ""
  31738. #. type: deftypevr
  31739. #: guix-git/doc/guix.texi:21006
  31740. msgid "Log file to use for debug messages. Defaults to @samp{info-log-path}. Defaults to @samp{\"\"}."
  31741. msgstr ""
  31742. #. type: deftypevr
  31743. #: guix-git/doc/guix.texi:21008
  31744. #, no-wrap
  31745. msgid "{@code{dovecot-configuration} parameter} string syslog-facility"
  31746. msgstr ""
  31747. #. type: deftypevr
  31748. #: guix-git/doc/guix.texi:21013
  31749. 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\"}."
  31750. msgstr ""
  31751. #. type: deftypevr
  31752. #: guix-git/doc/guix.texi:21015
  31753. #, no-wrap
  31754. msgid "{@code{dovecot-configuration} parameter} boolean auth-verbose?"
  31755. msgstr ""
  31756. #. type: deftypevr
  31757. #: guix-git/doc/guix.texi:21019
  31758. msgid "Log unsuccessful authentication attempts and the reasons why they failed. Defaults to @samp{#f}."
  31759. msgstr ""
  31760. #. type: deftypevr
  31761. #: guix-git/doc/guix.texi:21021
  31762. #, no-wrap
  31763. msgid "{@code{dovecot-configuration} parameter} string auth-verbose-passwords"
  31764. msgstr ""
  31765. #. type: deftypevr
  31766. #: guix-git/doc/guix.texi:21028
  31767. 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\"}."
  31768. msgstr ""
  31769. #. type: deftypevr
  31770. #: guix-git/doc/guix.texi:21030
  31771. #, no-wrap
  31772. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug?"
  31773. msgstr ""
  31774. #. type: deftypevr
  31775. #: guix-git/doc/guix.texi:21034
  31776. msgid "Even more verbose logging for debugging purposes. Shows for example SQL queries. Defaults to @samp{#f}."
  31777. msgstr ""
  31778. #. type: deftypevr
  31779. #: guix-git/doc/guix.texi:21036
  31780. #, no-wrap
  31781. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug-passwords?"
  31782. msgstr ""
  31783. #. type: deftypevr
  31784. #: guix-git/doc/guix.texi:21041
  31785. 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}."
  31786. msgstr ""
  31787. #. type: deftypevr
  31788. #: guix-git/doc/guix.texi:21043
  31789. #, no-wrap
  31790. msgid "{@code{dovecot-configuration} parameter} boolean mail-debug?"
  31791. msgstr ""
  31792. #. type: deftypevr
  31793. #: guix-git/doc/guix.texi:21047
  31794. msgid "Enable mail process debugging. This can help you figure out why Dovecot isn't finding your mails. Defaults to @samp{#f}."
  31795. msgstr ""
  31796. #. type: deftypevr
  31797. #: guix-git/doc/guix.texi:21049
  31798. #, no-wrap
  31799. msgid "{@code{dovecot-configuration} parameter} boolean verbose-ssl?"
  31800. msgstr ""
  31801. #. type: deftypevr
  31802. #: guix-git/doc/guix.texi:21052
  31803. msgid "Show protocol level SSL errors. Defaults to @samp{#f}."
  31804. msgstr ""
  31805. #. type: deftypevr
  31806. #: guix-git/doc/guix.texi:21054
  31807. #, no-wrap
  31808. msgid "{@code{dovecot-configuration} parameter} string log-timestamp"
  31809. msgstr ""
  31810. #. type: deftypevr
  31811. #: guix-git/doc/guix.texi:21058
  31812. msgid "Prefix for each line written to log file. % codes are in strftime(3) format. Defaults to @samp{\"\\\"%b %d %H:%M:%S \\\"\"}."
  31813. msgstr ""
  31814. #. type: deftypevr
  31815. #: guix-git/doc/guix.texi:21060
  31816. #, no-wrap
  31817. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-log-format-elements"
  31818. msgstr ""
  31819. #. type: deftypevr
  31820. #: guix-git/doc/guix.texi:21064
  31821. 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."
  31822. msgstr ""
  31823. #. type: deftypevr
  31824. #: guix-git/doc/guix.texi:21066
  31825. #, no-wrap
  31826. msgid "{@code{dovecot-configuration} parameter} string login-log-format"
  31827. msgstr ""
  31828. #. type: deftypevr
  31829. #: guix-git/doc/guix.texi:21070
  31830. msgid "Login log format. %s contains @samp{login-log-format-elements} string, %$ contains the data we want to log. Defaults to @samp{\"%$: %s\"}."
  31831. msgstr ""
  31832. #. type: deftypevr
  31833. #: guix-git/doc/guix.texi:21072
  31834. #, no-wrap
  31835. msgid "{@code{dovecot-configuration} parameter} string mail-log-prefix"
  31836. msgstr ""
  31837. #. type: deftypevr
  31838. #: guix-git/doc/guix.texi:21076
  31839. 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@}>: \\\"\"}."
  31840. msgstr ""
  31841. #. type: deftypevr
  31842. #: guix-git/doc/guix.texi:21078
  31843. #, no-wrap
  31844. msgid "{@code{dovecot-configuration} parameter} string deliver-log-format"
  31845. msgstr ""
  31846. #. type: deftypevr
  31847. #: guix-git/doc/guix.texi:21080
  31848. msgid "Format to use for logging mail deliveries. You can use variables:"
  31849. msgstr ""
  31850. #. type: item
  31851. #: guix-git/doc/guix.texi:21081
  31852. #, no-wrap
  31853. msgid "%$"
  31854. msgstr ""
  31855. #. type: table
  31856. #: guix-git/doc/guix.texi:21083
  31857. msgid "Delivery status message (e.g.@: @samp{saved to INBOX})"
  31858. msgstr ""
  31859. #. type: item
  31860. #: guix-git/doc/guix.texi:21083
  31861. #, no-wrap
  31862. msgid "%m"
  31863. msgstr ""
  31864. #. type: table
  31865. #: guix-git/doc/guix.texi:21085
  31866. msgid "Message-ID"
  31867. msgstr ""
  31868. #. type: item
  31869. #: guix-git/doc/guix.texi:21085 guix-git/doc/guix.texi:21628
  31870. #, no-wrap
  31871. msgid "%s"
  31872. msgstr ""
  31873. #. type: table
  31874. #: guix-git/doc/guix.texi:21087
  31875. msgid "Subject"
  31876. msgstr ""
  31877. #. type: item
  31878. #: guix-git/doc/guix.texi:21087
  31879. #, no-wrap
  31880. msgid "%f"
  31881. msgstr ""
  31882. #. type: table
  31883. #: guix-git/doc/guix.texi:21089
  31884. msgid "From address"
  31885. msgstr ""
  31886. #. type: table
  31887. #: guix-git/doc/guix.texi:21091
  31888. msgid "Physical size"
  31889. msgstr ""
  31890. #. type: item
  31891. #: guix-git/doc/guix.texi:21091
  31892. #, no-wrap
  31893. msgid "%w"
  31894. msgstr ""
  31895. #. type: table
  31896. #: guix-git/doc/guix.texi:21093
  31897. msgid "Virtual size."
  31898. msgstr ""
  31899. #. type: deftypevr
  31900. #: guix-git/doc/guix.texi:21095
  31901. msgid "Defaults to @samp{\"msgid=%m: %$\"}."
  31902. msgstr ""
  31903. #. type: deftypevr
  31904. #: guix-git/doc/guix.texi:21097
  31905. #, no-wrap
  31906. msgid "{@code{dovecot-configuration} parameter} string mail-location"
  31907. msgstr ""
  31908. #. type: deftypevr
  31909. #: guix-git/doc/guix.texi:21102
  31910. 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."
  31911. msgstr ""
  31912. #. type: deftypevr
  31913. #: guix-git/doc/guix.texi:21108
  31914. 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."
  31915. msgstr ""
  31916. #. type: deftypevr
  31917. #: guix-git/doc/guix.texi:21110
  31918. msgid "There are a few special variables you can use, e.g.:"
  31919. msgstr ""
  31920. #. type: table
  31921. #: guix-git/doc/guix.texi:21114
  31922. msgid "username"
  31923. msgstr ""
  31924. #. type: item
  31925. #: guix-git/doc/guix.texi:21114 guix-git/doc/guix.texi:21624
  31926. #, no-wrap
  31927. msgid "%n"
  31928. msgstr ""
  31929. #. type: table
  31930. #: guix-git/doc/guix.texi:21116
  31931. msgid "user part in user@@domain, same as %u if there's no domain"
  31932. msgstr ""
  31933. #. type: item
  31934. #: guix-git/doc/guix.texi:21116
  31935. #, no-wrap
  31936. msgid "%d"
  31937. msgstr ""
  31938. #. type: table
  31939. #: guix-git/doc/guix.texi:21118
  31940. msgid "domain part in user@@domain, empty if there's no domain"
  31941. msgstr ""
  31942. #. type: item
  31943. #: guix-git/doc/guix.texi:21118
  31944. #, no-wrap
  31945. msgid "%h"
  31946. msgstr ""
  31947. #. type: table
  31948. #: guix-git/doc/guix.texi:21120
  31949. msgid "home director"
  31950. msgstr ""
  31951. #. type: deftypevr
  31952. #: guix-git/doc/guix.texi:21123
  31953. msgid "See doc/wiki/Variables.txt for full list. Some examples:"
  31954. msgstr ""
  31955. #. type: item
  31956. #: guix-git/doc/guix.texi:21124
  31957. #, no-wrap
  31958. msgid "maildir:~/Maildir"
  31959. msgstr ""
  31960. #. type: item
  31961. #: guix-git/doc/guix.texi:21125
  31962. #, no-wrap
  31963. msgid "mbox:~/mail:INBOX=/var/mail/%u"
  31964. msgstr ""
  31965. #. type: item
  31966. #: guix-git/doc/guix.texi:21126
  31967. #, no-wrap
  31968. msgid "mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%"
  31969. msgstr ""
  31970. #. type: deftypevr
  31971. #: guix-git/doc/guix.texi:21131
  31972. #, no-wrap
  31973. msgid "{@code{dovecot-configuration} parameter} string mail-uid"
  31974. msgstr ""
  31975. #. type: deftypevr
  31976. #: guix-git/doc/guix.texi:21136
  31977. 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{\"\"}."
  31978. msgstr ""
  31979. #. type: deftypevr
  31980. #: guix-git/doc/guix.texi:21138
  31981. #, no-wrap
  31982. msgid "{@code{dovecot-configuration} parameter} string mail-gid"
  31983. msgstr ""
  31984. #. type: deftypevr
  31985. #: guix-git/doc/guix.texi:21143
  31986. #, no-wrap
  31987. msgid "{@code{dovecot-configuration} parameter} string mail-privileged-group"
  31988. msgstr ""
  31989. #. type: deftypevr
  31990. #: guix-git/doc/guix.texi:21149
  31991. 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{\"\"}."
  31992. msgstr ""
  31993. #. type: deftypevr
  31994. #: guix-git/doc/guix.texi:21151
  31995. #, no-wrap
  31996. msgid "{@code{dovecot-configuration} parameter} string mail-access-groups"
  31997. msgstr ""
  31998. #. type: deftypevr
  31999. #: guix-git/doc/guix.texi:21159
  32000. 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{\"\"}."
  32001. msgstr ""
  32002. #. type: deftypevr
  32003. #: guix-git/doc/guix.texi:21161
  32004. #, no-wrap
  32005. msgid "{@code{dovecot-configuration} parameter} string mail-attribute-dict"
  32006. msgstr ""
  32007. #. type: deftypevr
  32008. #: guix-git/doc/guix.texi:21164
  32009. 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}."
  32010. msgstr ""
  32011. #. type: deftypevr
  32012. #: guix-git/doc/guix.texi:21167
  32013. msgid "The IMAP METADATA commands are available only if the ``imap'' protocol configuration's @code{imap-metadata?} field is @samp{#t}."
  32014. msgstr ""
  32015. #. type: deftypevr
  32016. #: guix-git/doc/guix.texi:21172
  32017. #, no-wrap
  32018. msgid "{@code{dovecot-configuration} parameter} boolean mail-full-filesystem-access?"
  32019. msgstr ""
  32020. #. type: deftypevr
  32021. #: guix-git/doc/guix.texi:21178
  32022. 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}."
  32023. msgstr ""
  32024. #. type: deftypevr
  32025. #: guix-git/doc/guix.texi:21180
  32026. #, no-wrap
  32027. msgid "{@code{dovecot-configuration} parameter} boolean mmap-disable?"
  32028. msgstr ""
  32029. #. type: deftypevr
  32030. #: guix-git/doc/guix.texi:21184
  32031. 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}."
  32032. msgstr ""
  32033. #. type: deftypevr
  32034. #: guix-git/doc/guix.texi:21186
  32035. #, no-wrap
  32036. msgid "{@code{dovecot-configuration} parameter} boolean dotlock-use-excl?"
  32037. msgstr ""
  32038. #. type: deftypevr
  32039. #: guix-git/doc/guix.texi:21191
  32040. 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}."
  32041. msgstr ""
  32042. #. type: deftypevr
  32043. #: guix-git/doc/guix.texi:21193
  32044. #, no-wrap
  32045. msgid "{@code{dovecot-configuration} parameter} string mail-fsync"
  32046. msgstr ""
  32047. #. type: deftypevr
  32048. #: guix-git/doc/guix.texi:21195
  32049. msgid "When to use fsync() or fdatasync() calls:"
  32050. msgstr ""
  32051. #. type: item
  32052. #: guix-git/doc/guix.texi:21196
  32053. #, no-wrap
  32054. msgid "optimized"
  32055. msgstr ""
  32056. #. type: table
  32057. #: guix-git/doc/guix.texi:21198
  32058. msgid "Whenever necessary to avoid losing important data"
  32059. msgstr ""
  32060. #. type: table
  32061. #: guix-git/doc/guix.texi:21200
  32062. msgid "Useful with e.g.@: NFS when @code{write()}s are delayed"
  32063. msgstr ""
  32064. #. type: table
  32065. #: guix-git/doc/guix.texi:21202
  32066. msgid "Never use it (best performance, but crashes can lose data)."
  32067. msgstr ""
  32068. #. type: deftypevr
  32069. #: guix-git/doc/guix.texi:21204
  32070. msgid "Defaults to @samp{\"optimized\"}."
  32071. msgstr ""
  32072. #. type: deftypevr
  32073. #: guix-git/doc/guix.texi:21206
  32074. #, no-wrap
  32075. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-storage?"
  32076. msgstr ""
  32077. #. type: deftypevr
  32078. #: guix-git/doc/guix.texi:21211
  32079. 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}."
  32080. msgstr ""
  32081. #. type: deftypevr
  32082. #: guix-git/doc/guix.texi:21213
  32083. #, no-wrap
  32084. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-index?"
  32085. msgstr ""
  32086. #. type: deftypevr
  32087. #: guix-git/doc/guix.texi:21217
  32088. 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}."
  32089. msgstr ""
  32090. #. type: deftypevr
  32091. #: guix-git/doc/guix.texi:21219
  32092. #, no-wrap
  32093. msgid "{@code{dovecot-configuration} parameter} string lock-method"
  32094. msgstr ""
  32095. #. type: deftypevr
  32096. #: guix-git/doc/guix.texi:21225
  32097. 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\"}."
  32098. msgstr ""
  32099. #. type: deftypevr
  32100. #: guix-git/doc/guix.texi:21227
  32101. #, no-wrap
  32102. msgid "{@code{dovecot-configuration} parameter} file-name mail-temp-dir"
  32103. msgstr ""
  32104. #. type: deftypevr
  32105. #: guix-git/doc/guix.texi:21231
  32106. msgid "Directory in which LDA/LMTP temporarily stores incoming mails >128 kB. Defaults to @samp{\"/tmp\"}."
  32107. msgstr ""
  32108. #. type: deftypevr
  32109. #: guix-git/doc/guix.texi:21233
  32110. #, no-wrap
  32111. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-uid"
  32112. msgstr ""
  32113. #. type: deftypevr
  32114. #: guix-git/doc/guix.texi:21239
  32115. 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}."
  32116. msgstr ""
  32117. #. type: deftypevr
  32118. #: guix-git/doc/guix.texi:21241
  32119. #, no-wrap
  32120. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-uid"
  32121. msgstr ""
  32122. #. type: deftypevr
  32123. #: guix-git/doc/guix.texi:21246
  32124. #, no-wrap
  32125. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-gid"
  32126. msgstr ""
  32127. #. type: deftypevr
  32128. #: guix-git/doc/guix.texi:21251
  32129. 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}."
  32130. msgstr ""
  32131. #. type: deftypevr
  32132. #: guix-git/doc/guix.texi:21253
  32133. #, no-wrap
  32134. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-gid"
  32135. msgstr ""
  32136. #. type: deftypevr
  32137. #: guix-git/doc/guix.texi:21258
  32138. #, no-wrap
  32139. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-max-keyword-length"
  32140. msgstr ""
  32141. #. type: deftypevr
  32142. #: guix-git/doc/guix.texi:21262
  32143. msgid "Maximum allowed length for mail keyword name. It's only forced when trying to create new keywords. Defaults to @samp{50}."
  32144. msgstr ""
  32145. #. type: deftypevr
  32146. #: guix-git/doc/guix.texi:21264
  32147. #, no-wrap
  32148. msgid "{@code{dovecot-configuration} parameter} colon-separated-file-name-list valid-chroot-dirs"
  32149. msgstr ""
  32150. #. type: deftypevr
  32151. #: guix-git/doc/guix.texi:21274
  32152. 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{()}."
  32153. msgstr ""
  32154. #. type: deftypevr
  32155. #: guix-git/doc/guix.texi:21276
  32156. #, no-wrap
  32157. msgid "{@code{dovecot-configuration} parameter} string mail-chroot"
  32158. msgstr ""
  32159. #. type: deftypevr
  32160. #: guix-git/doc/guix.texi:21285
  32161. 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{\"\"}."
  32162. msgstr ""
  32163. #. type: deftypevr
  32164. #: guix-git/doc/guix.texi:21287
  32165. #, no-wrap
  32166. msgid "{@code{dovecot-configuration} parameter} file-name auth-socket-path"
  32167. msgstr ""
  32168. #. type: deftypevr
  32169. #: guix-git/doc/guix.texi:21291
  32170. 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\"}."
  32171. msgstr ""
  32172. #. type: deftypevr
  32173. #: guix-git/doc/guix.texi:21293
  32174. #, no-wrap
  32175. msgid "{@code{dovecot-configuration} parameter} file-name mail-plugin-dir"
  32176. msgstr ""
  32177. #. type: deftypevr
  32178. #: guix-git/doc/guix.texi:21296
  32179. msgid "Directory where to look up mail plugins. Defaults to @samp{\"/usr/lib/dovecot\"}."
  32180. msgstr ""
  32181. #. type: deftypevr
  32182. #: guix-git/doc/guix.texi:21298
  32183. #, no-wrap
  32184. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mail-plugins"
  32185. msgstr ""
  32186. #. type: deftypevr
  32187. #: guix-git/doc/guix.texi:21302
  32188. 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{()}."
  32189. msgstr ""
  32190. #. type: deftypevr
  32191. #: guix-git/doc/guix.texi:21304
  32192. #, no-wrap
  32193. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-cache-min-mail-count"
  32194. msgstr ""
  32195. #. type: deftypevr
  32196. #: guix-git/doc/guix.texi:21309
  32197. 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}."
  32198. msgstr ""
  32199. #. type: deftypevr
  32200. #: guix-git/doc/guix.texi:21311
  32201. #, no-wrap
  32202. msgid "{@code{dovecot-configuration} parameter} string mailbox-idle-check-interval"
  32203. msgstr ""
  32204. #. type: deftypevr
  32205. #: guix-git/doc/guix.texi:21318
  32206. 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\"}."
  32207. msgstr ""
  32208. #. type: deftypevr
  32209. #: guix-git/doc/guix.texi:21320
  32210. #, no-wrap
  32211. msgid "{@code{dovecot-configuration} parameter} boolean mail-save-crlf?"
  32212. msgstr ""
  32213. #. type: deftypevr
  32214. #: guix-git/doc/guix.texi:21327
  32215. 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}."
  32216. msgstr ""
  32217. #. type: deftypevr
  32218. #: guix-git/doc/guix.texi:21329
  32219. #, no-wrap
  32220. msgid "{@code{dovecot-configuration} parameter} boolean maildir-stat-dirs?"
  32221. msgstr ""
  32222. #. type: deftypevr
  32223. #: guix-git/doc/guix.texi:21337
  32224. 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}."
  32225. msgstr ""
  32226. #. type: deftypevr
  32227. #: guix-git/doc/guix.texi:21339
  32228. #, no-wrap
  32229. msgid "{@code{dovecot-configuration} parameter} boolean maildir-copy-with-hardlinks?"
  32230. msgstr ""
  32231. #. type: deftypevr
  32232. #: guix-git/doc/guix.texi:21344
  32233. 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}."
  32234. msgstr ""
  32235. #. type: deftypevr
  32236. #: guix-git/doc/guix.texi:21346
  32237. #, no-wrap
  32238. msgid "{@code{dovecot-configuration} parameter} boolean maildir-very-dirty-syncs?"
  32239. msgstr ""
  32240. #. type: deftypevr
  32241. #: guix-git/doc/guix.texi:21351
  32242. 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}."
  32243. msgstr ""
  32244. #. type: deftypevr
  32245. #: guix-git/doc/guix.texi:21353
  32246. #, no-wrap
  32247. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-read-locks"
  32248. msgstr ""
  32249. #. type: deftypevr
  32250. #: guix-git/doc/guix.texi:21356
  32251. msgid "Which locking methods to use for locking mbox. There are four available:"
  32252. msgstr ""
  32253. #. type: item
  32254. #: guix-git/doc/guix.texi:21358
  32255. #, no-wrap
  32256. msgid "dotlock"
  32257. msgstr ""
  32258. #. type: table
  32259. #: guix-git/doc/guix.texi:21362
  32260. 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."
  32261. msgstr ""
  32262. #. type: item
  32263. #: guix-git/doc/guix.texi:21362
  32264. #, no-wrap
  32265. msgid "dotlock-try"
  32266. msgstr ""
  32267. #. type: table
  32268. #: guix-git/doc/guix.texi:21365
  32269. msgid "Same as dotlock, but if it fails because of permissions or because there isn't enough disk space, just skip it."
  32270. msgstr ""
  32271. #. type: item
  32272. #: guix-git/doc/guix.texi:21365
  32273. #, no-wrap
  32274. msgid "fcntl"
  32275. msgstr ""
  32276. #. type: table
  32277. #: guix-git/doc/guix.texi:21367
  32278. msgid "Use this if possible. Works with NFS too if lockd is used."
  32279. msgstr ""
  32280. #. type: item
  32281. #: guix-git/doc/guix.texi:21367
  32282. #, no-wrap
  32283. msgid "flock"
  32284. msgstr ""
  32285. #. type: table
  32286. #: guix-git/doc/guix.texi:21369 guix-git/doc/guix.texi:21371
  32287. msgid "May not exist in all systems. Doesn't work with NFS."
  32288. msgstr ""
  32289. #. type: item
  32290. #: guix-git/doc/guix.texi:21369
  32291. #, no-wrap
  32292. msgid "lockf"
  32293. msgstr ""
  32294. #. type: deftypevr
  32295. #: guix-git/doc/guix.texi:21377
  32296. 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."
  32297. msgstr ""
  32298. #. type: deftypevr
  32299. #: guix-git/doc/guix.texi:21379
  32300. #, no-wrap
  32301. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-write-locks"
  32302. msgstr ""
  32303. #. type: deftypevr
  32304. #: guix-git/doc/guix.texi:21383
  32305. #, no-wrap
  32306. msgid "{@code{dovecot-configuration} parameter} string mbox-lock-timeout"
  32307. msgstr ""
  32308. #. type: deftypevr
  32309. #: guix-git/doc/guix.texi:21386
  32310. msgid "Maximum time to wait for lock (all of them) before aborting. Defaults to @samp{\"5 mins\"}."
  32311. msgstr ""
  32312. #. type: deftypevr
  32313. #: guix-git/doc/guix.texi:21388
  32314. #, no-wrap
  32315. msgid "{@code{dovecot-configuration} parameter} string mbox-dotlock-change-timeout"
  32316. msgstr ""
  32317. #. type: deftypevr
  32318. #: guix-git/doc/guix.texi:21392
  32319. 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\"}."
  32320. msgstr ""
  32321. #. type: deftypevr
  32322. #: guix-git/doc/guix.texi:21394
  32323. #, no-wrap
  32324. msgid "{@code{dovecot-configuration} parameter} boolean mbox-dirty-syncs?"
  32325. msgstr ""
  32326. #. type: deftypevr
  32327. #: guix-git/doc/guix.texi:21405
  32328. 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}."
  32329. msgstr ""
  32330. #. type: deftypevr
  32331. #: guix-git/doc/guix.texi:21407
  32332. #, no-wrap
  32333. msgid "{@code{dovecot-configuration} parameter} boolean mbox-very-dirty-syncs?"
  32334. msgstr ""
  32335. #. type: deftypevr
  32336. #: guix-git/doc/guix.texi:21412
  32337. 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}."
  32338. msgstr ""
  32339. #. type: deftypevr
  32340. #: guix-git/doc/guix.texi:21414
  32341. #, no-wrap
  32342. msgid "{@code{dovecot-configuration} parameter} boolean mbox-lazy-writes?"
  32343. msgstr ""
  32344. #. type: deftypevr
  32345. #: guix-git/doc/guix.texi:21420
  32346. 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}."
  32347. msgstr ""
  32348. #. type: deftypevr
  32349. #: guix-git/doc/guix.texi:21422
  32350. #, no-wrap
  32351. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mbox-min-index-size"
  32352. msgstr ""
  32353. #. type: deftypevr
  32354. #: guix-git/doc/guix.texi:21427
  32355. 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}."
  32356. msgstr ""
  32357. #. type: deftypevr
  32358. #: guix-git/doc/guix.texi:21429
  32359. #, no-wrap
  32360. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mdbox-rotate-size"
  32361. msgstr ""
  32362. #. type: deftypevr
  32363. #: guix-git/doc/guix.texi:21432
  32364. msgid "Maximum dbox file size until it's rotated. Defaults to @samp{10000000}."
  32365. msgstr ""
  32366. #. type: deftypevr
  32367. #: guix-git/doc/guix.texi:21434
  32368. #, no-wrap
  32369. msgid "{@code{dovecot-configuration} parameter} string mdbox-rotate-interval"
  32370. msgstr ""
  32371. #. type: deftypevr
  32372. #: guix-git/doc/guix.texi:21439
  32373. 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\"}."
  32374. msgstr ""
  32375. #. type: deftypevr
  32376. #: guix-git/doc/guix.texi:21441
  32377. #, no-wrap
  32378. msgid "{@code{dovecot-configuration} parameter} boolean mdbox-preallocate-space?"
  32379. msgstr ""
  32380. #. type: deftypevr
  32381. #: guix-git/doc/guix.texi:21446
  32382. 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}."
  32383. msgstr ""
  32384. #. type: deftypevr
  32385. #: guix-git/doc/guix.texi:21448
  32386. #, no-wrap
  32387. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-dir"
  32388. msgstr ""
  32389. #. type: deftypevr
  32390. #: guix-git/doc/guix.texi:21452
  32391. 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."
  32392. msgstr ""
  32393. #. type: deftypevr
  32394. #: guix-git/doc/guix.texi:21454
  32395. msgid "WARNING: This feature hasn't been tested much yet. Use at your own risk."
  32396. msgstr ""
  32397. #. type: deftypevr
  32398. #: guix-git/doc/guix.texi:21457
  32399. msgid "Directory root where to store mail attachments. Disabled, if empty. Defaults to @samp{\"\"}."
  32400. msgstr ""
  32401. #. type: deftypevr
  32402. #: guix-git/doc/guix.texi:21459
  32403. #, no-wrap
  32404. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-attachment-min-size"
  32405. msgstr ""
  32406. #. type: deftypevr
  32407. #: guix-git/doc/guix.texi:21464
  32408. 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}."
  32409. msgstr ""
  32410. #. type: deftypevr
  32411. #: guix-git/doc/guix.texi:21466
  32412. #, no-wrap
  32413. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-fs"
  32414. msgstr ""
  32415. #. type: deftypevr
  32416. #: guix-git/doc/guix.texi:21468
  32417. msgid "File system backend to use for saving attachments:"
  32418. msgstr ""
  32419. #. type: item
  32420. #: guix-git/doc/guix.texi:21469
  32421. #, no-wrap
  32422. msgid "posix"
  32423. msgstr ""
  32424. #. type: table
  32425. #: guix-git/doc/guix.texi:21471
  32426. msgid "No SiS done by Dovecot (but this might help FS's own deduplication)"
  32427. msgstr ""
  32428. #. type: item
  32429. #: guix-git/doc/guix.texi:21471
  32430. #, no-wrap
  32431. msgid "sis posix"
  32432. msgstr ""
  32433. #. type: table
  32434. #: guix-git/doc/guix.texi:21473
  32435. msgid "SiS with immediate byte-by-byte comparison during saving"
  32436. msgstr ""
  32437. #. type: item
  32438. #: guix-git/doc/guix.texi:21473
  32439. #, no-wrap
  32440. msgid "sis-queue posix"
  32441. msgstr ""
  32442. #. type: table
  32443. #: guix-git/doc/guix.texi:21475
  32444. msgid "SiS with delayed comparison and deduplication."
  32445. msgstr ""
  32446. #. type: deftypevr
  32447. #: guix-git/doc/guix.texi:21477
  32448. msgid "Defaults to @samp{\"sis posix\"}."
  32449. msgstr ""
  32450. #. type: deftypevr
  32451. #: guix-git/doc/guix.texi:21479
  32452. #, no-wrap
  32453. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-hash"
  32454. msgstr ""
  32455. #. type: deftypevr
  32456. #: guix-git/doc/guix.texi:21485
  32457. 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@}\"}."
  32458. msgstr ""
  32459. #. type: deftypevr
  32460. #: guix-git/doc/guix.texi:21487
  32461. #, no-wrap
  32462. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-process-limit"
  32463. msgstr ""
  32464. #. type: deftypevr
  32465. #: guix-git/doc/guix.texi:21492
  32466. #, no-wrap
  32467. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-client-limit"
  32468. msgstr ""
  32469. #. type: deftypevr
  32470. #: guix-git/doc/guix.texi:21495 guix-git/doc/guix.texi:29111
  32471. msgid "Defaults to @samp{1000}."
  32472. msgstr ""
  32473. #. type: deftypevr
  32474. #: guix-git/doc/guix.texi:21497
  32475. #, no-wrap
  32476. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-vsz-limit"
  32477. msgstr ""
  32478. #. type: deftypevr
  32479. #: guix-git/doc/guix.texi:21502
  32480. 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}."
  32481. msgstr ""
  32482. #. type: deftypevr
  32483. #: guix-git/doc/guix.texi:21504
  32484. #, no-wrap
  32485. msgid "{@code{dovecot-configuration} parameter} string default-login-user"
  32486. msgstr ""
  32487. #. type: deftypevr
  32488. #: guix-git/doc/guix.texi:21509
  32489. 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\"}."
  32490. msgstr ""
  32491. #. type: deftypevr
  32492. #: guix-git/doc/guix.texi:21511
  32493. #, no-wrap
  32494. msgid "{@code{dovecot-configuration} parameter} string default-internal-user"
  32495. msgstr ""
  32496. #. type: deftypevr
  32497. #: guix-git/doc/guix.texi:21516
  32498. 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\"}."
  32499. msgstr ""
  32500. #. type: deftypevr
  32501. #: guix-git/doc/guix.texi:21518
  32502. #, no-wrap
  32503. msgid "{@code{dovecot-configuration} parameter} string ssl?"
  32504. msgstr ""
  32505. #. type: deftypevr
  32506. #: guix-git/doc/guix.texi:21521
  32507. msgid "SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>. Defaults to @samp{\"required\"}."
  32508. msgstr ""
  32509. #. type: deftypevr
  32510. #: guix-git/doc/guix.texi:21523
  32511. #, no-wrap
  32512. msgid "{@code{dovecot-configuration} parameter} string ssl-cert"
  32513. msgstr ""
  32514. #. type: deftypevr
  32515. #: guix-git/doc/guix.texi:21526
  32516. msgid "PEM encoded X.509 SSL/TLS certificate (public key). Defaults to @samp{\"</etc/dovecot/default.pem\"}."
  32517. msgstr ""
  32518. #. type: deftypevr
  32519. #: guix-git/doc/guix.texi:21528
  32520. #, no-wrap
  32521. msgid "{@code{dovecot-configuration} parameter} string ssl-key"
  32522. msgstr ""
  32523. #. type: deftypevr
  32524. #: guix-git/doc/guix.texi:21533
  32525. 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\"}."
  32526. msgstr ""
  32527. #. type: deftypevr
  32528. #: guix-git/doc/guix.texi:21535
  32529. #, no-wrap
  32530. msgid "{@code{dovecot-configuration} parameter} string ssl-key-password"
  32531. msgstr ""
  32532. #. type: deftypevr
  32533. #: guix-git/doc/guix.texi:21541
  32534. 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{\"\"}."
  32535. msgstr ""
  32536. #. type: deftypevr
  32537. #: guix-git/doc/guix.texi:21543
  32538. #, no-wrap
  32539. msgid "{@code{dovecot-configuration} parameter} string ssl-ca"
  32540. msgstr ""
  32541. #. type: deftypevr
  32542. #: guix-git/doc/guix.texi:21549
  32543. 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{\"\"}."
  32544. msgstr ""
  32545. #. type: deftypevr
  32546. #: guix-git/doc/guix.texi:21551
  32547. #, no-wrap
  32548. msgid "{@code{dovecot-configuration} parameter} boolean ssl-require-crl?"
  32549. msgstr ""
  32550. #. type: deftypevr
  32551. #: guix-git/doc/guix.texi:21554
  32552. msgid "Require that CRL check succeeds for client certificates. Defaults to @samp{#t}."
  32553. msgstr ""
  32554. #. type: deftypevr
  32555. #: guix-git/doc/guix.texi:21556
  32556. #, no-wrap
  32557. msgid "{@code{dovecot-configuration} parameter} boolean ssl-verify-client-cert?"
  32558. msgstr ""
  32559. #. type: deftypevr
  32560. #: guix-git/doc/guix.texi:21560
  32561. 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}."
  32562. msgstr ""
  32563. #. type: deftypevr
  32564. #: guix-git/doc/guix.texi:21562
  32565. #, no-wrap
  32566. msgid "{@code{dovecot-configuration} parameter} string ssl-cert-username-field"
  32567. msgstr ""
  32568. #. type: deftypevr
  32569. #: guix-git/doc/guix.texi:21567
  32570. 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\"}."
  32571. msgstr ""
  32572. #. type: deftypevr
  32573. #: guix-git/doc/guix.texi:21569
  32574. #, no-wrap
  32575. msgid "{@code{dovecot-configuration} parameter} string ssl-min-protocol"
  32576. msgstr ""
  32577. #. type: deftypevr
  32578. #: guix-git/doc/guix.texi:21572
  32579. msgid "Minimum SSL protocol version to accept. Defaults to @samp{\"TLSv1\"}."
  32580. msgstr ""
  32581. #. type: deftypevr
  32582. #: guix-git/doc/guix.texi:21574
  32583. #, no-wrap
  32584. msgid "{@code{dovecot-configuration} parameter} string ssl-cipher-list"
  32585. msgstr ""
  32586. #. type: deftypevr
  32587. #: guix-git/doc/guix.texi:21577
  32588. msgid "SSL ciphers to use. Defaults to @samp{\"ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@@STRENGTH\"}."
  32589. msgstr ""
  32590. #. type: deftypevr
  32591. #: guix-git/doc/guix.texi:21579
  32592. #, no-wrap
  32593. msgid "{@code{dovecot-configuration} parameter} string ssl-crypto-device"
  32594. msgstr ""
  32595. #. type: deftypevr
  32596. #: guix-git/doc/guix.texi:21582
  32597. msgid "SSL crypto device to use, for valid values run \"openssl engine\". Defaults to @samp{\"\"}."
  32598. msgstr ""
  32599. #. type: deftypevr
  32600. #: guix-git/doc/guix.texi:21584
  32601. #, no-wrap
  32602. msgid "{@code{dovecot-configuration} parameter} string postmaster-address"
  32603. msgstr ""
  32604. #. type: deftypevr
  32605. #: guix-git/doc/guix.texi:21588
  32606. msgid "Address to use when sending rejection mails. %d expands to recipient domain. Defaults to @samp{\"postmaster@@%d\"}."
  32607. msgstr ""
  32608. #. type: deftypevr
  32609. #: guix-git/doc/guix.texi:21590
  32610. #, no-wrap
  32611. msgid "{@code{dovecot-configuration} parameter} string hostname"
  32612. msgstr ""
  32613. #. type: deftypevr
  32614. #: guix-git/doc/guix.texi:21594
  32615. 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{\"\"}."
  32616. msgstr ""
  32617. #. type: deftypevr
  32618. #: guix-git/doc/guix.texi:21596
  32619. #, no-wrap
  32620. msgid "{@code{dovecot-configuration} parameter} boolean quota-full-tempfail?"
  32621. msgstr ""
  32622. #. type: deftypevr
  32623. #: guix-git/doc/guix.texi:21600
  32624. msgid "If user is over quota, return with temporary failure instead of bouncing the mail. Defaults to @samp{#f}."
  32625. msgstr ""
  32626. #. type: deftypevr
  32627. #: guix-git/doc/guix.texi:21602
  32628. #, no-wrap
  32629. msgid "{@code{dovecot-configuration} parameter} file-name sendmail-path"
  32630. msgstr ""
  32631. #. type: deftypevr
  32632. #: guix-git/doc/guix.texi:21605
  32633. msgid "Binary to use for sending mails. Defaults to @samp{\"/usr/sbin/sendmail\"}."
  32634. msgstr ""
  32635. #. type: deftypevr
  32636. #: guix-git/doc/guix.texi:21607
  32637. #, no-wrap
  32638. msgid "{@code{dovecot-configuration} parameter} string submission-host"
  32639. msgstr ""
  32640. #. type: deftypevr
  32641. #: guix-git/doc/guix.texi:21611
  32642. msgid "If non-empty, send mails via this SMTP host[:port] instead of sendmail. Defaults to @samp{\"\"}."
  32643. msgstr ""
  32644. #. type: deftypevr
  32645. #: guix-git/doc/guix.texi:21613
  32646. #, no-wrap
  32647. msgid "{@code{dovecot-configuration} parameter} string rejection-subject"
  32648. msgstr ""
  32649. #. type: deftypevr
  32650. #: guix-git/doc/guix.texi:21617
  32651. 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\"}."
  32652. msgstr ""
  32653. #. type: deftypevr
  32654. #: guix-git/doc/guix.texi:21619
  32655. #, no-wrap
  32656. msgid "{@code{dovecot-configuration} parameter} string rejection-reason"
  32657. msgstr ""
  32658. #. type: deftypevr
  32659. #: guix-git/doc/guix.texi:21622
  32660. msgid "Human readable error message for rejection mails. You can use variables:"
  32661. msgstr ""
  32662. #. type: table
  32663. #: guix-git/doc/guix.texi:21626
  32664. msgid "CRLF"
  32665. msgstr ""
  32666. #. type: item
  32667. #: guix-git/doc/guix.texi:21626
  32668. #, no-wrap
  32669. msgid "%r"
  32670. msgstr ""
  32671. #. type: table
  32672. #: guix-git/doc/guix.texi:21628
  32673. msgid "reason"
  32674. msgstr ""
  32675. #. type: table
  32676. #: guix-git/doc/guix.texi:21630
  32677. msgid "original subject"
  32678. msgstr ""
  32679. #. type: item
  32680. #: guix-git/doc/guix.texi:21630
  32681. #, no-wrap
  32682. msgid "%t"
  32683. msgstr ""
  32684. #. type: table
  32685. #: guix-git/doc/guix.texi:21632
  32686. msgid "recipient"
  32687. msgstr ""
  32688. #. type: deftypevr
  32689. #: guix-git/doc/guix.texi:21634
  32690. msgid "Defaults to @samp{\"Your message to <%t> was automatically rejected:%n%r\"}."
  32691. msgstr ""
  32692. #. type: deftypevr
  32693. #: guix-git/doc/guix.texi:21636
  32694. #, no-wrap
  32695. msgid "{@code{dovecot-configuration} parameter} string recipient-delimiter"
  32696. msgstr ""
  32697. #. type: deftypevr
  32698. #: guix-git/doc/guix.texi:21640
  32699. msgid "Delimiter character between local-part and detail in email address. Defaults to @samp{\"+\"}."
  32700. msgstr ""
  32701. #. type: deftypevr
  32702. #: guix-git/doc/guix.texi:21642
  32703. #, no-wrap
  32704. msgid "{@code{dovecot-configuration} parameter} string lda-original-recipient-header"
  32705. msgstr ""
  32706. #. type: deftypevr
  32707. #: guix-git/doc/guix.texi:21648
  32708. 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{\"\"}."
  32709. msgstr ""
  32710. #. type: deftypevr
  32711. #: guix-git/doc/guix.texi:21650
  32712. #, no-wrap
  32713. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autocreate?"
  32714. msgstr ""
  32715. #. type: deftypevr
  32716. #: guix-git/doc/guix.texi:21654
  32717. msgid "Should saving a mail to a nonexistent mailbox automatically create it?. Defaults to @samp{#f}."
  32718. msgstr ""
  32719. #. type: deftypevr
  32720. #: guix-git/doc/guix.texi:21656
  32721. #, no-wrap
  32722. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autosubscribe?"
  32723. msgstr ""
  32724. #. type: deftypevr
  32725. #: guix-git/doc/guix.texi:21660
  32726. msgid "Should automatically created mailboxes be also automatically subscribed?. Defaults to @samp{#f}."
  32727. msgstr ""
  32728. #. type: deftypevr
  32729. #: guix-git/doc/guix.texi:21662
  32730. #, no-wrap
  32731. msgid "{@code{dovecot-configuration} parameter} non-negative-integer imap-max-line-length"
  32732. msgstr ""
  32733. #. type: deftypevr
  32734. #: guix-git/doc/guix.texi:21668
  32735. 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}."
  32736. msgstr ""
  32737. #. type: deftypevr
  32738. #: guix-git/doc/guix.texi:21670
  32739. #, no-wrap
  32740. msgid "{@code{dovecot-configuration} parameter} string imap-logout-format"
  32741. msgstr ""
  32742. #. type: deftypevr
  32743. #: guix-git/doc/guix.texi:21672
  32744. msgid "IMAP logout format string:"
  32745. msgstr ""
  32746. #. type: item
  32747. #: guix-git/doc/guix.texi:21673
  32748. #, no-wrap
  32749. msgid "%i"
  32750. msgstr ""
  32751. #. type: table
  32752. #: guix-git/doc/guix.texi:21675
  32753. msgid "total number of bytes read from client"
  32754. msgstr ""
  32755. #. type: item
  32756. #: guix-git/doc/guix.texi:21675
  32757. #, no-wrap
  32758. msgid "%o"
  32759. msgstr ""
  32760. #. type: table
  32761. #: guix-git/doc/guix.texi:21677
  32762. msgid "total number of bytes sent to client."
  32763. msgstr ""
  32764. #. type: deftypevr
  32765. #: guix-git/doc/guix.texi:21680
  32766. 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@}\"}."
  32767. msgstr ""
  32768. #. type: deftypevr
  32769. #: guix-git/doc/guix.texi:21682
  32770. #, no-wrap
  32771. msgid "{@code{dovecot-configuration} parameter} string imap-capability"
  32772. msgstr ""
  32773. #. type: deftypevr
  32774. #: guix-git/doc/guix.texi:21686
  32775. 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{\"\"}."
  32776. msgstr ""
  32777. #. type: deftypevr
  32778. #: guix-git/doc/guix.texi:21688
  32779. #, no-wrap
  32780. msgid "{@code{dovecot-configuration} parameter} string imap-idle-notify-interval"
  32781. msgstr ""
  32782. #. type: deftypevr
  32783. #: guix-git/doc/guix.texi:21692
  32784. msgid "How long to wait between \"OK Still here\" notifications when client is IDLEing. Defaults to @samp{\"2 mins\"}."
  32785. msgstr ""
  32786. #. type: deftypevr
  32787. #: guix-git/doc/guix.texi:21694
  32788. #, no-wrap
  32789. msgid "{@code{dovecot-configuration} parameter} string imap-id-send"
  32790. msgstr ""
  32791. #. type: deftypevr
  32792. #: guix-git/doc/guix.texi:21700
  32793. 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{\"\"}."
  32794. msgstr ""
  32795. #. type: deftypevr
  32796. #: guix-git/doc/guix.texi:21702
  32797. #, no-wrap
  32798. msgid "{@code{dovecot-configuration} parameter} string imap-id-log"
  32799. msgstr ""
  32800. #. type: deftypevr
  32801. #: guix-git/doc/guix.texi:21705
  32802. msgid "ID fields sent by client to log. * means everything. Defaults to @samp{\"\"}."
  32803. msgstr ""
  32804. #. type: deftypevr
  32805. #: guix-git/doc/guix.texi:21707
  32806. #, no-wrap
  32807. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list imap-client-workarounds"
  32808. msgstr ""
  32809. #. type: deftypevr
  32810. #: guix-git/doc/guix.texi:21709
  32811. msgid "Workarounds for various client bugs:"
  32812. msgstr ""
  32813. #. type: item
  32814. #: guix-git/doc/guix.texi:21711
  32815. #, no-wrap
  32816. msgid "delay-newmail"
  32817. msgstr ""
  32818. #. type: table
  32819. #: guix-git/doc/guix.texi:21718
  32820. 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\"."
  32821. msgstr ""
  32822. #. type: item
  32823. #: guix-git/doc/guix.texi:21719
  32824. #, no-wrap
  32825. msgid "tb-extra-mailbox-sep"
  32826. msgstr ""
  32827. #. type: table
  32828. #: guix-git/doc/guix.texi:21723
  32829. 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."
  32830. msgstr ""
  32831. #. type: item
  32832. #: guix-git/doc/guix.texi:21724
  32833. #, no-wrap
  32834. msgid "tb-lsub-flags"
  32835. msgstr ""
  32836. #. type: table
  32837. #: guix-git/doc/guix.texi:21728
  32838. 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."
  32839. msgstr ""
  32840. #. type: deftypevr
  32841. #: guix-git/doc/guix.texi:21732
  32842. #, no-wrap
  32843. msgid "{@code{dovecot-configuration} parameter} string imap-urlauth-host"
  32844. msgstr ""
  32845. #. type: deftypevr
  32846. #: guix-git/doc/guix.texi:21735
  32847. msgid "Host allowed in URLAUTH URLs sent by client. \"*\" allows all. Defaults to @samp{\"\"}."
  32848. msgstr ""
  32849. #. type: Plain text
  32850. #: guix-git/doc/guix.texi:21743
  32851. 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."
  32852. msgstr ""
  32853. #. type: Plain text
  32854. #: guix-git/doc/guix.texi:21749
  32855. 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."
  32856. msgstr ""
  32857. #. type: Plain text
  32858. #: guix-git/doc/guix.texi:21751
  32859. msgid "Available @code{opaque-dovecot-configuration} fields are:"
  32860. msgstr ""
  32861. #. type: deftypevr
  32862. #: guix-git/doc/guix.texi:21752
  32863. #, no-wrap
  32864. msgid "{@code{opaque-dovecot-configuration} parameter} package dovecot"
  32865. msgstr ""
  32866. #. type: deftypevr
  32867. #: guix-git/doc/guix.texi:21756
  32868. #, no-wrap
  32869. msgid "{@code{opaque-dovecot-configuration} parameter} string string"
  32870. msgstr ""
  32871. #. type: deftypevr
  32872. #: guix-git/doc/guix.texi:21758
  32873. msgid "The contents of the @code{dovecot.conf}, as a string."
  32874. msgstr ""
  32875. #. type: Plain text
  32876. #: guix-git/doc/guix.texi:21762
  32877. msgid "For example, if your @code{dovecot.conf} is just the empty string, you could instantiate a dovecot service like this:"
  32878. msgstr ""
  32879. #. type: lisp
  32880. #: guix-git/doc/guix.texi:21767
  32881. #, no-wrap
  32882. msgid ""
  32883. "(dovecot-service #:config\n"
  32884. " (opaque-dovecot-configuration\n"
  32885. " (string \"\")))\n"
  32886. msgstr ""
  32887. #. type: subsubheading
  32888. #: guix-git/doc/guix.texi:21769
  32889. #, no-wrap
  32890. msgid "OpenSMTPD Service"
  32891. msgstr ""
  32892. #. type: deffn
  32893. #: guix-git/doc/guix.texi:21771
  32894. #, no-wrap
  32895. msgid "{Scheme Variable} opensmtpd-service-type"
  32896. msgstr ""
  32897. #. type: deffn
  32898. #: guix-git/doc/guix.texi:21775
  32899. 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:"
  32900. msgstr ""
  32901. #. type: lisp
  32902. #: guix-git/doc/guix.texi:21780
  32903. #, no-wrap
  32904. msgid ""
  32905. "(service opensmtpd-service-type\n"
  32906. " (opensmtpd-configuration\n"
  32907. " (config-file (local-file \"./my-smtpd.conf\"))))\n"
  32908. msgstr ""
  32909. #. type: deftp
  32910. #: guix-git/doc/guix.texi:21783
  32911. #, no-wrap
  32912. msgid "{Data Type} opensmtpd-configuration"
  32913. msgstr ""
  32914. #. type: deftp
  32915. #: guix-git/doc/guix.texi:21785
  32916. msgid "Data type representing the configuration of opensmtpd."
  32917. msgstr ""
  32918. #. type: item
  32919. #: guix-git/doc/guix.texi:21787
  32920. #, no-wrap
  32921. msgid "@code{package} (default: @var{opensmtpd})"
  32922. msgstr ""
  32923. #. type: table
  32924. #: guix-git/doc/guix.texi:21789
  32925. msgid "Package object of the OpenSMTPD SMTP server."
  32926. msgstr ""
  32927. #. type: item
  32928. #: guix-git/doc/guix.texi:21790
  32929. #, fuzzy, no-wrap
  32930. msgid "@code{config-file} (default: @code{%default-opensmtpd-file})"
  32931. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  32932. #. type: table
  32933. #: guix-git/doc/guix.texi:21795
  32934. 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."
  32935. msgstr ""
  32936. #. type: subsubheading
  32937. #: guix-git/doc/guix.texi:21799
  32938. #, no-wrap
  32939. msgid "Exim Service"
  32940. msgstr ""
  32941. #. type: cindex
  32942. #: guix-git/doc/guix.texi:21801
  32943. #, no-wrap
  32944. msgid "mail transfer agent (MTA)"
  32945. msgstr ""
  32946. #. type: cindex
  32947. #: guix-git/doc/guix.texi:21802
  32948. #, no-wrap
  32949. msgid "MTA (mail transfer agent)"
  32950. msgstr ""
  32951. #. type: cindex
  32952. #: guix-git/doc/guix.texi:21803
  32953. #, no-wrap
  32954. msgid "SMTP"
  32955. msgstr ""
  32956. #. type: deffn
  32957. #: guix-git/doc/guix.texi:21805
  32958. #, no-wrap
  32959. msgid "{Scheme Variable} exim-service-type"
  32960. msgstr ""
  32961. #. type: deffn
  32962. #: guix-git/doc/guix.texi:21809
  32963. 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:"
  32964. msgstr ""
  32965. #. type: lisp
  32966. #: guix-git/doc/guix.texi:21814
  32967. #, no-wrap
  32968. msgid ""
  32969. "(service exim-service-type\n"
  32970. " (exim-configuration\n"
  32971. " (config-file (local-file \"./my-exim.conf\"))))\n"
  32972. msgstr ""
  32973. #. type: Plain text
  32974. #: guix-git/doc/guix.texi:21820
  32975. 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)."
  32976. msgstr ""
  32977. #. type: deftp
  32978. #: guix-git/doc/guix.texi:21821
  32979. #, no-wrap
  32980. msgid "{Data Type} exim-configuration"
  32981. msgstr ""
  32982. #. type: deftp
  32983. #: guix-git/doc/guix.texi:21823
  32984. msgid "Data type representing the configuration of exim."
  32985. msgstr ""
  32986. #. type: item
  32987. #: guix-git/doc/guix.texi:21825
  32988. #, no-wrap
  32989. msgid "@code{package} (default: @var{exim})"
  32990. msgstr ""
  32991. #. type: table
  32992. #: guix-git/doc/guix.texi:21827
  32993. msgid "Package object of the Exim server."
  32994. msgstr ""
  32995. #. type: table
  32996. #: guix-git/doc/guix.texi:21834
  32997. 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."
  32998. msgstr ""
  32999. #. type: subsubheading
  33000. #: guix-git/doc/guix.texi:21838
  33001. #, fuzzy, no-wrap
  33002. msgid "Getmail service"
  33003. msgstr "邮件服务"
  33004. #. type: cindex
  33005. #: guix-git/doc/guix.texi:21840
  33006. #, no-wrap
  33007. msgid "IMAP"
  33008. msgstr ""
  33009. #. type: cindex
  33010. #: guix-git/doc/guix.texi:21841
  33011. #, no-wrap
  33012. msgid "POP"
  33013. msgstr ""
  33014. #. type: deffn
  33015. #: guix-git/doc/guix.texi:21843
  33016. #, no-wrap
  33017. msgid "{Scheme Variable} getmail-service-type"
  33018. msgstr ""
  33019. #. type: deffn
  33020. #: guix-git/doc/guix.texi:21846
  33021. msgid "This is the type of the @uref{http://pyropus.ca/software/getmail/, Getmail} mail retriever, whose value should be an @code{getmail-configuration}."
  33022. msgstr ""
  33023. #. type: Plain text
  33024. #: guix-git/doc/guix.texi:21849
  33025. msgid "Available @code{getmail-configuration} fields are:"
  33026. msgstr ""
  33027. #. type: deftypevr
  33028. #: guix-git/doc/guix.texi:21850
  33029. #, no-wrap
  33030. msgid "{@code{getmail-configuration} parameter} symbol name"
  33031. msgstr ""
  33032. #. type: deftypevr
  33033. #: guix-git/doc/guix.texi:21852
  33034. msgid "A symbol to identify the getmail service."
  33035. msgstr ""
  33036. #. type: deftypevr
  33037. #: guix-git/doc/guix.texi:21854
  33038. msgid "Defaults to @samp{\"unset\"}."
  33039. msgstr ""
  33040. #. type: deftypevr
  33041. #: guix-git/doc/guix.texi:21857
  33042. #, no-wrap
  33043. msgid "{@code{getmail-configuration} parameter} package package"
  33044. msgstr ""
  33045. #. type: deftypevr
  33046. #: guix-git/doc/guix.texi:21859
  33047. #, fuzzy
  33048. msgid "The getmail package to use."
  33049. msgstr "软件包数据类型。"
  33050. #. type: deftypevr
  33051. #: guix-git/doc/guix.texi:21862
  33052. #, no-wrap
  33053. msgid "{@code{getmail-configuration} parameter} string user"
  33054. msgstr ""
  33055. #. type: deftypevr
  33056. #: guix-git/doc/guix.texi:21864
  33057. msgid "The user to run getmail as."
  33058. msgstr ""
  33059. #. type: deftypevr
  33060. #: guix-git/doc/guix.texi:21866 guix-git/doc/guix.texi:21873
  33061. msgid "Defaults to @samp{\"getmail\"}."
  33062. msgstr ""
  33063. #. type: deftypevr
  33064. #: guix-git/doc/guix.texi:21869
  33065. #, no-wrap
  33066. msgid "{@code{getmail-configuration} parameter} string group"
  33067. msgstr ""
  33068. #. type: deftypevr
  33069. #: guix-git/doc/guix.texi:21871
  33070. msgid "The group to run getmail as."
  33071. msgstr ""
  33072. #. type: deftypevr
  33073. #: guix-git/doc/guix.texi:21876
  33074. #, no-wrap
  33075. msgid "{@code{getmail-configuration} parameter} string directory"
  33076. msgstr ""
  33077. #. type: deftypevr
  33078. #: guix-git/doc/guix.texi:21878
  33079. msgid "The getmail directory to use."
  33080. msgstr ""
  33081. #. type: deftypevr
  33082. #: guix-git/doc/guix.texi:21880
  33083. msgid "Defaults to @samp{\"/var/lib/getmail/default\"}."
  33084. msgstr ""
  33085. #. type: deftypevr
  33086. #: guix-git/doc/guix.texi:21883
  33087. #, no-wrap
  33088. msgid "{@code{getmail-configuration} parameter} getmail-configuration-file rcfile"
  33089. msgstr ""
  33090. #. type: deftypevr
  33091. #: guix-git/doc/guix.texi:21885
  33092. msgid "The getmail configuration file to use."
  33093. msgstr ""
  33094. #. type: deftypevr
  33095. #: guix-git/doc/guix.texi:21887
  33096. msgid "Available @code{getmail-configuration-file} fields are:"
  33097. msgstr ""
  33098. #. type: deftypevr
  33099. #: guix-git/doc/guix.texi:21888
  33100. #, no-wrap
  33101. msgid "{@code{getmail-configuration-file} parameter} getmail-retriever-configuration retriever"
  33102. msgstr ""
  33103. #. type: deftypevr
  33104. #: guix-git/doc/guix.texi:21890
  33105. msgid "What mail account to retrieve mail from, and how to access that account."
  33106. msgstr ""
  33107. #. type: deftypevr
  33108. #: guix-git/doc/guix.texi:21892
  33109. msgid "Available @code{getmail-retriever-configuration} fields are:"
  33110. msgstr ""
  33111. #. type: deftypevr
  33112. #: guix-git/doc/guix.texi:21893
  33113. #, no-wrap
  33114. msgid "{@code{getmail-retriever-configuration} parameter} string type"
  33115. msgstr ""
  33116. #. type: deftypevr
  33117. #: guix-git/doc/guix.texi:21896
  33118. msgid "The type of mail retriever to use. Valid values include @samp{passwd} and @samp{static}."
  33119. msgstr ""
  33120. #. type: deftypevr
  33121. #: guix-git/doc/guix.texi:21898
  33122. msgid "Defaults to @samp{\"SimpleIMAPSSLRetriever\"}."
  33123. msgstr ""
  33124. #. type: deftypevr
  33125. #: guix-git/doc/guix.texi:21901
  33126. #, no-wrap
  33127. msgid "{@code{getmail-retriever-configuration} parameter} string server"
  33128. msgstr ""
  33129. #. type: deftypevr
  33130. #: guix-git/doc/guix.texi:21903 guix-git/doc/guix.texi:21910
  33131. msgid "Username to login to the mail server with."
  33132. msgstr ""
  33133. #. type: deftypevr
  33134. #: guix-git/doc/guix.texi:21905 guix-git/doc/guix.texi:21912
  33135. #: guix-git/doc/guix.texi:21976
  33136. msgid "Defaults to @samp{unset}."
  33137. msgstr ""
  33138. #. type: deftypevr
  33139. #: guix-git/doc/guix.texi:21908
  33140. #, no-wrap
  33141. msgid "{@code{getmail-retriever-configuration} parameter} string username"
  33142. msgstr ""
  33143. #. type: deftypevr
  33144. #: guix-git/doc/guix.texi:21915
  33145. #, no-wrap
  33146. msgid "{@code{getmail-retriever-configuration} parameter} non-negative-integer port"
  33147. msgstr ""
  33148. #. type: deftypevr
  33149. #: guix-git/doc/guix.texi:21917
  33150. msgid "Port number to connect to."
  33151. msgstr ""
  33152. #. type: deftypevr
  33153. #: guix-git/doc/guix.texi:21922
  33154. #, no-wrap
  33155. msgid "{@code{getmail-retriever-configuration} parameter} string password"
  33156. msgstr ""
  33157. #. type: deftypevr
  33158. #: guix-git/doc/guix.texi:21924 guix-git/doc/guix.texi:21931
  33159. msgid "Override fields from passwd."
  33160. msgstr ""
  33161. #. type: deftypevr
  33162. #: guix-git/doc/guix.texi:21929
  33163. #, no-wrap
  33164. msgid "{@code{getmail-retriever-configuration} parameter} list password-command"
  33165. msgstr ""
  33166. #. type: deftypevr
  33167. #: guix-git/doc/guix.texi:21936
  33168. #, no-wrap
  33169. msgid "{@code{getmail-retriever-configuration} parameter} string keyfile"
  33170. msgstr ""
  33171. #. type: deftypevr
  33172. #: guix-git/doc/guix.texi:21938
  33173. msgid "PEM-formatted key file to use for the TLS negotiation."
  33174. msgstr ""
  33175. #. type: deftypevr
  33176. #: guix-git/doc/guix.texi:21943
  33177. #, no-wrap
  33178. msgid "{@code{getmail-retriever-configuration} parameter} string certfile"
  33179. msgstr ""
  33180. #. type: deftypevr
  33181. #: guix-git/doc/guix.texi:21945
  33182. msgid "PEM-formatted certificate file to use for the TLS negotiation."
  33183. msgstr ""
  33184. #. type: deftypevr
  33185. #: guix-git/doc/guix.texi:21950
  33186. #, no-wrap
  33187. msgid "{@code{getmail-retriever-configuration} parameter} string ca-certs"
  33188. msgstr ""
  33189. #. type: deftypevr
  33190. #: guix-git/doc/guix.texi:21952
  33191. #, fuzzy
  33192. msgid "CA certificates to use."
  33193. msgstr "证书服务"
  33194. #. type: deftypevr
  33195. #: guix-git/doc/guix.texi:21957
  33196. #, no-wrap
  33197. msgid "{@code{getmail-retriever-configuration} parameter} parameter-alist extra-parameters"
  33198. msgstr ""
  33199. #. type: deftypevr
  33200. #: guix-git/doc/guix.texi:21959
  33201. msgid "Extra retriever parameters."
  33202. msgstr ""
  33203. #. type: deftypevr
  33204. #: guix-git/doc/guix.texi:21966
  33205. #, no-wrap
  33206. msgid "{@code{getmail-configuration-file} parameter} getmail-destination-configuration destination"
  33207. msgstr ""
  33208. #. type: deftypevr
  33209. #: guix-git/doc/guix.texi:21968
  33210. msgid "What to do with retrieved messages."
  33211. msgstr ""
  33212. #. type: deftypevr
  33213. #: guix-git/doc/guix.texi:21970
  33214. msgid "Available @code{getmail-destination-configuration} fields are:"
  33215. msgstr ""
  33216. #. type: deftypevr
  33217. #: guix-git/doc/guix.texi:21971
  33218. #, no-wrap
  33219. msgid "{@code{getmail-destination-configuration} parameter} string type"
  33220. msgstr ""
  33221. #. type: deftypevr
  33222. #: guix-git/doc/guix.texi:21974
  33223. msgid "The type of mail destination. Valid values include @samp{Maildir}, @samp{Mboxrd} and @samp{MDA_external}."
  33224. msgstr ""
  33225. #. type: deftypevr
  33226. #: guix-git/doc/guix.texi:21979
  33227. #, no-wrap
  33228. msgid "{@code{getmail-destination-configuration} parameter} string-or-filelike path"
  33229. msgstr ""
  33230. #. type: deftypevr
  33231. #: guix-git/doc/guix.texi:21982
  33232. msgid "The path option for the mail destination. The behaviour depends on the chosen type."
  33233. msgstr ""
  33234. #. type: deftypevr
  33235. #: guix-git/doc/guix.texi:21987
  33236. #, no-wrap
  33237. msgid "{@code{getmail-destination-configuration} parameter} parameter-alist extra-parameters"
  33238. msgstr ""
  33239. #. type: deftypevr
  33240. #: guix-git/doc/guix.texi:21989
  33241. msgid "Extra destination parameters"
  33242. msgstr ""
  33243. #. type: deftypevr
  33244. #: guix-git/doc/guix.texi:21996
  33245. #, no-wrap
  33246. msgid "{@code{getmail-configuration-file} parameter} getmail-options-configuration options"
  33247. msgstr ""
  33248. #. type: deftypevr
  33249. #: guix-git/doc/guix.texi:21998
  33250. msgid "Configure getmail."
  33251. msgstr ""
  33252. #. type: deftypevr
  33253. #: guix-git/doc/guix.texi:22000
  33254. msgid "Available @code{getmail-options-configuration} fields are:"
  33255. msgstr ""
  33256. #. type: deftypevr
  33257. #: guix-git/doc/guix.texi:22001
  33258. #, no-wrap
  33259. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer verbose"
  33260. msgstr ""
  33261. #. type: deftypevr
  33262. #: guix-git/doc/guix.texi:22006
  33263. 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."
  33264. msgstr ""
  33265. #. type: deftypevr
  33266. #: guix-git/doc/guix.texi:22008 guix-git/doc/guix.texi:28581
  33267. #: guix-git/doc/guix.texi:29169 guix-git/doc/guix.texi:29314
  33268. msgid "Defaults to @samp{1}."
  33269. msgstr ""
  33270. #. type: deftypevr
  33271. #: guix-git/doc/guix.texi:22011
  33272. #, no-wrap
  33273. msgid "{@code{getmail-options-configuration} parameter} boolean read-all"
  33274. msgstr ""
  33275. #. type: deftypevr
  33276. #: guix-git/doc/guix.texi:22014
  33277. msgid "If true, getmail will retrieve all available messages. Otherwise it will only retrieve messages it hasn't seen previously."
  33278. msgstr ""
  33279. #. type: deftypevr
  33280. #: guix-git/doc/guix.texi:22019
  33281. #, no-wrap
  33282. msgid "{@code{getmail-options-configuration} parameter} boolean delete"
  33283. msgstr ""
  33284. #. type: deftypevr
  33285. #: guix-git/doc/guix.texi:22023
  33286. 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."
  33287. msgstr ""
  33288. #. type: deftypevr
  33289. #: guix-git/doc/guix.texi:22028
  33290. #, no-wrap
  33291. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-after"
  33292. msgstr ""
  33293. #. type: deftypevr
  33294. #: guix-git/doc/guix.texi:22033
  33295. 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."
  33296. msgstr ""
  33297. #. type: deftypevr
  33298. #: guix-git/doc/guix.texi:22038
  33299. #, no-wrap
  33300. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-bigger-than"
  33301. msgstr ""
  33302. #. type: deftypevr
  33303. #: guix-git/doc/guix.texi:22042
  33304. 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."
  33305. msgstr ""
  33306. #. type: deftypevr
  33307. #: guix-git/doc/guix.texi:22047
  33308. #, no-wrap
  33309. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-bytes-per-session"
  33310. msgstr ""
  33311. #. type: deftypevr
  33312. #: guix-git/doc/guix.texi:22050
  33313. 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."
  33314. msgstr ""
  33315. #. type: deftypevr
  33316. #: guix-git/doc/guix.texi:22055
  33317. #, no-wrap
  33318. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-message-size"
  33319. msgstr ""
  33320. #. type: deftypevr
  33321. #: guix-git/doc/guix.texi:22058
  33322. msgid "Don't retrieve messages larger than this number of bytes. A value of @samp{0} disables this feature."
  33323. msgstr ""
  33324. #. type: deftypevr
  33325. #: guix-git/doc/guix.texi:22063
  33326. #, no-wrap
  33327. msgid "{@code{getmail-options-configuration} parameter} boolean delivered-to"
  33328. msgstr ""
  33329. #. type: deftypevr
  33330. #: guix-git/doc/guix.texi:22065
  33331. msgid "If true, getmail will add a Delivered-To header to messages."
  33332. msgstr ""
  33333. #. type: deftypevr
  33334. #: guix-git/doc/guix.texi:22070
  33335. #, no-wrap
  33336. msgid "{@code{getmail-options-configuration} parameter} boolean received"
  33337. msgstr ""
  33338. #. type: deftypevr
  33339. #: guix-git/doc/guix.texi:22072
  33340. msgid "If set, getmail adds a Received header to the messages."
  33341. msgstr ""
  33342. #. type: deftypevr
  33343. #: guix-git/doc/guix.texi:22077
  33344. #, no-wrap
  33345. msgid "{@code{getmail-options-configuration} parameter} string message-log"
  33346. msgstr ""
  33347. #. type: deftypevr
  33348. #: guix-git/doc/guix.texi:22080
  33349. msgid "Getmail will record a log of its actions to the named file. A value of @samp{\"\"} disables this feature."
  33350. msgstr ""
  33351. #. type: deftypevr
  33352. #: guix-git/doc/guix.texi:22085
  33353. #, no-wrap
  33354. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-syslog"
  33355. msgstr ""
  33356. #. type: deftypevr
  33357. #: guix-git/doc/guix.texi:22088
  33358. msgid "If true, getmail will record a log of its actions using the system logger."
  33359. msgstr ""
  33360. #. type: deftypevr
  33361. #: guix-git/doc/guix.texi:22093
  33362. #, no-wrap
  33363. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-verbose"
  33364. msgstr ""
  33365. #. type: deftypevr
  33366. #: guix-git/doc/guix.texi:22097
  33367. 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."
  33368. msgstr ""
  33369. #. type: deftypevr
  33370. #: guix-git/doc/guix.texi:22102
  33371. #, no-wrap
  33372. msgid "{@code{getmail-options-configuration} parameter} parameter-alist extra-parameters"
  33373. msgstr ""
  33374. #. type: deftypevr
  33375. #: guix-git/doc/guix.texi:22104
  33376. msgid "Extra options to include."
  33377. msgstr ""
  33378. #. type: deftypevr
  33379. #: guix-git/doc/guix.texi:22113
  33380. #, no-wrap
  33381. msgid "{@code{getmail-configuration} parameter} list idle"
  33382. msgstr ""
  33383. #. type: deftypevr
  33384. #: guix-git/doc/guix.texi:22117
  33385. 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."
  33386. msgstr ""
  33387. #. type: deftypevr
  33388. #: guix-git/doc/guix.texi:22122
  33389. #, no-wrap
  33390. msgid "{@code{getmail-configuration} parameter} list environment-variables"
  33391. msgstr ""
  33392. #. type: deftypevr
  33393. #: guix-git/doc/guix.texi:22124
  33394. msgid "Environment variables to set for getmail."
  33395. msgstr ""
  33396. #. type: subsubheading
  33397. #: guix-git/doc/guix.texi:22129
  33398. #, no-wrap
  33399. msgid "Mail Aliases Service"
  33400. msgstr ""
  33401. #. type: cindex
  33402. #: guix-git/doc/guix.texi:22131
  33403. #, no-wrap
  33404. msgid "email aliases"
  33405. msgstr ""
  33406. #. type: cindex
  33407. #: guix-git/doc/guix.texi:22132
  33408. #, no-wrap
  33409. msgid "aliases, for email addresses"
  33410. msgstr ""
  33411. #. type: deffn
  33412. #: guix-git/doc/guix.texi:22134
  33413. #, no-wrap
  33414. msgid "{Scheme Variable} mail-aliases-service-type"
  33415. msgstr ""
  33416. #. type: deffn
  33417. #: guix-git/doc/guix.texi:22137
  33418. msgid "This is the type of the service which provides @code{/etc/aliases}, specifying how to deliver mail to users on this system."
  33419. msgstr ""
  33420. #. type: lisp
  33421. #: guix-git/doc/guix.texi:22142
  33422. #, no-wrap
  33423. msgid ""
  33424. "(service mail-aliases-service-type\n"
  33425. " '((\"postmaster\" \"bob\")\n"
  33426. " (\"bob\" \"bob@@example.com\" \"bob@@example2.com\")))\n"
  33427. msgstr ""
  33428. #. type: Plain text
  33429. #: guix-git/doc/guix.texi:22150
  33430. 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."
  33431. msgstr ""
  33432. #. type: Plain text
  33433. #: guix-git/doc/guix.texi:22156
  33434. 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})."
  33435. msgstr ""
  33436. #. type: cindex
  33437. #: guix-git/doc/guix.texi:22157 guix-git/doc/guix.texi:22158
  33438. #, no-wrap
  33439. msgid "GNU Mailutils IMAP4 Daemon"
  33440. msgstr ""
  33441. #. type: deffn
  33442. #: guix-git/doc/guix.texi:22160
  33443. #, no-wrap
  33444. msgid "{Scheme Variable} imap4d-service-type"
  33445. msgstr ""
  33446. #. type: deffn
  33447. #: guix-git/doc/guix.texi:22164
  33448. 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:"
  33449. msgstr ""
  33450. #. type: lisp
  33451. #: guix-git/doc/guix.texi:22169
  33452. #, no-wrap
  33453. msgid ""
  33454. "(service imap4d-service-type\n"
  33455. " (imap4d-configuration\n"
  33456. " (config-file (local-file \"imap4d.conf\"))))\n"
  33457. msgstr ""
  33458. #. type: deftp
  33459. #: guix-git/doc/guix.texi:22172
  33460. #, no-wrap
  33461. msgid "{Data Type} imap4d-configuration"
  33462. msgstr ""
  33463. #. type: deftp
  33464. #: guix-git/doc/guix.texi:22174
  33465. msgid "Data type representing the configuration of @command{imap4d}."
  33466. msgstr ""
  33467. #. type: item
  33468. #: guix-git/doc/guix.texi:22176
  33469. #, no-wrap
  33470. msgid "@code{package} (default: @code{mailutils})"
  33471. msgstr ""
  33472. #. type: table
  33473. #: guix-git/doc/guix.texi:22178
  33474. msgid "The package that provides @command{imap4d}."
  33475. msgstr ""
  33476. #. type: item
  33477. #: guix-git/doc/guix.texi:22179
  33478. #, no-wrap
  33479. msgid "@code{config-file} (default: @code{%default-imap4d-config-file})"
  33480. msgstr ""
  33481. #. type: table
  33482. #: guix-git/doc/guix.texi:22183
  33483. 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."
  33484. msgstr ""
  33485. #. type: subsubheading
  33486. #: guix-git/doc/guix.texi:22187
  33487. #, fuzzy, no-wrap
  33488. msgid "Radicale Service"
  33489. msgstr "邮件服务"
  33490. #. type: cindex
  33491. #: guix-git/doc/guix.texi:22188
  33492. #, no-wrap
  33493. msgid "CalDAV"
  33494. msgstr ""
  33495. #. type: cindex
  33496. #: guix-git/doc/guix.texi:22189
  33497. #, no-wrap
  33498. msgid "CardDAV"
  33499. msgstr ""
  33500. #. type: deffn
  33501. #: guix-git/doc/guix.texi:22191
  33502. #, no-wrap
  33503. msgid "{Scheme Variable} radicale-service-type"
  33504. msgstr ""
  33505. #. type: deffn
  33506. #: guix-git/doc/guix.texi:22194
  33507. msgid "This is the type of the @uref{https://radicale.org, Radicale} CalDAV/CardDAV server whose value should be a @code{radicale-configuration}."
  33508. msgstr ""
  33509. #. type: deftp
  33510. #: guix-git/doc/guix.texi:22196
  33511. #, fuzzy, no-wrap
  33512. msgid "{Data Type} radicale-configuration"
  33513. msgstr "{数据类型} build-machine"
  33514. #. type: deftp
  33515. #: guix-git/doc/guix.texi:22198
  33516. #, fuzzy
  33517. msgid "Data type representing the configuration of @command{radicale}."
  33518. msgstr "管理操作系统配置。"
  33519. #. type: item
  33520. #: guix-git/doc/guix.texi:22200
  33521. #, fuzzy, no-wrap
  33522. msgid "@code{package} (default: @code{radicale})"
  33523. msgstr "@code{mate}(默认值:@code{mate})"
  33524. #. type: table
  33525. #: guix-git/doc/guix.texi:22202
  33526. msgid "The package that provides @command{radicale}."
  33527. msgstr ""
  33528. #. type: item
  33529. #: guix-git/doc/guix.texi:22203
  33530. #, fuzzy, no-wrap
  33531. msgid "@code{config-file} (default: @code{%default-radicale-config-file})"
  33532. msgstr "@code{gnome}(默认值:@code{gnome})"
  33533. #. type: table
  33534. #: guix-git/doc/guix.texi:22207
  33535. 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."
  33536. msgstr ""
  33537. #. type: cindex
  33538. #: guix-git/doc/guix.texi:22214
  33539. #, no-wrap
  33540. msgid "messaging"
  33541. msgstr ""
  33542. #. type: cindex
  33543. #: guix-git/doc/guix.texi:22215
  33544. #, no-wrap
  33545. msgid "jabber"
  33546. msgstr ""
  33547. #. type: cindex
  33548. #: guix-git/doc/guix.texi:22216
  33549. #, no-wrap
  33550. msgid "XMPP"
  33551. msgstr ""
  33552. #. type: Plain text
  33553. #: guix-git/doc/guix.texi:22220
  33554. msgid "The @code{(gnu services messaging)} module provides Guix service definitions for messaging services. Currently it provides the following services:"
  33555. msgstr ""
  33556. #. type: subsubheading
  33557. #: guix-git/doc/guix.texi:22221
  33558. #, no-wrap
  33559. msgid "Prosody Service"
  33560. msgstr ""
  33561. #. type: deffn
  33562. #: guix-git/doc/guix.texi:22223
  33563. #, no-wrap
  33564. msgid "{Scheme Variable} prosody-service-type"
  33565. msgstr ""
  33566. #. type: deffn
  33567. #: guix-git/doc/guix.texi:22227
  33568. 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:"
  33569. msgstr ""
  33570. #. type: lisp
  33571. #: guix-git/doc/guix.texi:22242
  33572. #, no-wrap
  33573. msgid ""
  33574. "(service prosody-service-type\n"
  33575. " (prosody-configuration\n"
  33576. " (modules-enabled (cons* \"groups\" \"mam\" %default-modules-enabled))\n"
  33577. " (int-components\n"
  33578. " (list\n"
  33579. " (int-component-configuration\n"
  33580. " (hostname \"conference.example.net\")\n"
  33581. " (plugin \"muc\")\n"
  33582. " (mod-muc (mod-muc-configuration)))))\n"
  33583. " (virtualhosts\n"
  33584. " (list\n"
  33585. " (virtualhost-configuration\n"
  33586. " (domain \"example.net\"))))))\n"
  33587. msgstr ""
  33588. #. type: deffn
  33589. #: guix-git/doc/guix.texi:22245
  33590. msgid "See below for details about @code{prosody-configuration}."
  33591. msgstr ""
  33592. #. type: Plain text
  33593. #: guix-git/doc/guix.texi:22251
  33594. 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."
  33595. msgstr ""
  33596. #. type: Plain text
  33597. #: guix-git/doc/guix.texi:22254
  33598. msgid "You can perform various sanity checks on the generated configuration with the @code{prosodyctl check} command."
  33599. msgstr ""
  33600. #. type: Plain text
  33601. #: guix-git/doc/guix.texi:22258
  33602. 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}."
  33603. msgstr ""
  33604. #. type: example
  33605. #: guix-git/doc/guix.texi:22261
  33606. #, no-wrap
  33607. msgid "prosodyctl --root cert import /etc/letsencrypt/live\n"
  33608. msgstr ""
  33609. #. type: Plain text
  33610. #: guix-git/doc/guix.texi:22268
  33611. 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}."
  33612. msgstr ""
  33613. #. type: Plain text
  33614. #: guix-git/doc/guix.texi:22272
  33615. 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."
  33616. msgstr ""
  33617. #. type: Plain text
  33618. #: guix-git/doc/guix.texi:22275
  33619. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a file name."
  33620. msgstr ""
  33621. #. type: Plain text
  33622. #: guix-git/doc/guix.texi:22285
  33623. msgid "Available @code{prosody-configuration} fields are:"
  33624. msgstr ""
  33625. #. type: deftypevr
  33626. #: guix-git/doc/guix.texi:22286
  33627. #, no-wrap
  33628. msgid "{@code{prosody-configuration} parameter} package prosody"
  33629. msgstr ""
  33630. #. type: deftypevr
  33631. #: guix-git/doc/guix.texi:22288
  33632. msgid "The Prosody package."
  33633. msgstr ""
  33634. #. type: deftypevr
  33635. #: guix-git/doc/guix.texi:22290
  33636. #, no-wrap
  33637. msgid "{@code{prosody-configuration} parameter} file-name data-path"
  33638. msgstr ""
  33639. #. type: deftypevr
  33640. #: guix-git/doc/guix.texi:22294
  33641. msgid "Location of the Prosody data storage directory. See @url{https://prosody.im/doc/configure}. Defaults to @samp{\"/var/lib/prosody\"}."
  33642. msgstr ""
  33643. #. type: deftypevr
  33644. #: guix-git/doc/guix.texi:22296
  33645. #, no-wrap
  33646. msgid "{@code{prosody-configuration} parameter} file-object-list plugin-paths"
  33647. msgstr ""
  33648. #. type: deftypevr
  33649. #: guix-git/doc/guix.texi:22300
  33650. 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{()}."
  33651. msgstr ""
  33652. #. type: deftypevr
  33653. #: guix-git/doc/guix.texi:22302
  33654. #, no-wrap
  33655. msgid "{@code{prosody-configuration} parameter} file-name certificates"
  33656. msgstr ""
  33657. #. type: deftypevr
  33658. #: guix-git/doc/guix.texi:22307
  33659. 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\"}."
  33660. msgstr ""
  33661. #. type: deftypevr
  33662. #: guix-git/doc/guix.texi:22309
  33663. #, no-wrap
  33664. msgid "{@code{prosody-configuration} parameter} string-list admins"
  33665. msgstr ""
  33666. #. type: deftypevr
  33667. #: guix-git/doc/guix.texi:22315
  33668. 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{()}."
  33669. msgstr ""
  33670. #. type: deftypevr
  33671. #: guix-git/doc/guix.texi:22317
  33672. #, no-wrap
  33673. msgid "{@code{prosody-configuration} parameter} boolean use-libevent?"
  33674. msgstr ""
  33675. #. type: deftypevr
  33676. #: guix-git/doc/guix.texi:22321
  33677. msgid "Enable use of libevent for better performance under high load. See @url{https://prosody.im/doc/libevent}. Defaults to @samp{#f}."
  33678. msgstr ""
  33679. #. type: deftypevr
  33680. #: guix-git/doc/guix.texi:22323
  33681. #, no-wrap
  33682. msgid "{@code{prosody-configuration} parameter} module-list modules-enabled"
  33683. msgstr ""
  33684. #. type: deftypevr
  33685. #: guix-git/doc/guix.texi:22329
  33686. 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\")}."
  33687. msgstr ""
  33688. #. type: deftypevr
  33689. #: guix-git/doc/guix.texi:22331
  33690. #, no-wrap
  33691. msgid "{@code{prosody-configuration} parameter} string-list modules-disabled"
  33692. msgstr ""
  33693. #. type: deftypevr
  33694. #: guix-git/doc/guix.texi:22335
  33695. 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{()}."
  33696. msgstr ""
  33697. #. type: deftypevr
  33698. #: guix-git/doc/guix.texi:22337
  33699. #, no-wrap
  33700. msgid "{@code{prosody-configuration} parameter} file-object groups-file"
  33701. msgstr ""
  33702. #. type: deftypevr
  33703. #: guix-git/doc/guix.texi:22342
  33704. 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\"}."
  33705. msgstr ""
  33706. #. type: deftypevr
  33707. #: guix-git/doc/guix.texi:22344
  33708. #, no-wrap
  33709. msgid "{@code{prosody-configuration} parameter} boolean allow-registration?"
  33710. msgstr ""
  33711. #. type: deftypevr
  33712. #: guix-git/doc/guix.texi:22348
  33713. msgid "Disable account creation by default, for security. See @url{https://prosody.im/doc/creating_accounts}. Defaults to @samp{#f}."
  33714. msgstr ""
  33715. #. type: deftypevr
  33716. #: guix-git/doc/guix.texi:22350
  33717. #, no-wrap
  33718. msgid "{@code{prosody-configuration} parameter} maybe-ssl-configuration ssl"
  33719. msgstr ""
  33720. #. type: deftypevr
  33721. #: guix-git/doc/guix.texi:22355
  33722. 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}."
  33723. msgstr ""
  33724. #. type: deftypevr
  33725. #: guix-git/doc/guix.texi:22357
  33726. msgid "Available @code{ssl-configuration} fields are:"
  33727. msgstr ""
  33728. #. type: deftypevr
  33729. #: guix-git/doc/guix.texi:22358
  33730. #, no-wrap
  33731. msgid "{@code{ssl-configuration} parameter} maybe-string protocol"
  33732. msgstr ""
  33733. #. type: deftypevr
  33734. #: guix-git/doc/guix.texi:22360
  33735. msgid "This determines what handshake to use."
  33736. msgstr ""
  33737. #. type: deftypevr
  33738. #: guix-git/doc/guix.texi:22362
  33739. #, no-wrap
  33740. msgid "{@code{ssl-configuration} parameter} maybe-file-name key"
  33741. msgstr ""
  33742. #. type: deftypevr
  33743. #: guix-git/doc/guix.texi:22364
  33744. msgid "Path to your private key file."
  33745. msgstr ""
  33746. #. type: deftypevr
  33747. #: guix-git/doc/guix.texi:22366
  33748. #, no-wrap
  33749. msgid "{@code{ssl-configuration} parameter} maybe-file-name certificate"
  33750. msgstr ""
  33751. #. type: deftypevr
  33752. #: guix-git/doc/guix.texi:22368
  33753. msgid "Path to your certificate file."
  33754. msgstr ""
  33755. #. type: deftypevr
  33756. #: guix-git/doc/guix.texi:22370
  33757. #, no-wrap
  33758. msgid "{@code{ssl-configuration} parameter} file-object capath"
  33759. msgstr ""
  33760. #. type: deftypevr
  33761. #: guix-git/doc/guix.texi:22374
  33762. 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\"}."
  33763. msgstr ""
  33764. #. type: deftypevr
  33765. #: guix-git/doc/guix.texi:22376
  33766. #, no-wrap
  33767. msgid "{@code{ssl-configuration} parameter} maybe-file-object cafile"
  33768. msgstr ""
  33769. #. type: deftypevr
  33770. #: guix-git/doc/guix.texi:22379
  33771. msgid "Path to a file containing root certificates that you wish Prosody to trust. Similar to @code{capath} but with all certificates concatenated together."
  33772. msgstr ""
  33773. #. type: deftypevr
  33774. #: guix-git/doc/guix.texi:22381
  33775. #, no-wrap
  33776. msgid "{@code{ssl-configuration} parameter} maybe-string-list verify"
  33777. msgstr ""
  33778. #. type: deftypevr
  33779. #: guix-git/doc/guix.texi:22384
  33780. msgid "A list of verification options (these mostly map to OpenSSL's @code{set_verify()} flags)."
  33781. msgstr ""
  33782. #. type: deftypevr
  33783. #: guix-git/doc/guix.texi:22386
  33784. #, no-wrap
  33785. msgid "{@code{ssl-configuration} parameter} maybe-string-list options"
  33786. msgstr ""
  33787. #. type: deftypevr
  33788. #: guix-git/doc/guix.texi:22390
  33789. 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."
  33790. msgstr ""
  33791. #. type: deftypevr
  33792. #: guix-git/doc/guix.texi:22392
  33793. #, no-wrap
  33794. msgid "{@code{ssl-configuration} parameter} maybe-non-negative-integer depth"
  33795. msgstr ""
  33796. #. type: deftypevr
  33797. #: guix-git/doc/guix.texi:22395
  33798. msgid "How long a chain of certificate authorities to check when looking for a trusted root certificate."
  33799. msgstr ""
  33800. #. type: deftypevr
  33801. #: guix-git/doc/guix.texi:22397
  33802. #, no-wrap
  33803. msgid "{@code{ssl-configuration} parameter} maybe-string ciphers"
  33804. msgstr ""
  33805. #. type: deftypevr
  33806. #: guix-git/doc/guix.texi:22400
  33807. msgid "An OpenSSL cipher string. This selects what ciphers Prosody will offer to clients, and in what order."
  33808. msgstr ""
  33809. #. type: deftypevr
  33810. #: guix-git/doc/guix.texi:22402
  33811. #, no-wrap
  33812. msgid "{@code{ssl-configuration} parameter} maybe-file-name dhparam"
  33813. msgstr ""
  33814. #. type: deftypevr
  33815. #: guix-git/doc/guix.texi:22406
  33816. 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}"
  33817. msgstr ""
  33818. #. type: deftypevr
  33819. #: guix-git/doc/guix.texi:22408
  33820. #, no-wrap
  33821. msgid "{@code{ssl-configuration} parameter} maybe-string curve"
  33822. msgstr ""
  33823. #. type: deftypevr
  33824. #: guix-git/doc/guix.texi:22411
  33825. msgid "Curve for Elliptic curve Diffie-Hellman. Prosody's default is @samp{\"secp384r1\"}."
  33826. msgstr ""
  33827. #. type: deftypevr
  33828. #: guix-git/doc/guix.texi:22413
  33829. #, no-wrap
  33830. msgid "{@code{ssl-configuration} parameter} maybe-string-list verifyext"
  33831. msgstr ""
  33832. #. type: deftypevr
  33833. #: guix-git/doc/guix.texi:22415
  33834. msgid "A list of ``extra'' verification options."
  33835. msgstr ""
  33836. #. type: deftypevr
  33837. #: guix-git/doc/guix.texi:22417
  33838. #, no-wrap
  33839. msgid "{@code{ssl-configuration} parameter} maybe-string password"
  33840. msgstr ""
  33841. #. type: deftypevr
  33842. #: guix-git/doc/guix.texi:22419
  33843. msgid "Password for encrypted private keys."
  33844. msgstr ""
  33845. #. type: deftypevr
  33846. #: guix-git/doc/guix.texi:22423
  33847. #, no-wrap
  33848. msgid "{@code{prosody-configuration} parameter} boolean c2s-require-encryption?"
  33849. msgstr ""
  33850. #. type: deftypevr
  33851. #: guix-git/doc/guix.texi:22427
  33852. 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}."
  33853. msgstr ""
  33854. #. type: deftypevr
  33855. #: guix-git/doc/guix.texi:22429
  33856. #, no-wrap
  33857. msgid "{@code{prosody-configuration} parameter} string-list disable-sasl-mechanisms"
  33858. msgstr ""
  33859. #. type: deftypevr
  33860. #: guix-git/doc/guix.texi:22433
  33861. msgid "Set of mechanisms that will never be offered. See @url{https://prosody.im/doc/modules/mod_saslauth}. Defaults to @samp{(\"DIGEST-MD5\")}."
  33862. msgstr ""
  33863. #. type: deftypevr
  33864. #: guix-git/doc/guix.texi:22435
  33865. #, no-wrap
  33866. msgid "{@code{prosody-configuration} parameter} boolean s2s-require-encryption?"
  33867. msgstr ""
  33868. #. type: deftypevr
  33869. #: guix-git/doc/guix.texi:22439
  33870. 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}."
  33871. msgstr ""
  33872. #. type: deftypevr
  33873. #: guix-git/doc/guix.texi:22441
  33874. #, no-wrap
  33875. msgid "{@code{prosody-configuration} parameter} boolean s2s-secure-auth?"
  33876. msgstr ""
  33877. #. type: deftypevr
  33878. #: guix-git/doc/guix.texi:22447
  33879. 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}."
  33880. msgstr ""
  33881. #. type: deftypevr
  33882. #: guix-git/doc/guix.texi:22449
  33883. #, no-wrap
  33884. msgid "{@code{prosody-configuration} parameter} string-list s2s-insecure-domains"
  33885. msgstr ""
  33886. #. type: deftypevr
  33887. #: guix-git/doc/guix.texi:22455
  33888. 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{()}."
  33889. msgstr ""
  33890. #. type: deftypevr
  33891. #: guix-git/doc/guix.texi:22457
  33892. #, no-wrap
  33893. msgid "{@code{prosody-configuration} parameter} string-list s2s-secure-domains"
  33894. msgstr ""
  33895. #. type: deftypevr
  33896. #: guix-git/doc/guix.texi:22462
  33897. 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{()}."
  33898. msgstr ""
  33899. #. type: deftypevr
  33900. #: guix-git/doc/guix.texi:22464
  33901. #, no-wrap
  33902. msgid "{@code{prosody-configuration} parameter} string authentication"
  33903. msgstr ""
  33904. #. type: deftypevr
  33905. #: guix-git/doc/guix.texi:22472
  33906. 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\"}."
  33907. msgstr ""
  33908. #. type: deftypevr
  33909. #: guix-git/doc/guix.texi:22474
  33910. #, no-wrap
  33911. msgid "{@code{prosody-configuration} parameter} maybe-string log"
  33912. msgstr ""
  33913. #. type: deftypevr
  33914. #: guix-git/doc/guix.texi:22478
  33915. 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\"}."
  33916. msgstr ""
  33917. #. type: deftypevr
  33918. #: guix-git/doc/guix.texi:22480
  33919. #, no-wrap
  33920. msgid "{@code{prosody-configuration} parameter} file-name pidfile"
  33921. msgstr ""
  33922. #. type: deftypevr
  33923. #: guix-git/doc/guix.texi:22483
  33924. msgid "File to write pid in. See @url{https://prosody.im/doc/modules/mod_posix}. Defaults to @samp{\"/var/run/prosody/prosody.pid\"}."
  33925. msgstr ""
  33926. #. type: deftypevr
  33927. #: guix-git/doc/guix.texi:22485
  33928. #, no-wrap
  33929. msgid "{@code{prosody-configuration} parameter} maybe-non-negative-integer http-max-content-size"
  33930. msgstr ""
  33931. #. type: deftypevr
  33932. #: guix-git/doc/guix.texi:22487
  33933. msgid "Maximum allowed size of the HTTP body (in bytes)."
  33934. msgstr ""
  33935. #. type: deftypevr
  33936. #: guix-git/doc/guix.texi:22489
  33937. #, no-wrap
  33938. msgid "{@code{prosody-configuration} parameter} maybe-string http-external-url"
  33939. msgstr ""
  33940. #. type: deftypevr
  33941. #: guix-git/doc/guix.texi:22494
  33942. 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}."
  33943. msgstr ""
  33944. #. type: deftypevr
  33945. #: guix-git/doc/guix.texi:22496
  33946. #, no-wrap
  33947. msgid "{@code{prosody-configuration} parameter} virtualhost-configuration-list virtualhosts"
  33948. msgstr ""
  33949. #. type: deftypevr
  33950. #: guix-git/doc/guix.texi:22501
  33951. 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."
  33952. msgstr ""
  33953. #. type: deftypevr
  33954. #: guix-git/doc/guix.texi:22507
  33955. 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."
  33956. msgstr ""
  33957. #. type: deftypevr
  33958. #: guix-git/doc/guix.texi:22509
  33959. msgid "See @url{https://prosody.im/doc/configure#virtual_host_settings}."
  33960. msgstr ""
  33961. #. type: deftypevr
  33962. #: guix-git/doc/guix.texi:22511
  33963. msgid "Available @code{virtualhost-configuration} fields are:"
  33964. msgstr ""
  33965. #. type: deftypevr
  33966. #: guix-git/doc/guix.texi:22513 guix-git/doc/guix.texi:22535
  33967. #: guix-git/doc/guix.texi:22588
  33968. 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:"
  33969. msgstr ""
  33970. #. type: deftypevr
  33971. #: guix-git/doc/guix.texi:22513
  33972. #, no-wrap
  33973. msgid "{@code{virtualhost-configuration} parameter} string domain"
  33974. msgstr ""
  33975. #. type: deftypevr
  33976. #: guix-git/doc/guix.texi:22515
  33977. msgid "Domain you wish Prosody to serve."
  33978. msgstr ""
  33979. #. type: deftypevr
  33980. #: guix-git/doc/guix.texi:22519
  33981. #, no-wrap
  33982. msgid "{@code{prosody-configuration} parameter} int-component-configuration-list int-components"
  33983. msgstr ""
  33984. #. type: deftypevr
  33985. #: guix-git/doc/guix.texi:22524
  33986. 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."
  33987. msgstr ""
  33988. #. type: deftypevr
  33989. #: guix-git/doc/guix.texi:22528
  33990. 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."
  33991. msgstr ""
  33992. #. type: deftypevr
  33993. #: guix-git/doc/guix.texi:22531
  33994. msgid "See @url{https://prosody.im/doc/components}. Defaults to @samp{()}."
  33995. msgstr ""
  33996. #. type: deftypevr
  33997. #: guix-git/doc/guix.texi:22533
  33998. msgid "Available @code{int-component-configuration} fields are:"
  33999. msgstr ""
  34000. #. type: deftypevr
  34001. #: guix-git/doc/guix.texi:22535
  34002. #, no-wrap
  34003. msgid "{@code{int-component-configuration} parameter} string hostname"
  34004. msgstr ""
  34005. #. type: deftypevr
  34006. #: guix-git/doc/guix.texi:22537 guix-git/doc/guix.texi:22594
  34007. msgid "Hostname of the component."
  34008. msgstr ""
  34009. #. type: deftypevr
  34010. #: guix-git/doc/guix.texi:22539
  34011. #, no-wrap
  34012. msgid "{@code{int-component-configuration} parameter} string plugin"
  34013. msgstr ""
  34014. #. type: deftypevr
  34015. #: guix-git/doc/guix.texi:22541
  34016. msgid "Plugin you wish to use for the component."
  34017. msgstr ""
  34018. #. type: deftypevr
  34019. #: guix-git/doc/guix.texi:22543
  34020. #, no-wrap
  34021. msgid "{@code{int-component-configuration} parameter} maybe-mod-muc-configuration mod-muc"
  34022. msgstr ""
  34023. #. type: deftypevr
  34024. #: guix-git/doc/guix.texi:22546
  34025. msgid "Multi-user chat (MUC) is Prosody's module for allowing you to create hosted chatrooms/conferences for XMPP users."
  34026. msgstr ""
  34027. #. type: deftypevr
  34028. #: guix-git/doc/guix.texi:22550
  34029. 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."
  34030. msgstr ""
  34031. #. type: deftypevr
  34032. #: guix-git/doc/guix.texi:22552
  34033. msgid "See also @url{https://prosody.im/doc/modules/mod_muc}."
  34034. msgstr ""
  34035. #. type: deftypevr
  34036. #: guix-git/doc/guix.texi:22554
  34037. msgid "Available @code{mod-muc-configuration} fields are:"
  34038. msgstr ""
  34039. #. type: deftypevr
  34040. #: guix-git/doc/guix.texi:22555
  34041. #, no-wrap
  34042. msgid "{@code{mod-muc-configuration} parameter} string name"
  34043. msgstr ""
  34044. #. type: deftypevr
  34045. #: guix-git/doc/guix.texi:22558
  34046. msgid "The name to return in service discovery responses. Defaults to @samp{\"Prosody Chatrooms\"}."
  34047. msgstr ""
  34048. #. type: deftypevr
  34049. #: guix-git/doc/guix.texi:22560
  34050. #, no-wrap
  34051. msgid "{@code{mod-muc-configuration} parameter} string-or-boolean restrict-room-creation"
  34052. msgstr ""
  34053. #. type: deftypevr
  34054. #: guix-git/doc/guix.texi:22567
  34055. 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}."
  34056. msgstr ""
  34057. #. type: deftypevr
  34058. #: guix-git/doc/guix.texi:22569
  34059. #, no-wrap
  34060. msgid "{@code{mod-muc-configuration} parameter} non-negative-integer max-history-messages"
  34061. msgstr ""
  34062. #. type: deftypevr
  34063. #: guix-git/doc/guix.texi:22573
  34064. msgid "Maximum number of history messages that will be sent to the member that has just joined the room. Defaults to @samp{20}."
  34065. msgstr ""
  34066. #. type: deftypevr
  34067. #: guix-git/doc/guix.texi:22579
  34068. #, no-wrap
  34069. msgid "{@code{prosody-configuration} parameter} ext-component-configuration-list ext-components"
  34070. msgstr ""
  34071. #. type: deftypevr
  34072. #: guix-git/doc/guix.texi:22584
  34073. 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{()}."
  34074. msgstr ""
  34075. #. type: deftypevr
  34076. #: guix-git/doc/guix.texi:22586
  34077. msgid "Available @code{ext-component-configuration} fields are:"
  34078. msgstr ""
  34079. #. type: deftypevr
  34080. #: guix-git/doc/guix.texi:22588
  34081. #, no-wrap
  34082. msgid "{@code{ext-component-configuration} parameter} string component-secret"
  34083. msgstr ""
  34084. #. type: deftypevr
  34085. #: guix-git/doc/guix.texi:22590
  34086. msgid "Password which the component will use to log in."
  34087. msgstr ""
  34088. #. type: deftypevr
  34089. #: guix-git/doc/guix.texi:22592
  34090. #, no-wrap
  34091. msgid "{@code{ext-component-configuration} parameter} string hostname"
  34092. msgstr ""
  34093. #. type: deftypevr
  34094. #: guix-git/doc/guix.texi:22598
  34095. #, no-wrap
  34096. msgid "{@code{prosody-configuration} parameter} non-negative-integer-list component-ports"
  34097. msgstr ""
  34098. #. type: deftypevr
  34099. #: guix-git/doc/guix.texi:22601
  34100. msgid "Port(s) Prosody listens on for component connections. Defaults to @samp{(5347)}."
  34101. msgstr ""
  34102. #. type: deftypevr
  34103. #: guix-git/doc/guix.texi:22603
  34104. #, no-wrap
  34105. msgid "{@code{prosody-configuration} parameter} string component-interface"
  34106. msgstr ""
  34107. #. type: deftypevr
  34108. #: guix-git/doc/guix.texi:22606
  34109. msgid "Interface Prosody listens on for component connections. Defaults to @samp{\"127.0.0.1\"}."
  34110. msgstr ""
  34111. #. type: deftypevr
  34112. #: guix-git/doc/guix.texi:22608
  34113. #, no-wrap
  34114. msgid "{@code{prosody-configuration} parameter} maybe-raw-content raw-content"
  34115. msgstr ""
  34116. #. type: deftypevr
  34117. #: guix-git/doc/guix.texi:22610
  34118. msgid "Raw content that will be added to the configuration file."
  34119. msgstr ""
  34120. #. type: Plain text
  34121. #: guix-git/doc/guix.texi:22618
  34122. 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:"
  34123. msgstr ""
  34124. #. type: deftypevr
  34125. #: guix-git/doc/guix.texi:22619
  34126. #, no-wrap
  34127. msgid "{@code{opaque-prosody-configuration} parameter} package prosody"
  34128. msgstr ""
  34129. #. type: deftypevr
  34130. #: guix-git/doc/guix.texi:22621
  34131. msgid "The prosody package."
  34132. msgstr ""
  34133. #. type: deftypevr
  34134. #: guix-git/doc/guix.texi:22623
  34135. #, no-wrap
  34136. msgid "{@code{opaque-prosody-configuration} parameter} string prosody.cfg.lua"
  34137. msgstr ""
  34138. #. type: deftypevr
  34139. #: guix-git/doc/guix.texi:22625
  34140. msgid "The contents of the @code{prosody.cfg.lua} to use."
  34141. msgstr ""
  34142. #. type: Plain text
  34143. #: guix-git/doc/guix.texi:22629
  34144. msgid "For example, if your @code{prosody.cfg.lua} is just the empty string, you could instantiate a prosody service like this:"
  34145. msgstr ""
  34146. #. type: lisp
  34147. #: guix-git/doc/guix.texi:22634
  34148. #, no-wrap
  34149. msgid ""
  34150. "(service prosody-service-type\n"
  34151. " (opaque-prosody-configuration\n"
  34152. " (prosody.cfg.lua \"\")))\n"
  34153. msgstr ""
  34154. #. type: subsubheading
  34155. #: guix-git/doc/guix.texi:22638
  34156. #, no-wrap
  34157. msgid "BitlBee Service"
  34158. msgstr ""
  34159. #. type: cindex
  34160. #: guix-git/doc/guix.texi:22640 guix-git/doc/guix.texi:22684
  34161. #, no-wrap
  34162. msgid "IRC (Internet Relay Chat)"
  34163. msgstr ""
  34164. #. type: cindex
  34165. #: guix-git/doc/guix.texi:22641
  34166. #, no-wrap
  34167. msgid "IRC gateway"
  34168. msgstr ""
  34169. #. type: Plain text
  34170. #: guix-git/doc/guix.texi:22644
  34171. msgid "@url{https://bitlbee.org,BitlBee} is a gateway that provides an IRC interface to a variety of messaging protocols such as XMPP."
  34172. msgstr ""
  34173. #. type: defvr
  34174. #: guix-git/doc/guix.texi:22645
  34175. #, no-wrap
  34176. msgid "{Scheme Variable} bitlbee-service-type"
  34177. msgstr ""
  34178. #. type: defvr
  34179. #: guix-git/doc/guix.texi:22649
  34180. 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)."
  34181. msgstr ""
  34182. #. type: defvr
  34183. #: guix-git/doc/guix.texi:22652
  34184. msgid "To have BitlBee listen on port 6667 on localhost, add this line to your services:"
  34185. msgstr ""
  34186. #. type: lisp
  34187. #: guix-git/doc/guix.texi:22655
  34188. #, no-wrap
  34189. msgid "(service bitlbee-service-type)\n"
  34190. msgstr ""
  34191. #. type: deftp
  34192. #: guix-git/doc/guix.texi:22658
  34193. #, no-wrap
  34194. msgid "{Data Type} bitlbee-configuration"
  34195. msgstr ""
  34196. #. type: deftp
  34197. #: guix-git/doc/guix.texi:22660
  34198. msgid "This is the configuration for BitlBee, with the following fields:"
  34199. msgstr ""
  34200. #. type: item
  34201. #: guix-git/doc/guix.texi:22662
  34202. #, no-wrap
  34203. msgid "@code{interface} (default: @code{\"127.0.0.1\"})"
  34204. msgstr ""
  34205. #. type: itemx
  34206. #: guix-git/doc/guix.texi:22663
  34207. #, no-wrap
  34208. msgid "@code{port} (default: @code{6667})"
  34209. msgstr ""
  34210. #. type: table
  34211. #: guix-git/doc/guix.texi:22666
  34212. msgid "Listen on the network interface corresponding to the IP address specified in @var{interface}, on @var{port}."
  34213. msgstr ""
  34214. #. type: table
  34215. #: guix-git/doc/guix.texi:22670
  34216. 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."
  34217. msgstr ""
  34218. #. type: item
  34219. #: guix-git/doc/guix.texi:22671
  34220. #, fuzzy, no-wrap
  34221. msgid "@code{bitlbee} (default: @code{bitlbee})"
  34222. msgstr "@code{mate}(默认值:@code{mate})"
  34223. #. type: table
  34224. #: guix-git/doc/guix.texi:22673
  34225. msgid "The BitlBee package to use."
  34226. msgstr ""
  34227. #. type: item
  34228. #: guix-git/doc/guix.texi:22674
  34229. #, no-wrap
  34230. msgid "@code{plugins} (default: @code{'()})"
  34231. msgstr ""
  34232. #. type: table
  34233. #: guix-git/doc/guix.texi:22676
  34234. msgid "List of plugin packages to use---e.g., @code{bitlbee-discord}."
  34235. msgstr ""
  34236. #. type: table
  34237. #: guix-git/doc/guix.texi:22679
  34238. msgid "Configuration snippet added as-is to the BitlBee configuration file."
  34239. msgstr ""
  34240. #. type: subsubheading
  34241. #: guix-git/doc/guix.texi:22682
  34242. #, no-wrap
  34243. msgid "Quassel Service"
  34244. msgstr ""
  34245. #. type: Plain text
  34246. #: guix-git/doc/guix.texi:22688
  34247. 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."
  34248. msgstr ""
  34249. #. type: defvr
  34250. #: guix-git/doc/guix.texi:22689
  34251. #, no-wrap
  34252. msgid "{Scheme Variable} quassel-service-type"
  34253. msgstr ""
  34254. #. type: defvr
  34255. #: guix-git/doc/guix.texi:22693
  34256. 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)."
  34257. msgstr ""
  34258. #. type: deftp
  34259. #: guix-git/doc/guix.texi:22695
  34260. #, no-wrap
  34261. msgid "{Data Type} quassel-configuration"
  34262. msgstr ""
  34263. #. type: deftp
  34264. #: guix-git/doc/guix.texi:22697
  34265. msgid "This is the configuration for Quassel, with the following fields:"
  34266. msgstr ""
  34267. #. type: item
  34268. #: guix-git/doc/guix.texi:22699
  34269. #, no-wrap
  34270. msgid "@code{quassel} (default: @code{quassel})"
  34271. msgstr ""
  34272. #. type: table
  34273. #: guix-git/doc/guix.texi:22701
  34274. msgid "The Quassel package to use."
  34275. msgstr ""
  34276. #. type: item
  34277. #: guix-git/doc/guix.texi:22702
  34278. #, no-wrap
  34279. msgid "@code{interface} (default: @code{\"::,0.0.0.0\"})"
  34280. msgstr ""
  34281. #. type: item
  34282. #: guix-git/doc/guix.texi:22703
  34283. #, no-wrap
  34284. msgid "@code{port} (default: @code{4242})"
  34285. msgstr ""
  34286. #. type: table
  34287. #: guix-git/doc/guix.texi:22707
  34288. msgid "Listen on the network interface(s) corresponding to the IPv4 or IPv6 interfaces specified in the comma delimited @var{interface}, on @var{port}."
  34289. msgstr ""
  34290. #. type: item
  34291. #: guix-git/doc/guix.texi:22708
  34292. #, no-wrap
  34293. msgid "@code{loglevel} (default: @code{\"Info\"})"
  34294. msgstr ""
  34295. #. type: table
  34296. #: guix-git/doc/guix.texi:22711
  34297. msgid "The level of logging desired. Accepted values are Debug, Info, Warning and Error."
  34298. msgstr ""
  34299. #. type: cindex
  34300. #: guix-git/doc/guix.texi:22717
  34301. #, fuzzy, no-wrap
  34302. #| msgid "Telephony services."
  34303. msgid "telephony, services"
  34304. msgstr "电话服务。"
  34305. #. type: Plain text
  34306. #: guix-git/doc/guix.texi:22721
  34307. msgid "The @code{(gnu services telephony)} module contains Guix service definitions for telephony services. Currently it provides the following services:"
  34308. msgstr ""
  34309. #. type: subsubheading
  34310. #: guix-git/doc/guix.texi:22722
  34311. #, no-wrap
  34312. msgid "Jami"
  34313. msgstr ""
  34314. #. type: cindex
  34315. #: guix-git/doc/guix.texi:22724
  34316. #, fuzzy, no-wrap
  34317. msgid "jami, service"
  34318. msgstr "DNS服务"
  34319. #. type: Plain text
  34320. #: guix-git/doc/guix.texi:22730
  34321. 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:"
  34322. msgstr ""
  34323. #. type: lisp
  34324. #: guix-git/doc/guix.texi:22739
  34325. #, no-wrap
  34326. msgid ""
  34327. "(service jami-service-type\n"
  34328. " (jami-configuration\n"
  34329. " (accounts\n"
  34330. " (list (jami-account\n"
  34331. " (archive \"/etc/jami/unencrypted-account-1.gz\"))\n"
  34332. " (jami-account\n"
  34333. " (archive \"/etc/jami/unencrypted-account-2.gz\"))))))\n"
  34334. msgstr ""
  34335. #. type: Plain text
  34336. #: guix-git/doc/guix.texi:22744
  34337. 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."
  34338. msgstr ""
  34339. #. type: Plain text
  34340. #: guix-git/doc/guix.texi:22749
  34341. msgid "Jami accounts and their corresponding backup archives can be generated using either the @code{jami-qt} or @code{jami-gnome} Jami clients. The accounts should not be password-protected, but it is wise to ensure their files are only readable by @samp{root}."
  34342. msgstr ""
  34343. #. type: Plain text
  34344. #: guix-git/doc/guix.texi:22752
  34345. msgid "The next example shows how to declare that only some contacts should be allowed to communicate with a given account:"
  34346. msgstr ""
  34347. #. type: lisp
  34348. #: guix-git/doc/guix.texi:22764
  34349. #, no-wrap
  34350. msgid ""
  34351. "(service jami-service-type\n"
  34352. " (jami-configuration\n"
  34353. " (accounts\n"
  34354. " (list (jami-account\n"
  34355. " (archive \"/etc/jami/unencrypted-account-1.gz\")\n"
  34356. " (peer-discovery? #t)\n"
  34357. " (rendezvous-point? #t)\n"
  34358. " (allowed-contacts\n"
  34359. " '(\"1dbcb0f5f37324228235564b79f2b9737e9a008f\"\n"
  34360. " \"2dbcb0f5f37324228235564b79f2b9737e9a008f\")))))))\n"
  34361. msgstr ""
  34362. #. type: Plain text
  34363. #: guix-git/doc/guix.texi:22770
  34364. 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."
  34365. msgstr ""
  34366. #. type: Plain text
  34367. #: guix-git/doc/guix.texi:22773
  34368. msgid "To put the system administrator in full control of the conferences hosted on their system, the Jami service supports the following actions:"
  34369. msgstr ""
  34370. #. type: example
  34371. #: guix-git/doc/guix.texi:22785
  34372. #, no-wrap
  34373. msgid ""
  34374. "# herd doc jami list-actions\n"
  34375. "(list-accounts\n"
  34376. " list-account-details\n"
  34377. " list-banned-contacts\n"
  34378. " list-contacts\n"
  34379. " list-moderators\n"
  34380. " add-moderator\n"
  34381. " ban-contact\n"
  34382. " enable-account\n"
  34383. " disable-account)\n"
  34384. msgstr ""
  34385. #. type: Plain text
  34386. #: guix-git/doc/guix.texi:22792
  34387. 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."
  34388. msgstr ""
  34389. #. type: Plain text
  34390. #: guix-git/doc/guix.texi:22798
  34391. 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:"
  34392. msgstr ""
  34393. #. type: example
  34394. #: guix-git/doc/guix.texi:22802
  34395. #, no-wrap
  34396. msgid ""
  34397. "# herd add-moderator jami 1dbcb0f5f37324228235564b79f2b9737e9a008f \\\n"
  34398. " f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  34399. "\n"
  34400. msgstr ""
  34401. #. type: example
  34402. #: guix-git/doc/guix.texi:22806
  34403. #, no-wrap
  34404. msgid ""
  34405. "# herd list-moderators jami\n"
  34406. "Moderators for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  34407. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  34408. "\n"
  34409. msgstr ""
  34410. #. type: Plain text
  34411. #: guix-git/doc/guix.texi:22811
  34412. msgid "In the case of @code{ban-contact}, the second username argument is optional; when omitted, the account is banned from all Jami accounts:"
  34413. msgstr ""
  34414. #. type: example
  34415. #: guix-git/doc/guix.texi:22814
  34416. #, no-wrap
  34417. msgid ""
  34418. "# herd ban-contact jami 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  34419. "\n"
  34420. msgstr ""
  34421. #. type: example
  34422. #: guix-git/doc/guix.texi:22818
  34423. #, no-wrap
  34424. msgid ""
  34425. "# herd list-banned-contacts jami\n"
  34426. "Banned contacts for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  34427. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  34428. "\n"
  34429. msgstr ""
  34430. #. type: Plain text
  34431. #: guix-git/doc/guix.texi:22822
  34432. msgid "Banned contacts are also stripped from their moderation privileges."
  34433. msgstr ""
  34434. #. type: Plain text
  34435. #: guix-git/doc/guix.texi:22827
  34436. 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:"
  34437. msgstr ""
  34438. #. type: example
  34439. #: guix-git/doc/guix.texi:22830
  34440. #, no-wrap
  34441. msgid ""
  34442. "# herd disable-account jami f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  34443. "\n"
  34444. msgstr ""
  34445. #. type: example
  34446. #: guix-git/doc/guix.texi:22834
  34447. #, no-wrap
  34448. msgid ""
  34449. "# herd list-accounts jami\n"
  34450. "The following Jami accounts are available:\n"
  34451. " - f3345f2775ddfe07a4b0d95daea111d15fbc1199 (dummy) [disabled]\n"
  34452. "\n"
  34453. msgstr ""
  34454. #. type: Plain text
  34455. #: guix-git/doc/guix.texi:22845
  34456. 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:"
  34457. msgstr ""
  34458. #. type: example
  34459. #: guix-git/doc/guix.texi:22850
  34460. #, no-wrap
  34461. msgid ""
  34462. "# herd list-account-details jami | \\\n"
  34463. " recsel -p Account.username -e 'Account.rendezVous ~ \"true\"'\n"
  34464. "Account_username: f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  34465. msgstr ""
  34466. #. type: Plain text
  34467. #: guix-git/doc/guix.texi:22853
  34468. msgid "The remaining actions should be self-explanatory."
  34469. msgstr ""
  34470. #. type: Plain text
  34471. #: guix-git/doc/guix.texi:22855
  34472. msgid "The complete set of available configuration options is detailed below."
  34473. msgstr ""
  34474. #. type: deftp
  34475. #: guix-git/doc/guix.texi:22859
  34476. #, fuzzy, no-wrap
  34477. msgid "{Data Type} jami-configuration"
  34478. msgstr "{数据类型} build-machine"
  34479. #. type: deftp
  34480. #: guix-git/doc/guix.texi:22861
  34481. msgid "Available @code{jami-configuration} fields are:"
  34482. msgstr ""
  34483. #. type: item
  34484. #: guix-git/doc/guix.texi:22863
  34485. #, fuzzy, no-wrap
  34486. msgid "@code{jamid} (default: @code{libring}) (type: package)"
  34487. msgstr "@code{xfce}(默认值:@code{xfce})"
  34488. #. type: table
  34489. #: guix-git/doc/guix.texi:22865
  34490. #, fuzzy
  34491. msgid "The Jami daemon package to use."
  34492. msgstr "软件包数据类型。"
  34493. #. type: item
  34494. #: guix-git/doc/guix.texi:22866
  34495. #, fuzzy, no-wrap
  34496. msgid "@code{dbus} (default: @code{dbus}) (type: package)"
  34497. msgstr "@code{xfce}(默认值:@code{xfce})"
  34498. #. type: table
  34499. #: guix-git/doc/guix.texi:22868
  34500. #, fuzzy
  34501. msgid "The D-Bus package to use to start the required D-Bus session."
  34502. msgstr "软件包数据类型。"
  34503. #. type: item
  34504. #: guix-git/doc/guix.texi:22869
  34505. #, fuzzy, no-wrap
  34506. msgid "@code{nss-certs} (default: @code{nss-certs}) (type: package)"
  34507. msgstr "@code{xfce}(默认值:@code{xfce})"
  34508. #. type: table
  34509. #: guix-git/doc/guix.texi:22871
  34510. #, fuzzy
  34511. msgid "The nss-certs package to use to provide TLS certificates."
  34512. msgstr "软件包数据类型。"
  34513. #. type: item
  34514. #: guix-git/doc/guix.texi:22872
  34515. #, fuzzy, no-wrap
  34516. msgid "@code{enable-logging?} (default: @code{#t}) (type: boolean)"
  34517. msgstr "@code{speed}(默认值:@code{1.0})"
  34518. #. type: table
  34519. #: guix-git/doc/guix.texi:22874
  34520. msgid "Whether to enable logging to syslog."
  34521. msgstr ""
  34522. #. type: item
  34523. #: guix-git/doc/guix.texi:22875
  34524. #, fuzzy, no-wrap
  34525. msgid "@code{debug?} (default: @code{#f}) (type: boolean)"
  34526. msgstr "@code{challenge}(默认值:@code{#f})"
  34527. #. type: table
  34528. #: guix-git/doc/guix.texi:22877
  34529. msgid "Whether to enable debug level messages."
  34530. msgstr ""
  34531. #. type: item
  34532. #: guix-git/doc/guix.texi:22878
  34533. #, fuzzy, no-wrap
  34534. msgid "@code{auto-answer?} (default: @code{#f}) (type: boolean)"
  34535. msgstr "@code{port}(默认值:@code{22})"
  34536. #. type: table
  34537. #: guix-git/doc/guix.texi:22880
  34538. msgid "Whether to force automatic answer to incoming calls."
  34539. msgstr ""
  34540. #. type: item
  34541. #: guix-git/doc/guix.texi:22881
  34542. #, fuzzy, no-wrap
  34543. msgid "@code{accounts} (default: @code{disabled}) (type: maybe-jami-account-list)"
  34544. msgstr "@code{gnome}(默认值:@code{gnome})"
  34545. #. type: table
  34546. #: guix-git/doc/guix.texi:22886
  34547. 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."
  34548. msgstr ""
  34549. #. type: deftp
  34550. #: guix-git/doc/guix.texi:22892
  34551. #, fuzzy, no-wrap
  34552. msgid "{Data Type} jami-account"
  34553. msgstr "{数据类型} build-machine"
  34554. #. type: deftp
  34555. #: guix-git/doc/guix.texi:22894
  34556. msgid "Available @code{jami-account} fields are:"
  34557. msgstr ""
  34558. #. type: item
  34559. #: guix-git/doc/guix.texi:22896
  34560. #, no-wrap
  34561. msgid "@code{archive} (type: string-or-computed-file)"
  34562. msgstr ""
  34563. #. type: table
  34564. #: guix-git/doc/guix.texi:22902
  34565. 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."
  34566. msgstr ""
  34567. #. type: item
  34568. #: guix-git/doc/guix.texi:22903
  34569. #, no-wrap
  34570. msgid "@code{allowed-contacts} (default: @code{disabled}) (type: maybe-account-fingerprint-list)"
  34571. msgstr ""
  34572. #. type: table
  34573. #: guix-git/doc/guix.texi:22910
  34574. 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."
  34575. msgstr ""
  34576. #. type: item
  34577. #: guix-git/doc/guix.texi:22911
  34578. #, no-wrap
  34579. msgid "@code{moderators} (default: @code{disabled}) (type: maybe-account-fingerprint-list)"
  34580. msgstr ""
  34581. #. type: table
  34582. #: guix-git/doc/guix.texi:22917
  34583. 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."
  34584. msgstr ""
  34585. #. type: item
  34586. #: guix-git/doc/guix.texi:22918
  34587. #, fuzzy, no-wrap
  34588. msgid "@code{rendezvous-point?} (default: @code{disabled}) (type: maybe-boolean)"
  34589. msgstr "@code{port}(默认值:@code{22})"
  34590. #. type: table
  34591. #: guix-git/doc/guix.texi:22922
  34592. 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."
  34593. msgstr ""
  34594. #. type: item
  34595. #: guix-git/doc/guix.texi:22923
  34596. #, fuzzy, no-wrap
  34597. msgid "@code{peer-discovery?} (default: @code{disabled}) (type: maybe-boolean)"
  34598. msgstr "@code{speed}(默认值:@code{1.0})"
  34599. #. type: table
  34600. #: guix-git/doc/guix.texi:22929
  34601. 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."
  34602. msgstr ""
  34603. #. type: item
  34604. #: guix-git/doc/guix.texi:22930
  34605. #, fuzzy, no-wrap
  34606. msgid "@code{bootstrap-hostnames} (default: @code{disabled}) (type: maybe-string-list)"
  34607. msgstr "@code{mate}(默认值:@code{mate})"
  34608. #. type: table
  34609. #: guix-git/doc/guix.texi:22934
  34610. 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."
  34611. msgstr ""
  34612. #. type: item
  34613. #: guix-git/doc/guix.texi:22935
  34614. #, fuzzy, no-wrap
  34615. msgid "@code{name-server-uri} (default: @code{disabled}) (type: maybe-string)"
  34616. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  34617. #. type: table
  34618. #: guix-git/doc/guix.texi:22938
  34619. msgid "The URI of the name server to use, that can be used to retrieve the account fingerprint for a registered username."
  34620. msgstr ""
  34621. #. type: cindex
  34622. #: guix-git/doc/guix.texi:22943 guix-git/doc/guix.texi:22945
  34623. #, no-wrap
  34624. msgid "Murmur (VoIP server)"
  34625. msgstr ""
  34626. #. type: cindex
  34627. #: guix-git/doc/guix.texi:22946
  34628. #, no-wrap
  34629. msgid "VoIP server"
  34630. msgstr ""
  34631. #. type: Plain text
  34632. #: guix-git/doc/guix.texi:22950
  34633. 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."
  34634. msgstr ""
  34635. #. type: deftp
  34636. #: guix-git/doc/guix.texi:22951
  34637. #, no-wrap
  34638. msgid "{Data Type} murmur-configuration"
  34639. msgstr ""
  34640. #. type: deftp
  34641. #: guix-git/doc/guix.texi:22954
  34642. msgid "The service type for the Murmur server. An example configuration can look like this:"
  34643. msgstr ""
  34644. #. type: lisp
  34645. #: guix-git/doc/guix.texi:22963
  34646. #, no-wrap
  34647. msgid ""
  34648. "(service murmur-service-type\n"
  34649. " (murmur-configuration\n"
  34650. " (welcome-text\n"
  34651. " \"Welcome to this Mumble server running on Guix!\")\n"
  34652. " (cert-required? #t) ;disallow text password logins\n"
  34653. " (ssl-cert \"/etc/letsencrypt/live/mumble.example.com/fullchain.pem\")\n"
  34654. " (ssl-key \"/etc/letsencrypt/live/mumble.example.com/privkey.pem\")))\n"
  34655. msgstr ""
  34656. #. type: deftp
  34657. #: guix-git/doc/guix.texi:22967
  34658. msgid "After reconfiguring your system, you can manually set the murmur @code{SuperUser} password with the command that is printed during the activation phase."
  34659. msgstr ""
  34660. #. type: deftp
  34661. #: guix-git/doc/guix.texi:22976
  34662. 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."
  34663. msgstr ""
  34664. #. type: deftp
  34665. #: guix-git/doc/guix.texi:22978
  34666. msgid "Available @code{murmur-configuration} fields are:"
  34667. msgstr ""
  34668. #. type: item
  34669. #: guix-git/doc/guix.texi:22980
  34670. #, no-wrap
  34671. msgid "@code{package} (default: @code{mumble})"
  34672. msgstr ""
  34673. #. type: table
  34674. #: guix-git/doc/guix.texi:22982
  34675. msgid "Package that contains @code{bin/murmurd}."
  34676. msgstr ""
  34677. #. type: item
  34678. #: guix-git/doc/guix.texi:22983
  34679. #, no-wrap
  34680. msgid "@code{user} (default: @code{\"murmur\"})"
  34681. msgstr ""
  34682. #. type: table
  34683. #: guix-git/doc/guix.texi:22985
  34684. msgid "User who will run the Murmur server."
  34685. msgstr ""
  34686. #. type: item
  34687. #: guix-git/doc/guix.texi:22986
  34688. #, no-wrap
  34689. msgid "@code{group} (default: @code{\"murmur\"})"
  34690. msgstr ""
  34691. #. type: table
  34692. #: guix-git/doc/guix.texi:22988
  34693. msgid "Group of the user who will run the murmur server."
  34694. msgstr ""
  34695. #. type: item
  34696. #: guix-git/doc/guix.texi:22989
  34697. #, no-wrap
  34698. msgid "@code{port} (default: @code{64738})"
  34699. msgstr ""
  34700. #. type: table
  34701. #: guix-git/doc/guix.texi:22991
  34702. msgid "Port on which the server will listen."
  34703. msgstr ""
  34704. #. type: item
  34705. #: guix-git/doc/guix.texi:22992
  34706. #, no-wrap
  34707. msgid "@code{welcome-text} (default: @code{\"\"})"
  34708. msgstr ""
  34709. #. type: table
  34710. #: guix-git/doc/guix.texi:22994
  34711. msgid "Welcome text sent to clients when they connect."
  34712. msgstr ""
  34713. #. type: item
  34714. #: guix-git/doc/guix.texi:22995
  34715. #, no-wrap
  34716. msgid "@code{server-password} (default: @code{\"\"})"
  34717. msgstr ""
  34718. #. type: table
  34719. #: guix-git/doc/guix.texi:22997
  34720. msgid "Password the clients have to enter in order to connect."
  34721. msgstr ""
  34722. #. type: item
  34723. #: guix-git/doc/guix.texi:22998
  34724. #, no-wrap
  34725. msgid "@code{max-users} (default: @code{100})"
  34726. msgstr ""
  34727. #. type: table
  34728. #: guix-git/doc/guix.texi:23000
  34729. msgid "Maximum of users that can be connected to the server at once."
  34730. msgstr ""
  34731. #. type: item
  34732. #: guix-git/doc/guix.texi:23001
  34733. #, no-wrap
  34734. msgid "@code{max-user-bandwidth} (default: @code{#f})"
  34735. msgstr ""
  34736. #. type: table
  34737. #: guix-git/doc/guix.texi:23003
  34738. msgid "Maximum voice traffic a user can send per second."
  34739. msgstr ""
  34740. #. type: item
  34741. #: guix-git/doc/guix.texi:23004
  34742. #, no-wrap
  34743. msgid "@code{database-file} (default: @code{\"/var/lib/murmur/db.sqlite\"})"
  34744. msgstr ""
  34745. #. type: table
  34746. #: guix-git/doc/guix.texi:23007
  34747. msgid "File name of the sqlite database. The service's user will become the owner of the directory."
  34748. msgstr ""
  34749. #. type: item
  34750. #: guix-git/doc/guix.texi:23008
  34751. #, no-wrap
  34752. msgid "@code{log-file} (default: @code{\"/var/log/murmur/murmur.log\"})"
  34753. msgstr ""
  34754. #. type: table
  34755. #: guix-git/doc/guix.texi:23011
  34756. msgid "File name of the log file. The service's user will become the owner of the directory."
  34757. msgstr ""
  34758. #. type: item
  34759. #: guix-git/doc/guix.texi:23012
  34760. #, no-wrap
  34761. msgid "@code{autoban-attempts} (default: @code{10})"
  34762. msgstr ""
  34763. #. type: table
  34764. #: guix-git/doc/guix.texi:23015
  34765. msgid "Maximum number of logins a user can make in @code{autoban-timeframe} without getting auto banned for @code{autoban-time}."
  34766. msgstr ""
  34767. #. type: item
  34768. #: guix-git/doc/guix.texi:23016
  34769. #, no-wrap
  34770. msgid "@code{autoban-timeframe} (default: @code{120})"
  34771. msgstr ""
  34772. #. type: table
  34773. #: guix-git/doc/guix.texi:23018
  34774. msgid "Timeframe for autoban in seconds."
  34775. msgstr ""
  34776. #. type: item
  34777. #: guix-git/doc/guix.texi:23019
  34778. #, no-wrap
  34779. msgid "@code{autoban-time} (default: @code{300})"
  34780. msgstr ""
  34781. #. type: table
  34782. #: guix-git/doc/guix.texi:23022
  34783. msgid "Amount of time in seconds for which a client gets banned when violating the autoban limits."
  34784. msgstr ""
  34785. #. type: item
  34786. #: guix-git/doc/guix.texi:23023
  34787. #, no-wrap
  34788. msgid "@code{opus-threshold} (default: @code{100})"
  34789. msgstr ""
  34790. #. type: table
  34791. #: guix-git/doc/guix.texi:23026
  34792. msgid "Percentage of clients that need to support opus before switching over to opus audio codec."
  34793. msgstr ""
  34794. #. type: item
  34795. #: guix-git/doc/guix.texi:23027
  34796. #, no-wrap
  34797. msgid "@code{channel-nesting-limit} (default: @code{10})"
  34798. msgstr ""
  34799. #. type: table
  34800. #: guix-git/doc/guix.texi:23029
  34801. msgid "How deep channels can be nested at maximum."
  34802. msgstr ""
  34803. #. type: item
  34804. #: guix-git/doc/guix.texi:23030
  34805. #, no-wrap
  34806. msgid "@code{channelname-regex} (default: @code{#f})"
  34807. msgstr ""
  34808. #. type: table
  34809. #: guix-git/doc/guix.texi:23032
  34810. msgid "A string in form of a Qt regular expression that channel names must conform to."
  34811. msgstr ""
  34812. #. type: item
  34813. #: guix-git/doc/guix.texi:23033
  34814. #, no-wrap
  34815. msgid "@code{username-regex} (default: @code{#f})"
  34816. msgstr ""
  34817. #. type: table
  34818. #: guix-git/doc/guix.texi:23035
  34819. msgid "A string in form of a Qt regular expression that user names must conform to."
  34820. msgstr ""
  34821. #. type: item
  34822. #: guix-git/doc/guix.texi:23036
  34823. #, no-wrap
  34824. msgid "@code{text-message-length} (default: @code{5000})"
  34825. msgstr ""
  34826. #. type: table
  34827. #: guix-git/doc/guix.texi:23038
  34828. msgid "Maximum size in bytes that a user can send in one text chat message."
  34829. msgstr ""
  34830. #. type: item
  34831. #: guix-git/doc/guix.texi:23039
  34832. #, no-wrap
  34833. msgid "@code{image-message-length} (default: @code{(* 128 1024)})"
  34834. msgstr ""
  34835. #. type: table
  34836. #: guix-git/doc/guix.texi:23041
  34837. msgid "Maximum size in bytes that a user can send in one image message."
  34838. msgstr ""
  34839. #. type: item
  34840. #: guix-git/doc/guix.texi:23042
  34841. #, no-wrap
  34842. msgid "@code{cert-required?} (default: @code{#f})"
  34843. msgstr ""
  34844. #. type: table
  34845. #: guix-git/doc/guix.texi:23045
  34846. 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."
  34847. msgstr ""
  34848. #. type: item
  34849. #: guix-git/doc/guix.texi:23046
  34850. #, no-wrap
  34851. msgid "@code{remember-channel?} (default: @code{#f})"
  34852. msgstr ""
  34853. #. type: table
  34854. #: guix-git/doc/guix.texi:23049
  34855. msgid "Should murmur remember the last channel each user was in when they disconnected and put them into the remembered channel when they rejoin."
  34856. msgstr ""
  34857. #. type: item
  34858. #: guix-git/doc/guix.texi:23050
  34859. #, no-wrap
  34860. msgid "@code{allow-html?} (default: @code{#f})"
  34861. msgstr ""
  34862. #. type: table
  34863. #: guix-git/doc/guix.texi:23052
  34864. msgid "Should html be allowed in text messages, user comments, and channel descriptions."
  34865. msgstr ""
  34866. #. type: item
  34867. #: guix-git/doc/guix.texi:23053
  34868. #, no-wrap
  34869. msgid "@code{allow-ping?} (default: @code{#f})"
  34870. msgstr ""
  34871. #. type: table
  34872. #: guix-git/doc/guix.texi:23057
  34873. 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."
  34874. msgstr ""
  34875. #. type: table
  34876. #: guix-git/doc/guix.texi:23059
  34877. msgid "Disabling this setting will prevent public listing of the server."
  34878. msgstr ""
  34879. #. type: item
  34880. #: guix-git/doc/guix.texi:23060
  34881. #, no-wrap
  34882. msgid "@code{bonjour?} (default: @code{#f})"
  34883. msgstr ""
  34884. #. type: table
  34885. #: guix-git/doc/guix.texi:23062
  34886. msgid "Should the server advertise itself in the local network through the bonjour protocol."
  34887. msgstr ""
  34888. #. type: item
  34889. #: guix-git/doc/guix.texi:23063
  34890. #, no-wrap
  34891. msgid "@code{send-version?} (default: @code{#f})"
  34892. msgstr ""
  34893. #. type: table
  34894. #: guix-git/doc/guix.texi:23065
  34895. msgid "Should the murmur server version be exposed in ping requests."
  34896. msgstr ""
  34897. #. type: item
  34898. #: guix-git/doc/guix.texi:23066
  34899. #, no-wrap
  34900. msgid "@code{log-days} (default: @code{31})"
  34901. msgstr ""
  34902. #. type: table
  34903. #: guix-git/doc/guix.texi:23070
  34904. 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."
  34905. msgstr ""
  34906. #. type: item
  34907. #: guix-git/doc/guix.texi:23071
  34908. #, no-wrap
  34909. msgid "@code{obfuscate-ips?} (default: @code{#t})"
  34910. msgstr ""
  34911. #. type: table
  34912. #: guix-git/doc/guix.texi:23073
  34913. msgid "Should logged ips be obfuscated to protect the privacy of users."
  34914. msgstr ""
  34915. #. type: item
  34916. #: guix-git/doc/guix.texi:23074
  34917. #, no-wrap
  34918. msgid "@code{ssl-cert} (default: @code{#f})"
  34919. msgstr ""
  34920. #. type: table
  34921. #: guix-git/doc/guix.texi:23076
  34922. msgid "File name of the SSL/TLS certificate used for encrypted connections."
  34923. msgstr ""
  34924. #. type: lisp
  34925. #: guix-git/doc/guix.texi:23079
  34926. #, no-wrap
  34927. msgid "(ssl-cert \"/etc/letsencrypt/live/example.com/fullchain.pem\")\n"
  34928. msgstr ""
  34929. #. type: item
  34930. #: guix-git/doc/guix.texi:23080
  34931. #, no-wrap
  34932. msgid "@code{ssl-key} (default: @code{#f})"
  34933. msgstr ""
  34934. #. type: table
  34935. #: guix-git/doc/guix.texi:23082
  34936. msgid "Filepath to the ssl private key used for encrypted connections."
  34937. msgstr ""
  34938. #. type: lisp
  34939. #: guix-git/doc/guix.texi:23084
  34940. #, no-wrap
  34941. msgid "(ssl-key \"/etc/letsencrypt/live/example.com/privkey.pem\")\n"
  34942. msgstr ""
  34943. #. type: item
  34944. #: guix-git/doc/guix.texi:23086
  34945. #, no-wrap
  34946. msgid "@code{ssl-dh-params} (default: @code{#f})"
  34947. msgstr ""
  34948. #. type: table
  34949. #: guix-git/doc/guix.texi:23091
  34950. 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."
  34951. msgstr ""
  34952. #. type: item
  34953. #: guix-git/doc/guix.texi:23092
  34954. #, no-wrap
  34955. msgid "@code{ssl-ciphers} (default: @code{#f})"
  34956. msgstr ""
  34957. #. type: table
  34958. #: guix-git/doc/guix.texi:23095
  34959. msgid "The @code{ssl-ciphers} option chooses the cipher suites to make available for use in SSL/TLS."
  34960. msgstr ""
  34961. #. type: table
  34962. #: guix-git/doc/guix.texi:23099
  34963. msgid "This option is specified using @uref{https://www.openssl.org/docs/apps/ciphers.html#CIPHER-LIST-FORMAT, OpenSSL cipher list notation}."
  34964. msgstr ""
  34965. #. type: table
  34966. #: guix-git/doc/guix.texi:23104
  34967. 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."
  34968. msgstr ""
  34969. #. type: table
  34970. #: guix-git/doc/guix.texi:23108
  34971. 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."
  34972. msgstr ""
  34973. #. type: item
  34974. #: guix-git/doc/guix.texi:23109
  34975. #, no-wrap
  34976. msgid "@code{public-registration} (default: @code{#f})"
  34977. msgstr ""
  34978. #. type: table
  34979. #: guix-git/doc/guix.texi:23111
  34980. msgid "Must be a @code{<murmur-public-registration-configuration>} record or @code{#f}."
  34981. msgstr ""
  34982. #. type: table
  34983. #: guix-git/doc/guix.texi:23116
  34984. 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}."
  34985. msgstr ""
  34986. #. type: table
  34987. #: guix-git/doc/guix.texi:23118
  34988. msgid "It might take a few hours until it shows up in the public list."
  34989. msgstr ""
  34990. #. type: item
  34991. #: guix-git/doc/guix.texi:23119 guix-git/doc/guix.texi:25356
  34992. #, no-wrap
  34993. msgid "@code{file} (default: @code{#f})"
  34994. msgstr ""
  34995. #. type: table
  34996. #: guix-git/doc/guix.texi:23121
  34997. msgid "Optional alternative override for this configuration."
  34998. msgstr ""
  34999. #. type: deftp
  35000. #: guix-git/doc/guix.texi:23124
  35001. #, no-wrap
  35002. msgid "{Data Type} murmur-public-registration-configuration"
  35003. msgstr ""
  35004. #. type: deftp
  35005. #: guix-git/doc/guix.texi:23126
  35006. msgid "Configuration for public registration of a murmur service."
  35007. msgstr ""
  35008. #. type: table
  35009. #: guix-git/doc/guix.texi:23130
  35010. msgid "This is a display name for your server. Not to be confused with the hostname."
  35011. msgstr ""
  35012. #. type: itemx
  35013. #: guix-git/doc/guix.texi:23131 guix-git/doc/guix.texi:32028
  35014. #: guix-git/doc/guix.texi:33176
  35015. #, no-wrap
  35016. msgid "password"
  35017. msgstr ""
  35018. #. type: table
  35019. #: guix-git/doc/guix.texi:23134
  35020. msgid "A password to identify your registration. Subsequent updates will need the same password. Don't lose your password."
  35021. msgstr ""
  35022. #. type: table
  35023. #: guix-git/doc/guix.texi:23138
  35024. msgid "This should be a @code{http://} or @code{https://} link to your web site."
  35025. msgstr ""
  35026. #. type: item
  35027. #: guix-git/doc/guix.texi:23139 guix-git/doc/guix.texi:26235
  35028. #, no-wrap
  35029. msgid "@code{hostname} (default: @code{#f})"
  35030. msgstr ""
  35031. #. type: table
  35032. #: guix-git/doc/guix.texi:23142
  35033. 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."
  35034. msgstr ""
  35035. #. type: Plain text
  35036. #: guix-git/doc/guix.texi:23152
  35037. msgid "The @code{(gnu services file-sharing)} module provides services that assist with transferring files over peer-to-peer file-sharing networks."
  35038. msgstr ""
  35039. #. type: subsubheading
  35040. #: guix-git/doc/guix.texi:23153
  35041. #, fuzzy, no-wrap
  35042. msgid "Transmission Daemon Service"
  35043. msgstr "版本控制服务"
  35044. #. type: Plain text
  35045. #: guix-git/doc/guix.texi:23161
  35046. 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."
  35047. msgstr ""
  35048. #. type: deffn
  35049. #: guix-git/doc/guix.texi:23162
  35050. #, no-wrap
  35051. msgid "{Scheme Variable} transmission-daemon-service-type"
  35052. msgstr ""
  35053. #. type: deffn
  35054. #: guix-git/doc/guix.texi:23166
  35055. msgid "The service type for the Transmission Daemon BitTorrent client. Its value must be a @code{transmission-daemon-configuration} object as in this example:"
  35056. msgstr ""
  35057. #. type: lisp
  35058. #: guix-git/doc/guix.texi:23177
  35059. #, no-wrap
  35060. msgid ""
  35061. "(service transmission-daemon-service-type\n"
  35062. " (transmission-daemon-configuration\n"
  35063. " ;; Restrict access to the RPC (\"control\") interface\n"
  35064. " (rpc-authentication-required? #t)\n"
  35065. " (rpc-username \"transmission\")\n"
  35066. " (rpc-password\n"
  35067. " (transmission-password-hash\n"
  35068. " \"transmission\" ; desired password\n"
  35069. " \"uKd1uMs9\")) ; arbitrary salt value\n"
  35070. "\n"
  35071. msgstr ""
  35072. #. type: lisp
  35073. #: guix-git/doc/guix.texi:23182
  35074. #, no-wrap
  35075. msgid ""
  35076. " ;; Accept requests from this and other hosts on the\n"
  35077. " ;; local network\n"
  35078. " (rpc-whitelist-enabled? #t)\n"
  35079. " (rpc-whitelist '(\"::1\" \"127.0.0.1\" \"192.168.0.*\"))\n"
  35080. "\n"
  35081. msgstr ""
  35082. #. type: lisp
  35083. #: guix-git/doc/guix.texi:23186
  35084. #, no-wrap
  35085. msgid ""
  35086. " ;; Limit bandwidth use during work hours\n"
  35087. " (alt-speed-down (* 1024 2)) ; 2 MB/s\n"
  35088. " (alt-speed-up 512) ; 512 kB/s\n"
  35089. "\n"
  35090. msgstr ""
  35091. #. type: lisp
  35092. #: guix-git/doc/guix.texi:23193
  35093. #, no-wrap
  35094. msgid ""
  35095. " (alt-speed-time-enabled? #t)\n"
  35096. " (alt-speed-time-day 'weekdays)\n"
  35097. " (alt-speed-time-begin\n"
  35098. " (+ (* 60 8) 30)) ; 8:30 am\n"
  35099. " (alt-speed-time-end\n"
  35100. " (+ (* 60 (+ 12 5)) 30)))) ; 5:30 pm\n"
  35101. msgstr ""
  35102. #. type: Plain text
  35103. #: guix-git/doc/guix.texi:23206
  35104. 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."
  35105. msgstr ""
  35106. #. type: Plain text
  35107. #: guix-git/doc/guix.texi:23214
  35108. 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."
  35109. msgstr ""
  35110. #. type: deffn
  35111. #: guix-git/doc/guix.texi:23215
  35112. #, no-wrap
  35113. msgid "{Scheme Procedure} transmission-password-hash @var{password} @var{salt}"
  35114. msgstr ""
  35115. #. type: deffn
  35116. #: guix-git/doc/guix.texi:23219
  35117. 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."
  35118. msgstr ""
  35119. #. type: deffn
  35120. #: guix-git/doc/guix.texi:23223
  35121. 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."
  35122. msgstr ""
  35123. #. type: deffn
  35124. #: guix-git/doc/guix.texi:23225
  35125. #, no-wrap
  35126. msgid "{Scheme Procedure} transmission-random-salt"
  35127. msgstr ""
  35128. #. type: deffn
  35129. #: guix-git/doc/guix.texi:23229
  35130. 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."
  35131. msgstr ""
  35132. #. type: Plain text
  35133. #: guix-git/doc/guix.texi:23235
  35134. 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:"
  35135. msgstr ""
  35136. #. type: example
  35137. #: guix-git/doc/guix.texi:23241
  35138. #, no-wrap
  35139. msgid ""
  35140. "$ guix repl\n"
  35141. "scheme@@(guix-user)> ,use (gnu services file-sharing)\n"
  35142. "scheme@@(guix-user)> (transmission-random-salt)\n"
  35143. "$1 = \"uKd1uMs9\"\n"
  35144. msgstr ""
  35145. #. type: Plain text
  35146. #: guix-git/doc/guix.texi:23244
  35147. msgid "Alternatively, a complete password hash can generated in a single step:"
  35148. msgstr ""
  35149. #. type: example
  35150. #: guix-git/doc/guix.texi:23249
  35151. #, no-wrap
  35152. msgid ""
  35153. "scheme@@(guix-user)> (transmission-password-hash \"transmission\"\n"
  35154. "(transmission-random-salt))\n"
  35155. "$2 = \"@{c8bbc6d1740cd8dc819a6e25563b67812c1c19c9VtFPfdsX\"\n"
  35156. msgstr ""
  35157. #. type: Plain text
  35158. #: guix-git/doc/guix.texi:23254
  35159. 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."
  35160. msgstr ""
  35161. #. type: Plain text
  35162. #: guix-git/doc/guix.texi:23263
  35163. 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."
  35164. msgstr ""
  35165. #. type: Plain text
  35166. #: guix-git/doc/guix.texi:23270
  35167. 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.)"
  35168. msgstr ""
  35169. #. type: Plain text
  35170. #: guix-git/doc/guix.texi:23275
  35171. 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:"
  35172. msgstr ""
  35173. #. type: example
  35174. #: guix-git/doc/guix.texi:23278
  35175. #, no-wrap
  35176. msgid "# herd reload transmission-daemon\n"
  35177. msgstr ""
  35178. #. type: Plain text
  35179. #: guix-git/doc/guix.texi:23282
  35180. msgid "The full set of available configuration settings is defined by the @code{transmission-daemon-configuration} data type."
  35181. msgstr ""
  35182. #. type: deftp
  35183. #: guix-git/doc/guix.texi:23283
  35184. #, fuzzy, no-wrap
  35185. msgid "{Data Type} transmission-daemon-configuration"
  35186. msgstr "{数据类型} build-machine"
  35187. #. type: deftp
  35188. #: guix-git/doc/guix.texi:23287
  35189. 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."
  35190. msgstr ""
  35191. #. type: Plain text
  35192. #: guix-git/doc/guix.texi:23301
  35193. msgid "Available @code{transmission-daemon-configuration} fields are:"
  35194. msgstr ""
  35195. #. type: deftypevr
  35196. #: guix-git/doc/guix.texi:23302
  35197. #, no-wrap
  35198. msgid "{@code{transmission-daemon-configuration} parameter} package transmission"
  35199. msgstr ""
  35200. #. type: deftypevr
  35201. #: guix-git/doc/guix.texi:23304
  35202. #, fuzzy
  35203. msgid "The Transmission package to use."
  35204. msgstr "软件包数据类型。"
  35205. #. type: deftypevr
  35206. #: guix-git/doc/guix.texi:23307
  35207. #, no-wrap
  35208. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer stop-wait-period"
  35209. msgstr ""
  35210. #. type: deftypevr
  35211. #: guix-git/doc/guix.texi:23313
  35212. 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."
  35213. msgstr ""
  35214. #. type: deftypevr
  35215. #: guix-git/doc/guix.texi:23315 guix-git/doc/guix.texi:23687
  35216. #: guix-git/doc/guix.texi:30988 guix-git/doc/guix.texi:31223
  35217. #: guix-git/doc/guix.texi:31231 guix-git/doc/guix.texi:31239
  35218. msgid "Defaults to @samp{10}."
  35219. msgstr ""
  35220. #. type: deftypevr
  35221. #: guix-git/doc/guix.texi:23318
  35222. #, no-wrap
  35223. msgid "{@code{transmission-daemon-configuration} parameter} string download-dir"
  35224. msgstr ""
  35225. #. type: deftypevr
  35226. #: guix-git/doc/guix.texi:23320
  35227. msgid "The directory to which torrent files are downloaded."
  35228. msgstr ""
  35229. #. type: deftypevr
  35230. #: guix-git/doc/guix.texi:23322
  35231. msgid "Defaults to @samp{\"/var/lib/transmission-daemon/downloads\"}."
  35232. msgstr ""
  35233. #. type: deftypevr
  35234. #: guix-git/doc/guix.texi:23325
  35235. #, no-wrap
  35236. msgid "{@code{transmission-daemon-configuration} parameter} boolean incomplete-dir-enabled?"
  35237. msgstr ""
  35238. #. type: deftypevr
  35239. #: guix-git/doc/guix.texi:23330
  35240. 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}."
  35241. msgstr ""
  35242. #. type: deftypevr
  35243. #: guix-git/doc/guix.texi:23335
  35244. #, no-wrap
  35245. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string incomplete-dir"
  35246. msgstr ""
  35247. #. type: deftypevr
  35248. #: guix-git/doc/guix.texi:23338
  35249. msgid "The directory in which files from incompletely downloaded torrents will be held when @code{incomplete-dir-enabled?} is @code{#t}."
  35250. msgstr ""
  35251. #. type: deftypevr
  35252. #: guix-git/doc/guix.texi:23343
  35253. #, no-wrap
  35254. msgid "{@code{transmission-daemon-configuration} parameter} umask umask"
  35255. msgstr ""
  35256. #. type: deftypevr
  35257. #: guix-git/doc/guix.texi:23346
  35258. msgid "The file mode creation mask used for downloaded files. (See the @command{umask} man page for more information.)"
  35259. msgstr ""
  35260. #. type: deftypevr
  35261. #: guix-git/doc/guix.texi:23348
  35262. msgid "Defaults to @samp{18}."
  35263. msgstr ""
  35264. #. type: deftypevr
  35265. #: guix-git/doc/guix.texi:23351
  35266. #, no-wrap
  35267. msgid "{@code{transmission-daemon-configuration} parameter} boolean rename-partial-files?"
  35268. msgstr ""
  35269. #. type: deftypevr
  35270. #: guix-git/doc/guix.texi:23354
  35271. msgid "When @code{#t}, ``.part'' is appended to the name of partially downloaded files."
  35272. msgstr ""
  35273. #. type: deftypevr
  35274. #: guix-git/doc/guix.texi:23359
  35275. #, no-wrap
  35276. msgid "{@code{transmission-daemon-configuration} parameter} preallocation-mode preallocation"
  35277. msgstr ""
  35278. #. type: deftypevr
  35279. #: guix-git/doc/guix.texi:23364
  35280. 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."
  35281. msgstr ""
  35282. #. type: deftypevr
  35283. #: guix-git/doc/guix.texi:23366
  35284. msgid "Defaults to @samp{fast}."
  35285. msgstr ""
  35286. #. type: deftypevr
  35287. #: guix-git/doc/guix.texi:23369
  35288. #, no-wrap
  35289. msgid "{@code{transmission-daemon-configuration} parameter} boolean watch-dir-enabled?"
  35290. msgstr ""
  35291. #. type: deftypevr
  35292. #: guix-git/doc/guix.texi:23374
  35293. 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})."
  35294. msgstr ""
  35295. #. type: deftypevr
  35296. #: guix-git/doc/guix.texi:23379
  35297. #, no-wrap
  35298. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string watch-dir"
  35299. msgstr ""
  35300. #. type: deftypevr
  35301. #: guix-git/doc/guix.texi:23382
  35302. msgid "The directory to be watched for @file{.torrent} files indicating new torrents to be added, when @code{watch-dir-enabled} is @code{#t}."
  35303. msgstr ""
  35304. #. type: deftypevr
  35305. #: guix-git/doc/guix.texi:23387
  35306. #, no-wrap
  35307. msgid "{@code{transmission-daemon-configuration} parameter} boolean trash-original-torrent-files?"
  35308. msgstr ""
  35309. #. type: deftypevr
  35310. #: guix-git/doc/guix.texi:23391
  35311. 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?})."
  35312. msgstr ""
  35313. #. type: deftypevr
  35314. #: guix-git/doc/guix.texi:23396
  35315. #, no-wrap
  35316. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-down-enabled?"
  35317. msgstr ""
  35318. #. type: deftypevr
  35319. #: guix-git/doc/guix.texi:23399
  35320. msgid "When @code{#t}, the daemon's download speed will be limited to the rate specified by @code{speed-limit-down}."
  35321. msgstr ""
  35322. #. type: deftypevr
  35323. #: guix-git/doc/guix.texi:23404
  35324. #, no-wrap
  35325. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-down"
  35326. msgstr ""
  35327. #. type: deftypevr
  35328. #: guix-git/doc/guix.texi:23406
  35329. msgid "The default global-maximum download speed, in kilobytes per second."
  35330. msgstr ""
  35331. #. type: deftypevr
  35332. #: guix-git/doc/guix.texi:23411
  35333. #, no-wrap
  35334. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-up-enabled?"
  35335. msgstr ""
  35336. #. type: deftypevr
  35337. #: guix-git/doc/guix.texi:23414
  35338. msgid "When @code{#t}, the daemon's upload speed will be limited to the rate specified by @code{speed-limit-up}."
  35339. msgstr ""
  35340. #. type: deftypevr
  35341. #: guix-git/doc/guix.texi:23419
  35342. #, no-wrap
  35343. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-up"
  35344. msgstr ""
  35345. #. type: deftypevr
  35346. #: guix-git/doc/guix.texi:23421
  35347. msgid "The default global-maximum upload speed, in kilobytes per second."
  35348. msgstr ""
  35349. #. type: deftypevr
  35350. #: guix-git/doc/guix.texi:23426
  35351. #, no-wrap
  35352. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-enabled?"
  35353. msgstr ""
  35354. #. type: deftypevr
  35355. #: guix-git/doc/guix.texi:23432
  35356. 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?}."
  35357. msgstr ""
  35358. #. type: deftypevr
  35359. #: guix-git/doc/guix.texi:23437
  35360. #, no-wrap
  35361. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-down"
  35362. msgstr ""
  35363. #. type: deftypevr
  35364. #: guix-git/doc/guix.texi:23439
  35365. msgid "The alternate global-maximum download speed, in kilobytes per second."
  35366. msgstr ""
  35367. #. type: deftypevr
  35368. #: guix-git/doc/guix.texi:23441 guix-git/doc/guix.texi:23448
  35369. #: guix-git/doc/guix.texi:23620 guix-git/doc/guix.texi:30995
  35370. #: guix-git/doc/guix.texi:31010
  35371. msgid "Defaults to @samp{50}."
  35372. msgstr ""
  35373. #. type: deftypevr
  35374. #: guix-git/doc/guix.texi:23444
  35375. #, no-wrap
  35376. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-up"
  35377. msgstr ""
  35378. #. type: deftypevr
  35379. #: guix-git/doc/guix.texi:23446
  35380. msgid "The alternate global-maximum upload speed, in kilobytes per second."
  35381. msgstr ""
  35382. #. type: deftypevr
  35383. #: guix-git/doc/guix.texi:23451
  35384. #, no-wrap
  35385. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-time-enabled?"
  35386. msgstr ""
  35387. #. type: deftypevr
  35388. #: guix-git/doc/guix.texi:23456
  35389. 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}."
  35390. msgstr ""
  35391. #. type: deftypevr
  35392. #: guix-git/doc/guix.texi:23461
  35393. #, no-wrap
  35394. msgid "{@code{transmission-daemon-configuration} parameter} day-list alt-speed-time-day"
  35395. msgstr ""
  35396. #. type: deftypevr
  35397. #: guix-git/doc/guix.texi:23466
  35398. 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}."
  35399. msgstr ""
  35400. #. type: deftypevr
  35401. #: guix-git/doc/guix.texi:23468
  35402. msgid "Defaults to @samp{all}."
  35403. msgstr ""
  35404. #. type: deftypevr
  35405. #: guix-git/doc/guix.texi:23471
  35406. #, no-wrap
  35407. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-begin"
  35408. msgstr ""
  35409. #. type: deftypevr
  35410. #: guix-git/doc/guix.texi:23474
  35411. msgid "The time of day at which to enable the alternate speed limits, expressed as a number of minutes since midnight."
  35412. msgstr ""
  35413. #. type: deftypevr
  35414. #: guix-git/doc/guix.texi:23476
  35415. msgid "Defaults to @samp{540}."
  35416. msgstr ""
  35417. #. type: deftypevr
  35418. #: guix-git/doc/guix.texi:23479
  35419. #, no-wrap
  35420. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-end"
  35421. msgstr ""
  35422. #. type: deftypevr
  35423. #: guix-git/doc/guix.texi:23482
  35424. msgid "The time of day at which to disable the alternate speed limits, expressed as a number of minutes since midnight."
  35425. msgstr ""
  35426. #. type: deftypevr
  35427. #: guix-git/doc/guix.texi:23484
  35428. msgid "Defaults to @samp{1020}."
  35429. msgstr ""
  35430. #. type: deftypevr
  35431. #: guix-git/doc/guix.texi:23487
  35432. #, no-wrap
  35433. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv4"
  35434. msgstr ""
  35435. #. type: deftypevr
  35436. #: guix-git/doc/guix.texi:23490
  35437. msgid "The IP address at which to listen for peer connections, or ``0.0.0.0'' to listen at all available IP addresses."
  35438. msgstr ""
  35439. #. type: deftypevr
  35440. #: guix-git/doc/guix.texi:23492 guix-git/doc/guix.texi:23795
  35441. #: guix-git/doc/guix.texi:28909
  35442. msgid "Defaults to @samp{\"0.0.0.0\"}."
  35443. msgstr ""
  35444. #. type: deftypevr
  35445. #: guix-git/doc/guix.texi:23495
  35446. #, no-wrap
  35447. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv6"
  35448. msgstr ""
  35449. #. type: deftypevr
  35450. #: guix-git/doc/guix.texi:23498
  35451. msgid "The IPv6 address at which to listen for peer connections, or ``::'' to listen at all available IPv6 addresses."
  35452. msgstr ""
  35453. #. type: deftypevr
  35454. #: guix-git/doc/guix.texi:23500
  35455. msgid "Defaults to @samp{\"::\"}."
  35456. msgstr ""
  35457. #. type: deftypevr
  35458. #: guix-git/doc/guix.texi:23503
  35459. #, no-wrap
  35460. msgid "{@code{transmission-daemon-configuration} parameter} boolean peer-port-random-on-start?"
  35461. msgstr ""
  35462. #. type: deftypevr
  35463. #: guix-git/doc/guix.texi:23509
  35464. 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}."
  35465. msgstr ""
  35466. #. type: deftypevr
  35467. #: guix-git/doc/guix.texi:23514
  35468. #, no-wrap
  35469. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-low"
  35470. msgstr ""
  35471. #. type: deftypevr
  35472. #: guix-git/doc/guix.texi:23517
  35473. msgid "The lowest selectable port number when @code{peer-port-random-on-start?} is @code{#t}."
  35474. msgstr ""
  35475. #. type: deftypevr
  35476. #: guix-git/doc/guix.texi:23519
  35477. msgid "Defaults to @samp{49152}."
  35478. msgstr ""
  35479. #. type: deftypevr
  35480. #: guix-git/doc/guix.texi:23522
  35481. #, no-wrap
  35482. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-high"
  35483. msgstr ""
  35484. #. type: deftypevr
  35485. #: guix-git/doc/guix.texi:23525
  35486. msgid "The highest selectable port number when @code{peer-port-random-on-start} is @code{#t}."
  35487. msgstr ""
  35488. #. type: deftypevr
  35489. #: guix-git/doc/guix.texi:23527
  35490. msgid "Defaults to @samp{65535}."
  35491. msgstr ""
  35492. #. type: deftypevr
  35493. #: guix-git/doc/guix.texi:23530
  35494. #, no-wrap
  35495. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port"
  35496. msgstr ""
  35497. #. type: deftypevr
  35498. #: guix-git/doc/guix.texi:23533
  35499. msgid "The port on which to listen for peer connections when @code{peer-port-random-on-start?} is @code{#f}."
  35500. msgstr ""
  35501. #. type: deftypevr
  35502. #: guix-git/doc/guix.texi:23535
  35503. msgid "Defaults to @samp{51413}."
  35504. msgstr ""
  35505. #. type: deftypevr
  35506. #: guix-git/doc/guix.texi:23538
  35507. #, no-wrap
  35508. msgid "{@code{transmission-daemon-configuration} parameter} boolean port-forwarding-enabled?"
  35509. msgstr ""
  35510. #. type: deftypevr
  35511. #: guix-git/doc/guix.texi:23542
  35512. msgid "If @code{#t}, the daemon will attempt to configure port-forwarding on an upstream gateway automatically using @acronym{UPnP} and @acronym{NAT-PMP}."
  35513. msgstr ""
  35514. #. type: deftypevr
  35515. #: guix-git/doc/guix.texi:23547
  35516. #, no-wrap
  35517. msgid "{@code{transmission-daemon-configuration} parameter} encryption-mode encryption"
  35518. msgstr ""
  35519. #. type: deftypevr
  35520. #: guix-git/doc/guix.texi:23552
  35521. msgid "The encryption preference for peer connections, one of @code{prefer-unencrypted-connections}, @code{prefer-encrypted-connections} or @code{require-encrypted-connections}."
  35522. msgstr ""
  35523. #. type: deftypevr
  35524. #: guix-git/doc/guix.texi:23554
  35525. msgid "Defaults to @samp{prefer-encrypted-connections}."
  35526. msgstr ""
  35527. #. type: deftypevr
  35528. #: guix-git/doc/guix.texi:23557
  35529. #, no-wrap
  35530. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string peer-congestion-algorithm"
  35531. msgstr ""
  35532. #. type: deftypevr
  35533. #: guix-git/doc/guix.texi:23562
  35534. 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)."
  35535. msgstr ""
  35536. #. type: deftypevr
  35537. #: guix-git/doc/guix.texi:23571
  35538. 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."
  35539. msgstr ""
  35540. #. type: deftypevr
  35541. #: guix-git/doc/guix.texi:23579
  35542. 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:"
  35543. msgstr ""
  35544. #. type: lisp
  35545. #: guix-git/doc/guix.texi:23586
  35546. #, no-wrap
  35547. msgid ""
  35548. "(service sysctl-service-type\n"
  35549. " (sysctl-configuration\n"
  35550. " (settings\n"
  35551. " (\"net.ipv4.tcp_allowed_congestion_control\" .\n"
  35552. " \"reno cubic lp\"))))\n"
  35553. msgstr ""
  35554. #. type: deftypevr
  35555. #: guix-git/doc/guix.texi:23589
  35556. msgid "The Transmission Daemon configuration can then be updated with"
  35557. msgstr ""
  35558. #. type: lisp
  35559. #: guix-git/doc/guix.texi:23592
  35560. #, no-wrap
  35561. msgid "(peer-congestion-algorithm \"lp\")\n"
  35562. msgstr ""
  35563. #. type: deftypevr
  35564. #: guix-git/doc/guix.texi:23595
  35565. msgid "and the system reconfigured to have the changes take effect."
  35566. msgstr ""
  35567. #. type: deftypevr
  35568. #: guix-git/doc/guix.texi:23600
  35569. #, no-wrap
  35570. msgid "{@code{transmission-daemon-configuration} parameter} tcp-type-of-service peer-socket-tos"
  35571. msgstr ""
  35572. #. type: deftypevr
  35573. #: guix-git/doc/guix.texi:23604
  35574. 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}."
  35575. msgstr ""
  35576. #. type: deftypevr
  35577. #: guix-git/doc/guix.texi:23606
  35578. msgid "Defaults to @samp{default}."
  35579. msgstr ""
  35580. #. type: deftypevr
  35581. #: guix-git/doc/guix.texi:23609
  35582. #, no-wrap
  35583. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-global"
  35584. msgstr ""
  35585. #. type: deftypevr
  35586. #: guix-git/doc/guix.texi:23611
  35587. msgid "The global limit on the number of connected peers."
  35588. msgstr ""
  35589. #. type: deftypevr
  35590. #: guix-git/doc/guix.texi:23613
  35591. msgid "Defaults to @samp{200}."
  35592. msgstr ""
  35593. #. type: deftypevr
  35594. #: guix-git/doc/guix.texi:23616
  35595. #, no-wrap
  35596. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-per-torrent"
  35597. msgstr ""
  35598. #. type: deftypevr
  35599. #: guix-git/doc/guix.texi:23618
  35600. msgid "The per-torrent limit on the number of connected peers."
  35601. msgstr ""
  35602. #. type: deftypevr
  35603. #: guix-git/doc/guix.texi:23623
  35604. #, no-wrap
  35605. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer upload-slots-per-torrent"
  35606. msgstr ""
  35607. #. type: deftypevr
  35608. #: guix-git/doc/guix.texi:23626
  35609. msgid "The maximum number of peers to which the daemon will upload data simultaneously for each torrent."
  35610. msgstr ""
  35611. #. type: deftypevr
  35612. #: guix-git/doc/guix.texi:23628
  35613. msgid "Defaults to @samp{14}."
  35614. msgstr ""
  35615. #. type: deftypevr
  35616. #: guix-git/doc/guix.texi:23631
  35617. #, no-wrap
  35618. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-id-ttl-hours"
  35619. msgstr ""
  35620. #. type: deftypevr
  35621. #: guix-git/doc/guix.texi:23634
  35622. msgid "The maximum lifespan, in hours, of the peer ID associated with each public torrent before it is regenerated."
  35623. msgstr ""
  35624. #. type: deftypevr
  35625. #: guix-git/doc/guix.texi:23636
  35626. msgid "Defaults to @samp{6}."
  35627. msgstr ""
  35628. #. type: deftypevr
  35629. #: guix-git/doc/guix.texi:23639
  35630. #, no-wrap
  35631. msgid "{@code{transmission-daemon-configuration} parameter} boolean blocklist-enabled?"
  35632. msgstr ""
  35633. #. type: deftypevr
  35634. #: guix-git/doc/guix.texi:23642
  35635. msgid "When @code{#t}, the daemon will ignore peers mentioned in the blocklist it has most recently downloaded from @code{blocklist-url}."
  35636. msgstr ""
  35637. #. type: deftypevr
  35638. #: guix-git/doc/guix.texi:23647
  35639. #, no-wrap
  35640. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string blocklist-url"
  35641. msgstr ""
  35642. #. type: deftypevr
  35643. #: guix-git/doc/guix.texi:23651
  35644. 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}."
  35645. msgstr ""
  35646. #. type: deftypevr
  35647. #: guix-git/doc/guix.texi:23656
  35648. #, no-wrap
  35649. msgid "{@code{transmission-daemon-configuration} parameter} boolean download-queue-enabled?"
  35650. msgstr ""
  35651. #. type: deftypevr
  35652. #: guix-git/doc/guix.texi:23659
  35653. msgid "If @code{#t}, the daemon will be limited to downloading at most @code{download-queue-size} non-stalled torrents simultaneously."
  35654. msgstr ""
  35655. #. type: deftypevr
  35656. #: guix-git/doc/guix.texi:23664
  35657. #, no-wrap
  35658. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer download-queue-size"
  35659. msgstr ""
  35660. #. type: deftypevr
  35661. #: guix-git/doc/guix.texi:23668
  35662. 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}."
  35663. msgstr ""
  35664. #. type: deftypevr
  35665. #: guix-git/doc/guix.texi:23673
  35666. #, no-wrap
  35667. msgid "{@code{transmission-daemon-configuration} parameter} boolean seed-queue-enabled?"
  35668. msgstr ""
  35669. #. type: deftypevr
  35670. #: guix-git/doc/guix.texi:23676
  35671. msgid "If @code{#t}, the daemon will be limited to seeding at most @code{seed-queue-size} non-stalled torrents simultaneously."
  35672. msgstr ""
  35673. #. type: deftypevr
  35674. #: guix-git/doc/guix.texi:23681
  35675. #, no-wrap
  35676. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer seed-queue-size"
  35677. msgstr ""
  35678. #. type: deftypevr
  35679. #: guix-git/doc/guix.texi:23685
  35680. 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}."
  35681. msgstr ""
  35682. #. type: deftypevr
  35683. #: guix-git/doc/guix.texi:23690
  35684. #, no-wrap
  35685. msgid "{@code{transmission-daemon-configuration} parameter} boolean queue-stalled-enabled?"
  35686. msgstr ""
  35687. #. type: deftypevr
  35688. #: guix-git/doc/guix.texi:23695
  35689. 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."
  35690. msgstr ""
  35691. #. type: deftypevr
  35692. #: guix-git/doc/guix.texi:23700
  35693. #, no-wrap
  35694. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer queue-stalled-minutes"
  35695. msgstr ""
  35696. #. type: deftypevr
  35697. #: guix-git/doc/guix.texi:23704
  35698. 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}."
  35699. msgstr ""
  35700. #. type: deftypevr
  35701. #: guix-git/doc/guix.texi:23709
  35702. #, no-wrap
  35703. msgid "{@code{transmission-daemon-configuration} parameter} boolean ratio-limit-enabled?"
  35704. msgstr ""
  35705. #. type: deftypevr
  35706. #: guix-git/doc/guix.texi:23712
  35707. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it reaches the ratio specified by @code{ratio-limit}."
  35708. msgstr ""
  35709. #. type: deftypevr
  35710. #: guix-git/doc/guix.texi:23717
  35711. #, no-wrap
  35712. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-rational ratio-limit"
  35713. msgstr ""
  35714. #. type: deftypevr
  35715. #: guix-git/doc/guix.texi:23720
  35716. msgid "The ratio at which a torrent being seeded will be paused, when @code{ratio-limit-enabled?} is @code{#t}."
  35717. msgstr ""
  35718. #. type: deftypevr
  35719. #: guix-git/doc/guix.texi:23722
  35720. msgid "Defaults to @samp{2.0}."
  35721. msgstr ""
  35722. #. type: deftypevr
  35723. #: guix-git/doc/guix.texi:23725
  35724. #, no-wrap
  35725. msgid "{@code{transmission-daemon-configuration} parameter} boolean idle-seeding-limit-enabled?"
  35726. msgstr ""
  35727. #. type: deftypevr
  35728. #: guix-git/doc/guix.texi:23728
  35729. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it has been idle for @code{idle-seeding-limit} minutes."
  35730. msgstr ""
  35731. #. type: deftypevr
  35732. #: guix-git/doc/guix.texi:23733
  35733. #, no-wrap
  35734. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer idle-seeding-limit"
  35735. msgstr ""
  35736. #. type: deftypevr
  35737. #: guix-git/doc/guix.texi:23737
  35738. 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}."
  35739. msgstr ""
  35740. #. type: deftypevr
  35741. #: guix-git/doc/guix.texi:23742
  35742. #, no-wrap
  35743. msgid "{@code{transmission-daemon-configuration} parameter} boolean dht-enabled?"
  35744. msgstr ""
  35745. #. type: deftypevr
  35746. #: guix-git/doc/guix.texi:23746
  35747. msgid "Enable @uref{http://bittorrent.org/beps/bep_0005.html,the distributed hash table (@acronym{DHT}) protocol}, which supports the use of trackerless torrents."
  35748. msgstr ""
  35749. #. type: deftypevr
  35750. #: guix-git/doc/guix.texi:23751
  35751. #, no-wrap
  35752. msgid "{@code{transmission-daemon-configuration} parameter} boolean lpd-enabled?"
  35753. msgstr ""
  35754. #. type: deftypevr
  35755. #: guix-git/doc/guix.texi:23756
  35756. 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."
  35757. msgstr ""
  35758. #. type: deftypevr
  35759. #: guix-git/doc/guix.texi:23761
  35760. #, no-wrap
  35761. msgid "{@code{transmission-daemon-configuration} parameter} boolean pex-enabled?"
  35762. msgstr ""
  35763. #. type: deftypevr
  35764. #: guix-git/doc/guix.texi:23765
  35765. 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."
  35766. msgstr ""
  35767. #. type: deftypevr
  35768. #: guix-git/doc/guix.texi:23770
  35769. #, no-wrap
  35770. msgid "{@code{transmission-daemon-configuration} parameter} boolean utp-enabled?"
  35771. msgstr ""
  35772. #. type: deftypevr
  35773. #: guix-git/doc/guix.texi:23775
  35774. 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."
  35775. msgstr ""
  35776. #. type: deftypevr
  35777. #: guix-git/doc/guix.texi:23780
  35778. #, no-wrap
  35779. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-enabled?"
  35780. msgstr ""
  35781. #. type: deftypevr
  35782. #: guix-git/doc/guix.texi:23785
  35783. 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."
  35784. msgstr ""
  35785. #. type: deftypevr
  35786. #: guix-git/doc/guix.texi:23790
  35787. #, no-wrap
  35788. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-bind-address"
  35789. msgstr ""
  35790. #. type: deftypevr
  35791. #: guix-git/doc/guix.texi:23793
  35792. msgid "The IP address at which to listen for @acronym{RPC} connections, or ``0.0.0.0'' to listen at all available IP addresses."
  35793. msgstr ""
  35794. #. type: deftypevr
  35795. #: guix-git/doc/guix.texi:23798
  35796. #, no-wrap
  35797. msgid "{@code{transmission-daemon-configuration} parameter} port-number rpc-port"
  35798. msgstr ""
  35799. #. type: deftypevr
  35800. #: guix-git/doc/guix.texi:23800
  35801. msgid "The port on which to listen for @acronym{RPC} connections."
  35802. msgstr ""
  35803. #. type: deftypevr
  35804. #: guix-git/doc/guix.texi:23802
  35805. msgid "Defaults to @samp{9091}."
  35806. msgstr ""
  35807. #. type: deftypevr
  35808. #: guix-git/doc/guix.texi:23805
  35809. #, no-wrap
  35810. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-url"
  35811. msgstr ""
  35812. #. type: deftypevr
  35813. #: guix-git/doc/guix.texi:23807
  35814. msgid "The path prefix to use in the @acronym{RPC}-endpoint @acronym{URL}."
  35815. msgstr ""
  35816. #. type: deftypevr
  35817. #: guix-git/doc/guix.texi:23809
  35818. msgid "Defaults to @samp{\"/transmission/\"}."
  35819. msgstr ""
  35820. #. type: deftypevr
  35821. #: guix-git/doc/guix.texi:23812
  35822. #, no-wrap
  35823. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-authentication-required?"
  35824. msgstr ""
  35825. #. type: deftypevr
  35826. #: guix-git/doc/guix.texi:23817
  35827. 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?}."
  35828. msgstr ""
  35829. #. type: deftypevr
  35830. #: guix-git/doc/guix.texi:23822
  35831. #, no-wrap
  35832. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string rpc-username"
  35833. msgstr ""
  35834. #. type: deftypevr
  35835. #: guix-git/doc/guix.texi:23825
  35836. msgid "The username required by clients to access the @acronym{RPC} interface when @code{rpc-authentication-required?} is @code{#t}."
  35837. msgstr ""
  35838. #. type: deftypevr
  35839. #: guix-git/doc/guix.texi:23830
  35840. #, no-wrap
  35841. msgid "{@code{transmission-daemon-configuration} parameter} maybe-transmission-password-hash rpc-password"
  35842. msgstr ""
  35843. #. type: deftypevr
  35844. #: guix-git/doc/guix.texi:23836
  35845. 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."
  35846. msgstr ""
  35847. #. type: deftypevr
  35848. #: guix-git/doc/guix.texi:23841
  35849. #, no-wrap
  35850. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-whitelist-enabled?"
  35851. msgstr ""
  35852. #. type: deftypevr
  35853. #: guix-git/doc/guix.texi:23844
  35854. msgid "When @code{#t}, @acronym{RPC} requests will be accepted only when they originate from an address specified in @code{rpc-whitelist}."
  35855. msgstr ""
  35856. #. type: deftypevr
  35857. #: guix-git/doc/guix.texi:23849
  35858. #, no-wrap
  35859. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-whitelist"
  35860. msgstr ""
  35861. #. type: deftypevr
  35862. #: guix-git/doc/guix.texi:23853
  35863. 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{*}."
  35864. msgstr ""
  35865. #. type: deftypevr
  35866. #: guix-git/doc/guix.texi:23855
  35867. msgid "Defaults to @samp{(\"127.0.0.1\" \"::1\")}."
  35868. msgstr ""
  35869. #. type: deftypevr
  35870. #: guix-git/doc/guix.texi:23858
  35871. #, no-wrap
  35872. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-host-whitelist-enabled?"
  35873. msgstr ""
  35874. #. type: deftypevr
  35875. #: guix-git/doc/guix.texi:23863
  35876. 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."
  35877. msgstr ""
  35878. #. type: deftypevr
  35879. #: guix-git/doc/guix.texi:23866
  35880. msgid "Note also this functionality is disabled when @code{rpc-authentication-required?} is @code{#t}."
  35881. msgstr ""
  35882. #. type: deftypevr
  35883. #: guix-git/doc/guix.texi:23871
  35884. #, no-wrap
  35885. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-host-whitelist"
  35886. msgstr ""
  35887. #. type: deftypevr
  35888. #: guix-git/doc/guix.texi:23874
  35889. msgid "The list of host names recognized by the @acronym{RPC} server when @code{rpc-host-whitelist-enabled?} is @code{#t}."
  35890. msgstr ""
  35891. #. type: deftypevr
  35892. #: guix-git/doc/guix.texi:23879
  35893. #, no-wrap
  35894. msgid "{@code{transmission-daemon-configuration} parameter} message-level message-level"
  35895. msgstr ""
  35896. #. type: deftypevr
  35897. #: guix-git/doc/guix.texi:23883
  35898. 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}."
  35899. msgstr ""
  35900. #. type: deftypevr
  35901. #: guix-git/doc/guix.texi:23888
  35902. #, no-wrap
  35903. msgid "{@code{transmission-daemon-configuration} parameter} boolean start-added-torrents?"
  35904. msgstr ""
  35905. #. type: deftypevr
  35906. #: guix-git/doc/guix.texi:23891
  35907. msgid "When @code{#t}, torrents are started as soon as they are added; otherwise, they are added in ``paused'' state."
  35908. msgstr ""
  35909. #. type: deftypevr
  35910. #: guix-git/doc/guix.texi:23896
  35911. #, no-wrap
  35912. msgid "{@code{transmission-daemon-configuration} parameter} boolean script-torrent-done-enabled?"
  35913. msgstr ""
  35914. #. type: deftypevr
  35915. #: guix-git/doc/guix.texi:23900
  35916. msgid "When @code{#t}, the script specified by @code{script-torrent-done-filename} will be invoked each time a torrent completes."
  35917. msgstr ""
  35918. #. type: deftypevr
  35919. #: guix-git/doc/guix.texi:23905
  35920. #, no-wrap
  35921. msgid "{@code{transmission-daemon-configuration} parameter} maybe-file-object script-torrent-done-filename"
  35922. msgstr ""
  35923. #. type: deftypevr
  35924. #: guix-git/doc/guix.texi:23909
  35925. 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}."
  35926. msgstr ""
  35927. #. type: deftypevr
  35928. #: guix-git/doc/guix.texi:23914
  35929. #, no-wrap
  35930. msgid "{@code{transmission-daemon-configuration} parameter} boolean scrape-paused-torrents-enabled?"
  35931. msgstr ""
  35932. #. type: deftypevr
  35933. #: guix-git/doc/guix.texi:23917
  35934. msgid "When @code{#t}, the daemon will scrape trackers for a torrent even when the torrent is paused."
  35935. msgstr ""
  35936. #. type: deftypevr
  35937. #: guix-git/doc/guix.texi:23922
  35938. #, no-wrap
  35939. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer cache-size-mb"
  35940. msgstr ""
  35941. #. type: deftypevr
  35942. #: guix-git/doc/guix.texi:23926
  35943. 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."
  35944. msgstr ""
  35945. #. type: deftypevr
  35946. #: guix-git/doc/guix.texi:23928
  35947. msgid "Defaults to @samp{4}."
  35948. msgstr ""
  35949. #. type: deftypevr
  35950. #: guix-git/doc/guix.texi:23931
  35951. #, no-wrap
  35952. msgid "{@code{transmission-daemon-configuration} parameter} boolean prefetch-enabled?"
  35953. msgstr ""
  35954. #. type: deftypevr
  35955. #: guix-git/doc/guix.texi:23935
  35956. 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."
  35957. msgstr ""
  35958. #. type: subsubheading
  35959. #: guix-git/doc/guix.texi:23948
  35960. #, no-wrap
  35961. msgid "Tailon Service"
  35962. msgstr ""
  35963. #. type: Plain text
  35964. #: guix-git/doc/guix.texi:23952
  35965. msgid "@uref{https://tailon.readthedocs.io/, Tailon} is a web application for viewing and searching log files."
  35966. msgstr ""
  35967. #. type: Plain text
  35968. #: guix-git/doc/guix.texi:23955
  35969. msgid "The following example will configure the service with default values. By default, Tailon can be accessed on port 8080 (@code{http://localhost:8080})."
  35970. msgstr ""
  35971. #. type: lisp
  35972. #: guix-git/doc/guix.texi:23958
  35973. #, no-wrap
  35974. msgid "(service tailon-service-type)\n"
  35975. msgstr ""
  35976. #. type: Plain text
  35977. #: guix-git/doc/guix.texi:23962
  35978. msgid "The following example customises more of the Tailon configuration, adding @command{sed} to the list of allowed commands."
  35979. msgstr ""
  35980. #. type: lisp
  35981. #: guix-git/doc/guix.texi:23969
  35982. #, no-wrap
  35983. msgid ""
  35984. "(service tailon-service-type\n"
  35985. " (tailon-configuration\n"
  35986. " (config-file\n"
  35987. " (tailon-configuration-file\n"
  35988. " (allowed-commands '(\"tail\" \"grep\" \"awk\" \"sed\"))))))\n"
  35989. msgstr ""
  35990. #. type: deftp
  35991. #: guix-git/doc/guix.texi:23972
  35992. #, no-wrap
  35993. msgid "{Data Type} tailon-configuration"
  35994. msgstr ""
  35995. #. type: deftp
  35996. #: guix-git/doc/guix.texi:23975
  35997. msgid "Data type representing the configuration of Tailon. This type has the following parameters:"
  35998. msgstr ""
  35999. #. type: item
  36000. #: guix-git/doc/guix.texi:23977
  36001. #, no-wrap
  36002. msgid "@code{config-file} (default: @code{(tailon-configuration-file)})"
  36003. msgstr ""
  36004. #. type: table
  36005. #: guix-git/doc/guix.texi:23981
  36006. 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})."
  36007. msgstr ""
  36008. #. type: table
  36009. #: guix-git/doc/guix.texi:23984
  36010. msgid "For example, to instead use a local file, the @code{local-file} function can be used:"
  36011. msgstr ""
  36012. #. type: lisp
  36013. #: guix-git/doc/guix.texi:23989
  36014. #, no-wrap
  36015. msgid ""
  36016. "(service tailon-service-type\n"
  36017. " (tailon-configuration\n"
  36018. " (config-file (local-file \"./my-tailon.conf\"))))\n"
  36019. msgstr ""
  36020. #. type: item
  36021. #: guix-git/doc/guix.texi:23991
  36022. #, no-wrap
  36023. msgid "@code{package} (default: @code{tailon})"
  36024. msgstr ""
  36025. #. type: table
  36026. #: guix-git/doc/guix.texi:23993
  36027. msgid "The tailon package to use."
  36028. msgstr ""
  36029. #. type: deftp
  36030. #: guix-git/doc/guix.texi:23997
  36031. #, no-wrap
  36032. msgid "{Data Type} tailon-configuration-file"
  36033. msgstr ""
  36034. #. type: deftp
  36035. #: guix-git/doc/guix.texi:24000
  36036. msgid "Data type representing the configuration options for Tailon. This type has the following parameters:"
  36037. msgstr ""
  36038. #. type: item
  36039. #: guix-git/doc/guix.texi:24002
  36040. #, no-wrap
  36041. msgid "@code{files} (default: @code{(list \"/var/log\")})"
  36042. msgstr ""
  36043. #. type: table
  36044. #: guix-git/doc/guix.texi:24007
  36045. 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."
  36046. msgstr ""
  36047. #. type: item
  36048. #: guix-git/doc/guix.texi:24008
  36049. #, no-wrap
  36050. msgid "@code{bind} (default: @code{\"localhost:8080\"})"
  36051. msgstr ""
  36052. #. type: table
  36053. #: guix-git/doc/guix.texi:24010
  36054. msgid "Address and port to which Tailon should bind on."
  36055. msgstr ""
  36056. #. type: item
  36057. #: guix-git/doc/guix.texi:24011
  36058. #, no-wrap
  36059. msgid "@code{relative-root} (default: @code{#f})"
  36060. msgstr ""
  36061. #. type: table
  36062. #: guix-git/doc/guix.texi:24013
  36063. msgid "URL path to use for Tailon, set to @code{#f} to not use a path."
  36064. msgstr ""
  36065. #. type: item
  36066. #: guix-git/doc/guix.texi:24014
  36067. #, no-wrap
  36068. msgid "@code{allow-transfers?} (default: @code{#t})"
  36069. msgstr ""
  36070. #. type: table
  36071. #: guix-git/doc/guix.texi:24016
  36072. msgid "Allow downloading the log files in the web interface."
  36073. msgstr ""
  36074. #. type: item
  36075. #: guix-git/doc/guix.texi:24017
  36076. #, no-wrap
  36077. msgid "@code{follow-names?} (default: @code{#t})"
  36078. msgstr ""
  36079. #. type: table
  36080. #: guix-git/doc/guix.texi:24019
  36081. msgid "Allow tailing of not-yet existent files."
  36082. msgstr ""
  36083. #. type: item
  36084. #: guix-git/doc/guix.texi:24020
  36085. #, no-wrap
  36086. msgid "@code{tail-lines} (default: @code{200})"
  36087. msgstr ""
  36088. #. type: table
  36089. #: guix-git/doc/guix.texi:24022
  36090. msgid "Number of lines to read initially from each file."
  36091. msgstr ""
  36092. #. type: item
  36093. #: guix-git/doc/guix.texi:24023
  36094. #, no-wrap
  36095. msgid "@code{allowed-commands} (default: @code{(list \"tail\" \"grep\" \"awk\")})"
  36096. msgstr ""
  36097. #. type: table
  36098. #: guix-git/doc/guix.texi:24025
  36099. msgid "Commands to allow running. By default, @code{sed} is disabled."
  36100. msgstr ""
  36101. #. type: table
  36102. #: guix-git/doc/guix.texi:24028
  36103. msgid "Set @code{debug?} to @code{#t} to show debug messages."
  36104. msgstr ""
  36105. #. type: item
  36106. #: guix-git/doc/guix.texi:24029
  36107. #, no-wrap
  36108. msgid "@code{wrap-lines} (default: @code{#t})"
  36109. msgstr ""
  36110. #. type: table
  36111. #: guix-git/doc/guix.texi:24033
  36112. 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."
  36113. msgstr ""
  36114. #. type: item
  36115. #: guix-git/doc/guix.texi:24034
  36116. #, no-wrap
  36117. msgid "@code{http-auth} (default: @code{#f})"
  36118. msgstr ""
  36119. #. type: table
  36120. #: guix-git/doc/guix.texi:24038
  36121. msgid "HTTP authentication type to use. Set to @code{#f} to disable authentication (the default). Supported values are @code{\"digest\"} or @code{\"basic\"}."
  36122. msgstr ""
  36123. #. type: item
  36124. #: guix-git/doc/guix.texi:24039
  36125. #, no-wrap
  36126. msgid "@code{users} (default: @code{#f})"
  36127. msgstr ""
  36128. #. type: table
  36129. #: guix-git/doc/guix.texi:24044
  36130. 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."
  36131. msgstr ""
  36132. #. type: lisp
  36133. #: guix-git/doc/guix.texi:24050
  36134. #, no-wrap
  36135. msgid ""
  36136. "(tailon-configuration-file\n"
  36137. " (http-auth \"basic\")\n"
  36138. " (users '((\"user1\" . \"password1\")\n"
  36139. " (\"user2\" . \"password2\"))))\n"
  36140. msgstr ""
  36141. #. type: subsubheading
  36142. #: guix-git/doc/guix.texi:24056
  36143. #, no-wrap
  36144. msgid "Darkstat Service"
  36145. msgstr ""
  36146. #. type: cindex
  36147. #: guix-git/doc/guix.texi:24057
  36148. #, no-wrap
  36149. msgid "darkstat"
  36150. msgstr ""
  36151. #. type: Plain text
  36152. #: guix-git/doc/guix.texi:24060
  36153. msgid "Darkstat is a packet sniffer that captures network traffic, calculates statistics about usage, and serves reports over HTTP."
  36154. msgstr ""
  36155. #. type: defvar
  36156. #: guix-git/doc/guix.texi:24061
  36157. #, no-wrap
  36158. msgid "{Scheme Variable} darkstat-service-type"
  36159. msgstr ""
  36160. #. type: defvar
  36161. #: guix-git/doc/guix.texi:24066
  36162. 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:"
  36163. msgstr ""
  36164. #. type: lisp
  36165. #: guix-git/doc/guix.texi:24071
  36166. #, no-wrap
  36167. msgid ""
  36168. "(service darkstat-service-type\n"
  36169. " (darkstat-configuration\n"
  36170. " (interface \"eno1\")))\n"
  36171. msgstr ""
  36172. #. type: deftp
  36173. #: guix-git/doc/guix.texi:24074
  36174. #, no-wrap
  36175. msgid "{Data Type} darkstat-configuration"
  36176. msgstr ""
  36177. #. type: deftp
  36178. #: guix-git/doc/guix.texi:24076
  36179. msgid "Data type representing the configuration of @command{darkstat}."
  36180. msgstr ""
  36181. #. type: item
  36182. #: guix-git/doc/guix.texi:24078
  36183. #, no-wrap
  36184. msgid "@code{package} (default: @code{darkstat})"
  36185. msgstr ""
  36186. #. type: table
  36187. #: guix-git/doc/guix.texi:24080
  36188. msgid "The darkstat package to use."
  36189. msgstr ""
  36190. #. type: code{#1}
  36191. #: guix-git/doc/guix.texi:24081
  36192. #, no-wrap
  36193. msgid "interface"
  36194. msgstr ""
  36195. #. type: table
  36196. #: guix-git/doc/guix.texi:24083
  36197. msgid "Capture traffic on the specified network interface."
  36198. msgstr ""
  36199. #. type: item
  36200. #: guix-git/doc/guix.texi:24084
  36201. #, no-wrap
  36202. msgid "@code{port} (default: @code{\"667\"})"
  36203. msgstr ""
  36204. #. type: table
  36205. #: guix-git/doc/guix.texi:24086
  36206. msgid "Bind the web interface to the specified port."
  36207. msgstr ""
  36208. #. type: table
  36209. #: guix-git/doc/guix.texi:24089 guix-git/doc/guix.texi:24124
  36210. msgid "Bind the web interface to the specified address."
  36211. msgstr ""
  36212. #. type: item
  36213. #: guix-git/doc/guix.texi:24090
  36214. #, no-wrap
  36215. msgid "@code{base} (default: @code{\"/\"})"
  36216. msgstr ""
  36217. #. type: table
  36218. #: guix-git/doc/guix.texi:24093
  36219. msgid "Specify the path of the base URL@. This can be useful if @command{darkstat} is accessed via a reverse proxy."
  36220. msgstr ""
  36221. #. type: subsubheading
  36222. #: guix-git/doc/guix.texi:24097
  36223. #, no-wrap
  36224. msgid "Prometheus Node Exporter Service"
  36225. msgstr ""
  36226. #. type: cindex
  36227. #: guix-git/doc/guix.texi:24099
  36228. #, no-wrap
  36229. msgid "prometheus-node-exporter"
  36230. msgstr ""
  36231. #. type: Plain text
  36232. #: guix-git/doc/guix.texi:24104
  36233. 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."
  36234. msgstr ""
  36235. #. type: defvar
  36236. #: guix-git/doc/guix.texi:24105
  36237. #, no-wrap
  36238. msgid "{Scheme variable} prometheus-node-exporter-service-type"
  36239. msgstr ""
  36240. #. type: defvar
  36241. #: guix-git/doc/guix.texi:24109
  36242. 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}."
  36243. msgstr ""
  36244. #. type: lisp
  36245. #: guix-git/doc/guix.texi:24112
  36246. #, no-wrap
  36247. msgid "(service prometheus-node-exporter-service-type)\n"
  36248. msgstr ""
  36249. #. type: deftp
  36250. #: guix-git/doc/guix.texi:24115
  36251. #, no-wrap
  36252. msgid "{Data Type} prometheus-node-exporter-configuration"
  36253. msgstr ""
  36254. #. type: deftp
  36255. #: guix-git/doc/guix.texi:24117
  36256. msgid "Data type representing the configuration of @command{node_exporter}."
  36257. msgstr ""
  36258. #. type: item
  36259. #: guix-git/doc/guix.texi:24119
  36260. #, no-wrap
  36261. msgid "@code{package} (default: @code{go-github-com-prometheus-node-exporter})"
  36262. msgstr ""
  36263. #. type: table
  36264. #: guix-git/doc/guix.texi:24121
  36265. msgid "The prometheus-node-exporter package to use."
  36266. msgstr ""
  36267. #. type: item
  36268. #: guix-git/doc/guix.texi:24122
  36269. #, no-wrap
  36270. msgid "@code{web-listen-address} (default: @code{\":9100\"})"
  36271. msgstr ""
  36272. #. type: item
  36273. #: guix-git/doc/guix.texi:24125
  36274. #, fuzzy, no-wrap
  36275. msgid "@code{textfile-directory} (default: @code{\"/var/lib/prometheus/node-exporter\"})"
  36276. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  36277. #. type: table
  36278. #: guix-git/doc/guix.texi:24129
  36279. 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."
  36280. msgstr ""
  36281. #. type: table
  36282. #: guix-git/doc/guix.texi:24132
  36283. msgid "Extra options to pass to the Prometheus node exporter."
  36284. msgstr ""
  36285. #. type: subsubheading
  36286. #: guix-git/doc/guix.texi:24136
  36287. #, no-wrap
  36288. msgid "Zabbix server"
  36289. msgstr ""
  36290. #. type: cindex
  36291. #: guix-git/doc/guix.texi:24137
  36292. #, no-wrap
  36293. msgid "zabbix zabbix-server"
  36294. msgstr ""
  36295. #. type: Plain text
  36296. #: guix-git/doc/guix.texi:24140
  36297. msgid "Zabbix provides monitoring metrics, among others network utilization, CPU load and disk space consumption:"
  36298. msgstr ""
  36299. #. type: item
  36300. #: guix-git/doc/guix.texi:24142
  36301. #, no-wrap
  36302. msgid "High performance, high capacity (able to monitor hundreds of thousands of devices)."
  36303. msgstr ""
  36304. #. type: item
  36305. #: guix-git/doc/guix.texi:24143
  36306. #, no-wrap
  36307. msgid "Auto-discovery of servers and network devices and interfaces."
  36308. msgstr ""
  36309. #. type: item
  36310. #: guix-git/doc/guix.texi:24144
  36311. #, no-wrap
  36312. msgid "Low-level discovery, allows to automatically start monitoring new items, file systems or network interfaces among others."
  36313. msgstr ""
  36314. #. type: item
  36315. #: guix-git/doc/guix.texi:24145
  36316. #, no-wrap
  36317. msgid "Distributed monitoring with centralized web administration."
  36318. msgstr ""
  36319. #. type: item
  36320. #: guix-git/doc/guix.texi:24146
  36321. #, no-wrap
  36322. msgid "Native high performance agents."
  36323. msgstr ""
  36324. #. type: item
  36325. #: guix-git/doc/guix.texi:24147
  36326. #, no-wrap
  36327. msgid "SLA, and ITIL KPI metrics on reporting."
  36328. msgstr ""
  36329. #. type: item
  36330. #: guix-git/doc/guix.texi:24148
  36331. #, no-wrap
  36332. msgid "High-level (business) view of monitored resources through user-defined visual console screens and dashboards."
  36333. msgstr ""
  36334. #. type: item
  36335. #: guix-git/doc/guix.texi:24149
  36336. #, no-wrap
  36337. msgid "Remote command execution through Zabbix proxies."
  36338. msgstr ""
  36339. #. type: Plain text
  36340. #: guix-git/doc/guix.texi:24155
  36341. msgid "Available @code{zabbix-server-configuration} fields are:"
  36342. msgstr ""
  36343. #. type: deftypevr
  36344. #: guix-git/doc/guix.texi:24156
  36345. #, no-wrap
  36346. msgid "{@code{zabbix-server-configuration} parameter} package zabbix-server"
  36347. msgstr ""
  36348. #. type: deftypevr
  36349. #: guix-git/doc/guix.texi:24158
  36350. msgid "The zabbix-server package."
  36351. msgstr ""
  36352. #. type: deftypevr
  36353. #: guix-git/doc/guix.texi:24161
  36354. #, no-wrap
  36355. msgid "{@code{zabbix-server-configuration} parameter} string user"
  36356. msgstr ""
  36357. #. type: deftypevr
  36358. #: guix-git/doc/guix.texi:24163
  36359. msgid "User who will run the Zabbix server."
  36360. msgstr ""
  36361. #. type: deftypevr
  36362. #: guix-git/doc/guix.texi:24165 guix-git/doc/guix.texi:24172
  36363. #: guix-git/doc/guix.texi:24186 guix-git/doc/guix.texi:24193
  36364. #: guix-git/doc/guix.texi:24294 guix-git/doc/guix.texi:24301
  36365. #: guix-git/doc/guix.texi:24412 guix-git/doc/guix.texi:24419
  36366. msgid "Defaults to @samp{\"zabbix\"}."
  36367. msgstr ""
  36368. #. type: deftypevr
  36369. #: guix-git/doc/guix.texi:24168
  36370. #, no-wrap
  36371. msgid "{@code{zabbix-server-configuration} parameter} group group"
  36372. msgstr ""
  36373. #. type: deftypevr
  36374. #: guix-git/doc/guix.texi:24170
  36375. msgid "Group who will run the Zabbix server."
  36376. msgstr ""
  36377. #. type: deftypevr
  36378. #: guix-git/doc/guix.texi:24175
  36379. #, no-wrap
  36380. msgid "{@code{zabbix-server-configuration} parameter} string db-host"
  36381. msgstr ""
  36382. #. type: deftypevr
  36383. #: guix-git/doc/guix.texi:24177 guix-git/doc/guix.texi:24396
  36384. msgid "Database host name."
  36385. msgstr ""
  36386. #. type: deftypevr
  36387. #: guix-git/doc/guix.texi:24179
  36388. msgid "Defaults to @samp{\"127.0.0.1\"}."
  36389. msgstr ""
  36390. #. type: deftypevr
  36391. #: guix-git/doc/guix.texi:24182
  36392. #, no-wrap
  36393. msgid "{@code{zabbix-server-configuration} parameter} string db-name"
  36394. msgstr ""
  36395. #. type: deftypevr
  36396. #: guix-git/doc/guix.texi:24184 guix-git/doc/guix.texi:24410
  36397. msgid "Database name."
  36398. msgstr ""
  36399. #. type: deftypevr
  36400. #: guix-git/doc/guix.texi:24189
  36401. #, no-wrap
  36402. msgid "{@code{zabbix-server-configuration} parameter} string db-user"
  36403. msgstr ""
  36404. #. type: deftypevr
  36405. #: guix-git/doc/guix.texi:24191 guix-git/doc/guix.texi:24417
  36406. msgid "Database user."
  36407. msgstr ""
  36408. #. type: deftypevr
  36409. #: guix-git/doc/guix.texi:24196
  36410. #, no-wrap
  36411. msgid "{@code{zabbix-server-configuration} parameter} string db-password"
  36412. msgstr ""
  36413. #. type: deftypevr
  36414. #: guix-git/doc/guix.texi:24199
  36415. msgid "Database password. Please, use @code{include-files} with @code{DBPassword=SECRET} inside a specified file instead."
  36416. msgstr ""
  36417. #. type: deftypevr
  36418. #: guix-git/doc/guix.texi:24204
  36419. #, no-wrap
  36420. msgid "{@code{zabbix-server-configuration} parameter} number db-port"
  36421. msgstr ""
  36422. #. type: deftypevr
  36423. #: guix-git/doc/guix.texi:24206 guix-git/doc/guix.texi:24403
  36424. msgid "Database port."
  36425. msgstr ""
  36426. #. type: deftypevr
  36427. #: guix-git/doc/guix.texi:24208 guix-git/doc/guix.texi:24405
  36428. msgid "Defaults to @samp{5432}."
  36429. msgstr ""
  36430. #. type: deftypevr
  36431. #: guix-git/doc/guix.texi:24211
  36432. #, no-wrap
  36433. msgid "{@code{zabbix-server-configuration} parameter} string log-type"
  36434. msgstr ""
  36435. #. type: deftypevr
  36436. #: guix-git/doc/guix.texi:24213 guix-git/doc/guix.texi:24314
  36437. msgid "Specifies where log messages are written to:"
  36438. msgstr ""
  36439. #. type: itemize
  36440. #: guix-git/doc/guix.texi:24217 guix-git/doc/guix.texi:24318
  36441. msgid "@code{system} - syslog."
  36442. msgstr ""
  36443. #. type: itemize
  36444. #: guix-git/doc/guix.texi:24220 guix-git/doc/guix.texi:24321
  36445. msgid "@code{file} - file specified with @code{log-file} parameter."
  36446. msgstr ""
  36447. #. type: itemize
  36448. #: guix-git/doc/guix.texi:24223 guix-git/doc/guix.texi:24324
  36449. msgid "@code{console} - standard output."
  36450. msgstr ""
  36451. #. type: deftypevr
  36452. #: guix-git/doc/guix.texi:24230
  36453. #, no-wrap
  36454. msgid "{@code{zabbix-server-configuration} parameter} string log-file"
  36455. msgstr ""
  36456. #. type: deftypevr
  36457. #: guix-git/doc/guix.texi:24232 guix-git/doc/guix.texi:24333
  36458. msgid "Log file name for @code{log-type} @code{file} parameter."
  36459. msgstr ""
  36460. #. type: deftypevr
  36461. #: guix-git/doc/guix.texi:24234
  36462. msgid "Defaults to @samp{\"/var/log/zabbix/server.log\"}."
  36463. msgstr ""
  36464. #. type: deftypevr
  36465. #: guix-git/doc/guix.texi:24237
  36466. #, no-wrap
  36467. msgid "{@code{zabbix-server-configuration} parameter} string pid-file"
  36468. msgstr ""
  36469. #. type: deftypevr
  36470. #: guix-git/doc/guix.texi:24239 guix-git/doc/guix.texi:24340
  36471. msgid "Name of PID file."
  36472. msgstr ""
  36473. #. type: deftypevr
  36474. #: guix-git/doc/guix.texi:24241
  36475. msgid "Defaults to @samp{\"/var/run/zabbix/zabbix_server.pid\"}."
  36476. msgstr ""
  36477. #. type: deftypevr
  36478. #: guix-git/doc/guix.texi:24244
  36479. #, no-wrap
  36480. msgid "{@code{zabbix-server-configuration} parameter} string ssl-ca-location"
  36481. msgstr ""
  36482. #. type: deftypevr
  36483. #: guix-git/doc/guix.texi:24247
  36484. msgid "The location of certificate authority (CA) files for SSL server certificate verification."
  36485. msgstr ""
  36486. #. type: deftypevr
  36487. #: guix-git/doc/guix.texi:24249
  36488. msgid "Defaults to @samp{\"/etc/ssl/certs/ca-certificates.crt\"}."
  36489. msgstr ""
  36490. #. type: deftypevr
  36491. #: guix-git/doc/guix.texi:24252
  36492. #, no-wrap
  36493. msgid "{@code{zabbix-server-configuration} parameter} string ssl-cert-location"
  36494. msgstr ""
  36495. #. type: deftypevr
  36496. #: guix-git/doc/guix.texi:24254
  36497. msgid "Location of SSL client certificates."
  36498. msgstr ""
  36499. #. type: deftypevr
  36500. #: guix-git/doc/guix.texi:24256
  36501. msgid "Defaults to @samp{\"/etc/ssl/certs\"}."
  36502. msgstr ""
  36503. #. type: deftypevr
  36504. #: guix-git/doc/guix.texi:24259
  36505. #, no-wrap
  36506. msgid "{@code{zabbix-server-configuration} parameter} string extra-options"
  36507. msgstr ""
  36508. #. type: deftypevr
  36509. #: guix-git/doc/guix.texi:24261 guix-git/doc/guix.texi:24365
  36510. msgid "Extra options will be appended to Zabbix server configuration file."
  36511. msgstr ""
  36512. #. type: deftypevr
  36513. #: guix-git/doc/guix.texi:24266
  36514. #, no-wrap
  36515. msgid "{@code{zabbix-server-configuration} parameter} include-files include-files"
  36516. msgstr ""
  36517. #. type: deftypevr
  36518. #: guix-git/doc/guix.texi:24269 guix-git/doc/guix.texi:24373
  36519. msgid "You may include individual files or all files in a directory in the configuration file."
  36520. msgstr ""
  36521. #. type: subsubheading
  36522. #: guix-git/doc/guix.texi:24276
  36523. #, no-wrap
  36524. msgid "Zabbix agent"
  36525. msgstr ""
  36526. #. type: cindex
  36527. #: guix-git/doc/guix.texi:24277
  36528. #, no-wrap
  36529. msgid "zabbix zabbix-agent"
  36530. msgstr ""
  36531. #. type: Plain text
  36532. #: guix-git/doc/guix.texi:24280
  36533. msgid "Zabbix agent gathers information for Zabbix server."
  36534. msgstr ""
  36535. #. type: Plain text
  36536. #: guix-git/doc/guix.texi:24284
  36537. msgid "Available @code{zabbix-agent-configuration} fields are:"
  36538. msgstr ""
  36539. #. type: deftypevr
  36540. #: guix-git/doc/guix.texi:24285
  36541. #, no-wrap
  36542. msgid "{@code{zabbix-agent-configuration} parameter} package zabbix-agent"
  36543. msgstr ""
  36544. #. type: deftypevr
  36545. #: guix-git/doc/guix.texi:24287
  36546. msgid "The zabbix-agent package."
  36547. msgstr ""
  36548. #. type: deftypevr
  36549. #: guix-git/doc/guix.texi:24290
  36550. #, no-wrap
  36551. msgid "{@code{zabbix-agent-configuration} parameter} string user"
  36552. msgstr ""
  36553. #. type: deftypevr
  36554. #: guix-git/doc/guix.texi:24292
  36555. msgid "User who will run the Zabbix agent."
  36556. msgstr ""
  36557. #. type: deftypevr
  36558. #: guix-git/doc/guix.texi:24297
  36559. #, no-wrap
  36560. msgid "{@code{zabbix-agent-configuration} parameter} group group"
  36561. msgstr ""
  36562. #. type: deftypevr
  36563. #: guix-git/doc/guix.texi:24299
  36564. msgid "Group who will run the Zabbix agent."
  36565. msgstr ""
  36566. #. type: deftypevr
  36567. #: guix-git/doc/guix.texi:24304
  36568. #, no-wrap
  36569. msgid "{@code{zabbix-agent-configuration} parameter} string hostname"
  36570. msgstr ""
  36571. #. type: deftypevr
  36572. #: guix-git/doc/guix.texi:24307
  36573. msgid "Unique, case sensitive hostname which is required for active checks and must match hostname as configured on the server."
  36574. msgstr ""
  36575. #. type: deftypevr
  36576. #: guix-git/doc/guix.texi:24312
  36577. #, no-wrap
  36578. msgid "{@code{zabbix-agent-configuration} parameter} string log-type"
  36579. msgstr ""
  36580. #. type: deftypevr
  36581. #: guix-git/doc/guix.texi:24331
  36582. #, no-wrap
  36583. msgid "{@code{zabbix-agent-configuration} parameter} string log-file"
  36584. msgstr ""
  36585. #. type: deftypevr
  36586. #: guix-git/doc/guix.texi:24335
  36587. msgid "Defaults to @samp{\"/var/log/zabbix/agent.log\"}."
  36588. msgstr ""
  36589. #. type: deftypevr
  36590. #: guix-git/doc/guix.texi:24338
  36591. #, no-wrap
  36592. msgid "{@code{zabbix-agent-configuration} parameter} string pid-file"
  36593. msgstr ""
  36594. #. type: deftypevr
  36595. #: guix-git/doc/guix.texi:24342
  36596. msgid "Defaults to @samp{\"/var/run/zabbix/zabbix_agent.pid\"}."
  36597. msgstr ""
  36598. #. type: deftypevr
  36599. #: guix-git/doc/guix.texi:24345
  36600. #, no-wrap
  36601. msgid "{@code{zabbix-agent-configuration} parameter} list server"
  36602. msgstr ""
  36603. #. type: deftypevr
  36604. #: guix-git/doc/guix.texi:24349
  36605. 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."
  36606. msgstr ""
  36607. #. type: deftypevr
  36608. #: guix-git/doc/guix.texi:24351 guix-git/doc/guix.texi:24360
  36609. msgid "Defaults to @samp{(\"127.0.0.1\")}."
  36610. msgstr ""
  36611. #. type: deftypevr
  36612. #: guix-git/doc/guix.texi:24354
  36613. #, no-wrap
  36614. msgid "{@code{zabbix-agent-configuration} parameter} list server-active"
  36615. msgstr ""
  36616. #. type: deftypevr
  36617. #: guix-git/doc/guix.texi:24358
  36618. 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."
  36619. msgstr ""
  36620. #. type: deftypevr
  36621. #: guix-git/doc/guix.texi:24363
  36622. #, no-wrap
  36623. msgid "{@code{zabbix-agent-configuration} parameter} string extra-options"
  36624. msgstr ""
  36625. #. type: deftypevr
  36626. #: guix-git/doc/guix.texi:24370
  36627. #, no-wrap
  36628. msgid "{@code{zabbix-agent-configuration} parameter} include-files include-files"
  36629. msgstr ""
  36630. #. type: subsubheading
  36631. #: guix-git/doc/guix.texi:24380
  36632. #, no-wrap
  36633. msgid "Zabbix front-end"
  36634. msgstr ""
  36635. #. type: cindex
  36636. #: guix-git/doc/guix.texi:24381
  36637. #, no-wrap
  36638. msgid "zabbix zabbix-front-end"
  36639. msgstr ""
  36640. #. type: Plain text
  36641. #: guix-git/doc/guix.texi:24384
  36642. msgid "This service provides a WEB interface to Zabbix server."
  36643. msgstr ""
  36644. #. type: Plain text
  36645. #: guix-git/doc/guix.texi:24388
  36646. msgid "Available @code{zabbix-front-end-configuration} fields are:"
  36647. msgstr ""
  36648. #. type: deftypevr
  36649. #: guix-git/doc/guix.texi:24389
  36650. #, no-wrap
  36651. msgid "{@code{zabbix-front-end-configuration} parameter} nginx-server-configuration-list nginx"
  36652. msgstr ""
  36653. #. type: deftypevr
  36654. #: guix-git/doc/guix.texi:24391 guix-git/doc/guix.texi:30622
  36655. msgid "NGINX configuration."
  36656. msgstr ""
  36657. #. type: deftypevr
  36658. #: guix-git/doc/guix.texi:24394
  36659. #, no-wrap
  36660. msgid "{@code{zabbix-front-end-configuration} parameter} string db-host"
  36661. msgstr ""
  36662. #. type: deftypevr
  36663. #: guix-git/doc/guix.texi:24401
  36664. #, no-wrap
  36665. msgid "{@code{zabbix-front-end-configuration} parameter} number db-port"
  36666. msgstr ""
  36667. #. type: deftypevr
  36668. #: guix-git/doc/guix.texi:24408
  36669. #, no-wrap
  36670. msgid "{@code{zabbix-front-end-configuration} parameter} string db-name"
  36671. msgstr ""
  36672. #. type: deftypevr
  36673. #: guix-git/doc/guix.texi:24415
  36674. #, no-wrap
  36675. msgid "{@code{zabbix-front-end-configuration} parameter} string db-user"
  36676. msgstr ""
  36677. #. type: deftypevr
  36678. #: guix-git/doc/guix.texi:24422
  36679. #, no-wrap
  36680. msgid "{@code{zabbix-front-end-configuration} parameter} string db-password"
  36681. msgstr ""
  36682. #. type: deftypevr
  36683. #: guix-git/doc/guix.texi:24424
  36684. msgid "Database password. Please, use @code{db-secret-file} instead."
  36685. msgstr ""
  36686. #. type: deftypevr
  36687. #: guix-git/doc/guix.texi:24429
  36688. #, no-wrap
  36689. msgid "{@code{zabbix-front-end-configuration} parameter} string db-secret-file"
  36690. msgstr ""
  36691. #. type: deftypevr
  36692. #: guix-git/doc/guix.texi:24434
  36693. msgid "Secret file containing the credentials for the Zabbix front-end. The value must be a local file name, not a G-expression. You are expected to create this file manually. Its contents will be copied into @file{zabbix.conf.php} as the value of @code{$DB['PASSWORD']}."
  36694. msgstr ""
  36695. #. type: deftypevr
  36696. #: guix-git/doc/guix.texi:24439
  36697. #, no-wrap
  36698. msgid "{@code{zabbix-front-end-configuration} parameter} string zabbix-host"
  36699. msgstr ""
  36700. #. type: deftypevr
  36701. #: guix-git/doc/guix.texi:24441
  36702. msgid "Zabbix server hostname."
  36703. msgstr ""
  36704. #. type: deftypevr
  36705. #: guix-git/doc/guix.texi:24446
  36706. #, no-wrap
  36707. msgid "{@code{zabbix-front-end-configuration} parameter} number zabbix-port"
  36708. msgstr ""
  36709. #. type: deftypevr
  36710. #: guix-git/doc/guix.texi:24448
  36711. msgid "Zabbix server port."
  36712. msgstr ""
  36713. #. type: deftypevr
  36714. #: guix-git/doc/guix.texi:24450
  36715. msgid "Defaults to @samp{10051}."
  36716. msgstr ""
  36717. #. type: cindex
  36718. #: guix-git/doc/guix.texi:24458
  36719. #, no-wrap
  36720. msgid "Kerberos"
  36721. msgstr ""
  36722. #. type: Plain text
  36723. #: guix-git/doc/guix.texi:24462
  36724. msgid "The @code{(gnu services kerberos)} module provides services relating to the authentication protocol @dfn{Kerberos}."
  36725. msgstr ""
  36726. #. type: subsubheading
  36727. #: guix-git/doc/guix.texi:24463
  36728. #, no-wrap
  36729. msgid "Krb5 Service"
  36730. msgstr ""
  36731. #. type: Plain text
  36732. #: guix-git/doc/guix.texi:24470
  36733. 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."
  36734. msgstr ""
  36735. #. type: Plain text
  36736. #: guix-git/doc/guix.texi:24474
  36737. 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."
  36738. msgstr ""
  36739. #. type: defvr
  36740. #: guix-git/doc/guix.texi:24475
  36741. #, no-wrap
  36742. msgid "{Scheme Variable} krb5-service-type"
  36743. msgstr ""
  36744. #. type: defvr
  36745. #: guix-git/doc/guix.texi:24477
  36746. msgid "A service type for Kerberos 5 clients."
  36747. msgstr ""
  36748. #. type: Plain text
  36749. #: guix-git/doc/guix.texi:24481
  36750. msgid "Here is an example of its use:"
  36751. msgstr ""
  36752. #. type: lisp
  36753. #: guix-git/doc/guix.texi:24495
  36754. #, no-wrap
  36755. msgid ""
  36756. "(service krb5-service-type\n"
  36757. " (krb5-configuration\n"
  36758. " (default-realm \"EXAMPLE.COM\")\n"
  36759. " (allow-weak-crypto? #t)\n"
  36760. " (realms (list\n"
  36761. " (krb5-realm\n"
  36762. " (name \"EXAMPLE.COM\")\n"
  36763. " (admin-server \"groucho.example.com\")\n"
  36764. " (kdc \"karl.example.com\"))\n"
  36765. " (krb5-realm\n"
  36766. " (name \"ARGRX.EDU\")\n"
  36767. " (admin-server \"kerb-admin.argrx.edu\")\n"
  36768. " (kdc \"keys.argrx.edu\"))))))\n"
  36769. msgstr ""
  36770. #. type: Plain text
  36771. #: guix-git/doc/guix.texi:24499
  36772. msgid "This example provides a Kerberos@tie{}5 client configuration which:"
  36773. msgstr ""
  36774. #. type: item
  36775. #: guix-git/doc/guix.texi:24500
  36776. #, no-wrap
  36777. msgid "Recognizes two realms, @i{viz:} ``EXAMPLE.COM'' and ``ARGRX.EDU'', both"
  36778. msgstr ""
  36779. #. type: itemize
  36780. #: guix-git/doc/guix.texi:24502
  36781. msgid "of which have distinct administration servers and key distribution centers;"
  36782. msgstr ""
  36783. #. type: item
  36784. #: guix-git/doc/guix.texi:24502
  36785. #, no-wrap
  36786. msgid "Will default to the realm ``EXAMPLE.COM'' if the realm is not explicitly"
  36787. msgstr ""
  36788. #. type: itemize
  36789. #: guix-git/doc/guix.texi:24504
  36790. msgid "specified by clients;"
  36791. msgstr ""
  36792. #. type: item
  36793. #: guix-git/doc/guix.texi:24504
  36794. #, no-wrap
  36795. msgid "Accepts services which only support encryption types known to be weak."
  36796. msgstr ""
  36797. #. type: Plain text
  36798. #: guix-git/doc/guix.texi:24512
  36799. 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."
  36800. msgstr ""
  36801. #. type: deftp
  36802. #: guix-git/doc/guix.texi:24514
  36803. #, no-wrap
  36804. msgid "{Data Type} krb5-realm"
  36805. msgstr ""
  36806. #. type: cindex
  36807. #: guix-git/doc/guix.texi:24515
  36808. #, no-wrap
  36809. msgid "realm, kerberos"
  36810. msgstr ""
  36811. #. type: table
  36812. #: guix-git/doc/guix.texi:24521
  36813. 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."
  36814. msgstr ""
  36815. #. type: code{#1}
  36816. #: guix-git/doc/guix.texi:24522
  36817. #, no-wrap
  36818. msgid "admin-server"
  36819. msgstr ""
  36820. #. type: table
  36821. #: guix-git/doc/guix.texi:24525
  36822. msgid "This field is a string identifying the host where the administration server is running."
  36823. msgstr ""
  36824. #. type: code{#1}
  36825. #: guix-git/doc/guix.texi:24526
  36826. #, no-wrap
  36827. msgid "kdc"
  36828. msgstr ""
  36829. #. type: table
  36830. #: guix-git/doc/guix.texi:24529
  36831. msgid "This field is a string identifying the key distribution center for the realm."
  36832. msgstr ""
  36833. #. type: deftp
  36834. #: guix-git/doc/guix.texi:24532
  36835. #, no-wrap
  36836. msgid "{Data Type} krb5-configuration"
  36837. msgstr ""
  36838. #. type: item
  36839. #: guix-git/doc/guix.texi:24535
  36840. #, no-wrap
  36841. msgid "@code{allow-weak-crypto?} (default: @code{#f})"
  36842. msgstr ""
  36843. #. type: table
  36844. #: guix-git/doc/guix.texi:24538
  36845. msgid "If this flag is @code{#t} then services which only offer encryption algorithms known to be weak will be accepted."
  36846. msgstr ""
  36847. #. type: item
  36848. #: guix-git/doc/guix.texi:24539
  36849. #, no-wrap
  36850. msgid "@code{default-realm} (default: @code{#f})"
  36851. msgstr ""
  36852. #. type: table
  36853. #: guix-git/doc/guix.texi:24546
  36854. 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}."
  36855. msgstr ""
  36856. #. type: code{#1}
  36857. #: guix-git/doc/guix.texi:24547
  36858. #, no-wrap
  36859. msgid "realms"
  36860. msgstr ""
  36861. #. type: table
  36862. #: guix-git/doc/guix.texi:24552
  36863. 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."
  36864. msgstr ""
  36865. #. type: subsubheading
  36866. #: guix-git/doc/guix.texi:24556
  36867. #, no-wrap
  36868. msgid "PAM krb5 Service"
  36869. msgstr ""
  36870. #. type: cindex
  36871. #: guix-git/doc/guix.texi:24557
  36872. #, no-wrap
  36873. msgid "pam-krb5"
  36874. msgstr ""
  36875. #. type: Plain text
  36876. #: guix-git/doc/guix.texi:24563
  36877. 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."
  36878. msgstr ""
  36879. #. type: defvr
  36880. #: guix-git/doc/guix.texi:24564
  36881. #, no-wrap
  36882. msgid "{Scheme Variable} pam-krb5-service-type"
  36883. msgstr ""
  36884. #. type: defvr
  36885. #: guix-git/doc/guix.texi:24566
  36886. msgid "A service type for the Kerberos 5 PAM module."
  36887. msgstr ""
  36888. #. type: deftp
  36889. #: guix-git/doc/guix.texi:24568
  36890. #, no-wrap
  36891. msgid "{Data Type} pam-krb5-configuration"
  36892. msgstr ""
  36893. #. type: deftp
  36894. #: guix-git/doc/guix.texi:24571
  36895. msgid "Data type representing the configuration of the Kerberos 5 PAM module. This type has the following parameters:"
  36896. msgstr ""
  36897. #. type: item
  36898. #: guix-git/doc/guix.texi:24572
  36899. #, no-wrap
  36900. msgid "@code{pam-krb5} (default: @code{pam-krb5})"
  36901. msgstr ""
  36902. #. type: table
  36903. #: guix-git/doc/guix.texi:24574
  36904. msgid "The pam-krb5 package to use."
  36905. msgstr ""
  36906. #. type: item
  36907. #: guix-git/doc/guix.texi:24575
  36908. #, no-wrap
  36909. msgid "@code{minimum-uid} (default: @code{1000})"
  36910. msgstr ""
  36911. #. type: table
  36912. #: guix-git/doc/guix.texi:24578
  36913. msgid "The smallest user ID for which Kerberos authentications should be attempted. Local accounts with lower values will silently fail to authenticate."
  36914. msgstr ""
  36915. #. type: cindex
  36916. #: guix-git/doc/guix.texi:24584
  36917. #, no-wrap
  36918. msgid "LDAP"
  36919. msgstr ""
  36920. #. type: cindex
  36921. #: guix-git/doc/guix.texi:24585
  36922. #, no-wrap
  36923. msgid "nslcd, LDAP service"
  36924. msgstr ""
  36925. #. type: Plain text
  36926. #: guix-git/doc/guix.texi:24592
  36927. 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."
  36928. msgstr ""
  36929. #. type: Plain text
  36930. #: guix-git/doc/guix.texi:24596
  36931. 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:"
  36932. msgstr ""
  36933. #. type: lisp
  36934. #: guix-git/doc/guix.texi:24619
  36935. #, no-wrap
  36936. msgid ""
  36937. "(use-service-modules authentication)\n"
  36938. "(use-modules (gnu system nss))\n"
  36939. "...\n"
  36940. "(operating-system\n"
  36941. " ...\n"
  36942. " (services\n"
  36943. " (cons*\n"
  36944. " (service nslcd-service-type)\n"
  36945. " (service dhcp-client-service-type)\n"
  36946. " %base-services))\n"
  36947. " (name-service-switch\n"
  36948. " (let ((services (list (name-service (name \"db\"))\n"
  36949. " (name-service (name \"files\"))\n"
  36950. " (name-service (name \"ldap\")))))\n"
  36951. " (name-service-switch\n"
  36952. " (inherit %mdns-host-lookup-nss)\n"
  36953. " (password services)\n"
  36954. " (shadow services)\n"
  36955. " (group services)\n"
  36956. " (netgroup services)\n"
  36957. " (gshadow services)))))\n"
  36958. msgstr ""
  36959. #. type: Plain text
  36960. #: guix-git/doc/guix.texi:24624
  36961. msgid "Available @code{nslcd-configuration} fields are:"
  36962. msgstr ""
  36963. #. type: deftypevr
  36964. #: guix-git/doc/guix.texi:24625
  36965. #, no-wrap
  36966. msgid "{@code{nslcd-configuration} parameter} package nss-pam-ldapd"
  36967. msgstr ""
  36968. #. type: deftypevr
  36969. #: guix-git/doc/guix.texi:24627
  36970. msgid "The @code{nss-pam-ldapd} package to use."
  36971. msgstr ""
  36972. #. type: deftypevr
  36973. #: guix-git/doc/guix.texi:24630
  36974. #, no-wrap
  36975. msgid "{@code{nslcd-configuration} parameter} maybe-number threads"
  36976. msgstr ""
  36977. #. type: deftypevr
  36978. #: guix-git/doc/guix.texi:24634
  36979. 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."
  36980. msgstr ""
  36981. #. type: deftypevr
  36982. #: guix-git/doc/guix.texi:24639
  36983. #, no-wrap
  36984. msgid "{@code{nslcd-configuration} parameter} string uid"
  36985. msgstr ""
  36986. #. type: deftypevr
  36987. #: guix-git/doc/guix.texi:24641
  36988. msgid "This specifies the user id with which the daemon should be run."
  36989. msgstr ""
  36990. #. type: deftypevr
  36991. #: guix-git/doc/guix.texi:24643 guix-git/doc/guix.texi:24650
  36992. msgid "Defaults to @samp{\"nslcd\"}."
  36993. msgstr ""
  36994. #. type: deftypevr
  36995. #: guix-git/doc/guix.texi:24646
  36996. #, no-wrap
  36997. msgid "{@code{nslcd-configuration} parameter} string gid"
  36998. msgstr ""
  36999. #. type: deftypevr
  37000. #: guix-git/doc/guix.texi:24648
  37001. msgid "This specifies the group id with which the daemon should be run."
  37002. msgstr ""
  37003. #. type: deftypevr
  37004. #: guix-git/doc/guix.texi:24653
  37005. #, no-wrap
  37006. msgid "{@code{nslcd-configuration} parameter} log-option log"
  37007. msgstr ""
  37008. #. type: deftypevr
  37009. #: guix-git/doc/guix.texi:24661
  37010. 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."
  37011. msgstr ""
  37012. #. type: deftypevr
  37013. #: guix-git/doc/guix.texi:24663
  37014. msgid "Defaults to @samp{(\"/var/log/nslcd\" info)}."
  37015. msgstr ""
  37016. #. type: deftypevr
  37017. #: guix-git/doc/guix.texi:24666
  37018. #, no-wrap
  37019. msgid "{@code{nslcd-configuration} parameter} list uri"
  37020. msgstr ""
  37021. #. type: deftypevr
  37022. #: guix-git/doc/guix.texi:24669
  37023. msgid "The list of LDAP server URIs. Normally, only the first server will be used with the following servers as fall-back."
  37024. msgstr ""
  37025. #. type: deftypevr
  37026. #: guix-git/doc/guix.texi:24671
  37027. msgid "Defaults to @samp{(\"ldap://localhost:389/\")}."
  37028. msgstr ""
  37029. #. type: deftypevr
  37030. #: guix-git/doc/guix.texi:24674
  37031. #, no-wrap
  37032. msgid "{@code{nslcd-configuration} parameter} maybe-string ldap-version"
  37033. msgstr ""
  37034. #. type: deftypevr
  37035. #: guix-git/doc/guix.texi:24677
  37036. msgid "The version of the LDAP protocol to use. The default is to use the maximum version supported by the LDAP library."
  37037. msgstr ""
  37038. #. type: deftypevr
  37039. #: guix-git/doc/guix.texi:24682
  37040. #, no-wrap
  37041. msgid "{@code{nslcd-configuration} parameter} maybe-string binddn"
  37042. msgstr ""
  37043. #. type: deftypevr
  37044. #: guix-git/doc/guix.texi:24685
  37045. msgid "Specifies the distinguished name with which to bind to the directory server for lookups. The default is to bind anonymously."
  37046. msgstr ""
  37047. #. type: deftypevr
  37048. #: guix-git/doc/guix.texi:24690
  37049. #, no-wrap
  37050. msgid "{@code{nslcd-configuration} parameter} maybe-string bindpw"
  37051. msgstr ""
  37052. #. type: deftypevr
  37053. #: guix-git/doc/guix.texi:24693
  37054. msgid "Specifies the credentials with which to bind. This option is only applicable when used with binddn."
  37055. msgstr ""
  37056. #. type: deftypevr
  37057. #: guix-git/doc/guix.texi:24698
  37058. #, no-wrap
  37059. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmoddn"
  37060. msgstr ""
  37061. #. type: deftypevr
  37062. #: guix-git/doc/guix.texi:24701
  37063. msgid "Specifies the distinguished name to use when the root user tries to modify a user's password using the PAM module."
  37064. msgstr ""
  37065. #. type: deftypevr
  37066. #: guix-git/doc/guix.texi:24706
  37067. #, no-wrap
  37068. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmodpw"
  37069. msgstr ""
  37070. #. type: deftypevr
  37071. #: guix-git/doc/guix.texi:24710
  37072. 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"
  37073. msgstr ""
  37074. #. type: deftypevr
  37075. #: guix-git/doc/guix.texi:24715
  37076. #, no-wrap
  37077. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-mech"
  37078. msgstr ""
  37079. #. type: deftypevr
  37080. #: guix-git/doc/guix.texi:24718
  37081. msgid "Specifies the SASL mechanism to be used when performing SASL authentication."
  37082. msgstr ""
  37083. #. type: deftypevr
  37084. #: guix-git/doc/guix.texi:24723
  37085. #, no-wrap
  37086. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-realm"
  37087. msgstr ""
  37088. #. type: deftypevr
  37089. #: guix-git/doc/guix.texi:24725
  37090. msgid "Specifies the SASL realm to be used when performing SASL authentication."
  37091. msgstr ""
  37092. #. type: deftypevr
  37093. #: guix-git/doc/guix.texi:24730
  37094. #, no-wrap
  37095. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authcid"
  37096. msgstr ""
  37097. #. type: deftypevr
  37098. #: guix-git/doc/guix.texi:24733
  37099. msgid "Specifies the authentication identity to be used when performing SASL authentication."
  37100. msgstr ""
  37101. #. type: deftypevr
  37102. #: guix-git/doc/guix.texi:24738
  37103. #, no-wrap
  37104. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authzid"
  37105. msgstr ""
  37106. #. type: deftypevr
  37107. #: guix-git/doc/guix.texi:24741
  37108. msgid "Specifies the authorization identity to be used when performing SASL authentication."
  37109. msgstr ""
  37110. #. type: deftypevr
  37111. #: guix-git/doc/guix.texi:24746
  37112. #, no-wrap
  37113. msgid "{@code{nslcd-configuration} parameter} maybe-boolean sasl-canonicalize?"
  37114. msgstr ""
  37115. #. type: deftypevr
  37116. #: guix-git/doc/guix.texi:24751
  37117. 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."
  37118. msgstr ""
  37119. #. type: deftypevr
  37120. #: guix-git/doc/guix.texi:24756
  37121. #, no-wrap
  37122. msgid "{@code{nslcd-configuration} parameter} maybe-string krb5-ccname"
  37123. msgstr ""
  37124. #. type: deftypevr
  37125. #: guix-git/doc/guix.texi:24758
  37126. msgid "Set the name for the GSS-API Kerberos credentials cache."
  37127. msgstr ""
  37128. #. type: deftypevr
  37129. #: guix-git/doc/guix.texi:24763
  37130. #, no-wrap
  37131. msgid "{@code{nslcd-configuration} parameter} string base"
  37132. msgstr ""
  37133. #. type: deftypevr
  37134. #: guix-git/doc/guix.texi:24765
  37135. msgid "The directory search base."
  37136. msgstr ""
  37137. #. type: deftypevr
  37138. #: guix-git/doc/guix.texi:24767
  37139. msgid "Defaults to @samp{\"dc=example,dc=com\"}."
  37140. msgstr ""
  37141. #. type: deftypevr
  37142. #: guix-git/doc/guix.texi:24770
  37143. #, no-wrap
  37144. msgid "{@code{nslcd-configuration} parameter} scope-option scope"
  37145. msgstr ""
  37146. #. type: deftypevr
  37147. #: guix-git/doc/guix.texi:24774
  37148. 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."
  37149. msgstr ""
  37150. #. type: deftypevr
  37151. #: guix-git/doc/guix.texi:24776
  37152. msgid "Defaults to @samp{(subtree)}."
  37153. msgstr ""
  37154. #. type: deftypevr
  37155. #: guix-git/doc/guix.texi:24779
  37156. #, no-wrap
  37157. msgid "{@code{nslcd-configuration} parameter} maybe-deref-option deref"
  37158. msgstr ""
  37159. #. type: deftypevr
  37160. #: guix-git/doc/guix.texi:24782
  37161. msgid "Specifies the policy for dereferencing aliases. The default policy is to never dereference aliases."
  37162. msgstr ""
  37163. #. type: deftypevr
  37164. #: guix-git/doc/guix.texi:24787
  37165. #, no-wrap
  37166. msgid "{@code{nslcd-configuration} parameter} maybe-boolean referrals"
  37167. msgstr ""
  37168. #. type: deftypevr
  37169. #: guix-git/doc/guix.texi:24790
  37170. msgid "Specifies whether automatic referral chasing should be enabled. The default behaviour is to chase referrals."
  37171. msgstr ""
  37172. #. type: deftypevr
  37173. #: guix-git/doc/guix.texi:24795
  37174. #, no-wrap
  37175. msgid "{@code{nslcd-configuration} parameter} list-of-map-entries maps"
  37176. msgstr ""
  37177. #. type: deftypevr
  37178. #: guix-git/doc/guix.texi:24800
  37179. 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."
  37180. msgstr ""
  37181. #. type: deftypevr
  37182. #: guix-git/doc/guix.texi:24805
  37183. #, no-wrap
  37184. msgid "{@code{nslcd-configuration} parameter} list-of-filter-entries filters"
  37185. msgstr ""
  37186. #. type: deftypevr
  37187. #: guix-git/doc/guix.texi:24808
  37188. msgid "A list of filters consisting of the name of a map to which the filter applies and an LDAP search filter expression."
  37189. msgstr ""
  37190. #. type: deftypevr
  37191. #: guix-git/doc/guix.texi:24813
  37192. #, no-wrap
  37193. msgid "{@code{nslcd-configuration} parameter} maybe-number bind-timelimit"
  37194. msgstr ""
  37195. #. type: deftypevr
  37196. #: guix-git/doc/guix.texi:24816
  37197. msgid "Specifies the time limit in seconds to use when connecting to the directory server. The default value is 10 seconds."
  37198. msgstr ""
  37199. #. type: deftypevr
  37200. #: guix-git/doc/guix.texi:24821
  37201. #, no-wrap
  37202. msgid "{@code{nslcd-configuration} parameter} maybe-number timelimit"
  37203. msgstr ""
  37204. #. type: deftypevr
  37205. #: guix-git/doc/guix.texi:24825
  37206. 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."
  37207. msgstr ""
  37208. #. type: deftypevr
  37209. #: guix-git/doc/guix.texi:24830
  37210. #, no-wrap
  37211. msgid "{@code{nslcd-configuration} parameter} maybe-number idle-timelimit"
  37212. msgstr ""
  37213. #. type: deftypevr
  37214. #: guix-git/doc/guix.texi:24834
  37215. 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."
  37216. msgstr ""
  37217. #. type: deftypevr
  37218. #: guix-git/doc/guix.texi:24839
  37219. #, no-wrap
  37220. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-sleeptime"
  37221. msgstr ""
  37222. #. type: deftypevr
  37223. #: guix-git/doc/guix.texi:24843
  37224. 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."
  37225. msgstr ""
  37226. #. type: deftypevr
  37227. #: guix-git/doc/guix.texi:24848
  37228. #, no-wrap
  37229. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-retrytime"
  37230. msgstr ""
  37231. #. type: deftypevr
  37232. #: guix-git/doc/guix.texi:24852
  37233. 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."
  37234. msgstr ""
  37235. #. type: deftypevr
  37236. #: guix-git/doc/guix.texi:24857
  37237. #, no-wrap
  37238. msgid "{@code{nslcd-configuration} parameter} maybe-ssl-option ssl"
  37239. msgstr ""
  37240. #. type: deftypevr
  37241. #: guix-git/doc/guix.texi:24861
  37242. 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."
  37243. msgstr ""
  37244. #. type: deftypevr
  37245. #: guix-git/doc/guix.texi:24866
  37246. #, no-wrap
  37247. msgid "{@code{nslcd-configuration} parameter} maybe-tls-reqcert-option tls-reqcert"
  37248. msgstr ""
  37249. #. type: deftypevr
  37250. #: guix-git/doc/guix.texi:24869
  37251. 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."
  37252. msgstr ""
  37253. #. type: deftypevr
  37254. #: guix-git/doc/guix.texi:24874
  37255. #, no-wrap
  37256. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertdir"
  37257. msgstr ""
  37258. #. type: deftypevr
  37259. #: guix-git/doc/guix.texi:24877
  37260. msgid "Specifies the directory containing X.509 certificates for peer authen‐ tication. This parameter is ignored when using GnuTLS."
  37261. msgstr ""
  37262. #. type: deftypevr
  37263. #: guix-git/doc/guix.texi:24882
  37264. #, no-wrap
  37265. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertfile"
  37266. msgstr ""
  37267. #. type: deftypevr
  37268. #: guix-git/doc/guix.texi:24884
  37269. msgid "Specifies the path to the X.509 certificate for peer authentication."
  37270. msgstr ""
  37271. #. type: deftypevr
  37272. #: guix-git/doc/guix.texi:24889
  37273. #, no-wrap
  37274. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-randfile"
  37275. msgstr ""
  37276. #. type: deftypevr
  37277. #: guix-git/doc/guix.texi:24892
  37278. msgid "Specifies the path to an entropy source. This parameter is ignored when using GnuTLS."
  37279. msgstr ""
  37280. #. type: deftypevr
  37281. #: guix-git/doc/guix.texi:24897
  37282. #, no-wrap
  37283. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-ciphers"
  37284. msgstr ""
  37285. #. type: deftypevr
  37286. #: guix-git/doc/guix.texi:24899
  37287. msgid "Specifies the ciphers to use for TLS as a string."
  37288. msgstr ""
  37289. #. type: deftypevr
  37290. #: guix-git/doc/guix.texi:24904
  37291. #, no-wrap
  37292. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cert"
  37293. msgstr ""
  37294. #. type: deftypevr
  37295. #: guix-git/doc/guix.texi:24907
  37296. msgid "Specifies the path to the file containing the local certificate for client TLS authentication."
  37297. msgstr ""
  37298. #. type: deftypevr
  37299. #: guix-git/doc/guix.texi:24912
  37300. #, no-wrap
  37301. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-key"
  37302. msgstr ""
  37303. #. type: deftypevr
  37304. #: guix-git/doc/guix.texi:24915
  37305. msgid "Specifies the path to the file containing the private key for client TLS authentication."
  37306. msgstr ""
  37307. #. type: deftypevr
  37308. #: guix-git/doc/guix.texi:24920
  37309. #, no-wrap
  37310. msgid "{@code{nslcd-configuration} parameter} maybe-number pagesize"
  37311. msgstr ""
  37312. #. type: deftypevr
  37313. #: guix-git/doc/guix.texi:24924
  37314. 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."
  37315. msgstr ""
  37316. #. type: deftypevr
  37317. #: guix-git/doc/guix.texi:24929
  37318. #, no-wrap
  37319. msgid "{@code{nslcd-configuration} parameter} maybe-ignore-users-option nss-initgroups-ignoreusers"
  37320. msgstr ""
  37321. #. type: deftypevr
  37322. #: guix-git/doc/guix.texi:24933
  37323. 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."
  37324. msgstr ""
  37325. #. type: deftypevr
  37326. #: guix-git/doc/guix.texi:24938
  37327. #, no-wrap
  37328. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-min-uid"
  37329. msgstr ""
  37330. #. type: deftypevr
  37331. #: guix-git/doc/guix.texi:24941
  37332. msgid "This option ensures that LDAP users with a numeric user id lower than the specified value are ignored."
  37333. msgstr ""
  37334. #. type: deftypevr
  37335. #: guix-git/doc/guix.texi:24946
  37336. #, no-wrap
  37337. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-uid-offset"
  37338. msgstr ""
  37339. #. type: deftypevr
  37340. #: guix-git/doc/guix.texi:24949
  37341. 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."
  37342. msgstr ""
  37343. #. type: deftypevr
  37344. #: guix-git/doc/guix.texi:24954
  37345. #, no-wrap
  37346. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-gid-offset"
  37347. msgstr ""
  37348. #. type: deftypevr
  37349. #: guix-git/doc/guix.texi:24957
  37350. 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."
  37351. msgstr ""
  37352. #. type: deftypevr
  37353. #: guix-git/doc/guix.texi:24962
  37354. #, no-wrap
  37355. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-nested-groups"
  37356. msgstr ""
  37357. #. type: deftypevr
  37358. #: guix-git/doc/guix.texi:24968
  37359. 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."
  37360. msgstr ""
  37361. #. type: deftypevr
  37362. #: guix-git/doc/guix.texi:24973
  37363. #, no-wrap
  37364. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-getgrent-skipmembers"
  37365. msgstr ""
  37366. #. type: deftypevr
  37367. #: guix-git/doc/guix.texi:24978
  37368. 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."
  37369. msgstr ""
  37370. #. type: deftypevr
  37371. #: guix-git/doc/guix.texi:24983
  37372. #, no-wrap
  37373. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-disable-enumeration"
  37374. msgstr ""
  37375. #. type: deftypevr
  37376. #: guix-git/doc/guix.texi:24989
  37377. 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."
  37378. msgstr ""
  37379. #. type: deftypevr
  37380. #: guix-git/doc/guix.texi:24994
  37381. #, no-wrap
  37382. msgid "{@code{nslcd-configuration} parameter} maybe-string validnames"
  37383. msgstr ""
  37384. #. type: deftypevr
  37385. #: guix-git/doc/guix.texi:24998
  37386. 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."
  37387. msgstr ""
  37388. #. type: deftypevr
  37389. #: guix-git/doc/guix.texi:25003
  37390. #, no-wrap
  37391. msgid "{@code{nslcd-configuration} parameter} maybe-boolean ignorecase"
  37392. msgstr ""
  37393. #. type: deftypevr
  37394. #: guix-git/doc/guix.texi:25008
  37395. 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."
  37396. msgstr ""
  37397. #. type: deftypevr
  37398. #: guix-git/doc/guix.texi:25013
  37399. #, no-wrap
  37400. msgid "{@code{nslcd-configuration} parameter} maybe-boolean pam-authc-ppolicy"
  37401. msgstr ""
  37402. #. type: deftypevr
  37403. #: guix-git/doc/guix.texi:25016
  37404. msgid "This option specifies whether password policy controls are requested and handled from the LDAP server when performing user authentication."
  37405. msgstr ""
  37406. #. type: deftypevr
  37407. #: guix-git/doc/guix.texi:25021
  37408. #, no-wrap
  37409. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authc-search"
  37410. msgstr ""
  37411. #. type: deftypevr
  37412. #: guix-git/doc/guix.texi:25027
  37413. 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."
  37414. msgstr ""
  37415. #. type: deftypevr
  37416. #: guix-git/doc/guix.texi:25032
  37417. #, no-wrap
  37418. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authz-search"
  37419. msgstr ""
  37420. #. type: deftypevr
  37421. #: guix-git/doc/guix.texi:25036
  37422. 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."
  37423. msgstr ""
  37424. #. type: deftypevr
  37425. #: guix-git/doc/guix.texi:25041
  37426. #, no-wrap
  37427. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-password-prohibit-message"
  37428. msgstr ""
  37429. #. type: deftypevr
  37430. #: guix-git/doc/guix.texi:25046
  37431. 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."
  37432. msgstr ""
  37433. #. type: deftypevr
  37434. #: guix-git/doc/guix.texi:25051
  37435. #, no-wrap
  37436. msgid "{@code{nslcd-configuration} parameter} list pam-services"
  37437. msgstr ""
  37438. #. type: deftypevr
  37439. #: guix-git/doc/guix.texi:25053
  37440. msgid "List of pam service names for which LDAP authentication should suffice."
  37441. msgstr ""
  37442. #. type: cindex
  37443. #: guix-git/doc/guix.texi:25064
  37444. #, no-wrap
  37445. msgid "web"
  37446. msgstr ""
  37447. #. type: cindex
  37448. #: guix-git/doc/guix.texi:25065
  37449. #, no-wrap
  37450. msgid "www"
  37451. msgstr ""
  37452. #. type: cindex
  37453. #: guix-git/doc/guix.texi:25066
  37454. #, no-wrap
  37455. msgid "HTTP"
  37456. msgstr ""
  37457. #. type: Plain text
  37458. #: guix-git/doc/guix.texi:25069
  37459. msgid "The @code{(gnu services web)} module provides the Apache HTTP Server, the nginx web server, and also a fastcgi wrapper daemon."
  37460. msgstr ""
  37461. #. type: subsubheading
  37462. #: guix-git/doc/guix.texi:25070
  37463. #, no-wrap
  37464. msgid "Apache HTTP Server"
  37465. msgstr ""
  37466. #. type: deffn
  37467. #: guix-git/doc/guix.texi:25072
  37468. #, no-wrap
  37469. msgid "{Scheme Variable} httpd-service-type"
  37470. msgstr ""
  37471. #. type: deffn
  37472. #: guix-git/doc/guix.texi:25076
  37473. 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."
  37474. msgstr ""
  37475. #. type: deffn
  37476. #: guix-git/doc/guix.texi:25078 guix-git/doc/guix.texi:25260
  37477. msgid "A simple example configuration is given below."
  37478. msgstr ""
  37479. #. type: lisp
  37480. #: guix-git/doc/guix.texi:25086
  37481. #, no-wrap
  37482. msgid ""
  37483. "(service httpd-service-type\n"
  37484. " (httpd-configuration\n"
  37485. " (config\n"
  37486. " (httpd-config-file\n"
  37487. " (server-name \"www.example.com\")\n"
  37488. " (document-root \"/srv/http/www.example.com\")))))\n"
  37489. msgstr ""
  37490. #. type: deffn
  37491. #: guix-git/doc/guix.texi:25090
  37492. msgid "Other services can also extend the @code{httpd-service-type} to add to the configuration."
  37493. msgstr ""
  37494. #. type: lisp
  37495. #: guix-git/doc/guix.texi:25099 guix-git/doc/guix.texi:25239
  37496. #, no-wrap
  37497. msgid ""
  37498. "(simple-service 'www.example.com-server httpd-service-type\n"
  37499. " (list\n"
  37500. " (httpd-virtualhost\n"
  37501. " \"*:80\"\n"
  37502. " (list (string-join '(\"ServerName www.example.com\"\n"
  37503. " \"DocumentRoot /srv/http/www.example.com\")\n"
  37504. " \"\\n\")))))\n"
  37505. msgstr ""
  37506. #. type: Plain text
  37507. #: guix-git/doc/guix.texi:25105
  37508. msgid "The details for the @code{httpd-configuration}, @code{httpd-module}, @code{httpd-config-file} and @code{httpd-virtualhost} record types are given below."
  37509. msgstr ""
  37510. #. type: deffn
  37511. #: guix-git/doc/guix.texi:25106
  37512. #, no-wrap
  37513. msgid "{Data Type} httpd-configuration"
  37514. msgstr ""
  37515. #. type: deffn
  37516. #: guix-git/doc/guix.texi:25108
  37517. msgid "This data type represents the configuration for the httpd service."
  37518. msgstr ""
  37519. #. type: item
  37520. #: guix-git/doc/guix.texi:25110
  37521. #, no-wrap
  37522. msgid "@code{package} (default: @code{httpd})"
  37523. msgstr ""
  37524. #. type: table
  37525. #: guix-git/doc/guix.texi:25112
  37526. msgid "The httpd package to use."
  37527. msgstr ""
  37528. #. type: item
  37529. #: guix-git/doc/guix.texi:25113 guix-git/doc/guix.texi:25202
  37530. #, no-wrap
  37531. msgid "@code{pid-file} (default: @code{\"/var/run/httpd\"})"
  37532. msgstr ""
  37533. #. type: table
  37534. #: guix-git/doc/guix.texi:25115
  37535. msgid "The pid file used by the shepherd-service."
  37536. msgstr ""
  37537. #. type: item
  37538. #: guix-git/doc/guix.texi:25116
  37539. #, no-wrap
  37540. msgid "@code{config} (default: @code{(httpd-config-file)})"
  37541. msgstr ""
  37542. #. type: table
  37543. #: guix-git/doc/guix.texi:25121
  37544. 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."
  37545. msgstr ""
  37546. #. type: deffn
  37547. #: guix-git/doc/guix.texi:25125
  37548. #, no-wrap
  37549. msgid "{Data Type} httpd-module"
  37550. msgstr ""
  37551. #. type: deffn
  37552. #: guix-git/doc/guix.texi:25127
  37553. msgid "This data type represents a module for the httpd service."
  37554. msgstr ""
  37555. #. type: table
  37556. #: guix-git/doc/guix.texi:25131
  37557. msgid "The name of the module."
  37558. msgstr ""
  37559. #. type: table
  37560. #: guix-git/doc/guix.texi:25137
  37561. 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\")}."
  37562. msgstr ""
  37563. #. type: defvr
  37564. #: guix-git/doc/guix.texi:25141
  37565. #, no-wrap
  37566. msgid "{Scheme Variable} %default-httpd-modules"
  37567. msgstr ""
  37568. #. type: defvr
  37569. #: guix-git/doc/guix.texi:25143
  37570. msgid "A default list of @code{httpd-module} objects."
  37571. msgstr ""
  37572. #. type: deffn
  37573. #: guix-git/doc/guix.texi:25145
  37574. #, no-wrap
  37575. msgid "{Data Type} httpd-config-file"
  37576. msgstr ""
  37577. #. type: deffn
  37578. #: guix-git/doc/guix.texi:25147
  37579. msgid "This data type represents a configuration file for the httpd service."
  37580. msgstr ""
  37581. #. type: item
  37582. #: guix-git/doc/guix.texi:25149
  37583. #, no-wrap
  37584. msgid "@code{modules} (default: @code{%default-httpd-modules})"
  37585. msgstr ""
  37586. #. type: table
  37587. #: guix-git/doc/guix.texi:25152
  37588. msgid "The modules to load. Additional modules can be added here, or loaded by additional configuration."
  37589. msgstr ""
  37590. #. type: table
  37591. #: guix-git/doc/guix.texi:25155
  37592. 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}:"
  37593. msgstr ""
  37594. #. type: lisp
  37595. #: guix-git/doc/guix.texi:25177
  37596. #, no-wrap
  37597. msgid ""
  37598. "(service httpd-service-type\n"
  37599. " (httpd-configuration\n"
  37600. " (config\n"
  37601. " (httpd-config-file\n"
  37602. " (modules (cons*\n"
  37603. " (httpd-module\n"
  37604. " (name \"proxy_module\")\n"
  37605. " (file \"modules/mod_proxy.so\"))\n"
  37606. " (httpd-module\n"
  37607. " (name \"proxy_fcgi_module\")\n"
  37608. " (file \"modules/mod_proxy_fcgi.so\"))\n"
  37609. " %default-httpd-modules))\n"
  37610. " (extra-config (list \"\\\n"
  37611. "<FilesMatch \\\\.php$>\n"
  37612. " SetHandler \\\"proxy:unix:/var/run/php-fpm.sock|fcgi://localhost/\\\"\n"
  37613. "</FilesMatch>\"))))))\n"
  37614. "(service php-fpm-service-type\n"
  37615. " (php-fpm-configuration\n"
  37616. " (socket \"/var/run/php-fpm.sock\")\n"
  37617. " (socket-group \"httpd\")))\n"
  37618. msgstr ""
  37619. #. type: item
  37620. #: guix-git/doc/guix.texi:25179
  37621. #, no-wrap
  37622. msgid "@code{server-root} (default: @code{httpd})"
  37623. msgstr ""
  37624. #. type: table
  37625. #: guix-git/doc/guix.texi:25183
  37626. 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."
  37627. msgstr ""
  37628. #. type: item
  37629. #: guix-git/doc/guix.texi:25184
  37630. #, no-wrap
  37631. msgid "@code{server-name} (default: @code{#f})"
  37632. msgstr ""
  37633. #. type: table
  37634. #: guix-git/doc/guix.texi:25188
  37635. msgid "The @code{ServerName} in the configuration file, used to specify the request scheme, hostname and port that the server uses to identify itself."
  37636. msgstr ""
  37637. #. type: table
  37638. #: guix-git/doc/guix.texi:25192
  37639. 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}."
  37640. msgstr ""
  37641. #. type: item
  37642. #: guix-git/doc/guix.texi:25193
  37643. #, no-wrap
  37644. msgid "@code{document-root} (default: @code{\"/srv/http\"})"
  37645. msgstr ""
  37646. #. type: table
  37647. #: guix-git/doc/guix.texi:25195
  37648. msgid "The @code{DocumentRoot} from which files will be served."
  37649. msgstr ""
  37650. #. type: item
  37651. #: guix-git/doc/guix.texi:25196
  37652. #, no-wrap
  37653. msgid "@code{listen} (default: @code{'(\"80\")})"
  37654. msgstr ""
  37655. #. type: table
  37656. #: guix-git/doc/guix.texi:25201
  37657. 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."
  37658. msgstr ""
  37659. #. type: table
  37660. #: guix-git/doc/guix.texi:25206
  37661. 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."
  37662. msgstr ""
  37663. #. type: item
  37664. #: guix-git/doc/guix.texi:25207
  37665. #, no-wrap
  37666. msgid "@code{error-log} (default: @code{\"/var/log/httpd/error_log\"})"
  37667. msgstr ""
  37668. #. type: table
  37669. #: guix-git/doc/guix.texi:25209
  37670. msgid "The @code{ErrorLog} to which the server will log errors."
  37671. msgstr ""
  37672. #. type: item
  37673. #: guix-git/doc/guix.texi:25210 guix-git/doc/guix.texi:25772
  37674. #, no-wrap
  37675. msgid "@code{user} (default: @code{\"httpd\"})"
  37676. msgstr ""
  37677. #. type: table
  37678. #: guix-git/doc/guix.texi:25212
  37679. msgid "The @code{User} which the server will answer requests as."
  37680. msgstr ""
  37681. #. type: item
  37682. #: guix-git/doc/guix.texi:25213
  37683. #, no-wrap
  37684. msgid "@code{group} (default: @code{\"httpd\"})"
  37685. msgstr ""
  37686. #. type: table
  37687. #: guix-git/doc/guix.texi:25215
  37688. msgid "The @code{Group} which the server will answer requests as."
  37689. msgstr ""
  37690. #. type: item
  37691. #: guix-git/doc/guix.texi:25216
  37692. #, no-wrap
  37693. msgid "@code{extra-config} (default: @code{(list \"TypesConfig etc/httpd/mime.types\")})"
  37694. msgstr ""
  37695. #. type: table
  37696. #: guix-git/doc/guix.texi:25219
  37697. msgid "A flat list of strings and G-expressions which will be added to the end of the configuration file."
  37698. msgstr ""
  37699. #. type: table
  37700. #: guix-git/doc/guix.texi:25222
  37701. msgid "Any values which the service is extended with will be appended to this list."
  37702. msgstr ""
  37703. #. type: deffn
  37704. #: guix-git/doc/guix.texi:25226
  37705. #, no-wrap
  37706. msgid "{Data Type} httpd-virtualhost"
  37707. msgstr ""
  37708. #. type: deffn
  37709. #: guix-git/doc/guix.texi:25228
  37710. msgid "This data type represents a virtualhost configuration block for the httpd service."
  37711. msgstr ""
  37712. #. type: deffn
  37713. #: guix-git/doc/guix.texi:25230
  37714. msgid "These should be added to the extra-config for the httpd-service."
  37715. msgstr ""
  37716. #. type: code{#1}
  37717. #: guix-git/doc/guix.texi:25242
  37718. #, no-wrap
  37719. msgid "addresses-and-ports"
  37720. msgstr ""
  37721. #. type: table
  37722. #: guix-git/doc/guix.texi:25244
  37723. msgid "The addresses and ports for the @code{VirtualHost} directive."
  37724. msgstr ""
  37725. #. type: code{#1}
  37726. #: guix-git/doc/guix.texi:25245
  37727. #, no-wrap
  37728. msgid "contents"
  37729. msgstr ""
  37730. #. type: table
  37731. #: guix-git/doc/guix.texi:25248
  37732. msgid "The contents of the @code{VirtualHost} directive, this should be a list of strings and G-expressions."
  37733. msgstr ""
  37734. #. type: subsubheading
  37735. #: guix-git/doc/guix.texi:25253
  37736. #, no-wrap
  37737. msgid "NGINX"
  37738. msgstr ""
  37739. #. type: deffn
  37740. #: guix-git/doc/guix.texi:25255
  37741. #, no-wrap
  37742. msgid "{Scheme Variable} nginx-service-type"
  37743. msgstr ""
  37744. #. type: deffn
  37745. #: guix-git/doc/guix.texi:25258
  37746. msgid "Service type for the @uref{https://nginx.org/,NGinx} web server. The value for this service type is a @code{<nginx-configuration>} record."
  37747. msgstr ""
  37748. #. type: lisp
  37749. #: guix-git/doc/guix.texi:25268 guix-git/doc/guix.texi:25322
  37750. #, no-wrap
  37751. msgid ""
  37752. "(service nginx-service-type\n"
  37753. " (nginx-configuration\n"
  37754. " (server-blocks\n"
  37755. " (list (nginx-server-configuration\n"
  37756. " (server-name '(\"www.example.com\"))\n"
  37757. " (root \"/srv/http/www.example.com\"))))))\n"
  37758. msgstr ""
  37759. #. type: deffn
  37760. #: guix-git/doc/guix.texi:25273
  37761. 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:"
  37762. msgstr ""
  37763. #. type: lisp
  37764. #: guix-git/doc/guix.texi:25279
  37765. #, no-wrap
  37766. msgid ""
  37767. "(simple-service 'my-extra-server nginx-service-type\n"
  37768. " (list (nginx-server-configuration\n"
  37769. " (root \"/srv/http/extra-website\")\n"
  37770. " (try-files (list \"$uri\" \"$uri/index.html\")))))\n"
  37771. msgstr ""
  37772. #. type: Plain text
  37773. #: guix-git/doc/guix.texi:25290
  37774. 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."
  37775. msgstr ""
  37776. #. type: deffn
  37777. #: guix-git/doc/guix.texi:25291
  37778. #, no-wrap
  37779. msgid "{Data Type} nginx-configuration"
  37780. msgstr ""
  37781. #. type: deffn
  37782. #: guix-git/doc/guix.texi:25295
  37783. 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."
  37784. msgstr ""
  37785. #. type: item
  37786. #: guix-git/doc/guix.texi:25297
  37787. #, no-wrap
  37788. msgid "@code{nginx} (default: @code{nginx})"
  37789. msgstr ""
  37790. #. type: table
  37791. #: guix-git/doc/guix.texi:25299
  37792. msgid "The nginx package to use."
  37793. msgstr ""
  37794. #. type: item
  37795. #: guix-git/doc/guix.texi:25300
  37796. #, no-wrap
  37797. msgid "@code{log-directory} (default: @code{\"/var/log/nginx\"})"
  37798. msgstr ""
  37799. #. type: table
  37800. #: guix-git/doc/guix.texi:25302
  37801. msgid "The directory to which NGinx will write log files."
  37802. msgstr ""
  37803. #. type: item
  37804. #: guix-git/doc/guix.texi:25303
  37805. #, no-wrap
  37806. msgid "@code{run-directory} (default: @code{\"/var/run/nginx\"})"
  37807. msgstr ""
  37808. #. type: table
  37809. #: guix-git/doc/guix.texi:25306
  37810. msgid "The directory in which NGinx will create a pid file, and write temporary files."
  37811. msgstr ""
  37812. #. type: item
  37813. #: guix-git/doc/guix.texi:25307
  37814. #, no-wrap
  37815. msgid "@code{server-blocks} (default: @code{'()})"
  37816. msgstr ""
  37817. #. type: table
  37818. #: guix-git/doc/guix.texi:25311
  37819. msgid "A list of @dfn{server blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-server-configuration>}."
  37820. msgstr ""
  37821. #. type: table
  37822. #: guix-git/doc/guix.texi:25315
  37823. 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."
  37824. msgstr ""
  37825. #. type: item
  37826. #: guix-git/doc/guix.texi:25324
  37827. #, no-wrap
  37828. msgid "@code{upstream-blocks} (default: @code{'()})"
  37829. msgstr ""
  37830. #. type: table
  37831. #: guix-git/doc/guix.texi:25328
  37832. msgid "A list of @dfn{upstream blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-upstream-configuration>}."
  37833. msgstr ""
  37834. #. type: table
  37835. #: guix-git/doc/guix.texi:25335
  37836. 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."
  37837. msgstr ""
  37838. #. type: lisp
  37839. #: guix-git/doc/guix.texi:25354
  37840. #, no-wrap
  37841. msgid ""
  37842. "(service\n"
  37843. " nginx-service-type\n"
  37844. " (nginx-configuration\n"
  37845. " (server-blocks\n"
  37846. " (list (nginx-server-configuration\n"
  37847. " (server-name '(\"www.example.com\"))\n"
  37848. " (root \"/srv/http/www.example.com\")\n"
  37849. " (locations\n"
  37850. " (list\n"
  37851. " (nginx-location-configuration\n"
  37852. " (uri \"/path1\")\n"
  37853. " (body '(\"proxy_pass http://server-proxy;\"))))))))\n"
  37854. " (upstream-blocks\n"
  37855. " (list (nginx-upstream-configuration\n"
  37856. " (name \"server-proxy\")\n"
  37857. " (servers (list \"server1.example.com\"\n"
  37858. " \"server2.example.com\")))))))\n"
  37859. msgstr ""
  37860. #. type: table
  37861. #: guix-git/doc/guix.texi:25362
  37862. 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."
  37863. msgstr ""
  37864. #. type: table
  37865. #: guix-git/doc/guix.texi:25366
  37866. 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."
  37867. msgstr ""
  37868. #. type: item
  37869. #: guix-git/doc/guix.texi:25367
  37870. #, no-wrap
  37871. msgid "@code{server-names-hash-bucket-size} (default: @code{#f})"
  37872. msgstr ""
  37873. #. type: table
  37874. #: guix-git/doc/guix.texi:25370
  37875. msgid "Bucket size for the server names hash tables, defaults to @code{#f} to use the size of the processors cache line."
  37876. msgstr ""
  37877. #. type: item
  37878. #: guix-git/doc/guix.texi:25371
  37879. #, no-wrap
  37880. msgid "@code{server-names-hash-bucket-max-size} (default: @code{#f})"
  37881. msgstr ""
  37882. #. type: table
  37883. #: guix-git/doc/guix.texi:25373
  37884. msgid "Maximum bucket size for the server names hash tables."
  37885. msgstr ""
  37886. #. type: table
  37887. #: guix-git/doc/guix.texi:25377
  37888. msgid "List of nginx dynamic modules to load. This should be a list of file names of loadable modules, as in this example:"
  37889. msgstr ""
  37890. #. type: lisp
  37891. #: guix-git/doc/guix.texi:25385
  37892. #, no-wrap
  37893. msgid ""
  37894. "(modules\n"
  37895. " (list\n"
  37896. " (file-append nginx-accept-language-module \"\\\n"
  37897. "/etc/nginx/modules/ngx_http_accept_language_module.so\")\n"
  37898. " (file-append nginx-lua-module \"\\\n"
  37899. "/etc/nginx/modules/ngx_http_lua_module.so\")))\n"
  37900. msgstr ""
  37901. #. type: item
  37902. #: guix-git/doc/guix.texi:25387
  37903. #, fuzzy, no-wrap
  37904. msgid "@code{lua-package-path} (default: @code{'()})"
  37905. msgstr "@code{features} (@code{'()})"
  37906. #. type: table
  37907. #: guix-git/doc/guix.texi:25390
  37908. msgid "List of nginx lua packages to load. This should be a list of package names of loadable lua modules, as in this example:"
  37909. msgstr ""
  37910. #. type: lisp
  37911. #: guix-git/doc/guix.texi:25397
  37912. #, no-wrap
  37913. msgid ""
  37914. "(lua-package-path (list lua-resty-core\n"
  37915. " lua-resty-lrucache\n"
  37916. " lua-resty-signal\n"
  37917. " lua-tablepool\n"
  37918. " lua-resty-shell))\n"
  37919. msgstr ""
  37920. #. type: item
  37921. #: guix-git/doc/guix.texi:25399
  37922. #, fuzzy, no-wrap
  37923. msgid "@code{lua-package-cpath} (default: @code{'()})"
  37924. msgstr "@code{features} (@code{'()})"
  37925. #. type: table
  37926. #: guix-git/doc/guix.texi:25402
  37927. 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:"
  37928. msgstr ""
  37929. #. type: lisp
  37930. #: guix-git/doc/guix.texi:25405
  37931. #, no-wrap
  37932. msgid "(lua-package-cpath (list lua-resty-signal))\n"
  37933. msgstr ""
  37934. #. type: item
  37935. #: guix-git/doc/guix.texi:25407
  37936. #, fuzzy, no-wrap
  37937. msgid "@code{global-directives} (default: @code{'((events . ()))})"
  37938. msgstr "@code{features} (@code{'()})"
  37939. #. type: table
  37940. #: guix-git/doc/guix.texi:25410
  37941. msgid "Association list of global directives for the top level of the nginx configuration. Values may themselves be association lists."
  37942. msgstr ""
  37943. #. type: lisp
  37944. #: guix-git/doc/guix.texi:25416
  37945. #, no-wrap
  37946. msgid ""
  37947. "(global-directives\n"
  37948. " `((worker_processes . 16)\n"
  37949. " (pcre_jit . on)\n"
  37950. " (events . ((worker_connections . 1024)))))\n"
  37951. msgstr ""
  37952. #. type: table
  37953. #: guix-git/doc/guix.texi:25421
  37954. msgid "Extra content for the @code{http} block. Should be string or a string valued G-expression."
  37955. msgstr ""
  37956. #. type: deftp
  37957. #: guix-git/doc/guix.texi:25425
  37958. #, no-wrap
  37959. msgid "{Data Type} nginx-server-configuration"
  37960. msgstr ""
  37961. #. type: deftp
  37962. #: guix-git/doc/guix.texi:25428
  37963. msgid "Data type representing the configuration of an nginx server block. This type has the following parameters:"
  37964. msgstr ""
  37965. #. type: item
  37966. #: guix-git/doc/guix.texi:25430
  37967. #, no-wrap
  37968. msgid "@code{listen} (default: @code{'(\"80\" \"443 ssl\")})"
  37969. msgstr ""
  37970. #. type: table
  37971. #: guix-git/doc/guix.texi:25435
  37972. 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:"
  37973. msgstr ""
  37974. #. type: lisp
  37975. #: guix-git/doc/guix.texi:25438
  37976. #, no-wrap
  37977. msgid "'(\"127.0.0.1:8000\" \"127.0.0.1\" \"8000\" \"*:8000\" \"localhost:8000\")\n"
  37978. msgstr ""
  37979. #. type: item
  37980. #: guix-git/doc/guix.texi:25440
  37981. #, no-wrap
  37982. msgid "@code{server-name} (default: @code{(list 'default)})"
  37983. msgstr ""
  37984. #. type: table
  37985. #: guix-git/doc/guix.texi:25443
  37986. msgid "A list of server names this server represents. @code{'default} represents the default server for connections matching no other server."
  37987. msgstr ""
  37988. #. type: item
  37989. #: guix-git/doc/guix.texi:25444
  37990. #, no-wrap
  37991. msgid "@code{root} (default: @code{\"/srv/http\"})"
  37992. msgstr ""
  37993. #. type: table
  37994. #: guix-git/doc/guix.texi:25446
  37995. msgid "Root of the website nginx will serve."
  37996. msgstr ""
  37997. #. type: item
  37998. #: guix-git/doc/guix.texi:25447
  37999. #, no-wrap
  38000. msgid "@code{locations} (default: @code{'()})"
  38001. msgstr ""
  38002. #. type: table
  38003. #: guix-git/doc/guix.texi:25451
  38004. msgid "A list of @dfn{nginx-location-configuration} or @dfn{nginx-named-location-configuration} records to use within this server block."
  38005. msgstr ""
  38006. #. type: item
  38007. #: guix-git/doc/guix.texi:25452
  38008. #, no-wrap
  38009. msgid "@code{index} (default: @code{(list \"index.html\")})"
  38010. msgstr ""
  38011. #. type: table
  38012. #: guix-git/doc/guix.texi:25455
  38013. 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."
  38014. msgstr ""
  38015. #. type: item
  38016. #: guix-git/doc/guix.texi:25456
  38017. #, no-wrap
  38018. msgid "@code{try-files} (default: @code{'()})"
  38019. msgstr ""
  38020. #. type: table
  38021. #: guix-git/doc/guix.texi:25459
  38022. 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."
  38023. msgstr ""
  38024. #. type: item
  38025. #: guix-git/doc/guix.texi:25460
  38026. #, no-wrap
  38027. msgid "@code{ssl-certificate} (default: @code{#f})"
  38028. msgstr ""
  38029. #. type: table
  38030. #: guix-git/doc/guix.texi:25463
  38031. 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."
  38032. msgstr ""
  38033. #. type: item
  38034. #: guix-git/doc/guix.texi:25464
  38035. #, no-wrap
  38036. msgid "@code{ssl-certificate-key} (default: @code{#f})"
  38037. msgstr ""
  38038. #. type: table
  38039. #: guix-git/doc/guix.texi:25467
  38040. 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."
  38041. msgstr ""
  38042. #. type: item
  38043. #: guix-git/doc/guix.texi:25468
  38044. #, no-wrap
  38045. msgid "@code{server-tokens?} (default: @code{#f})"
  38046. msgstr ""
  38047. #. type: table
  38048. #: guix-git/doc/guix.texi:25470
  38049. msgid "Whether the server should add its configuration to response."
  38050. msgstr ""
  38051. #. type: item
  38052. #: guix-git/doc/guix.texi:25471
  38053. #, no-wrap
  38054. msgid "@code{raw-content} (default: @code{'()})"
  38055. msgstr ""
  38056. #. type: table
  38057. #: guix-git/doc/guix.texi:25473
  38058. msgid "A list of raw lines added to the server block."
  38059. msgstr ""
  38060. #. type: deftp
  38061. #: guix-git/doc/guix.texi:25477
  38062. #, no-wrap
  38063. msgid "{Data Type} nginx-upstream-configuration"
  38064. msgstr ""
  38065. #. type: deftp
  38066. #: guix-git/doc/guix.texi:25480
  38067. msgid "Data type representing the configuration of an nginx @code{upstream} block. This type has the following parameters:"
  38068. msgstr ""
  38069. #. type: table
  38070. #: guix-git/doc/guix.texi:25484
  38071. msgid "Name for this group of servers."
  38072. msgstr ""
  38073. #. type: code{#1}
  38074. #: guix-git/doc/guix.texi:25485
  38075. #, no-wrap
  38076. msgid "servers"
  38077. msgstr ""
  38078. #. type: table
  38079. #: guix-git/doc/guix.texi:25492
  38080. 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."
  38081. msgstr ""
  38082. #. type: deftp
  38083. #: guix-git/doc/guix.texi:25496
  38084. #, no-wrap
  38085. msgid "{Data Type} nginx-location-configuration"
  38086. msgstr ""
  38087. #. type: deftp
  38088. #: guix-git/doc/guix.texi:25499
  38089. msgid "Data type representing the configuration of an nginx @code{location} block. This type has the following parameters:"
  38090. msgstr ""
  38091. #. type: table
  38092. #: guix-git/doc/guix.texi:25503
  38093. msgid "URI which this location block matches."
  38094. msgstr ""
  38095. #. type: anchor{#1}
  38096. #: guix-git/doc/guix.texi:25505
  38097. msgid "nginx-location-configuration body"
  38098. msgstr ""
  38099. #. type: code{#1}
  38100. #: guix-git/doc/guix.texi:25505 guix-git/doc/guix.texi:25526
  38101. #, no-wrap
  38102. msgid "body"
  38103. msgstr ""
  38104. #. type: table
  38105. #: guix-git/doc/guix.texi:25512
  38106. 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;\")}."
  38107. msgstr ""
  38108. #. type: deftp
  38109. #: guix-git/doc/guix.texi:25516
  38110. #, no-wrap
  38111. msgid "{Data Type} nginx-named-location-configuration"
  38112. msgstr ""
  38113. #. type: deftp
  38114. #: guix-git/doc/guix.texi:25521
  38115. 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:"
  38116. msgstr ""
  38117. #. type: table
  38118. #: guix-git/doc/guix.texi:25525
  38119. msgid "Name to identify this location block."
  38120. msgstr ""
  38121. #. type: table
  38122. #: guix-git/doc/guix.texi:25531
  38123. 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."
  38124. msgstr ""
  38125. #. type: subsubheading
  38126. #: guix-git/doc/guix.texi:25535
  38127. #, no-wrap
  38128. msgid "Varnish Cache"
  38129. msgstr ""
  38130. #. type: cindex
  38131. #: guix-git/doc/guix.texi:25536
  38132. #, no-wrap
  38133. msgid "Varnish"
  38134. msgstr ""
  38135. #. type: Plain text
  38136. #: guix-git/doc/guix.texi:25541
  38137. 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."
  38138. msgstr ""
  38139. #. type: defvr
  38140. #: guix-git/doc/guix.texi:25542
  38141. #, no-wrap
  38142. msgid "{Scheme Variable} varnish-service-type"
  38143. msgstr ""
  38144. #. type: defvr
  38145. #: guix-git/doc/guix.texi:25544
  38146. msgid "Service type for the Varnish daemon."
  38147. msgstr ""
  38148. #. type: deftp
  38149. #: guix-git/doc/guix.texi:25546
  38150. #, no-wrap
  38151. msgid "{Data Type} varnish-configuration"
  38152. msgstr ""
  38153. #. type: deftp
  38154. #: guix-git/doc/guix.texi:25549
  38155. msgid "Data type representing the @code{varnish} service configuration. This type has the following parameters:"
  38156. msgstr ""
  38157. #. type: item
  38158. #: guix-git/doc/guix.texi:25551
  38159. #, no-wrap
  38160. msgid "@code{package} (default: @code{varnish})"
  38161. msgstr ""
  38162. #. type: table
  38163. #: guix-git/doc/guix.texi:25553
  38164. msgid "The Varnish package to use."
  38165. msgstr ""
  38166. #. type: item
  38167. #: guix-git/doc/guix.texi:25554
  38168. #, no-wrap
  38169. msgid "@code{name} (default: @code{\"default\"})"
  38170. msgstr ""
  38171. #. type: table
  38172. #: guix-git/doc/guix.texi:25559
  38173. 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."
  38174. msgstr ""
  38175. #. type: table
  38176. #: guix-git/doc/guix.texi:25562
  38177. msgid "Pass the @code{-n} argument to other Varnish programs to connect to the named instance, e.g.@: @command{varnishncsa -n default}."
  38178. msgstr ""
  38179. #. type: item
  38180. #: guix-git/doc/guix.texi:25563
  38181. #, no-wrap
  38182. msgid "@code{backend} (default: @code{\"localhost:8080\"})"
  38183. msgstr ""
  38184. #. type: table
  38185. #: guix-git/doc/guix.texi:25565
  38186. msgid "The backend to use. This option has no effect if @code{vcl} is set."
  38187. msgstr ""
  38188. #. type: item
  38189. #: guix-git/doc/guix.texi:25566
  38190. #, no-wrap
  38191. msgid "@code{vcl} (default: #f)"
  38192. msgstr ""
  38193. #. type: table
  38194. #: guix-git/doc/guix.texi:25571
  38195. 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."
  38196. msgstr ""
  38197. #. type: table
  38198. #: guix-git/doc/guix.texi:25575
  38199. msgid "For example, to mirror @url{https://www.gnu.org,www.gnu.org} with VCL you can do something along these lines:"
  38200. msgstr ""
  38201. #. type: lisp
  38202. #: guix-git/doc/guix.texi:25581
  38203. #, no-wrap
  38204. msgid ""
  38205. "(define %gnu-mirror\n"
  38206. " (plain-file \"gnu.vcl\"\n"
  38207. " \"vcl 4.1;\n"
  38208. "backend gnu @{ .host = \\\"www.gnu.org\\\"; @}\"))\n"
  38209. "\n"
  38210. msgstr ""
  38211. #. type: lisp
  38212. #: guix-git/doc/guix.texi:25589
  38213. #, no-wrap
  38214. msgid ""
  38215. "(operating-system\n"
  38216. " ;; @dots{}\n"
  38217. " (services (cons (service varnish-service-type\n"
  38218. " (varnish-configuration\n"
  38219. " (listen '(\":80\"))\n"
  38220. " (vcl %gnu-mirror)))\n"
  38221. " %base-services)))\n"
  38222. msgstr ""
  38223. #. type: table
  38224. #: guix-git/doc/guix.texi:25593
  38225. msgid "The configuration of an already running Varnish instance can be inspected and changed using the @command{varnishadm} program."
  38226. msgstr ""
  38227. #. type: table
  38228. #: guix-git/doc/guix.texi:25597
  38229. 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."
  38230. msgstr ""
  38231. #. type: item
  38232. #: guix-git/doc/guix.texi:25598
  38233. #, no-wrap
  38234. msgid "@code{listen} (default: @code{'(\"localhost:80\")})"
  38235. msgstr ""
  38236. #. type: table
  38237. #: guix-git/doc/guix.texi:25600
  38238. msgid "List of addresses Varnish will listen on."
  38239. msgstr ""
  38240. #. type: item
  38241. #: guix-git/doc/guix.texi:25601
  38242. #, no-wrap
  38243. msgid "@code{storage} (default: @code{'(\"malloc,128m\")})"
  38244. msgstr ""
  38245. #. type: table
  38246. #: guix-git/doc/guix.texi:25603
  38247. msgid "List of storage backends that will be available in VCL."
  38248. msgstr ""
  38249. #. type: item
  38250. #: guix-git/doc/guix.texi:25604
  38251. #, no-wrap
  38252. msgid "@code{parameters} (default: @code{'()})"
  38253. msgstr ""
  38254. #. type: table
  38255. #: guix-git/doc/guix.texi:25606
  38256. msgid "List of run-time parameters in the form @code{'((\"parameter\" . \"value\"))}."
  38257. msgstr ""
  38258. #. type: table
  38259. #: guix-git/doc/guix.texi:25609
  38260. msgid "Additional arguments to pass to the @command{varnishd} process."
  38261. msgstr ""
  38262. #. type: cindex
  38263. #: guix-git/doc/guix.texi:25613 guix-git/doc/guix.texi:25614
  38264. #, no-wrap
  38265. msgid "Patchwork"
  38266. msgstr ""
  38267. #. type: Plain text
  38268. #: guix-git/doc/guix.texi:25617
  38269. msgid "Patchwork is a patch tracking system. It can collect patches sent to a mailing list, and display them in a web interface."
  38270. msgstr ""
  38271. #. type: defvr
  38272. #: guix-git/doc/guix.texi:25618
  38273. #, no-wrap
  38274. msgid "{Scheme Variable} patchwork-service-type"
  38275. msgstr ""
  38276. #. type: defvr
  38277. #: guix-git/doc/guix.texi:25620
  38278. #, fuzzy
  38279. msgid "Service type for Patchwork."
  38280. msgstr "分享你的工作。"
  38281. #. type: Plain text
  38282. #: guix-git/doc/guix.texi:25624
  38283. msgid "The following example is an example of a minimal service for Patchwork, for the @code{patchwork.example.com} domain."
  38284. msgstr ""
  38285. #. type: lisp
  38286. #: guix-git/doc/guix.texi:25644
  38287. #, no-wrap
  38288. msgid ""
  38289. "(service patchwork-service-type\n"
  38290. " (patchwork-configuration\n"
  38291. " (domain \"patchwork.example.com\")\n"
  38292. " (settings-module\n"
  38293. " (patchwork-settings-module\n"
  38294. " (allowed-hosts (list domain))\n"
  38295. " (default-from-email \"patchwork@@patchwork.example.com\")))\n"
  38296. " (getmail-retriever-config\n"
  38297. " (getmail-retriever-configuration\n"
  38298. " (type \"SimpleIMAPSSLRetriever\")\n"
  38299. " (server \"imap.example.com\")\n"
  38300. " (port 993)\n"
  38301. " (username \"patchwork\")\n"
  38302. " (password-command\n"
  38303. " (list (file-append coreutils \"/bin/cat\")\n"
  38304. " \"/etc/getmail-patchwork-imap-password\"))\n"
  38305. " (extra-parameters\n"
  38306. " '((mailboxes . (\"Patches\"))))))))\n"
  38307. "\n"
  38308. msgstr ""
  38309. #. type: Plain text
  38310. #: guix-git/doc/guix.texi:25650
  38311. msgid "There are three records for configuring the Patchwork service. The @code{<patchwork-configuration>} relates to the configuration for Patchwork within the HTTPD service."
  38312. msgstr ""
  38313. #. type: Plain text
  38314. #: guix-git/doc/guix.texi:25654
  38315. 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."
  38316. msgstr ""
  38317. #. type: Plain text
  38318. #: guix-git/doc/guix.texi:25658
  38319. msgid "For the @code{database-configuration} field within the @code{<patchwork-settings-module>}, the @code{<patchwork-database-configuration>} must be used."
  38320. msgstr ""
  38321. #. type: deftp
  38322. #: guix-git/doc/guix.texi:25659
  38323. #, no-wrap
  38324. msgid "{Data Type} patchwork-configuration"
  38325. msgstr ""
  38326. #. type: deftp
  38327. #: guix-git/doc/guix.texi:25662
  38328. msgid "Data type representing the Patchwork service configuration. This type has the following parameters:"
  38329. msgstr ""
  38330. #. type: item
  38331. #: guix-git/doc/guix.texi:25664
  38332. #, fuzzy, no-wrap
  38333. msgid "@code{patchwork} (default: @code{patchwork})"
  38334. msgstr "@code{mate}(默认值:@code{mate})"
  38335. #. type: table
  38336. #: guix-git/doc/guix.texi:25666
  38337. #, fuzzy
  38338. msgid "The Patchwork package to use."
  38339. msgstr "软件包数据类型。"
  38340. #. type: code{#1}
  38341. #: guix-git/doc/guix.texi:25667
  38342. #, no-wrap
  38343. msgid "domain"
  38344. msgstr ""
  38345. #. type: table
  38346. #: guix-git/doc/guix.texi:25670
  38347. msgid "The domain to use for Patchwork, this is used in the HTTPD service virtual host."
  38348. msgstr ""
  38349. #. type: code{#1}
  38350. #: guix-git/doc/guix.texi:25671
  38351. #, no-wrap
  38352. msgid "settings-module"
  38353. msgstr ""
  38354. #. type: table
  38355. #: guix-git/doc/guix.texi:25677
  38356. 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."
  38357. msgstr ""
  38358. #. type: item
  38359. #: guix-git/doc/guix.texi:25678
  38360. #, fuzzy, no-wrap
  38361. msgid "@code{static-path} (default: @code{\"/static/\"})"
  38362. msgstr "@code{mate}(默认值:@code{mate})"
  38363. #. type: table
  38364. #: guix-git/doc/guix.texi:25680
  38365. msgid "The path under which the HTTPD service should serve the static files."
  38366. msgstr ""
  38367. #. type: code{#1}
  38368. #: guix-git/doc/guix.texi:25681
  38369. #, no-wrap
  38370. msgid "getmail-retriever-config"
  38371. msgstr ""
  38372. #. type: table
  38373. #: guix-git/doc/guix.texi:25685
  38374. 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."
  38375. msgstr ""
  38376. #. type: deftp
  38377. #: guix-git/doc/guix.texi:25689
  38378. #, no-wrap
  38379. msgid "{Data Type} patchwork-settings-module"
  38380. msgstr ""
  38381. #. type: deftp
  38382. #: guix-git/doc/guix.texi:25694
  38383. 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:"
  38384. msgstr ""
  38385. #. type: item
  38386. #: guix-git/doc/guix.texi:25696
  38387. #, no-wrap
  38388. msgid "@code{database-configuration} (default: @code{(patchwork-database-configuration)})"
  38389. msgstr ""
  38390. #. type: table
  38391. #: guix-git/doc/guix.texi:25699
  38392. msgid "The database connection settings used for Patchwork. See the @code{<patchwork-database-configuration>} record type for more information."
  38393. msgstr ""
  38394. #. type: item
  38395. #: guix-git/doc/guix.texi:25700
  38396. #, fuzzy, no-wrap
  38397. msgid "@code{secret-key-file} (default: @code{\"/etc/patchwork/django-secret-key\"})"
  38398. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  38399. #. type: table
  38400. #: guix-git/doc/guix.texi:25703
  38401. msgid "Patchwork, as a Django web application uses a secret key for cryptographically signing values. This file should contain a unique unpredictable value."
  38402. msgstr ""
  38403. #. type: table
  38404. #: guix-git/doc/guix.texi:25706
  38405. msgid "If this file does not exist, it will be created and populated with a random value by the patchwork-setup shepherd service."
  38406. msgstr ""
  38407. #. type: table
  38408. #: guix-git/doc/guix.texi:25708
  38409. msgid "This setting relates to Django."
  38410. msgstr ""
  38411. #. type: code{#1}
  38412. #: guix-git/doc/guix.texi:25709
  38413. #, no-wrap
  38414. msgid "allowed-hosts"
  38415. msgstr ""
  38416. #. type: table
  38417. #: guix-git/doc/guix.texi:25712
  38418. msgid "A list of valid hosts for this Patchwork service. This should at least include the domain specified in the @code{<patchwork-configuration>} record."
  38419. msgstr ""
  38420. #. type: table
  38421. #: guix-git/doc/guix.texi:25714 guix-git/doc/guix.texi:25728
  38422. #: guix-git/doc/guix.texi:25734 guix-git/doc/guix.texi:25740
  38423. msgid "This is a Django setting."
  38424. msgstr ""
  38425. #. type: code{#1}
  38426. #: guix-git/doc/guix.texi:25715
  38427. #, no-wrap
  38428. msgid "default-from-email"
  38429. msgstr ""
  38430. #. type: table
  38431. #: guix-git/doc/guix.texi:25717
  38432. msgid "The email address from which Patchwork should send email by default."
  38433. msgstr ""
  38434. #. type: table
  38435. #: guix-git/doc/guix.texi:25719 guix-git/doc/guix.texi:25745
  38436. #: guix-git/doc/guix.texi:25750 guix-git/doc/guix.texi:25755
  38437. msgid "This is a Patchwork setting."
  38438. msgstr ""
  38439. #. type: item
  38440. #: guix-git/doc/guix.texi:25720
  38441. #, fuzzy, no-wrap
  38442. msgid "@code{static-url} (default: @code{#f})"
  38443. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38444. #. type: table
  38445. #: guix-git/doc/guix.texi:25723
  38446. 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{/}."
  38447. msgstr ""
  38448. #. type: table
  38449. #: guix-git/doc/guix.texi:25726
  38450. msgid "If the default value is used, the @code{static-path} value from the @code{<patchwork-configuration>} record will be used."
  38451. msgstr ""
  38452. #. type: item
  38453. #: guix-git/doc/guix.texi:25729
  38454. #, fuzzy, no-wrap
  38455. msgid "@code{admins} (default: @code{'()})"
  38456. msgstr "@code{includes}(默认值:@code{'()})"
  38457. #. type: table
  38458. #: guix-git/doc/guix.texi:25732
  38459. 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."
  38460. msgstr ""
  38461. #. type: table
  38462. #: guix-git/doc/guix.texi:25738
  38463. msgid "Whether to run Patchwork in debug mode. If set to @code{#t}, detailed error messages will be shown."
  38464. msgstr ""
  38465. #. type: item
  38466. #: guix-git/doc/guix.texi:25741
  38467. #, fuzzy, no-wrap
  38468. msgid "@code{enable-rest-api?} (default: @code{#t})"
  38469. msgstr "@code{challenge}(默认值:@code{#f})"
  38470. #. type: table
  38471. #: guix-git/doc/guix.texi:25743
  38472. msgid "Whether to enable the Patchwork REST API."
  38473. msgstr ""
  38474. #. type: item
  38475. #: guix-git/doc/guix.texi:25746
  38476. #, fuzzy, no-wrap
  38477. msgid "@code{enable-xmlrpc?} (default: @code{#t})"
  38478. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  38479. #. type: table
  38480. #: guix-git/doc/guix.texi:25748
  38481. msgid "Whether to enable the XML RPC API."
  38482. msgstr ""
  38483. #. type: item
  38484. #: guix-git/doc/guix.texi:25751
  38485. #, fuzzy, no-wrap
  38486. msgid "@code{force-https-links?} (default: @code{#t})"
  38487. msgstr "@code{challenge}(默认值:@code{#f})"
  38488. #. type: table
  38489. #: guix-git/doc/guix.texi:25753
  38490. msgid "Whether to use HTTPS links on Patchwork pages."
  38491. msgstr ""
  38492. #. type: table
  38493. #: guix-git/doc/guix.texi:25758
  38494. msgid "Extra code to place at the end of the Patchwork settings module."
  38495. msgstr ""
  38496. #. type: deftp
  38497. #: guix-git/doc/guix.texi:25762
  38498. #, no-wrap
  38499. msgid "{Data Type} patchwork-database-configuration"
  38500. msgstr ""
  38501. #. type: deftp
  38502. #: guix-git/doc/guix.texi:25764
  38503. msgid "Data type representing the database configuration for Patchwork."
  38504. msgstr ""
  38505. #. type: item
  38506. #: guix-git/doc/guix.texi:25766
  38507. #, fuzzy, no-wrap
  38508. msgid "@code{engine} (default: @code{\"django.db.backends.postgresql_psycopg2\"})"
  38509. msgstr "@code{gnome}(默认值:@code{gnome})"
  38510. #. type: table
  38511. #: guix-git/doc/guix.texi:25768
  38512. msgid "The database engine to use."
  38513. msgstr ""
  38514. #. type: item
  38515. #: guix-git/doc/guix.texi:25769
  38516. #, fuzzy, no-wrap
  38517. msgid "@code{name} (default: @code{\"patchwork\"})"
  38518. msgstr "@code{mate}(默认值:@code{mate})"
  38519. #. type: table
  38520. #: guix-git/doc/guix.texi:25771
  38521. #, fuzzy
  38522. msgid "The name of the database to use."
  38523. msgstr "远程机器的主机名。"
  38524. #. type: table
  38525. #: guix-git/doc/guix.texi:25774
  38526. msgid "The user to connect to the database as."
  38527. msgstr ""
  38528. #. type: item
  38529. #: guix-git/doc/guix.texi:25775
  38530. #, fuzzy, no-wrap
  38531. msgid "@code{password} (default: @code{\"\"})"
  38532. msgstr "@code{port}(默认值:@code{22})"
  38533. #. type: table
  38534. #: guix-git/doc/guix.texi:25777
  38535. msgid "The password to use when connecting to the database."
  38536. msgstr ""
  38537. #. type: item
  38538. #: guix-git/doc/guix.texi:25778
  38539. #, fuzzy, no-wrap
  38540. msgid "@code{host} (default: @code{\"\"})"
  38541. msgstr "@code{port}(默认值:@code{22})"
  38542. #. type: table
  38543. #: guix-git/doc/guix.texi:25780
  38544. msgid "The host to make the database connection to."
  38545. msgstr ""
  38546. #. type: item
  38547. #: guix-git/doc/guix.texi:25781
  38548. #, fuzzy, no-wrap
  38549. msgid "@code{port} (default: @code{\"\"})"
  38550. msgstr "@code{port}(默认值:@code{22})"
  38551. #. type: table
  38552. #: guix-git/doc/guix.texi:25783
  38553. msgid "The port on which to connect to the database."
  38554. msgstr ""
  38555. #. type: subsubheading
  38556. #: guix-git/doc/guix.texi:25787
  38557. #, no-wrap
  38558. msgid "Mumi"
  38559. msgstr ""
  38560. #. type: cindex
  38561. #: guix-git/doc/guix.texi:25789
  38562. #, fuzzy, no-wrap
  38563. msgid "Mumi, Debbugs Web interface"
  38564. msgstr "用户界面"
  38565. #. type: cindex
  38566. #: guix-git/doc/guix.texi:25790
  38567. #, fuzzy, no-wrap
  38568. msgid "Debbugs, Mumi Web interface"
  38569. msgstr "用户界面"
  38570. #. type: Plain text
  38571. #: guix-git/doc/guix.texi:25795
  38572. 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."
  38573. msgstr ""
  38574. #. type: defvr
  38575. #: guix-git/doc/guix.texi:25796
  38576. #, no-wrap
  38577. msgid "{Scheme Variable} mumi-service-type"
  38578. msgstr ""
  38579. #. type: defvr
  38580. #: guix-git/doc/guix.texi:25798
  38581. msgid "This is the service type for Mumi."
  38582. msgstr ""
  38583. #. type: deftp
  38584. #: guix-git/doc/guix.texi:25800
  38585. #, fuzzy, no-wrap
  38586. msgid "{Data Type} mumi-configuration"
  38587. msgstr "{数据类型} build-machine"
  38588. #. type: deftp
  38589. #: guix-git/doc/guix.texi:25803
  38590. msgid "Data type representing the Mumi service configuration. This type has the following fields:"
  38591. msgstr ""
  38592. #. type: item
  38593. #: guix-git/doc/guix.texi:25805
  38594. #, fuzzy, no-wrap
  38595. msgid "@code{mumi} (default: @code{mumi})"
  38596. msgstr "@code{mate}(默认值:@code{mate})"
  38597. #. type: table
  38598. #: guix-git/doc/guix.texi:25807
  38599. #, fuzzy
  38600. msgid "The Mumi package to use."
  38601. msgstr "软件包数据类型。"
  38602. #. type: item
  38603. #: guix-git/doc/guix.texi:25808
  38604. #, fuzzy, no-wrap
  38605. msgid "@code{mailer?} (default: @code{#true})"
  38606. msgstr "@code{mate}(默认值:@code{mate})"
  38607. #. type: table
  38608. #: guix-git/doc/guix.texi:25810
  38609. msgid "Whether to enable or disable the mailer component."
  38610. msgstr ""
  38611. #. type: code{#1}
  38612. #: guix-git/doc/guix.texi:25811
  38613. #, no-wrap
  38614. msgid "mumi-configuration-sender"
  38615. msgstr ""
  38616. #. type: table
  38617. #: guix-git/doc/guix.texi:25813
  38618. msgid "The email address used as the sender for comments."
  38619. msgstr ""
  38620. #. type: code{#1}
  38621. #: guix-git/doc/guix.texi:25814
  38622. #, fuzzy, no-wrap
  38623. msgid "mumi-configuration-smtp"
  38624. msgstr "系统配置"
  38625. #. type: table
  38626. #: guix-git/doc/guix.texi:25819
  38627. 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}."
  38628. msgstr ""
  38629. #. type: subsubheading
  38630. #: guix-git/doc/guix.texi:25824
  38631. #, no-wrap
  38632. msgid "FastCGI"
  38633. msgstr ""
  38634. #. type: cindex
  38635. #: guix-git/doc/guix.texi:25825
  38636. #, no-wrap
  38637. msgid "fastcgi"
  38638. msgstr ""
  38639. #. type: cindex
  38640. #: guix-git/doc/guix.texi:25826
  38641. #, no-wrap
  38642. msgid "fcgiwrap"
  38643. msgstr ""
  38644. #. type: Plain text
  38645. #: guix-git/doc/guix.texi:25833
  38646. 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."
  38647. msgstr ""
  38648. #. type: Plain text
  38649. #: guix-git/doc/guix.texi:25840
  38650. 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."
  38651. msgstr ""
  38652. #. type: defvr
  38653. #: guix-git/doc/guix.texi:25841
  38654. #, no-wrap
  38655. msgid "{Scheme Variable} fcgiwrap-service-type"
  38656. msgstr ""
  38657. #. type: defvr
  38658. #: guix-git/doc/guix.texi:25843
  38659. msgid "A service type for the @code{fcgiwrap} FastCGI proxy."
  38660. msgstr ""
  38661. #. type: deftp
  38662. #: guix-git/doc/guix.texi:25845
  38663. #, no-wrap
  38664. msgid "{Data Type} fcgiwrap-configuration"
  38665. msgstr ""
  38666. #. type: deftp
  38667. #: guix-git/doc/guix.texi:25848
  38668. msgid "Data type representing the configuration of the @code{fcgiwrap} service. This type has the following parameters:"
  38669. msgstr ""
  38670. #. type: item
  38671. #: guix-git/doc/guix.texi:25849
  38672. #, no-wrap
  38673. msgid "@code{package} (default: @code{fcgiwrap})"
  38674. msgstr ""
  38675. #. type: table
  38676. #: guix-git/doc/guix.texi:25851
  38677. msgid "The fcgiwrap package to use."
  38678. msgstr ""
  38679. #. type: item
  38680. #: guix-git/doc/guix.texi:25852
  38681. #, no-wrap
  38682. msgid "@code{socket} (default: @code{tcp:127.0.0.1:9000})"
  38683. msgstr ""
  38684. #. type: table
  38685. #: guix-git/doc/guix.texi:25858
  38686. 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}."
  38687. msgstr ""
  38688. #. type: item
  38689. #: guix-git/doc/guix.texi:25859
  38690. #, no-wrap
  38691. msgid "@code{user} (default: @code{fcgiwrap})"
  38692. msgstr ""
  38693. #. type: itemx
  38694. #: guix-git/doc/guix.texi:25860
  38695. #, no-wrap
  38696. msgid "@code{group} (default: @code{fcgiwrap})"
  38697. msgstr ""
  38698. #. type: table
  38699. #: guix-git/doc/guix.texi:25865
  38700. 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."
  38701. msgstr ""
  38702. #. type: table
  38703. #: guix-git/doc/guix.texi:25872
  38704. 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."
  38705. msgstr ""
  38706. #. type: cindex
  38707. #: guix-git/doc/guix.texi:25875
  38708. #, no-wrap
  38709. msgid "php-fpm"
  38710. msgstr ""
  38711. #. type: Plain text
  38712. #: guix-git/doc/guix.texi:25878
  38713. msgid "PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size."
  38714. msgstr ""
  38715. #. type: Plain text
  38716. #: guix-git/doc/guix.texi:25880
  38717. msgid "These features include:"
  38718. msgstr ""
  38719. #. type: item
  38720. #: guix-git/doc/guix.texi:25881
  38721. #, no-wrap
  38722. msgid "Adaptive process spawning"
  38723. msgstr ""
  38724. #. type: item
  38725. #: guix-git/doc/guix.texi:25882
  38726. #, no-wrap
  38727. msgid "Basic statistics (similar to Apache's mod_status)"
  38728. msgstr ""
  38729. #. type: item
  38730. #: guix-git/doc/guix.texi:25883
  38731. #, no-wrap
  38732. msgid "Advanced process management with graceful stop/start"
  38733. msgstr ""
  38734. #. type: item
  38735. #: guix-git/doc/guix.texi:25884
  38736. #, no-wrap
  38737. msgid "Ability to start workers with different uid/gid/chroot/environment"
  38738. msgstr ""
  38739. #. type: itemize
  38740. #: guix-git/doc/guix.texi:25886
  38741. msgid "and different php.ini (replaces safe_mode)"
  38742. msgstr ""
  38743. #. type: item
  38744. #: guix-git/doc/guix.texi:25886
  38745. #, no-wrap
  38746. msgid "Stdout & stderr logging"
  38747. msgstr ""
  38748. #. type: item
  38749. #: guix-git/doc/guix.texi:25887
  38750. #, no-wrap
  38751. msgid "Emergency restart in case of accidental opcode cache destruction"
  38752. msgstr ""
  38753. #. type: item
  38754. #: guix-git/doc/guix.texi:25888
  38755. #, no-wrap
  38756. msgid "Accelerated upload support"
  38757. msgstr ""
  38758. #. type: item
  38759. #: guix-git/doc/guix.texi:25889
  38760. #, no-wrap
  38761. msgid "Support for a \"slowlog\""
  38762. msgstr ""
  38763. #. type: item
  38764. #: guix-git/doc/guix.texi:25890
  38765. #, no-wrap
  38766. msgid "Enhancements to FastCGI, such as fastcgi_finish_request() -"
  38767. msgstr ""
  38768. #. type: itemize
  38769. #: guix-git/doc/guix.texi:25893
  38770. msgid "a special function to finish request & flush all data while continuing to do something time-consuming (video converting, stats processing, etc.)"
  38771. msgstr ""
  38772. #. type: Plain text
  38773. #: guix-git/doc/guix.texi:25895
  38774. msgid "...@: and much more."
  38775. msgstr ""
  38776. #. type: defvr
  38777. #: guix-git/doc/guix.texi:25896
  38778. #, no-wrap
  38779. msgid "{Scheme Variable} php-fpm-service-type"
  38780. msgstr ""
  38781. #. type: defvr
  38782. #: guix-git/doc/guix.texi:25898
  38783. msgid "A Service type for @code{php-fpm}."
  38784. msgstr ""
  38785. #. type: deftp
  38786. #: guix-git/doc/guix.texi:25900
  38787. #, no-wrap
  38788. msgid "{Data Type} php-fpm-configuration"
  38789. msgstr ""
  38790. #. type: deftp
  38791. #: guix-git/doc/guix.texi:25902
  38792. msgid "Data Type for php-fpm service configuration."
  38793. msgstr ""
  38794. #. type: item
  38795. #: guix-git/doc/guix.texi:25903
  38796. #, no-wrap
  38797. msgid "@code{php} (default: @code{php})"
  38798. msgstr ""
  38799. #. type: table
  38800. #: guix-git/doc/guix.texi:25905
  38801. msgid "The php package to use."
  38802. msgstr ""
  38803. #. type: item
  38804. #: guix-git/doc/guix.texi:25905
  38805. #, no-wrap
  38806. msgid "@code{socket} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.sock\")})"
  38807. msgstr ""
  38808. #. type: table
  38809. #: guix-git/doc/guix.texi:25907
  38810. msgid "The address on which to accept FastCGI requests. Valid syntaxes are:"
  38811. msgstr ""
  38812. #. type: code{#1}
  38813. #: guix-git/doc/guix.texi:25908
  38814. #, no-wrap
  38815. msgid "\"ip.add.re.ss:port\""
  38816. msgstr ""
  38817. #. type: table
  38818. #: guix-git/doc/guix.texi:25910
  38819. msgid "Listen on a TCP socket to a specific address on a specific port."
  38820. msgstr ""
  38821. #. type: code{#1}
  38822. #: guix-git/doc/guix.texi:25910
  38823. #, no-wrap
  38824. msgid "\"port\""
  38825. msgstr ""
  38826. #. type: table
  38827. #: guix-git/doc/guix.texi:25912
  38828. msgid "Listen on a TCP socket to all addresses on a specific port."
  38829. msgstr ""
  38830. #. type: code{#1}
  38831. #: guix-git/doc/guix.texi:25912
  38832. #, no-wrap
  38833. msgid "\"/path/to/unix/socket\""
  38834. msgstr ""
  38835. #. type: table
  38836. #: guix-git/doc/guix.texi:25914
  38837. msgid "Listen on a unix socket."
  38838. msgstr ""
  38839. #. type: item
  38840. #: guix-git/doc/guix.texi:25916
  38841. #, no-wrap
  38842. msgid "@code{user} (default: @code{php-fpm})"
  38843. msgstr ""
  38844. #. type: table
  38845. #: guix-git/doc/guix.texi:25918
  38846. msgid "User who will own the php worker processes."
  38847. msgstr ""
  38848. #. type: item
  38849. #: guix-git/doc/guix.texi:25918
  38850. #, no-wrap
  38851. msgid "@code{group} (default: @code{php-fpm})"
  38852. msgstr ""
  38853. #. type: table
  38854. #: guix-git/doc/guix.texi:25920
  38855. msgid "Group of the worker processes."
  38856. msgstr ""
  38857. #. type: item
  38858. #: guix-git/doc/guix.texi:25920
  38859. #, no-wrap
  38860. msgid "@code{socket-user} (default: @code{php-fpm})"
  38861. msgstr ""
  38862. #. type: table
  38863. #: guix-git/doc/guix.texi:25922
  38864. msgid "User who can speak to the php-fpm socket."
  38865. msgstr ""
  38866. #. type: item
  38867. #: guix-git/doc/guix.texi:25922
  38868. #, fuzzy, no-wrap
  38869. msgid "@code{socket-group} (default: @code{nginx})"
  38870. msgstr "@code{gnome}(默认值:@code{gnome})"
  38871. #. type: table
  38872. #: guix-git/doc/guix.texi:25924
  38873. msgid "Group that can speak to the php-fpm socket."
  38874. msgstr ""
  38875. #. type: item
  38876. #: guix-git/doc/guix.texi:25924
  38877. #, no-wrap
  38878. msgid "@code{pid-file} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.pid\")})"
  38879. msgstr ""
  38880. #. type: table
  38881. #: guix-git/doc/guix.texi:25927
  38882. msgid "The process id of the php-fpm process is written to this file once the service has started."
  38883. msgstr ""
  38884. #. type: item
  38885. #: guix-git/doc/guix.texi:25927
  38886. #, no-wrap
  38887. msgid "@code{log-file} (default: @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.log\")})"
  38888. msgstr ""
  38889. #. type: table
  38890. #: guix-git/doc/guix.texi:25929
  38891. msgid "Log for the php-fpm master process."
  38892. msgstr ""
  38893. #. type: item
  38894. #: guix-git/doc/guix.texi:25929
  38895. #, no-wrap
  38896. msgid "@code{process-manager} (default: @code{(php-fpm-dynamic-process-manager-configuration)})"
  38897. msgstr ""
  38898. #. type: table
  38899. #: guix-git/doc/guix.texi:25932
  38900. msgid "Detailed settings for the php-fpm process manager. Must be one of:"
  38901. msgstr ""
  38902. #. type: code{#1}
  38903. #: guix-git/doc/guix.texi:25933
  38904. #, no-wrap
  38905. msgid "<php-fpm-dynamic-process-manager-configuration>"
  38906. msgstr ""
  38907. #. type: code{#1}
  38908. #: guix-git/doc/guix.texi:25934
  38909. #, no-wrap
  38910. msgid "<php-fpm-static-process-manager-configuration>"
  38911. msgstr ""
  38912. #. type: code{#1}
  38913. #: guix-git/doc/guix.texi:25935
  38914. #, no-wrap
  38915. msgid "<php-fpm-on-demand-process-manager-configuration>"
  38916. msgstr ""
  38917. #. type: item
  38918. #: guix-git/doc/guix.texi:25937
  38919. #, no-wrap
  38920. msgid "@code{display-errors} (default @code{#f})"
  38921. msgstr ""
  38922. #. type: table
  38923. #: guix-git/doc/guix.texi:25942
  38924. 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."
  38925. msgstr ""
  38926. #. type: item
  38927. #: guix-git/doc/guix.texi:25942
  38928. #, no-wrap
  38929. msgid "@code{timezone} (default @code{#f})"
  38930. msgstr ""
  38931. #. type: table
  38932. #: guix-git/doc/guix.texi:25944
  38933. msgid "Specifies @code{php_admin_value[date.timezone]} parameter."
  38934. msgstr ""
  38935. #. type: item
  38936. #: guix-git/doc/guix.texi:25944
  38937. #, no-wrap
  38938. msgid "@code{workers-logfile} (default @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.www.log\")})"
  38939. msgstr ""
  38940. #. type: table
  38941. #: guix-git/doc/guix.texi:25947
  38942. msgid "This file will log the @code{stderr} outputs of php worker processes. Can be set to @code{#f} to disable logging."
  38943. msgstr ""
  38944. #. type: item
  38945. #: guix-git/doc/guix.texi:25947
  38946. #, no-wrap
  38947. msgid "@code{file} (default @code{#f})"
  38948. msgstr ""
  38949. #. type: table
  38950. #: guix-git/doc/guix.texi:25950
  38951. msgid "An optional override of the whole configuration. You can use the @code{mixed-text-file} function or an absolute filepath for it."
  38952. msgstr ""
  38953. #. type: item
  38954. #: guix-git/doc/guix.texi:25950
  38955. #, fuzzy, no-wrap
  38956. msgid "@code{php-ini-file} (default @code{#f})"
  38957. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  38958. #. type: table
  38959. #: guix-git/doc/guix.texi:25954
  38960. 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."
  38961. msgstr ""
  38962. #. type: table
  38963. #: guix-git/doc/guix.texi:25958
  38964. 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:"
  38965. msgstr ""
  38966. #. type: lisp
  38967. #: guix-git/doc/guix.texi:25963
  38968. #, no-wrap
  38969. msgid ""
  38970. "(define %local-php-ini\n"
  38971. " (plain-file \"php.ini\"\n"
  38972. " \"memory_limit = 2G\n"
  38973. "max_execution_time = 1800\"))\n"
  38974. "\n"
  38975. msgstr ""
  38976. #. type: lisp
  38977. #: guix-git/doc/guix.texi:25970
  38978. #, no-wrap
  38979. msgid ""
  38980. "(operating-system\n"
  38981. " ;; @dots{}\n"
  38982. " (services (cons (service php-fpm-service-type\n"
  38983. " (php-fpm-configuration\n"
  38984. " (php-ini-file %local-php-ini)))\n"
  38985. " %base-services)))\n"
  38986. msgstr ""
  38987. #. type: table
  38988. #: guix-git/doc/guix.texi:25975
  38989. 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."
  38990. msgstr ""
  38991. #. type: deftp
  38992. #: guix-git/doc/guix.texi:25978
  38993. #, no-wrap
  38994. msgid "{Data type} php-fpm-dynamic-process-manager-configuration"
  38995. msgstr ""
  38996. #. type: deftp
  38997. #: guix-git/doc/guix.texi:25982
  38998. 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."
  38999. msgstr ""
  39000. #. type: item
  39001. #: guix-git/doc/guix.texi:25983 guix-git/doc/guix.texi:25999
  39002. #: guix-git/doc/guix.texi:26009
  39003. #, no-wrap
  39004. msgid "@code{max-children} (default: @code{5})"
  39005. msgstr ""
  39006. #. type: table
  39007. #: guix-git/doc/guix.texi:25985 guix-git/doc/guix.texi:26001
  39008. #: guix-git/doc/guix.texi:26011
  39009. msgid "Maximum of worker processes."
  39010. msgstr ""
  39011. #. type: item
  39012. #: guix-git/doc/guix.texi:25985
  39013. #, no-wrap
  39014. msgid "@code{start-servers} (default: @code{2})"
  39015. msgstr ""
  39016. #. type: table
  39017. #: guix-git/doc/guix.texi:25987
  39018. msgid "How many worker processes should be started on start-up."
  39019. msgstr ""
  39020. #. type: item
  39021. #: guix-git/doc/guix.texi:25987
  39022. #, no-wrap
  39023. msgid "@code{min-spare-servers} (default: @code{1})"
  39024. msgstr ""
  39025. #. type: table
  39026. #: guix-git/doc/guix.texi:25989
  39027. msgid "How many spare worker processes should be kept around at minimum."
  39028. msgstr ""
  39029. #. type: item
  39030. #: guix-git/doc/guix.texi:25989
  39031. #, no-wrap
  39032. msgid "@code{max-spare-servers} (default: @code{3})"
  39033. msgstr ""
  39034. #. type: table
  39035. #: guix-git/doc/guix.texi:25991
  39036. msgid "How many spare worker processes should be kept around at maximum."
  39037. msgstr ""
  39038. #. type: deftp
  39039. #: guix-git/doc/guix.texi:25994
  39040. #, no-wrap
  39041. msgid "{Data type} php-fpm-static-process-manager-configuration"
  39042. msgstr ""
  39043. #. type: deftp
  39044. #: guix-git/doc/guix.texi:25998
  39045. 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."
  39046. msgstr ""
  39047. #. type: deftp
  39048. #: guix-git/doc/guix.texi:26004
  39049. #, no-wrap
  39050. msgid "{Data type} php-fpm-on-demand-process-manager-configuration"
  39051. msgstr ""
  39052. #. type: deftp
  39053. #: guix-git/doc/guix.texi:26008
  39054. 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."
  39055. msgstr ""
  39056. #. type: item
  39057. #: guix-git/doc/guix.texi:26011
  39058. #, no-wrap
  39059. msgid "@code{process-idle-timeout} (default: @code{10})"
  39060. msgstr ""
  39061. #. type: table
  39062. #: guix-git/doc/guix.texi:26013
  39063. msgid "The time in seconds after which a process with no requests is killed."
  39064. msgstr ""
  39065. #. type: deffn
  39066. #: guix-git/doc/guix.texi:26017
  39067. #, no-wrap
  39068. msgid "{Scheme Procedure} nginx-php-location @"
  39069. msgstr ""
  39070. #. type: deffn
  39071. #: guix-git/doc/guix.texi:26023
  39072. 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}."
  39073. msgstr ""
  39074. #. type: Plain text
  39075. #: guix-git/doc/guix.texi:26026
  39076. msgid "A simple services setup for nginx with php can look like this:"
  39077. msgstr ""
  39078. #. type: lisp
  39079. #: guix-git/doc/guix.texi:26039
  39080. #, no-wrap
  39081. msgid ""
  39082. "(services (cons* (service dhcp-client-service-type)\n"
  39083. " (service php-fpm-service-type)\n"
  39084. " (service nginx-service-type\n"
  39085. " (nginx-server-configuration\n"
  39086. " (server-name '(\"example.com\"))\n"
  39087. " (root \"/srv/http/\")\n"
  39088. " (locations\n"
  39089. " (list (nginx-php-location)))\n"
  39090. " (listen '(\"80\"))\n"
  39091. " (ssl-certificate #f)\n"
  39092. " (ssl-certificate-key #f)))\n"
  39093. " %base-services))\n"
  39094. msgstr ""
  39095. #. type: cindex
  39096. #: guix-git/doc/guix.texi:26041
  39097. #, no-wrap
  39098. msgid "cat-avatar-generator"
  39099. msgstr ""
  39100. #. type: Plain text
  39101. #: guix-git/doc/guix.texi:26045
  39102. 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."
  39103. msgstr ""
  39104. #. type: deffn
  39105. #: guix-git/doc/guix.texi:26046
  39106. #, no-wrap
  39107. msgid "{Scheme Procedure} cat-avatar-generator-service @"
  39108. msgstr ""
  39109. #. type: deffn
  39110. #: guix-git/doc/guix.texi:26054
  39111. 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."
  39112. msgstr ""
  39113. #. type: Plain text
  39114. #: guix-git/doc/guix.texi:26057
  39115. msgid "A simple setup for cat-avatar-generator can look like this:"
  39116. msgstr ""
  39117. #. type: lisp
  39118. #: guix-git/doc/guix.texi:26064
  39119. #, no-wrap
  39120. msgid ""
  39121. "(services (cons* (cat-avatar-generator-service\n"
  39122. " #:configuration\n"
  39123. " (nginx-server-configuration\n"
  39124. " (server-name '(\"example.com\"))))\n"
  39125. " ...\n"
  39126. " %base-services))\n"
  39127. msgstr ""
  39128. #. type: subsubheading
  39129. #: guix-git/doc/guix.texi:26066
  39130. #, no-wrap
  39131. msgid "Hpcguix-web"
  39132. msgstr ""
  39133. #. type: cindex
  39134. #: guix-git/doc/guix.texi:26068
  39135. #, no-wrap
  39136. msgid "hpcguix-web"
  39137. msgstr ""
  39138. #. type: Plain text
  39139. #: guix-git/doc/guix.texi:26073
  39140. 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."
  39141. msgstr ""
  39142. #. type: defvr
  39143. #: guix-git/doc/guix.texi:26074
  39144. #, no-wrap
  39145. msgid "{Scheme Variable} hpcguix-web-service-type"
  39146. msgstr ""
  39147. #. type: defvr
  39148. #: guix-git/doc/guix.texi:26076
  39149. msgid "The service type for @code{hpcguix-web}."
  39150. msgstr ""
  39151. #. type: deftp
  39152. #: guix-git/doc/guix.texi:26078
  39153. #, no-wrap
  39154. msgid "{Data Type} hpcguix-web-configuration"
  39155. msgstr ""
  39156. #. type: deftp
  39157. #: guix-git/doc/guix.texi:26080
  39158. msgid "Data type for the hpcguix-web service configuration."
  39159. msgstr ""
  39160. #. type: code{#1}
  39161. #: guix-git/doc/guix.texi:26082
  39162. #, no-wrap
  39163. msgid "specs"
  39164. msgstr ""
  39165. #. type: table
  39166. #: guix-git/doc/guix.texi:26085
  39167. msgid "A gexp (@pxref{G-Expressions}) specifying the hpcguix-web service configuration. The main items available in this spec are:"
  39168. msgstr ""
  39169. #. type: item
  39170. #: guix-git/doc/guix.texi:26087
  39171. #, no-wrap
  39172. msgid "@code{title-prefix} (default: @code{\"hpcguix | \"})"
  39173. msgstr ""
  39174. #. type: table
  39175. #: guix-git/doc/guix.texi:26089
  39176. msgid "The page title prefix."
  39177. msgstr ""
  39178. #. type: item
  39179. #: guix-git/doc/guix.texi:26090
  39180. #, no-wrap
  39181. msgid "@code{guix-command} (default: @code{\"guix\"})"
  39182. msgstr ""
  39183. #. type: table
  39184. #: guix-git/doc/guix.texi:26092
  39185. msgid "The @command{guix} command."
  39186. msgstr ""
  39187. #. type: item
  39188. #: guix-git/doc/guix.texi:26093
  39189. #, no-wrap
  39190. msgid "@code{package-filter-proc} (default: @code{(const #t)})"
  39191. msgstr ""
  39192. #. type: table
  39193. #: guix-git/doc/guix.texi:26095
  39194. msgid "A procedure specifying how to filter packages that are displayed."
  39195. msgstr ""
  39196. #. type: item
  39197. #: guix-git/doc/guix.texi:26096
  39198. #, no-wrap
  39199. msgid "@code{package-page-extension-proc} (default: @code{(const '())})"
  39200. msgstr ""
  39201. #. type: table
  39202. #: guix-git/doc/guix.texi:26098
  39203. msgid "Extension package for @code{hpcguix-web}."
  39204. msgstr ""
  39205. #. type: item
  39206. #: guix-git/doc/guix.texi:26099
  39207. #, no-wrap
  39208. msgid "@code{menu} (default: @code{'()})"
  39209. msgstr ""
  39210. #. type: table
  39211. #: guix-git/doc/guix.texi:26101
  39212. msgid "Additional entry in page @code{menu}."
  39213. msgstr ""
  39214. #. type: item
  39215. #: guix-git/doc/guix.texi:26102
  39216. #, no-wrap
  39217. msgid "@code{channels} (default: @code{%default-channels})"
  39218. msgstr ""
  39219. #. type: table
  39220. #: guix-git/doc/guix.texi:26104
  39221. msgid "List of channels from which the package list is built (@pxref{Channels})."
  39222. msgstr ""
  39223. #. type: item
  39224. #: guix-git/doc/guix.texi:26105
  39225. #, no-wrap
  39226. msgid "@code{package-list-expiration} (default: @code{(* 12 3600)})"
  39227. msgstr ""
  39228. #. type: table
  39229. #: guix-git/doc/guix.texi:26108
  39230. msgid "The expiration time, in seconds, after which the package list is rebuilt from the latest instances of the given channels."
  39231. msgstr ""
  39232. #. type: table
  39233. #: guix-git/doc/guix.texi:26113
  39234. msgid "See the hpcguix-web repository for a @uref{https://github.com/UMCUGenetics/hpcguix-web/blob/master/hpcweb-configuration.scm, complete example}."
  39235. msgstr ""
  39236. #. type: item
  39237. #: guix-git/doc/guix.texi:26114
  39238. #, no-wrap
  39239. msgid "@code{package} (default: @code{hpcguix-web})"
  39240. msgstr ""
  39241. #. type: table
  39242. #: guix-git/doc/guix.texi:26116
  39243. msgid "The hpcguix-web package to use."
  39244. msgstr ""
  39245. #. type: Plain text
  39246. #: guix-git/doc/guix.texi:26120
  39247. msgid "A typical hpcguix-web service declaration looks like this:"
  39248. msgstr ""
  39249. #. type: lisp
  39250. #: guix-git/doc/guix.texi:26129
  39251. #, no-wrap
  39252. msgid ""
  39253. "(service hpcguix-web-service-type\n"
  39254. " (hpcguix-web-configuration\n"
  39255. " (specs\n"
  39256. " #~(define site-config\n"
  39257. " (hpcweb-configuration\n"
  39258. " (title-prefix \"Guix-HPC - \")\n"
  39259. " (menu '((\"/about\" \"ABOUT\"))))))))\n"
  39260. msgstr ""
  39261. #. type: quotation
  39262. #: guix-git/doc/guix.texi:26136
  39263. 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."
  39264. msgstr ""
  39265. #. type: quotation
  39266. #: guix-git/doc/guix.texi:26140
  39267. 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."
  39268. msgstr ""
  39269. #. type: cindex
  39270. #: guix-git/doc/guix.texi:26142 guix-git/doc/guix.texi:26144
  39271. #, no-wrap
  39272. msgid "gmnisrv"
  39273. msgstr ""
  39274. #. type: Plain text
  39275. #: guix-git/doc/guix.texi:26147
  39276. msgid "The @uref{https://git.sr.ht/~sircmpwn/gmnisrv, gmnisrv} program is a simple @uref{https://gemini.circumlunar.space/, Gemini} protocol server."
  39277. msgstr ""
  39278. #. type: deffn
  39279. #: guix-git/doc/guix.texi:26148
  39280. #, no-wrap
  39281. msgid "{Scheme Variable} gmnisrv-service-type"
  39282. msgstr ""
  39283. #. type: deffn
  39284. #: guix-git/doc/guix.texi:26151
  39285. msgid "This is the type of the gmnisrv service, whose value should be a @code{gmnisrv-configuration} object, as in this example:"
  39286. msgstr ""
  39287. #. type: lisp
  39288. #: guix-git/doc/guix.texi:26156
  39289. #, no-wrap
  39290. msgid ""
  39291. "(service gmnisrv-service-type\n"
  39292. " (gmnisrv-configuration\n"
  39293. " (config-file (local-file \"./my-gmnisrv.ini\"))))\n"
  39294. msgstr ""
  39295. #. type: deftp
  39296. #: guix-git/doc/guix.texi:26159
  39297. #, no-wrap
  39298. msgid "{Data Type} gmnisrv-configuration"
  39299. msgstr ""
  39300. #. type: deftp
  39301. #: guix-git/doc/guix.texi:26161
  39302. #, fuzzy
  39303. msgid "Data type representing the configuration of gmnisrv."
  39304. msgstr "管理操作系统配置。"
  39305. #. type: item
  39306. #: guix-git/doc/guix.texi:26163
  39307. #, fuzzy, no-wrap
  39308. msgid "@code{package} (default: @var{gmnisrv})"
  39309. msgstr "@code{gnome}(默认值:@code{gnome})"
  39310. #. type: table
  39311. #: guix-git/doc/guix.texi:26165
  39312. msgid "Package object of the gmnisrv server."
  39313. msgstr ""
  39314. #. type: item
  39315. #: guix-git/doc/guix.texi:26166
  39316. #, fuzzy, no-wrap
  39317. msgid "@code{config-file} (default: @code{%default-gmnisrv-config-file})"
  39318. msgstr "@code{gnome}(默认值:@code{gnome})"
  39319. #. type: table
  39320. #: guix-git/doc/guix.texi:26172
  39321. 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}."
  39322. msgstr ""
  39323. #. type: subsubheading
  39324. #: guix-git/doc/guix.texi:26176
  39325. #, no-wrap
  39326. msgid "Agate"
  39327. msgstr ""
  39328. #. type: cindex
  39329. #: guix-git/doc/guix.texi:26178
  39330. #, no-wrap
  39331. msgid "agate"
  39332. msgstr ""
  39333. #. type: Plain text
  39334. #: guix-git/doc/guix.texi:26183
  39335. 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."
  39336. msgstr ""
  39337. #. type: deffn
  39338. #: guix-git/doc/guix.texi:26184
  39339. #, no-wrap
  39340. msgid "{Scheme Variable} agate-service-type"
  39341. msgstr ""
  39342. #. type: deffn
  39343. #: guix-git/doc/guix.texi:26187
  39344. msgid "This is the type of the agate service, whose value should be an @code{agate-service-type} object, as in this example:"
  39345. msgstr ""
  39346. #. type: lisp
  39347. #: guix-git/doc/guix.texi:26194
  39348. #, no-wrap
  39349. msgid ""
  39350. "(service agate-service-type\n"
  39351. "\t (agate-configuration\n"
  39352. "\t (content \"/srv/gemini\")\n"
  39353. "\t (cert \"/srv/cert.pem\")\n"
  39354. "\t (key \"/srv/key.rsa\")))\n"
  39355. msgstr ""
  39356. #. type: deffn
  39357. #: guix-git/doc/guix.texi:26199
  39358. 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."
  39359. msgstr ""
  39360. #. type: deffn
  39361. #: guix-git/doc/guix.texi:26202
  39362. msgid "To obtain a certificate and a key, you could, for example, use OpenSSL, running a command similar to the following example:"
  39363. msgstr ""
  39364. #. type: example
  39365. #: guix-git/doc/guix.texi:26206
  39366. #, no-wrap
  39367. msgid ""
  39368. "openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem \\\n"
  39369. " -days 3650 -nodes -subj \"/CN=example.com\"\n"
  39370. msgstr ""
  39371. #. type: deffn
  39372. #: guix-git/doc/guix.texi:26211
  39373. 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."
  39374. msgstr ""
  39375. #. type: deftp
  39376. #: guix-git/doc/guix.texi:26214
  39377. #, fuzzy, no-wrap
  39378. msgid "{Data Type} agate-configuration"
  39379. msgstr "管理操作系统配置。"
  39380. #. type: deftp
  39381. #: guix-git/doc/guix.texi:26216
  39382. #, fuzzy
  39383. msgid "Data type representing the configuration of Agate."
  39384. msgstr "管理操作系统配置。"
  39385. #. type: item
  39386. #: guix-git/doc/guix.texi:26218
  39387. #, fuzzy, no-wrap
  39388. msgid "@code{package} (default: @code{agate})"
  39389. msgstr "@code{mate}(默认值:@code{mate})"
  39390. #. type: table
  39391. #: guix-git/doc/guix.texi:26220
  39392. #, fuzzy
  39393. msgid "The package object of the Agate server."
  39394. msgstr "软件包数据类型。"
  39395. #. type: item
  39396. #: guix-git/doc/guix.texi:26221
  39397. #, fuzzy, no-wrap
  39398. msgid "@code{content} (default: @file{\"/srv/gemini\"})"
  39399. msgstr "@code{mate}(默认值:@code{mate})"
  39400. #. type: table
  39401. #: guix-git/doc/guix.texi:26223
  39402. msgid "The directory from which Agate will serve files."
  39403. msgstr ""
  39404. #. type: item
  39405. #: guix-git/doc/guix.texi:26224
  39406. #, fuzzy, no-wrap
  39407. msgid "@code{cert} (default: @code{#f})"
  39408. msgstr "@code{port}(默认值:@code{22})"
  39409. #. type: table
  39410. #: guix-git/doc/guix.texi:26227
  39411. 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."
  39412. msgstr ""
  39413. #. type: item
  39414. #: guix-git/doc/guix.texi:26228 guix-git/doc/guix.texi:26664
  39415. #, no-wrap
  39416. msgid "@code{key} (default: @code{#f})"
  39417. msgstr ""
  39418. #. type: table
  39419. #: guix-git/doc/guix.texi:26231
  39420. 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."
  39421. msgstr ""
  39422. #. type: item
  39423. #: guix-git/doc/guix.texi:26232
  39424. #, fuzzy, no-wrap
  39425. msgid "@code{addr} (default: @code{'(\"0.0.0.0:1965\" \"[::]:1965\")})"
  39426. msgstr "@code{display}(默认值:@code{\":0\"})"
  39427. #. type: table
  39428. #: guix-git/doc/guix.texi:26234
  39429. msgid "A list of the addresses to listen on."
  39430. msgstr ""
  39431. #. type: table
  39432. #: guix-git/doc/guix.texi:26237
  39433. msgid "The domain name of this Gemini server. Optional."
  39434. msgstr ""
  39435. #. type: item
  39436. #: guix-git/doc/guix.texi:26238
  39437. #, fuzzy, no-wrap
  39438. msgid "@code{lang} (default: @code{#f})"
  39439. msgstr "@code{challenge}(默认值:@code{#f})"
  39440. #. type: table
  39441. #: guix-git/doc/guix.texi:26240
  39442. msgid "RFC 4646 language code(s) for text/gemini documents. Optional."
  39443. msgstr ""
  39444. #. type: item
  39445. #: guix-git/doc/guix.texi:26241
  39446. #, fuzzy, no-wrap
  39447. msgid "@code{silent?} (default: @code{#f})"
  39448. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39449. #. type: table
  39450. #: guix-git/doc/guix.texi:26243
  39451. msgid "Set to @code{#t} to disable logging output."
  39452. msgstr ""
  39453. #. type: item
  39454. #: guix-git/doc/guix.texi:26244
  39455. #, fuzzy, no-wrap
  39456. msgid "@code{serve-secret?} (default: @code{#f})"
  39457. msgstr "@code{speed}(默认值:@code{1.0})"
  39458. #. type: table
  39459. #: guix-git/doc/guix.texi:26247
  39460. msgid "Set to @code{#t} to serve secret files (files/directories starting with a dot)."
  39461. msgstr ""
  39462. #. type: item
  39463. #: guix-git/doc/guix.texi:26248
  39464. #, fuzzy, no-wrap
  39465. msgid "@code{log-ip?} (default: @code{#t})"
  39466. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39467. #. type: table
  39468. #: guix-git/doc/guix.texi:26250
  39469. msgid "Whether or not to output IP addresses when logging."
  39470. msgstr ""
  39471. #. type: item
  39472. #: guix-git/doc/guix.texi:26251
  39473. #, fuzzy, no-wrap
  39474. msgid "@code{user} (default: @code{\"agate\"})"
  39475. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  39476. #. type: table
  39477. #: guix-git/doc/guix.texi:26253
  39478. msgid "Owner of the @code{agate} process."
  39479. msgstr ""
  39480. #. type: item
  39481. #: guix-git/doc/guix.texi:26254
  39482. #, fuzzy, no-wrap
  39483. msgid "@code{group} (default: @code{\"agate\"})"
  39484. msgstr "@code{gnome}(默认值:@code{gnome})"
  39485. #. type: table
  39486. #: guix-git/doc/guix.texi:26256
  39487. msgid "Owner's group of the @code{agate} process."
  39488. msgstr ""
  39489. #. type: item
  39490. #: guix-git/doc/guix.texi:26257
  39491. #, fuzzy, no-wrap
  39492. msgid "@code{log-file} (default: @file{\"/var/log/agate.log\"})"
  39493. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  39494. #. type: table
  39495. #: guix-git/doc/guix.texi:26259
  39496. msgid "The file which should store the logging output of Agate."
  39497. msgstr ""
  39498. #. type: cindex
  39499. #: guix-git/doc/guix.texi:26266
  39500. #, no-wrap
  39501. msgid "Web"
  39502. msgstr ""
  39503. #. type: cindex
  39504. #: guix-git/doc/guix.texi:26267
  39505. #, no-wrap
  39506. msgid "HTTP, HTTPS"
  39507. msgstr ""
  39508. #. type: cindex
  39509. #: guix-git/doc/guix.texi:26268
  39510. #, no-wrap
  39511. msgid "Let's Encrypt"
  39512. msgstr ""
  39513. #. type: cindex
  39514. #: guix-git/doc/guix.texi:26269
  39515. #, no-wrap
  39516. msgid "TLS certificates"
  39517. msgstr ""
  39518. #. type: Plain text
  39519. #: guix-git/doc/guix.texi:26276
  39520. 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."
  39521. msgstr ""
  39522. #. type: Plain text
  39523. #: guix-git/doc/guix.texi:26288
  39524. 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."
  39525. msgstr ""
  39526. #. type: Plain text
  39527. #: guix-git/doc/guix.texi:26295
  39528. 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)."
  39529. msgstr ""
  39530. #. type: Plain text
  39531. #: guix-git/doc/guix.texi:26301
  39532. 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."
  39533. msgstr ""
  39534. #. type: Plain text
  39535. #: guix-git/doc/guix.texi:26305
  39536. 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}."
  39537. msgstr ""
  39538. #. type: defvr
  39539. #: guix-git/doc/guix.texi:26306
  39540. #, no-wrap
  39541. msgid "{Scheme Variable} certbot-service-type"
  39542. msgstr ""
  39543. #. type: defvr
  39544. #: guix-git/doc/guix.texi:26309
  39545. 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:"
  39546. msgstr ""
  39547. #. type: lisp
  39548. #: guix-git/doc/guix.texi:26316
  39549. #, no-wrap
  39550. msgid ""
  39551. "(define %nginx-deploy-hook\n"
  39552. " (program-file\n"
  39553. " \"nginx-deploy-hook\"\n"
  39554. " #~(let ((pid (call-with-input-file \"/var/run/nginx/pid\" read)))\n"
  39555. " (kill pid SIGHUP))))\n"
  39556. "\n"
  39557. msgstr ""
  39558. #. type: lisp
  39559. #: guix-git/doc/guix.texi:26327
  39560. #, no-wrap
  39561. msgid ""
  39562. "(service certbot-service-type\n"
  39563. " (certbot-configuration\n"
  39564. " (email \"foo@@example.net\")\n"
  39565. " (certificates\n"
  39566. " (list\n"
  39567. " (certificate-configuration\n"
  39568. " (domains '(\"example.net\" \"www.example.net\"))\n"
  39569. " (deploy-hook %nginx-deploy-hook))\n"
  39570. " (certificate-configuration\n"
  39571. " (domains '(\"bar.example.net\")))))))\n"
  39572. msgstr ""
  39573. #. type: defvr
  39574. #: guix-git/doc/guix.texi:26330
  39575. msgid "See below for details about @code{certbot-configuration}."
  39576. msgstr ""
  39577. #. type: deftp
  39578. #: guix-git/doc/guix.texi:26332
  39579. #, no-wrap
  39580. msgid "{Data Type} certbot-configuration"
  39581. msgstr ""
  39582. #. type: deftp
  39583. #: guix-git/doc/guix.texi:26335
  39584. msgid "Data type representing the configuration of the @code{certbot} service. This type has the following parameters:"
  39585. msgstr ""
  39586. #. type: item
  39587. #: guix-git/doc/guix.texi:26337
  39588. #, no-wrap
  39589. msgid "@code{package} (default: @code{certbot})"
  39590. msgstr ""
  39591. #. type: table
  39592. #: guix-git/doc/guix.texi:26339
  39593. msgid "The certbot package to use."
  39594. msgstr ""
  39595. #. type: item
  39596. #: guix-git/doc/guix.texi:26340
  39597. #, no-wrap
  39598. msgid "@code{webroot} (default: @code{/var/www})"
  39599. msgstr ""
  39600. #. type: table
  39601. #: guix-git/doc/guix.texi:26343
  39602. msgid "The directory from which to serve the Let's Encrypt challenge/response files."
  39603. msgstr ""
  39604. #. type: item
  39605. #: guix-git/doc/guix.texi:26344
  39606. #, no-wrap
  39607. msgid "@code{certificates} (default: @code{()})"
  39608. msgstr ""
  39609. #. type: table
  39610. #: guix-git/doc/guix.texi:26348
  39611. 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}."
  39612. msgstr ""
  39613. #. type: item
  39614. #: guix-git/doc/guix.texi:26349
  39615. #, fuzzy, no-wrap
  39616. msgid "@code{email} (default: @code{#f})"
  39617. msgstr "@code{challenge}(默认值:@code{#f})"
  39618. #. type: table
  39619. #: guix-git/doc/guix.texi:26353
  39620. 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."
  39621. msgstr ""
  39622. #. type: item
  39623. #: guix-git/doc/guix.texi:26354 guix-git/doc/guix.texi:28098
  39624. #, fuzzy, no-wrap
  39625. msgid "@code{server} (default: @code{#f})"
  39626. msgstr "@code{speed}(默认值:@code{1.0})"
  39627. #. type: table
  39628. #: guix-git/doc/guix.texi:26357
  39629. msgid "Optional URL of ACME server. Setting this overrides certbot's default, which is the Let's Encrypt server."
  39630. msgstr ""
  39631. #. type: item
  39632. #: guix-git/doc/guix.texi:26358
  39633. #, no-wrap
  39634. msgid "@code{rsa-key-size} (default: @code{2048})"
  39635. msgstr ""
  39636. #. type: table
  39637. #: guix-git/doc/guix.texi:26360
  39638. msgid "Size of the RSA key."
  39639. msgstr ""
  39640. #. type: item
  39641. #: guix-git/doc/guix.texi:26361
  39642. #, no-wrap
  39643. msgid "@code{default-location} (default: @i{see below})"
  39644. msgstr ""
  39645. #. type: table
  39646. #: guix-git/doc/guix.texi:26370
  39647. 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."
  39648. msgstr ""
  39649. #. type: table
  39650. #: guix-git/doc/guix.texi:26374
  39651. 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."
  39652. msgstr ""
  39653. #. type: table
  39654. #: guix-git/doc/guix.texi:26378
  39655. 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}."
  39656. msgstr ""
  39657. #. type: table
  39658. #: guix-git/doc/guix.texi:26380
  39659. msgid "Pass @code{#f} to not issue a default location."
  39660. msgstr ""
  39661. #. type: deftp
  39662. #: guix-git/doc/guix.texi:26383
  39663. #, no-wrap
  39664. msgid "{Data Type} certificate-configuration"
  39665. msgstr ""
  39666. #. type: deftp
  39667. #: guix-git/doc/guix.texi:26386
  39668. msgid "Data type representing the configuration of a certificate. This type has the following parameters:"
  39669. msgstr ""
  39670. #. type: item
  39671. #: guix-git/doc/guix.texi:26388
  39672. #, no-wrap
  39673. msgid "@code{name} (default: @i{see below})"
  39674. msgstr ""
  39675. #. type: table
  39676. #: guix-git/doc/guix.texi:26392
  39677. 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}."
  39678. msgstr ""
  39679. #. type: table
  39680. #: guix-git/doc/guix.texi:26394
  39681. msgid "Its default is the first provided domain."
  39682. msgstr ""
  39683. #. type: item
  39684. #: guix-git/doc/guix.texi:26395
  39685. #, no-wrap
  39686. msgid "@code{domains} (default: @code{()})"
  39687. msgstr ""
  39688. #. type: table
  39689. #: guix-git/doc/guix.texi:26398
  39690. msgid "The first domain provided will be the subject CN of the certificate, and all domains will be Subject Alternative Names on the certificate."
  39691. msgstr ""
  39692. #. type: item
  39693. #: guix-git/doc/guix.texi:26399
  39694. #, no-wrap
  39695. msgid "@code{challenge} (default: @code{#f})"
  39696. msgstr "@code{challenge}(默认值:@code{#f})"
  39697. #. type: table
  39698. #: guix-git/doc/guix.texi:26406
  39699. 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."
  39700. msgstr ""
  39701. #. type: item
  39702. #: guix-git/doc/guix.texi:26407
  39703. #, fuzzy, no-wrap
  39704. msgid "@code{csr} (default: @code{#f})"
  39705. msgstr "@code{port}(默认值:@code{22})"
  39706. #. type: table
  39707. #: guix-git/doc/guix.texi:26414
  39708. 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."
  39709. msgstr ""
  39710. #. type: item
  39711. #: guix-git/doc/guix.texi:26415
  39712. #, no-wrap
  39713. msgid "@code{authentication-hook} (default: @code{#f})"
  39714. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  39715. #. type: table
  39716. #: guix-git/doc/guix.texi:26421
  39717. 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."
  39718. msgstr ""
  39719. #. type: item
  39720. #: guix-git/doc/guix.texi:26422
  39721. #, no-wrap
  39722. msgid "@code{cleanup-hook} (default: @code{#f})"
  39723. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  39724. #. type: table
  39725. #: guix-git/doc/guix.texi:26428
  39726. 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."
  39727. msgstr ""
  39728. #. type: item
  39729. #: guix-git/doc/guix.texi:26429
  39730. #, no-wrap
  39731. msgid "@code{deploy-hook} (default: @code{#f})"
  39732. msgstr ""
  39733. #. type: table
  39734. #: guix-git/doc/guix.texi:26437
  39735. 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\"}."
  39736. msgstr ""
  39737. #. type: Plain text
  39738. #: guix-git/doc/guix.texi:26444
  39739. 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}."
  39740. msgstr ""
  39741. #. type: cindex
  39742. #: guix-git/doc/guix.texi:26446
  39743. #, no-wrap
  39744. msgid "DNS (domain name system)"
  39745. msgstr ""
  39746. #. type: cindex
  39747. #: guix-git/doc/guix.texi:26447
  39748. #, no-wrap
  39749. msgid "domain name system (DNS)"
  39750. msgstr ""
  39751. #. type: Plain text
  39752. #: guix-git/doc/guix.texi:26455
  39753. 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}."
  39754. msgstr ""
  39755. #. type: subsubheading
  39756. #: guix-git/doc/guix.texi:26456
  39757. #, no-wrap
  39758. msgid "Knot Service"
  39759. msgstr ""
  39760. #. type: Plain text
  39761. #: guix-git/doc/guix.texi:26460
  39762. msgid "An example configuration of an authoritative server for two zones, one master and one slave, is:"
  39763. msgstr ""
  39764. #. type: lisp
  39765. #: guix-git/doc/guix.texi:26467
  39766. #, no-wrap
  39767. msgid ""
  39768. "(define-zone-entries example.org.zone\n"
  39769. ";; Name TTL Class Type Data\n"
  39770. " (\"@@\" \"\" \"IN\" \"A\" \"127.0.0.1\")\n"
  39771. " (\"@@\" \"\" \"IN\" \"NS\" \"ns\")\n"
  39772. " (\"ns\" \"\" \"IN\" \"A\" \"127.0.0.1\"))\n"
  39773. "\n"
  39774. msgstr ""
  39775. #. type: lisp
  39776. #: guix-git/doc/guix.texi:26474
  39777. #, no-wrap
  39778. msgid ""
  39779. "(define master-zone\n"
  39780. " (knot-zone-configuration\n"
  39781. " (domain \"example.org\")\n"
  39782. " (zone (zone-file\n"
  39783. " (origin \"example.org\")\n"
  39784. " (entries example.org.zone)))))\n"
  39785. "\n"
  39786. msgstr ""
  39787. #. type: lisp
  39788. #: guix-git/doc/guix.texi:26480
  39789. #, no-wrap
  39790. msgid ""
  39791. "(define slave-zone\n"
  39792. " (knot-zone-configuration\n"
  39793. " (domain \"plop.org\")\n"
  39794. " (dnssec-policy \"default\")\n"
  39795. " (master (list \"plop-master\"))))\n"
  39796. "\n"
  39797. msgstr ""
  39798. #. type: lisp
  39799. #: guix-git/doc/guix.texi:26485
  39800. #, no-wrap
  39801. msgid ""
  39802. "(define plop-master\n"
  39803. " (knot-remote-configuration\n"
  39804. " (id \"plop-master\")\n"
  39805. " (address (list \"208.76.58.171\"))))\n"
  39806. "\n"
  39807. msgstr ""
  39808. #. type: lisp
  39809. #: guix-git/doc/guix.texi:26494
  39810. #, no-wrap
  39811. msgid ""
  39812. "(operating-system\n"
  39813. " ;; ...\n"
  39814. " (services (cons* (service knot-service-type\n"
  39815. " (knot-configuration\n"
  39816. " (remotes (list plop-master))\n"
  39817. " (zones (list master-zone slave-zone))))\n"
  39818. " ;; ...\n"
  39819. " %base-services)))\n"
  39820. msgstr ""
  39821. #. type: deffn
  39822. #: guix-git/doc/guix.texi:26496
  39823. #, no-wrap
  39824. msgid "{Scheme Variable} knot-service-type"
  39825. msgstr ""
  39826. #. type: deffn
  39827. #: guix-git/doc/guix.texi:26498
  39828. msgid "This is the type for the Knot DNS server."
  39829. msgstr ""
  39830. #. type: deffn
  39831. #: guix-git/doc/guix.texi:26506
  39832. 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."
  39833. msgstr ""
  39834. #. type: deffn
  39835. #: guix-git/doc/guix.texi:26508
  39836. msgid "The following data types are used to configure the Knot DNS server:"
  39837. msgstr ""
  39838. #. type: deftp
  39839. #: guix-git/doc/guix.texi:26510
  39840. #, no-wrap
  39841. msgid "{Data Type} knot-key-configuration"
  39842. msgstr ""
  39843. #. type: deftp
  39844. #: guix-git/doc/guix.texi:26513
  39845. msgid "Data type representing a key. This type has the following parameters:"
  39846. msgstr ""
  39847. #. type: item
  39848. #: guix-git/doc/guix.texi:26515 guix-git/doc/guix.texi:26535
  39849. #: guix-git/doc/guix.texi:26650 guix-git/doc/guix.texi:26676
  39850. #: guix-git/doc/guix.texi:26711
  39851. #, no-wrap
  39852. msgid "@code{id} (default: @code{\"\"})"
  39853. msgstr ""
  39854. #. type: table
  39855. #: guix-git/doc/guix.texi:26518 guix-git/doc/guix.texi:26538
  39856. msgid "An identifier for other configuration fields to refer to this key. IDs must be unique and must not be empty."
  39857. msgstr ""
  39858. #. type: item
  39859. #: guix-git/doc/guix.texi:26519
  39860. #, no-wrap
  39861. msgid "@code{algorithm} (default: @code{#f})"
  39862. msgstr ""
  39863. #. type: table
  39864. #: guix-git/doc/guix.texi:26523
  39865. 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}."
  39866. msgstr ""
  39867. #. type: item
  39868. #: guix-git/doc/guix.texi:26524
  39869. #, no-wrap
  39870. msgid "@code{secret} (default: @code{\"\"})"
  39871. msgstr ""
  39872. #. type: table
  39873. #: guix-git/doc/guix.texi:26526
  39874. msgid "The secret key itself."
  39875. msgstr ""
  39876. #. type: deftp
  39877. #: guix-git/doc/guix.texi:26530
  39878. #, no-wrap
  39879. msgid "{Data Type} knot-acl-configuration"
  39880. msgstr ""
  39881. #. type: deftp
  39882. #: guix-git/doc/guix.texi:26533
  39883. msgid "Data type representing an Access Control List (ACL) configuration. This type has the following parameters:"
  39884. msgstr ""
  39885. #. type: item
  39886. #: guix-git/doc/guix.texi:26539 guix-git/doc/guix.texi:26654
  39887. #, no-wrap
  39888. msgid "@code{address} (default: @code{'()})"
  39889. msgstr ""
  39890. #. type: table
  39891. #: guix-git/doc/guix.texi:26543
  39892. 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."
  39893. msgstr ""
  39894. #. type: item
  39895. #: guix-git/doc/guix.texi:26544
  39896. #, no-wrap
  39897. msgid "@code{key} (default: @code{'()})"
  39898. msgstr ""
  39899. #. type: table
  39900. #: guix-git/doc/guix.texi:26548
  39901. 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."
  39902. msgstr ""
  39903. #. type: item
  39904. #: guix-git/doc/guix.texi:26549
  39905. #, no-wrap
  39906. msgid "@code{action} (default: @code{'()})"
  39907. msgstr ""
  39908. #. type: table
  39909. #: guix-git/doc/guix.texi:26553
  39910. 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}."
  39911. msgstr ""
  39912. #. type: item
  39913. #: guix-git/doc/guix.texi:26554
  39914. #, no-wrap
  39915. msgid "@code{deny?} (default: @code{#f})"
  39916. msgstr ""
  39917. #. type: table
  39918. #: guix-git/doc/guix.texi:26557
  39919. msgid "When true, the ACL defines restrictions. Listed actions are forbidden. When false, listed actions are allowed."
  39920. msgstr ""
  39921. #. type: deftp
  39922. #: guix-git/doc/guix.texi:26561
  39923. #, no-wrap
  39924. msgid "{Data Type} zone-entry"
  39925. msgstr ""
  39926. #. type: deftp
  39927. #: guix-git/doc/guix.texi:26564
  39928. msgid "Data type representing a record entry in a zone file. This type has the following parameters:"
  39929. msgstr ""
  39930. #. type: item
  39931. #: guix-git/doc/guix.texi:26566
  39932. #, no-wrap
  39933. msgid "@code{name} (default: @code{\"@@\"})"
  39934. msgstr ""
  39935. #. type: table
  39936. #: guix-git/doc/guix.texi:26572
  39937. 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}."
  39938. msgstr ""
  39939. #. type: item
  39940. #: guix-git/doc/guix.texi:26573
  39941. #, no-wrap
  39942. msgid "@code{ttl} (default: @code{\"\"})"
  39943. msgstr ""
  39944. #. type: table
  39945. #: guix-git/doc/guix.texi:26575
  39946. msgid "The Time-To-Live (TTL) of this record. If not set, the default TTL is used."
  39947. msgstr ""
  39948. #. type: item
  39949. #: guix-git/doc/guix.texi:26576
  39950. #, no-wrap
  39951. msgid "@code{class} (default: @code{\"IN\"})"
  39952. msgstr ""
  39953. #. type: table
  39954. #: guix-git/doc/guix.texi:26579
  39955. msgid "The class of the record. Knot currently supports only @code{\"IN\"} and partially @code{\"CH\"}."
  39956. msgstr ""
  39957. #. type: item
  39958. #: guix-git/doc/guix.texi:26580
  39959. #, no-wrap
  39960. msgid "@code{type} (default: @code{\"A\"})"
  39961. msgstr ""
  39962. #. type: table
  39963. #: guix-git/doc/guix.texi:26584
  39964. 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."
  39965. msgstr ""
  39966. #. type: item
  39967. #: guix-git/doc/guix.texi:26585
  39968. #, no-wrap
  39969. msgid "@code{data} (default: @code{\"\"})"
  39970. msgstr ""
  39971. #. type: table
  39972. #: guix-git/doc/guix.texi:26589
  39973. 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."
  39974. msgstr ""
  39975. #. type: deftp
  39976. #: guix-git/doc/guix.texi:26593
  39977. #, no-wrap
  39978. msgid "{Data Type} zone-file"
  39979. msgstr ""
  39980. #. type: deftp
  39981. #: guix-git/doc/guix.texi:26596
  39982. msgid "Data type representing the content of a zone file. This type has the following parameters:"
  39983. msgstr ""
  39984. #. type: table
  39985. #: guix-git/doc/guix.texi:26605
  39986. 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}."
  39987. msgstr ""
  39988. #. type: item
  39989. #: guix-git/doc/guix.texi:26606
  39990. #, no-wrap
  39991. msgid "@code{origin} (default: @code{\"\"})"
  39992. msgstr ""
  39993. #. type: table
  39994. #: guix-git/doc/guix.texi:26608
  39995. msgid "The name of your zone. This parameter cannot be empty."
  39996. msgstr ""
  39997. #. type: item
  39998. #: guix-git/doc/guix.texi:26609
  39999. #, no-wrap
  40000. msgid "@code{ns} (default: @code{\"ns\"})"
  40001. msgstr ""
  40002. #. type: table
  40003. #: guix-git/doc/guix.texi:26614
  40004. 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."
  40005. msgstr ""
  40006. #. type: item
  40007. #: guix-git/doc/guix.texi:26615
  40008. #, no-wrap
  40009. msgid "@code{mail} (default: @code{\"hostmaster\"})"
  40010. msgstr ""
  40011. #. type: table
  40012. #: guix-git/doc/guix.texi:26618
  40013. msgid "An email address people can contact you at, as the owner of the zone. This is translated as @code{<mail>@@<origin>}."
  40014. msgstr ""
  40015. #. type: item
  40016. #: guix-git/doc/guix.texi:26619
  40017. #, no-wrap
  40018. msgid "@code{serial} (default: @code{1})"
  40019. msgstr ""
  40020. #. type: table
  40021. #: guix-git/doc/guix.texi:26623
  40022. 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."
  40023. msgstr ""
  40024. #. type: item
  40025. #: guix-git/doc/guix.texi:26624
  40026. #, no-wrap
  40027. msgid "@code{refresh} (default: @code{(* 2 24 3600)})"
  40028. msgstr ""
  40029. #. type: table
  40030. #: guix-git/doc/guix.texi:26628
  40031. 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)}."
  40032. msgstr ""
  40033. #. type: item
  40034. #: guix-git/doc/guix.texi:26629
  40035. #, no-wrap
  40036. msgid "@code{retry} (default: @code{(* 15 60)})"
  40037. msgstr ""
  40038. #. type: table
  40039. #: guix-git/doc/guix.texi:26632
  40040. msgid "The period after which a slave will retry to contact its master when it fails to do so a first time."
  40041. msgstr ""
  40042. #. type: item
  40043. #: guix-git/doc/guix.texi:26633
  40044. #, no-wrap
  40045. msgid "@code{expiry} (default: @code{(* 14 24 3600)})"
  40046. msgstr ""
  40047. #. type: table
  40048. #: guix-git/doc/guix.texi:26637
  40049. 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."
  40050. msgstr ""
  40051. #. type: item
  40052. #: guix-git/doc/guix.texi:26638
  40053. #, no-wrap
  40054. msgid "@code{nx} (default: @code{3600})"
  40055. msgstr ""
  40056. #. type: table
  40057. #: guix-git/doc/guix.texi:26641
  40058. msgid "Default TTL of inexistent records. This delay is usually short because you want your new domains to reach everyone quickly."
  40059. msgstr ""
  40060. #. type: deftp
  40061. #: guix-git/doc/guix.texi:26645
  40062. #, no-wrap
  40063. msgid "{Data Type} knot-remote-configuration"
  40064. msgstr ""
  40065. #. type: deftp
  40066. #: guix-git/doc/guix.texi:26648
  40067. msgid "Data type representing a remote configuration. This type has the following parameters:"
  40068. msgstr ""
  40069. #. type: table
  40070. #: guix-git/doc/guix.texi:26653
  40071. msgid "An identifier for other configuration fields to refer to this remote. IDs must be unique and must not be empty."
  40072. msgstr ""
  40073. #. type: table
  40074. #: guix-git/doc/guix.texi:26658
  40075. 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."
  40076. msgstr ""
  40077. #. type: item
  40078. #: guix-git/doc/guix.texi:26659
  40079. #, no-wrap
  40080. msgid "@code{via} (default: @code{'()})"
  40081. msgstr ""
  40082. #. type: table
  40083. #: guix-git/doc/guix.texi:26663
  40084. 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."
  40085. msgstr ""
  40086. #. type: table
  40087. #: guix-git/doc/guix.texi:26667
  40088. msgid "A reference to a key, that is a string containing the identifier of a key defined in a @code{knot-key-configuration} field."
  40089. msgstr ""
  40090. #. type: deftp
  40091. #: guix-git/doc/guix.texi:26671
  40092. #, no-wrap
  40093. msgid "{Data Type} knot-keystore-configuration"
  40094. msgstr ""
  40095. #. type: deftp
  40096. #: guix-git/doc/guix.texi:26674
  40097. msgid "Data type representing a keystore to hold dnssec keys. This type has the following parameters:"
  40098. msgstr ""
  40099. #. type: table
  40100. #: guix-git/doc/guix.texi:26678
  40101. msgid "The id of the keystore. It must not be empty."
  40102. msgstr ""
  40103. #. type: item
  40104. #: guix-git/doc/guix.texi:26679
  40105. #, no-wrap
  40106. msgid "@code{backend} (default: @code{'pem})"
  40107. msgstr ""
  40108. #. type: table
  40109. #: guix-git/doc/guix.texi:26681
  40110. msgid "The backend to store the keys in. Can be @code{'pem} or @code{'pkcs11}."
  40111. msgstr ""
  40112. #. type: item
  40113. #: guix-git/doc/guix.texi:26682
  40114. #, no-wrap
  40115. msgid "@code{config} (default: @code{\"/var/lib/knot/keys/keys\"})"
  40116. msgstr ""
  40117. #. type: table
  40118. #: guix-git/doc/guix.texi:26686
  40119. 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."
  40120. msgstr ""
  40121. #. type: deftp
  40122. #: guix-git/doc/guix.texi:26690
  40123. #, no-wrap
  40124. msgid "{Data Type} knot-policy-configuration"
  40125. msgstr ""
  40126. #. type: deftp
  40127. #: guix-git/doc/guix.texi:26694
  40128. 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."
  40129. msgstr ""
  40130. #. type: deftp
  40131. #: guix-git/doc/guix.texi:26701
  40132. 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."
  40133. msgstr ""
  40134. #. type: deftp
  40135. #: guix-git/doc/guix.texi:26707
  40136. 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."
  40137. msgstr ""
  40138. #. type: deftp
  40139. #: guix-git/doc/guix.texi:26709
  40140. msgid "This type has the following parameters:"
  40141. msgstr ""
  40142. #. type: table
  40143. #: guix-git/doc/guix.texi:26713
  40144. msgid "The id of the policy. It must not be empty."
  40145. msgstr ""
  40146. #. type: item
  40147. #: guix-git/doc/guix.texi:26714
  40148. #, no-wrap
  40149. msgid "@code{keystore} (default: @code{\"default\"})"
  40150. msgstr ""
  40151. #. type: table
  40152. #: guix-git/doc/guix.texi:26719
  40153. 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)."
  40154. msgstr ""
  40155. #. type: item
  40156. #: guix-git/doc/guix.texi:26720
  40157. #, no-wrap
  40158. msgid "@code{manual?} (default: @code{#f})"
  40159. msgstr ""
  40160. #. type: table
  40161. #: guix-git/doc/guix.texi:26722
  40162. msgid "Whether the key management is manual or automatic."
  40163. msgstr ""
  40164. #. type: item
  40165. #: guix-git/doc/guix.texi:26723
  40166. #, no-wrap
  40167. msgid "@code{single-type-signing?} (default: @code{#f})"
  40168. msgstr ""
  40169. #. type: table
  40170. #: guix-git/doc/guix.texi:26725
  40171. msgid "When @code{#t}, use the Single-Type Signing Scheme."
  40172. msgstr ""
  40173. #. type: item
  40174. #: guix-git/doc/guix.texi:26726
  40175. #, no-wrap
  40176. msgid "@code{algorithm} (default: @code{\"ecdsap256sha256\"})"
  40177. msgstr ""
  40178. #. type: table
  40179. #: guix-git/doc/guix.texi:26728
  40180. msgid "An algorithm of signing keys and issued signatures."
  40181. msgstr ""
  40182. #. type: item
  40183. #: guix-git/doc/guix.texi:26729
  40184. #, no-wrap
  40185. msgid "@code{ksk-size} (default: @code{256})"
  40186. msgstr ""
  40187. #. type: table
  40188. #: guix-git/doc/guix.texi:26732
  40189. msgid "The length of the KSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  40190. msgstr ""
  40191. #. type: item
  40192. #: guix-git/doc/guix.texi:26733
  40193. #, no-wrap
  40194. msgid "@code{zsk-size} (default: @code{256})"
  40195. msgstr ""
  40196. #. type: table
  40197. #: guix-git/doc/guix.texi:26736
  40198. msgid "The length of the ZSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  40199. msgstr ""
  40200. #. type: item
  40201. #: guix-git/doc/guix.texi:26737
  40202. #, no-wrap
  40203. msgid "@code{dnskey-ttl} (default: @code{'default})"
  40204. msgstr ""
  40205. #. type: table
  40206. #: guix-git/doc/guix.texi:26740
  40207. msgid "The TTL value for DNSKEY records added into zone apex. The special @code{'default} value means same as the zone SOA TTL."
  40208. msgstr ""
  40209. #. type: item
  40210. #: guix-git/doc/guix.texi:26741
  40211. #, no-wrap
  40212. msgid "@code{zsk-lifetime} (default: @code{(* 30 24 3600)})"
  40213. msgstr ""
  40214. #. type: table
  40215. #: guix-git/doc/guix.texi:26743
  40216. msgid "The period between ZSK publication and the next rollover initiation."
  40217. msgstr ""
  40218. #. type: item
  40219. #: guix-git/doc/guix.texi:26744
  40220. #, no-wrap
  40221. msgid "@code{propagation-delay} (default: @code{(* 24 3600)})"
  40222. msgstr ""
  40223. #. type: table
  40224. #: guix-git/doc/guix.texi:26747
  40225. 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."
  40226. msgstr ""
  40227. #. type: item
  40228. #: guix-git/doc/guix.texi:26748
  40229. #, no-wrap
  40230. msgid "@code{rrsig-lifetime} (default: @code{(* 14 24 3600)})"
  40231. msgstr ""
  40232. #. type: table
  40233. #: guix-git/doc/guix.texi:26750
  40234. msgid "A validity period of newly issued signatures."
  40235. msgstr ""
  40236. #. type: item
  40237. #: guix-git/doc/guix.texi:26751
  40238. #, no-wrap
  40239. msgid "@code{rrsig-refresh} (default: @code{(* 7 24 3600)})"
  40240. msgstr ""
  40241. #. type: table
  40242. #: guix-git/doc/guix.texi:26753
  40243. msgid "A period how long before a signature expiration the signature will be refreshed."
  40244. msgstr ""
  40245. #. type: item
  40246. #: guix-git/doc/guix.texi:26754
  40247. #, no-wrap
  40248. msgid "@code{nsec3?} (default: @code{#f})"
  40249. msgstr ""
  40250. #. type: table
  40251. #: guix-git/doc/guix.texi:26756
  40252. msgid "When @code{#t}, NSEC3 will be used instead of NSEC."
  40253. msgstr ""
  40254. #. type: item
  40255. #: guix-git/doc/guix.texi:26757
  40256. #, no-wrap
  40257. msgid "@code{nsec3-iterations} (default: @code{5})"
  40258. msgstr ""
  40259. #. type: table
  40260. #: guix-git/doc/guix.texi:26759
  40261. msgid "The number of additional times the hashing is performed."
  40262. msgstr ""
  40263. #. type: item
  40264. #: guix-git/doc/guix.texi:26760
  40265. #, no-wrap
  40266. msgid "@code{nsec3-salt-length} (default: @code{8})"
  40267. msgstr ""
  40268. #. type: table
  40269. #: guix-git/doc/guix.texi:26763
  40270. msgid "The length of a salt field in octets, which is appended to the original owner name before hashing."
  40271. msgstr ""
  40272. #. type: item
  40273. #: guix-git/doc/guix.texi:26764
  40274. #, no-wrap
  40275. msgid "@code{nsec3-salt-lifetime} (default: @code{(* 30 24 3600)})"
  40276. msgstr ""
  40277. #. type: table
  40278. #: guix-git/doc/guix.texi:26766
  40279. msgid "The validity period of newly issued salt field."
  40280. msgstr ""
  40281. #. type: deftp
  40282. #: guix-git/doc/guix.texi:26770
  40283. #, no-wrap
  40284. msgid "{Data Type} knot-zone-configuration"
  40285. msgstr ""
  40286. #. type: deftp
  40287. #: guix-git/doc/guix.texi:26773
  40288. msgid "Data type representing a zone served by Knot. This type has the following parameters:"
  40289. msgstr ""
  40290. #. type: item
  40291. #: guix-git/doc/guix.texi:26775
  40292. #, no-wrap
  40293. msgid "@code{domain} (default: @code{\"\"})"
  40294. msgstr ""
  40295. #. type: table
  40296. #: guix-git/doc/guix.texi:26777
  40297. msgid "The domain served by this configuration. It must not be empty."
  40298. msgstr ""
  40299. #. type: item
  40300. #: guix-git/doc/guix.texi:26778
  40301. #, no-wrap
  40302. msgid "@code{file} (default: @code{\"\"})"
  40303. msgstr ""
  40304. #. type: table
  40305. #: guix-git/doc/guix.texi:26781
  40306. 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."
  40307. msgstr ""
  40308. #. type: item
  40309. #: guix-git/doc/guix.texi:26782
  40310. #, no-wrap
  40311. msgid "@code{zone} (default: @code{(zone-file)})"
  40312. msgstr ""
  40313. #. type: table
  40314. #: guix-git/doc/guix.texi:26785
  40315. msgid "The content of the zone file. This parameter is ignored by slave zones. It must contain a zone-file record."
  40316. msgstr ""
  40317. #. type: item
  40318. #: guix-git/doc/guix.texi:26786
  40319. #, no-wrap
  40320. msgid "@code{master} (default: @code{'()})"
  40321. msgstr ""
  40322. #. type: table
  40323. #: guix-git/doc/guix.texi:26789
  40324. 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."
  40325. msgstr ""
  40326. #. type: item
  40327. #: guix-git/doc/guix.texi:26790
  40328. #, no-wrap
  40329. msgid "@code{ddns-master} (default: @code{#f})"
  40330. msgstr ""
  40331. #. type: table
  40332. #: guix-git/doc/guix.texi:26793
  40333. msgid "The main master. When empty, it defaults to the first master in the list of masters."
  40334. msgstr ""
  40335. #. type: item
  40336. #: guix-git/doc/guix.texi:26794
  40337. #, no-wrap
  40338. msgid "@code{notify} (default: @code{'()})"
  40339. msgstr ""
  40340. #. type: table
  40341. #: guix-git/doc/guix.texi:26796
  40342. msgid "A list of slave remote identifiers."
  40343. msgstr ""
  40344. #. type: item
  40345. #: guix-git/doc/guix.texi:26797
  40346. #, no-wrap
  40347. msgid "@code{acl} (default: @code{'()})"
  40348. msgstr ""
  40349. #. type: table
  40350. #: guix-git/doc/guix.texi:26799
  40351. msgid "A list of acl identifiers."
  40352. msgstr ""
  40353. #. type: item
  40354. #: guix-git/doc/guix.texi:26800
  40355. #, no-wrap
  40356. msgid "@code{semantic-checks?} (default: @code{#f})"
  40357. msgstr ""
  40358. #. type: table
  40359. #: guix-git/doc/guix.texi:26802
  40360. msgid "When set, this adds more semantic checks to the zone."
  40361. msgstr ""
  40362. #. type: item
  40363. #: guix-git/doc/guix.texi:26803
  40364. #, no-wrap
  40365. msgid "@code{zonefile-sync} (default: @code{0})"
  40366. msgstr ""
  40367. #. type: table
  40368. #: guix-git/doc/guix.texi:26806
  40369. msgid "The delay between a modification in memory and on disk. 0 means immediate synchronization."
  40370. msgstr ""
  40371. #. type: item
  40372. #: guix-git/doc/guix.texi:26807
  40373. #, no-wrap
  40374. msgid "@code{zonefile-load} (default: @code{#f})"
  40375. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40376. #. type: table
  40377. #: guix-git/doc/guix.texi:26810
  40378. msgid "The way the zone file contents are applied during zone load. Possible values are:"
  40379. msgstr ""
  40380. #. type: item
  40381. #: guix-git/doc/guix.texi:26812
  40382. #, no-wrap
  40383. msgid "@code{#f} for using the default value from Knot,"
  40384. msgstr ""
  40385. #. type: item
  40386. #: guix-git/doc/guix.texi:26813
  40387. #, no-wrap
  40388. msgid "@code{'none} for not using the zone file at all,"
  40389. msgstr ""
  40390. #. type: item
  40391. #: guix-git/doc/guix.texi:26814
  40392. #, no-wrap
  40393. msgid "@code{'difference} for computing the difference between already available"
  40394. msgstr ""
  40395. #. type: itemize
  40396. #: guix-git/doc/guix.texi:26816
  40397. msgid "contents and zone contents and applying it to the current zone contents,"
  40398. msgstr ""
  40399. #. type: item
  40400. #: guix-git/doc/guix.texi:26816
  40401. #, no-wrap
  40402. msgid "@code{'difference-no-serial} for the same as @code{'difference}, but"
  40403. msgstr ""
  40404. #. type: itemize
  40405. #: guix-git/doc/guix.texi:26819
  40406. msgid "ignoring the SOA serial in the zone file, while the server takes care of it automatically."
  40407. msgstr ""
  40408. #. type: item
  40409. #: guix-git/doc/guix.texi:26819
  40410. #, no-wrap
  40411. msgid "@code{'whole} for loading zone contents from the zone file."
  40412. msgstr ""
  40413. #. type: item
  40414. #: guix-git/doc/guix.texi:26822
  40415. #, no-wrap
  40416. msgid "@code{journal-content} (default: @code{#f})"
  40417. msgstr "@code{journal-content}(默认值:@code{#f})"
  40418. #. type: table
  40419. #: guix-git/doc/guix.texi:26827
  40420. 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."
  40421. msgstr ""
  40422. #. type: item
  40423. #: guix-git/doc/guix.texi:26828
  40424. #, no-wrap
  40425. msgid "@code{max-journal-usage} (default: @code{#f})"
  40426. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  40427. #. type: table
  40428. #: guix-git/doc/guix.texi:26831
  40429. msgid "The maximum size for the journal on disk. @code{#f} does not set this option, so the default value from Knot is used."
  40430. msgstr ""
  40431. #. type: item
  40432. #: guix-git/doc/guix.texi:26832
  40433. #, no-wrap
  40434. msgid "@code{max-journal-depth} (default: @code{#f})"
  40435. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  40436. #. type: table
  40437. #: guix-git/doc/guix.texi:26835
  40438. msgid "The maximum size of the history. @code{#f} does not set this option, so the default value from Knot is used."
  40439. msgstr ""
  40440. #. type: item
  40441. #: guix-git/doc/guix.texi:26836
  40442. #, no-wrap
  40443. msgid "@code{max-zone-size} (default: @code{#f})"
  40444. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  40445. #. type: table
  40446. #: guix-git/doc/guix.texi:26840
  40447. 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."
  40448. msgstr ""
  40449. #. type: item
  40450. #: guix-git/doc/guix.texi:26841
  40451. #, no-wrap
  40452. msgid "@code{dnssec-policy} (default: @code{#f})"
  40453. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  40454. #. type: table
  40455. #: guix-git/doc/guix.texi:26845
  40456. 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."
  40457. msgstr ""
  40458. #. type: item
  40459. #: guix-git/doc/guix.texi:26846
  40460. #, no-wrap
  40461. msgid "@code{serial-policy} (default: @code{'increment})"
  40462. msgstr ""
  40463. #. type: table
  40464. #: guix-git/doc/guix.texi:26848
  40465. msgid "A policy between @code{'increment} and @code{'unixtime}."
  40466. msgstr ""
  40467. #. type: deftp
  40468. #: guix-git/doc/guix.texi:26852
  40469. #, no-wrap
  40470. msgid "{Data Type} knot-configuration"
  40471. msgstr ""
  40472. #. type: deftp
  40473. #: guix-git/doc/guix.texi:26855
  40474. msgid "Data type representing the Knot configuration. This type has the following parameters:"
  40475. msgstr ""
  40476. #. type: item
  40477. #: guix-git/doc/guix.texi:26857
  40478. #, no-wrap
  40479. msgid "@code{knot} (default: @code{knot})"
  40480. msgstr ""
  40481. #. type: table
  40482. #: guix-git/doc/guix.texi:26859
  40483. msgid "The Knot package."
  40484. msgstr ""
  40485. #. type: item
  40486. #: guix-git/doc/guix.texi:26860
  40487. #, no-wrap
  40488. msgid "@code{run-directory} (default: @code{\"/var/run/knot\"})"
  40489. msgstr ""
  40490. #. type: table
  40491. #: guix-git/doc/guix.texi:26862
  40492. msgid "The run directory. This directory will be used for pid file and sockets."
  40493. msgstr ""
  40494. #. type: item
  40495. #: guix-git/doc/guix.texi:26863
  40496. #, no-wrap
  40497. msgid "@code{includes} (default: @code{'()})"
  40498. msgstr "@code{includes}(默认值:@code{'()})"
  40499. #. type: table
  40500. #: guix-git/doc/guix.texi:26866
  40501. msgid "A list of strings or file-like objects denoting other files that must be included at the top of the configuration file."
  40502. msgstr ""
  40503. #. type: cindex
  40504. #: guix-git/doc/guix.texi:26867
  40505. #, no-wrap
  40506. msgid "secrets, Knot service"
  40507. msgstr "秘密,Knot服务。"
  40508. #. type: table
  40509. #: guix-git/doc/guix.texi:26873
  40510. 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."
  40511. msgstr ""
  40512. #. type: table
  40513. #: guix-git/doc/guix.texi:26878
  40514. 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:"
  40515. msgstr ""
  40516. #. type: example
  40517. #: guix-git/doc/guix.texi:26882
  40518. #, no-wrap
  40519. msgid ""
  40520. "keymgr -t mysecret > /etc/knot/secrets.conf\n"
  40521. "chmod 600 /etc/knot/secrets.conf\n"
  40522. msgstr ""
  40523. #. type: table
  40524. #: guix-git/doc/guix.texi:26888
  40525. 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."
  40526. msgstr ""
  40527. #. type: table
  40528. #: guix-git/doc/guix.texi:26890
  40529. msgid "It can also be used to add configuration not supported by this interface."
  40530. msgstr ""
  40531. #. type: item
  40532. #: guix-git/doc/guix.texi:26891
  40533. #, no-wrap
  40534. msgid "@code{listen-v4} (default: @code{\"0.0.0.0\"})"
  40535. msgstr ""
  40536. #. type: table
  40537. #: guix-git/doc/guix.texi:26893 guix-git/doc/guix.texi:26896
  40538. msgid "An ip address on which to listen."
  40539. msgstr ""
  40540. #. type: item
  40541. #: guix-git/doc/guix.texi:26894
  40542. #, no-wrap
  40543. msgid "@code{listen-v6} (default: @code{\"::\"})"
  40544. msgstr ""
  40545. #. type: item
  40546. #: guix-git/doc/guix.texi:26897
  40547. #, no-wrap
  40548. msgid "@code{listen-port} (default: @code{53})"
  40549. msgstr ""
  40550. #. type: table
  40551. #: guix-git/doc/guix.texi:26899
  40552. msgid "A port on which to listen."
  40553. msgstr ""
  40554. #. type: item
  40555. #: guix-git/doc/guix.texi:26900
  40556. #, no-wrap
  40557. msgid "@code{keys} (default: @code{'()})"
  40558. msgstr ""
  40559. #. type: table
  40560. #: guix-git/doc/guix.texi:26902
  40561. msgid "The list of knot-key-configuration used by this configuration."
  40562. msgstr ""
  40563. #. type: item
  40564. #: guix-git/doc/guix.texi:26903
  40565. #, no-wrap
  40566. msgid "@code{acls} (default: @code{'()})"
  40567. msgstr ""
  40568. #. type: table
  40569. #: guix-git/doc/guix.texi:26905
  40570. msgid "The list of knot-acl-configuration used by this configuration."
  40571. msgstr ""
  40572. #. type: item
  40573. #: guix-git/doc/guix.texi:26906
  40574. #, no-wrap
  40575. msgid "@code{remotes} (default: @code{'()})"
  40576. msgstr ""
  40577. #. type: table
  40578. #: guix-git/doc/guix.texi:26908
  40579. msgid "The list of knot-remote-configuration used by this configuration."
  40580. msgstr ""
  40581. #. type: item
  40582. #: guix-git/doc/guix.texi:26909
  40583. #, no-wrap
  40584. msgid "@code{zones} (default: @code{'()})"
  40585. msgstr ""
  40586. #. type: table
  40587. #: guix-git/doc/guix.texi:26911
  40588. msgid "The list of knot-zone-configuration used by this configuration."
  40589. msgstr ""
  40590. #. type: subsubheading
  40591. #: guix-git/doc/guix.texi:26915
  40592. #, fuzzy, no-wrap
  40593. msgid "Knot Resolver Service"
  40594. msgstr "Kerberos服务"
  40595. #. type: deffn
  40596. #: guix-git/doc/guix.texi:26917
  40597. #, no-wrap
  40598. msgid "{Scheme Variable} knot-resolver-service-type"
  40599. msgstr ""
  40600. #. type: deffn
  40601. #: guix-git/doc/guix.texi:26920
  40602. msgid "This is the type of the knot resolver service, whose value should be an @code{knot-resolver-configuration} object as in this example:"
  40603. msgstr ""
  40604. #. type: lisp
  40605. #: guix-git/doc/guix.texi:26930
  40606. #, no-wrap
  40607. msgid ""
  40608. "(service knot-resolver-service-type\n"
  40609. " (knot-resolver-configuration\n"
  40610. " (kresd-config-file (plain-file \"kresd.conf\" \"\n"
  40611. "net.listen('192.168.0.1', 5353)\n"
  40612. "user('knot-resolver', 'knot-resolver')\n"
  40613. "modules = @{ 'hints > iterate', 'stats', 'predict' @}\n"
  40614. "cache.size = 100 * MB\n"
  40615. "\"))))\n"
  40616. msgstr ""
  40617. #. type: deffn
  40618. #: guix-git/doc/guix.texi:26933
  40619. msgid "For more information, refer its @url{https://knot-resolver.readthedocs.org/en/stable/daemon.html#configuration, manual}."
  40620. msgstr ""
  40621. #. type: deftp
  40622. #: guix-git/doc/guix.texi:26935
  40623. #, no-wrap
  40624. msgid "{Data Type} knot-resolver-configuration"
  40625. msgstr ""
  40626. #. type: deftp
  40627. #: guix-git/doc/guix.texi:26937
  40628. #, fuzzy
  40629. msgid "Data type representing the configuration of knot-resolver."
  40630. msgstr "管理操作系统配置。"
  40631. #. type: item
  40632. #: guix-git/doc/guix.texi:26939
  40633. #, fuzzy, no-wrap
  40634. msgid "@code{package} (default: @var{knot-resolver})"
  40635. msgstr "@code{gnome}(默认值:@code{gnome})"
  40636. #. type: table
  40637. #: guix-git/doc/guix.texi:26941
  40638. msgid "Package object of the knot DNS resolver."
  40639. msgstr ""
  40640. #. type: item
  40641. #: guix-git/doc/guix.texi:26942
  40642. #, fuzzy, no-wrap
  40643. msgid "@code{kresd-config-file} (default: %kresd.conf)"
  40644. msgstr "@code{compression-level}(默认值:@code{3})"
  40645. #. type: table
  40646. #: guix-git/doc/guix.texi:26945
  40647. 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}."
  40648. msgstr ""
  40649. #. type: item
  40650. #: guix-git/doc/guix.texi:26946
  40651. #, fuzzy, no-wrap
  40652. msgid "@code{garbage-collection-interval} (default: 1000)"
  40653. msgstr "@code{parallel-builds}(默认值:@code{1})"
  40654. #. type: table
  40655. #: guix-git/doc/guix.texi:26948
  40656. msgid "Number of milliseconds for @code{kres-cache-gc} to periodically trim the cache."
  40657. msgstr ""
  40658. #. type: subsubheading
  40659. #: guix-git/doc/guix.texi:26953
  40660. #, no-wrap
  40661. msgid "Dnsmasq Service"
  40662. msgstr ""
  40663. #. type: deffn
  40664. #: guix-git/doc/guix.texi:26955
  40665. #, no-wrap
  40666. msgid "{Scheme Variable} dnsmasq-service-type"
  40667. msgstr ""
  40668. #. type: deffn
  40669. #: guix-git/doc/guix.texi:26958
  40670. msgid "This is the type of the dnsmasq service, whose value should be an @code{dnsmasq-configuration} object as in this example:"
  40671. msgstr ""
  40672. #. type: lisp
  40673. #: guix-git/doc/guix.texi:26964
  40674. #, no-wrap
  40675. msgid ""
  40676. "(service dnsmasq-service-type\n"
  40677. " (dnsmasq-configuration\n"
  40678. " (no-resolv? #t)\n"
  40679. " (servers '(\"192.168.1.1\"))))\n"
  40680. msgstr ""
  40681. #. type: deftp
  40682. #: guix-git/doc/guix.texi:26967
  40683. #, no-wrap
  40684. msgid "{Data Type} dnsmasq-configuration"
  40685. msgstr ""
  40686. #. type: deftp
  40687. #: guix-git/doc/guix.texi:26969
  40688. msgid "Data type representing the configuration of dnsmasq."
  40689. msgstr ""
  40690. #. type: item
  40691. #: guix-git/doc/guix.texi:26971
  40692. #, no-wrap
  40693. msgid "@code{package} (default: @var{dnsmasq})"
  40694. msgstr ""
  40695. #. type: table
  40696. #: guix-git/doc/guix.texi:26973
  40697. msgid "Package object of the dnsmasq server."
  40698. msgstr ""
  40699. #. type: item
  40700. #: guix-git/doc/guix.texi:26974
  40701. #, no-wrap
  40702. msgid "@code{no-hosts?} (default: @code{#f})"
  40703. msgstr ""
  40704. #. type: table
  40705. #: guix-git/doc/guix.texi:26976
  40706. msgid "When true, don't read the hostnames in /etc/hosts."
  40707. msgstr ""
  40708. #. type: item
  40709. #: guix-git/doc/guix.texi:26977
  40710. #, no-wrap
  40711. msgid "@code{port} (default: @code{53})"
  40712. msgstr ""
  40713. #. type: table
  40714. #: guix-git/doc/guix.texi:26980
  40715. msgid "The port to listen on. Setting this to zero completely disables DNS responses, leaving only DHCP and/or TFTP functions."
  40716. msgstr ""
  40717. #. type: item
  40718. #: guix-git/doc/guix.texi:26981
  40719. #, no-wrap
  40720. msgid "@code{local-service?} (default: @code{#t})"
  40721. msgstr ""
  40722. #. type: table
  40723. #: guix-git/doc/guix.texi:26984
  40724. 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."
  40725. msgstr ""
  40726. #. type: item
  40727. #: guix-git/doc/guix.texi:26985
  40728. #, no-wrap
  40729. msgid "@code{listen-addresses} (default: @code{'()})"
  40730. msgstr ""
  40731. #. type: table
  40732. #: guix-git/doc/guix.texi:26987
  40733. msgid "Listen on the given IP addresses."
  40734. msgstr ""
  40735. #. type: item
  40736. #: guix-git/doc/guix.texi:26988
  40737. #, no-wrap
  40738. msgid "@code{resolv-file} (default: @code{\"/etc/resolv.conf\"})"
  40739. msgstr ""
  40740. #. type: table
  40741. #: guix-git/doc/guix.texi:26990
  40742. msgid "The file to read the IP address of the upstream nameservers from."
  40743. msgstr ""
  40744. #. type: item
  40745. #: guix-git/doc/guix.texi:26991
  40746. #, no-wrap
  40747. msgid "@code{no-resolv?} (default: @code{#f})"
  40748. msgstr ""
  40749. #. type: table
  40750. #: guix-git/doc/guix.texi:26993
  40751. msgid "When true, don't read @var{resolv-file}."
  40752. msgstr ""
  40753. #. type: item
  40754. #: guix-git/doc/guix.texi:26994
  40755. #, no-wrap
  40756. msgid "@code{servers} (default: @code{'()})"
  40757. msgstr ""
  40758. #. type: table
  40759. #: guix-git/doc/guix.texi:26996
  40760. msgid "Specify IP address of upstream servers directly."
  40761. msgstr ""
  40762. #. type: item
  40763. #: guix-git/doc/guix.texi:26997
  40764. #, fuzzy, no-wrap
  40765. msgid "@code{addresses} (default: @code{'()})"
  40766. msgstr "@code{features} (@code{'()})"
  40767. #. type: table
  40768. #: guix-git/doc/guix.texi:27001
  40769. 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."
  40770. msgstr ""
  40771. #. type: table
  40772. #: guix-git/doc/guix.texi:27003
  40773. msgid "This is useful for redirecting hosts locally, for example:"
  40774. msgstr ""
  40775. #. type: lisp
  40776. #: guix-git/doc/guix.texi:27012
  40777. #, no-wrap
  40778. msgid ""
  40779. "(service dnsmasq-service-type\n"
  40780. " (dnsmasq-configuration\n"
  40781. " (addresses\n"
  40782. " '(; Redirect to a local web-server.\n"
  40783. " \"/example.org/127.0.0.1\"\n"
  40784. " ; Redirect subdomain to a specific IP.\n"
  40785. " \"/subdomain.example.org/192.168.1.42\"))))\n"
  40786. msgstr ""
  40787. #. type: table
  40788. #: guix-git/doc/guix.texi:27015
  40789. msgid "Note that rules in @file{/etc/hosts} take precedence over this."
  40790. msgstr ""
  40791. #. type: item
  40792. #: guix-git/doc/guix.texi:27016
  40793. #, no-wrap
  40794. msgid "@code{cache-size} (default: @code{150})"
  40795. msgstr ""
  40796. #. type: table
  40797. #: guix-git/doc/guix.texi:27019
  40798. msgid "Set the size of dnsmasq's cache. Setting the cache size to zero disables caching."
  40799. msgstr ""
  40800. #. type: item
  40801. #: guix-git/doc/guix.texi:27020
  40802. #, no-wrap
  40803. msgid "@code{negative-cache?} (default: @code{#t})"
  40804. msgstr ""
  40805. #. type: table
  40806. #: guix-git/doc/guix.texi:27022
  40807. msgid "When false, disable negative caching."
  40808. msgstr ""
  40809. #. type: item
  40810. #: guix-git/doc/guix.texi:27023
  40811. #, fuzzy, no-wrap
  40812. msgid "@code{tftp-enable?} (default: @code{#f})"
  40813. msgstr "@code{challenge}(默认值:@code{#f})"
  40814. #. type: table
  40815. #: guix-git/doc/guix.texi:27025
  40816. msgid "Whether to enable the built-in TFTP server."
  40817. msgstr ""
  40818. #. type: item
  40819. #: guix-git/doc/guix.texi:27026
  40820. #, fuzzy, no-wrap
  40821. msgid "@code{tftp-no-fail?} (default: @code{#f})"
  40822. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40823. #. type: table
  40824. #: guix-git/doc/guix.texi:27028
  40825. msgid "If true, does not fail dnsmasq if the TFTP server could not start up."
  40826. msgstr ""
  40827. #. type: item
  40828. #: guix-git/doc/guix.texi:27029
  40829. #, fuzzy, no-wrap
  40830. msgid "@code{tftp-single-port?} (default: @code{#f})"
  40831. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40832. #. type: table
  40833. #: guix-git/doc/guix.texi:27031
  40834. msgid "Whether to use only one single port for TFTP."
  40835. msgstr ""
  40836. #. type: item
  40837. #: guix-git/doc/guix.texi:27032
  40838. #, fuzzy, no-wrap
  40839. msgid "@code{tftp-secure?} (default: @code{#f})"
  40840. msgstr "@code{xfce}(默认值:@code{xfce})"
  40841. #. type: table
  40842. #: guix-git/doc/guix.texi:27034
  40843. msgid "If true, only files owned by the user running the dnsmasq process are accessible."
  40844. msgstr ""
  40845. #. type: table
  40846. #: guix-git/doc/guix.texi:27038
  40847. 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."
  40848. msgstr ""
  40849. #. type: item
  40850. #: guix-git/doc/guix.texi:27039
  40851. #, fuzzy, no-wrap
  40852. msgid "@code{tftp-max} (default: @code{#f})"
  40853. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40854. #. type: table
  40855. #: guix-git/doc/guix.texi:27041
  40856. msgid "If set, sets the maximal number of concurrent connections allowed."
  40857. msgstr ""
  40858. #. type: item
  40859. #: guix-git/doc/guix.texi:27042
  40860. #, fuzzy, no-wrap
  40861. msgid "@code{tftp-mtu} (default: @code{#f})"
  40862. msgstr "@code{port}(默认值:@code{22})"
  40863. #. type: table
  40864. #: guix-git/doc/guix.texi:27044
  40865. msgid "If set, sets the MTU for TFTP packets to that value."
  40866. msgstr ""
  40867. #. type: item
  40868. #: guix-git/doc/guix.texi:27045
  40869. #, fuzzy, no-wrap
  40870. msgid "@code{tftp-no-blocksize?} (default: @code{#f})"
  40871. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  40872. #. type: table
  40873. #: guix-git/doc/guix.texi:27047
  40874. msgid "If true, stops the TFTP server from negotiating the blocksize with a client."
  40875. msgstr ""
  40876. #. type: item
  40877. #: guix-git/doc/guix.texi:27048
  40878. #, fuzzy, no-wrap
  40879. msgid "@code{tftp-lowercase?} (default: @code{#f})"
  40880. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40881. #. type: table
  40882. #: guix-git/doc/guix.texi:27050
  40883. msgid "Whether to convert all filenames in TFTP requests to lowercase."
  40884. msgstr ""
  40885. #. type: item
  40886. #: guix-git/doc/guix.texi:27051
  40887. #, fuzzy, no-wrap
  40888. msgid "@code{tftp-port-range} (default: @code{#f})"
  40889. msgstr "@code{challenge}(默认值:@code{#f})"
  40890. #. type: table
  40891. #: guix-git/doc/guix.texi:27054
  40892. msgid "If set, fixes the dynamical ports (one per client) to the given range (@code{\"<start>,<end>\"})."
  40893. msgstr ""
  40894. #. type: item
  40895. #: guix-git/doc/guix.texi:27055
  40896. #, fuzzy, no-wrap
  40897. msgid "@code{tftp-root} (default: @code{/var/empty,lo})"
  40898. msgstr "@code{port}(默认值:@code{22})"
  40899. #. type: table
  40900. #: guix-git/doc/guix.texi:27062
  40901. 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."
  40902. msgstr ""
  40903. #. type: item
  40904. #: guix-git/doc/guix.texi:27063
  40905. #, fuzzy, no-wrap
  40906. msgid "@code{tftp-unique-root} (default: @code{#f})"
  40907. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  40908. #. type: table
  40909. #: guix-git/doc/guix.texi:27068
  40910. 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)."
  40911. msgstr ""
  40912. #. type: table
  40913. #: guix-git/doc/guix.texi:27077
  40914. 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."
  40915. msgstr ""
  40916. #. type: subsubheading
  40917. #: guix-git/doc/guix.texi:27081
  40918. #, no-wrap
  40919. msgid "ddclient Service"
  40920. msgstr ""
  40921. #. type: cindex
  40922. #: guix-git/doc/guix.texi:27083
  40923. #, no-wrap
  40924. msgid "ddclient"
  40925. msgstr ""
  40926. #. type: Plain text
  40927. #: guix-git/doc/guix.texi:27087
  40928. 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}."
  40929. msgstr ""
  40930. #. type: Plain text
  40931. #: guix-git/doc/guix.texi:27090
  40932. msgid "The following example show instantiates the service with its default configuration:"
  40933. msgstr ""
  40934. #. type: lisp
  40935. #: guix-git/doc/guix.texi:27093
  40936. #, no-wrap
  40937. msgid "(service ddclient-service-type)\n"
  40938. msgstr ""
  40939. #. type: Plain text
  40940. #: guix-git/doc/guix.texi:27102
  40941. 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."
  40942. msgstr ""
  40943. #. type: Plain text
  40944. #: guix-git/doc/guix.texi:27106
  40945. msgid "Available @code{ddclient-configuration} fields are:"
  40946. msgstr ""
  40947. #. type: deftypevr
  40948. #: guix-git/doc/guix.texi:27107
  40949. #, no-wrap
  40950. msgid "{@code{ddclient-configuration} parameter} package ddclient"
  40951. msgstr ""
  40952. #. type: deftypevr
  40953. #: guix-git/doc/guix.texi:27109
  40954. msgid "The ddclient package."
  40955. msgstr ""
  40956. #. type: deftypevr
  40957. #: guix-git/doc/guix.texi:27112
  40958. #, no-wrap
  40959. msgid "{@code{ddclient-configuration} parameter} integer daemon"
  40960. msgstr ""
  40961. #. type: deftypevr
  40962. #: guix-git/doc/guix.texi:27114
  40963. msgid "The period after which ddclient will retry to check IP and domain name."
  40964. msgstr ""
  40965. #. type: deftypevr
  40966. #: guix-git/doc/guix.texi:27119
  40967. #, no-wrap
  40968. msgid "{@code{ddclient-configuration} parameter} boolean syslog"
  40969. msgstr ""
  40970. #. type: deftypevr
  40971. #: guix-git/doc/guix.texi:27121
  40972. msgid "Use syslog for the output."
  40973. msgstr ""
  40974. #. type: deftypevr
  40975. #: guix-git/doc/guix.texi:27126
  40976. #, no-wrap
  40977. msgid "{@code{ddclient-configuration} parameter} string mail"
  40978. msgstr ""
  40979. #. type: deftypevr
  40980. #: guix-git/doc/guix.texi:27128
  40981. msgid "Mail to user."
  40982. msgstr ""
  40983. #. type: deftypevr
  40984. #: guix-git/doc/guix.texi:27130 guix-git/doc/guix.texi:27137
  40985. #: guix-git/doc/guix.texi:28936
  40986. msgid "Defaults to @samp{\"root\"}."
  40987. msgstr ""
  40988. #. type: deftypevr
  40989. #: guix-git/doc/guix.texi:27133
  40990. #, no-wrap
  40991. msgid "{@code{ddclient-configuration} parameter} string mail-failure"
  40992. msgstr ""
  40993. #. type: deftypevr
  40994. #: guix-git/doc/guix.texi:27135
  40995. msgid "Mail failed update to user."
  40996. msgstr ""
  40997. #. type: deftypevr
  40998. #: guix-git/doc/guix.texi:27140
  40999. #, no-wrap
  41000. msgid "{@code{ddclient-configuration} parameter} string pid"
  41001. msgstr ""
  41002. #. type: deftypevr
  41003. #: guix-git/doc/guix.texi:27142
  41004. msgid "The ddclient PID file."
  41005. msgstr ""
  41006. #. type: deftypevr
  41007. #: guix-git/doc/guix.texi:27144
  41008. msgid "Defaults to @samp{\"/var/run/ddclient/ddclient.pid\"}."
  41009. msgstr ""
  41010. #. type: deftypevr
  41011. #: guix-git/doc/guix.texi:27147
  41012. #, no-wrap
  41013. msgid "{@code{ddclient-configuration} parameter} boolean ssl"
  41014. msgstr ""
  41015. #. type: deftypevr
  41016. #: guix-git/doc/guix.texi:27149
  41017. msgid "Enable SSL support."
  41018. msgstr ""
  41019. #. type: deftypevr
  41020. #: guix-git/doc/guix.texi:27154
  41021. #, no-wrap
  41022. msgid "{@code{ddclient-configuration} parameter} string user"
  41023. msgstr ""
  41024. #. type: deftypevr
  41025. #: guix-git/doc/guix.texi:27157
  41026. msgid "Specifies the user name or ID that is used when running ddclient program."
  41027. msgstr ""
  41028. #. type: deftypevr
  41029. #: guix-git/doc/guix.texi:27159 guix-git/doc/guix.texi:27166
  41030. msgid "Defaults to @samp{\"ddclient\"}."
  41031. msgstr ""
  41032. #. type: deftypevr
  41033. #: guix-git/doc/guix.texi:27162
  41034. #, no-wrap
  41035. msgid "{@code{ddclient-configuration} parameter} string group"
  41036. msgstr ""
  41037. #. type: deftypevr
  41038. #: guix-git/doc/guix.texi:27164
  41039. msgid "Group of the user who will run the ddclient program."
  41040. msgstr ""
  41041. #. type: deftypevr
  41042. #: guix-git/doc/guix.texi:27169
  41043. #, no-wrap
  41044. msgid "{@code{ddclient-configuration} parameter} string secret-file"
  41045. msgstr ""
  41046. #. type: deftypevr
  41047. #: guix-git/doc/guix.texi:27173
  41048. 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."
  41049. msgstr ""
  41050. #. type: deftypevr
  41051. #: guix-git/doc/guix.texi:27175
  41052. msgid "Defaults to @samp{\"/etc/ddclient/secrets.conf\"}."
  41053. msgstr ""
  41054. #. type: deftypevr
  41055. #: guix-git/doc/guix.texi:27178
  41056. #, no-wrap
  41057. msgid "{@code{ddclient-configuration} parameter} list extra-options"
  41058. msgstr ""
  41059. #. type: deftypevr
  41060. #: guix-git/doc/guix.texi:27180
  41061. msgid "Extra options will be appended to @file{ddclient.conf} file."
  41062. msgstr ""
  41063. #. type: cindex
  41064. #: guix-git/doc/guix.texi:27191
  41065. #, no-wrap
  41066. msgid "VPN (virtual private network)"
  41067. msgstr ""
  41068. #. type: cindex
  41069. #: guix-git/doc/guix.texi:27192
  41070. #, no-wrap
  41071. msgid "virtual private network (VPN)"
  41072. msgstr ""
  41073. #. type: Plain text
  41074. #: guix-git/doc/guix.texi:27196
  41075. msgid "The @code{(gnu services vpn)} module provides services related to @dfn{virtual private networks} (VPNs)."
  41076. msgstr ""
  41077. #. type: subsubheading
  41078. #: guix-git/doc/guix.texi:27197
  41079. #, no-wrap
  41080. msgid "Bitmask"
  41081. msgstr ""
  41082. #. type: defvr
  41083. #: guix-git/doc/guix.texi:27199
  41084. #, no-wrap
  41085. msgid "{Scheme Variable} bitmask-service-type"
  41086. msgstr ""
  41087. #. type: defvr
  41088. #: guix-git/doc/guix.texi:27204
  41089. 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."
  41090. msgstr ""
  41091. #. type: subsubheading
  41092. #: guix-git/doc/guix.texi:27206
  41093. #, no-wrap
  41094. msgid "OpenVPN"
  41095. msgstr ""
  41096. #. type: Plain text
  41097. #: guix-git/doc/guix.texi:27210
  41098. 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@."
  41099. msgstr ""
  41100. #. type: deffn
  41101. #: guix-git/doc/guix.texi:27211
  41102. #, no-wrap
  41103. msgid "{Scheme Procedure} openvpn-client-service @"
  41104. msgstr ""
  41105. #. type: deffn
  41106. #: guix-git/doc/guix.texi:27213
  41107. msgid "[#:config (openvpn-client-configuration)]"
  41108. msgstr ""
  41109. #. type: deffn
  41110. #: guix-git/doc/guix.texi:27215
  41111. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a client."
  41112. msgstr ""
  41113. #. type: deffn
  41114. #: guix-git/doc/guix.texi:27217
  41115. #, no-wrap
  41116. msgid "{Scheme Procedure} openvpn-server-service @"
  41117. msgstr ""
  41118. #. type: deffn
  41119. #: guix-git/doc/guix.texi:27219
  41120. msgid "[#:config (openvpn-server-configuration)]"
  41121. msgstr ""
  41122. #. type: deffn
  41123. #: guix-git/doc/guix.texi:27221
  41124. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a server."
  41125. msgstr ""
  41126. #. type: deffn
  41127. #: guix-git/doc/guix.texi:27223
  41128. msgid "Both can be run simultaneously."
  41129. msgstr ""
  41130. #. type: Plain text
  41131. #: guix-git/doc/guix.texi:27228
  41132. msgid "Available @code{openvpn-client-configuration} fields are:"
  41133. msgstr ""
  41134. #. type: deftypevr
  41135. #: guix-git/doc/guix.texi:27229
  41136. #, no-wrap
  41137. msgid "{@code{openvpn-client-configuration} parameter} package openvpn"
  41138. msgstr ""
  41139. #. type: deftypevr
  41140. #: guix-git/doc/guix.texi:27231 guix-git/doc/guix.texi:27386
  41141. msgid "The OpenVPN package."
  41142. msgstr ""
  41143. #. type: deftypevr
  41144. #: guix-git/doc/guix.texi:27234
  41145. #, no-wrap
  41146. msgid "{@code{openvpn-client-configuration} parameter} string pid-file"
  41147. msgstr ""
  41148. #. type: deftypevr
  41149. #: guix-git/doc/guix.texi:27236 guix-git/doc/guix.texi:27391
  41150. msgid "The OpenVPN pid file."
  41151. msgstr ""
  41152. #. type: deftypevr
  41153. #: guix-git/doc/guix.texi:27238 guix-git/doc/guix.texi:27393
  41154. msgid "Defaults to @samp{\"/var/run/openvpn/openvpn.pid\"}."
  41155. msgstr ""
  41156. #. type: deftypevr
  41157. #: guix-git/doc/guix.texi:27241
  41158. #, no-wrap
  41159. msgid "{@code{openvpn-client-configuration} parameter} proto proto"
  41160. msgstr ""
  41161. #. type: deftypevr
  41162. #: guix-git/doc/guix.texi:27244 guix-git/doc/guix.texi:27399
  41163. msgid "The protocol (UDP or TCP) used to open a channel between clients and servers."
  41164. msgstr ""
  41165. #. type: deftypevr
  41166. #: guix-git/doc/guix.texi:27246 guix-git/doc/guix.texi:27401
  41167. msgid "Defaults to @samp{udp}."
  41168. msgstr ""
  41169. #. type: deftypevr
  41170. #: guix-git/doc/guix.texi:27249
  41171. #, no-wrap
  41172. msgid "{@code{openvpn-client-configuration} parameter} dev dev"
  41173. msgstr ""
  41174. #. type: deftypevr
  41175. #: guix-git/doc/guix.texi:27251 guix-git/doc/guix.texi:27406
  41176. msgid "The device type used to represent the VPN connection."
  41177. msgstr ""
  41178. #. type: deftypevr
  41179. #: guix-git/doc/guix.texi:27253 guix-git/doc/guix.texi:27408
  41180. msgid "Defaults to @samp{tun}."
  41181. msgstr ""
  41182. #. type: Plain text
  41183. #: guix-git/doc/guix.texi:27259 guix-git/doc/guix.texi:27414
  41184. 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}."
  41185. msgstr ""
  41186. #. type: deftypevr
  41187. #: guix-git/doc/guix.texi:27260
  41188. #, no-wrap
  41189. msgid "{@code{openvpn-client-configuration} parameter} maybe-string ca"
  41190. msgstr ""
  41191. #. type: deftypevr
  41192. #: guix-git/doc/guix.texi:27262 guix-git/doc/guix.texi:27417
  41193. msgid "The certificate authority to check connections against."
  41194. msgstr ""
  41195. #. type: deftypevr
  41196. #: guix-git/doc/guix.texi:27264 guix-git/doc/guix.texi:27419
  41197. msgid "Defaults to @samp{\"/etc/openvpn/ca.crt\"}."
  41198. msgstr ""
  41199. #. type: deftypevr
  41200. #: guix-git/doc/guix.texi:27267
  41201. #, no-wrap
  41202. msgid "{@code{openvpn-client-configuration} parameter} maybe-string cert"
  41203. msgstr ""
  41204. #. type: deftypevr
  41205. #: guix-git/doc/guix.texi:27270 guix-git/doc/guix.texi:27425
  41206. msgid "The certificate of the machine the daemon is running on. It should be signed by the authority given in @code{ca}."
  41207. msgstr ""
  41208. #. type: deftypevr
  41209. #: guix-git/doc/guix.texi:27272 guix-git/doc/guix.texi:27427
  41210. msgid "Defaults to @samp{\"/etc/openvpn/client.crt\"}."
  41211. msgstr ""
  41212. #. type: deftypevr
  41213. #: guix-git/doc/guix.texi:27275
  41214. #, no-wrap
  41215. msgid "{@code{openvpn-client-configuration} parameter} maybe-string key"
  41216. msgstr ""
  41217. #. type: deftypevr
  41218. #: guix-git/doc/guix.texi:27278 guix-git/doc/guix.texi:27433
  41219. msgid "The key of the machine the daemon is running on. It must be the key whose certificate is @code{cert}."
  41220. msgstr ""
  41221. #. type: deftypevr
  41222. #: guix-git/doc/guix.texi:27280 guix-git/doc/guix.texi:27435
  41223. msgid "Defaults to @samp{\"/etc/openvpn/client.key\"}."
  41224. msgstr ""
  41225. #. type: deftypevr
  41226. #: guix-git/doc/guix.texi:27283
  41227. #, no-wrap
  41228. msgid "{@code{openvpn-client-configuration} parameter} boolean comp-lzo?"
  41229. msgstr ""
  41230. #. type: deftypevr
  41231. #: guix-git/doc/guix.texi:27285 guix-git/doc/guix.texi:27440
  41232. msgid "Whether to use the lzo compression algorithm."
  41233. msgstr ""
  41234. #. type: deftypevr
  41235. #: guix-git/doc/guix.texi:27290
  41236. #, no-wrap
  41237. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-key?"
  41238. msgstr ""
  41239. #. type: deftypevr
  41240. #: guix-git/doc/guix.texi:27292 guix-git/doc/guix.texi:27447
  41241. msgid "Don't re-read key files across SIGUSR1 or --ping-restart."
  41242. msgstr ""
  41243. #. type: deftypevr
  41244. #: guix-git/doc/guix.texi:27297
  41245. #, no-wrap
  41246. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-tun?"
  41247. msgstr ""
  41248. #. type: deftypevr
  41249. #: guix-git/doc/guix.texi:27300 guix-git/doc/guix.texi:27455
  41250. msgid "Don't close and reopen TUN/TAP device or run up/down scripts across SIGUSR1 or --ping-restart restarts."
  41251. msgstr ""
  41252. #. type: deftypevr
  41253. #: guix-git/doc/guix.texi:27305
  41254. #, no-wrap
  41255. msgid "{@code{openvpn-client-configuration} parameter} boolean fast-io?"
  41256. msgstr ""
  41257. #. type: deftypevr
  41258. #: guix-git/doc/guix.texi:27308 guix-git/doc/guix.texi:27463
  41259. msgid "(Experimental) Optimize TUN/TAP/UDP I/O writes by avoiding a call to poll/epoll/select prior to the write operation."
  41260. msgstr ""
  41261. #. type: deftypevr
  41262. #: guix-git/doc/guix.texi:27312
  41263. #, no-wrap
  41264. msgid "{@code{openvpn-client-configuration} parameter} number verbosity"
  41265. msgstr ""
  41266. #. type: deftypevr
  41267. #: guix-git/doc/guix.texi:27314 guix-git/doc/guix.texi:27469
  41268. msgid "Verbosity level."
  41269. msgstr ""
  41270. #. type: deftypevr
  41271. #: guix-git/doc/guix.texi:27316 guix-git/doc/guix.texi:27471
  41272. #: guix-git/doc/guix.texi:29204 guix-git/doc/guix.texi:29428
  41273. msgid "Defaults to @samp{3}."
  41274. msgstr ""
  41275. #. type: deftypevr
  41276. #: guix-git/doc/guix.texi:27319
  41277. #, no-wrap
  41278. msgid "{@code{openvpn-client-configuration} parameter} tls-auth-client tls-auth"
  41279. msgstr ""
  41280. #. type: deftypevr
  41281. #: guix-git/doc/guix.texi:27322 guix-git/doc/guix.texi:27477
  41282. msgid "Add an additional layer of HMAC authentication on top of the TLS control channel to protect against DoS attacks."
  41283. msgstr ""
  41284. #. type: deftypevr
  41285. #: guix-git/doc/guix.texi:27327
  41286. #, no-wrap
  41287. msgid "{@code{openvpn-client-configuration} parameter} maybe-string auth-user-pass"
  41288. msgstr ""
  41289. #. type: deftypevr
  41290. #: guix-git/doc/guix.texi:27331
  41291. 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."
  41292. msgstr ""
  41293. #. type: deftypevr
  41294. #: guix-git/doc/guix.texi:27333
  41295. msgid "Defaults to @samp{'disabled}."
  41296. msgstr ""
  41297. #. type: deftypevr
  41298. #: guix-git/doc/guix.texi:27335
  41299. #, no-wrap
  41300. msgid "{@code{openvpn-client-configuration} parameter} key-usage verify-key-usage?"
  41301. msgstr ""
  41302. #. type: deftypevr
  41303. #: guix-git/doc/guix.texi:27337
  41304. msgid "Whether to check the server certificate has server usage extension."
  41305. msgstr ""
  41306. #. type: deftypevr
  41307. #: guix-git/doc/guix.texi:27342
  41308. #, no-wrap
  41309. msgid "{@code{openvpn-client-configuration} parameter} bind bind?"
  41310. msgstr ""
  41311. #. type: deftypevr
  41312. #: guix-git/doc/guix.texi:27344
  41313. msgid "Bind to a specific local port number."
  41314. msgstr ""
  41315. #. type: deftypevr
  41316. #: guix-git/doc/guix.texi:27349
  41317. #, no-wrap
  41318. msgid "{@code{openvpn-client-configuration} parameter} resolv-retry resolv-retry?"
  41319. msgstr ""
  41320. #. type: deftypevr
  41321. #: guix-git/doc/guix.texi:27351
  41322. msgid "Retry resolving server address."
  41323. msgstr ""
  41324. #. type: deftypevr
  41325. #: guix-git/doc/guix.texi:27356
  41326. #, no-wrap
  41327. msgid "{@code{openvpn-client-configuration} parameter} openvpn-remote-list remote"
  41328. msgstr ""
  41329. #. type: deftypevr
  41330. #: guix-git/doc/guix.texi:27358
  41331. msgid "A list of remote servers to connect to."
  41332. msgstr ""
  41333. #. type: deftypevr
  41334. #: guix-git/doc/guix.texi:27362
  41335. msgid "Available @code{openvpn-remote-configuration} fields are:"
  41336. msgstr ""
  41337. #. type: deftypevr
  41338. #: guix-git/doc/guix.texi:27363
  41339. #, no-wrap
  41340. msgid "{@code{openvpn-remote-configuration} parameter} string name"
  41341. msgstr ""
  41342. #. type: deftypevr
  41343. #: guix-git/doc/guix.texi:27365
  41344. msgid "Server name."
  41345. msgstr ""
  41346. #. type: deftypevr
  41347. #: guix-git/doc/guix.texi:27367
  41348. msgid "Defaults to @samp{\"my-server\"}."
  41349. msgstr ""
  41350. #. type: deftypevr
  41351. #: guix-git/doc/guix.texi:27370
  41352. #, no-wrap
  41353. msgid "{@code{openvpn-remote-configuration} parameter} number port"
  41354. msgstr ""
  41355. #. type: deftypevr
  41356. #: guix-git/doc/guix.texi:27372
  41357. msgid "Port number the server listens to."
  41358. msgstr ""
  41359. #. type: deftypevr
  41360. #: guix-git/doc/guix.texi:27374 guix-git/doc/guix.texi:27486
  41361. msgid "Defaults to @samp{1194}."
  41362. msgstr ""
  41363. #. type: Plain text
  41364. #: guix-git/doc/guix.texi:27383
  41365. msgid "Available @code{openvpn-server-configuration} fields are:"
  41366. msgstr ""
  41367. #. type: deftypevr
  41368. #: guix-git/doc/guix.texi:27384
  41369. #, no-wrap
  41370. msgid "{@code{openvpn-server-configuration} parameter} package openvpn"
  41371. msgstr ""
  41372. #. type: deftypevr
  41373. #: guix-git/doc/guix.texi:27389
  41374. #, no-wrap
  41375. msgid "{@code{openvpn-server-configuration} parameter} string pid-file"
  41376. msgstr ""
  41377. #. type: deftypevr
  41378. #: guix-git/doc/guix.texi:27396
  41379. #, no-wrap
  41380. msgid "{@code{openvpn-server-configuration} parameter} proto proto"
  41381. msgstr ""
  41382. #. type: deftypevr
  41383. #: guix-git/doc/guix.texi:27404
  41384. #, no-wrap
  41385. msgid "{@code{openvpn-server-configuration} parameter} dev dev"
  41386. msgstr ""
  41387. #. type: deftypevr
  41388. #: guix-git/doc/guix.texi:27415
  41389. #, no-wrap
  41390. msgid "{@code{openvpn-server-configuration} parameter} maybe-string ca"
  41391. msgstr ""
  41392. #. type: deftypevr
  41393. #: guix-git/doc/guix.texi:27422
  41394. #, no-wrap
  41395. msgid "{@code{openvpn-server-configuration} parameter} maybe-string cert"
  41396. msgstr ""
  41397. #. type: deftypevr
  41398. #: guix-git/doc/guix.texi:27430
  41399. #, no-wrap
  41400. msgid "{@code{openvpn-server-configuration} parameter} maybe-string key"
  41401. msgstr ""
  41402. #. type: deftypevr
  41403. #: guix-git/doc/guix.texi:27438
  41404. #, no-wrap
  41405. msgid "{@code{openvpn-server-configuration} parameter} boolean comp-lzo?"
  41406. msgstr ""
  41407. #. type: deftypevr
  41408. #: guix-git/doc/guix.texi:27445
  41409. #, no-wrap
  41410. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-key?"
  41411. msgstr ""
  41412. #. type: deftypevr
  41413. #: guix-git/doc/guix.texi:27452
  41414. #, no-wrap
  41415. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-tun?"
  41416. msgstr ""
  41417. #. type: deftypevr
  41418. #: guix-git/doc/guix.texi:27460
  41419. #, no-wrap
  41420. msgid "{@code{openvpn-server-configuration} parameter} boolean fast-io?"
  41421. msgstr ""
  41422. #. type: deftypevr
  41423. #: guix-git/doc/guix.texi:27467
  41424. #, no-wrap
  41425. msgid "{@code{openvpn-server-configuration} parameter} number verbosity"
  41426. msgstr ""
  41427. #. type: deftypevr
  41428. #: guix-git/doc/guix.texi:27474
  41429. #, no-wrap
  41430. msgid "{@code{openvpn-server-configuration} parameter} tls-auth-server tls-auth"
  41431. msgstr ""
  41432. #. type: deftypevr
  41433. #: guix-git/doc/guix.texi:27482
  41434. #, no-wrap
  41435. msgid "{@code{openvpn-server-configuration} parameter} number port"
  41436. msgstr ""
  41437. #. type: deftypevr
  41438. #: guix-git/doc/guix.texi:27484
  41439. msgid "Specifies the port number on which the server listens."
  41440. msgstr ""
  41441. #. type: deftypevr
  41442. #: guix-git/doc/guix.texi:27489
  41443. #, no-wrap
  41444. msgid "{@code{openvpn-server-configuration} parameter} ip-mask server"
  41445. msgstr ""
  41446. #. type: deftypevr
  41447. #: guix-git/doc/guix.texi:27491
  41448. msgid "An ip and mask specifying the subnet inside the virtual network."
  41449. msgstr ""
  41450. #. type: deftypevr
  41451. #: guix-git/doc/guix.texi:27493
  41452. msgid "Defaults to @samp{\"10.8.0.0 255.255.255.0\"}."
  41453. msgstr ""
  41454. #. type: deftypevr
  41455. #: guix-git/doc/guix.texi:27496
  41456. #, no-wrap
  41457. msgid "{@code{openvpn-server-configuration} parameter} cidr6 server-ipv6"
  41458. msgstr ""
  41459. #. type: deftypevr
  41460. #: guix-git/doc/guix.texi:27498
  41461. msgid "A CIDR notation specifying the IPv6 subnet inside the virtual network."
  41462. msgstr ""
  41463. #. type: deftypevr
  41464. #: guix-git/doc/guix.texi:27503
  41465. #, no-wrap
  41466. msgid "{@code{openvpn-server-configuration} parameter} string dh"
  41467. msgstr ""
  41468. #. type: deftypevr
  41469. #: guix-git/doc/guix.texi:27505
  41470. msgid "The Diffie-Hellman parameters file."
  41471. msgstr ""
  41472. #. type: deftypevr
  41473. #: guix-git/doc/guix.texi:27507
  41474. msgid "Defaults to @samp{\"/etc/openvpn/dh2048.pem\"}."
  41475. msgstr ""
  41476. #. type: deftypevr
  41477. #: guix-git/doc/guix.texi:27510
  41478. #, no-wrap
  41479. msgid "{@code{openvpn-server-configuration} parameter} string ifconfig-pool-persist"
  41480. msgstr ""
  41481. #. type: deftypevr
  41482. #: guix-git/doc/guix.texi:27512
  41483. msgid "The file that records client IPs."
  41484. msgstr ""
  41485. #. type: deftypevr
  41486. #: guix-git/doc/guix.texi:27514
  41487. msgid "Defaults to @samp{\"/etc/openvpn/ipp.txt\"}."
  41488. msgstr ""
  41489. #. type: deftypevr
  41490. #: guix-git/doc/guix.texi:27517
  41491. #, no-wrap
  41492. msgid "{@code{openvpn-server-configuration} parameter} gateway redirect-gateway?"
  41493. msgstr ""
  41494. #. type: deftypevr
  41495. #: guix-git/doc/guix.texi:27519
  41496. msgid "When true, the server will act as a gateway for its clients."
  41497. msgstr ""
  41498. #. type: deftypevr
  41499. #: guix-git/doc/guix.texi:27524
  41500. #, no-wrap
  41501. msgid "{@code{openvpn-server-configuration} parameter} boolean client-to-client?"
  41502. msgstr ""
  41503. #. type: deftypevr
  41504. #: guix-git/doc/guix.texi:27526
  41505. msgid "When true, clients are allowed to talk to each other inside the VPN."
  41506. msgstr ""
  41507. #. type: deftypevr
  41508. #: guix-git/doc/guix.texi:27531
  41509. #, no-wrap
  41510. msgid "{@code{openvpn-server-configuration} parameter} keepalive keepalive"
  41511. msgstr ""
  41512. #. type: deftypevr
  41513. #: guix-git/doc/guix.texi:27537
  41514. 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."
  41515. msgstr ""
  41516. #. type: deftypevr
  41517. #: guix-git/doc/guix.texi:27540
  41518. #, no-wrap
  41519. msgid "{@code{openvpn-server-configuration} parameter} number max-clients"
  41520. msgstr ""
  41521. #. type: deftypevr
  41522. #: guix-git/doc/guix.texi:27542
  41523. msgid "The maximum number of clients."
  41524. msgstr ""
  41525. #. type: deftypevr
  41526. #: guix-git/doc/guix.texi:27547
  41527. #, no-wrap
  41528. msgid "{@code{openvpn-server-configuration} parameter} string status"
  41529. msgstr ""
  41530. #. type: deftypevr
  41531. #: guix-git/doc/guix.texi:27550
  41532. msgid "The status file. This file shows a small report on current connection. It is truncated and rewritten every minute."
  41533. msgstr ""
  41534. #. type: deftypevr
  41535. #: guix-git/doc/guix.texi:27552
  41536. msgid "Defaults to @samp{\"/var/run/openvpn/status\"}."
  41537. msgstr ""
  41538. #. type: deftypevr
  41539. #: guix-git/doc/guix.texi:27555
  41540. #, no-wrap
  41541. msgid "{@code{openvpn-server-configuration} parameter} openvpn-ccd-list client-config-dir"
  41542. msgstr ""
  41543. #. type: deftypevr
  41544. #: guix-git/doc/guix.texi:27557
  41545. msgid "The list of configuration for some clients."
  41546. msgstr ""
  41547. #. type: deftypevr
  41548. #: guix-git/doc/guix.texi:27561
  41549. msgid "Available @code{openvpn-ccd-configuration} fields are:"
  41550. msgstr ""
  41551. #. type: deftypevr
  41552. #: guix-git/doc/guix.texi:27562
  41553. #, no-wrap
  41554. msgid "{@code{openvpn-ccd-configuration} parameter} string name"
  41555. msgstr ""
  41556. #. type: deftypevr
  41557. #: guix-git/doc/guix.texi:27564
  41558. msgid "Client name."
  41559. msgstr ""
  41560. #. type: deftypevr
  41561. #: guix-git/doc/guix.texi:27566
  41562. msgid "Defaults to @samp{\"client\"}."
  41563. msgstr ""
  41564. #. type: deftypevr
  41565. #: guix-git/doc/guix.texi:27569
  41566. #, no-wrap
  41567. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask iroute"
  41568. msgstr ""
  41569. #. type: deftypevr
  41570. #: guix-git/doc/guix.texi:27571
  41571. msgid "Client own network"
  41572. msgstr ""
  41573. #. type: deftypevr
  41574. #: guix-git/doc/guix.texi:27576
  41575. #, no-wrap
  41576. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask ifconfig-push"
  41577. msgstr ""
  41578. #. type: deftypevr
  41579. #: guix-git/doc/guix.texi:27578
  41580. msgid "Client VPN IP."
  41581. msgstr ""
  41582. #. type: subheading
  41583. #: guix-git/doc/guix.texi:27587
  41584. #, no-wrap
  41585. msgid "strongSwan"
  41586. msgstr ""
  41587. #. type: Plain text
  41588. #: guix-git/doc/guix.texi:27591
  41589. msgid "Currently, the strongSwan service only provides legacy-style configuration with @file{ipsec.conf} and @file{ipsec.secrets} files."
  41590. msgstr ""
  41591. #. type: defvr
  41592. #: guix-git/doc/guix.texi:27592
  41593. #, no-wrap
  41594. msgid "{Scheme Variable} strongswan-service-type"
  41595. msgstr ""
  41596. #. type: defvr
  41597. #: guix-git/doc/guix.texi:27596
  41598. 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:"
  41599. msgstr ""
  41600. #. type: lisp
  41601. #: guix-git/doc/guix.texi:27602
  41602. #, no-wrap
  41603. msgid ""
  41604. "(service strongswan-service-type\n"
  41605. " (strongswan-configuration\n"
  41606. " (ipsec-conf \"/etc/ipsec.conf\")\n"
  41607. " (ipsec-secrets \"/etc/ipsec.secrets\")))\n"
  41608. msgstr ""
  41609. #. type: deftp
  41610. #: guix-git/doc/guix.texi:27606
  41611. #, fuzzy, no-wrap
  41612. msgid "{Data Type} strongswan-configuration"
  41613. msgstr "系统配置"
  41614. #. type: deftp
  41615. #: guix-git/doc/guix.texi:27608
  41616. #, fuzzy
  41617. msgid "Data type representing the configuration of the StrongSwan service."
  41618. msgstr "管理操作系统配置。"
  41619. #. type: code{#1}
  41620. #: guix-git/doc/guix.texi:27610
  41621. #, no-wrap
  41622. msgid "strongswan"
  41623. msgstr ""
  41624. #. type: table
  41625. #: guix-git/doc/guix.texi:27612
  41626. #, fuzzy
  41627. msgid "The strongSwan package to use for this service."
  41628. msgstr "软件包数据类型。"
  41629. #. type: item
  41630. #: guix-git/doc/guix.texi:27613
  41631. #, fuzzy, no-wrap
  41632. msgid "@code{ipsec-conf} (default: @code{#f})"
  41633. msgstr "@code{port}(默认值:@code{22})"
  41634. #. type: table
  41635. #: guix-git/doc/guix.texi:27616
  41636. msgid "The file name of your @file{ipsec.conf}. If not @code{#f}, then this and @code{ipsec-secrets} must both be strings."
  41637. msgstr ""
  41638. #. type: item
  41639. #: guix-git/doc/guix.texi:27617
  41640. #, fuzzy, no-wrap
  41641. msgid "@code{ipsec-secrets} (default @code{#f})"
  41642. msgstr "@code{speed}(默认值:@code{1.0})"
  41643. #. type: table
  41644. #: guix-git/doc/guix.texi:27620
  41645. msgid "The file name of your @file{ipsec.secrets}. If not @code{#f}, then this and @code{ipsec-conf} must both be strings."
  41646. msgstr ""
  41647. #. type: subsubheading
  41648. #: guix-git/doc/guix.texi:27624
  41649. #, no-wrap
  41650. msgid "Wireguard"
  41651. msgstr ""
  41652. #. type: defvr
  41653. #: guix-git/doc/guix.texi:27626
  41654. #, no-wrap
  41655. msgid "{Scheme Variable} wireguard-service-type"
  41656. msgstr ""
  41657. #. type: defvr
  41658. #: guix-git/doc/guix.texi:27629
  41659. msgid "A service type for a Wireguard tunnel interface. Its value must be a @code{wireguard-configuration} record as in this example:"
  41660. msgstr ""
  41661. #. type: lisp
  41662. #: guix-git/doc/guix.texi:27640
  41663. #, no-wrap
  41664. msgid ""
  41665. "(service wireguard-service-type\n"
  41666. " (wireguard-configuration\n"
  41667. " (peers\n"
  41668. " (list\n"
  41669. " (wireguard-peer\n"
  41670. " (name \"my-peer\")\n"
  41671. " (endpoint \"my.wireguard.com:51820\")\n"
  41672. " (public-key \"hzpKg9X1yqu1axN6iJp0mWf6BZGo8m1wteKwtTmDGF4=\")\n"
  41673. " (allowed-ips '(\"10.0.0.2/32\")))))))\n"
  41674. msgstr ""
  41675. #. type: deftp
  41676. #: guix-git/doc/guix.texi:27644
  41677. #, fuzzy, no-wrap
  41678. msgid "{Data Type} wireguard-configuration"
  41679. msgstr "{数据类型} build-machine"
  41680. #. type: deftp
  41681. #: guix-git/doc/guix.texi:27646
  41682. #, fuzzy
  41683. msgid "Data type representing the configuration of the Wireguard service."
  41684. msgstr "管理操作系统配置。"
  41685. #. type: code{#1}
  41686. #: guix-git/doc/guix.texi:27648
  41687. #, no-wrap
  41688. msgid "wireguard"
  41689. msgstr ""
  41690. #. type: table
  41691. #: guix-git/doc/guix.texi:27650
  41692. #, fuzzy
  41693. msgid "The wireguard package to use for this service."
  41694. msgstr "软件包数据类型。"
  41695. #. type: item
  41696. #: guix-git/doc/guix.texi:27651
  41697. #, fuzzy, no-wrap
  41698. msgid "@code{interface} (default: @code{\"wg0\"})"
  41699. msgstr "@code{display}(默认值:@code{\":0\"})"
  41700. #. type: table
  41701. #: guix-git/doc/guix.texi:27653
  41702. msgid "The interface name for the VPN."
  41703. msgstr ""
  41704. #. type: item
  41705. #: guix-git/doc/guix.texi:27654
  41706. #, fuzzy, no-wrap
  41707. msgid "@code{addresses} (default: @code{'(\"10.0.0.1/32\")})"
  41708. msgstr "@code{display}(默认值:@code{\":0\"})"
  41709. #. type: table
  41710. #: guix-git/doc/guix.texi:27656
  41711. msgid "The IP addresses to be assigned to the above interface."
  41712. msgstr ""
  41713. #. type: item
  41714. #: guix-git/doc/guix.texi:27657
  41715. #, fuzzy, no-wrap
  41716. msgid "@code{port} (default: @code{51820})"
  41717. msgstr "@code{port}(默认值:@code{22})"
  41718. #. type: table
  41719. #: guix-git/doc/guix.texi:27659
  41720. msgid "The port on which to listen for incoming connections."
  41721. msgstr ""
  41722. #. type: item
  41723. #: guix-git/doc/guix.texi:27660
  41724. #, fuzzy, no-wrap
  41725. msgid "@code{private-key} (default: @code{\"/etc/wireguard/private.key\"})"
  41726. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  41727. #. type: table
  41728. #: guix-git/doc/guix.texi:27663
  41729. msgid "The private key file for the interface. It is automatically generated if the file does not exist."
  41730. msgstr ""
  41731. #. type: item
  41732. #: guix-git/doc/guix.texi:27664
  41733. #, fuzzy, no-wrap
  41734. msgid "@code{peers} (default: @code{'()})"
  41735. msgstr "@code{features} (@code{'()})"
  41736. #. type: table
  41737. #: guix-git/doc/guix.texi:27667
  41738. msgid "The authorized peers on this interface. This is a list of @var{wireguard-peer} records."
  41739. msgstr ""
  41740. #. type: deftp
  41741. #: guix-git/doc/guix.texi:27671
  41742. #, fuzzy, no-wrap
  41743. msgid "{Data Type} wireguard-peer"
  41744. msgstr "{数据类型} build-machine"
  41745. #. type: deftp
  41746. #: guix-git/doc/guix.texi:27673
  41747. #, fuzzy
  41748. msgid "Data type representing a Wireguard peer attached to a given interface."
  41749. msgstr "管理操作系统配置。"
  41750. #. type: table
  41751. #: guix-git/doc/guix.texi:27677
  41752. #, fuzzy
  41753. msgid "The peer name."
  41754. msgstr "仓库monad"
  41755. #. type: item
  41756. #: guix-git/doc/guix.texi:27678
  41757. #, fuzzy, no-wrap
  41758. msgid "@code{endpoint} (default: @code{#f})"
  41759. msgstr "@code{port}(默认值:@code{22})"
  41760. #. type: table
  41761. #: guix-git/doc/guix.texi:27681
  41762. msgid "The optional endpoint for the peer, such as @code{\"demo.wireguard.com:51820\"}."
  41763. msgstr ""
  41764. #. type: itemx
  41765. #: guix-git/doc/guix.texi:27682 guix-git/doc/guix.texi:28077
  41766. #: guix-git/doc/guix.texi:28114 guix-git/doc/guix.texi:33177
  41767. #, no-wrap
  41768. msgid "public-key"
  41769. msgstr ""
  41770. #. type: table
  41771. #: guix-git/doc/guix.texi:27684
  41772. msgid "The peer public-key represented as a base64 string."
  41773. msgstr ""
  41774. #. type: code{#1}
  41775. #: guix-git/doc/guix.texi:27685
  41776. #, no-wrap
  41777. msgid "allowed-ips"
  41778. msgstr ""
  41779. #. type: table
  41780. #: guix-git/doc/guix.texi:27688
  41781. 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."
  41782. msgstr ""
  41783. #. type: item
  41784. #: guix-git/doc/guix.texi:27689
  41785. #, fuzzy, no-wrap
  41786. msgid "@code{keep-alive} (default: @code{#f})"
  41787. msgstr "@code{challenge}(默认值:@code{#f})"
  41788. #. type: table
  41789. #: guix-git/doc/guix.texi:27694
  41790. 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."
  41791. msgstr ""
  41792. #. type: cindex
  41793. #: guix-git/doc/guix.texi:27700
  41794. #, no-wrap
  41795. msgid "NFS"
  41796. msgstr ""
  41797. #. type: Plain text
  41798. #: guix-git/doc/guix.texi:27705
  41799. 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)."
  41800. msgstr ""
  41801. #. type: Plain text
  41802. #: guix-git/doc/guix.texi:27709
  41803. 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}."
  41804. msgstr ""
  41805. #. type: subsubheading
  41806. #: guix-git/doc/guix.texi:27710
  41807. #, fuzzy, no-wrap
  41808. msgid "NFS Service"
  41809. msgstr "DNS服务"
  41810. #. type: cindex
  41811. #: guix-git/doc/guix.texi:27711
  41812. #, fuzzy, no-wrap
  41813. msgid "NFS, server"
  41814. msgstr "Web服务。"
  41815. #. type: Plain text
  41816. #: guix-git/doc/guix.texi:27716
  41817. 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."
  41818. msgstr ""
  41819. #. type: defvr
  41820. #: guix-git/doc/guix.texi:27717
  41821. #, no-wrap
  41822. msgid "{Scheme Variable} nfs-service-type"
  41823. msgstr ""
  41824. #. type: defvr
  41825. #: guix-git/doc/guix.texi:27719
  41826. msgid "A service type for a complete NFS server."
  41827. msgstr ""
  41828. #. type: deftp
  41829. #: guix-git/doc/guix.texi:27721
  41830. #, fuzzy, no-wrap
  41831. msgid "{Data Type} nfs-configuration"
  41832. msgstr "系统配置"
  41833. #. type: deftp
  41834. #: guix-git/doc/guix.texi:27724
  41835. msgid "This data type represents the configuration of the NFS service and all of its subsystems."
  41836. msgstr ""
  41837. #. type: deftp
  41838. #: guix-git/doc/guix.texi:27726
  41839. #, fuzzy
  41840. msgid "It has the following parameters:"
  41841. msgstr "GNU Guix依赖这些软件包:"
  41842. #. type: item
  41843. #: guix-git/doc/guix.texi:27727 guix-git/doc/guix.texi:27852
  41844. #: guix-git/doc/guix.texi:27877
  41845. #, no-wrap
  41846. msgid "@code{nfs-utils} (default: @code{nfs-utils})"
  41847. msgstr ""
  41848. #. type: table
  41849. #: guix-git/doc/guix.texi:27729
  41850. #, fuzzy
  41851. msgid "The nfs-utils package to use."
  41852. msgstr "软件包数据类型。"
  41853. #. type: item
  41854. #: guix-git/doc/guix.texi:27730
  41855. #, fuzzy, no-wrap
  41856. msgid "@code{nfs-versions} (default: @code{'(\"4.2\" \"4.1\" \"4.0\")})"
  41857. msgstr "@code{features} (@code{'()})"
  41858. #. type: table
  41859. #: guix-git/doc/guix.texi:27733
  41860. 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."
  41861. msgstr ""
  41862. #. type: item
  41863. #: guix-git/doc/guix.texi:27734
  41864. #, fuzzy, no-wrap
  41865. msgid "@code{exports} (default: @code{'()})"
  41866. msgstr "@code{port}(默认值:@code{22})"
  41867. #. type: table
  41868. #: guix-git/doc/guix.texi:27739
  41869. 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:"
  41870. msgstr ""
  41871. #. type: lisp
  41872. #: guix-git/doc/guix.texi:27745
  41873. #, no-wrap
  41874. msgid ""
  41875. "(nfs-configuration\n"
  41876. " (exports\n"
  41877. " '((\"/export\"\n"
  41878. " \"*(ro,insecure,no_subtree_check,crossmnt,fsid=0)\"))))\n"
  41879. msgstr ""
  41880. #. type: item
  41881. #: guix-git/doc/guix.texi:27747
  41882. #, fuzzy, no-wrap
  41883. msgid "@code{rpcmountd-port} (default: @code{#f})"
  41884. msgstr "@code{port}(默认值:@code{22})"
  41885. #. type: table
  41886. #: guix-git/doc/guix.texi:27749
  41887. msgid "The network port that the @command{rpc.mountd} daemon should use."
  41888. msgstr ""
  41889. #. type: item
  41890. #: guix-git/doc/guix.texi:27750
  41891. #, fuzzy, no-wrap
  41892. msgid "@code{rpcstatd-port} (default: @code{#f})"
  41893. msgstr "@code{port}(默认值:@code{22})"
  41894. #. type: table
  41895. #: guix-git/doc/guix.texi:27752
  41896. msgid "The network port that the @command{rpc.statd} daemon should use."
  41897. msgstr ""
  41898. #. type: item
  41899. #: guix-git/doc/guix.texi:27753 guix-git/doc/guix.texi:27801
  41900. #, no-wrap
  41901. msgid "@code{rpcbind} (default: @code{rpcbind})"
  41902. msgstr ""
  41903. #. type: table
  41904. #: guix-git/doc/guix.texi:27755 guix-git/doc/guix.texi:27803
  41905. msgid "The rpcbind package to use."
  41906. msgstr ""
  41907. #. type: item
  41908. #: guix-git/doc/guix.texi:27756
  41909. #, fuzzy, no-wrap
  41910. msgid "@code{idmap-domain} (default: @code{\"localdomain\"})"
  41911. msgstr "@code{mate}(默认值:@code{mate})"
  41912. #. type: table
  41913. #: guix-git/doc/guix.texi:27758
  41914. msgid "The local NFSv4 domain name."
  41915. msgstr ""
  41916. #. type: item
  41917. #: guix-git/doc/guix.texi:27759
  41918. #, fuzzy, no-wrap
  41919. msgid "@code{nfsd-port} (default: @code{2049})"
  41920. msgstr "@code{port}(默认值:@code{22})"
  41921. #. type: table
  41922. #: guix-git/doc/guix.texi:27761
  41923. msgid "The network port that the @command{nfsd} daemon should use."
  41924. msgstr ""
  41925. #. type: item
  41926. #: guix-git/doc/guix.texi:27762
  41927. #, fuzzy, no-wrap
  41928. msgid "@code{nfsd-threads} (default: @code{8})"
  41929. msgstr "@code{features} (@code{'()})"
  41930. #. type: table
  41931. #: guix-git/doc/guix.texi:27764
  41932. msgid "The number of threads used by the @command{nfsd} daemon."
  41933. msgstr ""
  41934. #. type: item
  41935. #: guix-git/doc/guix.texi:27765
  41936. #, fuzzy, no-wrap
  41937. msgid "@code{nfsd-tcp?} (default: @code{#t})"
  41938. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  41939. #. type: table
  41940. #: guix-git/doc/guix.texi:27767
  41941. msgid "Whether the @command{nfsd} daemon should listen on a TCP socket."
  41942. msgstr ""
  41943. #. type: item
  41944. #: guix-git/doc/guix.texi:27768
  41945. #, fuzzy, no-wrap
  41946. msgid "@code{nfsd-udp?} (default: @code{#f})"
  41947. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  41948. #. type: table
  41949. #: guix-git/doc/guix.texi:27770
  41950. msgid "Whether the @command{nfsd} daemon should listen on a UDP socket."
  41951. msgstr ""
  41952. #. type: item
  41953. #: guix-git/doc/guix.texi:27771 guix-git/doc/guix.texi:27855
  41954. #: guix-git/doc/guix.texi:27880
  41955. #, no-wrap
  41956. msgid "@code{pipefs-directory} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  41957. msgstr ""
  41958. #. type: table
  41959. #: guix-git/doc/guix.texi:27773 guix-git/doc/guix.texi:27857
  41960. #: guix-git/doc/guix.texi:27882
  41961. msgid "The directory where the pipefs file system is mounted."
  41962. msgstr ""
  41963. #. type: item
  41964. #: guix-git/doc/guix.texi:27774
  41965. #, fuzzy, no-wrap
  41966. msgid "@code{debug} (default: @code{'()\"})"
  41967. msgstr "@code{features} (@code{'()})"
  41968. #. type: table
  41969. #: guix-git/doc/guix.texi:27778
  41970. 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}."
  41971. msgstr ""
  41972. #. type: Plain text
  41973. #: guix-git/doc/guix.texi:27783
  41974. 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."
  41975. msgstr ""
  41976. #. type: subsubheading
  41977. #: guix-git/doc/guix.texi:27784
  41978. #, no-wrap
  41979. msgid "RPC Bind Service"
  41980. msgstr ""
  41981. #. type: cindex
  41982. #: guix-git/doc/guix.texi:27785
  41983. #, no-wrap
  41984. msgid "rpcbind"
  41985. msgstr ""
  41986. #. type: Plain text
  41987. #: guix-git/doc/guix.texi:27791
  41988. 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."
  41989. msgstr ""
  41990. #. type: defvr
  41991. #: guix-git/doc/guix.texi:27792
  41992. #, no-wrap
  41993. msgid "{Scheme Variable} rpcbind-service-type"
  41994. msgstr ""
  41995. #. type: defvr
  41996. #: guix-git/doc/guix.texi:27794
  41997. msgid "A service type for the RPC portmapper daemon."
  41998. msgstr ""
  41999. #. type: deftp
  42000. #: guix-git/doc/guix.texi:27797
  42001. #, no-wrap
  42002. msgid "{Data Type} rpcbind-configuration"
  42003. msgstr ""
  42004. #. type: deftp
  42005. #: guix-git/doc/guix.texi:27800
  42006. msgid "Data type representing the configuration of the RPC Bind Service. This type has the following parameters:"
  42007. msgstr ""
  42008. #. type: item
  42009. #: guix-git/doc/guix.texi:27804
  42010. #, no-wrap
  42011. msgid "@code{warm-start?} (default: @code{#t})"
  42012. msgstr ""
  42013. #. type: table
  42014. #: guix-git/doc/guix.texi:27808
  42015. 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."
  42016. msgstr ""
  42017. #. type: subsubheading
  42018. #: guix-git/doc/guix.texi:27812
  42019. #, no-wrap
  42020. msgid "Pipefs Pseudo File System"
  42021. msgstr ""
  42022. #. type: cindex
  42023. #: guix-git/doc/guix.texi:27813
  42024. #, no-wrap
  42025. msgid "pipefs"
  42026. msgstr ""
  42027. #. type: cindex
  42028. #: guix-git/doc/guix.texi:27814
  42029. #, no-wrap
  42030. msgid "rpc_pipefs"
  42031. msgstr ""
  42032. #. type: Plain text
  42033. #: guix-git/doc/guix.texi:27818
  42034. msgid "The pipefs file system is used to transfer NFS related data between the kernel and user space programs."
  42035. msgstr ""
  42036. #. type: defvr
  42037. #: guix-git/doc/guix.texi:27819
  42038. #, no-wrap
  42039. msgid "{Scheme Variable} pipefs-service-type"
  42040. msgstr ""
  42041. #. type: defvr
  42042. #: guix-git/doc/guix.texi:27821
  42043. msgid "A service type for the pipefs pseudo file system."
  42044. msgstr ""
  42045. #. type: deftp
  42046. #: guix-git/doc/guix.texi:27823
  42047. #, no-wrap
  42048. msgid "{Data Type} pipefs-configuration"
  42049. msgstr ""
  42050. #. type: deftp
  42051. #: guix-git/doc/guix.texi:27826
  42052. msgid "Data type representing the configuration of the pipefs pseudo file system service. This type has the following parameters:"
  42053. msgstr ""
  42054. #. type: item
  42055. #: guix-git/doc/guix.texi:27827
  42056. #, no-wrap
  42057. msgid "@code{mount-point} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  42058. msgstr ""
  42059. #. type: table
  42060. #: guix-git/doc/guix.texi:27829
  42061. msgid "The directory to which the file system is to be attached."
  42062. msgstr ""
  42063. #. type: subsubheading
  42064. #: guix-git/doc/guix.texi:27833
  42065. #, no-wrap
  42066. msgid "GSS Daemon Service"
  42067. msgstr ""
  42068. #. type: cindex
  42069. #: guix-git/doc/guix.texi:27834
  42070. #, no-wrap
  42071. msgid "GSSD"
  42072. msgstr ""
  42073. #. type: cindex
  42074. #: guix-git/doc/guix.texi:27835
  42075. #, no-wrap
  42076. msgid "GSS"
  42077. msgstr ""
  42078. #. type: cindex
  42079. #: guix-git/doc/guix.texi:27836
  42080. #, no-wrap
  42081. msgid "global security system"
  42082. msgstr ""
  42083. #. type: Plain text
  42084. #: guix-git/doc/guix.texi:27843
  42085. 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})."
  42086. msgstr ""
  42087. #. type: defvr
  42088. #: guix-git/doc/guix.texi:27844
  42089. #, no-wrap
  42090. msgid "{Scheme Variable} gss-service-type"
  42091. msgstr ""
  42092. #. type: defvr
  42093. #: guix-git/doc/guix.texi:27846
  42094. msgid "A service type for the Global Security System (GSS) daemon."
  42095. msgstr ""
  42096. #. type: deftp
  42097. #: guix-git/doc/guix.texi:27848
  42098. #, no-wrap
  42099. msgid "{Data Type} gss-configuration"
  42100. msgstr ""
  42101. #. type: deftp
  42102. #: guix-git/doc/guix.texi:27851
  42103. msgid "Data type representing the configuration of the GSS daemon service. This type has the following parameters:"
  42104. msgstr ""
  42105. #. type: table
  42106. #: guix-git/doc/guix.texi:27854
  42107. msgid "The package in which the @command{rpc.gssd} command is to be found."
  42108. msgstr ""
  42109. #. type: subsubheading
  42110. #: guix-git/doc/guix.texi:27862
  42111. #, no-wrap
  42112. msgid "IDMAP Daemon Service"
  42113. msgstr ""
  42114. #. type: cindex
  42115. #: guix-git/doc/guix.texi:27863
  42116. #, no-wrap
  42117. msgid "idmapd"
  42118. msgstr ""
  42119. #. type: cindex
  42120. #: guix-git/doc/guix.texi:27864
  42121. #, no-wrap
  42122. msgid "name mapper"
  42123. msgstr ""
  42124. #. type: Plain text
  42125. #: guix-git/doc/guix.texi:27868
  42126. 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."
  42127. msgstr ""
  42128. #. type: defvr
  42129. #: guix-git/doc/guix.texi:27869
  42130. #, no-wrap
  42131. msgid "{Scheme Variable} idmap-service-type"
  42132. msgstr ""
  42133. #. type: defvr
  42134. #: guix-git/doc/guix.texi:27871
  42135. msgid "A service type for the Identity Mapper (IDMAP) daemon."
  42136. msgstr ""
  42137. #. type: deftp
  42138. #: guix-git/doc/guix.texi:27873
  42139. #, no-wrap
  42140. msgid "{Data Type} idmap-configuration"
  42141. msgstr ""
  42142. #. type: deftp
  42143. #: guix-git/doc/guix.texi:27876
  42144. msgid "Data type representing the configuration of the IDMAP daemon service. This type has the following parameters:"
  42145. msgstr ""
  42146. #. type: table
  42147. #: guix-git/doc/guix.texi:27879
  42148. msgid "The package in which the @command{rpc.idmapd} command is to be found."
  42149. msgstr ""
  42150. #. type: item
  42151. #: guix-git/doc/guix.texi:27883
  42152. #, no-wrap
  42153. msgid "@code{domain} (default: @code{#f})"
  42154. msgstr ""
  42155. #. type: table
  42156. #: guix-git/doc/guix.texi:27887
  42157. 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."
  42158. msgstr ""
  42159. #. type: item
  42160. #: guix-git/doc/guix.texi:27888
  42161. #, fuzzy, no-wrap
  42162. msgid "@code{verbosity} (default: @code{0})"
  42163. msgstr "@code{port}(默认值:@code{22})"
  42164. #. type: table
  42165. #: guix-git/doc/guix.texi:27890
  42166. #, fuzzy
  42167. msgid "The verbosity level of the daemon."
  42168. msgstr "远程机器的主机名。"
  42169. #. type: Plain text
  42170. #: guix-git/doc/guix.texi:27901
  42171. 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})."
  42172. msgstr ""
  42173. #. type: Plain text
  42174. #: guix-git/doc/guix.texi:27903
  42175. msgid "The @code{(gnu services cuirass)} module provides the following service."
  42176. msgstr ""
  42177. #. type: defvr
  42178. #: guix-git/doc/guix.texi:27904
  42179. #, no-wrap
  42180. msgid "{Scheme Procedure} cuirass-service-type"
  42181. msgstr ""
  42182. #. type: defvr
  42183. #: guix-git/doc/guix.texi:27907
  42184. msgid "The type of the Cuirass service. Its value must be a @code{cuirass-configuration} object, as described below."
  42185. msgstr ""
  42186. #. type: Plain text
  42187. #: guix-git/doc/guix.texi:27912
  42188. 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."
  42189. msgstr ""
  42190. #. type: lisp
  42191. #: guix-git/doc/guix.texi:27923
  42192. #, no-wrap
  42193. msgid ""
  42194. "(define %cuirass-specs\n"
  42195. " #~(list (specification\n"
  42196. " (name \"my-channel\")\n"
  42197. " (build '(channels my-channel))\n"
  42198. " (channels\n"
  42199. " (cons (channel\n"
  42200. " (name 'my-channel)\n"
  42201. " (url \"https://my-channel.git\"))\n"
  42202. " %default-channels)))))\n"
  42203. "\n"
  42204. msgstr ""
  42205. #. type: lisp
  42206. #: guix-git/doc/guix.texi:27927 guix-git/doc/guix.texi:27941
  42207. #, no-wrap
  42208. msgid ""
  42209. "(service cuirass-service-type\n"
  42210. " (cuirass-configuration\n"
  42211. " (specifications %cuirass-specs)))\n"
  42212. msgstr ""
  42213. #. type: Plain text
  42214. #: guix-git/doc/guix.texi:27931
  42215. msgid "To build the @code{linux-libre} package defined by the default Guix channel, one can use the following configuration."
  42216. msgstr ""
  42217. #. type: lisp
  42218. #: guix-git/doc/guix.texi:27937
  42219. #, no-wrap
  42220. msgid ""
  42221. "(define %cuirass-specs\n"
  42222. " #~(list (specification\n"
  42223. " (name \"my-linux\")\n"
  42224. " (build '(packages \"linux-libre\")))))\n"
  42225. "\n"
  42226. msgstr ""
  42227. #. type: Plain text
  42228. #: guix-git/doc/guix.texi:27946
  42229. msgid "The other configuration possibilities, as well as the specification record itself are described in the Cuirass manual (@pxref{Specifications,,, cuirass, Cuirass})."
  42230. msgstr ""
  42231. #. type: Plain text
  42232. #: guix-git/doc/guix.texi:27950
  42233. 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."
  42234. msgstr ""
  42235. #. type: deftp
  42236. #: guix-git/doc/guix.texi:27951
  42237. #, no-wrap
  42238. msgid "{Data Type} cuirass-configuration"
  42239. msgstr ""
  42240. #. type: deftp
  42241. #: guix-git/doc/guix.texi:27953
  42242. msgid "Data type representing the configuration of Cuirass."
  42243. msgstr ""
  42244. #. type: item
  42245. #: guix-git/doc/guix.texi:27955 guix-git/doc/guix.texi:28092
  42246. #, no-wrap
  42247. msgid "@code{cuirass} (default: @code{cuirass})"
  42248. msgstr ""
  42249. #. type: table
  42250. #: guix-git/doc/guix.texi:27957 guix-git/doc/guix.texi:28094
  42251. msgid "The Cuirass package to use."
  42252. msgstr ""
  42253. #. type: item
  42254. #: guix-git/doc/guix.texi:27958
  42255. #, no-wrap
  42256. msgid "@code{log-file} (default: @code{\"/var/log/cuirass.log\"})"
  42257. msgstr ""
  42258. #. type: table
  42259. #: guix-git/doc/guix.texi:27960 guix-git/doc/guix.texi:28064
  42260. #: guix-git/doc/guix.texi:28107
  42261. msgid "Location of the log file."
  42262. msgstr ""
  42263. #. type: item
  42264. #: guix-git/doc/guix.texi:27961
  42265. #, fuzzy, no-wrap
  42266. msgid "@code{web-log-file} (default: @code{\"/var/log/cuirass-web.log\"})"
  42267. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42268. #. type: table
  42269. #: guix-git/doc/guix.texi:27963
  42270. msgid "Location of the log file used by the web interface."
  42271. msgstr ""
  42272. #. type: item
  42273. #: guix-git/doc/guix.texi:27964
  42274. #, no-wrap
  42275. msgid "@code{cache-directory} (default: @code{\"/var/cache/cuirass\"})"
  42276. msgstr ""
  42277. #. type: table
  42278. #: guix-git/doc/guix.texi:27966
  42279. msgid "Location of the repository cache."
  42280. msgstr ""
  42281. #. type: item
  42282. #: guix-git/doc/guix.texi:27967
  42283. #, no-wrap
  42284. msgid "@code{user} (default: @code{\"cuirass\"})"
  42285. msgstr ""
  42286. #. type: table
  42287. #: guix-git/doc/guix.texi:27969
  42288. msgid "Owner of the @code{cuirass} process."
  42289. msgstr ""
  42290. #. type: item
  42291. #: guix-git/doc/guix.texi:27970
  42292. #, no-wrap
  42293. msgid "@code{group} (default: @code{\"cuirass\"})"
  42294. msgstr ""
  42295. #. type: table
  42296. #: guix-git/doc/guix.texi:27972
  42297. msgid "Owner's group of the @code{cuirass} process."
  42298. msgstr ""
  42299. #. type: item
  42300. #: guix-git/doc/guix.texi:27973
  42301. #, no-wrap
  42302. msgid "@code{interval} (default: @code{60})"
  42303. msgstr ""
  42304. #. type: table
  42305. #: guix-git/doc/guix.texi:27976
  42306. msgid "Number of seconds between the poll of the repositories followed by the Cuirass jobs."
  42307. msgstr ""
  42308. #. type: item
  42309. #: guix-git/doc/guix.texi:27977
  42310. #, fuzzy, no-wrap
  42311. msgid "@code{parameters} (default: @code{#f})"
  42312. msgstr "@code{port}(默认值:@code{22})"
  42313. #. type: table
  42314. #: guix-git/doc/guix.texi:27980
  42315. msgid "Read parameters from the given @var{parameters} file. The supported parameters are described here (@pxref{Parameters,,, cuirass, Cuirass})."
  42316. msgstr ""
  42317. #. type: item
  42318. #: guix-git/doc/guix.texi:27981
  42319. #, fuzzy, no-wrap
  42320. msgid "@code{remote-server} (default: @code{#f})"
  42321. msgstr "@code{speed}(默认值:@code{1.0})"
  42322. #. type: table
  42323. #: guix-git/doc/guix.texi:27984
  42324. msgid "A @code{cuirass-remote-server-configuration} record to use the build remote mechanism or @code{#f} to use the default build mechanism."
  42325. msgstr ""
  42326. #. type: item
  42327. #: guix-git/doc/guix.texi:27985
  42328. #, fuzzy, no-wrap
  42329. msgid "@code{database} (default: @code{\"dbname=cuirass host=/var/run/postgresql\"})"
  42330. msgstr "@code{port}(默认值:@code{22})"
  42331. #. type: table
  42332. #: guix-git/doc/guix.texi:27990
  42333. 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\"}."
  42334. msgstr ""
  42335. #. type: item
  42336. #: guix-git/doc/guix.texi:27991
  42337. #, no-wrap
  42338. msgid "@code{port} (default: @code{8081})"
  42339. msgstr ""
  42340. #. type: table
  42341. #: guix-git/doc/guix.texi:27993
  42342. msgid "Port number used by the HTTP server."
  42343. msgstr ""
  42344. #. type: table
  42345. #: guix-git/doc/guix.texi:27997
  42346. msgid "Listen on the network interface for @var{host}. The default is to accept connections from localhost."
  42347. msgstr ""
  42348. #. type: item
  42349. #: guix-git/doc/guix.texi:27998
  42350. #, no-wrap
  42351. msgid "@code{specifications} (default: @code{#~'()})"
  42352. msgstr ""
  42353. #. type: table
  42354. #: guix-git/doc/guix.texi:28002
  42355. 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})."
  42356. msgstr ""
  42357. #. type: item
  42358. #: guix-git/doc/guix.texi:28003
  42359. #, no-wrap
  42360. msgid "@code{use-substitutes?} (default: @code{#f})"
  42361. msgstr ""
  42362. #. type: table
  42363. #: guix-git/doc/guix.texi:28006
  42364. msgid "This allows using substitutes to avoid building every dependencies of a job from source."
  42365. msgstr ""
  42366. #. type: item
  42367. #: guix-git/doc/guix.texi:28007 guix-git/doc/guix.texi:35192
  42368. #, no-wrap
  42369. msgid "@code{one-shot?} (default: @code{#f})"
  42370. msgstr ""
  42371. #. type: table
  42372. #: guix-git/doc/guix.texi:28009
  42373. msgid "Only evaluate specifications and build derivations once."
  42374. msgstr ""
  42375. #. type: item
  42376. #: guix-git/doc/guix.texi:28010
  42377. #, no-wrap
  42378. msgid "@code{fallback?} (default: @code{#f})"
  42379. msgstr ""
  42380. #. type: table
  42381. #: guix-git/doc/guix.texi:28013
  42382. msgid "When substituting a pre-built binary fails, fall back to building packages locally."
  42383. msgstr ""
  42384. #. type: table
  42385. #: guix-git/doc/guix.texi:28016
  42386. msgid "Extra options to pass when running the Cuirass processes."
  42387. msgstr ""
  42388. #. type: cindex
  42389. #: guix-git/doc/guix.texi:28020
  42390. #, fuzzy, no-wrap
  42391. msgid "remote build"
  42392. msgstr "可复现的构建"
  42393. #. type: subsubheading
  42394. #: guix-git/doc/guix.texi:28021
  42395. #, no-wrap
  42396. msgid "Cuirass remote building"
  42397. msgstr ""
  42398. #. type: Plain text
  42399. #: guix-git/doc/guix.texi:28024
  42400. msgid "Cuirass supports two mechanisms to build derivations."
  42401. msgstr ""
  42402. #. type: item
  42403. #: guix-git/doc/guix.texi:28026
  42404. #, fuzzy, no-wrap
  42405. msgid "Using the local Guix daemon."
  42406. msgstr "运行“构建后台进程”"
  42407. #. type: itemize
  42408. #: guix-git/doc/guix.texi:28030
  42409. 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."
  42410. msgstr ""
  42411. #. type: item
  42412. #: guix-git/doc/guix.texi:28031
  42413. #, fuzzy, no-wrap
  42414. msgid "Using the remote build mechanism."
  42415. msgstr "准备隔离的构建环境。"
  42416. #. type: itemize
  42417. #: guix-git/doc/guix.texi:28035
  42418. 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."
  42419. msgstr ""
  42420. #. type: Plain text
  42421. #: guix-git/doc/guix.texi:28042
  42422. 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."
  42423. msgstr ""
  42424. #. type: Plain text
  42425. #: guix-git/doc/guix.texi:28047
  42426. 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."
  42427. msgstr ""
  42428. #. type: deftp
  42429. #: guix-git/doc/guix.texi:28048
  42430. #, fuzzy, no-wrap
  42431. msgid "{Data Type} cuirass-remote-server-configuration"
  42432. msgstr "{数据类型} build-machine"
  42433. #. type: deftp
  42434. #: guix-git/doc/guix.texi:28050
  42435. #, fuzzy
  42436. msgid "Data type representing the configuration of the Cuirass remote-server."
  42437. msgstr "管理操作系统配置。"
  42438. #. type: item
  42439. #: guix-git/doc/guix.texi:28052
  42440. #, fuzzy, no-wrap
  42441. msgid "@code{backend-port} (default: @code{5555})"
  42442. msgstr "@code{port}(默认值:@code{22})"
  42443. #. type: table
  42444. #: guix-git/doc/guix.texi:28055
  42445. msgid "The TCP port for communicating with @code{remote-worker} processes using ZMQ. It defaults to @code{5555}."
  42446. msgstr ""
  42447. #. type: item
  42448. #: guix-git/doc/guix.texi:28056
  42449. #, fuzzy, no-wrap
  42450. msgid "@code{log-port} (default: @code{5556})"
  42451. msgstr "@code{port}(默认值:@code{22})"
  42452. #. type: table
  42453. #: guix-git/doc/guix.texi:28058
  42454. msgid "The TCP port of the log server. It defaults to @code{5556}."
  42455. msgstr ""
  42456. #. type: item
  42457. #: guix-git/doc/guix.texi:28059
  42458. #, fuzzy, no-wrap
  42459. msgid "@code{publish-port} (default: @code{5557})"
  42460. msgstr "@code{port}(默认值:@code{22})"
  42461. #. type: table
  42462. #: guix-git/doc/guix.texi:28061
  42463. msgid "The TCP port of the publish server. It defaults to @code{5557}."
  42464. msgstr ""
  42465. #. type: item
  42466. #: guix-git/doc/guix.texi:28062
  42467. #, fuzzy, no-wrap
  42468. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-server.log\"})"
  42469. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42470. #. type: item
  42471. #: guix-git/doc/guix.texi:28065
  42472. #, fuzzy, no-wrap
  42473. msgid "@code{cache} (default: @code{\"/var/cache/cuirass/remote\"})"
  42474. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42475. #. type: table
  42476. #: guix-git/doc/guix.texi:28067
  42477. msgid "Use @var{cache} directory to cache build log files."
  42478. msgstr ""
  42479. #. type: item
  42480. #: guix-git/doc/guix.texi:28068
  42481. #, fuzzy, no-wrap
  42482. msgid "@code{trigger-url} (default: @code{#f})"
  42483. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  42484. #. type: table
  42485. #: guix-git/doc/guix.texi:28071
  42486. msgid "Once a substitute is successfully fetched, trigger substitute baking at @var{trigger-url}."
  42487. msgstr ""
  42488. #. type: table
  42489. #: guix-git/doc/guix.texi:28076
  42490. 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."
  42491. msgstr ""
  42492. #. type: code{#1}
  42493. #: guix-git/doc/guix.texi:28078 guix-git/doc/guix.texi:28115
  42494. #, no-wrap
  42495. msgid "private-key"
  42496. msgstr ""
  42497. #. type: Plain text
  42498. #: guix-git/doc/guix.texi:28087
  42499. 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."
  42500. msgstr ""
  42501. #. type: deftp
  42502. #: guix-git/doc/guix.texi:28088
  42503. #, fuzzy, no-wrap
  42504. msgid "{Data Type} cuirass-remote-worker-configuration"
  42505. msgstr "{数据类型} build-machine"
  42506. #. type: deftp
  42507. #: guix-git/doc/guix.texi:28090
  42508. #, fuzzy
  42509. msgid "Data type representing the configuration of the Cuirass remote-worker."
  42510. msgstr "管理操作系统配置。"
  42511. #. type: item
  42512. #: guix-git/doc/guix.texi:28095
  42513. #, fuzzy, no-wrap
  42514. msgid "@code{workers} (default: @code{1})"
  42515. msgstr "@code{features} (@code{'()})"
  42516. #. type: table
  42517. #: guix-git/doc/guix.texi:28097
  42518. msgid "Start @var{workers} parallel workers."
  42519. msgstr ""
  42520. #. type: table
  42521. #: guix-git/doc/guix.texi:28101
  42522. msgid "Do not use Avahi discovery and connect to the given @code{server} IP address instead."
  42523. msgstr ""
  42524. #. type: item
  42525. #: guix-git/doc/guix.texi:28102
  42526. #, fuzzy, no-wrap
  42527. msgid "@code{systems} (default: @code{(list (%current-system))})"
  42528. msgstr "@code{port}(默认值:@code{22})"
  42529. #. type: table
  42530. #: guix-git/doc/guix.texi:28104
  42531. msgid "Only request builds for the given @var{systems}."
  42532. msgstr ""
  42533. #. type: item
  42534. #: guix-git/doc/guix.texi:28105
  42535. #, fuzzy, no-wrap
  42536. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-worker.log\"})"
  42537. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42538. #. type: item
  42539. #: guix-git/doc/guix.texi:28108
  42540. #, fuzzy, no-wrap
  42541. msgid "@code{publish-port} (default: @code{5558})"
  42542. msgstr "@code{port}(默认值:@code{22})"
  42543. #. type: table
  42544. #: guix-git/doc/guix.texi:28110
  42545. msgid "The TCP port of the publish server. It defaults to @code{5558}."
  42546. msgstr ""
  42547. #. type: subsubheading
  42548. #: guix-git/doc/guix.texi:28122
  42549. #, no-wrap
  42550. msgid "Laminar"
  42551. msgstr ""
  42552. #. type: Plain text
  42553. #: guix-git/doc/guix.texi:28127
  42554. 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."
  42555. msgstr ""
  42556. #. type: Plain text
  42557. #: guix-git/doc/guix.texi:28130
  42558. msgid "Laminar encourages the use of existing tools such as bash and cron instead of reinventing them."
  42559. msgstr ""
  42560. #. type: defvr
  42561. #: guix-git/doc/guix.texi:28131
  42562. #, no-wrap
  42563. msgid "{Scheme Procedure} laminar-service-type"
  42564. msgstr ""
  42565. #. type: defvr
  42566. #: guix-git/doc/guix.texi:28134
  42567. msgid "The type of the Laminar service. Its value must be a @code{laminar-configuration} object, as described below."
  42568. msgstr ""
  42569. #. type: defvr
  42570. #: guix-git/doc/guix.texi:28138
  42571. 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."
  42572. msgstr ""
  42573. #. type: lisp
  42574. #: guix-git/doc/guix.texi:28141
  42575. #, no-wrap
  42576. msgid "(service laminar-service-type)\n"
  42577. msgstr ""
  42578. #. type: deftp
  42579. #: guix-git/doc/guix.texi:28144
  42580. #, fuzzy, no-wrap
  42581. msgid "{Data Type} laminar-configuration"
  42582. msgstr "{数据类型} build-machine"
  42583. #. type: deftp
  42584. #: guix-git/doc/guix.texi:28146
  42585. #, fuzzy
  42586. msgid "Data type representing the configuration of Laminar."
  42587. msgstr "管理操作系统配置。"
  42588. #. type: item
  42589. #: guix-git/doc/guix.texi:28148
  42590. #, fuzzy, no-wrap
  42591. msgid "@code{laminar} (default: @code{laminar})"
  42592. msgstr "@code{mate}(默认值:@code{mate})"
  42593. #. type: table
  42594. #: guix-git/doc/guix.texi:28150
  42595. #, fuzzy
  42596. msgid "The Laminar package to use."
  42597. msgstr "软件包数据类型。"
  42598. #. type: item
  42599. #: guix-git/doc/guix.texi:28151
  42600. #, fuzzy, no-wrap
  42601. msgid "@code{home-directory} (default: @code{\"/var/lib/laminar\"})"
  42602. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42603. #. type: table
  42604. #: guix-git/doc/guix.texi:28153
  42605. msgid "The directory for job configurations and run directories."
  42606. msgstr ""
  42607. #. type: item
  42608. #: guix-git/doc/guix.texi:28154
  42609. #, fuzzy, no-wrap
  42610. msgid "@code{bind-http} (default: @code{\"*:8080\"})"
  42611. msgstr "@code{port}(默认值:@code{22})"
  42612. #. type: table
  42613. #: guix-git/doc/guix.texi:28157
  42614. msgid "The interface/port or unix socket on which laminard should listen for incoming connections to the web frontend."
  42615. msgstr ""
  42616. #. type: item
  42617. #: guix-git/doc/guix.texi:28158
  42618. #, fuzzy, no-wrap
  42619. msgid "@code{bind-rpc} (default: @code{\"unix-abstract:laminar\"})"
  42620. msgstr "@code{gnome}(默认值:@code{gnome})"
  42621. #. type: table
  42622. #: guix-git/doc/guix.texi:28161
  42623. msgid "The interface/port or unix socket on which laminard should listen for incoming commands such as build triggers."
  42624. msgstr ""
  42625. #. type: item
  42626. #: guix-git/doc/guix.texi:28162
  42627. #, fuzzy, no-wrap
  42628. msgid "@code{title} (default: @code{\"Laminar\"})"
  42629. msgstr "@code{mate}(默认值:@code{mate})"
  42630. #. type: table
  42631. #: guix-git/doc/guix.texi:28164
  42632. #, fuzzy
  42633. msgid "The page title to show in the web frontend."
  42634. msgstr "rottlog服务。"
  42635. #. type: item
  42636. #: guix-git/doc/guix.texi:28165
  42637. #, fuzzy, no-wrap
  42638. msgid "@code{keep-rundirs} (default: @code{0})"
  42639. msgstr "@code{features} (@code{'()})"
  42640. #. type: table
  42641. #: guix-git/doc/guix.texi:28169
  42642. 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."
  42643. msgstr ""
  42644. #. type: item
  42645. #: guix-git/doc/guix.texi:28170
  42646. #, fuzzy, no-wrap
  42647. msgid "@code{archive-url} (default: @code{#f})"
  42648. msgstr "@code{challenge}(默认值:@code{#f})"
  42649. #. type: table
  42650. #: guix-git/doc/guix.texi:28173
  42651. msgid "The web frontend served by laminard will use this URL to form links to artefacts archived jobs."
  42652. msgstr ""
  42653. #. type: item
  42654. #: guix-git/doc/guix.texi:28174
  42655. #, fuzzy, no-wrap
  42656. msgid "@code{base-url} (default: @code{#f})"
  42657. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  42658. #. type: table
  42659. #: guix-git/doc/guix.texi:28176
  42660. msgid "Base URL to use for links to laminar itself."
  42661. msgstr ""
  42662. #. type: cindex
  42663. #: guix-git/doc/guix.texi:28183
  42664. #, no-wrap
  42665. msgid "tlp"
  42666. msgstr ""
  42667. #. type: cindex
  42668. #: guix-git/doc/guix.texi:28184
  42669. #, no-wrap
  42670. msgid "power management with TLP"
  42671. msgstr ""
  42672. #. type: subsubheading
  42673. #: guix-git/doc/guix.texi:28185
  42674. #, no-wrap
  42675. msgid "TLP daemon"
  42676. msgstr ""
  42677. #. type: Plain text
  42678. #: guix-git/doc/guix.texi:28189
  42679. msgid "The @code{(gnu services pm)} module provides a Guix service definition for the Linux power management tool TLP."
  42680. msgstr ""
  42681. #. type: Plain text
  42682. #: guix-git/doc/guix.texi:28195
  42683. 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}."
  42684. msgstr ""
  42685. #. type: deffn
  42686. #: guix-git/doc/guix.texi:28196
  42687. #, no-wrap
  42688. msgid "{Scheme Variable} tlp-service-type"
  42689. msgstr ""
  42690. #. type: deffn
  42691. #: guix-git/doc/guix.texi:28200
  42692. 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}:"
  42693. msgstr ""
  42694. #. type: lisp
  42695. #: guix-git/doc/guix.texi:28205
  42696. #, no-wrap
  42697. msgid ""
  42698. "(service tlp-service-type\n"
  42699. " (tlp-configuration\n"
  42700. " (cpu-scaling-governor-on-ac (list \"performance\"))\n"
  42701. " (sched-powersave-on-bat? #t)))\n"
  42702. msgstr ""
  42703. #. type: Plain text
  42704. #: guix-git/doc/guix.texi:28213
  42705. 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}."
  42706. msgstr ""
  42707. #. type: Plain text
  42708. #: guix-git/doc/guix.texi:28223
  42709. msgid "Available @code{tlp-configuration} fields are:"
  42710. msgstr ""
  42711. #. type: deftypevr
  42712. #: guix-git/doc/guix.texi:28224
  42713. #, no-wrap
  42714. msgid "{@code{tlp-configuration} parameter} package tlp"
  42715. msgstr ""
  42716. #. type: deftypevr
  42717. #: guix-git/doc/guix.texi:28226
  42718. msgid "The TLP package."
  42719. msgstr ""
  42720. #. type: deftypevr
  42721. #: guix-git/doc/guix.texi:28229
  42722. #, no-wrap
  42723. msgid "{@code{tlp-configuration} parameter} boolean tlp-enable?"
  42724. msgstr ""
  42725. #. type: deftypevr
  42726. #: guix-git/doc/guix.texi:28231
  42727. msgid "Set to true if you wish to enable TLP."
  42728. msgstr ""
  42729. #. type: deftypevr
  42730. #: guix-git/doc/guix.texi:28236
  42731. #, no-wrap
  42732. msgid "{@code{tlp-configuration} parameter} string tlp-default-mode"
  42733. msgstr ""
  42734. #. type: deftypevr
  42735. #: guix-git/doc/guix.texi:28239
  42736. msgid "Default mode when no power supply can be detected. Alternatives are AC and BAT."
  42737. msgstr ""
  42738. #. type: deftypevr
  42739. #: guix-git/doc/guix.texi:28241
  42740. msgid "Defaults to @samp{\"AC\"}."
  42741. msgstr ""
  42742. #. type: deftypevr
  42743. #: guix-git/doc/guix.texi:28244
  42744. #, no-wrap
  42745. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-ac"
  42746. msgstr ""
  42747. #. type: deftypevr
  42748. #: guix-git/doc/guix.texi:28247
  42749. msgid "Number of seconds Linux kernel has to wait after the disk goes idle, before syncing on AC."
  42750. msgstr ""
  42751. #. type: deftypevr
  42752. #: guix-git/doc/guix.texi:28252
  42753. #, no-wrap
  42754. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-bat"
  42755. msgstr ""
  42756. #. type: deftypevr
  42757. #: guix-git/doc/guix.texi:28254
  42758. msgid "Same as @code{disk-idle-ac} but on BAT mode."
  42759. msgstr ""
  42760. #. type: deftypevr
  42761. #: guix-git/doc/guix.texi:28256
  42762. msgid "Defaults to @samp{2}."
  42763. msgstr ""
  42764. #. type: deftypevr
  42765. #: guix-git/doc/guix.texi:28259
  42766. #, no-wrap
  42767. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-ac"
  42768. msgstr ""
  42769. #. type: deftypevr
  42770. #: guix-git/doc/guix.texi:28261
  42771. msgid "Dirty pages flushing periodicity, expressed in seconds."
  42772. msgstr ""
  42773. #. type: deftypevr
  42774. #: guix-git/doc/guix.texi:28263 guix-git/doc/guix.texi:28486
  42775. #: guix-git/doc/guix.texi:30701 guix-git/doc/guix.texi:30709
  42776. msgid "Defaults to @samp{15}."
  42777. msgstr ""
  42778. #. type: deftypevr
  42779. #: guix-git/doc/guix.texi:28266
  42780. #, no-wrap
  42781. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-bat"
  42782. msgstr ""
  42783. #. type: deftypevr
  42784. #: guix-git/doc/guix.texi:28268
  42785. msgid "Same as @code{max-lost-work-secs-on-ac} but on BAT mode."
  42786. msgstr ""
  42787. #. type: deftypevr
  42788. #: guix-git/doc/guix.texi:28270
  42789. msgid "Defaults to @samp{60}."
  42790. msgstr ""
  42791. #. type: deftypevr
  42792. #: guix-git/doc/guix.texi:28273
  42793. #, no-wrap
  42794. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-ac"
  42795. msgstr ""
  42796. #. type: deftypevr
  42797. #: guix-git/doc/guix.texi:28277
  42798. 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."
  42799. msgstr ""
  42800. #. type: deftypevr
  42801. #: guix-git/doc/guix.texi:28282
  42802. #, no-wrap
  42803. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-bat"
  42804. msgstr ""
  42805. #. type: deftypevr
  42806. #: guix-git/doc/guix.texi:28284
  42807. msgid "Same as @code{cpu-scaling-governor-on-ac} but on BAT mode."
  42808. msgstr ""
  42809. #. type: deftypevr
  42810. #: guix-git/doc/guix.texi:28289
  42811. #, no-wrap
  42812. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-ac"
  42813. msgstr ""
  42814. #. type: deftypevr
  42815. #: guix-git/doc/guix.texi:28291
  42816. msgid "Set the min available frequency for the scaling governor on AC."
  42817. msgstr ""
  42818. #. type: deftypevr
  42819. #: guix-git/doc/guix.texi:28296
  42820. #, no-wrap
  42821. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-ac"
  42822. msgstr ""
  42823. #. type: deftypevr
  42824. #: guix-git/doc/guix.texi:28298
  42825. msgid "Set the max available frequency for the scaling governor on AC."
  42826. msgstr ""
  42827. #. type: deftypevr
  42828. #: guix-git/doc/guix.texi:28303
  42829. #, no-wrap
  42830. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-bat"
  42831. msgstr ""
  42832. #. type: deftypevr
  42833. #: guix-git/doc/guix.texi:28305
  42834. msgid "Set the min available frequency for the scaling governor on BAT."
  42835. msgstr ""
  42836. #. type: deftypevr
  42837. #: guix-git/doc/guix.texi:28310
  42838. #, no-wrap
  42839. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-bat"
  42840. msgstr ""
  42841. #. type: deftypevr
  42842. #: guix-git/doc/guix.texi:28312
  42843. msgid "Set the max available frequency for the scaling governor on BAT."
  42844. msgstr ""
  42845. #. type: deftypevr
  42846. #: guix-git/doc/guix.texi:28317
  42847. #, no-wrap
  42848. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-ac"
  42849. msgstr ""
  42850. #. type: deftypevr
  42851. #: guix-git/doc/guix.texi:28320
  42852. 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."
  42853. msgstr ""
  42854. #. type: deftypevr
  42855. #: guix-git/doc/guix.texi:28325
  42856. #, no-wrap
  42857. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-ac"
  42858. msgstr ""
  42859. #. type: deftypevr
  42860. #: guix-git/doc/guix.texi:28328
  42861. 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."
  42862. msgstr ""
  42863. #. type: deftypevr
  42864. #: guix-git/doc/guix.texi:28333
  42865. #, no-wrap
  42866. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-bat"
  42867. msgstr ""
  42868. #. type: deftypevr
  42869. #: guix-git/doc/guix.texi:28335
  42870. msgid "Same as @code{cpu-min-perf-on-ac} on BAT mode."
  42871. msgstr ""
  42872. #. type: deftypevr
  42873. #: guix-git/doc/guix.texi:28340
  42874. #, no-wrap
  42875. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-bat"
  42876. msgstr ""
  42877. #. type: deftypevr
  42878. #: guix-git/doc/guix.texi:28342
  42879. msgid "Same as @code{cpu-max-perf-on-ac} on BAT mode."
  42880. msgstr ""
  42881. #. type: deftypevr
  42882. #: guix-git/doc/guix.texi:28347
  42883. #, no-wrap
  42884. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-ac?"
  42885. msgstr ""
  42886. #. type: deftypevr
  42887. #: guix-git/doc/guix.texi:28349
  42888. msgid "Enable CPU turbo boost feature on AC mode."
  42889. msgstr ""
  42890. #. type: deftypevr
  42891. #: guix-git/doc/guix.texi:28354
  42892. #, no-wrap
  42893. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-bat?"
  42894. msgstr ""
  42895. #. type: deftypevr
  42896. #: guix-git/doc/guix.texi:28356
  42897. msgid "Same as @code{cpu-boost-on-ac?} on BAT mode."
  42898. msgstr ""
  42899. #. type: deftypevr
  42900. #: guix-git/doc/guix.texi:28361
  42901. #, no-wrap
  42902. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-ac?"
  42903. msgstr ""
  42904. #. type: deftypevr
  42905. #: guix-git/doc/guix.texi:28364
  42906. msgid "Allow Linux kernel to minimize the number of CPU cores/hyper-threads used under light load conditions."
  42907. msgstr ""
  42908. #. type: deftypevr
  42909. #: guix-git/doc/guix.texi:28369
  42910. #, no-wrap
  42911. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-bat?"
  42912. msgstr ""
  42913. #. type: deftypevr
  42914. #: guix-git/doc/guix.texi:28371
  42915. msgid "Same as @code{sched-powersave-on-ac?} but on BAT mode."
  42916. msgstr ""
  42917. #. type: deftypevr
  42918. #: guix-git/doc/guix.texi:28376
  42919. #, no-wrap
  42920. msgid "{@code{tlp-configuration} parameter} boolean nmi-watchdog?"
  42921. msgstr ""
  42922. #. type: deftypevr
  42923. #: guix-git/doc/guix.texi:28378
  42924. msgid "Enable Linux kernel NMI watchdog."
  42925. msgstr ""
  42926. #. type: deftypevr
  42927. #: guix-git/doc/guix.texi:28383
  42928. #, no-wrap
  42929. msgid "{@code{tlp-configuration} parameter} maybe-string phc-controls"
  42930. msgstr ""
  42931. #. type: deftypevr
  42932. #: guix-git/doc/guix.texi:28386
  42933. 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\"}."
  42934. msgstr ""
  42935. #. type: deftypevr
  42936. #: guix-git/doc/guix.texi:28391
  42937. #, no-wrap
  42938. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-ac"
  42939. msgstr ""
  42940. #. type: deftypevr
  42941. #: guix-git/doc/guix.texi:28394
  42942. msgid "Set CPU performance versus energy saving policy on AC@. Alternatives are performance, normal, powersave."
  42943. msgstr ""
  42944. #. type: deftypevr
  42945. #: guix-git/doc/guix.texi:28396 guix-git/doc/guix.texi:28494
  42946. #: guix-git/doc/guix.texi:28524
  42947. msgid "Defaults to @samp{\"performance\"}."
  42948. msgstr ""
  42949. #. type: deftypevr
  42950. #: guix-git/doc/guix.texi:28399
  42951. #, no-wrap
  42952. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-bat"
  42953. msgstr ""
  42954. #. type: deftypevr
  42955. #: guix-git/doc/guix.texi:28401
  42956. msgid "Same as @code{energy-perf-policy-ac} but on BAT mode."
  42957. msgstr ""
  42958. #. type: deftypevr
  42959. #: guix-git/doc/guix.texi:28403 guix-git/doc/guix.texi:28501
  42960. msgid "Defaults to @samp{\"powersave\"}."
  42961. msgstr ""
  42962. #. type: deftypevr
  42963. #: guix-git/doc/guix.texi:28406
  42964. #, no-wrap
  42965. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disks-devices"
  42966. msgstr ""
  42967. #. type: deftypevr
  42968. #: guix-git/doc/guix.texi:28408
  42969. msgid "Hard disk devices."
  42970. msgstr ""
  42971. #. type: deftypevr
  42972. #: guix-git/doc/guix.texi:28411
  42973. #, no-wrap
  42974. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-ac"
  42975. msgstr ""
  42976. #. type: deftypevr
  42977. #: guix-git/doc/guix.texi:28413
  42978. msgid "Hard disk advanced power management level."
  42979. msgstr ""
  42980. #. type: deftypevr
  42981. #: guix-git/doc/guix.texi:28416
  42982. #, no-wrap
  42983. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-bat"
  42984. msgstr ""
  42985. #. type: deftypevr
  42986. #: guix-git/doc/guix.texi:28418
  42987. msgid "Same as @code{disk-apm-bat} but on BAT mode."
  42988. msgstr ""
  42989. #. type: deftypevr
  42990. #: guix-git/doc/guix.texi:28421
  42991. #, no-wrap
  42992. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-ac"
  42993. msgstr ""
  42994. #. type: deftypevr
  42995. #: guix-git/doc/guix.texi:28424
  42996. msgid "Hard disk spin down timeout. One value has to be specified for each declared hard disk."
  42997. msgstr ""
  42998. #. type: deftypevr
  42999. #: guix-git/doc/guix.texi:28429
  43000. #, no-wrap
  43001. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-bat"
  43002. msgstr ""
  43003. #. type: deftypevr
  43004. #: guix-git/doc/guix.texi:28431
  43005. msgid "Same as @code{disk-spindown-timeout-on-ac} but on BAT mode."
  43006. msgstr ""
  43007. #. type: deftypevr
  43008. #: guix-git/doc/guix.texi:28436
  43009. #, no-wrap
  43010. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-iosched"
  43011. msgstr ""
  43012. #. type: deftypevr
  43013. #: guix-git/doc/guix.texi:28440
  43014. 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."
  43015. msgstr ""
  43016. #. type: deftypevr
  43017. #: guix-git/doc/guix.texi:28445
  43018. #, no-wrap
  43019. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-ac"
  43020. msgstr ""
  43021. #. type: deftypevr
  43022. #: guix-git/doc/guix.texi:28448
  43023. msgid "SATA aggressive link power management (ALPM) level. Alternatives are min_power, medium_power, max_performance."
  43024. msgstr ""
  43025. #. type: deftypevr
  43026. #: guix-git/doc/guix.texi:28450
  43027. msgid "Defaults to @samp{\"max_performance\"}."
  43028. msgstr ""
  43029. #. type: deftypevr
  43030. #: guix-git/doc/guix.texi:28453
  43031. #, no-wrap
  43032. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-bat"
  43033. msgstr ""
  43034. #. type: deftypevr
  43035. #: guix-git/doc/guix.texi:28455
  43036. msgid "Same as @code{sata-linkpwr-ac} but on BAT mode."
  43037. msgstr ""
  43038. #. type: deftypevr
  43039. #: guix-git/doc/guix.texi:28457
  43040. msgid "Defaults to @samp{\"min_power\"}."
  43041. msgstr ""
  43042. #. type: deftypevr
  43043. #: guix-git/doc/guix.texi:28460
  43044. #, no-wrap
  43045. msgid "{@code{tlp-configuration} parameter} maybe-string sata-linkpwr-blacklist"
  43046. msgstr ""
  43047. #. type: deftypevr
  43048. #: guix-git/doc/guix.texi:28462
  43049. msgid "Exclude specified SATA host devices for link power management."
  43050. msgstr ""
  43051. #. type: deftypevr
  43052. #: guix-git/doc/guix.texi:28467
  43053. #, no-wrap
  43054. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-ac?"
  43055. msgstr ""
  43056. #. type: deftypevr
  43057. #: guix-git/doc/guix.texi:28470
  43058. msgid "Enable Runtime Power Management for AHCI controller and disks on AC mode."
  43059. msgstr ""
  43060. #. type: deftypevr
  43061. #: guix-git/doc/guix.texi:28475
  43062. #, no-wrap
  43063. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-bat?"
  43064. msgstr ""
  43065. #. type: deftypevr
  43066. #: guix-git/doc/guix.texi:28477
  43067. msgid "Same as @code{ahci-runtime-pm-on-ac} on BAT mode."
  43068. msgstr ""
  43069. #. type: deftypevr
  43070. #: guix-git/doc/guix.texi:28482
  43071. #, no-wrap
  43072. msgid "{@code{tlp-configuration} parameter} non-negative-integer ahci-runtime-pm-timeout"
  43073. msgstr ""
  43074. #. type: deftypevr
  43075. #: guix-git/doc/guix.texi:28484
  43076. msgid "Seconds of inactivity before disk is suspended."
  43077. msgstr ""
  43078. #. type: deftypevr
  43079. #: guix-git/doc/guix.texi:28489
  43080. #, no-wrap
  43081. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-ac"
  43082. msgstr ""
  43083. #. type: deftypevr
  43084. #: guix-git/doc/guix.texi:28492
  43085. msgid "PCI Express Active State Power Management level. Alternatives are default, performance, powersave."
  43086. msgstr ""
  43087. #. type: deftypevr
  43088. #: guix-git/doc/guix.texi:28497
  43089. #, no-wrap
  43090. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-bat"
  43091. msgstr ""
  43092. #. type: deftypevr
  43093. #: guix-git/doc/guix.texi:28499
  43094. msgid "Same as @code{pcie-aspm-ac} but on BAT mode."
  43095. msgstr ""
  43096. #. type: deftypevr
  43097. #: guix-git/doc/guix.texi:28504
  43098. #, no-wrap
  43099. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-ac"
  43100. msgstr ""
  43101. #. type: deftypevr
  43102. #: guix-git/doc/guix.texi:28507
  43103. msgid "Radeon graphics clock speed level. Alternatives are low, mid, high, auto, default."
  43104. msgstr ""
  43105. #. type: deftypevr
  43106. #: guix-git/doc/guix.texi:28509
  43107. msgid "Defaults to @samp{\"high\"}."
  43108. msgstr ""
  43109. #. type: deftypevr
  43110. #: guix-git/doc/guix.texi:28512
  43111. #, no-wrap
  43112. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-bat"
  43113. msgstr ""
  43114. #. type: deftypevr
  43115. #: guix-git/doc/guix.texi:28514
  43116. msgid "Same as @code{radeon-power-ac} but on BAT mode."
  43117. msgstr ""
  43118. #. type: deftypevr
  43119. #: guix-git/doc/guix.texi:28516
  43120. msgid "Defaults to @samp{\"low\"}."
  43121. msgstr ""
  43122. #. type: deftypevr
  43123. #: guix-git/doc/guix.texi:28519
  43124. #, no-wrap
  43125. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-ac"
  43126. msgstr ""
  43127. #. type: deftypevr
  43128. #: guix-git/doc/guix.texi:28522
  43129. msgid "Radeon dynamic power management method (DPM). Alternatives are battery, performance."
  43130. msgstr ""
  43131. #. type: deftypevr
  43132. #: guix-git/doc/guix.texi:28527
  43133. #, no-wrap
  43134. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-bat"
  43135. msgstr ""
  43136. #. type: deftypevr
  43137. #: guix-git/doc/guix.texi:28529
  43138. msgid "Same as @code{radeon-dpm-state-ac} but on BAT mode."
  43139. msgstr ""
  43140. #. type: deftypevr
  43141. #: guix-git/doc/guix.texi:28531
  43142. msgid "Defaults to @samp{\"battery\"}."
  43143. msgstr ""
  43144. #. type: deftypevr
  43145. #: guix-git/doc/guix.texi:28534
  43146. #, no-wrap
  43147. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-ac"
  43148. msgstr ""
  43149. #. type: deftypevr
  43150. #: guix-git/doc/guix.texi:28536
  43151. msgid "Radeon DPM performance level. Alternatives are auto, low, high."
  43152. msgstr ""
  43153. #. type: deftypevr
  43154. #: guix-git/doc/guix.texi:28538 guix-git/doc/guix.texi:28545
  43155. #: guix-git/doc/guix.texi:28619
  43156. msgid "Defaults to @samp{\"auto\"}."
  43157. msgstr ""
  43158. #. type: deftypevr
  43159. #: guix-git/doc/guix.texi:28541
  43160. #, no-wrap
  43161. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-bat"
  43162. msgstr ""
  43163. #. type: deftypevr
  43164. #: guix-git/doc/guix.texi:28543
  43165. msgid "Same as @code{radeon-dpm-perf-ac} but on BAT mode."
  43166. msgstr ""
  43167. #. type: deftypevr
  43168. #: guix-git/doc/guix.texi:28548
  43169. #, no-wrap
  43170. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-ac?"
  43171. msgstr ""
  43172. #. type: deftypevr
  43173. #: guix-git/doc/guix.texi:28550
  43174. msgid "Wifi power saving mode."
  43175. msgstr ""
  43176. #. type: deftypevr
  43177. #: guix-git/doc/guix.texi:28555
  43178. #, no-wrap
  43179. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-bat?"
  43180. msgstr ""
  43181. #. type: deftypevr
  43182. #: guix-git/doc/guix.texi:28557
  43183. msgid "Same as @code{wifi-power-ac?} but on BAT mode."
  43184. msgstr ""
  43185. #. type: deftypevr
  43186. #: guix-git/doc/guix.texi:28562
  43187. #, no-wrap
  43188. msgid "{@code{tlp-configuration} parameter} y-n-boolean wol-disable?"
  43189. msgstr ""
  43190. #. type: deftypevr
  43191. #: guix-git/doc/guix.texi:28564
  43192. msgid "Disable wake on LAN."
  43193. msgstr ""
  43194. #. type: deftypevr
  43195. #: guix-git/doc/guix.texi:28569
  43196. #, no-wrap
  43197. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-ac"
  43198. msgstr ""
  43199. #. type: deftypevr
  43200. #: guix-git/doc/guix.texi:28572
  43201. msgid "Timeout duration in seconds before activating audio power saving on Intel HDA and AC97 devices. A value of 0 disables power saving."
  43202. msgstr ""
  43203. #. type: deftypevr
  43204. #: guix-git/doc/guix.texi:28577
  43205. #, no-wrap
  43206. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-bat"
  43207. msgstr ""
  43208. #. type: deftypevr
  43209. #: guix-git/doc/guix.texi:28579
  43210. msgid "Same as @code{sound-powersave-ac} but on BAT mode."
  43211. msgstr ""
  43212. #. type: deftypevr
  43213. #: guix-git/doc/guix.texi:28584
  43214. #, no-wrap
  43215. msgid "{@code{tlp-configuration} parameter} y-n-boolean sound-power-save-controller?"
  43216. msgstr ""
  43217. #. type: deftypevr
  43218. #: guix-git/doc/guix.texi:28586
  43219. msgid "Disable controller in powersaving mode on Intel HDA devices."
  43220. msgstr ""
  43221. #. type: deftypevr
  43222. #: guix-git/doc/guix.texi:28591
  43223. #, no-wrap
  43224. msgid "{@code{tlp-configuration} parameter} boolean bay-poweroff-on-bat?"
  43225. msgstr ""
  43226. #. type: deftypevr
  43227. #: guix-git/doc/guix.texi:28595
  43228. 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."
  43229. msgstr ""
  43230. #. type: deftypevr
  43231. #: guix-git/doc/guix.texi:28600
  43232. #, no-wrap
  43233. msgid "{@code{tlp-configuration} parameter} string bay-device"
  43234. msgstr ""
  43235. #. type: deftypevr
  43236. #: guix-git/doc/guix.texi:28602
  43237. msgid "Name of the optical drive device to power off."
  43238. msgstr ""
  43239. #. type: deftypevr
  43240. #: guix-git/doc/guix.texi:28604
  43241. msgid "Defaults to @samp{\"sr0\"}."
  43242. msgstr ""
  43243. #. type: deftypevr
  43244. #: guix-git/doc/guix.texi:28607
  43245. #, no-wrap
  43246. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-ac"
  43247. msgstr ""
  43248. #. type: deftypevr
  43249. #: guix-git/doc/guix.texi:28610
  43250. msgid "Runtime Power Management for PCI(e) bus devices. Alternatives are on and auto."
  43251. msgstr ""
  43252. #. type: deftypevr
  43253. #: guix-git/doc/guix.texi:28612
  43254. msgid "Defaults to @samp{\"on\"}."
  43255. msgstr ""
  43256. #. type: deftypevr
  43257. #: guix-git/doc/guix.texi:28615
  43258. #, no-wrap
  43259. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-bat"
  43260. msgstr ""
  43261. #. type: deftypevr
  43262. #: guix-git/doc/guix.texi:28617
  43263. msgid "Same as @code{runtime-pm-ac} but on BAT mode."
  43264. msgstr ""
  43265. #. type: deftypevr
  43266. #: guix-git/doc/guix.texi:28622
  43267. #, no-wrap
  43268. msgid "{@code{tlp-configuration} parameter} boolean runtime-pm-all?"
  43269. msgstr ""
  43270. #. type: deftypevr
  43271. #: guix-git/doc/guix.texi:28625
  43272. msgid "Runtime Power Management for all PCI(e) bus devices, except blacklisted ones."
  43273. msgstr ""
  43274. #. type: deftypevr
  43275. #: guix-git/doc/guix.texi:28630
  43276. #, no-wrap
  43277. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list runtime-pm-blacklist"
  43278. msgstr ""
  43279. #. type: deftypevr
  43280. #: guix-git/doc/guix.texi:28632
  43281. msgid "Exclude specified PCI(e) device addresses from Runtime Power Management."
  43282. msgstr ""
  43283. #. type: deftypevr
  43284. #: guix-git/doc/guix.texi:28637
  43285. #, no-wrap
  43286. msgid "{@code{tlp-configuration} parameter} space-separated-string-list runtime-pm-driver-blacklist"
  43287. msgstr ""
  43288. #. type: deftypevr
  43289. #: guix-git/doc/guix.texi:28640
  43290. msgid "Exclude PCI(e) devices assigned to the specified drivers from Runtime Power Management."
  43291. msgstr ""
  43292. #. type: deftypevr
  43293. #: guix-git/doc/guix.texi:28643
  43294. #, no-wrap
  43295. msgid "{@code{tlp-configuration} parameter} boolean usb-autosuspend?"
  43296. msgstr ""
  43297. #. type: deftypevr
  43298. #: guix-git/doc/guix.texi:28645
  43299. msgid "Enable USB autosuspend feature."
  43300. msgstr ""
  43301. #. type: deftypevr
  43302. #: guix-git/doc/guix.texi:28650
  43303. #, no-wrap
  43304. msgid "{@code{tlp-configuration} parameter} maybe-string usb-blacklist"
  43305. msgstr ""
  43306. #. type: deftypevr
  43307. #: guix-git/doc/guix.texi:28652
  43308. msgid "Exclude specified devices from USB autosuspend."
  43309. msgstr ""
  43310. #. type: deftypevr
  43311. #: guix-git/doc/guix.texi:28657
  43312. #, no-wrap
  43313. msgid "{@code{tlp-configuration} parameter} boolean usb-blacklist-wwan?"
  43314. msgstr ""
  43315. #. type: deftypevr
  43316. #: guix-git/doc/guix.texi:28659
  43317. msgid "Exclude WWAN devices from USB autosuspend."
  43318. msgstr ""
  43319. #. type: deftypevr
  43320. #: guix-git/doc/guix.texi:28664
  43321. #, no-wrap
  43322. msgid "{@code{tlp-configuration} parameter} maybe-string usb-whitelist"
  43323. msgstr ""
  43324. #. type: deftypevr
  43325. #: guix-git/doc/guix.texi:28667
  43326. msgid "Include specified devices into USB autosuspend, even if they are already excluded by the driver or via @code{usb-blacklist-wwan?}."
  43327. msgstr ""
  43328. #. type: deftypevr
  43329. #: guix-git/doc/guix.texi:28672
  43330. #, no-wrap
  43331. msgid "{@code{tlp-configuration} parameter} maybe-boolean usb-autosuspend-disable-on-shutdown?"
  43332. msgstr ""
  43333. #. type: deftypevr
  43334. #: guix-git/doc/guix.texi:28674
  43335. msgid "Enable USB autosuspend before shutdown."
  43336. msgstr ""
  43337. #. type: deftypevr
  43338. #: guix-git/doc/guix.texi:28679
  43339. #, no-wrap
  43340. msgid "{@code{tlp-configuration} parameter} boolean restore-device-state-on-startup?"
  43341. msgstr ""
  43342. #. type: deftypevr
  43343. #: guix-git/doc/guix.texi:28682
  43344. msgid "Restore radio device state (bluetooth, wifi, wwan) from previous shutdown on system startup."
  43345. msgstr ""
  43346. #. type: cindex
  43347. #: guix-git/doc/guix.texi:28687
  43348. #, no-wrap
  43349. msgid "thermald"
  43350. msgstr ""
  43351. #. type: cindex
  43352. #: guix-git/doc/guix.texi:28688
  43353. #, no-wrap
  43354. msgid "CPU frequency scaling with thermald"
  43355. msgstr ""
  43356. #. type: subsubheading
  43357. #: guix-git/doc/guix.texi:28689
  43358. #, no-wrap
  43359. msgid "Thermald daemon"
  43360. msgstr ""
  43361. #. type: Plain text
  43362. #: guix-git/doc/guix.texi:28693
  43363. msgid "The @code{(gnu services pm)} module provides an interface to thermald, a CPU frequency scaling service which helps prevent overheating."
  43364. msgstr ""
  43365. #. type: defvr
  43366. #: guix-git/doc/guix.texi:28694
  43367. #, no-wrap
  43368. msgid "{Scheme Variable} thermald-service-type"
  43369. msgstr ""
  43370. #. type: defvr
  43371. #: guix-git/doc/guix.texi:28699
  43372. 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."
  43373. msgstr ""
  43374. #. type: deftp
  43375. #: guix-git/doc/guix.texi:28701
  43376. #, no-wrap
  43377. msgid "{Data Type} thermald-configuration"
  43378. msgstr ""
  43379. #. type: deftp
  43380. #: guix-git/doc/guix.texi:28703
  43381. msgid "Data type representing the configuration of @code{thermald-service-type}."
  43382. msgstr ""
  43383. #. type: item
  43384. #: guix-git/doc/guix.texi:28705
  43385. #, no-wrap
  43386. msgid "@code{ignore-cpuid-check?} (default: @code{#f})"
  43387. msgstr ""
  43388. #. type: table
  43389. #: guix-git/doc/guix.texi:28707
  43390. msgid "Ignore cpuid check for supported CPU models."
  43391. msgstr ""
  43392. #. type: item
  43393. #: guix-git/doc/guix.texi:28708
  43394. #, no-wrap
  43395. msgid "@code{thermald} (default: @var{thermald})"
  43396. msgstr ""
  43397. #. type: table
  43398. #: guix-git/doc/guix.texi:28710
  43399. msgid "Package object of thermald."
  43400. msgstr ""
  43401. #. type: Plain text
  43402. #: guix-git/doc/guix.texi:28719
  43403. msgid "The @code{(gnu services audio)} module provides a service to start MPD (the Music Player Daemon)."
  43404. msgstr ""
  43405. #. type: cindex
  43406. #: guix-git/doc/guix.texi:28720
  43407. #, no-wrap
  43408. msgid "mpd"
  43409. msgstr ""
  43410. #. type: subsubheading
  43411. #: guix-git/doc/guix.texi:28721
  43412. #, no-wrap
  43413. msgid "Music Player Daemon"
  43414. msgstr ""
  43415. #. type: Plain text
  43416. #: guix-git/doc/guix.texi:28726
  43417. 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."
  43418. msgstr ""
  43419. #. type: Plain text
  43420. #: guix-git/doc/guix.texi:28729
  43421. msgid "The following example shows how one might run @code{mpd} as user @code{\"bob\"} on port @code{6666}. It uses pulseaudio for output."
  43422. msgstr ""
  43423. #. type: lisp
  43424. #: guix-git/doc/guix.texi:28735
  43425. #, no-wrap
  43426. msgid ""
  43427. "(service mpd-service-type\n"
  43428. " (mpd-configuration\n"
  43429. " (user \"bob\")\n"
  43430. " (port \"6666\")))\n"
  43431. msgstr ""
  43432. #. type: defvr
  43433. #: guix-git/doc/guix.texi:28737
  43434. #, no-wrap
  43435. msgid "{Scheme Variable} mpd-service-type"
  43436. msgstr ""
  43437. #. type: defvr
  43438. #: guix-git/doc/guix.texi:28739
  43439. msgid "The service type for @command{mpd}"
  43440. msgstr ""
  43441. #. type: deftp
  43442. #: guix-git/doc/guix.texi:28741
  43443. #, no-wrap
  43444. msgid "{Data Type} mpd-configuration"
  43445. msgstr ""
  43446. #. type: deftp
  43447. #: guix-git/doc/guix.texi:28743
  43448. msgid "Data type representing the configuration of @command{mpd}."
  43449. msgstr ""
  43450. #. type: item
  43451. #: guix-git/doc/guix.texi:28745
  43452. #, no-wrap
  43453. msgid "@code{user} (default: @code{\"mpd\"})"
  43454. msgstr ""
  43455. #. type: table
  43456. #: guix-git/doc/guix.texi:28747
  43457. msgid "The user to run mpd as."
  43458. msgstr ""
  43459. #. type: item
  43460. #: guix-git/doc/guix.texi:28748
  43461. #, no-wrap
  43462. msgid "@code{music-dir} (default: @code{\"~/Music\"})"
  43463. msgstr ""
  43464. #. type: table
  43465. #: guix-git/doc/guix.texi:28750
  43466. msgid "The directory to scan for music files."
  43467. msgstr ""
  43468. #. type: item
  43469. #: guix-git/doc/guix.texi:28751
  43470. #, no-wrap
  43471. msgid "@code{playlist-dir} (default: @code{\"~/.mpd/playlists\"})"
  43472. msgstr ""
  43473. #. type: table
  43474. #: guix-git/doc/guix.texi:28753
  43475. msgid "The directory to store playlists."
  43476. msgstr ""
  43477. #. type: item
  43478. #: guix-git/doc/guix.texi:28754
  43479. #, no-wrap
  43480. msgid "@code{db-file} (default: @code{\"~/.mpd/tag_cache\"})"
  43481. msgstr ""
  43482. #. type: table
  43483. #: guix-git/doc/guix.texi:28756
  43484. msgid "The location of the music database."
  43485. msgstr ""
  43486. #. type: item
  43487. #: guix-git/doc/guix.texi:28757
  43488. #, no-wrap
  43489. msgid "@code{state-file} (default: @code{\"~/.mpd/state\"})"
  43490. msgstr ""
  43491. #. type: table
  43492. #: guix-git/doc/guix.texi:28759
  43493. msgid "The location of the file that stores current MPD's state."
  43494. msgstr ""
  43495. #. type: item
  43496. #: guix-git/doc/guix.texi:28760
  43497. #, no-wrap
  43498. msgid "@code{sticker-file} (default: @code{\"~/.mpd/sticker.sql\"})"
  43499. msgstr ""
  43500. #. type: table
  43501. #: guix-git/doc/guix.texi:28762
  43502. msgid "The location of the sticker database."
  43503. msgstr ""
  43504. #. type: item
  43505. #: guix-git/doc/guix.texi:28763
  43506. #, no-wrap
  43507. msgid "@code{port} (default: @code{\"6600\"})"
  43508. msgstr ""
  43509. #. type: table
  43510. #: guix-git/doc/guix.texi:28765
  43511. msgid "The port to run mpd on."
  43512. msgstr ""
  43513. #. type: item
  43514. #: guix-git/doc/guix.texi:28766
  43515. #, no-wrap
  43516. msgid "@code{address} (default: @code{\"any\"})"
  43517. msgstr ""
  43518. #. type: table
  43519. #: guix-git/doc/guix.texi:28769
  43520. msgid "The address that mpd will bind to. To use a Unix domain socket, an absolute path can be specified here."
  43521. msgstr ""
  43522. #. type: item
  43523. #: guix-git/doc/guix.texi:28770
  43524. #, fuzzy, no-wrap
  43525. msgid "@code{outputs} (default: @code{\"(list (mpd-output))\"})"
  43526. msgstr "@code{features} (@code{'()})"
  43527. #. type: table
  43528. #: guix-git/doc/guix.texi:28772
  43529. msgid "The audio outputs that MPD can use. By default this is a single output using pulseaudio."
  43530. msgstr ""
  43531. #. type: deftp
  43532. #: guix-git/doc/guix.texi:28776
  43533. #, no-wrap
  43534. msgid "{Data Type} mpd-output"
  43535. msgstr ""
  43536. #. type: deftp
  43537. #: guix-git/doc/guix.texi:28778
  43538. msgid "Data type representing an @command{mpd} audio output."
  43539. msgstr ""
  43540. #. type: item
  43541. #: guix-git/doc/guix.texi:28780
  43542. #, fuzzy, no-wrap
  43543. msgid "@code{name} (default: @code{\"MPD\"})"
  43544. msgstr "@code{gnome}(默认值:@code{gnome})"
  43545. #. type: table
  43546. #: guix-git/doc/guix.texi:28782
  43547. msgid "The name of the audio output."
  43548. msgstr ""
  43549. #. type: item
  43550. #: guix-git/doc/guix.texi:28783
  43551. #, fuzzy, no-wrap
  43552. msgid "@code{type} (default: @code{\"pulse\"})"
  43553. msgstr "@code{mate}(默认值:@code{mate})"
  43554. #. type: table
  43555. #: guix-git/doc/guix.texi:28785
  43556. msgid "The type of audio output."
  43557. msgstr ""
  43558. #. type: item
  43559. #: guix-git/doc/guix.texi:28786
  43560. #, fuzzy, no-wrap
  43561. msgid "@code{enabled?} (default: @code{#t})"
  43562. msgstr "@code{speed}(默认值:@code{1.0})"
  43563. #. type: table
  43564. #: guix-git/doc/guix.texi:28791
  43565. 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."
  43566. msgstr ""
  43567. #. type: item
  43568. #: guix-git/doc/guix.texi:28792
  43569. #, fuzzy, no-wrap
  43570. msgid "@code{tags?} (default: @code{#t})"
  43571. msgstr "@code{mate}(默认值:@code{mate})"
  43572. #. type: table
  43573. #: guix-git/doc/guix.texi:28796
  43574. 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."
  43575. msgstr ""
  43576. #. type: item
  43577. #: guix-git/doc/guix.texi:28797
  43578. #, fuzzy, no-wrap
  43579. msgid "@code{always-on?} (default: @code{#f})"
  43580. msgstr "@code{challenge}(默认值:@code{#f})"
  43581. #. type: table
  43582. #: guix-git/doc/guix.texi:28801
  43583. 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."
  43584. msgstr ""
  43585. #. type: code{#1}
  43586. #: guix-git/doc/guix.texi:28802
  43587. #, no-wrap
  43588. msgid "mixer-type"
  43589. msgstr ""
  43590. #. type: table
  43591. #: guix-git/doc/guix.texi:28808
  43592. 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})."
  43593. msgstr ""
  43594. #. type: table
  43595. #: guix-git/doc/guix.texi:28812
  43596. msgid "An association list of option symbols to string values to be appended to the audio output configuration."
  43597. msgstr ""
  43598. #. type: Plain text
  43599. #: guix-git/doc/guix.texi:28818
  43600. msgid "The following example shows a configuration of @code{mpd} that provides an HTTP audio streaming output."
  43601. msgstr ""
  43602. #. type: lisp
  43603. #: guix-git/doc/guix.texi:28830
  43604. #, no-wrap
  43605. msgid ""
  43606. "(service mpd-service-type\n"
  43607. " (mpd-configuration\n"
  43608. " (outputs\n"
  43609. " (list (mpd-output\n"
  43610. " (name \"streaming\")\n"
  43611. " (type \"httpd\")\n"
  43612. " (mixer-type 'null)\n"
  43613. " (extra-options\n"
  43614. " `((encoder . \"vorbis\")\n"
  43615. " (port . \"8080\"))))))))\n"
  43616. msgstr ""
  43617. #. type: Plain text
  43618. #: guix-git/doc/guix.texi:28839
  43619. msgid "The @code{(gnu services virtualization)} module provides services for the libvirt and virtlog daemons, as well as other virtualization-related services."
  43620. msgstr ""
  43621. #. type: subsubheading
  43622. #: guix-git/doc/guix.texi:28840
  43623. #, no-wrap
  43624. msgid "Libvirt daemon"
  43625. msgstr ""
  43626. #. type: Plain text
  43627. #: guix-git/doc/guix.texi:28845
  43628. 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."
  43629. msgstr ""
  43630. #. type: deffn
  43631. #: guix-git/doc/guix.texi:28846
  43632. #, no-wrap
  43633. msgid "{Scheme Variable} libvirt-service-type"
  43634. msgstr ""
  43635. #. type: deffn
  43636. #: guix-git/doc/guix.texi:28849
  43637. msgid "This is the type of the @uref{https://libvirt.org, libvirt daemon}. Its value must be a @code{libvirt-configuration}."
  43638. msgstr ""
  43639. #. type: lisp
  43640. #: guix-git/doc/guix.texi:28855
  43641. #, no-wrap
  43642. msgid ""
  43643. "(service libvirt-service-type\n"
  43644. " (libvirt-configuration\n"
  43645. " (unix-sock-group \"libvirt\")\n"
  43646. " (tls-port \"16555\")))\n"
  43647. msgstr ""
  43648. #. type: Plain text
  43649. #: guix-git/doc/guix.texi:28860
  43650. msgid "Available @code{libvirt-configuration} fields are:"
  43651. msgstr ""
  43652. #. type: deftypevr
  43653. #: guix-git/doc/guix.texi:28861
  43654. #, no-wrap
  43655. msgid "{@code{libvirt-configuration} parameter} package libvirt"
  43656. msgstr ""
  43657. #. type: deftypevr
  43658. #: guix-git/doc/guix.texi:28863
  43659. msgid "Libvirt package."
  43660. msgstr ""
  43661. #. type: deftypevr
  43662. #: guix-git/doc/guix.texi:28866
  43663. #, no-wrap
  43664. msgid "{@code{libvirt-configuration} parameter} boolean listen-tls?"
  43665. msgstr ""
  43666. #. type: deftypevr
  43667. #: guix-git/doc/guix.texi:28869
  43668. msgid "Flag listening for secure TLS connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  43669. msgstr ""
  43670. #. type: deftypevr
  43671. #: guix-git/doc/guix.texi:28872
  43672. msgid "It is necessary to setup a CA and issue server certificates before using this capability."
  43673. msgstr ""
  43674. #. type: deftypevr
  43675. #: guix-git/doc/guix.texi:28877
  43676. #, no-wrap
  43677. msgid "{@code{libvirt-configuration} parameter} boolean listen-tcp?"
  43678. msgstr ""
  43679. #. type: deftypevr
  43680. #: guix-git/doc/guix.texi:28880
  43681. msgid "Listen for unencrypted TCP connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  43682. msgstr ""
  43683. #. type: deftypevr
  43684. #: guix-git/doc/guix.texi:28884
  43685. 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)."
  43686. msgstr ""
  43687. #. type: deftypevr
  43688. #: guix-git/doc/guix.texi:28889
  43689. #, no-wrap
  43690. msgid "{@code{libvirt-configuration} parameter} string tls-port"
  43691. msgstr ""
  43692. #. type: deftypevr
  43693. #: guix-git/doc/guix.texi:28892
  43694. msgid "Port for accepting secure TLS connections. This can be a port number, or service name."
  43695. msgstr ""
  43696. #. type: deftypevr
  43697. #: guix-git/doc/guix.texi:28894
  43698. msgid "Defaults to @samp{\"16514\"}."
  43699. msgstr ""
  43700. #. type: deftypevr
  43701. #: guix-git/doc/guix.texi:28897
  43702. #, no-wrap
  43703. msgid "{@code{libvirt-configuration} parameter} string tcp-port"
  43704. msgstr ""
  43705. #. type: deftypevr
  43706. #: guix-git/doc/guix.texi:28900
  43707. msgid "Port for accepting insecure TCP connections. This can be a port number, or service name."
  43708. msgstr ""
  43709. #. type: deftypevr
  43710. #: guix-git/doc/guix.texi:28902
  43711. msgid "Defaults to @samp{\"16509\"}."
  43712. msgstr ""
  43713. #. type: deftypevr
  43714. #: guix-git/doc/guix.texi:28905
  43715. #, no-wrap
  43716. msgid "{@code{libvirt-configuration} parameter} string listen-addr"
  43717. msgstr ""
  43718. #. type: deftypevr
  43719. #: guix-git/doc/guix.texi:28907
  43720. msgid "IP address or hostname used for client connections."
  43721. msgstr ""
  43722. #. type: deftypevr
  43723. #: guix-git/doc/guix.texi:28912
  43724. #, no-wrap
  43725. msgid "{@code{libvirt-configuration} parameter} boolean mdns-adv?"
  43726. msgstr ""
  43727. #. type: deftypevr
  43728. #: guix-git/doc/guix.texi:28914
  43729. msgid "Flag toggling mDNS advertisement of the libvirt service."
  43730. msgstr ""
  43731. #. type: deftypevr
  43732. #: guix-git/doc/guix.texi:28917
  43733. msgid "Alternatively can disable for all services on a host by stopping the Avahi daemon."
  43734. msgstr ""
  43735. #. type: deftypevr
  43736. #: guix-git/doc/guix.texi:28922
  43737. #, no-wrap
  43738. msgid "{@code{libvirt-configuration} parameter} string mdns-name"
  43739. msgstr ""
  43740. #. type: deftypevr
  43741. #: guix-git/doc/guix.texi:28925
  43742. msgid "Default mDNS advertisement name. This must be unique on the immediate broadcast network."
  43743. msgstr ""
  43744. #. type: deftypevr
  43745. #: guix-git/doc/guix.texi:28927
  43746. msgid "Defaults to @samp{\"Virtualization Host <hostname>\"}."
  43747. msgstr ""
  43748. #. type: deftypevr
  43749. #: guix-git/doc/guix.texi:28930
  43750. #, no-wrap
  43751. msgid "{@code{libvirt-configuration} parameter} string unix-sock-group"
  43752. msgstr ""
  43753. #. type: deftypevr
  43754. #: guix-git/doc/guix.texi:28934
  43755. msgid "UNIX domain socket group ownership. This can be used to allow a 'trusted' set of users access to management capabilities without becoming root."
  43756. msgstr ""
  43757. #. type: deftypevr
  43758. #: guix-git/doc/guix.texi:28939
  43759. #, no-wrap
  43760. msgid "{@code{libvirt-configuration} parameter} string unix-sock-ro-perms"
  43761. msgstr ""
  43762. #. type: deftypevr
  43763. #: guix-git/doc/guix.texi:28942
  43764. msgid "UNIX socket permissions for the R/O socket. This is used for monitoring VM status only."
  43765. msgstr ""
  43766. #. type: deftypevr
  43767. #: guix-git/doc/guix.texi:28944 guix-git/doc/guix.texi:28962
  43768. msgid "Defaults to @samp{\"0777\"}."
  43769. msgstr ""
  43770. #. type: deftypevr
  43771. #: guix-git/doc/guix.texi:28947
  43772. #, no-wrap
  43773. msgid "{@code{libvirt-configuration} parameter} string unix-sock-rw-perms"
  43774. msgstr ""
  43775. #. type: deftypevr
  43776. #: guix-git/doc/guix.texi:28951
  43777. 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)"
  43778. msgstr ""
  43779. #. type: deftypevr
  43780. #: guix-git/doc/guix.texi:28953
  43781. msgid "Defaults to @samp{\"0770\"}."
  43782. msgstr ""
  43783. #. type: deftypevr
  43784. #: guix-git/doc/guix.texi:28956
  43785. #, no-wrap
  43786. msgid "{@code{libvirt-configuration} parameter} string unix-sock-admin-perms"
  43787. msgstr ""
  43788. #. type: deftypevr
  43789. #: guix-git/doc/guix.texi:28960
  43790. 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."
  43791. msgstr ""
  43792. #. type: deftypevr
  43793. #: guix-git/doc/guix.texi:28965
  43794. #, no-wrap
  43795. msgid "{@code{libvirt-configuration} parameter} string unix-sock-dir"
  43796. msgstr ""
  43797. #. type: deftypevr
  43798. #: guix-git/doc/guix.texi:28967
  43799. msgid "The directory in which sockets will be found/created."
  43800. msgstr ""
  43801. #. type: deftypevr
  43802. #: guix-git/doc/guix.texi:28969
  43803. msgid "Defaults to @samp{\"/var/run/libvirt\"}."
  43804. msgstr ""
  43805. #. type: deftypevr
  43806. #: guix-git/doc/guix.texi:28972
  43807. #, no-wrap
  43808. msgid "{@code{libvirt-configuration} parameter} string auth-unix-ro"
  43809. msgstr ""
  43810. #. type: deftypevr
  43811. #: guix-git/doc/guix.texi:28975
  43812. msgid "Authentication scheme for UNIX read-only sockets. By default socket permissions allow anyone to connect"
  43813. msgstr ""
  43814. #. type: deftypevr
  43815. #: guix-git/doc/guix.texi:28977 guix-git/doc/guix.texi:28986
  43816. msgid "Defaults to @samp{\"polkit\"}."
  43817. msgstr ""
  43818. #. type: deftypevr
  43819. #: guix-git/doc/guix.texi:28980
  43820. #, no-wrap
  43821. msgid "{@code{libvirt-configuration} parameter} string auth-unix-rw"
  43822. msgstr ""
  43823. #. type: deftypevr
  43824. #: guix-git/doc/guix.texi:28984
  43825. 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."
  43826. msgstr ""
  43827. #. type: deftypevr
  43828. #: guix-git/doc/guix.texi:28989
  43829. #, no-wrap
  43830. msgid "{@code{libvirt-configuration} parameter} string auth-tcp"
  43831. msgstr ""
  43832. #. type: deftypevr
  43833. #: guix-git/doc/guix.texi:28993
  43834. 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."
  43835. msgstr ""
  43836. #. type: deftypevr
  43837. #: guix-git/doc/guix.texi:28995
  43838. msgid "Defaults to @samp{\"sasl\"}."
  43839. msgstr ""
  43840. #. type: deftypevr
  43841. #: guix-git/doc/guix.texi:28998
  43842. #, no-wrap
  43843. msgid "{@code{libvirt-configuration} parameter} string auth-tls"
  43844. msgstr ""
  43845. #. type: deftypevr
  43846. #: guix-git/doc/guix.texi:29002
  43847. msgid "Authentication scheme for TLS sockets. TLS sockets already have encryption provided by the TLS layer, and limited authentication is done by certificates."
  43848. msgstr ""
  43849. #. type: deftypevr
  43850. #: guix-git/doc/guix.texi:29005
  43851. msgid "It is possible to make use of any SASL authentication mechanism as well, by using 'sasl' for this option"
  43852. msgstr ""
  43853. #. type: deftypevr
  43854. #: guix-git/doc/guix.texi:29007
  43855. msgid "Defaults to @samp{\"none\"}."
  43856. msgstr ""
  43857. #. type: deftypevr
  43858. #: guix-git/doc/guix.texi:29010
  43859. #, no-wrap
  43860. msgid "{@code{libvirt-configuration} parameter} optional-list access-drivers"
  43861. msgstr ""
  43862. #. type: deftypevr
  43863. #: guix-git/doc/guix.texi:29012
  43864. msgid "API access control scheme."
  43865. msgstr ""
  43866. #. type: deftypevr
  43867. #: guix-git/doc/guix.texi:29015
  43868. msgid "By default an authenticated user is allowed access to all APIs. Access drivers can place restrictions on this."
  43869. msgstr ""
  43870. #. type: deftypevr
  43871. #: guix-git/doc/guix.texi:29020
  43872. #, no-wrap
  43873. msgid "{@code{libvirt-configuration} parameter} string key-file"
  43874. msgstr ""
  43875. #. type: deftypevr
  43876. #: guix-git/doc/guix.texi:29023
  43877. msgid "Server key file path. If set to an empty string, then no private key is loaded."
  43878. msgstr ""
  43879. #. type: deftypevr
  43880. #: guix-git/doc/guix.texi:29028
  43881. #, no-wrap
  43882. msgid "{@code{libvirt-configuration} parameter} string cert-file"
  43883. msgstr ""
  43884. #. type: deftypevr
  43885. #: guix-git/doc/guix.texi:29031
  43886. msgid "Server key file path. If set to an empty string, then no certificate is loaded."
  43887. msgstr ""
  43888. #. type: deftypevr
  43889. #: guix-git/doc/guix.texi:29036
  43890. #, no-wrap
  43891. msgid "{@code{libvirt-configuration} parameter} string ca-file"
  43892. msgstr ""
  43893. #. type: deftypevr
  43894. #: guix-git/doc/guix.texi:29039
  43895. msgid "Server key file path. If set to an empty string, then no CA certificate is loaded."
  43896. msgstr ""
  43897. #. type: deftypevr
  43898. #: guix-git/doc/guix.texi:29044
  43899. #, no-wrap
  43900. msgid "{@code{libvirt-configuration} parameter} string crl-file"
  43901. msgstr ""
  43902. #. type: deftypevr
  43903. #: guix-git/doc/guix.texi:29047
  43904. msgid "Certificate revocation list path. If set to an empty string, then no CRL is loaded."
  43905. msgstr ""
  43906. #. type: deftypevr
  43907. #: guix-git/doc/guix.texi:29052
  43908. #, no-wrap
  43909. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-sanity-cert"
  43910. msgstr ""
  43911. #. type: deftypevr
  43912. #: guix-git/doc/guix.texi:29054
  43913. msgid "Disable verification of our own server certificates."
  43914. msgstr ""
  43915. #. type: deftypevr
  43916. #: guix-git/doc/guix.texi:29057
  43917. msgid "When libvirtd starts it performs some sanity checks against its own certificates."
  43918. msgstr ""
  43919. #. type: deftypevr
  43920. #: guix-git/doc/guix.texi:29062
  43921. #, no-wrap
  43922. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-verify-cert"
  43923. msgstr ""
  43924. #. type: deftypevr
  43925. #: guix-git/doc/guix.texi:29064
  43926. msgid "Disable verification of client certificates."
  43927. msgstr ""
  43928. #. type: deftypevr
  43929. #: guix-git/doc/guix.texi:29068
  43930. msgid "Client certificate verification is the primary authentication mechanism. Any client which does not present a certificate signed by the CA will be rejected."
  43931. msgstr ""
  43932. #. type: deftypevr
  43933. #: guix-git/doc/guix.texi:29073
  43934. #, no-wrap
  43935. msgid "{@code{libvirt-configuration} parameter} optional-list tls-allowed-dn-list"
  43936. msgstr ""
  43937. #. type: deftypevr
  43938. #: guix-git/doc/guix.texi:29075
  43939. msgid "Whitelist of allowed x509 Distinguished Name."
  43940. msgstr ""
  43941. #. type: deftypevr
  43942. #: guix-git/doc/guix.texi:29080
  43943. #, no-wrap
  43944. msgid "{@code{libvirt-configuration} parameter} optional-list sasl-allowed-usernames"
  43945. msgstr ""
  43946. #. type: deftypevr
  43947. #: guix-git/doc/guix.texi:29083
  43948. msgid "Whitelist of allowed SASL usernames. The format for username depends on the SASL authentication mechanism."
  43949. msgstr ""
  43950. #. type: deftypevr
  43951. #: guix-git/doc/guix.texi:29088
  43952. #, no-wrap
  43953. msgid "{@code{libvirt-configuration} parameter} string tls-priority"
  43954. msgstr ""
  43955. #. type: deftypevr
  43956. #: guix-git/doc/guix.texi:29092
  43957. 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."
  43958. msgstr ""
  43959. #. type: deftypevr
  43960. #: guix-git/doc/guix.texi:29094
  43961. msgid "Defaults to @samp{\"NORMAL\"}."
  43962. msgstr ""
  43963. #. type: deftypevr
  43964. #: guix-git/doc/guix.texi:29097
  43965. #, no-wrap
  43966. msgid "{@code{libvirt-configuration} parameter} integer max-clients"
  43967. msgstr ""
  43968. #. type: deftypevr
  43969. #: guix-git/doc/guix.texi:29100 guix-git/doc/guix.texi:29524
  43970. msgid "Maximum number of concurrent client connections to allow over all sockets combined."
  43971. msgstr ""
  43972. #. type: deftypevr
  43973. #: guix-git/doc/guix.texi:29102
  43974. msgid "Defaults to @samp{5000}."
  43975. msgstr ""
  43976. #. type: deftypevr
  43977. #: guix-git/doc/guix.texi:29105
  43978. #, no-wrap
  43979. msgid "{@code{libvirt-configuration} parameter} integer max-queued-clients"
  43980. msgstr ""
  43981. #. type: deftypevr
  43982. #: guix-git/doc/guix.texi:29109
  43983. 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."
  43984. msgstr ""
  43985. #. type: deftypevr
  43986. #: guix-git/doc/guix.texi:29114
  43987. #, no-wrap
  43988. msgid "{@code{libvirt-configuration} parameter} integer max-anonymous-clients"
  43989. msgstr ""
  43990. #. type: deftypevr
  43991. #: guix-git/doc/guix.texi:29117
  43992. msgid "Maximum length of queue of accepted but not yet authenticated clients. Set this to zero to turn this feature off"
  43993. msgstr ""
  43994. #. type: deftypevr
  43995. #: guix-git/doc/guix.texi:29119 guix-git/doc/guix.texi:29137
  43996. #: guix-git/doc/guix.texi:29153
  43997. msgid "Defaults to @samp{20}."
  43998. msgstr ""
  43999. #. type: deftypevr
  44000. #: guix-git/doc/guix.texi:29122
  44001. #, no-wrap
  44002. msgid "{@code{libvirt-configuration} parameter} integer min-workers"
  44003. msgstr ""
  44004. #. type: deftypevr
  44005. #: guix-git/doc/guix.texi:29124
  44006. msgid "Number of workers to start up initially."
  44007. msgstr ""
  44008. #. type: deftypevr
  44009. #: guix-git/doc/guix.texi:29129
  44010. #, no-wrap
  44011. msgid "{@code{libvirt-configuration} parameter} integer max-workers"
  44012. msgstr ""
  44013. #. type: deftypevr
  44014. #: guix-git/doc/guix.texi:29131
  44015. msgid "Maximum number of worker threads."
  44016. msgstr ""
  44017. #. type: deftypevr
  44018. #: guix-git/doc/guix.texi:29135
  44019. 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."
  44020. msgstr ""
  44021. #. type: deftypevr
  44022. #: guix-git/doc/guix.texi:29140
  44023. #, no-wrap
  44024. msgid "{@code{libvirt-configuration} parameter} integer prio-workers"
  44025. msgstr ""
  44026. #. type: deftypevr
  44027. #: guix-git/doc/guix.texi:29144
  44028. 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."
  44029. msgstr ""
  44030. #. type: deftypevr
  44031. #: guix-git/doc/guix.texi:29149
  44032. #, no-wrap
  44033. msgid "{@code{libvirt-configuration} parameter} integer max-requests"
  44034. msgstr ""
  44035. #. type: deftypevr
  44036. #: guix-git/doc/guix.texi:29151
  44037. msgid "Total global limit on concurrent RPC calls."
  44038. msgstr ""
  44039. #. type: deftypevr
  44040. #: guix-git/doc/guix.texi:29156
  44041. #, no-wrap
  44042. msgid "{@code{libvirt-configuration} parameter} integer max-client-requests"
  44043. msgstr ""
  44044. #. type: deftypevr
  44045. #: guix-git/doc/guix.texi:29160
  44046. 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."
  44047. msgstr ""
  44048. #. type: deftypevr
  44049. #: guix-git/doc/guix.texi:29165
  44050. #, no-wrap
  44051. msgid "{@code{libvirt-configuration} parameter} integer admin-min-workers"
  44052. msgstr ""
  44053. #. type: deftypevr
  44054. #: guix-git/doc/guix.texi:29167
  44055. msgid "Same as @code{min-workers} but for the admin interface."
  44056. msgstr ""
  44057. #. type: deftypevr
  44058. #: guix-git/doc/guix.texi:29172
  44059. #, no-wrap
  44060. msgid "{@code{libvirt-configuration} parameter} integer admin-max-workers"
  44061. msgstr ""
  44062. #. type: deftypevr
  44063. #: guix-git/doc/guix.texi:29174
  44064. msgid "Same as @code{max-workers} but for the admin interface."
  44065. msgstr ""
  44066. #. type: deftypevr
  44067. #: guix-git/doc/guix.texi:29179
  44068. #, no-wrap
  44069. msgid "{@code{libvirt-configuration} parameter} integer admin-max-clients"
  44070. msgstr ""
  44071. #. type: deftypevr
  44072. #: guix-git/doc/guix.texi:29181
  44073. msgid "Same as @code{max-clients} but for the admin interface."
  44074. msgstr ""
  44075. #. type: deftypevr
  44076. #: guix-git/doc/guix.texi:29186
  44077. #, no-wrap
  44078. msgid "{@code{libvirt-configuration} parameter} integer admin-max-queued-clients"
  44079. msgstr ""
  44080. #. type: deftypevr
  44081. #: guix-git/doc/guix.texi:29188
  44082. msgid "Same as @code{max-queued-clients} but for the admin interface."
  44083. msgstr ""
  44084. #. type: deftypevr
  44085. #: guix-git/doc/guix.texi:29193
  44086. #, no-wrap
  44087. msgid "{@code{libvirt-configuration} parameter} integer admin-max-client-requests"
  44088. msgstr ""
  44089. #. type: deftypevr
  44090. #: guix-git/doc/guix.texi:29195
  44091. msgid "Same as @code{max-client-requests} but for the admin interface."
  44092. msgstr ""
  44093. #. type: deftypevr
  44094. #: guix-git/doc/guix.texi:29200
  44095. #, no-wrap
  44096. msgid "{@code{libvirt-configuration} parameter} integer log-level"
  44097. msgstr ""
  44098. #. type: deftypevr
  44099. #: guix-git/doc/guix.texi:29202 guix-git/doc/guix.texi:29426
  44100. msgid "Logging level. 4 errors, 3 warnings, 2 information, 1 debug."
  44101. msgstr ""
  44102. #. type: deftypevr
  44103. #: guix-git/doc/guix.texi:29207
  44104. #, no-wrap
  44105. msgid "{@code{libvirt-configuration} parameter} string log-filters"
  44106. msgstr ""
  44107. #. type: deftypevr
  44108. #: guix-git/doc/guix.texi:29209 guix-git/doc/guix.texi:29433
  44109. msgid "Logging filters."
  44110. msgstr ""
  44111. #. type: deftypevr
  44112. #: guix-git/doc/guix.texi:29212
  44113. msgid "A filter allows to select a different logging level for a given category of logs. The format for a filter is one of:"
  44114. msgstr ""
  44115. #. type: itemize
  44116. #: guix-git/doc/guix.texi:29216 guix-git/doc/guix.texi:29440
  44117. msgid "x:name"
  44118. msgstr ""
  44119. #. type: itemize
  44120. #: guix-git/doc/guix.texi:29219 guix-git/doc/guix.texi:29443
  44121. msgid "x:+name"
  44122. msgstr ""
  44123. #. type: deftypevr
  44124. #: guix-git/doc/guix.texi:29230
  44125. 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:"
  44126. msgstr ""
  44127. #. type: itemize
  44128. #: guix-git/doc/guix.texi:29234 guix-git/doc/guix.texi:29279
  44129. #: guix-git/doc/guix.texi:29457 guix-git/doc/guix.texi:29502
  44130. msgid "1: DEBUG"
  44131. msgstr ""
  44132. #. type: itemize
  44133. #: guix-git/doc/guix.texi:29237 guix-git/doc/guix.texi:29282
  44134. #: guix-git/doc/guix.texi:29460 guix-git/doc/guix.texi:29505
  44135. msgid "2: INFO"
  44136. msgstr ""
  44137. #. type: itemize
  44138. #: guix-git/doc/guix.texi:29240 guix-git/doc/guix.texi:29285
  44139. #: guix-git/doc/guix.texi:29463 guix-git/doc/guix.texi:29508
  44140. msgid "3: WARNING"
  44141. msgstr ""
  44142. #. type: itemize
  44143. #: guix-git/doc/guix.texi:29243 guix-git/doc/guix.texi:29288
  44144. #: guix-git/doc/guix.texi:29466 guix-git/doc/guix.texi:29511
  44145. msgid "4: ERROR"
  44146. msgstr ""
  44147. #. type: deftypevr
  44148. #: guix-git/doc/guix.texi:29248 guix-git/doc/guix.texi:29471
  44149. msgid "Multiple filters can be defined in a single filters statement, they just need to be separated by spaces."
  44150. msgstr ""
  44151. #. type: deftypevr
  44152. #: guix-git/doc/guix.texi:29250 guix-git/doc/guix.texi:29473
  44153. msgid "Defaults to @samp{\"3:remote 4:event\"}."
  44154. msgstr ""
  44155. #. type: deftypevr
  44156. #: guix-git/doc/guix.texi:29253
  44157. #, no-wrap
  44158. msgid "{@code{libvirt-configuration} parameter} string log-outputs"
  44159. msgstr ""
  44160. #. type: deftypevr
  44161. #: guix-git/doc/guix.texi:29255 guix-git/doc/guix.texi:29478
  44162. msgid "Logging outputs."
  44163. msgstr ""
  44164. #. type: deftypevr
  44165. #: guix-git/doc/guix.texi:29258
  44166. msgid "An output is one of the places to save logging information. The format for an output can be:"
  44167. msgstr ""
  44168. #. type: item
  44169. #: guix-git/doc/guix.texi:29260 guix-git/doc/guix.texi:29483
  44170. #, no-wrap
  44171. msgid "x:stderr"
  44172. msgstr ""
  44173. #. type: table
  44174. #: guix-git/doc/guix.texi:29262 guix-git/doc/guix.texi:29485
  44175. msgid "output goes to stderr"
  44176. msgstr ""
  44177. #. type: item
  44178. #: guix-git/doc/guix.texi:29263 guix-git/doc/guix.texi:29486
  44179. #, no-wrap
  44180. msgid "x:syslog:name"
  44181. msgstr ""
  44182. #. type: table
  44183. #: guix-git/doc/guix.texi:29265 guix-git/doc/guix.texi:29488
  44184. msgid "use syslog for the output and use the given name as the ident"
  44185. msgstr ""
  44186. #. type: item
  44187. #: guix-git/doc/guix.texi:29266 guix-git/doc/guix.texi:29489
  44188. #, no-wrap
  44189. msgid "x:file:file_path"
  44190. msgstr ""
  44191. #. type: table
  44192. #: guix-git/doc/guix.texi:29268 guix-git/doc/guix.texi:29491
  44193. msgid "output to a file, with the given filepath"
  44194. msgstr ""
  44195. #. type: item
  44196. #: guix-git/doc/guix.texi:29269 guix-git/doc/guix.texi:29492
  44197. #, no-wrap
  44198. msgid "x:journald"
  44199. msgstr ""
  44200. #. type: table
  44201. #: guix-git/doc/guix.texi:29271 guix-git/doc/guix.texi:29494
  44202. msgid "output to journald logging system"
  44203. msgstr ""
  44204. #. type: deftypevr
  44205. #: guix-git/doc/guix.texi:29275 guix-git/doc/guix.texi:29498
  44206. msgid "In all case the x prefix is the minimal level, acting as a filter"
  44207. msgstr ""
  44208. #. type: deftypevr
  44209. #: guix-git/doc/guix.texi:29293 guix-git/doc/guix.texi:29516
  44210. msgid "Multiple outputs can be defined, they just need to be separated by spaces."
  44211. msgstr ""
  44212. #. type: deftypevr
  44213. #: guix-git/doc/guix.texi:29295 guix-git/doc/guix.texi:29518
  44214. msgid "Defaults to @samp{\"3:stderr\"}."
  44215. msgstr ""
  44216. #. type: deftypevr
  44217. #: guix-git/doc/guix.texi:29298
  44218. #, no-wrap
  44219. msgid "{@code{libvirt-configuration} parameter} integer audit-level"
  44220. msgstr ""
  44221. #. type: deftypevr
  44222. #: guix-git/doc/guix.texi:29300
  44223. msgid "Allows usage of the auditing subsystem to be altered"
  44224. msgstr ""
  44225. #. type: itemize
  44226. #: guix-git/doc/guix.texi:29304
  44227. msgid "0: disable all auditing"
  44228. msgstr ""
  44229. #. type: itemize
  44230. #: guix-git/doc/guix.texi:29307
  44231. msgid "1: enable auditing, only if enabled on host"
  44232. msgstr ""
  44233. #. type: itemize
  44234. #: guix-git/doc/guix.texi:29310
  44235. msgid "2: enable auditing, and exit if disabled on host."
  44236. msgstr ""
  44237. #. type: deftypevr
  44238. #: guix-git/doc/guix.texi:29317
  44239. #, no-wrap
  44240. msgid "{@code{libvirt-configuration} parameter} boolean audit-logging"
  44241. msgstr ""
  44242. #. type: deftypevr
  44243. #: guix-git/doc/guix.texi:29319
  44244. msgid "Send audit messages via libvirt logging infrastructure."
  44245. msgstr ""
  44246. #. type: deftypevr
  44247. #: guix-git/doc/guix.texi:29324
  44248. #, no-wrap
  44249. msgid "{@code{libvirt-configuration} parameter} optional-string host-uuid"
  44250. msgstr ""
  44251. #. type: deftypevr
  44252. #: guix-git/doc/guix.texi:29326
  44253. msgid "Host UUID@. UUID must not have all digits be the same."
  44254. msgstr ""
  44255. #. type: deftypevr
  44256. #: guix-git/doc/guix.texi:29331
  44257. #, no-wrap
  44258. msgid "{@code{libvirt-configuration} parameter} string host-uuid-source"
  44259. msgstr ""
  44260. #. type: deftypevr
  44261. #: guix-git/doc/guix.texi:29333
  44262. msgid "Source to read host UUID."
  44263. msgstr ""
  44264. #. type: itemize
  44265. #: guix-git/doc/guix.texi:29337
  44266. msgid "@code{smbios}: fetch the UUID from @code{dmidecode -s system-uuid}"
  44267. msgstr ""
  44268. #. type: itemize
  44269. #: guix-git/doc/guix.texi:29340
  44270. msgid "@code{machine-id}: fetch the UUID from @code{/etc/machine-id}"
  44271. msgstr ""
  44272. #. type: deftypevr
  44273. #: guix-git/doc/guix.texi:29345
  44274. msgid "If @code{dmidecode} does not provide a valid UUID a temporary UUID will be generated."
  44275. msgstr ""
  44276. #. type: deftypevr
  44277. #: guix-git/doc/guix.texi:29347
  44278. msgid "Defaults to @samp{\"smbios\"}."
  44279. msgstr ""
  44280. #. type: deftypevr
  44281. #: guix-git/doc/guix.texi:29350
  44282. #, no-wrap
  44283. msgid "{@code{libvirt-configuration} parameter} integer keepalive-interval"
  44284. msgstr ""
  44285. #. type: deftypevr
  44286. #: guix-git/doc/guix.texi:29355
  44287. 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."
  44288. msgstr ""
  44289. #. type: deftypevr
  44290. #: guix-git/doc/guix.texi:29360
  44291. #, no-wrap
  44292. msgid "{@code{libvirt-configuration} parameter} integer keepalive-count"
  44293. msgstr ""
  44294. #. type: deftypevr
  44295. #: guix-git/doc/guix.texi:29364
  44296. 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."
  44297. msgstr ""
  44298. #. type: deftypevr
  44299. #: guix-git/doc/guix.texi:29371
  44300. 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."
  44301. msgstr ""
  44302. #. type: deftypevr
  44303. #: guix-git/doc/guix.texi:29376
  44304. #, no-wrap
  44305. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-interval"
  44306. msgstr ""
  44307. #. type: deftypevr
  44308. #: guix-git/doc/guix.texi:29378 guix-git/doc/guix.texi:29385
  44309. msgid "Same as above but for admin interface."
  44310. msgstr ""
  44311. #. type: deftypevr
  44312. #: guix-git/doc/guix.texi:29383
  44313. #, no-wrap
  44314. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-count"
  44315. msgstr ""
  44316. #. type: deftypevr
  44317. #: guix-git/doc/guix.texi:29390
  44318. #, no-wrap
  44319. msgid "{@code{libvirt-configuration} parameter} integer ovs-timeout"
  44320. msgstr ""
  44321. #. type: deftypevr
  44322. #: guix-git/doc/guix.texi:29392
  44323. msgid "Timeout for Open vSwitch calls."
  44324. msgstr ""
  44325. #. type: deftypevr
  44326. #: guix-git/doc/guix.texi:29396
  44327. 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."
  44328. msgstr ""
  44329. #. type: subsubheading
  44330. #: guix-git/doc/guix.texi:29403
  44331. #, no-wrap
  44332. msgid "Virtlog daemon"
  44333. msgstr ""
  44334. #. type: Plain text
  44335. #: guix-git/doc/guix.texi:29406
  44336. msgid "The virtlogd service is a server side daemon component of libvirt that is used to manage logs from virtual machine consoles."
  44337. msgstr ""
  44338. #. type: Plain text
  44339. #: guix-git/doc/guix.texi:29412
  44340. 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."
  44341. msgstr ""
  44342. #. type: deffn
  44343. #: guix-git/doc/guix.texi:29413
  44344. #, no-wrap
  44345. msgid "{Scheme Variable} virtlog-service-type"
  44346. msgstr ""
  44347. #. type: deffn
  44348. #: guix-git/doc/guix.texi:29416
  44349. msgid "This is the type of the virtlog daemon. Its value must be a @code{virtlog-configuration}."
  44350. msgstr ""
  44351. #. type: lisp
  44352. #: guix-git/doc/guix.texi:29421
  44353. #, no-wrap
  44354. msgid ""
  44355. "(service virtlog-service-type\n"
  44356. " (virtlog-configuration\n"
  44357. " (max-clients 1000)))\n"
  44358. msgstr ""
  44359. #. type: deftypevr
  44360. #: guix-git/doc/guix.texi:29424
  44361. #, no-wrap
  44362. msgid "{@code{virtlog-configuration} parameter} integer log-level"
  44363. msgstr ""
  44364. #. type: deftypevr
  44365. #: guix-git/doc/guix.texi:29431
  44366. #, no-wrap
  44367. msgid "{@code{virtlog-configuration} parameter} string log-filters"
  44368. msgstr ""
  44369. #. type: deftypevr
  44370. #: guix-git/doc/guix.texi:29436
  44371. msgid "A filter allows to select a different logging level for a given category of logs The format for a filter is one of:"
  44372. msgstr ""
  44373. #. type: deftypevr
  44374. #: guix-git/doc/guix.texi:29453
  44375. 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:"
  44376. msgstr ""
  44377. #. type: deftypevr
  44378. #: guix-git/doc/guix.texi:29476
  44379. #, no-wrap
  44380. msgid "{@code{virtlog-configuration} parameter} string log-outputs"
  44381. msgstr ""
  44382. #. type: deftypevr
  44383. #: guix-git/doc/guix.texi:29481
  44384. msgid "An output is one of the places to save logging information The format for an output can be:"
  44385. msgstr ""
  44386. #. type: deftypevr
  44387. #: guix-git/doc/guix.texi:29521
  44388. #, no-wrap
  44389. msgid "{@code{virtlog-configuration} parameter} integer max-clients"
  44390. msgstr ""
  44391. #. type: deftypevr
  44392. #: guix-git/doc/guix.texi:29526
  44393. msgid "Defaults to @samp{1024}."
  44394. msgstr ""
  44395. #. type: deftypevr
  44396. #: guix-git/doc/guix.texi:29529
  44397. #, no-wrap
  44398. msgid "{@code{virtlog-configuration} parameter} integer max-size"
  44399. msgstr ""
  44400. #. type: deftypevr
  44401. #: guix-git/doc/guix.texi:29531
  44402. msgid "Maximum file size before rolling over."
  44403. msgstr ""
  44404. #. type: deftypevr
  44405. #: guix-git/doc/guix.texi:29533
  44406. msgid "Defaults to @samp{2MB}"
  44407. msgstr ""
  44408. #. type: deftypevr
  44409. #: guix-git/doc/guix.texi:29536
  44410. #, no-wrap
  44411. msgid "{@code{virtlog-configuration} parameter} integer max-backups"
  44412. msgstr ""
  44413. #. type: deftypevr
  44414. #: guix-git/doc/guix.texi:29538
  44415. msgid "Maximum number of backup files to keep."
  44416. msgstr ""
  44417. #. type: deftypevr
  44418. #: guix-git/doc/guix.texi:29540
  44419. msgid "Defaults to @samp{3}"
  44420. msgstr ""
  44421. #. type: anchor{#1}
  44422. #: guix-git/doc/guix.texi:29544
  44423. msgid "transparent-emulation-qemu"
  44424. msgstr ""
  44425. #. type: subsubheading
  44426. #: guix-git/doc/guix.texi:29544
  44427. #, no-wrap
  44428. msgid "Transparent Emulation with QEMU"
  44429. msgstr ""
  44430. #. type: cindex
  44431. #: guix-git/doc/guix.texi:29546
  44432. #, no-wrap
  44433. msgid "emulation"
  44434. msgstr ""
  44435. #. type: code{#1}
  44436. #: guix-git/doc/guix.texi:29547
  44437. #, no-wrap
  44438. msgid "binfmt_misc"
  44439. msgstr ""
  44440. #. type: Plain text
  44441. #: guix-git/doc/guix.texi:29555
  44442. 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."
  44443. msgstr ""
  44444. #. type: defvr
  44445. #: guix-git/doc/guix.texi:29556
  44446. #, no-wrap
  44447. msgid "{Scheme Variable} qemu-binfmt-service-type"
  44448. msgstr ""
  44449. #. type: defvr
  44450. #: guix-git/doc/guix.texi:29561
  44451. 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:"
  44452. msgstr ""
  44453. #. type: lisp
  44454. #: guix-git/doc/guix.texi:29566
  44455. #, fuzzy, no-wrap
  44456. msgid ""
  44457. "(service qemu-binfmt-service-type\n"
  44458. " (qemu-binfmt-configuration\n"
  44459. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  44460. msgstr ""
  44461. "(service qemu-binfmt-service-type\n"
  44462. " (qemu-binfmt-configuration\n"
  44463. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  44464. " (guix-support? #t)))\n"
  44465. #. type: defvr
  44466. #: guix-git/doc/guix.texi:29572
  44467. 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})."
  44468. msgstr ""
  44469. #. type: deftp
  44470. #: guix-git/doc/guix.texi:29574
  44471. #, no-wrap
  44472. msgid "{Data Type} qemu-binfmt-configuration"
  44473. msgstr ""
  44474. #. type: deftp
  44475. #: guix-git/doc/guix.texi:29576
  44476. msgid "This is the configuration for the @code{qemu-binfmt} service."
  44477. msgstr ""
  44478. #. type: item
  44479. #: guix-git/doc/guix.texi:29578
  44480. #, no-wrap
  44481. msgid "@code{platforms} (default: @code{'()})"
  44482. msgstr ""
  44483. #. type: table
  44484. #: guix-git/doc/guix.texi:29581
  44485. msgid "The list of emulated QEMU platforms. Each item must be a @dfn{platform object} as returned by @code{lookup-qemu-platforms} (see below)."
  44486. msgstr ""
  44487. #. type: table
  44488. #: guix-git/doc/guix.texi:29584
  44489. msgid "For example, let's suppose you're on an x86_64 machine and you have this service:"
  44490. msgstr ""
  44491. #. type: lisp
  44492. #: guix-git/doc/guix.texi:29589
  44493. #, fuzzy, no-wrap
  44494. msgid ""
  44495. "(service qemu-binfmt-service-type\n"
  44496. " (qemu-binfmt-configuration\n"
  44497. " (platforms (lookup-qemu-platforms \"arm\"))))\n"
  44498. msgstr ""
  44499. "(service qemu-binfmt-service-type\n"
  44500. " (qemu-binfmt-configuration\n"
  44501. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  44502. " (guix-support? #t)))\n"
  44503. #. type: table
  44504. #: guix-git/doc/guix.texi:29592
  44505. msgid "You can run:"
  44506. msgstr ""
  44507. #. type: example
  44508. #: guix-git/doc/guix.texi:29595
  44509. #, no-wrap
  44510. msgid "guix build -s armhf-linux inkscape\n"
  44511. msgstr ""
  44512. #. type: table
  44513. #: guix-git/doc/guix.texi:29602
  44514. 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!"
  44515. msgstr ""
  44516. #. type: item
  44517. #: guix-git/doc/guix.texi:29603
  44518. #, no-wrap
  44519. msgid "@code{qemu} (default: @code{qemu})"
  44520. msgstr ""
  44521. #. type: table
  44522. #: guix-git/doc/guix.texi:29605 guix-git/doc/guix.texi:29699
  44523. msgid "The QEMU package to use."
  44524. msgstr ""
  44525. #. type: deffn
  44526. #: guix-git/doc/guix.texi:29608
  44527. #, no-wrap
  44528. msgid "{Scheme Procedure} lookup-qemu-platforms @var{platforms}@dots{}"
  44529. msgstr ""
  44530. #. type: deffn
  44531. #: guix-git/doc/guix.texi:29613
  44532. 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."
  44533. msgstr ""
  44534. #. type: deffn
  44535. #: guix-git/doc/guix.texi:29615
  44536. #, no-wrap
  44537. msgid "{Scheme Procedure} qemu-platform? @var{obj}"
  44538. msgstr ""
  44539. #. type: deffn
  44540. #: guix-git/doc/guix.texi:29617
  44541. msgid "Return true if @var{obj} is a platform object."
  44542. msgstr ""
  44543. #. type: deffn
  44544. #: guix-git/doc/guix.texi:29619
  44545. #, no-wrap
  44546. msgid "{Scheme Procedure} qemu-platform-name @var{platform}"
  44547. msgstr ""
  44548. #. type: deffn
  44549. #: guix-git/doc/guix.texi:29621
  44550. msgid "Return the name of @var{platform}---a string such as @code{\"arm\"}."
  44551. msgstr ""
  44552. #. type: subsubheading
  44553. #: guix-git/doc/guix.texi:29624
  44554. #, no-wrap
  44555. msgid "The Hurd in a Virtual Machine"
  44556. msgstr ""
  44557. #. type: cindex
  44558. #: guix-git/doc/guix.texi:29627
  44559. #, no-wrap
  44560. msgid "the Hurd"
  44561. msgstr ""
  44562. #. type: cindex
  44563. #: guix-git/doc/guix.texi:29628
  44564. #, no-wrap
  44565. msgid "childhurd"
  44566. msgstr ""
  44567. #. type: Plain text
  44568. #: guix-git/doc/guix.texi:29636
  44569. 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:"
  44570. msgstr ""
  44571. #. type: example
  44572. #: guix-git/doc/guix.texi:29640
  44573. #, no-wrap
  44574. msgid ""
  44575. "herd start hurd-vm\n"
  44576. "herd stop childhurd\n"
  44577. msgstr ""
  44578. #. type: Plain text
  44579. #: guix-git/doc/guix.texi:29644
  44580. msgid "When the service is running, you can view its console by connecting to it with a VNC client, for example with:"
  44581. msgstr ""
  44582. #. type: example
  44583. #: guix-git/doc/guix.texi:29648
  44584. #, no-wrap
  44585. msgid ""
  44586. "guix environment --ad-hoc tigervnc-client -- \\\n"
  44587. " vncviewer localhost:5900\n"
  44588. msgstr ""
  44589. #. type: Plain text
  44590. #: guix-git/doc/guix.texi:29654
  44591. 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:"
  44592. msgstr ""
  44593. #. type: example
  44594. #: guix-git/doc/guix.texi:29657
  44595. #, no-wrap
  44596. msgid "ssh root@@localhost -p 10022\n"
  44597. msgstr ""
  44598. #. type: Plain text
  44599. #: guix-git/doc/guix.texi:29666
  44600. 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."
  44601. msgstr ""
  44602. #. type: defvr
  44603. #: guix-git/doc/guix.texi:29667
  44604. #, no-wrap
  44605. msgid "{Scheme Variable} hurd-vm-service-type"
  44606. msgstr ""
  44607. #. type: defvr
  44608. #: guix-git/doc/guix.texi:29673
  44609. 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."
  44610. msgstr ""
  44611. #. type: lisp
  44612. #: guix-git/doc/guix.texi:29681
  44613. #, no-wrap
  44614. msgid ""
  44615. "(service hurd-vm-service-type\n"
  44616. " (hurd-vm-configuration\n"
  44617. " (disk-size (* 5000 (expt 2 20))) ;5G\n"
  44618. " (memory-size 1024))) ;1024MiB\n"
  44619. msgstr ""
  44620. #. type: defvr
  44621. #: guix-git/doc/guix.texi:29685
  44622. msgid "would create a disk image big enough to build GNU@tie{}Hello, with some extra memory."
  44623. msgstr ""
  44624. #. type: deftp
  44625. #: guix-git/doc/guix.texi:29687
  44626. #, fuzzy, no-wrap
  44627. msgid "{Data Type} hurd-vm-configuration"
  44628. msgstr "{数据类型} build-machine"
  44629. #. type: deftp
  44630. #: guix-git/doc/guix.texi:29690
  44631. msgid "The data type representing the configuration for @code{hurd-vm-service-type}."
  44632. msgstr ""
  44633. #. type: item
  44634. #: guix-git/doc/guix.texi:29692
  44635. #, fuzzy, no-wrap
  44636. msgid "@code{os} (default: @var{%hurd-vm-operating-system})"
  44637. msgstr "@code{mate}(默认值:@code{mate})"
  44638. #. type: table
  44639. #: guix-git/doc/guix.texi:29696
  44640. 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}})."
  44641. msgstr ""
  44642. #. type: item
  44643. #: guix-git/doc/guix.texi:29697
  44644. #, fuzzy, no-wrap
  44645. msgid "@code{qemu} (default: @code{qemu-minimal})"
  44646. msgstr "@code{mate}(默认值:@code{mate})"
  44647. #. type: item
  44648. #: guix-git/doc/guix.texi:29700
  44649. #, fuzzy, no-wrap
  44650. msgid "@code{image} (default: @var{hurd-vm-disk-image})"
  44651. msgstr "@code{mate}(默认值:@code{mate})"
  44652. #. type: table
  44653. #: guix-git/doc/guix.texi:29703
  44654. msgid "The procedure used to build the disk-image built from this configuration."
  44655. msgstr ""
  44656. #. type: item
  44657. #: guix-git/doc/guix.texi:29704
  44658. #, fuzzy, no-wrap
  44659. msgid "@code{disk-size} (default: @code{'guess})"
  44660. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  44661. #. type: table
  44662. #: guix-git/doc/guix.texi:29706
  44663. #, fuzzy
  44664. msgid "The size of the disk image."
  44665. msgstr "这个用户手册的许可证。"
  44666. #. type: item
  44667. #: guix-git/doc/guix.texi:29707
  44668. #, fuzzy, no-wrap
  44669. msgid "@code{memory-size} (default: @code{512})"
  44670. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  44671. #. type: table
  44672. #: guix-git/doc/guix.texi:29709
  44673. msgid "The memory size of the Virtual Machine in mebibytes."
  44674. msgstr ""
  44675. #. type: item
  44676. #: guix-git/doc/guix.texi:29710
  44677. #, fuzzy, no-wrap
  44678. msgid "@code{options} (default: @code{'(\"--snapshot\")})"
  44679. msgstr "@code{includes}(默认值:@code{'()})"
  44680. #. type: table
  44681. #: guix-git/doc/guix.texi:29712
  44682. msgid "The extra options for running QEMU."
  44683. msgstr ""
  44684. #. type: table
  44685. #: guix-git/doc/guix.texi:29717
  44686. 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}."
  44687. msgstr ""
  44688. #. type: item
  44689. #: guix-git/doc/guix.texi:29718
  44690. #, no-wrap
  44691. msgid "@code{net-options} (default: @var{hurd-vm-net-options})"
  44692. msgstr ""
  44693. #. type: table
  44694. #: guix-git/doc/guix.texi:29720
  44695. msgid "The procedure used to produce the list of QEMU networking options."
  44696. msgstr ""
  44697. #. type: table
  44698. #: guix-git/doc/guix.texi:29722
  44699. msgid "By default, it produces"
  44700. msgstr ""
  44701. #. type: lisp
  44702. #: guix-git/doc/guix.texi:29730
  44703. #, no-wrap
  44704. msgid ""
  44705. "'(\"--device\" \"rtl8139,netdev=net0\"\n"
  44706. " \"--netdev\" (string-append\n"
  44707. " \"user,id=net0,\"\n"
  44708. " \"hostfwd=tcp:127.0.0.1:@var{secrets-port}-:1004,\"\n"
  44709. " \"hostfwd=tcp:127.0.0.1:@var{ssh-port}-:2222,\"\n"
  44710. " \"hostfwd=tcp:127.0.0.1:@var{vnc-port}-:5900\"))\n"
  44711. msgstr ""
  44712. #. type: table
  44713. #: guix-git/doc/guix.texi:29733
  44714. msgid "with forwarded ports:"
  44715. msgstr ""
  44716. #. type: example
  44717. #: guix-git/doc/guix.texi:29738
  44718. #, no-wrap
  44719. msgid ""
  44720. "@var{secrets-port}: @code{(+ 11004 (* 1000 @var{ID}))}\n"
  44721. "@var{ssh-port}: @code{(+ 10022 (* 1000 @var{ID}))}\n"
  44722. "@var{vnc-port}: @code{(+ 15900 (* 1000 @var{ID}))}\n"
  44723. msgstr ""
  44724. #. type: item
  44725. #: guix-git/doc/guix.texi:29740
  44726. #, fuzzy, no-wrap
  44727. msgid "@code{secret-root} (default: @file{/etc/childhurd})"
  44728. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  44729. #. type: table
  44730. #: guix-git/doc/guix.texi:29745
  44731. 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."
  44732. msgstr ""
  44733. #. type: table
  44734. #: guix-git/doc/guix.texi:29749
  44735. 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."
  44736. msgstr ""
  44737. #. type: table
  44738. #: guix-git/doc/guix.texi:29752
  44739. msgid "By default, the service automatically populates @file{/etc/childhurd} with the following non-volatile secrets, unless they already exist:"
  44740. msgstr ""
  44741. #. type: example
  44742. #: guix-git/doc/guix.texi:29761
  44743. #, no-wrap
  44744. msgid ""
  44745. "/etc/childhurd/etc/guix/acl\n"
  44746. "/etc/childhurd/etc/guix/signing-key.pub\n"
  44747. "/etc/childhurd/etc/guix/signing-key.sec\n"
  44748. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key\n"
  44749. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key\n"
  44750. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key.pub\n"
  44751. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key.pub\n"
  44752. msgstr ""
  44753. #. type: table
  44754. #: guix-git/doc/guix.texi:29765
  44755. msgid "These files are automatically sent to the guest Hurd VM when it boots, including permissions."
  44756. msgstr ""
  44757. #. type: cindex
  44758. #: guix-git/doc/guix.texi:29766
  44759. #, fuzzy, no-wrap
  44760. msgid "childhurd, offloading"
  44761. msgstr "下发"
  44762. #. type: cindex
  44763. #: guix-git/doc/guix.texi:29767
  44764. #, fuzzy, no-wrap
  44765. msgid "Hurd, offloading"
  44766. msgstr "下发"
  44767. #. type: table
  44768. #: guix-git/doc/guix.texi:29771
  44769. 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:"
  44770. msgstr ""
  44771. #. type: enumerate
  44772. #: guix-git/doc/guix.texi:29776
  44773. 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:"
  44774. msgstr ""
  44775. #. type: example
  44776. #: guix-git/doc/guix.texi:29780
  44777. #, fuzzy, no-wrap
  44778. msgid ""
  44779. "guix archive --authorize < \\\n"
  44780. " /etc/childhurd/etc/guix/signing-key.pub\n"
  44781. msgstr "# guix archive --authorize < master-public-key.txt\n"
  44782. #. type: enumerate
  44783. #: guix-git/doc/guix.texi:29785
  44784. msgid "Adding the childhurd to @file{/etc/guix/machines.scm} (@pxref{Daemon Offload Setup})."
  44785. msgstr ""
  44786. #. type: table
  44787. #: guix-git/doc/guix.texi:29789
  44788. msgid "We're working towards making that happen automatically---get in touch with us at @email{guix-devel@@gnu.org} to discuss it!"
  44789. msgstr ""
  44790. #. type: Plain text
  44791. #: guix-git/doc/guix.texi:29796
  44792. 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:"
  44793. msgstr ""
  44794. #. type: lisp
  44795. #: guix-git/doc/guix.texi:29802
  44796. #, no-wrap
  44797. msgid ""
  44798. "(service hurd-vm-service-type\n"
  44799. " (hurd-vm-configuration\n"
  44800. " (image (const \"/out/of/store/writable/hurd.img\"))\n"
  44801. " (options '())))\n"
  44802. msgstr ""
  44803. #. type: subsubheading
  44804. #: guix-git/doc/guix.texi:29804
  44805. #, no-wrap
  44806. msgid "Ganeti"
  44807. msgstr ""
  44808. #. type: cindex
  44809. #: guix-git/doc/guix.texi:29806
  44810. #, no-wrap
  44811. msgid "ganeti"
  44812. msgstr ""
  44813. #. type: quotation
  44814. #: guix-git/doc/guix.texi:29813
  44815. 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}."
  44816. msgstr ""
  44817. #. type: Plain text
  44818. #: guix-git/doc/guix.texi:29823
  44819. 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)."
  44820. msgstr ""
  44821. #. type: Plain text
  44822. #: guix-git/doc/guix.texi:29828
  44823. 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}:"
  44824. msgstr ""
  44825. #. type: lisp
  44826. #: guix-git/doc/guix.texi:29838
  44827. #, no-wrap
  44828. msgid ""
  44829. "(use-package-modules virtualization)\n"
  44830. "(use-service-modules base ganeti networking ssh)\n"
  44831. "(operating-system\n"
  44832. " ;; @dots{}\n"
  44833. " (host-name \"node1\")\n"
  44834. " (hosts-file (plain-file \"hosts\" (format #f \"\n"
  44835. "127.0.0.1 localhost\n"
  44836. "::1 localhost\n"
  44837. "\n"
  44838. msgstr ""
  44839. #. type: lisp
  44840. #: guix-git/doc/guix.texi:29843
  44841. #, no-wrap
  44842. msgid ""
  44843. "192.168.1.200 ganeti.example.com\n"
  44844. "192.168.1.201 node1.example.com node1\n"
  44845. "192.168.1.202 node2.example.com node2\n"
  44846. "\")))\n"
  44847. "\n"
  44848. msgstr ""
  44849. #. type: lisp
  44850. #: guix-git/doc/guix.texi:29857
  44851. #, no-wrap
  44852. msgid ""
  44853. " ;; Install QEMU so we can use KVM-based instances, and LVM, DRBD and Ceph\n"
  44854. " ;; in order to use the \"plain\", \"drbd\" and \"rbd\" storage backends.\n"
  44855. " (packages (append (map specification->package\n"
  44856. " '(\"qemu\" \"lvm2\" \"drbd-utils\" \"ceph\"\n"
  44857. " ;; Add the debootstrap and guix OS providers.\n"
  44858. " \"ganeti-instance-guix\" \"ganeti-instance-debootstrap\"))\n"
  44859. " %base-packages))\n"
  44860. " (services\n"
  44861. " (append (list (static-networking-service \"eth0\" \"192.168.1.201\"\n"
  44862. " #:netmask \"255.255.255.0\"\n"
  44863. " #:gateway \"192.168.1.254\"\n"
  44864. " #:name-servers '(\"192.168.1.252\"\n"
  44865. " \"192.168.1.253\"))\n"
  44866. "\n"
  44867. msgstr ""
  44868. #. type: lisp
  44869. #: guix-git/doc/guix.texi:29862
  44870. #, no-wrap
  44871. msgid ""
  44872. " ;; Ganeti uses SSH to communicate between nodes.\n"
  44873. " (service openssh-service-type\n"
  44874. " (openssh-configuration\n"
  44875. " (permit-root-login 'prohibit-password)))\n"
  44876. "\n"
  44877. msgstr ""
  44878. #. type: lisp
  44879. #: guix-git/doc/guix.texi:29872
  44880. #, no-wrap
  44881. msgid ""
  44882. " (service ganeti-service-type\n"
  44883. " (ganeti-configuration\n"
  44884. " ;; This list specifies allowed file system paths\n"
  44885. " ;; for storing virtual machine images.\n"
  44886. " (file-storage-paths '(\"/srv/ganeti/file-storage\"))\n"
  44887. " ;; This variable configures a single \"variant\" for\n"
  44888. " ;; both Debootstrap and Guix that works with KVM.\n"
  44889. " (os %default-ganeti-os))))\n"
  44890. " %base-services)))\n"
  44891. msgstr ""
  44892. #. type: Plain text
  44893. #: guix-git/doc/guix.texi:29880
  44894. 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."
  44895. msgstr ""
  44896. #. type: defvr
  44897. #: guix-git/doc/guix.texi:29881
  44898. #, no-wrap
  44899. msgid "{Scheme Variable} ganeti-service-type"
  44900. msgstr ""
  44901. #. type: defvr
  44902. #: guix-git/doc/guix.texi:29884
  44903. msgid "This is a service type that includes all the various services that Ganeti nodes should run."
  44904. msgstr ""
  44905. #. type: defvr
  44906. #: guix-git/doc/guix.texi:29889
  44907. 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."
  44908. msgstr ""
  44909. #. type: deftp
  44910. #: guix-git/doc/guix.texi:29891
  44911. #, no-wrap
  44912. msgid "{Data Type} ganeti-configuration"
  44913. msgstr ""
  44914. #. type: deftp
  44915. #: guix-git/doc/guix.texi:29893
  44916. msgid "The @code{ganeti} service takes the following configuration options:"
  44917. msgstr ""
  44918. #. type: item
  44919. #: guix-git/doc/guix.texi:29895 guix-git/doc/guix.texi:30123
  44920. #: guix-git/doc/guix.texi:30173 guix-git/doc/guix.texi:30203
  44921. #: guix-git/doc/guix.texi:30230 guix-git/doc/guix.texi:30262
  44922. #: guix-git/doc/guix.texi:30315 guix-git/doc/guix.texi:30335
  44923. #: guix-git/doc/guix.texi:30361 guix-git/doc/guix.texi:30394
  44924. #: guix-git/doc/guix.texi:30434
  44925. #, fuzzy, no-wrap
  44926. msgid "@code{ganeti} (default: @code{ganeti})"
  44927. msgstr "@code{gnome}(默认值:@code{gnome})"
  44928. #. type: table
  44929. #: guix-git/doc/guix.texi:29900
  44930. 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)."
  44931. msgstr ""
  44932. #. type: item
  44933. #: guix-git/doc/guix.texi:29901
  44934. #, fuzzy, no-wrap
  44935. msgid "@code{noded-configuration} (default: @code{(ganeti-noded-configuration)})"
  44936. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  44937. #. type: itemx
  44938. #: guix-git/doc/guix.texi:29902
  44939. #, fuzzy, no-wrap
  44940. msgid "@code{confd-configuration} (default: @code{(ganeti-confd-configuration)})"
  44941. msgstr "@code{journal-content}(默认值:@code{#f})"
  44942. #. type: itemx
  44943. #: guix-git/doc/guix.texi:29903
  44944. #, no-wrap
  44945. msgid "@code{wconfd-configuration} (default: @code{(ganeti-wconfd-configuration)})"
  44946. msgstr ""
  44947. #. type: itemx
  44948. #: guix-git/doc/guix.texi:29904
  44949. #, no-wrap
  44950. msgid "@code{luxid-configuration} (default: @code{(ganeti-luxid-configuration)})"
  44951. msgstr ""
  44952. #. type: itemx
  44953. #: guix-git/doc/guix.texi:29905
  44954. #, fuzzy, no-wrap
  44955. msgid "@code{rapi-configuration} (default: @code{(ganeti-rapi-configuration)})"
  44956. msgstr "@code{journal-content}(默认值:@code{#f})"
  44957. #. type: itemx
  44958. #: guix-git/doc/guix.texi:29906
  44959. #, fuzzy, no-wrap
  44960. msgid "@code{kvmd-configuration} (default: @code{(ganeti-kvmd-configuration)})"
  44961. msgstr "@code{mate}(默认值:@code{mate})"
  44962. #. type: itemx
  44963. #: guix-git/doc/guix.texi:29907
  44964. #, fuzzy, no-wrap
  44965. msgid "@code{mond-configuration} (default: @code{(ganeti-mond-configuration)})"
  44966. msgstr "@code{journal-content}(默认值:@code{#f})"
  44967. #. type: itemx
  44968. #: guix-git/doc/guix.texi:29908
  44969. #, fuzzy, no-wrap
  44970. msgid "@code{metad-configuration} (default: @code{(ganeti-metad-configuration)})"
  44971. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  44972. #. type: itemx
  44973. #: guix-git/doc/guix.texi:29909
  44974. #, fuzzy, no-wrap
  44975. msgid "@code{watcher-configuration} (default: @code{(ganeti-watcher-configuration)})"
  44976. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  44977. #. type: itemx
  44978. #: guix-git/doc/guix.texi:29910
  44979. #, fuzzy, no-wrap
  44980. msgid "@code{cleaner-configuration} (default: @code{(ganeti-cleaner-configuration)})"
  44981. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  44982. #. type: table
  44983. #: guix-git/doc/guix.texi:29915
  44984. 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:"
  44985. msgstr ""
  44986. #. type: lisp
  44987. #: guix-git/doc/guix.texi:29925
  44988. #, no-wrap
  44989. msgid ""
  44990. "(service ganeti-service-type\n"
  44991. " (ganeti-configuration\n"
  44992. " (rapi-configuration\n"
  44993. " (ganeti-rapi-configuration\n"
  44994. " (interface \"eth1\"))))\n"
  44995. " (watcher-configuration\n"
  44996. " (ganeti-watcher-configuration\n"
  44997. " (rapi-ip \"10.0.0.1\"))))\n"
  44998. msgstr ""
  44999. #. type: item
  45000. #: guix-git/doc/guix.texi:29927
  45001. #, fuzzy, no-wrap
  45002. msgid "@code{file-storage-paths} (default: @code{'()})"
  45003. msgstr "@code{features} (@code{'()})"
  45004. #. type: table
  45005. #: guix-git/doc/guix.texi:29929
  45006. msgid "List of allowed directories for file storage backend."
  45007. msgstr ""
  45008. #. type: item
  45009. #: guix-git/doc/guix.texi:29930
  45010. #, fuzzy, no-wrap
  45011. msgid "@code{os} (default: @code{%default-ganeti-os})"
  45012. msgstr "@code{gnome}(默认值:@code{gnome})"
  45013. #. type: table
  45014. #: guix-git/doc/guix.texi:29932
  45015. msgid "List of @code{<ganeti-os>} records."
  45016. msgstr ""
  45017. #. type: deftp
  45018. #: guix-git/doc/guix.texi:29936
  45019. msgid "In essence @code{ganeti-service-type} is shorthand for declaring each service individually:"
  45020. msgstr ""
  45021. #. type: lisp
  45022. #: guix-git/doc/guix.texi:29947
  45023. #, no-wrap
  45024. msgid ""
  45025. "(service ganeti-noded-service-type)\n"
  45026. "(service ganeti-confd-service-type)\n"
  45027. "(service ganeti-wconfd-service-type)\n"
  45028. "(service ganeti-luxid-service-type)\n"
  45029. "(service ganeti-kvmd-service-type)\n"
  45030. "(service ganeti-mond-service-type)\n"
  45031. "(service ganeti-metad-service-type)\n"
  45032. "(service ganeti-watcher-service-type)\n"
  45033. "(service ganeti-cleaner-service-type)\n"
  45034. msgstr ""
  45035. #. type: deftp
  45036. #: guix-git/doc/guix.texi:29951
  45037. msgid "Plus a service extension for @code{etc-service-type} that configures the file storage backend and OS variants."
  45038. msgstr ""
  45039. #. type: deftp
  45040. #: guix-git/doc/guix.texi:29954
  45041. #, fuzzy, no-wrap
  45042. msgid "{Data Type} ganeti-os"
  45043. msgstr "{数据类型} build-machine"
  45044. #. type: deftp
  45045. #: guix-git/doc/guix.texi:29957
  45046. msgid "This data type is suitable for passing to the @code{os} parameter of @code{ganeti-configuration}. It takes the following parameters:"
  45047. msgstr ""
  45048. #. type: table
  45049. #: guix-git/doc/guix.texi:29963
  45050. 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}."
  45051. msgstr ""
  45052. #. type: code{#1}
  45053. #: guix-git/doc/guix.texi:29964
  45054. #, no-wrap
  45055. msgid "extension"
  45056. msgstr ""
  45057. #. type: table
  45058. #: guix-git/doc/guix.texi:29967
  45059. msgid "The file extension for variants of this OS type. For example @file{.conf} or @file{.scm}."
  45060. msgstr ""
  45061. #. type: item
  45062. #: guix-git/doc/guix.texi:29968
  45063. #, fuzzy, no-wrap
  45064. msgid "@code{variants} (default: @code{'()})"
  45065. msgstr "@code{features} (@code{'()})"
  45066. #. type: table
  45067. #: guix-git/doc/guix.texi:29970
  45068. msgid "List of @code{ganeti-os-variant} objects for this OS."
  45069. msgstr ""
  45070. #. type: deftp
  45071. #: guix-git/doc/guix.texi:29974
  45072. #, fuzzy, no-wrap
  45073. msgid "{Data Type} ganeti-os-variant"
  45074. msgstr "{数据类型} build-machine"
  45075. #. type: deftp
  45076. #: guix-git/doc/guix.texi:29977
  45077. msgid "This is the data type for a Ganeti OS variant. It takes the following parameters:"
  45078. msgstr ""
  45079. #. type: table
  45080. #: guix-git/doc/guix.texi:29981
  45081. #, fuzzy
  45082. msgid "The name of this variant."
  45083. msgstr "这个用户手册的许可证。"
  45084. #. type: code{#1}
  45085. #: guix-git/doc/guix.texi:29982
  45086. #, fuzzy, no-wrap
  45087. msgid "configuration"
  45088. msgstr "系统配置"
  45089. #. type: table
  45090. #: guix-git/doc/guix.texi:29984
  45091. msgid "A configuration file for this variant."
  45092. msgstr ""
  45093. #. type: defvr
  45094. #: guix-git/doc/guix.texi:29987
  45095. #, no-wrap
  45096. msgid "{Scheme Variable} %default-debootstrap-hooks"
  45097. msgstr ""
  45098. #. type: defvr
  45099. #: guix-git/doc/guix.texi:29989
  45100. msgid "This variable contains hooks to configure networking and the GRUB bootloader."
  45101. msgstr ""
  45102. #. type: defvr
  45103. #: guix-git/doc/guix.texi:29991
  45104. #, no-wrap
  45105. msgid "{Scheme Variable} %default-debootstrap-extra-pkgs"
  45106. msgstr ""
  45107. #. type: defvr
  45108. #: guix-git/doc/guix.texi:29993
  45109. msgid "This variable contains a list of packages suitable for a fully-virtualized guest."
  45110. msgstr ""
  45111. #. type: deftp
  45112. #: guix-git/doc/guix.texi:29995
  45113. #, no-wrap
  45114. msgid "{Data Type} debootstrap-configuration"
  45115. msgstr ""
  45116. #. type: deftp
  45117. #: guix-git/doc/guix.texi:29998
  45118. msgid "This data type creates configuration files suitable for the debootstrap OS provider."
  45119. msgstr ""
  45120. #. type: item
  45121. #: guix-git/doc/guix.texi:30000
  45122. #, fuzzy, no-wrap
  45123. msgid "@code{hooks} (default: @code{%default-debootstrap-hooks})"
  45124. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  45125. #. type: table
  45126. #: guix-git/doc/guix.texi:30004
  45127. 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:"
  45128. msgstr ""
  45129. #. type: lisp
  45130. #: guix-git/doc/guix.texi:30007
  45131. #, no-wrap
  45132. msgid "`((99-hello-world . ,(plain-file \"#!/bin/sh\\necho Hello, World\")))\n"
  45133. msgstr ""
  45134. #. type: table
  45135. #: guix-git/doc/guix.texi:30012
  45136. 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."
  45137. msgstr ""
  45138. #. type: item
  45139. #: guix-git/doc/guix.texi:30012
  45140. #, fuzzy, no-wrap
  45141. msgid "@code{proxy} (default: @code{#f})"
  45142. msgstr "@code{port}(默认值:@code{22})"
  45143. #. type: table
  45144. #: guix-git/doc/guix.texi:30014
  45145. msgid "Optional HTTP proxy to use."
  45146. msgstr ""
  45147. #. type: item
  45148. #: guix-git/doc/guix.texi:30014
  45149. #, fuzzy, no-wrap
  45150. msgid "@code{mirror} (default: @code{#f})"
  45151. msgstr "@code{port}(默认值:@code{22})"
  45152. #. type: table
  45153. #: guix-git/doc/guix.texi:30017
  45154. msgid "The Debian mirror. Typically something like @code{http://ftp.no.debian.org/debian}. The default varies depending on the distribution."
  45155. msgstr ""
  45156. #. type: item
  45157. #: guix-git/doc/guix.texi:30017
  45158. #, fuzzy, no-wrap
  45159. msgid "@code{arch} (default: @code{#f})"
  45160. msgstr "@code{challenge}(默认值:@code{#f})"
  45161. #. type: table
  45162. #: guix-git/doc/guix.texi:30020
  45163. 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."
  45164. msgstr ""
  45165. #. type: item
  45166. #: guix-git/doc/guix.texi:30020
  45167. #, fuzzy, no-wrap
  45168. msgid "@code{suite} (default: @code{\"stable\"})"
  45169. msgstr "@code{mate}(默认值:@code{mate})"
  45170. #. type: table
  45171. #: guix-git/doc/guix.texi:30023
  45172. 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."
  45173. msgstr ""
  45174. #. type: item
  45175. #: guix-git/doc/guix.texi:30023
  45176. #, no-wrap
  45177. msgid "@code{extra-pkgs} (default: @code{%default-debootstrap-extra-pkgs})"
  45178. msgstr ""
  45179. #. type: table
  45180. #: guix-git/doc/guix.texi:30026
  45181. msgid "List of extra packages that will get installed by dpkg in addition to the minimal system."
  45182. msgstr ""
  45183. #. type: item
  45184. #: guix-git/doc/guix.texi:30026
  45185. #, fuzzy, no-wrap
  45186. msgid "@code{components} (default: @code{#f})"
  45187. msgstr "@code{journal-content}(默认值:@code{#f})"
  45188. #. type: table
  45189. #: guix-git/doc/guix.texi:30029
  45190. msgid "When set, must be a list of Debian repository ``components''. For example @code{'(\"main\" \"contrib\")}."
  45191. msgstr ""
  45192. #. type: item
  45193. #: guix-git/doc/guix.texi:30029
  45194. #, fuzzy, no-wrap
  45195. msgid "@code{generate-cache?} (default: @code{#t})"
  45196. msgstr "@code{mate}(默认值:@code{mate})"
  45197. #. type: table
  45198. #: guix-git/doc/guix.texi:30031
  45199. msgid "Whether to automatically cache the generated debootstrap archive."
  45200. msgstr ""
  45201. #. type: item
  45202. #: guix-git/doc/guix.texi:30031
  45203. #, fuzzy, no-wrap
  45204. msgid "@code{clean-cache} (default: @code{14})"
  45205. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  45206. #. type: table
  45207. #: guix-git/doc/guix.texi:30034
  45208. msgid "Discard the cache after this amount of days. Use @code{#f} to never clear the cache."
  45209. msgstr ""
  45210. #. type: item
  45211. #: guix-git/doc/guix.texi:30034
  45212. #, fuzzy, no-wrap
  45213. msgid "@code{partition-style} (default: @code{'msdos})"
  45214. msgstr "@code{compression-level}(默认值:@code{3})"
  45215. #. type: table
  45216. #: guix-git/doc/guix.texi:30037
  45217. msgid "The type of partition to create. When set, it must be one of @code{'msdos}, @code{'none} or a string."
  45218. msgstr ""
  45219. #. type: item
  45220. #: guix-git/doc/guix.texi:30037
  45221. #, fuzzy, no-wrap
  45222. msgid "@code{partition-alignment} (default: @code{2048})"
  45223. msgstr "@code{port}(默认值:@code{22})"
  45224. #. type: table
  45225. #: guix-git/doc/guix.texi:30039
  45226. msgid "Alignment of the partition in sectors."
  45227. msgstr ""
  45228. #. type: deffn
  45229. #: guix-git/doc/guix.texi:30042
  45230. #, no-wrap
  45231. msgid "{Scheme Procedure} debootstrap-variant @var{name} @var{configuration}"
  45232. msgstr ""
  45233. #. type: deffn
  45234. #: guix-git/doc/guix.texi:30045
  45235. 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."
  45236. msgstr ""
  45237. #. type: deffn
  45238. #: guix-git/doc/guix.texi:30047
  45239. #, no-wrap
  45240. msgid "{Scheme Procedure} debootstrap-os @var{variants}@dots{}"
  45241. msgstr ""
  45242. #. type: deffn
  45243. #: guix-git/doc/guix.texi:30050
  45244. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants created with @code{debootstrap-variant}."
  45245. msgstr ""
  45246. #. type: deffn
  45247. #: guix-git/doc/guix.texi:30052
  45248. #, no-wrap
  45249. msgid "{Scheme Procedure} guix-variant @var{name} @var{configuration}"
  45250. msgstr ""
  45251. #. type: deffn
  45252. #: guix-git/doc/guix.texi:30057
  45253. 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."
  45254. msgstr ""
  45255. #. type: deffn
  45256. #: guix-git/doc/guix.texi:30059
  45257. #, no-wrap
  45258. msgid "{Scheme Procedure} guix-os @var{variants}@dots{}"
  45259. msgstr ""
  45260. #. type: deffn
  45261. #: guix-git/doc/guix.texi:30062
  45262. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants produced by @code{guix-variant}."
  45263. msgstr ""
  45264. #. type: defvr
  45265. #: guix-git/doc/guix.texi:30064
  45266. #, no-wrap
  45267. msgid "{Scheme Variable} %default-debootstrap-variants"
  45268. msgstr ""
  45269. #. type: defvr
  45270. #: guix-git/doc/guix.texi:30068
  45271. 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:"
  45272. msgstr ""
  45273. #. type: lisp
  45274. #: guix-git/doc/guix.texi:30073
  45275. #, no-wrap
  45276. msgid ""
  45277. "(list (debootstrap-variant\n"
  45278. " \"default\"\n"
  45279. " (debootstrap-configuration)))\n"
  45280. msgstr ""
  45281. #. type: defvr
  45282. #: guix-git/doc/guix.texi:30076
  45283. #, no-wrap
  45284. msgid "{Scheme Variable} %default-guix-variants"
  45285. msgstr ""
  45286. #. type: defvr
  45287. #: guix-git/doc/guix.texi:30080
  45288. 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."
  45289. msgstr ""
  45290. #. type: lisp
  45291. #: guix-git/doc/guix.texi:30086
  45292. #, no-wrap
  45293. msgid ""
  45294. "(list (guix-variant\n"
  45295. " \"default\"\n"
  45296. " (file-append ganeti-instance-guix\n"
  45297. " \"/share/doc/ganeti-instance-guix/examples/dynamic.scm\")))\n"
  45298. msgstr ""
  45299. #. type: Plain text
  45300. #: guix-git/doc/guix.texi:30092
  45301. 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:"
  45302. msgstr ""
  45303. #. type: lisp
  45304. #: guix-git/doc/guix.texi:30101
  45305. #, no-wrap
  45306. msgid ""
  45307. "(ganeti-os\n"
  45308. " (name \"custom\")\n"
  45309. " (extension \".conf\")\n"
  45310. " (variants\n"
  45311. " (list (ganeti-os-variant\n"
  45312. " (name \"foo\")\n"
  45313. " (configuration (plain-file \"bar\" \"this is fine\"))))))\n"
  45314. msgstr ""
  45315. #. type: Plain text
  45316. #: guix-git/doc/guix.texi:30106
  45317. 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}."
  45318. msgstr ""
  45319. #. type: Plain text
  45320. #: guix-git/doc/guix.texi:30109
  45321. 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}."
  45322. msgstr ""
  45323. #. type: Plain text
  45324. #: guix-git/doc/guix.texi:30112
  45325. msgid "The rest of this section documents the various services that are included by @code{ganeti-service-type}."
  45326. msgstr ""
  45327. #. type: defvr
  45328. #: guix-git/doc/guix.texi:30113
  45329. #, no-wrap
  45330. msgid "{Scheme Variable} ganeti-noded-service-type"
  45331. msgstr ""
  45332. #. type: defvr
  45333. #: guix-git/doc/guix.texi:30117
  45334. 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."
  45335. msgstr ""
  45336. #. type: deftp
  45337. #: guix-git/doc/guix.texi:30119
  45338. #, no-wrap
  45339. msgid "{Data Type} ganeti-noded-configuration"
  45340. msgstr ""
  45341. #. type: deftp
  45342. #: guix-git/doc/guix.texi:30121
  45343. msgid "This is the configuration for the @code{ganeti-noded} service."
  45344. msgstr ""
  45345. #. type: table
  45346. #: guix-git/doc/guix.texi:30125 guix-git/doc/guix.texi:30175
  45347. #: guix-git/doc/guix.texi:30205 guix-git/doc/guix.texi:30232
  45348. #: guix-git/doc/guix.texi:30264 guix-git/doc/guix.texi:30317
  45349. #: guix-git/doc/guix.texi:30337 guix-git/doc/guix.texi:30363
  45350. #: guix-git/doc/guix.texi:30396
  45351. msgid "The @code{ganeti} package to use for this service."
  45352. msgstr ""
  45353. #. type: item
  45354. #: guix-git/doc/guix.texi:30126
  45355. #, fuzzy, no-wrap
  45356. msgid "@code{port} (default: @code{1811})"
  45357. msgstr "@code{port}(默认值:@code{22})"
  45358. #. type: table
  45359. #: guix-git/doc/guix.texi:30128
  45360. msgid "The TCP port on which the node daemon listens for network requests."
  45361. msgstr ""
  45362. #. type: item
  45363. #: guix-git/doc/guix.texi:30129 guix-git/doc/guix.texi:30179
  45364. #: guix-git/doc/guix.texi:30271 guix-git/doc/guix.texi:30341
  45365. #, fuzzy, no-wrap
  45366. msgid "@code{address} (default: @code{\"0.0.0.0\"})"
  45367. msgstr "@code{display}(默认值:@code{\":0\"})"
  45368. #. type: table
  45369. #: guix-git/doc/guix.texi:30132
  45370. msgid "The network address that the daemon will bind to. The default address means bind to all available addresses."
  45371. msgstr ""
  45372. #. type: table
  45373. #: guix-git/doc/guix.texi:30136
  45374. msgid "When this is set, it must be a specific network interface (e.g.@: @code{eth0}) that the daemon will bind to."
  45375. msgstr ""
  45376. #. type: item
  45377. #: guix-git/doc/guix.texi:30137 guix-git/doc/guix.texi:30279
  45378. #, fuzzy, no-wrap
  45379. msgid "@code{max-clients} (default: @code{20})"
  45380. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  45381. #. type: table
  45382. #: guix-git/doc/guix.texi:30141
  45383. 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."
  45384. msgstr ""
  45385. #. type: item
  45386. #: guix-git/doc/guix.texi:30142 guix-git/doc/guix.texi:30284
  45387. #, fuzzy, no-wrap
  45388. msgid "@code{ssl?} (default: @code{#t})"
  45389. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45390. #. type: table
  45391. #: guix-git/doc/guix.texi:30146
  45392. 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}."
  45393. msgstr ""
  45394. #. type: item
  45395. #: guix-git/doc/guix.texi:30147 guix-git/doc/guix.texi:30287
  45396. #, fuzzy, no-wrap
  45397. msgid "@code{ssl-key} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  45398. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45399. #. type: table
  45400. #: guix-git/doc/guix.texi:30149 guix-git/doc/guix.texi:30289
  45401. msgid "This can be used to provide a specific encryption key for TLS communications."
  45402. msgstr ""
  45403. #. type: item
  45404. #: guix-git/doc/guix.texi:30150 guix-git/doc/guix.texi:30290
  45405. #, fuzzy, no-wrap
  45406. msgid "@code{ssl-cert} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  45407. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45408. #. type: table
  45409. #: guix-git/doc/guix.texi:30152 guix-git/doc/guix.texi:30292
  45410. msgid "This can be used to provide a specific certificate for TLS communications."
  45411. msgstr ""
  45412. #. type: table
  45413. #: guix-git/doc/guix.texi:30156 guix-git/doc/guix.texi:30296
  45414. 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."
  45415. msgstr ""
  45416. #. type: defvr
  45417. #: guix-git/doc/guix.texi:30160
  45418. #, no-wrap
  45419. msgid "{Scheme Variable} ganeti-confd-service-type"
  45420. msgstr ""
  45421. #. type: defvr
  45422. #: guix-git/doc/guix.texi:30166
  45423. 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."
  45424. msgstr ""
  45425. #. type: deftp
  45426. #: guix-git/doc/guix.texi:30169
  45427. #, no-wrap
  45428. msgid "{Data Type} ganeti-confd-configuration"
  45429. msgstr ""
  45430. #. type: deftp
  45431. #: guix-git/doc/guix.texi:30171
  45432. msgid "This is the configuration for the @code{ganeti-confd} service."
  45433. msgstr ""
  45434. #. type: item
  45435. #: guix-git/doc/guix.texi:30176
  45436. #, fuzzy, no-wrap
  45437. msgid "@code{port} (default: @code{1814})"
  45438. msgstr "@code{port}(默认值:@code{22})"
  45439. #. type: table
  45440. #: guix-git/doc/guix.texi:30178
  45441. msgid "The UDP port on which to listen for network requests."
  45442. msgstr ""
  45443. #. type: table
  45444. #: guix-git/doc/guix.texi:30181
  45445. msgid "Network address that the daemon will bind to."
  45446. msgstr ""
  45447. #. type: table
  45448. #: guix-git/doc/guix.texi:30184 guix-git/doc/guix.texi:30213
  45449. #: guix-git/doc/guix.texi:30240 guix-git/doc/guix.texi:30320
  45450. #: guix-git/doc/guix.texi:30347 guix-git/doc/guix.texi:30373
  45451. msgid "When true, the daemon performs additional logging for debugging purposes."
  45452. msgstr ""
  45453. #. type: defvr
  45454. #: guix-git/doc/guix.texi:30188
  45455. #, no-wrap
  45456. msgid "{Scheme Variable} ganeti-wconfd-service-type"
  45457. msgstr ""
  45458. #. type: defvr
  45459. #: guix-git/doc/guix.texi:30194
  45460. 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."
  45461. msgstr ""
  45462. #. type: defvr
  45463. #: guix-git/doc/guix.texi:30197
  45464. msgid "The value of this service must be a @code{ganeti-wconfd-configuration} object."
  45465. msgstr ""
  45466. #. type: deftp
  45467. #: guix-git/doc/guix.texi:30199
  45468. #, no-wrap
  45469. msgid "{Data Type} ganeti-wconfd-configuration"
  45470. msgstr ""
  45471. #. type: deftp
  45472. #: guix-git/doc/guix.texi:30201
  45473. msgid "This is the configuration for the @code{ganeti-wconfd} service."
  45474. msgstr ""
  45475. #. type: item
  45476. #: guix-git/doc/guix.texi:30206 guix-git/doc/guix.texi:30233
  45477. #, fuzzy, no-wrap
  45478. msgid "@code{no-voting?} (default: @code{#f})"
  45479. msgstr "@code{journal-content}(默认值:@code{#f})"
  45480. #. type: table
  45481. #: guix-git/doc/guix.texi:30210
  45482. 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)."
  45483. msgstr ""
  45484. #. type: defvr
  45485. #: guix-git/doc/guix.texi:30217
  45486. #, no-wrap
  45487. msgid "{Scheme Variable} ganeti-luxid-service-type"
  45488. msgstr ""
  45489. #. type: defvr
  45490. #: guix-git/doc/guix.texi:30222
  45491. 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."
  45492. msgstr ""
  45493. #. type: defvr
  45494. #: guix-git/doc/guix.texi:30224
  45495. msgid "It takes a @code{ganeti-luxid-configuration} object."
  45496. msgstr ""
  45497. #. type: deftp
  45498. #: guix-git/doc/guix.texi:30226
  45499. #, fuzzy, no-wrap
  45500. msgid "{Data Type} ganeti-luxid-configuration"
  45501. msgstr "{数据类型} build-machine"
  45502. #. type: deftp
  45503. #: guix-git/doc/guix.texi:30228
  45504. #, fuzzy
  45505. msgid "This is the configuration for the @code{ganeti-luxid} service."
  45506. msgstr "管理操作系统配置。"
  45507. #. type: table
  45508. #: guix-git/doc/guix.texi:30237
  45509. 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)."
  45510. msgstr ""
  45511. #. type: defvr
  45512. #: guix-git/doc/guix.texi:30244
  45513. #, no-wrap
  45514. msgid "{Scheme Variable} ganeti-rapi-service-type"
  45515. msgstr ""
  45516. #. type: defvr
  45517. #: guix-git/doc/guix.texi:30248
  45518. 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."
  45519. msgstr ""
  45520. #. type: defvr
  45521. #: guix-git/doc/guix.texi:30254
  45522. 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."
  45523. msgstr ""
  45524. #. type: defvr
  45525. #: guix-git/doc/guix.texi:30256
  45526. msgid "The value of this service must be a @code{ganeti-rapi-configuration} object."
  45527. msgstr ""
  45528. #. type: deftp
  45529. #: guix-git/doc/guix.texi:30258
  45530. #, no-wrap
  45531. msgid "{Data Type} ganeti-rapi-configuration"
  45532. msgstr ""
  45533. #. type: deftp
  45534. #: guix-git/doc/guix.texi:30260
  45535. msgid "This is the configuration for the @code{ganeti-rapi} service."
  45536. msgstr ""
  45537. #. type: item
  45538. #: guix-git/doc/guix.texi:30265
  45539. #, fuzzy, no-wrap
  45540. msgid "@code{require-authentication?} (default: @code{#f})"
  45541. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  45542. #. type: table
  45543. #: guix-git/doc/guix.texi:30267
  45544. msgid "Whether to require authentication even for read-only operations."
  45545. msgstr ""
  45546. #. type: item
  45547. #: guix-git/doc/guix.texi:30268
  45548. #, fuzzy, no-wrap
  45549. msgid "@code{port} (default: @code{5080})"
  45550. msgstr "@code{port}(默认值:@code{22})"
  45551. #. type: table
  45552. #: guix-git/doc/guix.texi:30270
  45553. msgid "The TCP port on which to listen to API requests."
  45554. msgstr ""
  45555. #. type: table
  45556. #: guix-git/doc/guix.texi:30274
  45557. msgid "The network address that the service will bind to. By default it listens on all configured addresses."
  45558. msgstr ""
  45559. #. type: table
  45560. #: guix-git/doc/guix.texi:30278
  45561. msgid "When set, it must specify a specific network interface such as @code{eth0} that the daemon will bind to."
  45562. msgstr ""
  45563. #. type: table
  45564. #: guix-git/doc/guix.texi:30283
  45565. msgid "The maximum number of simultaneous client requests to handle. Further connections are allowed, but no responses are sent until enough connections have closed."
  45566. msgstr ""
  45567. #. type: table
  45568. #: guix-git/doc/guix.texi:30286
  45569. msgid "Whether to use SSL/TLS encryption on the RAPI port."
  45570. msgstr ""
  45571. #. type: defvr
  45572. #: guix-git/doc/guix.texi:30300
  45573. #, no-wrap
  45574. msgid "{Scheme Variable} ganeti-kvmd-service-type"
  45575. msgstr ""
  45576. #. type: defvr
  45577. #: guix-git/doc/guix.texi:30308
  45578. 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."
  45579. msgstr ""
  45580. #. type: defvr
  45581. #: guix-git/doc/guix.texi:30310
  45582. msgid "It takes a @code{ganeti-kvmd-configuration} object."
  45583. msgstr ""
  45584. #. type: deftp
  45585. #: guix-git/doc/guix.texi:30312
  45586. #, no-wrap
  45587. msgid "{Data Type} ganeti-kvmd-configuration"
  45588. msgstr ""
  45589. #. type: defvr
  45590. #: guix-git/doc/guix.texi:30324
  45591. #, no-wrap
  45592. msgid "{Scheme Variable} ganeti-mond-service-type"
  45593. msgstr ""
  45594. #. type: defvr
  45595. #: guix-git/doc/guix.texi:30328
  45596. 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."
  45597. msgstr ""
  45598. #. type: defvr
  45599. #: guix-git/doc/guix.texi:30330
  45600. msgid "It takes a @code{ganeti-mond-configuration} object."
  45601. msgstr ""
  45602. #. type: deftp
  45603. #: guix-git/doc/guix.texi:30332
  45604. #, no-wrap
  45605. msgid "{Data Type} ganeti-mond-configuration"
  45606. msgstr ""
  45607. #. type: item
  45608. #: guix-git/doc/guix.texi:30338
  45609. #, fuzzy, no-wrap
  45610. msgid "@code{port} (default: @code{1815})"
  45611. msgstr "@code{port}(默认值:@code{22})"
  45612. #. type: table
  45613. #: guix-git/doc/guix.texi:30340 guix-git/doc/guix.texi:30366
  45614. msgid "The port on which the daemon will listen."
  45615. msgstr ""
  45616. #. type: table
  45617. #: guix-git/doc/guix.texi:30344
  45618. msgid "The network address that the daemon will bind to. By default it binds to all available interfaces."
  45619. msgstr ""
  45620. #. type: defvr
  45621. #: guix-git/doc/guix.texi:30351
  45622. #, no-wrap
  45623. msgid "{Scheme Variable} ganeti-metad-service-type"
  45624. msgstr ""
  45625. #. type: defvr
  45626. #: guix-git/doc/guix.texi:30354
  45627. msgid "@command{ganeti-metad} is an optional daemon that can be used to provide information about the cluster to instances or OS install scripts."
  45628. msgstr ""
  45629. #. type: defvr
  45630. #: guix-git/doc/guix.texi:30356
  45631. msgid "It takes a @code{ganeti-metad-configuration} object."
  45632. msgstr ""
  45633. #. type: deftp
  45634. #: guix-git/doc/guix.texi:30358
  45635. #, fuzzy, no-wrap
  45636. msgid "{Data Type} ganeti-metad-configuration"
  45637. msgstr "{数据类型} build-machine"
  45638. #. type: item
  45639. #: guix-git/doc/guix.texi:30367
  45640. #, fuzzy, no-wrap
  45641. msgid "@code{address} (default: @code{#f})"
  45642. msgstr "@code{challenge}(默认值:@code{#f})"
  45643. #. type: table
  45644. #: guix-git/doc/guix.texi:30370
  45645. msgid "If set, the daemon will bind to this address only. If left unset, the behavior depends on the cluster configuration."
  45646. msgstr ""
  45647. #. type: defvr
  45648. #: guix-git/doc/guix.texi:30377
  45649. #, no-wrap
  45650. msgid "{Scheme Variable} ganeti-watcher-service-type"
  45651. msgstr ""
  45652. #. type: defvr
  45653. #: guix-git/doc/guix.texi:30385
  45654. 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."
  45655. msgstr ""
  45656. #. type: defvr
  45657. #: guix-git/doc/guix.texi:30387
  45658. msgid "It can be paused on all nodes with @command{gnt-cluster watcher pause}."
  45659. msgstr ""
  45660. #. type: defvr
  45661. #: guix-git/doc/guix.texi:30389
  45662. msgid "The service takes a @code{ganeti-watcher-configuration} object."
  45663. msgstr ""
  45664. #. type: deftp
  45665. #: guix-git/doc/guix.texi:30391
  45666. #, no-wrap
  45667. msgid "{Data Type} ganeti-watcher-configuration"
  45668. msgstr ""
  45669. #. type: item
  45670. #: guix-git/doc/guix.texi:30397
  45671. #, no-wrap
  45672. msgid "@code{schedule} (default: @code{'(next-second-from (next-minute (range 0 60 5)))})"
  45673. msgstr ""
  45674. #. type: table
  45675. #: guix-git/doc/guix.texi:30399
  45676. msgid "How often to run the script. The default is every five minutes."
  45677. msgstr ""
  45678. #. type: item
  45679. #: guix-git/doc/guix.texi:30400
  45680. #, fuzzy, no-wrap
  45681. msgid "@code{rapi-ip} (default: @code{#f})"
  45682. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  45683. #. type: table
  45684. #: guix-git/doc/guix.texi:30403
  45685. 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."
  45686. msgstr ""
  45687. #. type: item
  45688. #: guix-git/doc/guix.texi:30404
  45689. #, fuzzy, no-wrap
  45690. msgid "@code{job-age} (default: @code{(* 6 3600)})"
  45691. msgstr "@code{features} (@code{'()})"
  45692. #. type: table
  45693. #: guix-git/doc/guix.texi:30407
  45694. msgid "Archive cluster jobs older than this age, specified in seconds. The default is 6 hours. This keeps @command{gnt-job list} manageable."
  45695. msgstr ""
  45696. #. type: item
  45697. #: guix-git/doc/guix.texi:30408
  45698. #, fuzzy, no-wrap
  45699. msgid "@code{verify-disks?} (default: @code{#t})"
  45700. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  45701. #. type: table
  45702. #: guix-git/doc/guix.texi:30412
  45703. 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."
  45704. msgstr ""
  45705. #. type: table
  45706. #: guix-git/doc/guix.texi:30415
  45707. msgid "When @code{#t}, the script performs additional logging for debugging purposes."
  45708. msgstr ""
  45709. #. type: defvr
  45710. #: guix-git/doc/guix.texi:30419
  45711. #, no-wrap
  45712. msgid "{Scheme Variable} ganeti-cleaner-service-type"
  45713. msgstr ""
  45714. #. type: defvr
  45715. #: guix-git/doc/guix.texi:30427
  45716. 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."
  45717. msgstr ""
  45718. #. type: defvr
  45719. #: guix-git/doc/guix.texi:30429
  45720. msgid "It takes a @code{ganeti-cleaner-configuration} object."
  45721. msgstr ""
  45722. #. type: deftp
  45723. #: guix-git/doc/guix.texi:30431
  45724. #, no-wrap
  45725. msgid "{Data Type} ganeti-cleaner-configuration"
  45726. msgstr ""
  45727. #. type: table
  45728. #: guix-git/doc/guix.texi:30436
  45729. msgid "The @code{ganeti} package to use for the @command{gnt-cleaner} command."
  45730. msgstr ""
  45731. #. type: item
  45732. #: guix-git/doc/guix.texi:30437
  45733. #, fuzzy, no-wrap
  45734. msgid "@code{master-schedule} (default: @code{\"45 1 * * *\"})"
  45735. msgstr "@code{speed}(默认值:@code{1.0})"
  45736. #. type: table
  45737. #: guix-git/doc/guix.texi:30440
  45738. msgid "How often to run the master cleaning job. The default is once per day, at 01:45:00."
  45739. msgstr ""
  45740. #. type: item
  45741. #: guix-git/doc/guix.texi:30441
  45742. #, fuzzy, no-wrap
  45743. msgid "@code{node-schedule} (default: @code{\"45 2 * * *\"})"
  45744. msgstr "@code{display}(默认值:@code{\":0\"})"
  45745. #. type: table
  45746. #: guix-git/doc/guix.texi:30444
  45747. msgid "How often to run the node cleaning job. The default is once per day, at 02:45:00."
  45748. msgstr ""
  45749. #. type: Plain text
  45750. #: guix-git/doc/guix.texi:30458
  45751. 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}."
  45752. msgstr ""
  45753. #. type: deffn
  45754. #: guix-git/doc/guix.texi:30459
  45755. #, no-wrap
  45756. msgid "{Scheme Procedure} git-daemon-service [#:config (git-daemon-configuration)]"
  45757. msgstr ""
  45758. #. type: deffn
  45759. #: guix-git/doc/guix.texi:30463
  45760. msgid "Return a service that runs @command{git daemon}, a simple TCP server to expose repositories over the Git protocol for anonymous access."
  45761. msgstr ""
  45762. #. type: deffn
  45763. #: guix-git/doc/guix.texi:30469
  45764. 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}."
  45765. msgstr ""
  45766. #. type: deftp
  45767. #: guix-git/doc/guix.texi:30472
  45768. #, no-wrap
  45769. msgid "{Data Type} git-daemon-configuration"
  45770. msgstr ""
  45771. #. type: deftp
  45772. #: guix-git/doc/guix.texi:30474
  45773. msgid "Data type representing the configuration for @code{git-daemon-service}."
  45774. msgstr ""
  45775. #. type: item
  45776. #: guix-git/doc/guix.texi:30476
  45777. #, fuzzy, no-wrap
  45778. msgid "@code{package} (default: @code{git})"
  45779. msgstr "@code{mate}(默认值:@code{mate})"
  45780. #. type: table
  45781. #: guix-git/doc/guix.texi:30478 guix-git/doc/guix.texi:30538
  45782. msgid "Package object of the Git distributed version control system."
  45783. msgstr ""
  45784. #. type: item
  45785. #: guix-git/doc/guix.texi:30479 guix-git/doc/guix.texi:30542
  45786. #, fuzzy, no-wrap
  45787. msgid "@code{export-all?} (default: @code{#f})"
  45788. msgstr "@code{port}(默认值:@code{22})"
  45789. #. type: table
  45790. #: guix-git/doc/guix.texi:30482
  45791. msgid "Whether to allow access for all Git repositories, even if they do not have the @file{git-daemon-export-ok} file."
  45792. msgstr ""
  45793. #. type: item
  45794. #: guix-git/doc/guix.texi:30483
  45795. #, no-wrap
  45796. msgid "@code{base-path} (default: @file{/srv/git})"
  45797. msgstr ""
  45798. #. type: table
  45799. #: guix-git/doc/guix.texi:30489
  45800. 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}."
  45801. msgstr ""
  45802. #. type: item
  45803. #: guix-git/doc/guix.texi:30490
  45804. #, fuzzy, no-wrap
  45805. msgid "@code{user-path} (default: @code{#f})"
  45806. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  45807. #. type: table
  45808. #: guix-git/doc/guix.texi:30498
  45809. 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}."
  45810. msgstr ""
  45811. #. type: item
  45812. #: guix-git/doc/guix.texi:30499
  45813. #, fuzzy, no-wrap
  45814. msgid "@code{listen} (default: @code{'()})"
  45815. msgstr "@code{features} (@code{'()})"
  45816. #. type: table
  45817. #: guix-git/doc/guix.texi:30502
  45818. msgid "Whether to listen on specific IP addresses or hostnames, defaults to all."
  45819. msgstr ""
  45820. #. type: item
  45821. #: guix-git/doc/guix.texi:30503
  45822. #, fuzzy, no-wrap
  45823. msgid "@code{port} (default: @code{#f})"
  45824. msgstr "@code{port}(默认值:@code{22})"
  45825. #. type: table
  45826. #: guix-git/doc/guix.texi:30505
  45827. msgid "Whether to listen on an alternative port, which defaults to 9418."
  45828. msgstr ""
  45829. #. type: item
  45830. #: guix-git/doc/guix.texi:30506
  45831. #, fuzzy, no-wrap
  45832. msgid "@code{whitelist} (default: @code{'()})"
  45833. msgstr "@code{features} (@code{'()})"
  45834. #. type: table
  45835. #: guix-git/doc/guix.texi:30508
  45836. msgid "If not empty, only allow access to this list of directories."
  45837. msgstr ""
  45838. #. type: table
  45839. #: guix-git/doc/guix.texi:30512
  45840. msgid "Extra options will be passed to @command{git daemon}, please run @command{man git-daemon} for more information."
  45841. msgstr ""
  45842. #. type: Plain text
  45843. #: guix-git/doc/guix.texi:30526
  45844. 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."
  45845. msgstr ""
  45846. #. type: Plain text
  45847. #: guix-git/doc/guix.texi:30529
  45848. msgid "Guix has a separate configuration data type for serving Git repositories over HTTP."
  45849. msgstr ""
  45850. #. type: deftp
  45851. #: guix-git/doc/guix.texi:30530
  45852. #, no-wrap
  45853. msgid "{Data Type} git-http-configuration"
  45854. msgstr ""
  45855. #. type: deftp
  45856. #: guix-git/doc/guix.texi:30534
  45857. 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}."
  45858. msgstr ""
  45859. #. type: item
  45860. #: guix-git/doc/guix.texi:30536
  45861. #, no-wrap
  45862. msgid "@code{package} (default: @var{git})"
  45863. msgstr ""
  45864. #. type: item
  45865. #: guix-git/doc/guix.texi:30539
  45866. #, no-wrap
  45867. msgid "@code{git-root} (default: @file{/srv/git})"
  45868. msgstr ""
  45869. #. type: table
  45870. #: guix-git/doc/guix.texi:30541
  45871. msgid "Directory containing the Git repositories to expose to the world."
  45872. msgstr ""
  45873. #. type: table
  45874. #: guix-git/doc/guix.texi:30545
  45875. 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."
  45876. msgstr ""
  45877. #. type: item
  45878. #: guix-git/doc/guix.texi:30546
  45879. #, fuzzy, no-wrap
  45880. msgid "@code{uri-path} (default: @samp{/git/})"
  45881. msgstr "@code{mate}(默认值:@code{mate})"
  45882. #. type: table
  45883. #: guix-git/doc/guix.texi:30551
  45884. 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."
  45885. msgstr ""
  45886. #. type: item
  45887. #: guix-git/doc/guix.texi:30552
  45888. #, no-wrap
  45889. msgid "@code{fcgiwrap-socket} (default: @code{127.0.0.1:9000})"
  45890. msgstr ""
  45891. #. type: table
  45892. #: guix-git/doc/guix.texi:30555
  45893. msgid "The socket on which the @code{fcgiwrap} daemon is listening. @xref{Web Services}."
  45894. msgstr ""
  45895. #. type: Plain text
  45896. #: guix-git/doc/guix.texi:30562
  45897. 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."
  45898. msgstr ""
  45899. #. type: deffn
  45900. #: guix-git/doc/guix.texi:30563
  45901. #, no-wrap
  45902. msgid "{Scheme Procedure} git-http-nginx-location-configuration @"
  45903. msgstr ""
  45904. #. type: deffn
  45905. #: guix-git/doc/guix.texi:30568
  45906. 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:"
  45907. msgstr ""
  45908. #. type: lisp
  45909. #: guix-git/doc/guix.texi:30585
  45910. #, no-wrap
  45911. msgid ""
  45912. "(service nginx-service-type\n"
  45913. " (nginx-configuration\n"
  45914. " (server-blocks\n"
  45915. " (list\n"
  45916. " (nginx-server-configuration\n"
  45917. " (listen '(\"443 ssl\"))\n"
  45918. " (server-name \"git.my-host.org\")\n"
  45919. " (ssl-certificate\n"
  45920. " \"/etc/letsencrypt/live/git.my-host.org/fullchain.pem\")\n"
  45921. " (ssl-certificate-key\n"
  45922. " \"/etc/letsencrypt/live/git.my-host.org/privkey.pem\")\n"
  45923. " (locations\n"
  45924. " (list\n"
  45925. " (git-http-nginx-location-configuration\n"
  45926. " (git-http-configuration (uri-path \"/\"))))))))))\n"
  45927. msgstr ""
  45928. #. type: deffn
  45929. #: guix-git/doc/guix.texi:30592
  45930. 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}."
  45931. msgstr ""
  45932. #. type: subsubheading
  45933. #: guix-git/doc/guix.texi:30594
  45934. #, no-wrap
  45935. msgid "Cgit Service"
  45936. msgstr ""
  45937. #. type: cindex
  45938. #: guix-git/doc/guix.texi:30596
  45939. #, no-wrap
  45940. msgid "Cgit service"
  45941. msgstr ""
  45942. #. type: cindex
  45943. #: guix-git/doc/guix.texi:30597
  45944. #, no-wrap
  45945. msgid "Git, web interface"
  45946. msgstr ""
  45947. #. type: Plain text
  45948. #: guix-git/doc/guix.texi:30600
  45949. msgid "@uref{https://git.zx2c4.com/cgit/, Cgit} is a web frontend for Git repositories written in C."
  45950. msgstr ""
  45951. #. type: Plain text
  45952. #: guix-git/doc/guix.texi:30603
  45953. msgid "The following example will configure the service with default values. By default, Cgit can be accessed on port 80 (@code{http://localhost:80})."
  45954. msgstr ""
  45955. #. type: lisp
  45956. #: guix-git/doc/guix.texi:30606
  45957. #, no-wrap
  45958. msgid "(service cgit-service-type)\n"
  45959. msgstr ""
  45960. #. type: Plain text
  45961. #: guix-git/doc/guix.texi:30610
  45962. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a string."
  45963. msgstr ""
  45964. #. type: Plain text
  45965. #: guix-git/doc/guix.texi:30614
  45966. msgid "Available @code{cgit-configuration} fields are:"
  45967. msgstr ""
  45968. #. type: deftypevr
  45969. #: guix-git/doc/guix.texi:30615
  45970. #, no-wrap
  45971. msgid "{@code{cgit-configuration} parameter} package package"
  45972. msgstr ""
  45973. #. type: deftypevr
  45974. #: guix-git/doc/guix.texi:30617
  45975. msgid "The CGIT package."
  45976. msgstr ""
  45977. #. type: deftypevr
  45978. #: guix-git/doc/guix.texi:30620
  45979. #, no-wrap
  45980. msgid "{@code{cgit-configuration} parameter} nginx-server-configuration-list nginx"
  45981. msgstr ""
  45982. #. type: deftypevr
  45983. #: guix-git/doc/guix.texi:30625
  45984. #, no-wrap
  45985. msgid "{@code{cgit-configuration} parameter} file-object about-filter"
  45986. msgstr ""
  45987. #. type: deftypevr
  45988. #: guix-git/doc/guix.texi:30628
  45989. msgid "Specifies a command which will be invoked to format the content of about pages (both top-level and for each repository)."
  45990. msgstr ""
  45991. #. type: deftypevr
  45992. #: guix-git/doc/guix.texi:30633
  45993. #, no-wrap
  45994. msgid "{@code{cgit-configuration} parameter} string agefile"
  45995. msgstr ""
  45996. #. type: deftypevr
  45997. #: guix-git/doc/guix.texi:30636
  45998. 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."
  45999. msgstr ""
  46000. #. type: deftypevr
  46001. #: guix-git/doc/guix.texi:30641
  46002. #, no-wrap
  46003. msgid "{@code{cgit-configuration} parameter} file-object auth-filter"
  46004. msgstr ""
  46005. #. type: deftypevr
  46006. #: guix-git/doc/guix.texi:30644
  46007. msgid "Specifies a command that will be invoked for authenticating repository access."
  46008. msgstr ""
  46009. #. type: deftypevr
  46010. #: guix-git/doc/guix.texi:30649
  46011. #, no-wrap
  46012. msgid "{@code{cgit-configuration} parameter} string branch-sort"
  46013. msgstr ""
  46014. #. type: deftypevr
  46015. #: guix-git/doc/guix.texi:30652
  46016. 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."
  46017. msgstr ""
  46018. #. type: deftypevr
  46019. #: guix-git/doc/guix.texi:30654
  46020. msgid "Defaults to @samp{\"name\"}."
  46021. msgstr ""
  46022. #. type: deftypevr
  46023. #: guix-git/doc/guix.texi:30657
  46024. #, no-wrap
  46025. msgid "{@code{cgit-configuration} parameter} string cache-root"
  46026. msgstr ""
  46027. #. type: deftypevr
  46028. #: guix-git/doc/guix.texi:30659
  46029. msgid "Path used to store the cgit cache entries."
  46030. msgstr ""
  46031. #. type: deftypevr
  46032. #: guix-git/doc/guix.texi:30661
  46033. msgid "Defaults to @samp{\"/var/cache/cgit\"}."
  46034. msgstr ""
  46035. #. type: deftypevr
  46036. #: guix-git/doc/guix.texi:30664
  46037. #, no-wrap
  46038. msgid "{@code{cgit-configuration} parameter} integer cache-static-ttl"
  46039. msgstr ""
  46040. #. type: deftypevr
  46041. #: guix-git/doc/guix.texi:30667
  46042. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed with a fixed SHA1."
  46043. msgstr ""
  46044. #. type: deftypevr
  46045. #: guix-git/doc/guix.texi:30669 guix-git/doc/guix.texi:31112
  46046. msgid "Defaults to @samp{-1}."
  46047. msgstr ""
  46048. #. type: deftypevr
  46049. #: guix-git/doc/guix.texi:30672
  46050. #, no-wrap
  46051. msgid "{@code{cgit-configuration} parameter} integer cache-dynamic-ttl"
  46052. msgstr ""
  46053. #. type: deftypevr
  46054. #: guix-git/doc/guix.texi:30675
  46055. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed without a fixed SHA1."
  46056. msgstr ""
  46057. #. type: deftypevr
  46058. #: guix-git/doc/guix.texi:30680
  46059. #, no-wrap
  46060. msgid "{@code{cgit-configuration} parameter} integer cache-repo-ttl"
  46061. msgstr ""
  46062. #. type: deftypevr
  46063. #: guix-git/doc/guix.texi:30683
  46064. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository summary page."
  46065. msgstr ""
  46066. #. type: deftypevr
  46067. #: guix-git/doc/guix.texi:30688
  46068. #, no-wrap
  46069. msgid "{@code{cgit-configuration} parameter} integer cache-root-ttl"
  46070. msgstr ""
  46071. #. type: deftypevr
  46072. #: guix-git/doc/guix.texi:30691
  46073. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository index page."
  46074. msgstr ""
  46075. #. type: deftypevr
  46076. #: guix-git/doc/guix.texi:30696
  46077. #, no-wrap
  46078. msgid "{@code{cgit-configuration} parameter} integer cache-scanrc-ttl"
  46079. msgstr ""
  46080. #. type: deftypevr
  46081. #: guix-git/doc/guix.texi:30699
  46082. msgid "Number which specifies the time-to-live, in minutes, for the result of scanning a path for Git repositories."
  46083. msgstr ""
  46084. #. type: deftypevr
  46085. #: guix-git/doc/guix.texi:30704
  46086. #, no-wrap
  46087. msgid "{@code{cgit-configuration} parameter} integer cache-about-ttl"
  46088. msgstr ""
  46089. #. type: deftypevr
  46090. #: guix-git/doc/guix.texi:30707
  46091. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository about page."
  46092. msgstr ""
  46093. #. type: deftypevr
  46094. #: guix-git/doc/guix.texi:30712
  46095. #, no-wrap
  46096. msgid "{@code{cgit-configuration} parameter} integer cache-snapshot-ttl"
  46097. msgstr ""
  46098. #. type: deftypevr
  46099. #: guix-git/doc/guix.texi:30715
  46100. msgid "Number which specifies the time-to-live, in minutes, for the cached version of snapshots."
  46101. msgstr ""
  46102. #. type: deftypevr
  46103. #: guix-git/doc/guix.texi:30720
  46104. #, no-wrap
  46105. msgid "{@code{cgit-configuration} parameter} integer cache-size"
  46106. msgstr ""
  46107. #. type: deftypevr
  46108. #: guix-git/doc/guix.texi:30723
  46109. msgid "The maximum number of entries in the cgit cache. When set to @samp{0}, caching is disabled."
  46110. msgstr ""
  46111. #. type: deftypevr
  46112. #: guix-git/doc/guix.texi:30728
  46113. #, no-wrap
  46114. msgid "{@code{cgit-configuration} parameter} boolean case-sensitive-sort?"
  46115. msgstr ""
  46116. #. type: deftypevr
  46117. #: guix-git/doc/guix.texi:30730
  46118. msgid "Sort items in the repo list case sensitively."
  46119. msgstr ""
  46120. #. type: deftypevr
  46121. #: guix-git/doc/guix.texi:30735
  46122. #, no-wrap
  46123. msgid "{@code{cgit-configuration} parameter} list clone-prefix"
  46124. msgstr ""
  46125. #. type: deftypevr
  46126. #: guix-git/doc/guix.texi:30738
  46127. msgid "List of common prefixes which, when combined with a repository URL, generates valid clone URLs for the repository."
  46128. msgstr ""
  46129. #. type: deftypevr
  46130. #: guix-git/doc/guix.texi:30743
  46131. #, no-wrap
  46132. msgid "{@code{cgit-configuration} parameter} list clone-url"
  46133. msgstr ""
  46134. #. type: deftypevr
  46135. #: guix-git/doc/guix.texi:30745
  46136. msgid "List of @code{clone-url} templates."
  46137. msgstr ""
  46138. #. type: deftypevr
  46139. #: guix-git/doc/guix.texi:30750
  46140. #, no-wrap
  46141. msgid "{@code{cgit-configuration} parameter} file-object commit-filter"
  46142. msgstr ""
  46143. #. type: deftypevr
  46144. #: guix-git/doc/guix.texi:30752
  46145. msgid "Command which will be invoked to format commit messages."
  46146. msgstr ""
  46147. #. type: deftypevr
  46148. #: guix-git/doc/guix.texi:30757
  46149. #, no-wrap
  46150. msgid "{@code{cgit-configuration} parameter} string commit-sort"
  46151. msgstr ""
  46152. #. type: deftypevr
  46153. #: guix-git/doc/guix.texi:30761 guix-git/doc/guix.texi:31319
  46154. 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."
  46155. msgstr ""
  46156. #. type: deftypevr
  46157. #: guix-git/doc/guix.texi:30763
  46158. msgid "Defaults to @samp{\"git log\"}."
  46159. msgstr ""
  46160. #. type: deftypevr
  46161. #: guix-git/doc/guix.texi:30766
  46162. #, no-wrap
  46163. msgid "{@code{cgit-configuration} parameter} file-object css"
  46164. msgstr ""
  46165. #. type: deftypevr
  46166. #: guix-git/doc/guix.texi:30768
  46167. msgid "URL which specifies the css document to include in all cgit pages."
  46168. msgstr ""
  46169. #. type: deftypevr
  46170. #: guix-git/doc/guix.texi:30770
  46171. msgid "Defaults to @samp{\"/share/cgit/cgit.css\"}."
  46172. msgstr ""
  46173. #. type: deftypevr
  46174. #: guix-git/doc/guix.texi:30773
  46175. #, no-wrap
  46176. msgid "{@code{cgit-configuration} parameter} file-object email-filter"
  46177. msgstr ""
  46178. #. type: deftypevr
  46179. #: guix-git/doc/guix.texi:30777
  46180. 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."
  46181. msgstr ""
  46182. #. type: deftypevr
  46183. #: guix-git/doc/guix.texi:30782
  46184. #, no-wrap
  46185. msgid "{@code{cgit-configuration} parameter} boolean embedded?"
  46186. msgstr ""
  46187. #. type: deftypevr
  46188. #: guix-git/doc/guix.texi:30785
  46189. msgid "Flag which, when set to @samp{#t}, will make cgit generate a HTML fragment suitable for embedding in other HTML pages."
  46190. msgstr ""
  46191. #. type: deftypevr
  46192. #: guix-git/doc/guix.texi:30790
  46193. #, no-wrap
  46194. msgid "{@code{cgit-configuration} parameter} boolean enable-commit-graph?"
  46195. msgstr ""
  46196. #. type: deftypevr
  46197. #: guix-git/doc/guix.texi:30794
  46198. 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."
  46199. msgstr ""
  46200. #. type: deftypevr
  46201. #: guix-git/doc/guix.texi:30799
  46202. #, no-wrap
  46203. msgid "{@code{cgit-configuration} parameter} boolean enable-filter-overrides?"
  46204. msgstr ""
  46205. #. type: deftypevr
  46206. #: guix-git/doc/guix.texi:30802
  46207. msgid "Flag which, when set to @samp{#t}, allows all filter settings to be overridden in repository-specific cgitrc files."
  46208. msgstr ""
  46209. #. type: deftypevr
  46210. #: guix-git/doc/guix.texi:30807
  46211. #, no-wrap
  46212. msgid "{@code{cgit-configuration} parameter} boolean enable-follow-links?"
  46213. msgstr ""
  46214. #. type: deftypevr
  46215. #: guix-git/doc/guix.texi:30810
  46216. msgid "Flag which, when set to @samp{#t}, allows users to follow a file in the log view."
  46217. msgstr ""
  46218. #. type: deftypevr
  46219. #: guix-git/doc/guix.texi:30815
  46220. #, no-wrap
  46221. msgid "{@code{cgit-configuration} parameter} boolean enable-http-clone?"
  46222. msgstr ""
  46223. #. type: deftypevr
  46224. #: guix-git/doc/guix.texi:30818
  46225. msgid "If set to @samp{#t}, cgit will act as an dumb HTTP endpoint for Git clones."
  46226. msgstr ""
  46227. #. type: deftypevr
  46228. #: guix-git/doc/guix.texi:30823
  46229. #, no-wrap
  46230. msgid "{@code{cgit-configuration} parameter} boolean enable-index-links?"
  46231. msgstr ""
  46232. #. type: deftypevr
  46233. #: guix-git/doc/guix.texi:30826
  46234. msgid "Flag which, when set to @samp{#t}, will make cgit generate extra links \"summary\", \"commit\", \"tree\" for each repo in the repository index."
  46235. msgstr ""
  46236. #. type: deftypevr
  46237. #: guix-git/doc/guix.texi:30831
  46238. #, no-wrap
  46239. msgid "{@code{cgit-configuration} parameter} boolean enable-index-owner?"
  46240. msgstr ""
  46241. #. type: deftypevr
  46242. #: guix-git/doc/guix.texi:30834
  46243. msgid "Flag which, when set to @samp{#t}, will make cgit display the owner of each repo in the repository index."
  46244. msgstr ""
  46245. #. type: deftypevr
  46246. #: guix-git/doc/guix.texi:30839
  46247. #, no-wrap
  46248. msgid "{@code{cgit-configuration} parameter} boolean enable-log-filecount?"
  46249. msgstr ""
  46250. #. type: deftypevr
  46251. #: guix-git/doc/guix.texi:30842
  46252. 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."
  46253. msgstr ""
  46254. #. type: deftypevr
  46255. #: guix-git/doc/guix.texi:30847
  46256. #, no-wrap
  46257. msgid "{@code{cgit-configuration} parameter} boolean enable-log-linecount?"
  46258. msgstr ""
  46259. #. type: deftypevr
  46260. #: guix-git/doc/guix.texi:30850
  46261. 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."
  46262. msgstr ""
  46263. #. type: deftypevr
  46264. #: guix-git/doc/guix.texi:30855
  46265. #, no-wrap
  46266. msgid "{@code{cgit-configuration} parameter} boolean enable-remote-branches?"
  46267. msgstr ""
  46268. #. type: deftypevr
  46269. #: guix-git/doc/guix.texi:30858 guix-git/doc/guix.texi:31382
  46270. msgid "Flag which, when set to @code{#t}, will make cgit display remote branches in the summary and refs views."
  46271. msgstr ""
  46272. #. type: deftypevr
  46273. #: guix-git/doc/guix.texi:30863
  46274. #, no-wrap
  46275. msgid "{@code{cgit-configuration} parameter} boolean enable-subject-links?"
  46276. msgstr ""
  46277. #. type: deftypevr
  46278. #: guix-git/doc/guix.texi:30867
  46279. 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."
  46280. msgstr ""
  46281. #. type: deftypevr
  46282. #: guix-git/doc/guix.texi:30872
  46283. #, no-wrap
  46284. msgid "{@code{cgit-configuration} parameter} boolean enable-html-serving?"
  46285. msgstr ""
  46286. #. type: deftypevr
  46287. #: guix-git/doc/guix.texi:30876
  46288. 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."
  46289. msgstr ""
  46290. #. type: deftypevr
  46291. #: guix-git/doc/guix.texi:30881
  46292. #, no-wrap
  46293. msgid "{@code{cgit-configuration} parameter} boolean enable-tree-linenumbers?"
  46294. msgstr ""
  46295. #. type: deftypevr
  46296. #: guix-git/doc/guix.texi:30884
  46297. msgid "Flag which, when set to @samp{#t}, will make cgit generate linenumber links for plaintext blobs printed in the tree view."
  46298. msgstr ""
  46299. #. type: deftypevr
  46300. #: guix-git/doc/guix.texi:30889
  46301. #, no-wrap
  46302. msgid "{@code{cgit-configuration} parameter} boolean enable-git-config?"
  46303. msgstr ""
  46304. #. type: deftypevr
  46305. #: guix-git/doc/guix.texi:30892
  46306. msgid "Flag which, when set to @samp{#f}, will allow cgit to use Git config to set any repo specific settings."
  46307. msgstr ""
  46308. #. type: deftypevr
  46309. #: guix-git/doc/guix.texi:30897
  46310. #, no-wrap
  46311. msgid "{@code{cgit-configuration} parameter} file-object favicon"
  46312. msgstr ""
  46313. #. type: deftypevr
  46314. #: guix-git/doc/guix.texi:30899
  46315. msgid "URL used as link to a shortcut icon for cgit."
  46316. msgstr ""
  46317. #. type: deftypevr
  46318. #: guix-git/doc/guix.texi:30901
  46319. msgid "Defaults to @samp{\"/favicon.ico\"}."
  46320. msgstr ""
  46321. #. type: deftypevr
  46322. #: guix-git/doc/guix.texi:30904
  46323. #, no-wrap
  46324. msgid "{@code{cgit-configuration} parameter} string footer"
  46325. msgstr ""
  46326. #. type: deftypevr
  46327. #: guix-git/doc/guix.texi:30908
  46328. 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)."
  46329. msgstr ""
  46330. #. type: deftypevr
  46331. #: guix-git/doc/guix.texi:30913
  46332. #, no-wrap
  46333. msgid "{@code{cgit-configuration} parameter} string head-include"
  46334. msgstr ""
  46335. #. type: deftypevr
  46336. #: guix-git/doc/guix.texi:30916
  46337. msgid "The content of the file specified with this option will be included verbatim in the HTML HEAD section on all pages."
  46338. msgstr ""
  46339. #. type: deftypevr
  46340. #: guix-git/doc/guix.texi:30921
  46341. #, no-wrap
  46342. msgid "{@code{cgit-configuration} parameter} string header"
  46343. msgstr ""
  46344. #. type: deftypevr
  46345. #: guix-git/doc/guix.texi:30924
  46346. msgid "The content of the file specified with this option will be included verbatim at the top of all pages."
  46347. msgstr ""
  46348. #. type: deftypevr
  46349. #: guix-git/doc/guix.texi:30929
  46350. #, no-wrap
  46351. msgid "{@code{cgit-configuration} parameter} file-object include"
  46352. msgstr ""
  46353. #. type: deftypevr
  46354. #: guix-git/doc/guix.texi:30932
  46355. msgid "Name of a configfile to include before the rest of the current config- file is parsed."
  46356. msgstr ""
  46357. #. type: deftypevr
  46358. #: guix-git/doc/guix.texi:30937
  46359. #, no-wrap
  46360. msgid "{@code{cgit-configuration} parameter} string index-header"
  46361. msgstr ""
  46362. #. type: deftypevr
  46363. #: guix-git/doc/guix.texi:30940
  46364. msgid "The content of the file specified with this option will be included verbatim above the repository index."
  46365. msgstr ""
  46366. #. type: deftypevr
  46367. #: guix-git/doc/guix.texi:30945
  46368. #, no-wrap
  46369. msgid "{@code{cgit-configuration} parameter} string index-info"
  46370. msgstr ""
  46371. #. type: deftypevr
  46372. #: guix-git/doc/guix.texi:30948
  46373. msgid "The content of the file specified with this option will be included verbatim below the heading on the repository index page."
  46374. msgstr ""
  46375. #. type: deftypevr
  46376. #: guix-git/doc/guix.texi:30953
  46377. #, no-wrap
  46378. msgid "{@code{cgit-configuration} parameter} boolean local-time?"
  46379. msgstr ""
  46380. #. type: deftypevr
  46381. #: guix-git/doc/guix.texi:30956
  46382. msgid "Flag which, if set to @samp{#t}, makes cgit print commit and tag times in the servers timezone."
  46383. msgstr ""
  46384. #. type: deftypevr
  46385. #: guix-git/doc/guix.texi:30961
  46386. #, no-wrap
  46387. msgid "{@code{cgit-configuration} parameter} file-object logo"
  46388. msgstr ""
  46389. #. type: deftypevr
  46390. #: guix-git/doc/guix.texi:30964
  46391. msgid "URL which specifies the source of an image which will be used as a logo on all cgit pages."
  46392. msgstr ""
  46393. #. type: deftypevr
  46394. #: guix-git/doc/guix.texi:30966
  46395. msgid "Defaults to @samp{\"/share/cgit/cgit.png\"}."
  46396. msgstr ""
  46397. #. type: deftypevr
  46398. #: guix-git/doc/guix.texi:30969
  46399. #, no-wrap
  46400. msgid "{@code{cgit-configuration} parameter} string logo-link"
  46401. msgstr ""
  46402. #. type: deftypevr
  46403. #: guix-git/doc/guix.texi:30971 guix-git/doc/guix.texi:31428
  46404. msgid "URL loaded when clicking on the cgit logo image."
  46405. msgstr ""
  46406. #. type: deftypevr
  46407. #: guix-git/doc/guix.texi:30976
  46408. #, no-wrap
  46409. msgid "{@code{cgit-configuration} parameter} file-object owner-filter"
  46410. msgstr ""
  46411. #. type: deftypevr
  46412. #: guix-git/doc/guix.texi:30979
  46413. msgid "Command which will be invoked to format the Owner column of the main page."
  46414. msgstr ""
  46415. #. type: deftypevr
  46416. #: guix-git/doc/guix.texi:30984
  46417. #, no-wrap
  46418. msgid "{@code{cgit-configuration} parameter} integer max-atom-items"
  46419. msgstr ""
  46420. #. type: deftypevr
  46421. #: guix-git/doc/guix.texi:30986
  46422. msgid "Number of items to display in atom feeds view."
  46423. msgstr ""
  46424. #. type: deftypevr
  46425. #: guix-git/doc/guix.texi:30991
  46426. #, no-wrap
  46427. msgid "{@code{cgit-configuration} parameter} integer max-commit-count"
  46428. msgstr ""
  46429. #. type: deftypevr
  46430. #: guix-git/doc/guix.texi:30993
  46431. msgid "Number of entries to list per page in \"log\" view."
  46432. msgstr ""
  46433. #. type: deftypevr
  46434. #: guix-git/doc/guix.texi:30998
  46435. #, no-wrap
  46436. msgid "{@code{cgit-configuration} parameter} integer max-message-length"
  46437. msgstr ""
  46438. #. type: deftypevr
  46439. #: guix-git/doc/guix.texi:31000
  46440. msgid "Number of commit message characters to display in \"log\" view."
  46441. msgstr ""
  46442. #. type: deftypevr
  46443. #: guix-git/doc/guix.texi:31002 guix-git/doc/guix.texi:31018
  46444. msgid "Defaults to @samp{80}."
  46445. msgstr ""
  46446. #. type: deftypevr
  46447. #: guix-git/doc/guix.texi:31005
  46448. #, no-wrap
  46449. msgid "{@code{cgit-configuration} parameter} integer max-repo-count"
  46450. msgstr ""
  46451. #. type: deftypevr
  46452. #: guix-git/doc/guix.texi:31008
  46453. msgid "Specifies the number of entries to list per page on the repository index page."
  46454. msgstr ""
  46455. #. type: deftypevr
  46456. #: guix-git/doc/guix.texi:31013
  46457. #, no-wrap
  46458. msgid "{@code{cgit-configuration} parameter} integer max-repodesc-length"
  46459. msgstr ""
  46460. #. type: deftypevr
  46461. #: guix-git/doc/guix.texi:31016
  46462. msgid "Specifies the maximum number of repo description characters to display on the repository index page."
  46463. msgstr ""
  46464. #. type: deftypevr
  46465. #: guix-git/doc/guix.texi:31021
  46466. #, no-wrap
  46467. msgid "{@code{cgit-configuration} parameter} integer max-blob-size"
  46468. msgstr ""
  46469. #. type: deftypevr
  46470. #: guix-git/doc/guix.texi:31023
  46471. msgid "Specifies the maximum size of a blob to display HTML for in KBytes."
  46472. msgstr ""
  46473. #. type: deftypevr
  46474. #: guix-git/doc/guix.texi:31028
  46475. #, no-wrap
  46476. msgid "{@code{cgit-configuration} parameter} string max-stats"
  46477. msgstr ""
  46478. #. type: deftypevr
  46479. #: guix-git/doc/guix.texi:31031
  46480. msgid "Maximum statistics period. Valid values are @samp{week},@samp{month}, @samp{quarter} and @samp{year}."
  46481. msgstr ""
  46482. #. type: deftypevr
  46483. #: guix-git/doc/guix.texi:31036
  46484. #, no-wrap
  46485. msgid "{@code{cgit-configuration} parameter} mimetype-alist mimetype"
  46486. msgstr ""
  46487. #. type: deftypevr
  46488. #: guix-git/doc/guix.texi:31038
  46489. msgid "Mimetype for the specified filename extension."
  46490. msgstr ""
  46491. #. type: deftypevr
  46492. #: guix-git/doc/guix.texi:31042
  46493. 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\"))}."
  46494. msgstr ""
  46495. #. type: deftypevr
  46496. #: guix-git/doc/guix.texi:31045
  46497. #, no-wrap
  46498. msgid "{@code{cgit-configuration} parameter} file-object mimetype-file"
  46499. msgstr ""
  46500. #. type: deftypevr
  46501. #: guix-git/doc/guix.texi:31047
  46502. msgid "Specifies the file to use for automatic mimetype lookup."
  46503. msgstr ""
  46504. #. type: deftypevr
  46505. #: guix-git/doc/guix.texi:31052
  46506. #, no-wrap
  46507. msgid "{@code{cgit-configuration} parameter} string module-link"
  46508. msgstr ""
  46509. #. type: deftypevr
  46510. #: guix-git/doc/guix.texi:31055
  46511. msgid "Text which will be used as the formatstring for a hyperlink when a submodule is printed in a directory listing."
  46512. msgstr ""
  46513. #. type: deftypevr
  46514. #: guix-git/doc/guix.texi:31060
  46515. #, no-wrap
  46516. msgid "{@code{cgit-configuration} parameter} boolean nocache?"
  46517. msgstr ""
  46518. #. type: deftypevr
  46519. #: guix-git/doc/guix.texi:31062
  46520. msgid "If set to the value @samp{#t} caching will be disabled."
  46521. msgstr ""
  46522. #. type: deftypevr
  46523. #: guix-git/doc/guix.texi:31067
  46524. #, no-wrap
  46525. msgid "{@code{cgit-configuration} parameter} boolean noplainemail?"
  46526. msgstr ""
  46527. #. type: deftypevr
  46528. #: guix-git/doc/guix.texi:31070
  46529. msgid "If set to @samp{#t} showing full author email addresses will be disabled."
  46530. msgstr ""
  46531. #. type: deftypevr
  46532. #: guix-git/doc/guix.texi:31075
  46533. #, no-wrap
  46534. msgid "{@code{cgit-configuration} parameter} boolean noheader?"
  46535. msgstr ""
  46536. #. type: deftypevr
  46537. #: guix-git/doc/guix.texi:31078
  46538. msgid "Flag which, when set to @samp{#t}, will make cgit omit the standard header on all pages."
  46539. msgstr ""
  46540. #. type: deftypevr
  46541. #: guix-git/doc/guix.texi:31083
  46542. #, no-wrap
  46543. msgid "{@code{cgit-configuration} parameter} project-list project-list"
  46544. msgstr ""
  46545. #. type: deftypevr
  46546. #: guix-git/doc/guix.texi:31087
  46547. 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."
  46548. msgstr ""
  46549. #. type: deftypevr
  46550. #: guix-git/doc/guix.texi:31092
  46551. #, no-wrap
  46552. msgid "{@code{cgit-configuration} parameter} file-object readme"
  46553. msgstr ""
  46554. #. type: deftypevr
  46555. #: guix-git/doc/guix.texi:31094
  46556. msgid "Text which will be used as default value for @code{cgit-repo-readme}."
  46557. msgstr ""
  46558. #. type: deftypevr
  46559. #: guix-git/doc/guix.texi:31099
  46560. #, no-wrap
  46561. msgid "{@code{cgit-configuration} parameter} boolean remove-suffix?"
  46562. msgstr ""
  46563. #. type: deftypevr
  46564. #: guix-git/doc/guix.texi:31103
  46565. 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."
  46566. msgstr ""
  46567. #. type: deftypevr
  46568. #: guix-git/doc/guix.texi:31108
  46569. #, no-wrap
  46570. msgid "{@code{cgit-configuration} parameter} integer renamelimit"
  46571. msgstr ""
  46572. #. type: deftypevr
  46573. #: guix-git/doc/guix.texi:31110
  46574. msgid "Maximum number of files to consider when detecting renames."
  46575. msgstr ""
  46576. #. type: deftypevr
  46577. #: guix-git/doc/guix.texi:31115
  46578. #, no-wrap
  46579. msgid "{@code{cgit-configuration} parameter} string repository-sort"
  46580. msgstr ""
  46581. #. type: deftypevr
  46582. #: guix-git/doc/guix.texi:31117
  46583. msgid "The way in which repositories in each section are sorted."
  46584. msgstr ""
  46585. #. type: deftypevr
  46586. #: guix-git/doc/guix.texi:31122
  46587. #, no-wrap
  46588. msgid "{@code{cgit-configuration} parameter} robots-list robots"
  46589. msgstr ""
  46590. #. type: deftypevr
  46591. #: guix-git/doc/guix.texi:31124
  46592. msgid "Text used as content for the @code{robots} meta-tag."
  46593. msgstr ""
  46594. #. type: deftypevr
  46595. #: guix-git/doc/guix.texi:31126
  46596. msgid "Defaults to @samp{(\"noindex\" \"nofollow\")}."
  46597. msgstr ""
  46598. #. type: deftypevr
  46599. #: guix-git/doc/guix.texi:31129
  46600. #, no-wrap
  46601. msgid "{@code{cgit-configuration} parameter} string root-desc"
  46602. msgstr ""
  46603. #. type: deftypevr
  46604. #: guix-git/doc/guix.texi:31131
  46605. msgid "Text printed below the heading on the repository index page."
  46606. msgstr ""
  46607. #. type: deftypevr
  46608. #: guix-git/doc/guix.texi:31133
  46609. msgid "Defaults to @samp{\"a fast webinterface for the git dscm\"}."
  46610. msgstr ""
  46611. #. type: deftypevr
  46612. #: guix-git/doc/guix.texi:31136
  46613. #, no-wrap
  46614. msgid "{@code{cgit-configuration} parameter} string root-readme"
  46615. msgstr ""
  46616. #. type: deftypevr
  46617. #: guix-git/doc/guix.texi:31139
  46618. msgid "The content of the file specified with this option will be included verbatim below the ``about'' link on the repository index page."
  46619. msgstr ""
  46620. #. type: deftypevr
  46621. #: guix-git/doc/guix.texi:31144
  46622. #, no-wrap
  46623. msgid "{@code{cgit-configuration} parameter} string root-title"
  46624. msgstr ""
  46625. #. type: deftypevr
  46626. #: guix-git/doc/guix.texi:31146
  46627. msgid "Text printed as heading on the repository index page."
  46628. msgstr ""
  46629. #. type: deftypevr
  46630. #: guix-git/doc/guix.texi:31151
  46631. #, no-wrap
  46632. msgid "{@code{cgit-configuration} parameter} boolean scan-hidden-path"
  46633. msgstr ""
  46634. #. type: deftypevr
  46635. #: guix-git/doc/guix.texi:31157
  46636. 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."
  46637. msgstr ""
  46638. #. type: deftypevr
  46639. #: guix-git/doc/guix.texi:31162
  46640. #, no-wrap
  46641. msgid "{@code{cgit-configuration} parameter} list snapshots"
  46642. msgstr ""
  46643. #. type: deftypevr
  46644. #: guix-git/doc/guix.texi:31165
  46645. msgid "Text which specifies the default set of snapshot formats that cgit generates links for."
  46646. msgstr ""
  46647. #. type: deftypevr
  46648. #: guix-git/doc/guix.texi:31170
  46649. #, no-wrap
  46650. msgid "{@code{cgit-configuration} parameter} repository-directory repository-directory"
  46651. msgstr ""
  46652. #. type: deftypevr
  46653. #: guix-git/doc/guix.texi:31173
  46654. msgid "Name of the directory to scan for repositories (represents @code{scan-path})."
  46655. msgstr ""
  46656. #. type: deftypevr
  46657. #: guix-git/doc/guix.texi:31175
  46658. msgid "Defaults to @samp{\"/srv/git\"}."
  46659. msgstr ""
  46660. #. type: deftypevr
  46661. #: guix-git/doc/guix.texi:31178
  46662. #, no-wrap
  46663. msgid "{@code{cgit-configuration} parameter} string section"
  46664. msgstr ""
  46665. #. type: deftypevr
  46666. #: guix-git/doc/guix.texi:31181 guix-git/doc/guix.texi:31497
  46667. msgid "The name of the current repository section - all repositories defined after this option will inherit the current section name."
  46668. msgstr ""
  46669. #. type: deftypevr
  46670. #: guix-git/doc/guix.texi:31186
  46671. #, no-wrap
  46672. msgid "{@code{cgit-configuration} parameter} string section-sort"
  46673. msgstr ""
  46674. #. type: deftypevr
  46675. #: guix-git/doc/guix.texi:31189
  46676. msgid "Flag which, when set to @samp{1}, will sort the sections on the repository listing by name."
  46677. msgstr ""
  46678. #. type: deftypevr
  46679. #: guix-git/doc/guix.texi:31194
  46680. #, no-wrap
  46681. msgid "{@code{cgit-configuration} parameter} integer section-from-path"
  46682. msgstr ""
  46683. #. type: deftypevr
  46684. #: guix-git/doc/guix.texi:31197
  46685. 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."
  46686. msgstr ""
  46687. #. type: deftypevr
  46688. #: guix-git/doc/guix.texi:31202
  46689. #, no-wrap
  46690. msgid "{@code{cgit-configuration} parameter} boolean side-by-side-diffs?"
  46691. msgstr ""
  46692. #. type: deftypevr
  46693. #: guix-git/doc/guix.texi:31205
  46694. msgid "If set to @samp{#t} shows side-by-side diffs instead of unidiffs per default."
  46695. msgstr ""
  46696. #. type: deftypevr
  46697. #: guix-git/doc/guix.texi:31210
  46698. #, no-wrap
  46699. msgid "{@code{cgit-configuration} parameter} file-object source-filter"
  46700. msgstr ""
  46701. #. type: deftypevr
  46702. #: guix-git/doc/guix.texi:31213
  46703. msgid "Specifies a command which will be invoked to format plaintext blobs in the tree view."
  46704. msgstr ""
  46705. #. type: deftypevr
  46706. #: guix-git/doc/guix.texi:31218
  46707. #, no-wrap
  46708. msgid "{@code{cgit-configuration} parameter} integer summary-branches"
  46709. msgstr ""
  46710. #. type: deftypevr
  46711. #: guix-git/doc/guix.texi:31221
  46712. msgid "Specifies the number of branches to display in the repository ``summary'' view."
  46713. msgstr ""
  46714. #. type: deftypevr
  46715. #: guix-git/doc/guix.texi:31226
  46716. #, no-wrap
  46717. msgid "{@code{cgit-configuration} parameter} integer summary-log"
  46718. msgstr ""
  46719. #. type: deftypevr
  46720. #: guix-git/doc/guix.texi:31229
  46721. msgid "Specifies the number of log entries to display in the repository ``summary'' view."
  46722. msgstr ""
  46723. #. type: deftypevr
  46724. #: guix-git/doc/guix.texi:31234
  46725. #, no-wrap
  46726. msgid "{@code{cgit-configuration} parameter} integer summary-tags"
  46727. msgstr ""
  46728. #. type: deftypevr
  46729. #: guix-git/doc/guix.texi:31237
  46730. msgid "Specifies the number of tags to display in the repository ``summary'' view."
  46731. msgstr ""
  46732. #. type: deftypevr
  46733. #: guix-git/doc/guix.texi:31242
  46734. #, no-wrap
  46735. msgid "{@code{cgit-configuration} parameter} string strict-export"
  46736. msgstr ""
  46737. #. type: deftypevr
  46738. #: guix-git/doc/guix.texi:31245
  46739. msgid "Filename which, if specified, needs to be present within the repository for cgit to allow access to that repository."
  46740. msgstr ""
  46741. #. type: deftypevr
  46742. #: guix-git/doc/guix.texi:31250
  46743. #, no-wrap
  46744. msgid "{@code{cgit-configuration} parameter} string virtual-root"
  46745. msgstr ""
  46746. #. type: deftypevr
  46747. #: guix-git/doc/guix.texi:31252
  46748. msgid "URL which, if specified, will be used as root for all cgit links."
  46749. msgstr ""
  46750. #. type: deftypevr
  46751. #: guix-git/doc/guix.texi:31254
  46752. msgid "Defaults to @samp{\"/\"}."
  46753. msgstr ""
  46754. #. type: deftypevr
  46755. #: guix-git/doc/guix.texi:31257
  46756. #, no-wrap
  46757. msgid "{@code{cgit-configuration} parameter} repository-cgit-configuration-list repositories"
  46758. msgstr ""
  46759. #. type: deftypevr
  46760. #: guix-git/doc/guix.texi:31259
  46761. msgid "A list of @dfn{cgit-repo} records to use with config."
  46762. msgstr ""
  46763. #. type: deftypevr
  46764. #: guix-git/doc/guix.texi:31263
  46765. msgid "Available @code{repository-cgit-configuration} fields are:"
  46766. msgstr ""
  46767. #. type: deftypevr
  46768. #: guix-git/doc/guix.texi:31264
  46769. #, no-wrap
  46770. msgid "{@code{repository-cgit-configuration} parameter} repo-list snapshots"
  46771. msgstr ""
  46772. #. type: deftypevr
  46773. #: guix-git/doc/guix.texi:31267
  46774. msgid "A mask of snapshot formats for this repo that cgit generates links for, restricted by the global @code{snapshots} setting."
  46775. msgstr ""
  46776. #. type: deftypevr
  46777. #: guix-git/doc/guix.texi:31272
  46778. #, no-wrap
  46779. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object source-filter"
  46780. msgstr ""
  46781. #. type: deftypevr
  46782. #: guix-git/doc/guix.texi:31274
  46783. msgid "Override the default @code{source-filter}."
  46784. msgstr ""
  46785. #. type: deftypevr
  46786. #: guix-git/doc/guix.texi:31279
  46787. #, no-wrap
  46788. msgid "{@code{repository-cgit-configuration} parameter} repo-string url"
  46789. msgstr ""
  46790. #. type: deftypevr
  46791. #: guix-git/doc/guix.texi:31281
  46792. msgid "The relative URL used to access the repository."
  46793. msgstr ""
  46794. #. type: deftypevr
  46795. #: guix-git/doc/guix.texi:31286
  46796. #, no-wrap
  46797. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object about-filter"
  46798. msgstr ""
  46799. #. type: deftypevr
  46800. #: guix-git/doc/guix.texi:31288
  46801. msgid "Override the default @code{about-filter}."
  46802. msgstr ""
  46803. #. type: deftypevr
  46804. #: guix-git/doc/guix.texi:31293
  46805. #, no-wrap
  46806. msgid "{@code{repository-cgit-configuration} parameter} repo-string branch-sort"
  46807. msgstr ""
  46808. #. type: deftypevr
  46809. #: guix-git/doc/guix.texi:31296
  46810. 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."
  46811. msgstr ""
  46812. #. type: deftypevr
  46813. #: guix-git/doc/guix.texi:31301
  46814. #, no-wrap
  46815. msgid "{@code{repository-cgit-configuration} parameter} repo-list clone-url"
  46816. msgstr ""
  46817. #. type: deftypevr
  46818. #: guix-git/doc/guix.texi:31303
  46819. msgid "A list of URLs which can be used to clone repo."
  46820. msgstr ""
  46821. #. type: deftypevr
  46822. #: guix-git/doc/guix.texi:31308
  46823. #, no-wrap
  46824. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object commit-filter"
  46825. msgstr ""
  46826. #. type: deftypevr
  46827. #: guix-git/doc/guix.texi:31310
  46828. msgid "Override the default @code{commit-filter}."
  46829. msgstr ""
  46830. #. type: deftypevr
  46831. #: guix-git/doc/guix.texi:31315
  46832. #, no-wrap
  46833. msgid "{@code{repository-cgit-configuration} parameter} repo-string commit-sort"
  46834. msgstr ""
  46835. #. type: deftypevr
  46836. #: guix-git/doc/guix.texi:31324
  46837. #, no-wrap
  46838. msgid "{@code{repository-cgit-configuration} parameter} repo-string defbranch"
  46839. msgstr ""
  46840. #. type: deftypevr
  46841. #: guix-git/doc/guix.texi:31329
  46842. 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."
  46843. msgstr ""
  46844. #. type: deftypevr
  46845. #: guix-git/doc/guix.texi:31334
  46846. #, no-wrap
  46847. msgid "{@code{repository-cgit-configuration} parameter} repo-string desc"
  46848. msgstr ""
  46849. #. type: deftypevr
  46850. #: guix-git/doc/guix.texi:31336
  46851. msgid "The value to show as repository description."
  46852. msgstr ""
  46853. #. type: deftypevr
  46854. #: guix-git/doc/guix.texi:31341
  46855. #, no-wrap
  46856. msgid "{@code{repository-cgit-configuration} parameter} repo-string homepage"
  46857. msgstr ""
  46858. #. type: deftypevr
  46859. #: guix-git/doc/guix.texi:31343
  46860. msgid "The value to show as repository homepage."
  46861. msgstr ""
  46862. #. type: deftypevr
  46863. #: guix-git/doc/guix.texi:31348
  46864. #, no-wrap
  46865. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object email-filter"
  46866. msgstr ""
  46867. #. type: deftypevr
  46868. #: guix-git/doc/guix.texi:31350
  46869. msgid "Override the default @code{email-filter}."
  46870. msgstr ""
  46871. #. type: deftypevr
  46872. #: guix-git/doc/guix.texi:31355
  46873. #, no-wrap
  46874. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-commit-graph?"
  46875. msgstr ""
  46876. #. type: deftypevr
  46877. #: guix-git/doc/guix.texi:31358
  46878. msgid "A flag which can be used to disable the global setting @code{enable-commit-graph?}."
  46879. msgstr ""
  46880. #. type: deftypevr
  46881. #: guix-git/doc/guix.texi:31363
  46882. #, no-wrap
  46883. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-filecount?"
  46884. msgstr ""
  46885. #. type: deftypevr
  46886. #: guix-git/doc/guix.texi:31366
  46887. msgid "A flag which can be used to disable the global setting @code{enable-log-filecount?}."
  46888. msgstr ""
  46889. #. type: deftypevr
  46890. #: guix-git/doc/guix.texi:31371
  46891. #, no-wrap
  46892. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-linecount?"
  46893. msgstr ""
  46894. #. type: deftypevr
  46895. #: guix-git/doc/guix.texi:31374
  46896. msgid "A flag which can be used to disable the global setting @code{enable-log-linecount?}."
  46897. msgstr ""
  46898. #. type: deftypevr
  46899. #: guix-git/doc/guix.texi:31379
  46900. #, no-wrap
  46901. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-remote-branches?"
  46902. msgstr ""
  46903. #. type: deftypevr
  46904. #: guix-git/doc/guix.texi:31387
  46905. #, no-wrap
  46906. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-subject-links?"
  46907. msgstr ""
  46908. #. type: deftypevr
  46909. #: guix-git/doc/guix.texi:31390
  46910. msgid "A flag which can be used to override the global setting @code{enable-subject-links?}."
  46911. msgstr ""
  46912. #. type: deftypevr
  46913. #: guix-git/doc/guix.texi:31395
  46914. #, no-wrap
  46915. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-html-serving?"
  46916. msgstr ""
  46917. #. type: deftypevr
  46918. #: guix-git/doc/guix.texi:31398
  46919. msgid "A flag which can be used to override the global setting @code{enable-html-serving?}."
  46920. msgstr ""
  46921. #. type: deftypevr
  46922. #: guix-git/doc/guix.texi:31403
  46923. #, no-wrap
  46924. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean hide?"
  46925. msgstr ""
  46926. #. type: deftypevr
  46927. #: guix-git/doc/guix.texi:31406
  46928. msgid "Flag which, when set to @code{#t}, hides the repository from the repository index."
  46929. msgstr ""
  46930. #. type: deftypevr
  46931. #: guix-git/doc/guix.texi:31411
  46932. #, no-wrap
  46933. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean ignore?"
  46934. msgstr ""
  46935. #. type: deftypevr
  46936. #: guix-git/doc/guix.texi:31413
  46937. msgid "Flag which, when set to @samp{#t}, ignores the repository."
  46938. msgstr ""
  46939. #. type: deftypevr
  46940. #: guix-git/doc/guix.texi:31418
  46941. #, no-wrap
  46942. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object logo"
  46943. msgstr ""
  46944. #. type: deftypevr
  46945. #: guix-git/doc/guix.texi:31421
  46946. msgid "URL which specifies the source of an image which will be used as a logo on this repo’s pages."
  46947. msgstr ""
  46948. #. type: deftypevr
  46949. #: guix-git/doc/guix.texi:31426
  46950. #, no-wrap
  46951. msgid "{@code{repository-cgit-configuration} parameter} repo-string logo-link"
  46952. msgstr ""
  46953. #. type: deftypevr
  46954. #: guix-git/doc/guix.texi:31433
  46955. #, no-wrap
  46956. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object owner-filter"
  46957. msgstr ""
  46958. #. type: deftypevr
  46959. #: guix-git/doc/guix.texi:31435
  46960. msgid "Override the default @code{owner-filter}."
  46961. msgstr ""
  46962. #. type: deftypevr
  46963. #: guix-git/doc/guix.texi:31440
  46964. #, no-wrap
  46965. msgid "{@code{repository-cgit-configuration} parameter} repo-string module-link"
  46966. msgstr ""
  46967. #. type: deftypevr
  46968. #: guix-git/doc/guix.texi:31444
  46969. 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."
  46970. msgstr ""
  46971. #. type: deftypevr
  46972. #: guix-git/doc/guix.texi:31449
  46973. #, no-wrap
  46974. msgid "{@code{repository-cgit-configuration} parameter} module-link-path module-link-path"
  46975. msgstr ""
  46976. #. type: deftypevr
  46977. #: guix-git/doc/guix.texi:31453
  46978. 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."
  46979. msgstr ""
  46980. #. type: deftypevr
  46981. #: guix-git/doc/guix.texi:31458
  46982. #, no-wrap
  46983. msgid "{@code{repository-cgit-configuration} parameter} repo-string max-stats"
  46984. msgstr ""
  46985. #. type: deftypevr
  46986. #: guix-git/doc/guix.texi:31460
  46987. msgid "Override the default maximum statistics period."
  46988. msgstr ""
  46989. #. type: deftypevr
  46990. #: guix-git/doc/guix.texi:31465
  46991. #, no-wrap
  46992. msgid "{@code{repository-cgit-configuration} parameter} repo-string name"
  46993. msgstr ""
  46994. #. type: deftypevr
  46995. #: guix-git/doc/guix.texi:31467
  46996. msgid "The value to show as repository name."
  46997. msgstr ""
  46998. #. type: deftypevr
  46999. #: guix-git/doc/guix.texi:31472
  47000. #, no-wrap
  47001. msgid "{@code{repository-cgit-configuration} parameter} repo-string owner"
  47002. msgstr ""
  47003. #. type: deftypevr
  47004. #: guix-git/doc/guix.texi:31474
  47005. msgid "A value used to identify the owner of the repository."
  47006. msgstr ""
  47007. #. type: deftypevr
  47008. #: guix-git/doc/guix.texi:31479
  47009. #, no-wrap
  47010. msgid "{@code{repository-cgit-configuration} parameter} repo-string path"
  47011. msgstr ""
  47012. #. type: deftypevr
  47013. #: guix-git/doc/guix.texi:31481
  47014. msgid "An absolute path to the repository directory."
  47015. msgstr ""
  47016. #. type: deftypevr
  47017. #: guix-git/doc/guix.texi:31486
  47018. #, no-wrap
  47019. msgid "{@code{repository-cgit-configuration} parameter} repo-string readme"
  47020. msgstr ""
  47021. #. type: deftypevr
  47022. #: guix-git/doc/guix.texi:31489
  47023. msgid "A path (relative to repo) which specifies a file to include verbatim as the ``About'' page for this repo."
  47024. msgstr ""
  47025. #. type: deftypevr
  47026. #: guix-git/doc/guix.texi:31494
  47027. #, no-wrap
  47028. msgid "{@code{repository-cgit-configuration} parameter} repo-string section"
  47029. msgstr ""
  47030. #. type: deftypevr
  47031. #: guix-git/doc/guix.texi:31502
  47032. #, no-wrap
  47033. msgid "{@code{repository-cgit-configuration} parameter} repo-list extra-options"
  47034. msgstr ""
  47035. #. type: deftypevr
  47036. #: guix-git/doc/guix.texi:31504 guix-git/doc/guix.texi:31513
  47037. msgid "Extra options will be appended to cgitrc file."
  47038. msgstr ""
  47039. #. type: deftypevr
  47040. #: guix-git/doc/guix.texi:31511
  47041. #, no-wrap
  47042. msgid "{@code{cgit-configuration} parameter} list extra-options"
  47043. msgstr ""
  47044. #. type: Plain text
  47045. #: guix-git/doc/guix.texi:31525
  47046. 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."
  47047. msgstr ""
  47048. #. type: Plain text
  47049. #: guix-git/doc/guix.texi:31527
  47050. msgid "Available @code{opaque-cgit-configuration} fields are:"
  47051. msgstr ""
  47052. #. type: deftypevr
  47053. #: guix-git/doc/guix.texi:31528
  47054. #, no-wrap
  47055. msgid "{@code{opaque-cgit-configuration} parameter} package cgit"
  47056. msgstr ""
  47057. #. type: deftypevr
  47058. #: guix-git/doc/guix.texi:31530
  47059. msgid "The cgit package."
  47060. msgstr ""
  47061. #. type: deftypevr
  47062. #: guix-git/doc/guix.texi:31532
  47063. #, no-wrap
  47064. msgid "{@code{opaque-cgit-configuration} parameter} string string"
  47065. msgstr ""
  47066. #. type: deftypevr
  47067. #: guix-git/doc/guix.texi:31534
  47068. msgid "The contents of the @code{cgitrc}, as a string."
  47069. msgstr ""
  47070. #. type: Plain text
  47071. #: guix-git/doc/guix.texi:31538
  47072. msgid "For example, if your @code{cgitrc} is just the empty string, you could instantiate a cgit service like this:"
  47073. msgstr ""
  47074. #. type: lisp
  47075. #: guix-git/doc/guix.texi:31543
  47076. #, no-wrap
  47077. msgid ""
  47078. "(service cgit-service-type\n"
  47079. " (opaque-cgit-configuration\n"
  47080. " (cgitrc \"\")))\n"
  47081. msgstr ""
  47082. #. type: subsubheading
  47083. #: guix-git/doc/guix.texi:31545
  47084. #, no-wrap
  47085. msgid "Gitolite Service"
  47086. msgstr ""
  47087. #. type: cindex
  47088. #: guix-git/doc/guix.texi:31547
  47089. #, no-wrap
  47090. msgid "Gitolite service"
  47091. msgstr ""
  47092. #. type: cindex
  47093. #: guix-git/doc/guix.texi:31548
  47094. #, no-wrap
  47095. msgid "Git, hosting"
  47096. msgstr ""
  47097. #. type: Plain text
  47098. #: guix-git/doc/guix.texi:31551
  47099. msgid "@uref{https://gitolite.com/gitolite/, Gitolite} is a tool for hosting Git repositories on a central server."
  47100. msgstr ""
  47101. #. type: Plain text
  47102. #: guix-git/doc/guix.texi:31554
  47103. msgid "Gitolite can handle multiple repositories and users, and supports flexible configuration of the permissions for the users on the repositories."
  47104. msgstr ""
  47105. #. type: Plain text
  47106. #: guix-git/doc/guix.texi:31557
  47107. msgid "The following example will configure Gitolite using the default @code{git} user, and the provided SSH public key."
  47108. msgstr ""
  47109. #. type: lisp
  47110. #: guix-git/doc/guix.texi:31564
  47111. #, no-wrap
  47112. msgid ""
  47113. "(service gitolite-service-type\n"
  47114. " (gitolite-configuration\n"
  47115. " (admin-pubkey (plain-file\n"
  47116. " \"yourname.pub\"\n"
  47117. " \"ssh-rsa AAAA... guix@@example.com\"))))\n"
  47118. msgstr ""
  47119. #. type: Plain text
  47120. #: guix-git/doc/guix.texi:31569
  47121. 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."
  47122. msgstr ""
  47123. #. type: example
  47124. #: guix-git/doc/guix.texi:31572
  47125. #, no-wrap
  47126. msgid "git clone git@@example.com:gitolite-admin\n"
  47127. msgstr ""
  47128. #. type: Plain text
  47129. #: guix-git/doc/guix.texi:31578
  47130. 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''."
  47131. msgstr ""
  47132. #. type: deftp
  47133. #: guix-git/doc/guix.texi:31579
  47134. #, no-wrap
  47135. msgid "{Data Type} gitolite-configuration"
  47136. msgstr ""
  47137. #. type: deftp
  47138. #: guix-git/doc/guix.texi:31581
  47139. msgid "Data type representing the configuration for @code{gitolite-service-type}."
  47140. msgstr ""
  47141. #. type: item
  47142. #: guix-git/doc/guix.texi:31583
  47143. #, no-wrap
  47144. msgid "@code{package} (default: @var{gitolite})"
  47145. msgstr ""
  47146. #. type: table
  47147. #: guix-git/doc/guix.texi:31585
  47148. msgid "Gitolite package to use."
  47149. msgstr ""
  47150. #. type: item
  47151. #: guix-git/doc/guix.texi:31586
  47152. #, no-wrap
  47153. msgid "@code{user} (default: @var{git})"
  47154. msgstr ""
  47155. #. type: table
  47156. #: guix-git/doc/guix.texi:31589
  47157. msgid "User to use for Gitolite. This will be user that you use when accessing Gitolite over SSH."
  47158. msgstr ""
  47159. #. type: item
  47160. #: guix-git/doc/guix.texi:31590
  47161. #, no-wrap
  47162. msgid "@code{group} (default: @var{git})"
  47163. msgstr ""
  47164. #. type: table
  47165. #: guix-git/doc/guix.texi:31592
  47166. msgid "Group to use for Gitolite."
  47167. msgstr ""
  47168. #. type: item
  47169. #: guix-git/doc/guix.texi:31593
  47170. #, no-wrap
  47171. msgid "@code{home-directory} (default: @var{\"/var/lib/gitolite\"})"
  47172. msgstr ""
  47173. #. type: table
  47174. #: guix-git/doc/guix.texi:31595
  47175. msgid "Directory in which to store the Gitolite configuration and repositories."
  47176. msgstr ""
  47177. #. type: item
  47178. #: guix-git/doc/guix.texi:31596
  47179. #, no-wrap
  47180. msgid "@code{rc-file} (default: @var{(gitolite-rc-file)})"
  47181. msgstr ""
  47182. #. type: table
  47183. #: guix-git/doc/guix.texi:31599
  47184. msgid "A ``file-like'' object (@pxref{G-Expressions, file-like objects}), representing the configuration for Gitolite."
  47185. msgstr ""
  47186. #. type: item
  47187. #: guix-git/doc/guix.texi:31600
  47188. #, no-wrap
  47189. msgid "@code{admin-pubkey} (default: @var{#f})"
  47190. msgstr ""
  47191. #. type: table
  47192. #: guix-git/doc/guix.texi:31604
  47193. 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."
  47194. msgstr ""
  47195. #. type: table
  47196. #: guix-git/doc/guix.texi:31606
  47197. msgid "To specify the SSH key as a string, use the @code{plain-file} function."
  47198. msgstr ""
  47199. #. type: lisp
  47200. #: guix-git/doc/guix.texi:31609
  47201. #, no-wrap
  47202. msgid "(plain-file \"yourname.pub\" \"ssh-rsa AAAA... guix@@example.com\")\n"
  47203. msgstr ""
  47204. #. type: deftp
  47205. #: guix-git/doc/guix.texi:31614
  47206. #, no-wrap
  47207. msgid "{Data Type} gitolite-rc-file"
  47208. msgstr ""
  47209. #. type: deftp
  47210. #: guix-git/doc/guix.texi:31616
  47211. msgid "Data type representing the Gitolite RC file."
  47212. msgstr ""
  47213. #. type: item
  47214. #: guix-git/doc/guix.texi:31618
  47215. #, no-wrap
  47216. msgid "@code{umask} (default: @code{#o0077})"
  47217. msgstr ""
  47218. #. type: table
  47219. #: guix-git/doc/guix.texi:31621
  47220. msgid "This controls the permissions Gitolite sets on the repositories and their contents."
  47221. msgstr ""
  47222. #. type: table
  47223. #: guix-git/doc/guix.texi:31625
  47224. 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."
  47225. msgstr ""
  47226. #. type: item
  47227. #: guix-git/doc/guix.texi:31626
  47228. #, fuzzy, no-wrap
  47229. msgid "@code{unsafe-pattern} (default: @code{#f})"
  47230. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  47231. #. type: table
  47232. #: guix-git/doc/guix.texi:31631
  47233. 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."
  47234. msgstr ""
  47235. #. type: table
  47236. #: guix-git/doc/guix.texi:31638
  47237. 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."
  47238. msgstr ""
  47239. #. type: item
  47240. #: guix-git/doc/guix.texi:31639
  47241. #, no-wrap
  47242. msgid "@code{git-config-keys} (default: @code{\"\"})"
  47243. msgstr ""
  47244. #. type: table
  47245. #: guix-git/doc/guix.texi:31642
  47246. msgid "Gitolite allows you to set git config values using the @samp{config} keyword. This setting allows control over the config keys to accept."
  47247. msgstr ""
  47248. #. type: item
  47249. #: guix-git/doc/guix.texi:31643
  47250. #, no-wrap
  47251. msgid "@code{roles} (default: @code{'((\"READERS\" . 1) (\"WRITERS\" . ))})"
  47252. msgstr ""
  47253. #. type: table
  47254. #: guix-git/doc/guix.texi:31645
  47255. msgid "Set the role names allowed to be used by users running the perms command."
  47256. msgstr ""
  47257. #. type: item
  47258. #: guix-git/doc/guix.texi:31646
  47259. #, no-wrap
  47260. msgid "@code{enable} (default: @code{'(\"help\" \"desc\" \"info\" \"perms\" \"writable\" \"ssh-authkeys\" \"git-config\" \"daemon\" \"gitweb\")})"
  47261. msgstr ""
  47262. #. type: table
  47263. #: guix-git/doc/guix.texi:31648
  47264. msgid "This setting controls the commands and features to enable within Gitolite."
  47265. msgstr ""
  47266. #. type: subsubheading
  47267. #: guix-git/doc/guix.texi:31653
  47268. #, fuzzy, no-wrap
  47269. msgid "Gitile Service"
  47270. msgstr "邮件服务"
  47271. #. type: cindex
  47272. #: guix-git/doc/guix.texi:31655
  47273. #, fuzzy, no-wrap
  47274. msgid "Gitile service"
  47275. msgstr "邮件服务"
  47276. #. type: cindex
  47277. #: guix-git/doc/guix.texi:31656
  47278. #, no-wrap
  47279. msgid "Git, forge"
  47280. msgstr ""
  47281. #. type: Plain text
  47282. #: guix-git/doc/guix.texi:31659
  47283. msgid "@uref{https://git.lepiller.eu/gitile, Gitile} is a Git forge for viewing public git repository contents from a web browser."
  47284. msgstr ""
  47285. #. type: Plain text
  47286. #: guix-git/doc/guix.texi:31665
  47287. 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})."
  47288. msgstr ""
  47289. #. type: Plain text
  47290. #: guix-git/doc/guix.texi:31669
  47291. 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."
  47292. msgstr ""
  47293. #. type: lisp
  47294. #: guix-git/doc/guix.texi:31692
  47295. #, no-wrap
  47296. msgid ""
  47297. "(service gitile-service-type\n"
  47298. " (gitile-configuration\n"
  47299. " (repositories \"/srv/git\")\n"
  47300. " (base-git-url \"https://myweb.site/git\")\n"
  47301. " (index-title \"My git repositories\")\n"
  47302. " (intro '((p \"This is all my public work!\")))\n"
  47303. " (footer '((p \"This is the end\")))\n"
  47304. " (nginx-server-block\n"
  47305. " (nginx-server-configuration\n"
  47306. " (ssl-certificate\n"
  47307. " \"/etc/letsencrypt/live/myweb.site/fullchain.pem\")\n"
  47308. " (ssl-certificate-key\n"
  47309. " \"/etc/letsencrypt/live/myweb.site/privkey.pem\")\n"
  47310. " (listen '(\"443 ssl http2\" \"[::]:443 ssl http2\"))\n"
  47311. " (locations\n"
  47312. " (list\n"
  47313. " ;; Allow for https anonymous fetch on /git/ urls.\n"
  47314. " (git-http-nginx-location-configuration\n"
  47315. " (git-http-configuration\n"
  47316. " (uri-path \"/git/\")\n"
  47317. " (git-root \"/var/lib/gitolite/repositories\")))))))))\n"
  47318. msgstr ""
  47319. #. type: Plain text
  47320. #: guix-git/doc/guix.texi:31701
  47321. 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:"
  47322. msgstr ""
  47323. #. type: example
  47324. #: guix-git/doc/guix.texi:31705
  47325. #, no-wrap
  47326. msgid ""
  47327. "repo foo\n"
  47328. " R = daemon\n"
  47329. msgstr ""
  47330. #. type: Plain text
  47331. #: guix-git/doc/guix.texi:31711
  47332. 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}:"
  47333. msgstr ""
  47334. #. type: example
  47335. #: guix-git/doc/guix.texi:31718
  47336. #, no-wrap
  47337. msgid ""
  47338. "repo foo\n"
  47339. " R = daemon\n"
  47340. " desc = A long description, optionally with <i>HTML</i>, shown on the index page\n"
  47341. " config gitweb.name = The Foo Project\n"
  47342. " config gitweb.synopsis = A short description, shown on the main page of the project\n"
  47343. msgstr ""
  47344. #. type: Plain text
  47345. #: guix-git/doc/guix.texi:31724
  47346. 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:"
  47347. msgstr ""
  47348. #. type: lisp
  47349. #: guix-git/doc/guix.texi:31736
  47350. #, no-wrap
  47351. msgid ""
  47352. "(service gitolite-service-type\n"
  47353. " (gitolite-configuration\n"
  47354. " (admin-pubkey (local-file \"key.pub\"))\n"
  47355. " (rc-file\n"
  47356. " (gitolite-rc-file\n"
  47357. " (umask #o0027)\n"
  47358. " ;; Allow to set any configuration key\n"
  47359. " (git-config-keys \".*\")\n"
  47360. " ;; Allow any text as a valid configuration value\n"
  47361. " (unsafe-patt \"^$\")))))\n"
  47362. msgstr ""
  47363. #. type: deftp
  47364. #: guix-git/doc/guix.texi:31738
  47365. #, fuzzy, no-wrap
  47366. msgid "{Data Type} gitile-configuration"
  47367. msgstr "管理操作系统配置。"
  47368. #. type: deftp
  47369. #: guix-git/doc/guix.texi:31740
  47370. #, fuzzy
  47371. msgid "Data type representing the configuration for @code{gitile-service-type}."
  47372. msgstr "管理操作系统配置。"
  47373. #. type: item
  47374. #: guix-git/doc/guix.texi:31742
  47375. #, fuzzy, no-wrap
  47376. msgid "@code{package} (default: @var{gitile})"
  47377. msgstr "@code{mate}(默认值:@code{mate})"
  47378. #. type: table
  47379. #: guix-git/doc/guix.texi:31744
  47380. #, fuzzy
  47381. msgid "Gitile package to use."
  47382. msgstr "软件包数据类型。"
  47383. #. type: table
  47384. #: guix-git/doc/guix.texi:31747
  47385. msgid "The host on which gitile is listening."
  47386. msgstr ""
  47387. #. type: item
  47388. #: guix-git/doc/guix.texi:31748
  47389. #, fuzzy, no-wrap
  47390. msgid "@code{port} (default: @code{8080})"
  47391. msgstr "@code{port}(默认值:@code{22})"
  47392. #. type: table
  47393. #: guix-git/doc/guix.texi:31750
  47394. msgid "The port on which gitile is listening."
  47395. msgstr ""
  47396. #. type: item
  47397. #: guix-git/doc/guix.texi:31751
  47398. #, fuzzy, no-wrap
  47399. msgid "@code{database} (default: @code{\"/var/lib/gitile/gitile-db.sql\"})"
  47400. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  47401. #. type: table
  47402. #: guix-git/doc/guix.texi:31753
  47403. #, fuzzy
  47404. msgid "The location of the database."
  47405. msgstr "远程机器的主机名。"
  47406. #. type: item
  47407. #: guix-git/doc/guix.texi:31754
  47408. #, fuzzy, no-wrap
  47409. msgid "@code{repositories} (default: @code{\"/var/lib/gitolite/repositories\"})"
  47410. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  47411. #. type: table
  47412. #: guix-git/doc/guix.texi:31758
  47413. 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."
  47414. msgstr ""
  47415. #. type: code{#1}
  47416. #: guix-git/doc/guix.texi:31759
  47417. #, no-wrap
  47418. msgid "base-git-url"
  47419. msgstr ""
  47420. #. type: table
  47421. #: guix-git/doc/guix.texi:31761
  47422. msgid "The base git url that will be used to show clone commands."
  47423. msgstr ""
  47424. #. type: item
  47425. #: guix-git/doc/guix.texi:31762
  47426. #, fuzzy, no-wrap
  47427. msgid "@code{index-title} (default: @code{\"Index\"})"
  47428. msgstr "@code{mate}(默认值:@code{mate})"
  47429. #. type: table
  47430. #: guix-git/doc/guix.texi:31764
  47431. msgid "The page title for the index page that lists all the available repositories."
  47432. msgstr ""
  47433. #. type: item
  47434. #: guix-git/doc/guix.texi:31765
  47435. #, fuzzy, no-wrap
  47436. msgid "@code{intro} (default: @code{'()})"
  47437. msgstr "@code{features} (@code{'()})"
  47438. #. type: table
  47439. #: guix-git/doc/guix.texi:31768
  47440. msgid "The intro content, as a list of sxml expressions. This is shown above the list of repositories, on the index page."
  47441. msgstr ""
  47442. #. type: item
  47443. #: guix-git/doc/guix.texi:31769
  47444. #, fuzzy, no-wrap
  47445. msgid "@code{footer} (default: @code{'()})"
  47446. msgstr "@code{features} (@code{'()})"
  47447. #. type: table
  47448. #: guix-git/doc/guix.texi:31772
  47449. msgid "The footer content, as a list of sxml expressions. This is shown on every page served by Gitile."
  47450. msgstr ""
  47451. #. type: code{#1}
  47452. #: guix-git/doc/guix.texi:31773
  47453. #, no-wrap
  47454. msgid "nginx-server-block"
  47455. msgstr ""
  47456. #. type: table
  47457. #: guix-git/doc/guix.texi:31776
  47458. 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."
  47459. msgstr ""
  47460. #. type: table
  47461. #: guix-git/doc/guix.texi:31780
  47462. 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."
  47463. msgstr ""
  47464. #. type: subsubheading
  47465. #: guix-git/doc/guix.texi:31787
  47466. #, no-wrap
  47467. msgid "The Battle for Wesnoth Service"
  47468. msgstr ""
  47469. #. type: cindex
  47470. #: guix-git/doc/guix.texi:31788
  47471. #, no-wrap
  47472. msgid "wesnothd"
  47473. msgstr ""
  47474. #. type: Plain text
  47475. #: guix-git/doc/guix.texi:31792
  47476. 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)."
  47477. msgstr ""
  47478. #. type: defvar
  47479. #: guix-git/doc/guix.texi:31793
  47480. #, no-wrap
  47481. msgid "{Scheme Variable} wesnothd-service-type"
  47482. msgstr ""
  47483. #. type: defvar
  47484. #: guix-git/doc/guix.texi:31797
  47485. 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:"
  47486. msgstr ""
  47487. #. type: lisp
  47488. #: guix-git/doc/guix.texi:31800
  47489. #, no-wrap
  47490. msgid "(service wesnothd-service-type)\n"
  47491. msgstr ""
  47492. #. type: deftp
  47493. #: guix-git/doc/guix.texi:31803
  47494. #, no-wrap
  47495. msgid "{Data Type} wesnothd-configuration"
  47496. msgstr ""
  47497. #. type: deftp
  47498. #: guix-git/doc/guix.texi:31805
  47499. msgid "Data type representing the configuration of @command{wesnothd}."
  47500. msgstr ""
  47501. #. type: item
  47502. #: guix-git/doc/guix.texi:31807
  47503. #, no-wrap
  47504. msgid "@code{package} (default: @code{wesnoth-server})"
  47505. msgstr ""
  47506. #. type: table
  47507. #: guix-git/doc/guix.texi:31809
  47508. msgid "The wesnoth server package to use."
  47509. msgstr ""
  47510. #. type: item
  47511. #: guix-git/doc/guix.texi:31810
  47512. #, no-wrap
  47513. msgid "@code{port} (default: @code{15000})"
  47514. msgstr ""
  47515. #. type: table
  47516. #: guix-git/doc/guix.texi:31812
  47517. msgid "The port to bind the server to."
  47518. msgstr ""
  47519. #. type: cindex
  47520. #: guix-git/doc/guix.texi:31818
  47521. #, no-wrap
  47522. msgid "pam-mount"
  47523. msgstr ""
  47524. #. type: Plain text
  47525. #: guix-git/doc/guix.texi:31823
  47526. 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."
  47527. msgstr ""
  47528. #. type: defvar
  47529. #: guix-git/doc/guix.texi:31824
  47530. #, no-wrap
  47531. msgid "{Scheme Variable} pam-mount-service-type"
  47532. msgstr ""
  47533. #. type: defvar
  47534. #: guix-git/doc/guix.texi:31826
  47535. msgid "Service type for PAM Mount support."
  47536. msgstr ""
  47537. #. type: deftp
  47538. #: guix-git/doc/guix.texi:31828
  47539. #, no-wrap
  47540. msgid "{Data Type} pam-mount-configuration"
  47541. msgstr ""
  47542. #. type: deftp
  47543. #: guix-git/doc/guix.texi:31830
  47544. #, fuzzy
  47545. msgid "Data type representing the configuration of PAM Mount."
  47546. msgstr "管理操作系统配置。"
  47547. #. type: code{#1}
  47548. #: guix-git/doc/guix.texi:31834
  47549. #, fuzzy, no-wrap
  47550. msgid "rules"
  47551. msgstr "模块"
  47552. #. type: table
  47553. #: guix-git/doc/guix.texi:31837
  47554. msgid "The configuration rules that will be used to generate @file{/etc/security/pam_mount.conf.xml}."
  47555. msgstr ""
  47556. #. type: table
  47557. #: guix-git/doc/guix.texi:31841
  47558. 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:"
  47559. msgstr ""
  47560. #. type: lisp
  47561. #: guix-git/doc/guix.texi:31856
  47562. #, no-wrap
  47563. msgid ""
  47564. "`((debug (@@ (enable \"0\")))\n"
  47565. " (mntoptions (@@ (allow ,(string-join\n"
  47566. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  47567. " \"encryption\" \"fsck\" \"nonempty\"\n"
  47568. " \"allow_root\" \"allow_other\")\n"
  47569. " \",\"))))\n"
  47570. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  47571. " (logout (@@ (wait \"0\")\n"
  47572. " (hup \"0\")\n"
  47573. " (term \"no\")\n"
  47574. " (kill \"no\")))\n"
  47575. " (mkmountpoint (@@ (enable \"1\")\n"
  47576. " (remove \"true\"))))\n"
  47577. msgstr ""
  47578. #. type: table
  47579. #: guix-git/doc/guix.texi:31862
  47580. 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:"
  47581. msgstr ""
  47582. #. type: lisp
  47583. #: guix-git/doc/guix.texi:31887
  47584. #, no-wrap
  47585. msgid ""
  47586. "(define pam-mount-rules\n"
  47587. "`((debug (@@ (enable \"0\")))\n"
  47588. " (volume (@@ (user \"alice\")\n"
  47589. " (fstype \"crypt\")\n"
  47590. " (path \"/dev/sda2\")\n"
  47591. " (mountpoint \"/home/alice\")))\n"
  47592. " (volume (@@ (user \"bob\")\n"
  47593. " (fstype \"auto\")\n"
  47594. " (path \"/dev/sdb3\")\n"
  47595. " (mountpoint \"/home/bob/data\")\n"
  47596. " (options \"defaults,autodefrag,compress\")))\n"
  47597. " (mntoptions (@@ (allow ,(string-join\n"
  47598. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  47599. " \"encryption\" \"fsck\" \"nonempty\"\n"
  47600. " \"allow_root\" \"allow_other\")\n"
  47601. " \",\"))))\n"
  47602. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  47603. " (logout (@@ (wait \"0\")\n"
  47604. " (hup \"0\")\n"
  47605. " (term \"no\")\n"
  47606. " (kill \"no\")))\n"
  47607. " (mkmountpoint (@@ (enable \"1\")\n"
  47608. " (remove \"true\")))))\n"
  47609. "\n"
  47610. msgstr ""
  47611. #. type: lisp
  47612. #: guix-git/doc/guix.texi:31891
  47613. #, no-wrap
  47614. msgid ""
  47615. "(service pam-mount-service-type\n"
  47616. " (pam-mount-configuration\n"
  47617. " (rules pam-mount-rules)))\n"
  47618. msgstr ""
  47619. #. type: table
  47620. #: guix-git/doc/guix.texi:31895
  47621. 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}."
  47622. msgstr ""
  47623. #. type: subsubheading
  47624. #: guix-git/doc/guix.texi:31902
  47625. #, no-wrap
  47626. msgid "Guix Build Coordinator"
  47627. msgstr ""
  47628. #. type: Plain text
  47629. #: guix-git/doc/guix.texi:31908
  47630. 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."
  47631. msgstr ""
  47632. #. type: quotation
  47633. #: guix-git/doc/guix.texi:31913
  47634. msgid "This service is considered experimental. Configuration options may be changed in a backwards-incompatible manner, and not all features have been thorougly tested."
  47635. msgstr ""
  47636. #. type: Plain text
  47637. #: guix-git/doc/guix.texi:31920
  47638. 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."
  47639. msgstr ""
  47640. #. type: Plain text
  47641. #: guix-git/doc/guix.texi:31924
  47642. 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."
  47643. msgstr ""
  47644. #. type: defvar
  47645. #: guix-git/doc/guix.texi:31925
  47646. #, no-wrap
  47647. msgid "{Scheme Variable} guix-build-coordinator-service-type"
  47648. msgstr ""
  47649. #. type: defvar
  47650. #: guix-git/doc/guix.texi:31928
  47651. msgid "Service type for the Guix Build Coordinator. Its value must be a @code{guix-build-coordinator-configuration} object."
  47652. msgstr ""
  47653. #. type: deftp
  47654. #: guix-git/doc/guix.texi:31930
  47655. #, fuzzy, no-wrap
  47656. msgid "{Data Type} guix-build-coordinator-configuration"
  47657. msgstr "{数据类型} build-machine"
  47658. #. type: deftp
  47659. #: guix-git/doc/guix.texi:31932
  47660. msgid "Data type representing the configuration of the Guix Build Coordinator."
  47661. msgstr ""
  47662. #. type: item
  47663. #: guix-git/doc/guix.texi:31934 guix-git/doc/guix.texi:31978
  47664. #: guix-git/doc/guix.texi:32104
  47665. #, fuzzy, no-wrap
  47666. msgid "@code{package} (default: @code{guix-build-coordinator})"
  47667. msgstr "@code{gnome}(默认值:@code{gnome})"
  47668. #. type: table
  47669. #: guix-git/doc/guix.texi:31936 guix-git/doc/guix.texi:31980
  47670. #: guix-git/doc/guix.texi:32106
  47671. msgid "The Guix Build Coordinator package to use."
  47672. msgstr ""
  47673. #. type: item
  47674. #: guix-git/doc/guix.texi:31937
  47675. #, fuzzy, no-wrap
  47676. msgid "@code{user} (default: @code{\"guix-build-coordinator\"})"
  47677. msgstr "@code{gnome}(默认值:@code{gnome})"
  47678. #. type: table
  47679. #: guix-git/doc/guix.texi:31939 guix-git/doc/guix.texi:31983
  47680. #: guix-git/doc/guix.texi:32109 guix-git/doc/guix.texi:32155
  47681. #, fuzzy
  47682. msgid "The system user to run the service as."
  47683. msgstr "mcron服务。"
  47684. #. type: item
  47685. #: guix-git/doc/guix.texi:31940
  47686. #, fuzzy, no-wrap
  47687. msgid "@code{group} (default: @code{\"guix-build-coordinator\"})"
  47688. msgstr "@code{gnome}(默认值:@code{gnome})"
  47689. #. type: table
  47690. #: guix-git/doc/guix.texi:31942 guix-git/doc/guix.texi:32158
  47691. msgid "The system group to run the service as."
  47692. msgstr ""
  47693. #. type: item
  47694. #: guix-git/doc/guix.texi:31943
  47695. #, no-wrap
  47696. msgid "@code{database-uri-string} (default: @code{\"sqlite:///var/lib/guix-build-coordinator/guix_build_coordinator.db\"})"
  47697. msgstr ""
  47698. #. type: table
  47699. #: guix-git/doc/guix.texi:31945
  47700. msgid "The URI to use for the database."
  47701. msgstr ""
  47702. #. type: item
  47703. #: guix-git/doc/guix.texi:31946
  47704. #, fuzzy, no-wrap
  47705. msgid "@code{agent-communication-uri} (default: @code{\"http://0.0.0.0:8745\"})"
  47706. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  47707. #. type: table
  47708. #: guix-git/doc/guix.texi:31948
  47709. msgid "The URI describing how to listen to requests from agent processes."
  47710. msgstr ""
  47711. #. type: item
  47712. #: guix-git/doc/guix.texi:31949
  47713. #, fuzzy, no-wrap
  47714. msgid "@code{client-communication-uri} (default: @code{\"http://127.0.0.1:8746\"})"
  47715. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  47716. #. type: table
  47717. #: guix-git/doc/guix.texi:31953
  47718. 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."
  47719. msgstr ""
  47720. #. type: item
  47721. #: guix-git/doc/guix.texi:31954
  47722. #, no-wrap
  47723. msgid "@code{allocation-strategy} (default: @code{#~basic-build-allocation-strategy})"
  47724. msgstr ""
  47725. #. type: table
  47726. #: guix-git/doc/guix.texi:31958
  47727. 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."
  47728. msgstr ""
  47729. #. type: item
  47730. #: guix-git/doc/guix.texi:31959
  47731. #, fuzzy, no-wrap
  47732. msgid "@code{hooks} (default: @var{'()})"
  47733. msgstr "@code{features} (@code{'()})"
  47734. #. type: table
  47735. #: guix-git/doc/guix.texi:31962
  47736. msgid "An association list of hooks. These provide a way to execute arbitrary code upon certain events, like a build result being processed."
  47737. msgstr ""
  47738. #. type: item
  47739. #: guix-git/doc/guix.texi:31963
  47740. #, fuzzy, no-wrap
  47741. msgid "@code{guile} (default: @code{guile-3.0-latest})"
  47742. msgstr "@code{mate}(默认值:@code{mate})"
  47743. #. type: table
  47744. #: guix-git/doc/guix.texi:31965
  47745. msgid "The Guile package with which to run the Guix Build Coordinator."
  47746. msgstr ""
  47747. #. type: defvar
  47748. #: guix-git/doc/guix.texi:31969
  47749. #, no-wrap
  47750. msgid "{Scheme Variable} guix-build-coordinator-agent-service-type"
  47751. msgstr ""
  47752. #. type: defvar
  47753. #: guix-git/doc/guix.texi:31972
  47754. msgid "Service type for a Guix Build Coordinator agent. Its value must be a @code{guix-build-coordinator-agent-configuration} object."
  47755. msgstr ""
  47756. #. type: deftp
  47757. #: guix-git/doc/guix.texi:31974
  47758. #, no-wrap
  47759. msgid "{Data Type} guix-build-coordinator-agent-configuration"
  47760. msgstr ""
  47761. #. type: deftp
  47762. #: guix-git/doc/guix.texi:31976
  47763. msgid "Data type representing the configuration a Guix Build Coordinator agent."
  47764. msgstr ""
  47765. #. type: item
  47766. #: guix-git/doc/guix.texi:31981
  47767. #, fuzzy, no-wrap
  47768. msgid "@code{user} (default: @code{\"guix-build-coordinator-agent\"})"
  47769. msgstr "@code{gnome}(默认值:@code{gnome})"
  47770. #. type: item
  47771. #: guix-git/doc/guix.texi:31984
  47772. #, fuzzy, no-wrap
  47773. msgid "@code{coordinator} (default: @code{\"http://localhost:8745\"})"
  47774. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  47775. #. type: table
  47776. #: guix-git/doc/guix.texi:31986 guix-git/doc/guix.texi:32112
  47777. msgid "The URI to use when connecting to the coordinator."
  47778. msgstr ""
  47779. #. type: code{#1}
  47780. #: guix-git/doc/guix.texi:31987
  47781. #, fuzzy, no-wrap
  47782. msgid "authentication"
  47783. msgstr "验证substitute"
  47784. #. type: table
  47785. #: guix-git/doc/guix.texi:31990
  47786. msgid "Record describing how this agent should authenticate with the coordinator. Possible record types are described below."
  47787. msgstr ""
  47788. #. type: item
  47789. #: guix-git/doc/guix.texi:31991 guix-git/doc/guix.texi:32113
  47790. #, fuzzy, no-wrap
  47791. msgid "@code{systems} (default: @code{#f})"
  47792. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  47793. #. type: table
  47794. #: guix-git/doc/guix.texi:31994
  47795. 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."
  47796. msgstr ""
  47797. #. type: item
  47798. #: guix-git/doc/guix.texi:31995
  47799. #, fuzzy, no-wrap
  47800. msgid "@code{max-parallel-builds} (default: @code{1})"
  47801. msgstr "@code{parallel-builds}(默认值:@code{1})"
  47802. #. type: table
  47803. #: guix-git/doc/guix.texi:31997
  47804. #, fuzzy
  47805. msgid "The number of builds to perform in parallel."
  47806. msgstr "那台机器上可以并行运行的构建任务数量。"
  47807. #. type: item
  47808. #: guix-git/doc/guix.texi:31998
  47809. #, fuzzy, no-wrap
  47810. #| msgid "@code{max-journal-usage} (default: @code{#f})"
  47811. msgid "@code{max-1min-load-average} (default: @code{#f})"
  47812. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  47813. #. type: table
  47814. #: guix-git/doc/guix.texi:32002
  47815. 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."
  47816. msgstr ""
  47817. #. type: table
  47818. #: guix-git/doc/guix.texi:32006
  47819. 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."
  47820. msgstr ""
  47821. #. type: item
  47822. #: guix-git/doc/guix.texi:32007
  47823. #, fuzzy, no-wrap
  47824. msgid "@code{derivation-substitute-urls} (default: @code{#f})"
  47825. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  47826. #. type: table
  47827. #: guix-git/doc/guix.texi:32010
  47828. msgid "URLs from which to attempt to fetch substitutes for derivations, if the derivations aren't already available."
  47829. msgstr ""
  47830. #. type: item
  47831. #: guix-git/doc/guix.texi:32011
  47832. #, fuzzy, no-wrap
  47833. msgid "@code{non-derivation-substitute-urls} (default: @code{#f})"
  47834. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  47835. #. type: table
  47836. #: guix-git/doc/guix.texi:32014
  47837. msgid "URLs from which to attempt to fetch substitutes for build inputs, if the input store items aren't already available."
  47838. msgstr ""
  47839. #. type: deftp
  47840. #: guix-git/doc/guix.texi:32018
  47841. #, fuzzy, no-wrap
  47842. msgid "{Data Type} guix-build-coordinator-agent-password-auth"
  47843. msgstr "{数据类型} build-machine"
  47844. #. type: deftp
  47845. #: guix-git/doc/guix.texi:32021
  47846. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password."
  47847. msgstr ""
  47848. #. type: table
  47849. #: guix-git/doc/guix.texi:32027 guix-git/doc/guix.texi:32043
  47850. 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."
  47851. msgstr ""
  47852. #. type: table
  47853. #: guix-git/doc/guix.texi:32030
  47854. msgid "The password to use when connecting to the coordinator."
  47855. msgstr ""
  47856. #. type: deftp
  47857. #: guix-git/doc/guix.texi:32034
  47858. #, fuzzy, no-wrap
  47859. msgid "{Data Type} guix-build-coordinator-agent-password-file-auth"
  47860. msgstr "{数据类型} build-machine"
  47861. #. type: deftp
  47862. #: guix-git/doc/guix.texi:32037
  47863. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password read from a file."
  47864. msgstr ""
  47865. #. type: code{#1}
  47866. #: guix-git/doc/guix.texi:32044
  47867. #, no-wrap
  47868. msgid "password-file"
  47869. msgstr ""
  47870. #. type: table
  47871. #: guix-git/doc/guix.texi:32047
  47872. msgid "A file containing the password to use when connecting to the coordinator."
  47873. msgstr ""
  47874. #. type: deftp
  47875. #: guix-git/doc/guix.texi:32051
  47876. #, fuzzy, no-wrap
  47877. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth"
  47878. msgstr "{数据类型} build-machine"
  47879. #. type: deftp
  47880. #: guix-git/doc/guix.texi:32054
  47881. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token and agent name."
  47882. msgstr ""
  47883. #. type: code{#1}
  47884. #: guix-git/doc/guix.texi:32056 guix-git/doc/guix.texi:32073
  47885. #, fuzzy, no-wrap
  47886. msgid "agent-name"
  47887. msgstr "通道"
  47888. #. type: table
  47889. #: guix-git/doc/guix.texi:32060 guix-git/doc/guix.texi:32077
  47890. 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."
  47891. msgstr ""
  47892. #. type: code{#1}
  47893. #: guix-git/doc/guix.texi:32061
  47894. #, no-wrap
  47895. msgid "token"
  47896. msgstr ""
  47897. #. type: table
  47898. #: guix-git/doc/guix.texi:32064
  47899. msgid "Dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  47900. msgstr ""
  47901. #. type: deftp
  47902. #: guix-git/doc/guix.texi:32068
  47903. #, fuzzy, no-wrap
  47904. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth-with-file"
  47905. msgstr "{数据类型} build-machine"
  47906. #. type: deftp
  47907. #: guix-git/doc/guix.texi:32071
  47908. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token read from a file and agent name."
  47909. msgstr ""
  47910. #. type: code{#1}
  47911. #: guix-git/doc/guix.texi:32078
  47912. #, no-wrap
  47913. msgid "token-file"
  47914. msgstr ""
  47915. #. type: table
  47916. #: guix-git/doc/guix.texi:32081
  47917. msgid "File containing the dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  47918. msgstr ""
  47919. #. type: Plain text
  47920. #: guix-git/doc/guix.texi:32091
  47921. 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."
  47922. msgstr ""
  47923. #. type: defvar
  47924. #: guix-git/doc/guix.texi:32092
  47925. #, no-wrap
  47926. msgid "{Scheme Variable} guix-build-coordinator-queue-builds-service-type"
  47927. msgstr ""
  47928. #. type: defvar
  47929. #: guix-git/doc/guix.texi:32097
  47930. 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."
  47931. msgstr ""
  47932. #. type: deftp
  47933. #: guix-git/doc/guix.texi:32099
  47934. #, no-wrap
  47935. msgid "{Data Type} guix-build-coordinator-queue-builds-configuration"
  47936. msgstr ""
  47937. #. type: deftp
  47938. #: guix-git/doc/guix.texi:32102
  47939. msgid "Data type representing the options to the queue builds from guix data service script."
  47940. msgstr ""
  47941. #. type: item
  47942. #: guix-git/doc/guix.texi:32107
  47943. #, fuzzy, no-wrap
  47944. msgid "@code{user} (default: @code{\"guix-build-coordinator-queue-builds\"})"
  47945. msgstr "@code{gnome}(默认值:@code{gnome})"
  47946. #. type: item
  47947. #: guix-git/doc/guix.texi:32110
  47948. #, fuzzy, no-wrap
  47949. msgid "@code{coordinator} (default: @code{\"http://localhost:8746\"})"
  47950. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  47951. #. type: table
  47952. #: guix-git/doc/guix.texi:32115
  47953. msgid "The systems for which to fetch derivations to build."
  47954. msgstr ""
  47955. #. type: item
  47956. #: guix-git/doc/guix.texi:32116
  47957. #, fuzzy, no-wrap
  47958. msgid "@code{systems-and-targets} (default: @code{#f})"
  47959. msgstr "@code{challenge}(默认值:@code{#f})"
  47960. #. type: table
  47961. #: guix-git/doc/guix.texi:32119
  47962. msgid "An association list of system and target pairs for which to fetch derivations to build."
  47963. msgstr ""
  47964. #. type: item
  47965. #: guix-git/doc/guix.texi:32120
  47966. #, no-wrap
  47967. msgid "@code{guix-data-service} (default: @code{\"https://data.guix.gnu.org\"})"
  47968. msgstr ""
  47969. #. type: table
  47970. #: guix-git/doc/guix.texi:32123
  47971. msgid "The Guix Data Service instance from which to query to find out about derivations to build."
  47972. msgstr ""
  47973. #. type: item
  47974. #: guix-git/doc/guix.texi:32124
  47975. #, no-wrap
  47976. msgid "@code{processed-commits-file} (default: @code{\"/var/cache/guix-build-coordinator-queue-builds/processed-commits\"})"
  47977. msgstr ""
  47978. #. type: table
  47979. #: guix-git/doc/guix.texi:32127
  47980. msgid "A file to record which commits have been processed, to avoid needlessly processing them again if the service is restarted."
  47981. msgstr ""
  47982. #. type: subsubheading
  47983. #: guix-git/doc/guix.texi:32131
  47984. #, fuzzy, no-wrap
  47985. msgid "Guix Data Service"
  47986. msgstr "数据库服务"
  47987. #. type: Plain text
  47988. #: guix-git/doc/guix.texi:32135
  47989. 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."
  47990. msgstr ""
  47991. #. type: Plain text
  47992. #: guix-git/doc/guix.texi:32138
  47993. msgid "The data is stored in a PostgreSQL database, and available through a web interface."
  47994. msgstr ""
  47995. #. type: defvar
  47996. #: guix-git/doc/guix.texi:32139
  47997. #, no-wrap
  47998. msgid "{Scheme Variable} guix-data-service-type"
  47999. msgstr ""
  48000. #. type: defvar
  48001. #: guix-git/doc/guix.texi:32144
  48002. 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."
  48003. msgstr ""
  48004. #. type: deftp
  48005. #: guix-git/doc/guix.texi:32146
  48006. #, no-wrap
  48007. msgid "{Data Type} guix-data-service-configuration"
  48008. msgstr ""
  48009. #. type: deftp
  48010. #: guix-git/doc/guix.texi:32148
  48011. msgid "Data type representing the configuration of the Guix Data Service."
  48012. msgstr ""
  48013. #. type: item
  48014. #: guix-git/doc/guix.texi:32150
  48015. #, fuzzy, no-wrap
  48016. msgid "@code{package} (default: @code{guix-data-service})"
  48017. msgstr "@code{xfce}(默认值:@code{xfce})"
  48018. #. type: table
  48019. #: guix-git/doc/guix.texi:32152
  48020. msgid "The Guix Data Service package to use."
  48021. msgstr ""
  48022. #. type: item
  48023. #: guix-git/doc/guix.texi:32153
  48024. #, fuzzy, no-wrap
  48025. msgid "@code{user} (default: @code{\"guix-data-service\"})"
  48026. msgstr "@code{xfce}(默认值:@code{xfce})"
  48027. #. type: item
  48028. #: guix-git/doc/guix.texi:32156
  48029. #, fuzzy, no-wrap
  48030. msgid "@code{group} (default: @code{\"guix-data-service\"})"
  48031. msgstr "@code{gnome}(默认值:@code{gnome})"
  48032. #. type: item
  48033. #: guix-git/doc/guix.texi:32159
  48034. #, fuzzy, no-wrap
  48035. msgid "@code{port} (default: @code{8765})"
  48036. msgstr "@code{port}(默认值:@code{22})"
  48037. #. type: table
  48038. #: guix-git/doc/guix.texi:32161
  48039. #, fuzzy
  48040. msgid "The port to bind the web service to."
  48041. msgstr "rottlog服务。"
  48042. #. type: item
  48043. #: guix-git/doc/guix.texi:32162
  48044. #, fuzzy, no-wrap
  48045. msgid "@code{host} (default: @code{\"127.0.0.1\"})"
  48046. msgstr "@code{speed}(默认值:@code{1.0})"
  48047. #. type: table
  48048. #: guix-git/doc/guix.texi:32164
  48049. #, fuzzy
  48050. msgid "The host to bind the web service to."
  48051. msgstr "rottlog服务。"
  48052. #. type: item
  48053. #: guix-git/doc/guix.texi:32165
  48054. #, fuzzy, no-wrap
  48055. msgid "@code{getmail-idle-mailboxes} (default: @code{#f})"
  48056. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48057. #. type: table
  48058. #: guix-git/doc/guix.texi:32168
  48059. msgid "If set, this is the list of mailboxes that the getmail service will be configured to listen to."
  48060. msgstr ""
  48061. #. type: item
  48062. #: guix-git/doc/guix.texi:32169
  48063. #, fuzzy, no-wrap
  48064. msgid "@code{commits-getmail-retriever-configuration} (default: @code{#f})"
  48065. msgstr "@code{journal-content}(默认值:@code{#f})"
  48066. #. type: table
  48067. #: guix-git/doc/guix.texi:32173
  48068. 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."
  48069. msgstr ""
  48070. #. type: item
  48071. #: guix-git/doc/guix.texi:32174
  48072. #, no-wrap
  48073. msgid "@code{extra-options} (default: @var{'()})"
  48074. msgstr ""
  48075. #. type: table
  48076. #: guix-git/doc/guix.texi:32176
  48077. msgid "Extra command line options for @code{guix-data-service}."
  48078. msgstr ""
  48079. #. type: item
  48080. #: guix-git/doc/guix.texi:32177
  48081. #, fuzzy, no-wrap
  48082. msgid "@code{extra-process-jobs-options} (default: @var{'()})"
  48083. msgstr "@code{features} (@code{'()})"
  48084. #. type: table
  48085. #: guix-git/doc/guix.texi:32179
  48086. msgid "Extra command line options for @code{guix-data-service-process-jobs}."
  48087. msgstr ""
  48088. #. type: cindex
  48089. #: guix-git/doc/guix.texi:32186
  48090. #, no-wrap
  48091. msgid "oom"
  48092. msgstr ""
  48093. #. type: cindex
  48094. #: guix-git/doc/guix.texi:32187
  48095. #, no-wrap
  48096. msgid "out of memory killer"
  48097. msgstr ""
  48098. #. type: cindex
  48099. #: guix-git/doc/guix.texi:32188
  48100. #, no-wrap
  48101. msgid "earlyoom"
  48102. msgstr ""
  48103. #. type: cindex
  48104. #: guix-git/doc/guix.texi:32189
  48105. #, no-wrap
  48106. msgid "early out of memory daemon"
  48107. msgstr ""
  48108. #. type: subsubheading
  48109. #: guix-git/doc/guix.texi:32190
  48110. #, fuzzy, no-wrap
  48111. msgid "Early OOM Service"
  48112. msgstr "邮件服务"
  48113. #. type: Plain text
  48114. #: guix-git/doc/guix.texi:32197
  48115. 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."
  48116. msgstr ""
  48117. #. type: deffn
  48118. #: guix-git/doc/guix.texi:32198
  48119. #, no-wrap
  48120. msgid "{Scheme Variable} earlyoom-service-type"
  48121. msgstr ""
  48122. #. type: deffn
  48123. #: guix-git/doc/guix.texi:32203
  48124. 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:"
  48125. msgstr ""
  48126. #. type: lisp
  48127. #: guix-git/doc/guix.texi:32206
  48128. #, no-wrap
  48129. msgid "(service earlyoom-service-type)\n"
  48130. msgstr ""
  48131. #. type: deftp
  48132. #: guix-git/doc/guix.texi:32209
  48133. #, no-wrap
  48134. msgid "{Data Type} earlyoom-configuration"
  48135. msgstr ""
  48136. #. type: deftp
  48137. #: guix-git/doc/guix.texi:32211
  48138. msgid "This is the configuration record for the @code{earlyoom-service-type}."
  48139. msgstr ""
  48140. #. type: item
  48141. #: guix-git/doc/guix.texi:32213
  48142. #, fuzzy, no-wrap
  48143. msgid "@code{earlyoom} (default: @var{earlyoom})"
  48144. msgstr "@code{gnome}(默认值:@code{gnome})"
  48145. #. type: table
  48146. #: guix-git/doc/guix.texi:32215
  48147. #, fuzzy
  48148. msgid "The Earlyoom package to use."
  48149. msgstr "软件包数据类型。"
  48150. #. type: item
  48151. #: guix-git/doc/guix.texi:32216
  48152. #, fuzzy, no-wrap
  48153. msgid "@code{minimum-available-memory} (default: @code{10})"
  48154. msgstr "@code{parallel-builds}(默认值:@code{1})"
  48155. #. type: table
  48156. #: guix-git/doc/guix.texi:32218
  48157. msgid "The threshold for the minimum @emph{available} memory, in percentages."
  48158. msgstr ""
  48159. #. type: item
  48160. #: guix-git/doc/guix.texi:32219
  48161. #, fuzzy, no-wrap
  48162. msgid "@code{minimum-free-swap} (default: @code{10})"
  48163. msgstr "@code{speed}(默认值:@code{1.0})"
  48164. #. type: table
  48165. #: guix-git/doc/guix.texi:32221
  48166. msgid "The threshold for the minimum free swap memory, in percentages."
  48167. msgstr ""
  48168. #. type: item
  48169. #: guix-git/doc/guix.texi:32222
  48170. #, fuzzy, no-wrap
  48171. msgid "@code{prefer-regexp} (default: @code{#f})"
  48172. msgstr "@code{challenge}(默认值:@code{#f})"
  48173. #. type: table
  48174. #: guix-git/doc/guix.texi:32225
  48175. msgid "A regular expression (as a string) to match the names of the processes that should be preferably killed."
  48176. msgstr ""
  48177. #. type: item
  48178. #: guix-git/doc/guix.texi:32226
  48179. #, fuzzy, no-wrap
  48180. msgid "@code{avoid-regexp} (default: @code{#f})"
  48181. msgstr "@code{challenge}(默认值:@code{#f})"
  48182. #. type: table
  48183. #: guix-git/doc/guix.texi:32229
  48184. msgid "A regular expression (as a string) to match the names of the processes that should @emph{not} be killed."
  48185. msgstr ""
  48186. #. type: item
  48187. #: guix-git/doc/guix.texi:32230
  48188. #, fuzzy, no-wrap
  48189. msgid "@code{memory-report-interval} (default: @code{0})"
  48190. msgstr "@code{port}(默认值:@code{22})"
  48191. #. type: table
  48192. #: guix-git/doc/guix.texi:32233
  48193. msgid "The interval in seconds at which a memory report is printed. It is disabled by default."
  48194. msgstr ""
  48195. #. type: item
  48196. #: guix-git/doc/guix.texi:32234
  48197. #, fuzzy, no-wrap
  48198. msgid "@code{ignore-positive-oom-score-adj?} (default: @code{#f})"
  48199. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48200. #. type: table
  48201. #: guix-git/doc/guix.texi:32237
  48202. msgid "A boolean indicating whether the positive adjustments set in @file{/proc/*/oom_score_adj} should be ignored."
  48203. msgstr ""
  48204. #. type: item
  48205. #: guix-git/doc/guix.texi:32238
  48206. #, fuzzy, no-wrap
  48207. msgid "@code{show-debug-messages?} (default: @code{#f})"
  48208. msgstr "@code{challenge}(默认值:@code{#f})"
  48209. #. type: table
  48210. #: guix-git/doc/guix.texi:32241
  48211. msgid "A boolean indicating whether debug messages should be printed. The logs are saved at @file{/var/log/earlyoom.log}."
  48212. msgstr ""
  48213. #. type: item
  48214. #: guix-git/doc/guix.texi:32242
  48215. #, fuzzy, no-wrap
  48216. msgid "@code{send-notification-command} (default: @code{#f})"
  48217. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  48218. #. type: table
  48219. #: guix-git/doc/guix.texi:32245
  48220. msgid "This can be used to provide a custom command used for sending notifications."
  48221. msgstr ""
  48222. #. type: cindex
  48223. #: guix-git/doc/guix.texi:32248
  48224. #, no-wrap
  48225. msgid "modprobe"
  48226. msgstr ""
  48227. #. type: cindex
  48228. #: guix-git/doc/guix.texi:32249
  48229. #, no-wrap
  48230. msgid "kernel module loader"
  48231. msgstr ""
  48232. #. type: subsubheading
  48233. #: guix-git/doc/guix.texi:32250
  48234. #, no-wrap
  48235. msgid "Kernel Module Loader Service"
  48236. msgstr ""
  48237. #. type: Plain text
  48238. #: guix-git/doc/guix.texi:32256
  48239. 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}."
  48240. msgstr ""
  48241. #. type: deffn
  48242. #: guix-git/doc/guix.texi:32257
  48243. #, no-wrap
  48244. msgid "{Scheme Variable} kernel-module-loader-service-type"
  48245. msgstr ""
  48246. #. type: deffn
  48247. #: guix-git/doc/guix.texi:32263
  48248. 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:"
  48249. msgstr ""
  48250. #. type: lisp
  48251. #: guix-git/doc/guix.texi:32268
  48252. #, no-wrap
  48253. msgid ""
  48254. "(use-modules (gnu) (gnu services))\n"
  48255. "(use-package-modules linux)\n"
  48256. "(use-service-modules linux)\n"
  48257. "\n"
  48258. msgstr ""
  48259. #. type: lisp
  48260. #: guix-git/doc/guix.texi:32272
  48261. #, no-wrap
  48262. msgid ""
  48263. "(define ddcci-config\n"
  48264. " (plain-file \"ddcci.conf\"\n"
  48265. " \"options ddcci dyndbg delay=120\"))\n"
  48266. "\n"
  48267. msgstr ""
  48268. #. type: lisp
  48269. #: guix-git/doc/guix.texi:32282
  48270. #, no-wrap
  48271. msgid ""
  48272. "(operating-system\n"
  48273. " ...\n"
  48274. " (services (cons* (service kernel-module-loader-service-type\n"
  48275. " '(\"ddcci\" \"ddcci_backlight\"))\n"
  48276. " (simple-service 'ddcci-config etc-service-type\n"
  48277. " (list `(\"modprobe.d/ddcci.conf\"\n"
  48278. " ,ddcci-config)))\n"
  48279. " %base-services))\n"
  48280. " (kernel-loadable-modules (list ddcci-driver-linux)))\n"
  48281. msgstr ""
  48282. #. type: cindex
  48283. #: guix-git/doc/guix.texi:32285
  48284. #, fuzzy, no-wrap
  48285. #| msgid "daemon"
  48286. msgid "rasdaemon"
  48287. msgstr "后台进程"
  48288. #. type: cindex
  48289. #: guix-git/doc/guix.texi:32286
  48290. #, no-wrap
  48291. msgid "Platform Reliability, Availability and Serviceability daemon"
  48292. msgstr ""
  48293. #. type: subsubheading
  48294. #: guix-git/doc/guix.texi:32287
  48295. #, fuzzy, no-wrap
  48296. msgid "Rasdaemon Service"
  48297. msgstr "邮件服务"
  48298. #. type: Plain text
  48299. #: guix-git/doc/guix.texi:32292
  48300. 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."
  48301. msgstr ""
  48302. #. type: Plain text
  48303. #: guix-git/doc/guix.texi:32295
  48304. msgid "Reliability, Availability and Serviceability is a concept used on servers meant to measure their robustness."
  48305. msgstr ""
  48306. #. type: Plain text
  48307. #: guix-git/doc/guix.texi:32298
  48308. msgid "@strong{Relability} is the probability that a system will produce correct outputs:"
  48309. msgstr ""
  48310. #. type: item
  48311. #: guix-git/doc/guix.texi:32300
  48312. #, no-wrap
  48313. msgid "Generally measured as Mean Time Between Failures (MTBF), and"
  48314. msgstr ""
  48315. #. type: item
  48316. #: guix-git/doc/guix.texi:32301
  48317. #, no-wrap
  48318. msgid "Enhanced by features that help to avoid, detect and repair hardware"
  48319. msgstr ""
  48320. #. type: itemize
  48321. #: guix-git/doc/guix.texi:32303
  48322. msgid "faults"
  48323. msgstr ""
  48324. #. type: Plain text
  48325. #: guix-git/doc/guix.texi:32307
  48326. msgid "@strong{Availability} is the probability that a system is operational at a given time:"
  48327. msgstr ""
  48328. #. type: item
  48329. #: guix-git/doc/guix.texi:32309
  48330. #, no-wrap
  48331. msgid "Generally measured as a percentage of downtime per a period of time, and"
  48332. msgstr ""
  48333. #. type: item
  48334. #: guix-git/doc/guix.texi:32310
  48335. #, no-wrap
  48336. msgid "Often uses mechanisms to detect and correct hardware faults in runtime."
  48337. msgstr ""
  48338. #. type: Plain text
  48339. #: guix-git/doc/guix.texi:32315
  48340. msgid "@strong{Serviceability} is the simplicity and speed with which a system can be repaired or maintained:"
  48341. msgstr ""
  48342. #. type: item
  48343. #: guix-git/doc/guix.texi:32317
  48344. #, no-wrap
  48345. msgid "Generally measured on Mean Time Between Repair (MTBR)."
  48346. msgstr ""
  48347. #. type: Plain text
  48348. #: guix-git/doc/guix.texi:32322
  48349. msgid "Among the monitoring measures, the most usual ones include:"
  48350. msgstr ""
  48351. #. type: item
  48352. #: guix-git/doc/guix.texi:32324
  48353. #, no-wrap
  48354. msgid "CPU – detect errors at instruction execution and at L1/L2/L3 caches;"
  48355. msgstr ""
  48356. #. type: item
  48357. #: guix-git/doc/guix.texi:32325
  48358. #, no-wrap
  48359. msgid "Memory – add error correction logic (ECC) to detect and correct errors;"
  48360. msgstr ""
  48361. #. type: item
  48362. #: guix-git/doc/guix.texi:32326
  48363. #, no-wrap
  48364. msgid "I/O – add CRC checksums for transferred data;"
  48365. msgstr ""
  48366. #. type: item
  48367. #: guix-git/doc/guix.texi:32327
  48368. #, no-wrap
  48369. msgid "Storage – RAID, journal file systems, checksums, Self-Monitoring,"
  48370. msgstr ""
  48371. #. type: itemize
  48372. #: guix-git/doc/guix.texi:32329
  48373. msgid "Analysis and Reporting Technology (SMART)."
  48374. msgstr ""
  48375. #. type: Plain text
  48376. #: guix-git/doc/guix.texi:32335
  48377. 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."
  48378. msgstr ""
  48379. #. type: Plain text
  48380. #: guix-git/doc/guix.texi:32339
  48381. 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}."
  48382. msgstr ""
  48383. #. type: defvr
  48384. #: guix-git/doc/guix.texi:32340
  48385. #, no-wrap
  48386. msgid "{Scheme Variable} rasdaemon-service-type"
  48387. msgstr ""
  48388. #. type: defvr
  48389. #: guix-git/doc/guix.texi:32343
  48390. msgid "Service type for the @command{rasdaemon} service. It accepts a @code{rasdaemon-configuration} object. Instantiating like"
  48391. msgstr ""
  48392. #. type: lisp
  48393. #: guix-git/doc/guix.texi:32346
  48394. #, no-wrap
  48395. msgid "(service rasdaemon-service-type)\n"
  48396. msgstr ""
  48397. #. type: defvr
  48398. #: guix-git/doc/guix.texi:32350
  48399. msgid "will load with a default configuration, which monitors all events and logs to syslogd."
  48400. msgstr ""
  48401. #. type: deftp
  48402. #: guix-git/doc/guix.texi:32352
  48403. #, fuzzy, no-wrap
  48404. msgid "{Data Type} rasdaemon-configuration"
  48405. msgstr "{数据类型} build-machine"
  48406. #. type: deftp
  48407. #: guix-git/doc/guix.texi:32354
  48408. #, fuzzy
  48409. msgid "The data type representing the configuration of @command{rasdaemon}."
  48410. msgstr "管理操作系统配置。"
  48411. #. type: item
  48412. #: guix-git/doc/guix.texi:32356
  48413. #, fuzzy, no-wrap
  48414. msgid "@code{record?} (default: @code{#f})"
  48415. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  48416. #. type: table
  48417. #: guix-git/doc/guix.texi:32361
  48418. 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}."
  48419. msgstr ""
  48420. #. type: cindex
  48421. #: guix-git/doc/guix.texi:32365
  48422. #, no-wrap
  48423. msgid "zram"
  48424. msgstr ""
  48425. #. type: cindex
  48426. #: guix-git/doc/guix.texi:32366
  48427. #, no-wrap
  48428. msgid "compressed swap"
  48429. msgstr ""
  48430. #. type: cindex
  48431. #: guix-git/doc/guix.texi:32367
  48432. #, no-wrap
  48433. msgid "Compressed RAM-based block devices"
  48434. msgstr ""
  48435. #. type: subsubheading
  48436. #: guix-git/doc/guix.texi:32368
  48437. #, fuzzy, no-wrap
  48438. msgid "Zram Device Service"
  48439. msgstr "游戏服务"
  48440. #. type: Plain text
  48441. #: guix-git/doc/guix.texi:32374
  48442. 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."
  48443. msgstr ""
  48444. #. type: deffn
  48445. #: guix-git/doc/guix.texi:32375
  48446. #, no-wrap
  48447. msgid "{Scheme Variable} zram-device-service-type"
  48448. msgstr ""
  48449. #. type: deffn
  48450. #: guix-git/doc/guix.texi:32379
  48451. 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."
  48452. msgstr ""
  48453. #. type: deftp
  48454. #: guix-git/doc/guix.texi:32380
  48455. #, no-wrap
  48456. msgid "{Data Type} zram-device-configuration"
  48457. msgstr ""
  48458. #. type: deftp
  48459. #: guix-git/doc/guix.texi:32383
  48460. msgid "This is the data type representing the configuration for the zram-device service."
  48461. msgstr ""
  48462. #. type: item
  48463. #: guix-git/doc/guix.texi:32385
  48464. #, fuzzy, no-wrap
  48465. msgid "@code{size} (default @code{\"1G\"})"
  48466. msgstr "@code{speed}(默认值:@code{1.0})"
  48467. #. type: table
  48468. #: guix-git/doc/guix.texi:32389
  48469. 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}."
  48470. msgstr ""
  48471. #. type: item
  48472. #: guix-git/doc/guix.texi:32389
  48473. #, fuzzy, no-wrap
  48474. msgid "@code{compression-algorithm} (default @code{'lzo})"
  48475. msgstr "@code{compression-level}(默认值:@code{3})"
  48476. #. type: table
  48477. #: guix-git/doc/guix.texi:32393
  48478. 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}."
  48479. msgstr ""
  48480. #. type: item
  48481. #: guix-git/doc/guix.texi:32393
  48482. #, fuzzy, no-wrap
  48483. msgid "@code{memory-limit} (default @code{0})"
  48484. msgstr "@code{port}(默认值:@code{22})"
  48485. #. type: table
  48486. #: guix-git/doc/guix.texi:32400
  48487. 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\"}."
  48488. msgstr ""
  48489. #. type: item
  48490. #: guix-git/doc/guix.texi:32400
  48491. #, fuzzy, no-wrap
  48492. msgid "@code{priority} (default @code{-1})"
  48493. msgstr "@code{port}(默认值:@code{22})"
  48494. #. type: table
  48495. #: guix-git/doc/guix.texi:32405
  48496. 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."
  48497. msgstr ""
  48498. #. type: defvr
  48499. #: guix-git/doc/guix.texi:32413
  48500. #, no-wrap
  48501. msgid "{Scheme Variable} hurd-console-service-type"
  48502. msgstr ""
  48503. #. type: defvr
  48504. #: guix-git/doc/guix.texi:32415
  48505. msgid "This service starts the fancy @code{VGA} console client on the Hurd."
  48506. msgstr ""
  48507. #. type: defvr
  48508. #: guix-git/doc/guix.texi:32417
  48509. msgid "The service's value is a @code{hurd-console-configuration} record."
  48510. msgstr ""
  48511. #. type: deftp
  48512. #: guix-git/doc/guix.texi:32419
  48513. #, no-wrap
  48514. msgid "{Data Type} hurd-console-configuration"
  48515. msgstr ""
  48516. #. type: deftp
  48517. #: guix-git/doc/guix.texi:32422
  48518. msgid "This is the data type representing the configuration for the hurd-console-service."
  48519. msgstr ""
  48520. #. type: item
  48521. #: guix-git/doc/guix.texi:32424 guix-git/doc/guix.texi:32440
  48522. #, fuzzy, no-wrap
  48523. msgid "@code{hurd} (default: @var{hurd})"
  48524. msgstr "@code{port}(默认值:@code{22})"
  48525. #. type: table
  48526. #: guix-git/doc/guix.texi:32426 guix-git/doc/guix.texi:32442
  48527. #, fuzzy
  48528. msgid "The Hurd package to use."
  48529. msgstr "软件包数据类型。"
  48530. #. type: defvr
  48531. #: guix-git/doc/guix.texi:32429
  48532. #, no-wrap
  48533. msgid "{Scheme Variable} hurd-getty-service-type"
  48534. msgstr ""
  48535. #. type: defvr
  48536. #: guix-git/doc/guix.texi:32431
  48537. msgid "This service starts a tty using the Hurd @code{getty} program."
  48538. msgstr ""
  48539. #. type: defvr
  48540. #: guix-git/doc/guix.texi:32433
  48541. msgid "The service's value is a @code{hurd-getty-configuration} record."
  48542. msgstr ""
  48543. #. type: deftp
  48544. #: guix-git/doc/guix.texi:32435
  48545. #, no-wrap
  48546. msgid "{Data Type} hurd-getty-configuration"
  48547. msgstr ""
  48548. #. type: deftp
  48549. #: guix-git/doc/guix.texi:32438
  48550. msgid "This is the data type representing the configuration for the hurd-getty-service."
  48551. msgstr ""
  48552. #. type: table
  48553. #: guix-git/doc/guix.texi:32445
  48554. msgid "The name of the console this Getty runs on---e.g., @code{\"tty1\"}."
  48555. msgstr ""
  48556. #. type: item
  48557. #: guix-git/doc/guix.texi:32446
  48558. #, fuzzy, no-wrap
  48559. msgid "@code{baud-rate} (default: @code{38400})"
  48560. msgstr "@code{mate}(默认值:@code{mate})"
  48561. #. type: table
  48562. #: guix-git/doc/guix.texi:32448
  48563. msgid "An integer specifying the baud rate of the tty."
  48564. msgstr ""
  48565. #. type: cindex
  48566. #: guix-git/doc/guix.texi:32455
  48567. #, no-wrap
  48568. msgid "fingerprint"
  48569. msgstr ""
  48570. #. type: subsubheading
  48571. #: guix-git/doc/guix.texi:32456
  48572. #, no-wrap
  48573. msgid "Fingerprint Service"
  48574. msgstr ""
  48575. #. type: Plain text
  48576. #: guix-git/doc/guix.texi:32460
  48577. msgid "The @code{(gnu services authentication)} module provides a DBus service to read and identify fingerprints via a fingerprint sensor."
  48578. msgstr ""
  48579. #. type: defvr
  48580. #: guix-git/doc/guix.texi:32461
  48581. #, no-wrap
  48582. msgid "{Scheme Variable} fprintd-service-type"
  48583. msgstr ""
  48584. #. type: defvr
  48585. #: guix-git/doc/guix.texi:32464
  48586. msgid "The service type for @command{fprintd}, which provides the fingerprint reading capability."
  48587. msgstr ""
  48588. #. type: lisp
  48589. #: guix-git/doc/guix.texi:32467
  48590. #, no-wrap
  48591. msgid "(service fprintd-service-type)\n"
  48592. msgstr ""
  48593. #. type: cindex
  48594. #: guix-git/doc/guix.texi:32470
  48595. #, no-wrap
  48596. msgid "sysctl"
  48597. msgstr ""
  48598. #. type: subsubheading
  48599. #: guix-git/doc/guix.texi:32471
  48600. #, no-wrap
  48601. msgid "System Control Service"
  48602. msgstr ""
  48603. #. type: Plain text
  48604. #: guix-git/doc/guix.texi:32475
  48605. msgid "The @code{(gnu services sysctl)} provides a service to configure kernel parameters at boot."
  48606. msgstr ""
  48607. #. type: defvr
  48608. #: guix-git/doc/guix.texi:32476
  48609. #, no-wrap
  48610. msgid "{Scheme Variable} sysctl-service-type"
  48611. msgstr ""
  48612. #. type: defvr
  48613. #: guix-git/doc/guix.texi:32480
  48614. msgid "The service type for @command{sysctl}, which modifies kernel parameters under @file{/proc/sys/}. To enable IPv4 forwarding, it can be instantiated as:"
  48615. msgstr ""
  48616. #. type: lisp
  48617. #: guix-git/doc/guix.texi:32485
  48618. #, no-wrap
  48619. msgid ""
  48620. "(service sysctl-service-type\n"
  48621. " (sysctl-configuration\n"
  48622. " (settings '((\"net.ipv4.ip_forward\" . \"1\")))))\n"
  48623. msgstr ""
  48624. #. type: defvr
  48625. #: guix-git/doc/guix.texi:32492
  48626. 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}})."
  48627. msgstr ""
  48628. #. type: lisp
  48629. #: guix-git/doc/guix.texi:32499
  48630. #, no-wrap
  48631. msgid ""
  48632. "(modify-services %base-services\n"
  48633. " (sysctl-service-type config =>\n"
  48634. " (sysctl-configuration\n"
  48635. " (settings (append '((\"net.ipv4.ip_forward\" . \"1\"))\n"
  48636. " %default-sysctl-settings)))))\n"
  48637. msgstr ""
  48638. #. type: deftp
  48639. #: guix-git/doc/guix.texi:32503
  48640. #, no-wrap
  48641. msgid "{Data Type} sysctl-configuration"
  48642. msgstr ""
  48643. #. type: deftp
  48644. #: guix-git/doc/guix.texi:32505
  48645. msgid "The data type representing the configuration of @command{sysctl}."
  48646. msgstr ""
  48647. #. type: item
  48648. #: guix-git/doc/guix.texi:32507
  48649. #, no-wrap
  48650. msgid "@code{sysctl} (default: @code{(file-append procps \"/sbin/sysctl\"})"
  48651. msgstr ""
  48652. #. type: table
  48653. #: guix-git/doc/guix.texi:32509
  48654. msgid "The @command{sysctl} executable to use."
  48655. msgstr ""
  48656. #. type: item
  48657. #: guix-git/doc/guix.texi:32510
  48658. #, fuzzy, no-wrap
  48659. msgid "@code{settings} (default: @code{%default-sysctl-settings})"
  48660. msgstr "@code{mate}(默认值:@code{mate})"
  48661. #. type: table
  48662. #: guix-git/doc/guix.texi:32512
  48663. msgid "An association list specifies kernel parameters and their values."
  48664. msgstr ""
  48665. #. type: defvr
  48666. #: guix-git/doc/guix.texi:32515
  48667. #, no-wrap
  48668. msgid "{Scheme Variable} %default-sysctl-settings"
  48669. msgstr ""
  48670. #. type: defvr
  48671. #: guix-git/doc/guix.texi:32518
  48672. msgid "An association list specifying the default @command{sysctl} parameters on Guix System."
  48673. msgstr ""
  48674. #. type: cindex
  48675. #: guix-git/doc/guix.texi:32520
  48676. #, no-wrap
  48677. msgid "pcscd"
  48678. msgstr ""
  48679. #. type: subsubheading
  48680. #: guix-git/doc/guix.texi:32521
  48681. #, no-wrap
  48682. msgid "PC/SC Smart Card Daemon Service"
  48683. msgstr ""
  48684. #. type: Plain text
  48685. #: guix-git/doc/guix.texi:32528
  48686. 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."
  48687. msgstr ""
  48688. #. type: defvr
  48689. #: guix-git/doc/guix.texi:32529
  48690. #, no-wrap
  48691. msgid "{Scheme Variable} pcscd-service-type"
  48692. msgstr ""
  48693. #. type: defvr
  48694. #: guix-git/doc/guix.texi:32533
  48695. 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:"
  48696. msgstr ""
  48697. #. type: lisp
  48698. #: guix-git/doc/guix.texi:32536
  48699. #, no-wrap
  48700. msgid "(service pcscd-service-type)\n"
  48701. msgstr ""
  48702. #. type: deftp
  48703. #: guix-git/doc/guix.texi:32539
  48704. #, no-wrap
  48705. msgid "{Data Type} pcscd-configuration"
  48706. msgstr ""
  48707. #. type: deftp
  48708. #: guix-git/doc/guix.texi:32541
  48709. msgid "The data type representing the configuration of @command{pcscd}."
  48710. msgstr ""
  48711. #. type: item
  48712. #: guix-git/doc/guix.texi:32543
  48713. #, no-wrap
  48714. msgid "@code{pcsc-lite} (default: @code{pcsc-lite})"
  48715. msgstr ""
  48716. #. type: table
  48717. #: guix-git/doc/guix.texi:32545
  48718. msgid "The pcsc-lite package that provides pcscd."
  48719. msgstr ""
  48720. #. type: item
  48721. #: guix-git/doc/guix.texi:32545
  48722. #, no-wrap
  48723. msgid "@code{usb-drivers} (default: @code{(list ccid)})"
  48724. msgstr ""
  48725. #. type: table
  48726. #: guix-git/doc/guix.texi:32548
  48727. 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."
  48728. msgstr ""
  48729. #. type: cindex
  48730. #: guix-git/doc/guix.texi:32551
  48731. #, no-wrap
  48732. msgid "lirc"
  48733. msgstr ""
  48734. #. type: subsubheading
  48735. #: guix-git/doc/guix.texi:32552
  48736. #, no-wrap
  48737. msgid "Lirc Service"
  48738. msgstr ""
  48739. #. type: Plain text
  48740. #: guix-git/doc/guix.texi:32555
  48741. msgid "The @code{(gnu services lirc)} module provides the following service."
  48742. msgstr ""
  48743. #. type: deffn
  48744. #: guix-git/doc/guix.texi:32556
  48745. #, no-wrap
  48746. msgid "{Scheme Procedure} lirc-service [#:lirc lirc] @"
  48747. msgstr ""
  48748. #. type: deffn
  48749. #: guix-git/doc/guix.texi:32561
  48750. 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."
  48751. msgstr ""
  48752. #. type: deffn
  48753. #: guix-git/doc/guix.texi:32565
  48754. msgid "Optionally, @var{device}, @var{driver} and @var{config-file} (configuration file name) may be specified. See @command{lircd} manual for details."
  48755. msgstr ""
  48756. #. type: deffn
  48757. #: guix-git/doc/guix.texi:32568
  48758. msgid "Finally, @var{extra-options} is a list of additional command-line options passed to @command{lircd}."
  48759. msgstr ""
  48760. #. type: cindex
  48761. #: guix-git/doc/guix.texi:32570
  48762. #, no-wrap
  48763. msgid "spice"
  48764. msgstr ""
  48765. #. type: subsubheading
  48766. #: guix-git/doc/guix.texi:32571
  48767. #, no-wrap
  48768. msgid "Spice Service"
  48769. msgstr ""
  48770. #. type: Plain text
  48771. #: guix-git/doc/guix.texi:32574
  48772. msgid "The @code{(gnu services spice)} module provides the following service."
  48773. msgstr ""
  48774. #. type: deffn
  48775. #: guix-git/doc/guix.texi:32575
  48776. #, no-wrap
  48777. msgid "{Scheme Procedure} spice-vdagent-service [#:spice-vdagent]"
  48778. msgstr ""
  48779. #. type: deffn
  48780. #: guix-git/doc/guix.texi:32579
  48781. 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."
  48782. msgstr ""
  48783. #. type: cindex
  48784. #: guix-git/doc/guix.texi:32581
  48785. #, no-wrap
  48786. msgid "inputattach"
  48787. msgstr ""
  48788. #. type: subsubheading
  48789. #: guix-git/doc/guix.texi:32582
  48790. #, no-wrap
  48791. msgid "inputattach Service"
  48792. msgstr ""
  48793. #. type: cindex
  48794. #: guix-git/doc/guix.texi:32584
  48795. #, no-wrap
  48796. msgid "tablet input, for Xorg"
  48797. msgstr ""
  48798. #. type: cindex
  48799. #: guix-git/doc/guix.texi:32585
  48800. #, no-wrap
  48801. msgid "touchscreen input, for Xorg"
  48802. msgstr ""
  48803. #. type: Plain text
  48804. #: guix-git/doc/guix.texi:32589
  48805. 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."
  48806. msgstr ""
  48807. #. type: deffn
  48808. #: guix-git/doc/guix.texi:32590
  48809. #, no-wrap
  48810. msgid "{Scheme Variable} inputattach-service-type"
  48811. msgstr ""
  48812. #. type: deffn
  48813. #: guix-git/doc/guix.texi:32593
  48814. msgid "Type of a service that runs @command{inputattach} on a device and dispatches events from it."
  48815. msgstr ""
  48816. #. type: deftp
  48817. #: guix-git/doc/guix.texi:32595
  48818. #, no-wrap
  48819. msgid "{Data Type} inputattach-configuration"
  48820. msgstr ""
  48821. #. type: item
  48822. #: guix-git/doc/guix.texi:32597
  48823. #, no-wrap
  48824. msgid "@code{device-type} (default: @code{\"wacom\"})"
  48825. msgstr ""
  48826. #. type: table
  48827. #: guix-git/doc/guix.texi:32600
  48828. 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."
  48829. msgstr ""
  48830. #. type: item
  48831. #: guix-git/doc/guix.texi:32601
  48832. #, no-wrap
  48833. msgid "@code{device} (default: @code{\"/dev/ttyS0\"})"
  48834. msgstr ""
  48835. #. type: table
  48836. #: guix-git/doc/guix.texi:32603
  48837. msgid "The device file to connect to the device."
  48838. msgstr ""
  48839. #. type: table
  48840. #: guix-git/doc/guix.texi:32607
  48841. msgid "Baud rate to use for the serial connection. Should be a number or @code{#f}."
  48842. msgstr ""
  48843. #. type: item
  48844. #: guix-git/doc/guix.texi:32608
  48845. #, no-wrap
  48846. msgid "@code{log-file} (default: @code{#f})"
  48847. msgstr ""
  48848. #. type: table
  48849. #: guix-git/doc/guix.texi:32610
  48850. msgid "If true, this must be the name of a file to log messages to."
  48851. msgstr ""
  48852. #. type: subsubheading
  48853. #: guix-git/doc/guix.texi:32613
  48854. #, fuzzy, no-wrap
  48855. msgid "Dictionary Service"
  48856. msgstr "定义服务"
  48857. #. type: cindex
  48858. #: guix-git/doc/guix.texi:32614
  48859. #, no-wrap
  48860. msgid "dictionary"
  48861. msgstr ""
  48862. #. type: Plain text
  48863. #: guix-git/doc/guix.texi:32616
  48864. msgid "The @code{(gnu services dict)} module provides the following service:"
  48865. msgstr ""
  48866. #. type: defvr
  48867. #: guix-git/doc/guix.texi:32617
  48868. #, no-wrap
  48869. msgid "{Scheme Variable} dicod-service-type"
  48870. msgstr ""
  48871. #. type: defvr
  48872. #: guix-git/doc/guix.texi:32620
  48873. 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})."
  48874. msgstr ""
  48875. #. type: deffn
  48876. #: guix-git/doc/guix.texi:32622
  48877. #, no-wrap
  48878. msgid "{Scheme Procedure} dicod-service [#:config (dicod-configuration)]"
  48879. msgstr ""
  48880. #. type: deffn
  48881. #: guix-git/doc/guix.texi:32625
  48882. msgid "Return a service that runs the @command{dicod} daemon, an implementation of DICT server (@pxref{Dicod,,, dico, GNU Dico Manual})."
  48883. msgstr ""
  48884. #. type: deffn
  48885. #: guix-git/doc/guix.texi:32629
  48886. 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."
  48887. msgstr ""
  48888. #. type: deffn
  48889. #: guix-git/doc/guix.texi:32633
  48890. 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})."
  48891. msgstr ""
  48892. #. type: deftp
  48893. #: guix-git/doc/guix.texi:32635
  48894. #, no-wrap
  48895. msgid "{Data Type} dicod-configuration"
  48896. msgstr ""
  48897. #. type: deftp
  48898. #: guix-git/doc/guix.texi:32637
  48899. msgid "Data type representing the configuration of dicod."
  48900. msgstr ""
  48901. #. type: item
  48902. #: guix-git/doc/guix.texi:32639
  48903. #, no-wrap
  48904. msgid "@code{dico} (default: @var{dico})"
  48905. msgstr ""
  48906. #. type: table
  48907. #: guix-git/doc/guix.texi:32641
  48908. msgid "Package object of the GNU Dico dictionary server."
  48909. msgstr ""
  48910. #. type: item
  48911. #: guix-git/doc/guix.texi:32642
  48912. #, no-wrap
  48913. msgid "@code{interfaces} (default: @var{'(\"localhost\")})"
  48914. msgstr ""
  48915. #. type: table
  48916. #: guix-git/doc/guix.texi:32646
  48917. 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})."
  48918. msgstr ""
  48919. #. type: item
  48920. #: guix-git/doc/guix.texi:32647
  48921. #, no-wrap
  48922. msgid "@code{handlers} (default: @var{'()})"
  48923. msgstr ""
  48924. #. type: table
  48925. #: guix-git/doc/guix.texi:32649
  48926. msgid "List of @code{<dicod-handler>} objects denoting handlers (module instances)."
  48927. msgstr ""
  48928. #. type: item
  48929. #: guix-git/doc/guix.texi:32650
  48930. #, no-wrap
  48931. msgid "@code{databases} (default: @var{(list %dicod-database:gcide)})"
  48932. msgstr ""
  48933. #. type: table
  48934. #: guix-git/doc/guix.texi:32652
  48935. msgid "List of @code{<dicod-database>} objects denoting dictionaries to be served."
  48936. msgstr ""
  48937. #. type: deftp
  48938. #: guix-git/doc/guix.texi:32655
  48939. #, no-wrap
  48940. msgid "{Data Type} dicod-handler"
  48941. msgstr ""
  48942. #. type: deftp
  48943. #: guix-git/doc/guix.texi:32657
  48944. msgid "Data type representing a dictionary handler (module instance)."
  48945. msgstr ""
  48946. #. type: table
  48947. #: guix-git/doc/guix.texi:32661
  48948. msgid "Name of the handler (module instance)."
  48949. msgstr ""
  48950. #. type: item
  48951. #: guix-git/doc/guix.texi:32662
  48952. #, no-wrap
  48953. msgid "@code{module} (default: @var{#f})"
  48954. msgstr ""
  48955. #. type: table
  48956. #: guix-git/doc/guix.texi:32666
  48957. 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})."
  48958. msgstr ""
  48959. #. type: table
  48960. #: guix-git/doc/guix.texi:32669
  48961. msgid "List of strings or gexps representing the arguments for the module handler"
  48962. msgstr ""
  48963. #. type: deftp
  48964. #: guix-git/doc/guix.texi:32672
  48965. #, no-wrap
  48966. msgid "{Data Type} dicod-database"
  48967. msgstr ""
  48968. #. type: deftp
  48969. #: guix-git/doc/guix.texi:32674
  48970. msgid "Data type representing a dictionary database."
  48971. msgstr ""
  48972. #. type: table
  48973. #: guix-git/doc/guix.texi:32678
  48974. msgid "Name of the database, will be used in DICT commands."
  48975. msgstr ""
  48976. #. type: code{#1}
  48977. #: guix-git/doc/guix.texi:32679
  48978. #, no-wrap
  48979. msgid "handler"
  48980. msgstr ""
  48981. #. type: table
  48982. #: guix-git/doc/guix.texi:32682
  48983. msgid "Name of the dicod handler (module instance) used by this database (@pxref{Handlers,,, dico, GNU Dico Manual})."
  48984. msgstr ""
  48985. #. type: item
  48986. #: guix-git/doc/guix.texi:32683
  48987. #, no-wrap
  48988. msgid "@code{complex?} (default: @var{#f})"
  48989. msgstr ""
  48990. #. type: table
  48991. #: guix-git/doc/guix.texi:32686
  48992. msgid "Whether the database configuration complex. The complex configuration will need a corresponding @code{<dicod-handler>} object, otherwise not."
  48993. msgstr ""
  48994. #. type: table
  48995. #: guix-git/doc/guix.texi:32690
  48996. msgid "List of strings or gexps representing the arguments for the database (@pxref{Databases,,, dico, GNU Dico Manual})."
  48997. msgstr ""
  48998. #. type: defvr
  48999. #: guix-git/doc/guix.texi:32693
  49000. #, no-wrap
  49001. msgid "{Scheme Variable} %dicod-database:gcide"
  49002. msgstr ""
  49003. #. type: defvr
  49004. #: guix-git/doc/guix.texi:32696
  49005. msgid "A @code{<dicod-database>} object serving the GNU Collaborative International Dictionary of English using the @code{gcide} package."
  49006. msgstr ""
  49007. #. type: Plain text
  49008. #: guix-git/doc/guix.texi:32699
  49009. msgid "The following is an example @code{dicod-service} configuration."
  49010. msgstr ""
  49011. #. type: lisp
  49012. #: guix-git/doc/guix.texi:32714
  49013. #, no-wrap
  49014. msgid ""
  49015. "(dicod-service #:config\n"
  49016. " (dicod-configuration\n"
  49017. " (handlers (list (dicod-handler\n"
  49018. " (name \"wordnet\")\n"
  49019. " (module \"dictorg\")\n"
  49020. " (options\n"
  49021. " (list #~(string-append \"dbdir=\" #$wordnet))))))\n"
  49022. " (databases (list (dicod-database\n"
  49023. " (name \"wordnet\")\n"
  49024. " (complex? #t)\n"
  49025. " (handler \"wordnet\")\n"
  49026. " (options '(\"database=wn\")))\n"
  49027. " %dicod-database:gcide))))\n"
  49028. msgstr ""
  49029. #. type: cindex
  49030. #: guix-git/doc/guix.texi:32716
  49031. #, no-wrap
  49032. msgid "Docker"
  49033. msgstr ""
  49034. #. type: subsubheading
  49035. #: guix-git/doc/guix.texi:32717
  49036. #, no-wrap
  49037. msgid "Docker Service"
  49038. msgstr ""
  49039. #. type: Plain text
  49040. #: guix-git/doc/guix.texi:32720
  49041. msgid "The @code{(gnu services docker)} module provides the following services."
  49042. msgstr ""
  49043. #. type: defvr
  49044. #: guix-git/doc/guix.texi:32721
  49045. #, no-wrap
  49046. msgid "{Scheme Variable} docker-service-type"
  49047. msgstr ""
  49048. #. type: defvr
  49049. #: guix-git/doc/guix.texi:32726
  49050. 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."
  49051. msgstr ""
  49052. #. type: deftp
  49053. #: guix-git/doc/guix.texi:32729
  49054. #, no-wrap
  49055. msgid "{Data Type} docker-configuration"
  49056. msgstr ""
  49057. #. type: deftp
  49058. #: guix-git/doc/guix.texi:32731
  49059. msgid "This is the data type representing the configuration of Docker and Containerd."
  49060. msgstr ""
  49061. #. type: item
  49062. #: guix-git/doc/guix.texi:32734
  49063. #, fuzzy, no-wrap
  49064. msgid "@code{docker} (default: @code{docker})"
  49065. msgstr "@code{xfce}(默认值:@code{xfce})"
  49066. #. type: table
  49067. #: guix-git/doc/guix.texi:32736
  49068. msgid "The Docker daemon package to use."
  49069. msgstr ""
  49070. #. type: item
  49071. #: guix-git/doc/guix.texi:32737
  49072. #, fuzzy, no-wrap
  49073. msgid "@code{docker-cli} (default: @code{docker-cli})"
  49074. msgstr "@code{xfce}(默认值:@code{xfce})"
  49075. #. type: table
  49076. #: guix-git/doc/guix.texi:32739
  49077. msgid "The Docker client package to use."
  49078. msgstr ""
  49079. #. type: item
  49080. #: guix-git/doc/guix.texi:32740
  49081. #, no-wrap
  49082. msgid "@code{containerd} (default: @var{containerd})"
  49083. msgstr ""
  49084. #. type: table
  49085. #: guix-git/doc/guix.texi:32742
  49086. msgid "The Containerd package to use."
  49087. msgstr ""
  49088. #. type: item
  49089. #: guix-git/doc/guix.texi:32743
  49090. #, no-wrap
  49091. msgid "@code{proxy} (default @var{docker-libnetwork-cmd-proxy})"
  49092. msgstr ""
  49093. #. type: table
  49094. #: guix-git/doc/guix.texi:32745
  49095. msgid "The Docker user-land networking proxy package to use."
  49096. msgstr ""
  49097. #. type: item
  49098. #: guix-git/doc/guix.texi:32746
  49099. #, fuzzy, no-wrap
  49100. msgid "@code{enable-proxy?} (default @code{#t})"
  49101. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49102. #. type: table
  49103. #: guix-git/doc/guix.texi:32748
  49104. msgid "Enable or disable the use of the Docker user-land networking proxy."
  49105. msgstr ""
  49106. #. type: item
  49107. #: guix-git/doc/guix.texi:32749
  49108. #, fuzzy, no-wrap
  49109. msgid "@code{debug?} (default @code{#f})"
  49110. msgstr "@code{challenge}(默认值:@code{#f})"
  49111. #. type: table
  49112. #: guix-git/doc/guix.texi:32751
  49113. #, fuzzy
  49114. msgid "Enable or disable debug output."
  49115. msgstr "怎么开启或关闭substitute。"
  49116. #. type: item
  49117. #: guix-git/doc/guix.texi:32752
  49118. #, fuzzy, no-wrap
  49119. msgid "@code{enable-iptables?} (default @code{#t})"
  49120. msgstr "@code{mate}(默认值:@code{mate})"
  49121. #. type: table
  49122. #: guix-git/doc/guix.texi:32754
  49123. msgid "Enable or disable the addition of iptables rules."
  49124. msgstr ""
  49125. #. type: cindex
  49126. #: guix-git/doc/guix.texi:32758
  49127. #, no-wrap
  49128. msgid "Singularity, container service"
  49129. msgstr ""
  49130. #. type: defvr
  49131. #: guix-git/doc/guix.texi:32759
  49132. #, no-wrap
  49133. msgid "{Scheme Variable} singularity-service-type"
  49134. msgstr ""
  49135. #. type: defvr
  49136. #: guix-git/doc/guix.texi:32764
  49137. 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."
  49138. msgstr ""
  49139. #. type: defvr
  49140. #: guix-git/doc/guix.texi:32768
  49141. 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."
  49142. msgstr ""
  49143. #. type: cindex
  49144. #: guix-git/doc/guix.texi:32770
  49145. #, no-wrap
  49146. msgid "Audit"
  49147. msgstr ""
  49148. #. type: subsubheading
  49149. #: guix-git/doc/guix.texi:32771
  49150. #, fuzzy, no-wrap
  49151. msgid "Auditd Service"
  49152. msgstr "音频服务"
  49153. #. type: Plain text
  49154. #: guix-git/doc/guix.texi:32774
  49155. msgid "The @code{(gnu services auditd)} module provides the following service."
  49156. msgstr ""
  49157. #. type: defvr
  49158. #: guix-git/doc/guix.texi:32775
  49159. #, no-wrap
  49160. msgid "{Scheme Variable} auditd-service-type"
  49161. msgstr ""
  49162. #. type: defvr
  49163. #: guix-git/doc/guix.texi:32780
  49164. 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."
  49165. msgstr ""
  49166. #. type: defvr
  49167. #: guix-git/doc/guix.texi:32782
  49168. msgid "Examples of things that can be tracked:"
  49169. msgstr ""
  49170. #. type: enumerate
  49171. #: guix-git/doc/guix.texi:32786
  49172. #, fuzzy
  49173. msgid "File accesses"
  49174. msgstr "文件系统"
  49175. #. type: enumerate
  49176. #: guix-git/doc/guix.texi:32788
  49177. #, fuzzy
  49178. msgid "System calls"
  49179. msgstr "系统安装"
  49180. #. type: enumerate
  49181. #: guix-git/doc/guix.texi:32790
  49182. msgid "Invoked commands"
  49183. msgstr ""
  49184. #. type: enumerate
  49185. #: guix-git/doc/guix.texi:32792
  49186. msgid "Failed login attempts"
  49187. msgstr ""
  49188. #. type: enumerate
  49189. #: guix-git/doc/guix.texi:32794
  49190. msgid "Firewall filtering"
  49191. msgstr ""
  49192. #. type: enumerate
  49193. #: guix-git/doc/guix.texi:32796
  49194. #, fuzzy
  49195. msgid "Network access"
  49196. msgstr "网络服务"
  49197. #. type: defvr
  49198. #: guix-git/doc/guix.texi:32807
  49199. 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}."
  49200. msgstr ""
  49201. #. type: deftp
  49202. #: guix-git/doc/guix.texi:32810
  49203. #, fuzzy, no-wrap
  49204. msgid "{Data Type} auditd-configuration"
  49205. msgstr "{数据类型} build-machine"
  49206. #. type: deftp
  49207. #: guix-git/doc/guix.texi:32812
  49208. msgid "This is the data type representing the configuration of auditd."
  49209. msgstr ""
  49210. #. type: item
  49211. #: guix-git/doc/guix.texi:32815
  49212. #, fuzzy, no-wrap
  49213. msgid "@code{audit} (default: @code{audit})"
  49214. msgstr "@code{mate}(默认值:@code{mate})"
  49215. #. type: table
  49216. #: guix-git/doc/guix.texi:32817
  49217. #, fuzzy
  49218. msgid "The audit package to use."
  49219. msgstr "软件包数据类型。"
  49220. #. type: item
  49221. #: guix-git/doc/guix.texi:32818
  49222. #, no-wrap
  49223. msgid "@code{configuration-directory} (default: @code{%default-auditd-configuration-directory})"
  49224. msgstr ""
  49225. #. type: table
  49226. #: guix-git/doc/guix.texi:32822
  49227. 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."
  49228. msgstr ""
  49229. #. type: cindex
  49230. #: guix-git/doc/guix.texi:32826
  49231. #, no-wrap
  49232. msgid "rshiny"
  49233. msgstr ""
  49234. #. type: subsubheading
  49235. #: guix-git/doc/guix.texi:32827
  49236. #, fuzzy, no-wrap
  49237. msgid "R-Shiny service"
  49238. msgstr "电话服务。"
  49239. #. type: Plain text
  49240. #: guix-git/doc/guix.texi:32830
  49241. msgid "The @code{(gnu services science)} module provides the following service."
  49242. msgstr ""
  49243. #. type: defvr
  49244. #: guix-git/doc/guix.texi:32831
  49245. #, no-wrap
  49246. msgid "{Scheme Variable} rshiny-service-type"
  49247. msgstr ""
  49248. #. type: defvr
  49249. #: guix-git/doc/guix.texi:32836
  49250. 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}."
  49251. msgstr ""
  49252. #. type: deftp
  49253. #: guix-git/doc/guix.texi:32837
  49254. #, no-wrap
  49255. msgid "{Data Type} rshiny-configuration"
  49256. msgstr ""
  49257. #. type: deftp
  49258. #: guix-git/doc/guix.texi:32839
  49259. msgid "This is the data type representing the configuration of rshiny."
  49260. msgstr ""
  49261. #. type: item
  49262. #: guix-git/doc/guix.texi:32842
  49263. #, fuzzy, no-wrap
  49264. msgid "@code{package} (default: @code{r-shiny})"
  49265. msgstr "@code{challenge}(默认值:@code{#f})"
  49266. #. type: table
  49267. #: guix-git/doc/guix.texi:32844
  49268. #, fuzzy
  49269. msgid "The package to use."
  49270. msgstr "软件包数据类型。"
  49271. #. type: item
  49272. #: guix-git/doc/guix.texi:32845
  49273. #, fuzzy, no-wrap
  49274. msgid "@code{binary} (defaunlt @code{\"rshiny\"})"
  49275. msgstr "@code{display}(默认值:@code{\":0\"})"
  49276. #. type: table
  49277. #: guix-git/doc/guix.texi:32848
  49278. msgid "The name of the binary or shell script located at @code{package/bin/} to run when the service is run."
  49279. msgstr ""
  49280. #. type: table
  49281. #: guix-git/doc/guix.texi:32850
  49282. msgid "The common way to create this file is as follows:"
  49283. msgstr ""
  49284. #. type: lisp
  49285. #: guix-git/doc/guix.texi:32868
  49286. #, no-wrap
  49287. msgid ""
  49288. "@dots{}\n"
  49289. "(let* ((out (assoc-ref %outputs \"out\"))\n"
  49290. " (targetdir (string-append out \"/share/\" ,name))\n"
  49291. " (app (string-append out \"/bin/\" ,name))\n"
  49292. " (Rbin (string-append (assoc-ref %build-inputs \"r-min\")\n"
  49293. " \"/bin/Rscript\")))\n"
  49294. " ;; @dots{}\n"
  49295. " (mkdir-p (string-append out \"/bin\"))\n"
  49296. " (call-with-output-file app\n"
  49297. " (lambda (port)\n"
  49298. " (format port\n"
  49299. "\"#!~a\n"
  49300. "library(shiny)\n"
  49301. "setwd(\\\"~a\\\")\n"
  49302. "runApp(launch.browser=0, port=4202)~%\\n\"\n"
  49303. " Rbin targetdir))))\n"
  49304. msgstr ""
  49305. #. type: cindex
  49306. #: guix-git/doc/guix.texi:32874
  49307. #, no-wrap
  49308. msgid "Nix"
  49309. msgstr ""
  49310. #. type: subsubheading
  49311. #: guix-git/doc/guix.texi:32875
  49312. #, fuzzy, no-wrap
  49313. msgid "Nix service"
  49314. msgstr "DNS服务"
  49315. #. type: Plain text
  49316. #: guix-git/doc/guix.texi:32878
  49317. msgid "The @code{(gnu services nix)} module provides the following service."
  49318. msgstr ""
  49319. #. type: defvr
  49320. #: guix-git/doc/guix.texi:32879
  49321. #, no-wrap
  49322. msgid "{Scheme Variable} nix-service-type"
  49323. msgstr ""
  49324. #. type: defvr
  49325. #: guix-git/doc/guix.texi:32884
  49326. 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:"
  49327. msgstr ""
  49328. #. type: lisp
  49329. #: guix-git/doc/guix.texi:32889
  49330. #, no-wrap
  49331. msgid ""
  49332. "(use-modules (gnu))\n"
  49333. "(use-service-modules nix)\n"
  49334. "(use-package-modules package-management)\n"
  49335. "\n"
  49336. msgstr ""
  49337. #. type: lisp
  49338. #: guix-git/doc/guix.texi:32894
  49339. #, no-wrap
  49340. msgid ""
  49341. "(operating-system\n"
  49342. " ;; @dots{}\n"
  49343. " (packages (append (list nix)\n"
  49344. " %base-packages))\n"
  49345. "\n"
  49346. msgstr ""
  49347. #. type: lisp
  49348. #: guix-git/doc/guix.texi:32897
  49349. #, no-wrap
  49350. msgid ""
  49351. " (services (append (list (service nix-service-type))\n"
  49352. " %base-services)))\n"
  49353. msgstr ""
  49354. #. type: defvr
  49355. #: guix-git/doc/guix.texi:32900
  49356. msgid "After @command{guix system reconfigure} configure Nix for your user:"
  49357. msgstr ""
  49358. #. type: item
  49359. #: guix-git/doc/guix.texi:32902
  49360. #, no-wrap
  49361. msgid "Add a Nix channel and update it. See"
  49362. msgstr ""
  49363. #. type: itemize
  49364. #: guix-git/doc/guix.texi:32904
  49365. msgid "@url{https://nixos.org/nix/manual/, Nix Package Manager Guide}."
  49366. msgstr ""
  49367. #. type: item
  49368. #: guix-git/doc/guix.texi:32905
  49369. #, no-wrap
  49370. msgid "Create a symlink to your profile and activate Nix profile:"
  49371. msgstr ""
  49372. #. type: example
  49373. #: guix-git/doc/guix.texi:32911
  49374. #, no-wrap
  49375. msgid ""
  49376. "$ ln -s \"/nix/var/nix/profiles/per-user/$USER/profile\" ~/.nix-profile\n"
  49377. "$ source /run/current-system/profile/etc/profile.d/nix.sh\n"
  49378. msgstr ""
  49379. #. type: deftp
  49380. #: guix-git/doc/guix.texi:32915
  49381. #, fuzzy, no-wrap
  49382. msgid "{Data Type} nix-configuration"
  49383. msgstr "{数据类型} build-machine"
  49384. #. type: deftp
  49385. #: guix-git/doc/guix.texi:32917
  49386. msgid "This data type represents the configuration of the Nix daemon."
  49387. msgstr ""
  49388. #. type: item
  49389. #: guix-git/doc/guix.texi:32919
  49390. #, fuzzy, no-wrap
  49391. msgid "@code{nix} (default: @code{nix})"
  49392. msgstr "@code{xfce}(默认值:@code{xfce})"
  49393. #. type: table
  49394. #: guix-git/doc/guix.texi:32921
  49395. #, fuzzy
  49396. msgid "The Nix package to use."
  49397. msgstr "软件包数据类型。"
  49398. #. type: item
  49399. #: guix-git/doc/guix.texi:32922
  49400. #, fuzzy, no-wrap
  49401. msgid "@code{sandbox} (default: @code{#t})"
  49402. msgstr "@code{speed}(默认值:@code{1.0})"
  49403. #. type: table
  49404. #: guix-git/doc/guix.texi:32924
  49405. msgid "Specifies whether builds are sandboxed by default."
  49406. msgstr ""
  49407. #. type: item
  49408. #: guix-git/doc/guix.texi:32925
  49409. #, fuzzy, no-wrap
  49410. msgid "@code{build-sandbox-items} (default: @code{'()})"
  49411. msgstr "@code{includes}(默认值:@code{'()})"
  49412. #. type: table
  49413. #: guix-git/doc/guix.texi:32928
  49414. msgid "This is a list of strings or objects appended to the @code{build-sandbox-items} field of the configuration file."
  49415. msgstr ""
  49416. #. type: table
  49417. #: guix-git/doc/guix.texi:32936
  49418. msgid "Extra command line options for @code{nix-service-type}."
  49419. msgstr ""
  49420. #. type: cindex
  49421. #: guix-git/doc/guix.texi:32942
  49422. #, no-wrap
  49423. msgid "setuid programs"
  49424. msgstr ""
  49425. #. type: Plain text
  49426. #: guix-git/doc/guix.texi:32952
  49427. 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)."
  49428. msgstr ""
  49429. #. type: Plain text
  49430. #: guix-git/doc/guix.texi:32959
  49431. 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."
  49432. msgstr ""
  49433. #. type: Plain text
  49434. #: guix-git/doc/guix.texi:32966
  49435. msgid "The @code{setuid-programs} field of an @code{operating-system} declaration contains a list of @code{<setuid-program>} denoting the names of programs to have a setuid or setgid bit set (@pxref{Using the Configuration System}). For instance, the @command{passwd} program, which is part of the Shadow package, with a setuid root can be designated like this:"
  49436. msgstr ""
  49437. #. type: example
  49438. #: guix-git/doc/guix.texi:32970
  49439. #, no-wrap
  49440. msgid ""
  49441. "(setuid-program\n"
  49442. " (program (file-append shadow \"/bin/passwd\")))\n"
  49443. msgstr ""
  49444. #. type: deftp
  49445. #: guix-git/doc/guix.texi:32972
  49446. #, fuzzy, no-wrap
  49447. msgid "{Data Type} setuid-program"
  49448. msgstr "{数据类型} build-machine"
  49449. #. type: deftp
  49450. #: guix-git/doc/guix.texi:32974
  49451. #, fuzzy
  49452. msgid "This data type represents a program with a setuid or setgid bit set."
  49453. msgstr "管理操作系统配置。"
  49454. #. type: code{#1}
  49455. #: guix-git/doc/guix.texi:32976
  49456. #, no-wrap
  49457. msgid "program"
  49458. msgstr ""
  49459. #. type: table
  49460. #: guix-git/doc/guix.texi:32978
  49461. msgid "A file-like object having its setuid and/or setgid bit set."
  49462. msgstr ""
  49463. #. type: item
  49464. #: guix-git/doc/guix.texi:32979
  49465. #, fuzzy, no-wrap
  49466. msgid "@code{setuid?} (default: @code{#t})"
  49467. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49468. #. type: table
  49469. #: guix-git/doc/guix.texi:32981
  49470. msgid "Whether to set user setuid bit."
  49471. msgstr ""
  49472. #. type: item
  49473. #: guix-git/doc/guix.texi:32982
  49474. #, fuzzy, no-wrap
  49475. msgid "@code{setgid?} (default: @code{#f})"
  49476. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49477. #. type: table
  49478. #: guix-git/doc/guix.texi:32984
  49479. msgid "Whether to set group setgid bit."
  49480. msgstr ""
  49481. #. type: item
  49482. #: guix-git/doc/guix.texi:32985
  49483. #, fuzzy, no-wrap
  49484. msgid "@code{user} (default: @code{0})"
  49485. msgstr "@code{port}(默认值:@code{22})"
  49486. #. type: table
  49487. #: guix-git/doc/guix.texi:32988
  49488. msgid "UID (integer) or user name (string) for the user owner of the program, defaults to root."
  49489. msgstr ""
  49490. #. type: item
  49491. #: guix-git/doc/guix.texi:32989
  49492. #, fuzzy, no-wrap
  49493. msgid "@code{group} (default: @code{0})"
  49494. msgstr "@code{gnome}(默认值:@code{gnome})"
  49495. #. type: table
  49496. #: guix-git/doc/guix.texi:32992
  49497. msgid "GID (integer) goup name (string) for the group owner of the program, defaults to root."
  49498. msgstr ""
  49499. #. type: Plain text
  49500. #: guix-git/doc/guix.texi:32998
  49501. msgid "A default set of setuid programs is defined by the @code{%setuid-programs} variable of the @code{(gnu system)} module."
  49502. msgstr ""
  49503. #. type: defvr
  49504. #: guix-git/doc/guix.texi:32999
  49505. #, no-wrap
  49506. msgid "{Scheme Variable} %setuid-programs"
  49507. msgstr ""
  49508. #. type: defvr
  49509. #: guix-git/doc/guix.texi:33002
  49510. msgid "A list of @code{<setuid-program>} denoting common programs that are setuid-root."
  49511. msgstr ""
  49512. #. type: defvr
  49513. #: guix-git/doc/guix.texi:33005
  49514. msgid "The list includes commands such as @command{passwd}, @command{ping}, @command{su}, and @command{sudo}."
  49515. msgstr ""
  49516. #. type: Plain text
  49517. #: guix-git/doc/guix.texi:33011
  49518. 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."
  49519. msgstr ""
  49520. #. type: cindex
  49521. #: guix-git/doc/guix.texi:33015
  49522. #, no-wrap
  49523. msgid "HTTPS, certificates"
  49524. msgstr ""
  49525. #. type: cindex
  49526. #: guix-git/doc/guix.texi:33016
  49527. #, no-wrap
  49528. msgid "X.509 certificates"
  49529. msgstr ""
  49530. #. type: cindex
  49531. #: guix-git/doc/guix.texi:33017
  49532. #, no-wrap
  49533. msgid "TLS"
  49534. msgstr ""
  49535. #. type: Plain text
  49536. #: guix-git/doc/guix.texi:33024
  49537. 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."
  49538. msgstr ""
  49539. #. type: Plain text
  49540. #: guix-git/doc/guix.texi:33028
  49541. 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."
  49542. msgstr ""
  49543. #. type: Plain text
  49544. #: guix-git/doc/guix.texi:33032
  49545. 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."
  49546. msgstr ""
  49547. #. type: Plain text
  49548. #: guix-git/doc/guix.texi:33039
  49549. 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."
  49550. msgstr ""
  49551. #. type: Plain text
  49552. #: guix-git/doc/guix.texi:33044
  49553. 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."
  49554. msgstr ""
  49555. #. type: Plain text
  49556. #: guix-git/doc/guix.texi:33054
  49557. 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:"
  49558. msgstr ""
  49559. #. type: example
  49560. #: guix-git/doc/guix.texi:33060
  49561. #, no-wrap
  49562. msgid ""
  49563. "guix install nss-certs\n"
  49564. "export SSL_CERT_DIR=\"$HOME/.guix-profile/etc/ssl/certs\"\n"
  49565. "export SSL_CERT_FILE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  49566. "export GIT_SSL_CAINFO=\"$SSL_CERT_FILE\"\n"
  49567. msgstr ""
  49568. #. type: Plain text
  49569. #: guix-git/doc/guix.texi:33065
  49570. 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:"
  49571. msgstr ""
  49572. #. type: example
  49573. #: guix-git/doc/guix.texi:33069
  49574. #, no-wrap
  49575. msgid ""
  49576. "guix install nss-certs\n"
  49577. "export CURL_CA_BUNDLE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  49578. msgstr ""
  49579. #. type: Plain text
  49580. #: guix-git/doc/guix.texi:33073
  49581. msgid "For other applications you may want to look up the required environment variable in the relevant documentation."
  49582. msgstr ""
  49583. #. type: cindex
  49584. #: guix-git/doc/guix.texi:33078
  49585. #, no-wrap
  49586. msgid "name service switch"
  49587. msgstr ""
  49588. #. type: cindex
  49589. #: guix-git/doc/guix.texi:33079
  49590. #, no-wrap
  49591. msgid "NSS"
  49592. msgstr ""
  49593. #. type: Plain text
  49594. #: guix-git/doc/guix.texi:33088
  49595. 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})."
  49596. msgstr ""
  49597. #. type: Plain text
  49598. #: guix-git/doc/guix.texi:33095
  49599. 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}})."
  49600. msgstr ""
  49601. #. type: cindex
  49602. #: guix-git/doc/guix.texi:33096
  49603. #, no-wrap
  49604. msgid "nss-mdns"
  49605. msgstr ""
  49606. #. type: cindex
  49607. #: guix-git/doc/guix.texi:33097
  49608. #, no-wrap
  49609. msgid ".local, host name lookup"
  49610. msgstr ""
  49611. #. type: Plain text
  49612. #: guix-git/doc/guix.texi:33102
  49613. 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}:"
  49614. msgstr ""
  49615. #. type: lisp
  49616. #: guix-git/doc/guix.texi:33106
  49617. #, no-wrap
  49618. msgid ""
  49619. "(name-service-switch\n"
  49620. " (hosts (list %files ;first, check /etc/hosts\n"
  49621. "\n"
  49622. msgstr ""
  49623. #. type: lisp
  49624. #: guix-git/doc/guix.texi:33111
  49625. #, no-wrap
  49626. msgid ""
  49627. " ;; If the above did not succeed, try\n"
  49628. " ;; with 'mdns_minimal'.\n"
  49629. " (name-service\n"
  49630. " (name \"mdns_minimal\")\n"
  49631. "\n"
  49632. msgstr ""
  49633. #. type: lisp
  49634. #: guix-git/doc/guix.texi:33117
  49635. #, no-wrap
  49636. msgid ""
  49637. " ;; 'mdns_minimal' is authoritative for\n"
  49638. " ;; '.local'. When it returns \"not found\",\n"
  49639. " ;; no need to try the next methods.\n"
  49640. " (reaction (lookup-specification\n"
  49641. " (not-found => return))))\n"
  49642. "\n"
  49643. msgstr ""
  49644. #. type: lisp
  49645. #: guix-git/doc/guix.texi:33121
  49646. #, no-wrap
  49647. msgid ""
  49648. " ;; Then fall back to DNS.\n"
  49649. " (name-service\n"
  49650. " (name \"dns\"))\n"
  49651. "\n"
  49652. msgstr ""
  49653. #. type: lisp
  49654. #: guix-git/doc/guix.texi:33125
  49655. #, no-wrap
  49656. msgid ""
  49657. " ;; Finally, try with the \"full\" 'mdns'.\n"
  49658. " (name-service\n"
  49659. " (name \"mdns\")))))\n"
  49660. msgstr ""
  49661. #. type: Plain text
  49662. #: guix-git/doc/guix.texi:33130
  49663. 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."
  49664. msgstr ""
  49665. #. type: Plain text
  49666. #: guix-git/doc/guix.texi:33138
  49667. 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}})."
  49668. msgstr ""
  49669. #. type: Plain text
  49670. #: guix-git/doc/guix.texi:33141
  49671. msgid "For convenience, the following variables provide typical NSS configurations."
  49672. msgstr ""
  49673. #. type: defvr
  49674. #: guix-git/doc/guix.texi:33142
  49675. #, no-wrap
  49676. msgid "{Scheme Variable} %default-nss"
  49677. msgstr ""
  49678. #. type: defvr
  49679. #: guix-git/doc/guix.texi:33145
  49680. msgid "This is the default name service switch configuration, a @code{name-service-switch} object."
  49681. msgstr ""
  49682. #. type: defvr
  49683. #: guix-git/doc/guix.texi:33147
  49684. #, no-wrap
  49685. msgid "{Scheme Variable} %mdns-host-lookup-nss"
  49686. msgstr ""
  49687. #. type: defvr
  49688. #: guix-git/doc/guix.texi:33150
  49689. 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}."
  49690. msgstr ""
  49691. #. type: Plain text
  49692. #: guix-git/doc/guix.texi:33160
  49693. 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}."
  49694. msgstr ""
  49695. #. type: deftp
  49696. #: guix-git/doc/guix.texi:33161
  49697. #, no-wrap
  49698. msgid "{Data Type} name-service-switch"
  49699. msgstr ""
  49700. #. type: deftp
  49701. #: guix-git/doc/guix.texi:33166
  49702. 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."
  49703. msgstr ""
  49704. #. type: item
  49705. #: guix-git/doc/guix.texi:33168
  49706. #, no-wrap
  49707. msgid "aliases"
  49708. msgstr ""
  49709. #. type: itemx
  49710. #: guix-git/doc/guix.texi:33169
  49711. #, no-wrap
  49712. msgid "ethers"
  49713. msgstr ""
  49714. #. type: itemx
  49715. #: guix-git/doc/guix.texi:33171
  49716. #, no-wrap
  49717. msgid "gshadow"
  49718. msgstr ""
  49719. #. type: itemx
  49720. #: guix-git/doc/guix.texi:33172
  49721. #, no-wrap
  49722. msgid "hosts"
  49723. msgstr ""
  49724. #. type: itemx
  49725. #: guix-git/doc/guix.texi:33173
  49726. #, no-wrap
  49727. msgid "initgroups"
  49728. msgstr ""
  49729. #. type: itemx
  49730. #: guix-git/doc/guix.texi:33174
  49731. #, no-wrap
  49732. msgid "netgroup"
  49733. msgstr ""
  49734. #. type: itemx
  49735. #: guix-git/doc/guix.texi:33175
  49736. #, no-wrap
  49737. msgid "networks"
  49738. msgstr ""
  49739. #. type: itemx
  49740. #: guix-git/doc/guix.texi:33178
  49741. #, no-wrap
  49742. msgid "rpc"
  49743. msgstr ""
  49744. #. type: itemx
  49745. #: guix-git/doc/guix.texi:33180
  49746. #, no-wrap
  49747. msgid "shadow"
  49748. msgstr ""
  49749. #. type: table
  49750. #: guix-git/doc/guix.texi:33183
  49751. msgid "The system databases handled by the NSS@. Each of these fields must be a list of @code{<name-service>} objects (see below)."
  49752. msgstr ""
  49753. #. type: deftp
  49754. #: guix-git/doc/guix.texi:33186
  49755. #, no-wrap
  49756. msgid "{Data Type} name-service"
  49757. msgstr ""
  49758. #. type: deftp
  49759. #: guix-git/doc/guix.texi:33190
  49760. msgid "This is the data type representing an actual name service and the associated lookup action."
  49761. msgstr ""
  49762. #. type: table
  49763. #: guix-git/doc/guix.texi:33195
  49764. msgid "A string denoting the name service (@pxref{Services in the NSS configuration,,, libc, The GNU C Library Reference Manual})."
  49765. msgstr ""
  49766. #. type: table
  49767. #: guix-git/doc/guix.texi:33200
  49768. 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}})."
  49769. msgstr ""
  49770. #. type: item
  49771. #: guix-git/doc/guix.texi:33201
  49772. #, no-wrap
  49773. msgid "reaction"
  49774. msgstr ""
  49775. #. type: table
  49776. #: guix-git/doc/guix.texi:33205
  49777. 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:"
  49778. msgstr ""
  49779. #. type: lisp
  49780. #: guix-git/doc/guix.texi:33209
  49781. #, no-wrap
  49782. msgid ""
  49783. "(lookup-specification (unavailable => continue)\n"
  49784. " (success => return))\n"
  49785. msgstr ""
  49786. #. type: Plain text
  49787. #: guix-git/doc/guix.texi:33223
  49788. 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."
  49789. msgstr ""
  49790. #. type: Plain text
  49791. #: guix-git/doc/guix.texi:33232
  49792. 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:"
  49793. msgstr ""
  49794. #. type: lisp
  49795. #: guix-git/doc/guix.texi:33237
  49796. #, no-wrap
  49797. msgid ""
  49798. "(operating-system\n"
  49799. " ;; @dots{}\n"
  49800. " (initrd-modules (cons \"megaraid_sas\" %base-initrd-modules)))\n"
  49801. msgstr ""
  49802. #. type: defvr
  49803. #: guix-git/doc/guix.texi:33239
  49804. #, no-wrap
  49805. msgid "{Scheme Variable} %base-initrd-modules"
  49806. msgstr ""
  49807. #. type: defvr
  49808. #: guix-git/doc/guix.texi:33241
  49809. msgid "This is the list of kernel modules included in the initrd by default."
  49810. msgstr ""
  49811. #. type: Plain text
  49812. #: guix-git/doc/guix.texi:33249
  49813. 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."
  49814. msgstr ""
  49815. #. type: Plain text
  49816. #: guix-git/doc/guix.texi:33254
  49817. 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:"
  49818. msgstr ""
  49819. #. type: lisp
  49820. #: guix-git/doc/guix.texi:33262
  49821. #, no-wrap
  49822. msgid ""
  49823. "(initrd (lambda (file-systems . rest)\n"
  49824. " ;; Create a standard initrd but set up networking\n"
  49825. " ;; with the parameters QEMU expects by default.\n"
  49826. " (apply base-initrd file-systems\n"
  49827. " #:qemu-networking? #t\n"
  49828. " rest)))\n"
  49829. msgstr ""
  49830. #. type: Plain text
  49831. #: guix-git/doc/guix.texi:33267
  49832. 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."
  49833. msgstr ""
  49834. #. type: Plain text
  49835. #: guix-git/doc/guix.texi:33274
  49836. 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."
  49837. msgstr ""
  49838. #. type: Plain text
  49839. #: guix-git/doc/guix.texi:33279
  49840. 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:"
  49841. msgstr ""
  49842. #. type: item
  49843. #: guix-git/doc/guix.texi:33281
  49844. #, no-wrap
  49845. msgid "--load=@var{boot}"
  49846. msgstr ""
  49847. #. type: table
  49848. #: guix-git/doc/guix.texi:33284
  49849. msgid "Tell the initial RAM disk to load @var{boot}, a file containing a Scheme program, once it has mounted the root file system."
  49850. msgstr ""
  49851. #. type: table
  49852. #: guix-git/doc/guix.texi:33288
  49853. 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."
  49854. msgstr ""
  49855. #. type: item
  49856. #: guix-git/doc/guix.texi:33289
  49857. #, no-wrap
  49858. msgid "--root=@var{root}"
  49859. msgstr ""
  49860. #. type: table
  49861. #: guix-git/doc/guix.texi:33294
  49862. 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."
  49863. msgstr ""
  49864. #. type: item
  49865. #: guix-git/doc/guix.texi:33295
  49866. #, fuzzy, no-wrap
  49867. msgid "fsck.mode=@var{mode}"
  49868. msgstr "--rounds=@var{N}"
  49869. #. type: table
  49870. #: guix-git/doc/guix.texi:33301
  49871. 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."
  49872. msgstr ""
  49873. #. type: table
  49874. #: guix-git/doc/guix.texi:33304
  49875. msgid "@code{auto} is the default if this option is not present or if @var{mode} is not one of the above."
  49876. msgstr ""
  49877. #. type: item
  49878. #: guix-git/doc/guix.texi:33305
  49879. #, no-wrap
  49880. msgid "fsck.repair=@var{level}"
  49881. msgstr ""
  49882. #. type: table
  49883. #: guix-git/doc/guix.texi:33310
  49884. 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."
  49885. msgstr ""
  49886. #. type: table
  49887. #: guix-git/doc/guix.texi:33313
  49888. msgid "@code{preen} is the default if this option is not present or if @var{level} is not one of the above."
  49889. msgstr ""
  49890. #. type: table
  49891. #: guix-git/doc/guix.texi:33317
  49892. msgid "Have @file{/run/booted-system} and @file{/run/current-system} point to @var{system}."
  49893. msgstr ""
  49894. #. type: item
  49895. #: guix-git/doc/guix.texi:33318
  49896. #, no-wrap
  49897. msgid "modprobe.blacklist=@var{modules}@dots{}"
  49898. msgstr ""
  49899. #. type: cindex
  49900. #: guix-git/doc/guix.texi:33319
  49901. #, no-wrap
  49902. msgid "module, black-listing"
  49903. msgstr ""
  49904. #. type: cindex
  49905. #: guix-git/doc/guix.texi:33320
  49906. #, no-wrap
  49907. msgid "black list, of kernel modules"
  49908. msgstr ""
  49909. #. type: table
  49910. #: guix-git/doc/guix.texi:33325
  49911. 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}."
  49912. msgstr ""
  49913. #. type: item
  49914. #: guix-git/doc/guix.texi:33326
  49915. #, no-wrap
  49916. msgid "--repl"
  49917. msgstr ""
  49918. #. type: table
  49919. #: guix-git/doc/guix.texi:33332
  49920. 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."
  49921. msgstr ""
  49922. #. type: Plain text
  49923. #: guix-git/doc/guix.texi:33338
  49924. 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."
  49925. msgstr ""
  49926. #. type: deffn
  49927. #: guix-git/doc/guix.texi:33341
  49928. #, no-wrap
  49929. msgid "{Scheme Procedure} raw-initrd @var{file-systems} @"
  49930. msgstr ""
  49931. #. type: deffn
  49932. #: guix-git/doc/guix.texi:33355
  49933. 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."
  49934. msgstr ""
  49935. #. type: deffn
  49936. #: guix-git/doc/guix.texi:33361 guix-git/doc/guix.texi:33385
  49937. 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."
  49938. msgstr ""
  49939. #. type: deffn
  49940. #: guix-git/doc/guix.texi:33365
  49941. 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."
  49942. msgstr ""
  49943. #. type: deffn
  49944. #: guix-git/doc/guix.texi:33368
  49945. msgid "When @var{volatile-root?} is true, the root file system is writable but any changes to it are lost."
  49946. msgstr ""
  49947. #. type: deffn
  49948. #: guix-git/doc/guix.texi:33370
  49949. #, no-wrap
  49950. msgid "{Scheme Procedure} base-initrd @var{file-systems} @"
  49951. msgstr ""
  49952. #. type: deffn
  49953. #: guix-git/doc/guix.texi:33379
  49954. 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."
  49955. msgstr ""
  49956. #. type: deffn
  49957. #: guix-git/doc/guix.texi:33387
  49958. msgid "@var{qemu-networking?} and @var{volatile-root?} behaves as in @code{raw-initrd}."
  49959. msgstr ""
  49960. #. type: deffn
  49961. #: guix-git/doc/guix.texi:33392
  49962. 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."
  49963. msgstr ""
  49964. #. type: Plain text
  49965. #: guix-git/doc/guix.texi:33399
  49966. 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."
  49967. msgstr ""
  49968. #. type: deffn
  49969. #: guix-git/doc/guix.texi:33400
  49970. #, no-wrap
  49971. msgid "{Scheme Procedure} expression->initrd @var{exp} @"
  49972. msgstr ""
  49973. #. type: deffn
  49974. #: guix-git/doc/guix.texi:33406
  49975. 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."
  49976. msgstr ""
  49977. #. type: cindex
  49978. #: guix-git/doc/guix.texi:33412
  49979. #, no-wrap
  49980. msgid "boot loader"
  49981. msgstr ""
  49982. #. type: Plain text
  49983. #: guix-git/doc/guix.texi:33419
  49984. 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."
  49985. msgstr ""
  49986. #. type: Plain text
  49987. #: guix-git/doc/guix.texi:33424
  49988. 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."
  49989. msgstr ""
  49990. #. type: deftp
  49991. #: guix-git/doc/guix.texi:33425
  49992. #, no-wrap
  49993. msgid "{Data Type} bootloader-configuration"
  49994. msgstr ""
  49995. #. type: deftp
  49996. #: guix-git/doc/guix.texi:33427
  49997. msgid "The type of a bootloader configuration declaration."
  49998. msgstr ""
  49999. #. type: cindex
  50000. #: guix-git/doc/guix.texi:33431
  50001. #, no-wrap
  50002. msgid "EFI, bootloader"
  50003. msgstr ""
  50004. #. type: cindex
  50005. #: guix-git/doc/guix.texi:33432
  50006. #, no-wrap
  50007. msgid "UEFI, bootloader"
  50008. msgstr ""
  50009. #. type: cindex
  50010. #: guix-git/doc/guix.texi:33433
  50011. #, no-wrap
  50012. msgid "BIOS, bootloader"
  50013. msgstr ""
  50014. #. type: table
  50015. #: guix-git/doc/guix.texi:33438
  50016. 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."
  50017. msgstr ""
  50018. #. type: cindex
  50019. #: guix-git/doc/guix.texi:33439
  50020. #, no-wrap
  50021. msgid "ARM, bootloaders"
  50022. msgstr ""
  50023. #. type: cindex
  50024. #: guix-git/doc/guix.texi:33440
  50025. #, no-wrap
  50026. msgid "AArch64, bootloaders"
  50027. msgstr ""
  50028. #. type: table
  50029. #: guix-git/doc/guix.texi:33445
  50030. 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}."
  50031. msgstr ""
  50032. #. type: table
  50033. #: guix-git/doc/guix.texi:33451
  50034. 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."
  50035. msgstr ""
  50036. #. type: table
  50037. #: guix-git/doc/guix.texi:33455
  50038. msgid "@code{grub-bootloader} allows you to boot in particular Intel-based machines in ``legacy'' BIOS mode."
  50039. msgstr ""
  50040. #. type: vindex
  50041. #: guix-git/doc/guix.texi:33456
  50042. #, no-wrap
  50043. msgid "grub-efi-netboot-bootloader"
  50044. msgstr ""
  50045. #. type: table
  50046. #: guix-git/doc/guix.texi:33460
  50047. 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."
  50048. msgstr ""
  50049. #. type: table
  50050. #: guix-git/doc/guix.texi:33466
  50051. 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."
  50052. msgstr ""
  50053. #. type: table
  50054. #: guix-git/doc/guix.texi:33475
  50055. 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}."
  50056. msgstr ""
  50057. #. type: table
  50058. #: guix-git/doc/guix.texi:33484
  50059. 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."
  50060. msgstr ""
  50061. #. type: table
  50062. #: guix-git/doc/guix.texi:33490
  50063. 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."
  50064. msgstr ""
  50065. #. type: table
  50066. #: guix-git/doc/guix.texi:33495
  50067. 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}."
  50068. msgstr ""
  50069. #. type: table
  50070. #: guix-git/doc/guix.texi:33500
  50071. 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."
  50072. msgstr ""
  50073. #. type: table
  50074. #: guix-git/doc/guix.texi:33505
  50075. 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}."
  50076. msgstr ""
  50077. #. type: table
  50078. #: guix-git/doc/guix.texi:33509
  50079. msgid "This is a list of strings denoting the targets onto which to install the bootloader."
  50080. msgstr ""
  50081. #. type: table
  50082. #: guix-git/doc/guix.texi:33519
  50083. 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."
  50084. msgstr ""
  50085. #. type: item
  50086. #: guix-git/doc/guix.texi:33520
  50087. #, no-wrap
  50088. msgid "@code{menu-entries} (default: @code{()})"
  50089. msgstr ""
  50090. #. type: table
  50091. #: guix-git/doc/guix.texi:33524
  50092. 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."
  50093. msgstr ""
  50094. #. type: item
  50095. #: guix-git/doc/guix.texi:33525
  50096. #, no-wrap
  50097. msgid "@code{default-entry} (default: @code{0})"
  50098. msgstr ""
  50099. #. type: table
  50100. #: guix-git/doc/guix.texi:33528
  50101. msgid "The index of the default boot menu entry. Index 0 is for the entry of the current system."
  50102. msgstr ""
  50103. #. type: item
  50104. #: guix-git/doc/guix.texi:33529
  50105. #, no-wrap
  50106. msgid "@code{timeout} (default: @code{5})"
  50107. msgstr ""
  50108. #. type: table
  50109. #: guix-git/doc/guix.texi:33532
  50110. msgid "The number of seconds to wait for keyboard input before booting. Set to 0 to boot immediately, and to -1 to wait indefinitely."
  50111. msgstr ""
  50112. #. type: cindex
  50113. #: guix-git/doc/guix.texi:33533
  50114. #, no-wrap
  50115. msgid "keyboard layout, for the bootloader"
  50116. msgstr ""
  50117. #. type: table
  50118. #: guix-git/doc/guix.texi:33537
  50119. msgid "If this is @code{#f}, the bootloader's menu (if any) uses the default keyboard layout, usually US@tie{}English (``qwerty'')."
  50120. msgstr ""
  50121. #. type: table
  50122. #: guix-git/doc/guix.texi:33540
  50123. msgid "Otherwise, this must be a @code{keyboard-layout} object (@pxref{Keyboard Layout})."
  50124. msgstr ""
  50125. #. type: quotation
  50126. #: guix-git/doc/guix.texi:33544
  50127. msgid "This option is currently ignored by bootloaders other than @code{grub} and @code{grub-efi}."
  50128. msgstr ""
  50129. #. type: item
  50130. #: guix-git/doc/guix.texi:33546
  50131. #, no-wrap
  50132. msgid "@code{theme} (default: @var{#f})"
  50133. msgstr ""
  50134. #. type: table
  50135. #: guix-git/doc/guix.texi:33550
  50136. 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."
  50137. msgstr ""
  50138. #. type: item
  50139. #: guix-git/doc/guix.texi:33551
  50140. #, fuzzy, no-wrap
  50141. msgid "@code{terminal-outputs} (default: @code{'(gfxterm)})"
  50142. msgstr "@code{features} (@code{'()})"
  50143. #. type: table
  50144. #: guix-git/doc/guix.texi:33558
  50145. 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})."
  50146. msgstr ""
  50147. #. type: item
  50148. #: guix-git/doc/guix.texi:33559
  50149. #, no-wrap
  50150. msgid "@code{terminal-inputs} (default: @code{'()})"
  50151. msgstr ""
  50152. #. type: table
  50153. #: guix-git/doc/guix.texi:33567
  50154. 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})."
  50155. msgstr ""
  50156. #. type: item
  50157. #: guix-git/doc/guix.texi:33568
  50158. #, no-wrap
  50159. msgid "@code{serial-unit} (default: @code{#f})"
  50160. msgstr ""
  50161. #. type: table
  50162. #: guix-git/doc/guix.texi:33572
  50163. 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})."
  50164. msgstr ""
  50165. #. type: item
  50166. #: guix-git/doc/guix.texi:33573
  50167. #, no-wrap
  50168. msgid "@code{serial-speed} (default: @code{#f})"
  50169. msgstr ""
  50170. #. type: table
  50171. #: guix-git/doc/guix.texi:33577
  50172. 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})."
  50173. msgstr ""
  50174. #. type: cindex
  50175. #: guix-git/doc/guix.texi:33581
  50176. #, no-wrap
  50177. msgid "dual boot"
  50178. msgstr ""
  50179. #. type: cindex
  50180. #: guix-git/doc/guix.texi:33582
  50181. #, no-wrap
  50182. msgid "boot menu"
  50183. msgstr ""
  50184. #. type: Plain text
  50185. #: guix-git/doc/guix.texi:33588
  50186. 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:"
  50187. msgstr ""
  50188. #. type: lisp
  50189. #: guix-git/doc/guix.texi:33595
  50190. #, no-wrap
  50191. msgid ""
  50192. "(menu-entry\n"
  50193. " (label \"The Other Distro\")\n"
  50194. " (linux \"/boot/old/vmlinux-2.6.32\")\n"
  50195. " (linux-arguments '(\"root=/dev/sda2\"))\n"
  50196. " (initrd \"/boot/old/initrd\"))\n"
  50197. msgstr ""
  50198. #. type: Plain text
  50199. #: guix-git/doc/guix.texi:33598
  50200. msgid "Details below."
  50201. msgstr ""
  50202. #. type: deftp
  50203. #: guix-git/doc/guix.texi:33599
  50204. #, no-wrap
  50205. msgid "{Data Type} menu-entry"
  50206. msgstr ""
  50207. #. type: deftp
  50208. #: guix-git/doc/guix.texi:33601
  50209. msgid "The type of an entry in the bootloader menu."
  50210. msgstr ""
  50211. #. type: table
  50212. #: guix-git/doc/guix.texi:33606
  50213. msgid "The label to show in the menu---e.g., @code{\"GNU\"}."
  50214. msgstr ""
  50215. #. type: item
  50216. #: guix-git/doc/guix.texi:33607
  50217. #, fuzzy, no-wrap
  50218. msgid "@code{linux} (default: @code{#f})"
  50219. msgstr "@code{challenge}(默认值:@code{#f})"
  50220. #. type: table
  50221. #: guix-git/doc/guix.texi:33609
  50222. msgid "The Linux kernel image to boot, for example:"
  50223. msgstr ""
  50224. #. type: lisp
  50225. #: guix-git/doc/guix.texi:33612
  50226. #, no-wrap
  50227. msgid "(file-append linux-libre \"/bzImage\")\n"
  50228. msgstr ""
  50229. #. type: table
  50230. #: guix-git/doc/guix.texi:33617
  50231. 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:"
  50232. msgstr ""
  50233. #. type: example
  50234. #: guix-git/doc/guix.texi:33620
  50235. #, no-wrap
  50236. msgid "\"(hd0,msdos1)/boot/vmlinuz\"\n"
  50237. msgstr ""
  50238. #. type: table
  50239. #: guix-git/doc/guix.texi:33624
  50240. msgid "If the device is specified explicitly as above, then the @code{device} field is ignored entirely."
  50241. msgstr ""
  50242. #. type: item
  50243. #: guix-git/doc/guix.texi:33625
  50244. #, no-wrap
  50245. msgid "@code{linux-arguments} (default: @code{()})"
  50246. msgstr ""
  50247. #. type: table
  50248. #: guix-git/doc/guix.texi:33628
  50249. msgid "The list of extra Linux kernel command-line arguments---e.g., @code{(\"console=ttyS0\")}."
  50250. msgstr ""
  50251. #. type: item
  50252. #: guix-git/doc/guix.texi:33629
  50253. #, fuzzy, no-wrap
  50254. msgid "@code{initrd} (default: @code{#f})"
  50255. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  50256. #. type: table
  50257. #: guix-git/doc/guix.texi:33632
  50258. msgid "A G-Expression or string denoting the file name of the initial RAM disk to use (@pxref{G-Expressions})."
  50259. msgstr ""
  50260. #. type: item
  50261. #: guix-git/doc/guix.texi:33633
  50262. #, no-wrap
  50263. msgid "@code{device} (default: @code{#f})"
  50264. msgstr ""
  50265. #. type: table
  50266. #: guix-git/doc/guix.texi:33636
  50267. 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})."
  50268. msgstr ""
  50269. #. type: table
  50270. #: guix-git/doc/guix.texi:33642
  50271. 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}."
  50272. msgstr ""
  50273. #. type: item
  50274. #: guix-git/doc/guix.texi:33643
  50275. #, fuzzy, no-wrap
  50276. msgid "@code{multiboot-kernel} (default: @code{#f})"
  50277. msgstr "@code{challenge}(默认值:@code{#f})"
  50278. #. type: table
  50279. #: guix-git/doc/guix.texi:33647
  50280. 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:"
  50281. msgstr ""
  50282. #. type: lisp
  50283. #: guix-git/doc/guix.texi:33650
  50284. #, no-wrap
  50285. msgid "(file-append mach \"/boot/gnumach\")\n"
  50286. msgstr ""
  50287. #. type: item
  50288. #: guix-git/doc/guix.texi:33652
  50289. #, fuzzy, no-wrap
  50290. msgid "@code{multiboot-arguments} (default: @code{()})"
  50291. msgstr "@code{features} (@code{'()})"
  50292. #. type: table
  50293. #: guix-git/doc/guix.texi:33654
  50294. msgid "The list of extra command-line arguments for the multiboot-kernel."
  50295. msgstr ""
  50296. #. type: item
  50297. #: guix-git/doc/guix.texi:33655
  50298. #, fuzzy, no-wrap
  50299. msgid "@code{multiboot-modules} (default: @code{()})"
  50300. msgstr "@code{features} (@code{'()})"
  50301. #. type: table
  50302. #: guix-git/doc/guix.texi:33657
  50303. msgid "The list of commands for loading Multiboot modules. For example:"
  50304. msgstr ""
  50305. #. type: lisp
  50306. #: guix-git/doc/guix.texi:33663
  50307. #, no-wrap
  50308. msgid ""
  50309. "(list (list (file-append hurd \"/hurd/ext2fs.static\") \"ext2fs\"\n"
  50310. " @dots{})\n"
  50311. " (list (file-append libc \"/lib/ld.so.1\") \"exec\"\n"
  50312. " @dots{}))\n"
  50313. msgstr ""
  50314. #. type: cindex
  50315. #: guix-git/doc/guix.texi:33668 guix-git/doc/guix.texi:33727
  50316. #, no-wrap
  50317. msgid "HDPI"
  50318. msgstr ""
  50319. #. type: cindex
  50320. #: guix-git/doc/guix.texi:33669 guix-git/doc/guix.texi:33728
  50321. #, no-wrap
  50322. msgid "HiDPI"
  50323. msgstr ""
  50324. #. type: cindex
  50325. #: guix-git/doc/guix.texi:33670 guix-git/doc/guix.texi:33729
  50326. #, fuzzy, no-wrap
  50327. msgid "resolution"
  50328. msgstr "隔离"
  50329. #. type: Plain text
  50330. #: guix-git/doc/guix.texi:33674
  50331. msgid "For now only GRUB has theme support. GRUB themes are created using the @code{grub-theme} form, which is not fully documented yet."
  50332. msgstr ""
  50333. #. type: deftp
  50334. #: guix-git/doc/guix.texi:33675
  50335. #, fuzzy, no-wrap
  50336. msgid "{Data Type} grub-theme"
  50337. msgstr "{数据类型} build-machine"
  50338. #. type: deftp
  50339. #: guix-git/doc/guix.texi:33677
  50340. msgid "Data type representing the configuration of the GRUB theme."
  50341. msgstr ""
  50342. #. type: item
  50343. #: guix-git/doc/guix.texi:33679
  50344. #, fuzzy, no-wrap
  50345. msgid "@code{gfxmode} (default: @code{'(\"auto\")})"
  50346. msgstr "@code{mate}(默认值:@code{mate})"
  50347. #. type: table
  50348. #: guix-git/doc/guix.texi:33682
  50349. msgid "The GRUB @code{gfxmode} to set (a list of screen resolution strings, @pxref{gfxmode,,, grub, GNU GRUB manual})."
  50350. msgstr ""
  50351. #. type: deffn
  50352. #: guix-git/doc/guix.texi:33685
  50353. #, no-wrap
  50354. msgid "{Scheme Procedure} grub-theme"
  50355. msgstr ""
  50356. #. type: deffn
  50357. #: guix-git/doc/guix.texi:33689
  50358. msgid "Return the default GRUB theme used by the operating system if no @code{theme} field is specified in @code{bootloader-configuration} record."
  50359. msgstr ""
  50360. #. type: deffn
  50361. #: guix-git/doc/guix.texi:33692
  50362. msgid "It comes with a fancy background image displaying the GNU and Guix logos."
  50363. msgstr ""
  50364. #. type: Plain text
  50365. #: guix-git/doc/guix.texi:33696
  50366. msgid "For example, to override the default resolution, you may use something like"
  50367. msgstr ""
  50368. #. type: lisp
  50369. #: guix-git/doc/guix.texi:33704
  50370. #, no-wrap
  50371. msgid ""
  50372. "(bootloader\n"
  50373. " (bootloader-configuration\n"
  50374. " ;; @dots{}\n"
  50375. " (theme (grub-theme\n"
  50376. " (inherit (grub-theme))\n"
  50377. " (gfxmode '(\"1024x786x32\" \"auto\"))))))\n"
  50378. msgstr ""
  50379. #. type: section
  50380. #: guix-git/doc/guix.texi:33707
  50381. #, no-wrap
  50382. msgid "Invoking @code{guix system}"
  50383. msgstr ""
  50384. #. type: Plain text
  50385. #: guix-git/doc/guix.texi:33712
  50386. 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:"
  50387. msgstr ""
  50388. #. type: example
  50389. #: guix-git/doc/guix.texi:33715
  50390. #, no-wrap
  50391. msgid "guix system @var{options}@dots{} @var{action} @var{file}\n"
  50392. msgstr ""
  50393. #. type: Plain text
  50394. #: guix-git/doc/guix.texi:33721
  50395. 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:"
  50396. msgstr ""
  50397. #. type: item
  50398. #: guix-git/doc/guix.texi:33723 guix-git/doc/guix.texi:35896
  50399. #, no-wrap
  50400. msgid "search"
  50401. msgstr ""
  50402. #. type: table
  50403. #: guix-git/doc/guix.texi:33726
  50404. msgid "Display available service type definitions that match the given regular expressions, sorted by relevance:"
  50405. msgstr ""
  50406. #. type: example
  50407. #: guix-git/doc/guix.texi:33748
  50408. #, no-wrap
  50409. msgid ""
  50410. "$ guix system search console\n"
  50411. "name: console-fonts\n"
  50412. "location: gnu/services/base.scm:806:2\n"
  50413. "extends: shepherd-root\n"
  50414. "description: Install the given fonts on the specified ttys (fonts are per\n"
  50415. "+ virtual console on GNU/Linux). The value of this service is a list of\n"
  50416. "+ tty/font pairs. The font can be the name of a font provided by the `kbd'\n"
  50417. "+ package or any valid argument to `setfont', as in this example:\n"
  50418. "+\n"
  50419. "+ '((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  50420. "+ (\"tty2\" . (file-append\n"
  50421. "+ font-tamzen\n"
  50422. "+ \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  50423. "+ (\"tty3\" . (file-append\n"
  50424. "+ font-terminus\n"
  50425. "+ \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  50426. "relevance: 9\n"
  50427. "\n"
  50428. msgstr ""
  50429. #. type: example
  50430. #: guix-git/doc/guix.texi:33754
  50431. #, no-wrap
  50432. msgid ""
  50433. "name: mingetty\n"
  50434. "location: gnu/services/base.scm:1190:2\n"
  50435. "extends: shepherd-root\n"
  50436. "description: Provide console login using the `mingetty' program.\n"
  50437. "relevance: 2\n"
  50438. "\n"
  50439. msgstr ""
  50440. #. type: example
  50441. #: guix-git/doc/guix.texi:33761
  50442. #, no-wrap
  50443. msgid ""
  50444. "name: login\n"
  50445. "location: gnu/services/base.scm:860:2\n"
  50446. "extends: pam\n"
  50447. "description: Provide a console log-in service as specified by its\n"
  50448. "+ configuration value, a `login-configuration' object.\n"
  50449. "relevance: 2\n"
  50450. "\n"
  50451. msgstr ""
  50452. #. type: example
  50453. #: guix-git/doc/guix.texi:33763 guix-git/doc/guix.texi:35949
  50454. #, no-wrap
  50455. msgid "@dots{}\n"
  50456. msgstr ""
  50457. #. type: table
  50458. #: guix-git/doc/guix.texi:33768 guix-git/doc/guix.texi:35954
  50459. 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})."
  50460. msgstr ""
  50461. #. type: item
  50462. #: guix-git/doc/guix.texi:33769 guix-git/doc/guix.texi:35955
  50463. #, no-wrap
  50464. msgid "reconfigure"
  50465. msgstr ""
  50466. #. type: table
  50467. #: guix-git/doc/guix.texi:33774
  50468. 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.}."
  50469. msgstr ""
  50470. #. type: quotation
  50471. #: guix-git/doc/guix.texi:33782
  50472. 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."
  50473. msgstr ""
  50474. #. type: table
  50475. #: guix-git/doc/guix.texi:33790
  50476. 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})."
  50477. msgstr ""
  50478. #. type: table
  50479. #: guix-git/doc/guix.texi:33796
  50480. 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})."
  50481. msgstr ""
  50482. #. type: table
  50483. #: guix-git/doc/guix.texi:33801
  50484. 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."
  50485. msgstr ""
  50486. #. type: cindex
  50487. #: guix-git/doc/guix.texi:33802 guix-git/doc/guix.texi:34127
  50488. #: guix-git/doc/guix.texi:35079
  50489. #, fuzzy, no-wrap
  50490. msgid "provenance tracking, of the operating system"
  50491. msgstr "配置操作系统。"
  50492. #. type: table
  50493. #: guix-git/doc/guix.texi:33807
  50494. 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:"
  50495. msgstr ""
  50496. #. type: example
  50497. #: guix-git/doc/guix.texi:33810
  50498. #, no-wrap
  50499. msgid "guix system describe\n"
  50500. msgstr "guix system describe\n"
  50501. #. type: table
  50502. #: guix-git/doc/guix.texi:33816
  50503. 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:"
  50504. msgstr ""
  50505. #. type: example
  50506. #: guix-git/doc/guix.texi:33822
  50507. #, no-wrap
  50508. msgid ""
  50509. "guix time-machine \\\n"
  50510. " -C /var/guix/profiles/system-@var{n}-link/channels.scm -- \\\n"
  50511. " system reconfigure \\\n"
  50512. " /var/guix/profiles/system-@var{n}-link/configuration.scm\n"
  50513. msgstr ""
  50514. #. type: table
  50515. #: guix-git/doc/guix.texi:33828
  50516. 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."
  50517. msgstr ""
  50518. #. type: table
  50519. #: guix-git/doc/guix.texi:33834
  50520. 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}."
  50521. msgstr ""
  50522. #. type: item
  50523. #: guix-git/doc/guix.texi:33835 guix-git/doc/guix.texi:36014
  50524. #, no-wrap
  50525. msgid "switch-generation"
  50526. msgstr ""
  50527. #. type: table
  50528. #: guix-git/doc/guix.texi:33844
  50529. 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."
  50530. msgstr ""
  50531. #. type: table
  50532. #: guix-git/doc/guix.texi:33848
  50533. msgid "The bootloader itself is not being reinstalled when using this command. Thus, the installed bootloader is used with an updated configuration file."
  50534. msgstr ""
  50535. #. type: table
  50536. #: guix-git/doc/guix.texi:33852
  50537. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to system generation 7:"
  50538. msgstr ""
  50539. #. type: example
  50540. #: guix-git/doc/guix.texi:33855
  50541. #, no-wrap
  50542. msgid "guix system switch-generation 7\n"
  50543. msgstr ""
  50544. #. type: table
  50545. #: guix-git/doc/guix.texi:33863 guix-git/doc/guix.texi:36033
  50546. 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:"
  50547. msgstr ""
  50548. #. type: example
  50549. #: guix-git/doc/guix.texi:33866
  50550. #, no-wrap
  50551. msgid "guix system switch-generation -- -1\n"
  50552. msgstr ""
  50553. #. type: table
  50554. #: guix-git/doc/guix.texi:33874
  50555. 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."
  50556. msgstr ""
  50557. #. type: table
  50558. #: guix-git/doc/guix.texi:33876 guix-git/doc/guix.texi:36039
  50559. msgid "This action will fail if the specified generation does not exist."
  50560. msgstr ""
  50561. #. type: item
  50562. #: guix-git/doc/guix.texi:33877 guix-git/doc/guix.texi:36040
  50563. #, no-wrap
  50564. msgid "roll-back"
  50565. msgstr ""
  50566. #. type: table
  50567. #: guix-git/doc/guix.texi:33883
  50568. 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}."
  50569. msgstr ""
  50570. #. type: table
  50571. #: guix-git/doc/guix.texi:33887
  50572. msgid "Currently, as with @command{switch-generation}, you must reboot after running this action to actually start using the preceding system generation."
  50573. msgstr ""
  50574. #. type: item
  50575. #: guix-git/doc/guix.texi:33888 guix-git/doc/guix.texi:36046
  50576. #, no-wrap
  50577. msgid "delete-generations"
  50578. msgstr ""
  50579. #. type: cindex
  50580. #: guix-git/doc/guix.texi:33889
  50581. #, no-wrap
  50582. msgid "deleting system generations"
  50583. msgstr ""
  50584. #. type: cindex
  50585. #: guix-git/doc/guix.texi:33890 guix-git/doc/guix.texi:36048
  50586. #, no-wrap
  50587. msgid "saving space"
  50588. msgstr ""
  50589. #. type: table
  50590. #: guix-git/doc/guix.texi:33894
  50591. msgid "Delete system generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  50592. msgstr ""
  50593. #. type: table
  50594. #: guix-git/doc/guix.texi:33898
  50595. 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:"
  50596. msgstr ""
  50597. #. type: example
  50598. #: guix-git/doc/guix.texi:33901
  50599. #, no-wrap
  50600. msgid "guix system delete-generations\n"
  50601. msgstr ""
  50602. #. type: table
  50603. #: guix-git/doc/guix.texi:33905
  50604. msgid "You can also select the generations you want to delete. The example below deletes all the system generations that are more than two month old:"
  50605. msgstr ""
  50606. #. type: example
  50607. #: guix-git/doc/guix.texi:33908
  50608. #, no-wrap
  50609. msgid "guix system delete-generations 2m\n"
  50610. msgstr ""
  50611. #. type: table
  50612. #: guix-git/doc/guix.texi:33913
  50613. 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."
  50614. msgstr ""
  50615. #. type: table
  50616. #: guix-git/doc/guix.texi:33918
  50617. 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."
  50618. msgstr ""
  50619. #. type: item
  50620. #: guix-git/doc/guix.texi:33919
  50621. #, no-wrap
  50622. msgid "init"
  50623. msgstr ""
  50624. #. type: table
  50625. #: guix-git/doc/guix.texi:33923
  50626. 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:"
  50627. msgstr ""
  50628. #. type: example
  50629. #: guix-git/doc/guix.texi:33926
  50630. #, no-wrap
  50631. msgid "guix system init my-os-config.scm /mnt\n"
  50632. msgstr ""
  50633. #. type: table
  50634. #: guix-git/doc/guix.texi:33933
  50635. 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."
  50636. msgstr ""
  50637. #. type: table
  50638. #: guix-git/doc/guix.texi:33937
  50639. msgid "This command also installs bootloader on the targets specified in @file{my-os-config}, unless the @option{--no-bootloader} option was passed."
  50640. msgstr ""
  50641. #. type: item
  50642. #: guix-git/doc/guix.texi:33938
  50643. #, no-wrap
  50644. msgid "vm"
  50645. msgstr ""
  50646. #. type: cindex
  50647. #: guix-git/doc/guix.texi:33939 guix-git/doc/guix.texi:34500
  50648. #, no-wrap
  50649. msgid "virtual machine"
  50650. msgstr ""
  50651. #. type: cindex
  50652. #: guix-git/doc/guix.texi:33940
  50653. #, no-wrap
  50654. msgid "VM"
  50655. msgstr ""
  50656. #. type: anchor{#1}
  50657. #: guix-git/doc/guix.texi:33944
  50658. msgid "guix system vm"
  50659. msgstr ""
  50660. #. type: table
  50661. #: guix-git/doc/guix.texi:33944
  50662. msgid "Build a virtual machine that contains the operating system declared in @var{file}, and return a script to run that virtual machine (VM)."
  50663. msgstr ""
  50664. #. type: quotation
  50665. #: guix-git/doc/guix.texi:33952
  50666. 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})."
  50667. msgstr ""
  50668. #. type: table
  50669. #: guix-git/doc/guix.texi:33957
  50670. 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:"
  50671. msgstr ""
  50672. #. type: example
  50673. #: guix-git/doc/guix.texi:33960
  50674. #, no-wrap
  50675. msgid "$ /gnu/store/@dots{}-run-vm.sh -m 1024 -smp 2 -nic user,model=virtio-net-pci\n"
  50676. msgstr ""
  50677. #. type: table
  50678. #: guix-git/doc/guix.texi:33963
  50679. msgid "The VM shares its store with the host system."
  50680. msgstr ""
  50681. #. type: table
  50682. #: guix-git/doc/guix.texi:33968
  50683. 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."
  50684. msgstr ""
  50685. #. type: table
  50686. #: guix-git/doc/guix.texi:33972
  50687. 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:"
  50688. msgstr ""
  50689. #. type: example
  50690. #: guix-git/doc/guix.texi:33976
  50691. #, no-wrap
  50692. msgid ""
  50693. "guix system vm my-config.scm \\\n"
  50694. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  50695. msgstr ""
  50696. #. type: table
  50697. #: guix-git/doc/guix.texi:33981
  50698. 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."
  50699. msgstr ""
  50700. #. type: table
  50701. #: guix-git/doc/guix.texi:33987
  50702. msgid "The @option{--full-boot} option forces a complete boot sequence, starting with the bootloader. This requires more disk space since a root image containing at least the kernel, initrd, and bootloader data files must be created. The @option{--image-size} option can be used to specify the size of the image."
  50703. msgstr ""
  50704. #. type: cindex
  50705. #: guix-git/doc/guix.texi:33988
  50706. #, no-wrap
  50707. msgid "System images, creation in various formats"
  50708. msgstr ""
  50709. #. type: cindex
  50710. #: guix-git/doc/guix.texi:33989
  50711. #, no-wrap
  50712. msgid "Creating system images in various formats"
  50713. msgstr ""
  50714. #. type: item
  50715. #: guix-git/doc/guix.texi:33990
  50716. #, no-wrap
  50717. msgid "image"
  50718. msgstr ""
  50719. #. type: itemx
  50720. #: guix-git/doc/guix.texi:33991
  50721. #, no-wrap
  50722. msgid "docker-image"
  50723. msgstr ""
  50724. #. type: table
  50725. #: guix-git/doc/guix.texi:33999
  50726. msgid "Return a virtual machine, disk image, or Docker image of the operating system declared in @var{file} that stands alone. By default, @command{guix system} estimates the size of the image needed to store the system, but you can use the @option{--image-size} option to specify a value. Docker images are built to contain exactly what they need, so the @option{--image-size} option is ignored in the case of @code{docker-image}."
  50727. msgstr ""
  50728. #. type: cindex
  50729. #: guix-git/doc/guix.texi:34000
  50730. #, no-wrap
  50731. msgid "image, creating disk images"
  50732. msgstr ""
  50733. #. type: table
  50734. #: guix-git/doc/guix.texi:34012
  50735. 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:"
  50736. msgstr ""
  50737. #. type: example
  50738. #: guix-git/doc/guix.texi:34020
  50739. #, no-wrap
  50740. msgid ""
  50741. "image=$(guix system image --image-type=qcow2 \\\n"
  50742. " gnu/system/examples/lightweight-desktop.tmpl)\n"
  50743. "cp $image /tmp/my-image.qcow2\n"
  50744. "chmod +w /tmp/my-image.qcow2\n"
  50745. "qemu-system-x86_64 -enable-kvm -hda /tmp/my-image.qcow2 -m 1000 \\\n"
  50746. " -bios $(guix build ovmf)/share/firmware/ovmf_x64.bin\n"
  50747. msgstr ""
  50748. #. type: table
  50749. #: guix-git/doc/guix.texi:34026
  50750. 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:"
  50751. msgstr ""
  50752. #. type: example
  50753. #: guix-git/doc/guix.texi:34029
  50754. #, no-wrap
  50755. msgid "# dd if=$(guix system image my-os.scm) of=/dev/sdc status=progress\n"
  50756. msgstr ""
  50757. #. type: table
  50758. #: guix-git/doc/guix.texi:34033
  50759. msgid "The @code{--list-image-types} command lists all the available image types."
  50760. msgstr ""
  50761. #. type: cindex
  50762. #: guix-git/doc/guix.texi:34034
  50763. #, no-wrap
  50764. msgid "creating virtual machine images"
  50765. msgstr ""
  50766. #. type: table
  50767. #: guix-git/doc/guix.texi:34043
  50768. 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)."
  50769. msgstr ""
  50770. #. type: cindex
  50771. #: guix-git/doc/guix.texi:34044
  50772. #, no-wrap
  50773. msgid "docker-image, creating docker images"
  50774. msgstr ""
  50775. #. type: table
  50776. #: guix-git/doc/guix.texi:34050
  50777. msgid "When using @code{docker-image}, a Docker image is produced. Guix builds the image from scratch, not from a pre-existing Docker base image. As a result, it contains @emph{exactly} what you define in the operating system configuration file. You can then load the image and launch a Docker container using commands like the following:"
  50778. msgstr ""
  50779. #. type: example
  50780. #: guix-git/doc/guix.texi:34055
  50781. #, no-wrap
  50782. msgid ""
  50783. "image_id=\"$(docker load < guix-system-docker-image.tar.gz)\"\n"
  50784. "container_id=\"$(docker create $image_id)\"\n"
  50785. "docker start $container_id\n"
  50786. msgstr ""
  50787. #. type: table
  50788. #: guix-git/doc/guix.texi:34062
  50789. 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}:"
  50790. msgstr ""
  50791. #. type: example
  50792. #: guix-git/doc/guix.texi:34065
  50793. #, no-wrap
  50794. msgid "docker exec -ti $container_id /run/current-system/profile/bin/bash --login\n"
  50795. msgstr ""
  50796. #. type: table
  50797. #: guix-git/doc/guix.texi:34072
  50798. 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}."
  50799. msgstr ""
  50800. #. type: table
  50801. #: guix-git/doc/guix.texi:34076
  50802. 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."
  50803. msgstr ""
  50804. #. type: table
  50805. #: guix-git/doc/guix.texi:34084
  50806. 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."
  50807. msgstr ""
  50808. #. type: table
  50809. #: guix-git/doc/guix.texi:34088
  50810. 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."
  50811. msgstr ""
  50812. #. type: table
  50813. #: guix-git/doc/guix.texi:34092
  50814. 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:"
  50815. msgstr ""
  50816. #. type: example
  50817. #: guix-git/doc/guix.texi:34096
  50818. #, no-wrap
  50819. msgid ""
  50820. "guix system container my-config.scm \\\n"
  50821. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  50822. msgstr ""
  50823. #. type: quotation
  50824. #: guix-git/doc/guix.texi:34100
  50825. msgid "This option requires Linux-libre 3.19 or newer."
  50826. msgstr ""
  50827. #. type: Plain text
  50828. #: guix-git/doc/guix.texi:34107 guix-git/doc/guix.texi:36097
  50829. 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:"
  50830. msgstr ""
  50831. #. type: table
  50832. #: guix-git/doc/guix.texi:34116
  50833. 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})."
  50834. msgstr ""
  50835. #. type: table
  50836. #: guix-git/doc/guix.texi:34121
  50837. msgid "Attempt to build for @var{system} instead of the host system type. This works as per @command{guix build} (@pxref{Invoking guix build})."
  50838. msgstr ""
  50839. #. type: table
  50840. #: guix-git/doc/guix.texi:34126
  50841. msgid "Return the derivation file name of the given operating system without building anything."
  50842. msgstr ""
  50843. #. type: table
  50844. #: guix-git/doc/guix.texi:34135
  50845. 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:"
  50846. msgstr ""
  50847. #. type: example
  50848. #: guix-git/doc/guix.texi:34138
  50849. #, no-wrap
  50850. msgid "guix system image -t qcow2 --save-provenance config.scm\n"
  50851. msgstr ""
  50852. #. type: table
  50853. #: guix-git/doc/guix.texi:34145
  50854. 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."
  50855. msgstr ""
  50856. #. type: item
  50857. #: guix-git/doc/guix.texi:34146
  50858. #, fuzzy, no-wrap
  50859. msgid "--image-type=@var{type}"
  50860. msgstr "--log-compression=@var{type}"
  50861. #. type: table
  50862. #: guix-git/doc/guix.texi:34149
  50863. msgid "For the @code{image} action, create an image with given @var{type}."
  50864. msgstr ""
  50865. #. type: table
  50866. #: guix-git/doc/guix.texi:34152
  50867. msgid "When this option is omitted, @command{guix system} uses the @code{efi-raw} image type."
  50868. msgstr ""
  50869. #. type: cindex
  50870. #: guix-git/doc/guix.texi:34153
  50871. #, no-wrap
  50872. msgid "ISO-9660 format"
  50873. msgstr ""
  50874. #. type: cindex
  50875. #: guix-git/doc/guix.texi:34154
  50876. #, no-wrap
  50877. msgid "CD image format"
  50878. msgstr ""
  50879. #. type: cindex
  50880. #: guix-git/doc/guix.texi:34155
  50881. #, no-wrap
  50882. msgid "DVD image format"
  50883. msgstr ""
  50884. #. type: table
  50885. #: guix-git/doc/guix.texi:34158
  50886. msgid "@option{--image-type=iso9660} produces an ISO-9660 image, suitable for burning on CDs and DVDs."
  50887. msgstr ""
  50888. #. type: item
  50889. #: guix-git/doc/guix.texi:34159
  50890. #, no-wrap
  50891. msgid "--image-size=@var{size}"
  50892. msgstr ""
  50893. #. type: table
  50894. #: guix-git/doc/guix.texi:34164
  50895. 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})."
  50896. msgstr ""
  50897. #. type: table
  50898. #: guix-git/doc/guix.texi:34168
  50899. 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}."
  50900. msgstr ""
  50901. #. type: table
  50902. #: guix-git/doc/guix.texi:34173
  50903. msgid "For the @code{container} action, allow containers to access the host network, that is, do not create a network namespace."
  50904. msgstr ""
  50905. #. type: item
  50906. #: guix-git/doc/guix.texi:34179
  50907. #, no-wrap
  50908. msgid "--skip-checks"
  50909. msgstr ""
  50910. #. type: table
  50911. #: guix-git/doc/guix.texi:34181
  50912. msgid "Skip pre-installation safety checks."
  50913. msgstr ""
  50914. #. type: table
  50915. #: guix-git/doc/guix.texi:34188
  50916. 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."
  50917. msgstr ""
  50918. #. type: table
  50919. #: guix-git/doc/guix.texi:34191
  50920. msgid "Instruct @command{guix system reconfigure} to allow system downgrades."
  50921. msgstr ""
  50922. #. type: table
  50923. #: guix-git/doc/guix.texi:34199
  50924. 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."
  50925. msgstr ""
  50926. #. type: cindex
  50927. #: guix-git/doc/guix.texi:34205
  50928. #, no-wrap
  50929. msgid "on-error"
  50930. msgstr ""
  50931. #. type: cindex
  50932. #: guix-git/doc/guix.texi:34206
  50933. #, no-wrap
  50934. msgid "on-error strategy"
  50935. msgstr ""
  50936. #. type: cindex
  50937. #: guix-git/doc/guix.texi:34207
  50938. #, no-wrap
  50939. msgid "error strategy"
  50940. msgstr ""
  50941. #. type: item
  50942. #: guix-git/doc/guix.texi:34208
  50943. #, no-wrap
  50944. msgid "--on-error=@var{strategy}"
  50945. msgstr ""
  50946. #. type: table
  50947. #: guix-git/doc/guix.texi:34211
  50948. msgid "Apply @var{strategy} when an error occurs when reading @var{file}. @var{strategy} may be one of the following:"
  50949. msgstr ""
  50950. #. type: item
  50951. #: guix-git/doc/guix.texi:34213
  50952. #, no-wrap
  50953. msgid "nothing-special"
  50954. msgstr ""
  50955. #. type: table
  50956. #: guix-git/doc/guix.texi:34215
  50957. msgid "Report the error concisely and exit. This is the default strategy."
  50958. msgstr ""
  50959. #. type: item
  50960. #: guix-git/doc/guix.texi:34216
  50961. #, no-wrap
  50962. msgid "backtrace"
  50963. msgstr ""
  50964. #. type: table
  50965. #: guix-git/doc/guix.texi:34218
  50966. msgid "Likewise, but also display a backtrace."
  50967. msgstr ""
  50968. #. type: item
  50969. #: guix-git/doc/guix.texi:34219
  50970. #, no-wrap
  50971. msgid "debug"
  50972. msgstr ""
  50973. #. type: table
  50974. #: guix-git/doc/guix.texi:34225
  50975. 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."
  50976. msgstr ""
  50977. #. type: Plain text
  50978. #: guix-git/doc/guix.texi:34232
  50979. 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:"
  50980. msgstr ""
  50981. #. type: item
  50982. #: guix-git/doc/guix.texi:34235 guix-git/doc/guix.texi:36073
  50983. #, no-wrap
  50984. msgid "describe"
  50985. msgstr ""
  50986. #. type: table
  50987. #: guix-git/doc/guix.texi:34238
  50988. msgid "Describe the current system generation: its file name, the kernel and bootloader used, etc., as well as provenance information when available."
  50989. msgstr ""
  50990. #. type: item
  50991. #: guix-git/doc/guix.texi:34239 guix-git/doc/guix.texi:36077
  50992. #, no-wrap
  50993. msgid "list-generations"
  50994. msgstr ""
  50995. #. type: table
  50996. #: guix-git/doc/guix.texi:34244
  50997. 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})."
  50998. msgstr ""
  50999. #. type: table
  51000. #: guix-git/doc/guix.texi:34249 guix-git/doc/guix.texi:36087
  51001. 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:"
  51002. msgstr ""
  51003. #. type: example
  51004. #: guix-git/doc/guix.texi:34252
  51005. #, no-wrap
  51006. msgid "$ guix system list-generations 10d\n"
  51007. msgstr ""
  51008. #. type: Plain text
  51009. #: guix-git/doc/guix.texi:34259
  51010. 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:"
  51011. msgstr ""
  51012. #. type: anchor{#1}
  51013. #: guix-git/doc/guix.texi:34261
  51014. msgid "system-extension-graph"
  51015. msgstr ""
  51016. #. type: item
  51017. #: guix-git/doc/guix.texi:34263
  51018. #, no-wrap
  51019. msgid "extension-graph"
  51020. msgstr ""
  51021. #. type: table
  51022. #: guix-git/doc/guix.texi:34270
  51023. 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}}):"
  51024. msgstr ""
  51025. #. type: table
  51026. #: guix-git/doc/guix.texi:34272
  51027. msgid "The command:"
  51028. msgstr ""
  51029. #. type: example
  51030. #: guix-git/doc/guix.texi:34275
  51031. #, no-wrap
  51032. msgid "$ guix system extension-graph @var{file} | xdot -\n"
  51033. msgstr ""
  51034. #. type: table
  51035. #: guix-git/doc/guix.texi:34278
  51036. msgid "shows the extension relations among services."
  51037. msgstr ""
  51038. #. type: anchor{#1}
  51039. #: guix-git/doc/guix.texi:34280
  51040. msgid "system-shepherd-graph"
  51041. msgstr ""
  51042. #. type: item
  51043. #: guix-git/doc/guix.texi:34280
  51044. #, no-wrap
  51045. msgid "shepherd-graph"
  51046. msgstr ""
  51047. #. type: table
  51048. #: guix-git/doc/guix.texi:34285
  51049. 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."
  51050. msgstr ""
  51051. #. type: table
  51052. #: guix-git/doc/guix.texi:34288
  51053. msgid "Again, the default output format is Dot/Graphviz, but you can pass @option{--graph-backend} to select a different one."
  51054. msgstr ""
  51055. #. type: section
  51056. #: guix-git/doc/guix.texi:34292
  51057. #, fuzzy, no-wrap
  51058. msgid "Invoking @code{guix deploy}"
  51059. msgstr "调用@command{guix-daemon}"
  51060. #. type: Plain text
  51061. #: guix-git/doc/guix.texi:34300
  51062. 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''."
  51063. msgstr ""
  51064. #. type: quotation
  51065. #: guix-git/doc/guix.texi:34305 guix-git/doc/guix.texi:35386
  51066. 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}!"
  51067. msgstr ""
  51068. #. type: example
  51069. #: guix-git/doc/guix.texi:34309
  51070. #, no-wrap
  51071. msgid "guix deploy @var{file}\n"
  51072. msgstr ""
  51073. #. type: Plain text
  51074. #: guix-git/doc/guix.texi:34313
  51075. 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:"
  51076. msgstr ""
  51077. #. type: lisp
  51078. #: guix-git/doc/guix.texi:34320
  51079. #, no-wrap
  51080. msgid ""
  51081. ";; This is a Guix deployment of a \"bare bones\" setup, with\n"
  51082. ";; no X11 display server, to a machine with an SSH daemon\n"
  51083. ";; listening on localhost:2222. A configuration such as this\n"
  51084. ";; may be appropriate for virtual machine with ports\n"
  51085. ";; forwarded to the host's loopback interface.\n"
  51086. "\n"
  51087. msgstr ""
  51088. #. type: lisp
  51089. #: guix-git/doc/guix.texi:34323
  51090. #, no-wrap
  51091. msgid ""
  51092. "(use-service-modules networking ssh)\n"
  51093. "(use-package-modules bootloaders)\n"
  51094. "\n"
  51095. msgstr ""
  51096. #. type: lisp
  51097. #: guix-git/doc/guix.texi:34344
  51098. #, no-wrap
  51099. msgid ""
  51100. "(define %system\n"
  51101. " (operating-system\n"
  51102. " (host-name \"gnu-deployed\")\n"
  51103. " (timezone \"Etc/UTC\")\n"
  51104. " (bootloader (bootloader-configuration\n"
  51105. " (bootloader grub-bootloader)\n"
  51106. " (targets '(\"/dev/vda\"))\n"
  51107. " (terminal-outputs '(console))))\n"
  51108. " (file-systems (cons (file-system\n"
  51109. " (mount-point \"/\")\n"
  51110. " (device \"/dev/vda1\")\n"
  51111. " (type \"ext4\"))\n"
  51112. " %base-file-systems))\n"
  51113. " (services\n"
  51114. " (append (list (service dhcp-client-service-type)\n"
  51115. " (service openssh-service-type\n"
  51116. " (openssh-configuration\n"
  51117. " (permit-root-login #t)\n"
  51118. " (allow-empty-passwords? #t))))\n"
  51119. " %base-services))))\n"
  51120. "\n"
  51121. msgstr ""
  51122. #. type: lisp
  51123. #: guix-git/doc/guix.texi:34354
  51124. #, no-wrap
  51125. msgid ""
  51126. "(list (machine\n"
  51127. " (operating-system %system)\n"
  51128. " (environment managed-host-environment-type)\n"
  51129. " (configuration (machine-ssh-configuration\n"
  51130. " (host-name \"localhost\")\n"
  51131. " (system \"x86_64-linux\")\n"
  51132. " (user \"alice\")\n"
  51133. " (identity \"./id_rsa\")\n"
  51134. " (port 2222)))))\n"
  51135. msgstr ""
  51136. #. type: Plain text
  51137. #: guix-git/doc/guix.texi:34367
  51138. 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."
  51139. msgstr ""
  51140. #. type: Plain text
  51141. #: guix-git/doc/guix.texi:34372
  51142. 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:"
  51143. msgstr ""
  51144. #. type: Plain text
  51145. #: guix-git/doc/guix.texi:34380
  51146. #, fuzzy
  51147. msgid "Each target machine must authorize the key of the master machine so that it accepts store items it receives from the coordinator:"
  51148. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  51149. #. type: example
  51150. #: guix-git/doc/guix.texi:34383
  51151. #, fuzzy, no-wrap
  51152. msgid "# guix archive --authorize < coordinator-public-key.txt\n"
  51153. msgstr "# guix archive --authorize < master-public-key.txt\n"
  51154. #. type: Plain text
  51155. #: guix-git/doc/guix.texi:34394
  51156. 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:"
  51157. msgstr ""
  51158. #. type: lisp
  51159. #: guix-git/doc/guix.texi:34398
  51160. #, no-wrap
  51161. msgid ""
  51162. "(use-modules ...\n"
  51163. " (gnu system)) ;for %sudoers-specification\n"
  51164. "\n"
  51165. msgstr ""
  51166. #. type: lisp
  51167. #: guix-git/doc/guix.texi:34400
  51168. #, no-wrap
  51169. msgid ""
  51170. "(define %user \"username\")\n"
  51171. "\n"
  51172. msgstr ""
  51173. #. type: lisp
  51174. #: guix-git/doc/guix.texi:34408
  51175. #, no-wrap
  51176. msgid ""
  51177. "(operating-system\n"
  51178. " ...\n"
  51179. " (sudoers-file\n"
  51180. " (plain-file \"sudoers\"\n"
  51181. " (string-append (plain-file-content %sudoers-specification)\n"
  51182. " (format #f \"~a ALL = NOPASSWD: ALL~%\"\n"
  51183. " %user)))))\n"
  51184. "\n"
  51185. msgstr ""
  51186. #. type: Plain text
  51187. #: guix-git/doc/guix.texi:34413
  51188. msgid "For more information regarding the format of the @file{sudoers} file, consult @command{man sudoers}."
  51189. msgstr ""
  51190. #. type: deftp
  51191. #: guix-git/doc/guix.texi:34414
  51192. #, fuzzy, no-wrap
  51193. msgid "{Data Type} machine"
  51194. msgstr "{数据类型} build-machine"
  51195. #. type: deftp
  51196. #: guix-git/doc/guix.texi:34417
  51197. msgid "This is the data type representing a single machine in a heterogeneous Guix deployment."
  51198. msgstr ""
  51199. #. type: table
  51200. #: guix-git/doc/guix.texi:34421
  51201. #, fuzzy
  51202. msgid "The object of the operating system configuration to deploy."
  51203. msgstr "管理操作系统配置。"
  51204. #. type: code{#1}
  51205. #: guix-git/doc/guix.texi:34422
  51206. #, fuzzy, no-wrap
  51207. msgid "environment"
  51208. msgstr "构建环境"
  51209. #. type: table
  51210. #: guix-git/doc/guix.texi:34424
  51211. msgid "An @code{environment-type} describing how the machine should be provisioned."
  51212. msgstr ""
  51213. #. type: item
  51214. #: guix-git/doc/guix.texi:34425
  51215. #, fuzzy, no-wrap
  51216. msgid "@code{configuration} (default: @code{#f})"
  51217. msgstr "@code{journal-content}(默认值:@code{#f})"
  51218. #. type: table
  51219. #: guix-git/doc/guix.texi:34430
  51220. 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."
  51221. msgstr ""
  51222. #. type: deftp
  51223. #: guix-git/doc/guix.texi:34433
  51224. #, fuzzy, no-wrap
  51225. msgid "{Data Type} machine-ssh-configuration"
  51226. msgstr "{数据类型} build-machine"
  51227. #. type: deftp
  51228. #: guix-git/doc/guix.texi:34436
  51229. msgid "This is the data type representing the SSH client parameters for a machine with an @code{environment} of @code{managed-host-environment-type}."
  51230. msgstr ""
  51231. #. type: item
  51232. #: guix-git/doc/guix.texi:34439
  51233. #, fuzzy, no-wrap
  51234. msgid "@code{build-locally?} (default: @code{#t})"
  51235. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  51236. #. type: table
  51237. #: guix-git/doc/guix.texi:34441
  51238. msgid "If false, system derivations will be built on the machine being deployed to."
  51239. msgstr ""
  51240. #. type: code{#1}
  51241. #: guix-git/doc/guix.texi:34441
  51242. #, no-wrap
  51243. msgid "system"
  51244. msgstr "系统"
  51245. #. type: table
  51246. #: guix-git/doc/guix.texi:34444
  51247. #, fuzzy
  51248. msgid "The system type describing the architecture of the machine being deployed to---e.g., @code{\"x86_64-linux\"}."
  51249. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  51250. #. type: item
  51251. #: guix-git/doc/guix.texi:34444
  51252. #, fuzzy, no-wrap
  51253. msgid "@code{authorize?} (default: @code{#t})"
  51254. msgstr "@code{mate}(默认值:@code{mate})"
  51255. #. type: table
  51256. #: guix-git/doc/guix.texi:34447
  51257. msgid "If true, the coordinator's signing key will be added to the remote's ACL keyring."
  51258. msgstr ""
  51259. #. type: item
  51260. #: guix-git/doc/guix.texi:34448
  51261. #, fuzzy, no-wrap
  51262. msgid "@code{user} (default: @code{\"root\"})"
  51263. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  51264. #. type: item
  51265. #: guix-git/doc/guix.texi:34449
  51266. #, fuzzy, no-wrap
  51267. msgid "@code{identity} (default: @code{#f})"
  51268. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51269. #. type: table
  51270. #: guix-git/doc/guix.texi:34452
  51271. msgid "If specified, the path to the SSH private key to use to authenticate with the remote host."
  51272. msgstr ""
  51273. #. type: item
  51274. #: guix-git/doc/guix.texi:34453
  51275. #, fuzzy, no-wrap
  51276. msgid "@code{host-key} (default: @code{#f})"
  51277. msgstr "@code{port}(默认值:@code{22})"
  51278. #. type: table
  51279. #: guix-git/doc/guix.texi:34455
  51280. msgid "This should be the SSH host key of the machine, which looks like this:"
  51281. msgstr ""
  51282. #. type: example
  51283. #: guix-git/doc/guix.texi:34458
  51284. #, fuzzy, no-wrap
  51285. msgid "ssh-ed25519 AAAAC3Nz@dots{} root@@example.org\n"
  51286. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  51287. #. type: table
  51288. #: guix-git/doc/guix.texi:34463
  51289. 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."
  51290. msgstr ""
  51291. #. type: item
  51292. #: guix-git/doc/guix.texi:34464
  51293. #, fuzzy, no-wrap
  51294. msgid "@code{allow-downgrades?} (default: @code{#f})"
  51295. msgstr "@code{challenge}(默认值:@code{#f})"
  51296. #. type: table
  51297. #: guix-git/doc/guix.texi:34466
  51298. msgid "Whether to allow potential downgrades."
  51299. msgstr ""
  51300. #. type: table
  51301. #: guix-git/doc/guix.texi:34474
  51302. 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."
  51303. msgstr ""
  51304. #. type: deftp
  51305. #: guix-git/doc/guix.texi:34477
  51306. #, no-wrap
  51307. msgid "{Data Type} digital-ocean-configuration"
  51308. msgstr ""
  51309. #. type: deftp
  51310. #: guix-git/doc/guix.texi:34480
  51311. 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}."
  51312. msgstr ""
  51313. #. type: code{#1}
  51314. #: guix-git/doc/guix.texi:34482
  51315. #, fuzzy, no-wrap
  51316. msgid "ssh-key"
  51317. msgstr "主机公钥"
  51318. #. type: table
  51319. #: guix-git/doc/guix.texi:34485
  51320. msgid "The path to the SSH private key to use to authenticate with the remote host. In the future, this field may not exist."
  51321. msgstr ""
  51322. #. type: code{#1}
  51323. #: guix-git/doc/guix.texi:34485
  51324. #, no-wrap
  51325. msgid "tags"
  51326. msgstr ""
  51327. #. type: table
  51328. #: guix-git/doc/guix.texi:34488
  51329. 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."
  51330. msgstr ""
  51331. #. type: code{#1}
  51332. #: guix-git/doc/guix.texi:34488
  51333. #, no-wrap
  51334. msgid "region"
  51335. msgstr ""
  51336. #. type: table
  51337. #: guix-git/doc/guix.texi:34490
  51338. msgid "A Digital Ocean region slug, such as @code{\"nyc3\"}."
  51339. msgstr ""
  51340. #. type: table
  51341. #: guix-git/doc/guix.texi:34492
  51342. msgid "A Digital Ocean size slug, such as @code{\"s-1vcpu-1gb\"}"
  51343. msgstr ""
  51344. #. type: code{#1}
  51345. #: guix-git/doc/guix.texi:34492
  51346. #, no-wrap
  51347. msgid "enable-ipv6?"
  51348. msgstr ""
  51349. #. type: table
  51350. #: guix-git/doc/guix.texi:34494
  51351. msgid "Whether or not the droplet should be created with IPv6 networking."
  51352. msgstr ""
  51353. #. type: section
  51354. #: guix-git/doc/guix.texi:34498
  51355. #, no-wrap
  51356. msgid "Running Guix in a Virtual Machine"
  51357. msgstr ""
  51358. #. type: Plain text
  51359. #: guix-git/doc/guix.texi:34506
  51360. 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)."
  51361. msgstr ""
  51362. #. type: Plain text
  51363. #: guix-git/doc/guix.texi:34513
  51364. 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})."
  51365. msgstr ""
  51366. #. type: Plain text
  51367. #: guix-git/doc/guix.texi:34516
  51368. msgid "Instead of using this pre-built image, one can also build their own image using @command{guix system image} (@pxref{Invoking guix system})."
  51369. msgstr ""
  51370. #. type: cindex
  51371. #: guix-git/doc/guix.texi:34517
  51372. #, no-wrap
  51373. msgid "QEMU"
  51374. msgstr ""
  51375. #. type: Plain text
  51376. #: guix-git/doc/guix.texi:34524
  51377. 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:"
  51378. msgstr ""
  51379. #. type: example
  51380. #: guix-git/doc/guix.texi:34531
  51381. #, no-wrap
  51382. msgid ""
  51383. "$ qemu-system-x86_64 \\\n"
  51384. " -nic user,model=virtio-net-pci \\\n"
  51385. " -enable-kvm -m 1024 \\\n"
  51386. " -device virtio-blk,drive=myhd \\\n"
  51387. " -drive if=none,file=/tmp/qemu-image,id=myhd\n"
  51388. msgstr ""
  51389. #. type: Plain text
  51390. #: guix-git/doc/guix.texi:34534
  51391. msgid "Here is what each of these options means:"
  51392. msgstr ""
  51393. #. type: item
  51394. #: guix-git/doc/guix.texi:34536
  51395. #, no-wrap
  51396. msgid "qemu-system-x86_64"
  51397. msgstr ""
  51398. #. type: table
  51399. #: guix-git/doc/guix.texi:34539
  51400. msgid "This specifies the hardware platform to emulate. This should match the host."
  51401. msgstr ""
  51402. #. type: item
  51403. #: guix-git/doc/guix.texi:34540
  51404. #, no-wrap
  51405. msgid "-nic user,model=virtio-net-pci"
  51406. msgstr ""
  51407. #. type: table
  51408. #: guix-git/doc/guix.texi:34548
  51409. 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}."
  51410. msgstr ""
  51411. #. type: item
  51412. #: guix-git/doc/guix.texi:34549
  51413. #, no-wrap
  51414. msgid "-enable-kvm"
  51415. msgstr ""
  51416. #. type: table
  51417. #: guix-git/doc/guix.texi:34553
  51418. msgid "If your system has hardware virtualization extensions, enabling the virtual machine support (KVM) of the Linux kernel will make things run faster."
  51419. msgstr ""
  51420. #. type: item
  51421. #: guix-git/doc/guix.texi:34555
  51422. #, no-wrap
  51423. msgid "-m 1024"
  51424. msgstr ""
  51425. #. type: table
  51426. #: guix-git/doc/guix.texi:34558
  51427. msgid "RAM available to the guest OS, in mebibytes. Defaults to 128@tie{}MiB, which may be insufficient for some operations."
  51428. msgstr ""
  51429. #. type: item
  51430. #: guix-git/doc/guix.texi:34559
  51431. #, no-wrap
  51432. msgid "-device virtio-blk,drive=myhd"
  51433. msgstr ""
  51434. #. type: table
  51435. #: guix-git/doc/guix.texi:34564
  51436. 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."
  51437. msgstr ""
  51438. #. type: item
  51439. #: guix-git/doc/guix.texi:34565
  51440. #, no-wrap
  51441. msgid "-drive if=none,file=/tmp/qemu-image,id=myhd"
  51442. msgstr ""
  51443. #. type: table
  51444. #: guix-git/doc/guix.texi:34568
  51445. msgid "Use our QCOW image, the @file{/tmp/qemu-image} file, as the backing store of the ``myhd'' drive."
  51446. msgstr ""
  51447. #. type: Plain text
  51448. #: guix-git/doc/guix.texi:34578
  51449. 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}."
  51450. msgstr ""
  51451. #. type: subsection
  51452. #: guix-git/doc/guix.texi:34579
  51453. #, no-wrap
  51454. msgid "Connecting Through SSH"
  51455. msgstr ""
  51456. #. type: Plain text
  51457. #: guix-git/doc/guix.texi:34587
  51458. 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"
  51459. msgstr ""
  51460. #. type: example
  51461. #: guix-git/doc/guix.texi:34590
  51462. #, no-wrap
  51463. msgid "$(guix system vm config.scm) -nic user,model=virtio-net-pci,hostfwd=tcp::10022-:22\n"
  51464. msgstr ""
  51465. #. type: Plain text
  51466. #: guix-git/doc/guix.texi:34593
  51467. msgid "To connect to the VM you can run"
  51468. msgstr ""
  51469. #. type: example
  51470. #: guix-git/doc/guix.texi:34596
  51471. #, no-wrap
  51472. msgid "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 10022 localhost\n"
  51473. msgstr ""
  51474. #. type: Plain text
  51475. #: guix-git/doc/guix.texi:34603
  51476. 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."
  51477. msgstr ""
  51478. #. type: quotation
  51479. #: guix-git/doc/guix.texi:34609
  51480. 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."
  51481. msgstr ""
  51482. #. type: subsection
  51483. #: guix-git/doc/guix.texi:34611
  51484. #, no-wrap
  51485. msgid "Using @command{virt-viewer} with Spice"
  51486. msgstr ""
  51487. #. type: Plain text
  51488. #: guix-git/doc/guix.texi:34617
  51489. 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."
  51490. msgstr ""
  51491. #. type: Plain text
  51492. #: guix-git/doc/guix.texi:34620
  51493. 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}:"
  51494. msgstr ""
  51495. #. type: example
  51496. #: guix-git/doc/guix.texi:34626
  51497. #, no-wrap
  51498. msgid ""
  51499. "-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5\n"
  51500. "-chardev spicevmc,name=vdagent,id=vdagent\n"
  51501. "-device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,\n"
  51502. "name=com.redhat.spice.0\n"
  51503. msgstr ""
  51504. #. type: Plain text
  51505. #: guix-git/doc/guix.texi:34630
  51506. msgid "You'll also need to add the @code{(spice-vdagent-service)} to your system definition (@pxref{Miscellaneous Services, Spice service})."
  51507. msgstr ""
  51508. #. type: Plain text
  51509. #: guix-git/doc/guix.texi:34637
  51510. 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?"
  51511. msgstr ""
  51512. #. type: cindex
  51513. #: guix-git/doc/guix.texi:34649
  51514. #, no-wrap
  51515. msgid "daemons"
  51516. msgstr ""
  51517. #. type: Plain text
  51518. #: guix-git/doc/guix.texi:34662
  51519. 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."
  51520. msgstr ""
  51521. #. type: cindex
  51522. #: guix-git/doc/guix.texi:34663
  51523. #, no-wrap
  51524. msgid "service extensions"
  51525. msgstr ""
  51526. #. type: Plain text
  51527. #: guix-git/doc/guix.texi:34675
  51528. 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})."
  51529. msgstr ""
  51530. #. type: Plain text
  51531. #: guix-git/doc/guix.texi:34679
  51532. 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:"
  51533. msgstr ""
  51534. #. type: Plain text
  51535. #: guix-git/doc/guix.texi:34681
  51536. msgid "@image{images/service-graph,,5in,Typical service extension graph.}"
  51537. msgstr ""
  51538. #. type: cindex
  51539. #: guix-git/doc/guix.texi:34682
  51540. #, no-wrap
  51541. msgid "system service"
  51542. msgstr ""
  51543. #. type: Plain text
  51544. #: guix-git/doc/guix.texi:34690
  51545. 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."
  51546. msgstr ""
  51547. #. type: cindex
  51548. #: guix-git/doc/guix.texi:34691
  51549. #, no-wrap
  51550. msgid "service types"
  51551. msgstr ""
  51552. #. type: Plain text
  51553. #: guix-git/doc/guix.texi:34697
  51554. 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."
  51555. msgstr ""
  51556. #. type: Plain text
  51557. #: guix-git/doc/guix.texi:34700
  51558. msgid "The following section describes the programming interface for service types and services."
  51559. msgstr ""
  51560. #. type: Plain text
  51561. #: guix-git/doc/guix.texi:34707
  51562. 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}):"
  51563. msgstr ""
  51564. #. type: lisp
  51565. #: guix-git/doc/guix.texi:34717
  51566. #, no-wrap
  51567. msgid ""
  51568. "(define guix-service-type\n"
  51569. " (service-type\n"
  51570. " (name 'guix)\n"
  51571. " (extensions\n"
  51572. " (list (service-extension shepherd-root-service-type guix-shepherd-service)\n"
  51573. " (service-extension account-service-type guix-accounts)\n"
  51574. " (service-extension activation-service-type guix-activation)))\n"
  51575. " (default-value (guix-configuration))))\n"
  51576. msgstr ""
  51577. #. type: Plain text
  51578. #: guix-git/doc/guix.texi:34721
  51579. msgid "It defines three things:"
  51580. msgstr ""
  51581. #. type: enumerate
  51582. #: guix-git/doc/guix.texi:34725
  51583. msgid "A name, whose sole purpose is to make inspection and debugging easier."
  51584. msgstr ""
  51585. #. type: enumerate
  51586. #: guix-git/doc/guix.texi:34730
  51587. 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."
  51588. msgstr ""
  51589. #. type: enumerate
  51590. #: guix-git/doc/guix.texi:34733
  51591. msgid "Every service type has at least one service extension. The only exception is the @dfn{boot service type}, which is the ultimate service."
  51592. msgstr ""
  51593. #. type: enumerate
  51594. #: guix-git/doc/guix.texi:34736
  51595. msgid "Optionally, a default value for instances of this type."
  51596. msgstr ""
  51597. #. type: Plain text
  51598. #: guix-git/doc/guix.texi:34739
  51599. msgid "In this example, @code{guix-service-type} extends three services:"
  51600. msgstr ""
  51601. #. type: item
  51602. #: guix-git/doc/guix.texi:34741
  51603. #, no-wrap
  51604. msgid "shepherd-root-service-type"
  51605. msgstr ""
  51606. #. type: table
  51607. #: guix-git/doc/guix.texi:34746
  51608. 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})."
  51609. msgstr ""
  51610. #. type: item
  51611. #: guix-git/doc/guix.texi:34747
  51612. #, no-wrap
  51613. msgid "account-service-type"
  51614. msgstr ""
  51615. #. type: table
  51616. #: guix-git/doc/guix.texi:34752
  51617. 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})."
  51618. msgstr ""
  51619. #. type: item
  51620. #: guix-git/doc/guix.texi:34753
  51621. #, no-wrap
  51622. msgid "activation-service-type"
  51623. msgstr ""
  51624. #. type: table
  51625. #: guix-git/doc/guix.texi:34757
  51626. 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."
  51627. msgstr ""
  51628. #. type: Plain text
  51629. #: guix-git/doc/guix.texi:34760
  51630. msgid "A service of this type is instantiated like this:"
  51631. msgstr ""
  51632. #. type: lisp
  51633. #: guix-git/doc/guix.texi:34766
  51634. #, no-wrap
  51635. msgid ""
  51636. "(service guix-service-type\n"
  51637. " (guix-configuration\n"
  51638. " (build-accounts 5)\n"
  51639. " (extra-options '(\"--gc-keep-derivations\"))))\n"
  51640. msgstr ""
  51641. #. type: Plain text
  51642. #: guix-git/doc/guix.texi:34774
  51643. 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:"
  51644. msgstr ""
  51645. #. type: lisp
  51646. #: guix-git/doc/guix.texi:34777
  51647. #, no-wrap
  51648. msgid "(service guix-service-type)\n"
  51649. msgstr ""
  51650. #. type: Plain text
  51651. #: guix-git/doc/guix.texi:34781
  51652. msgid "@code{guix-service-type} is quite simple because it extends other services but is not extensible itself."
  51653. msgstr ""
  51654. #. type: Plain text
  51655. #: guix-git/doc/guix.texi:34785
  51656. msgid "The service type for an @emph{extensible} service looks like this:"
  51657. msgstr ""
  51658. #. type: lisp
  51659. #: guix-git/doc/guix.texi:34792
  51660. #, no-wrap
  51661. msgid ""
  51662. "(define udev-service-type\n"
  51663. " (service-type (name 'udev)\n"
  51664. " (extensions\n"
  51665. " (list (service-extension shepherd-root-service-type\n"
  51666. " udev-shepherd-service)))\n"
  51667. "\n"
  51668. msgstr ""
  51669. #. type: lisp
  51670. #: guix-git/doc/guix.texi:34800
  51671. #, no-wrap
  51672. msgid ""
  51673. " (compose concatenate) ;concatenate the list of rules\n"
  51674. " (extend (lambda (config rules)\n"
  51675. " (match config\n"
  51676. " (($ <udev-configuration> udev initial-rules)\n"
  51677. " (udev-configuration\n"
  51678. " (udev udev) ;the udev package to use\n"
  51679. " (rules (append initial-rules rules)))))))))\n"
  51680. msgstr ""
  51681. #. type: Plain text
  51682. #: guix-git/doc/guix.texi:34806
  51683. 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:"
  51684. msgstr ""
  51685. #. type: item
  51686. #: guix-git/doc/guix.texi:34808
  51687. #, no-wrap
  51688. msgid "compose"
  51689. msgstr ""
  51690. #. type: table
  51691. #: guix-git/doc/guix.texi:34811
  51692. msgid "This is the procedure to @dfn{compose} the list of extensions to services of this type."
  51693. msgstr ""
  51694. #. type: table
  51695. #: guix-git/doc/guix.texi:34814
  51696. msgid "Services can extend the udev service by passing it lists of rules; we compose those extensions simply by concatenating them."
  51697. msgstr ""
  51698. #. type: item
  51699. #: guix-git/doc/guix.texi:34815
  51700. #, no-wrap
  51701. msgid "extend"
  51702. msgstr ""
  51703. #. type: table
  51704. #: guix-git/doc/guix.texi:34818
  51705. msgid "This procedure defines how the value of the service is @dfn{extended} with the composition of the extensions."
  51706. msgstr ""
  51707. #. type: table
  51708. #: guix-git/doc/guix.texi:34823
  51709. 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."
  51710. msgstr ""
  51711. #. type: table
  51712. #: guix-git/doc/guix.texi:34829
  51713. 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})."
  51714. msgstr ""
  51715. #. type: Plain text
  51716. #: guix-git/doc/guix.texi:34834
  51717. 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."
  51718. msgstr ""
  51719. #. type: Plain text
  51720. #: guix-git/doc/guix.texi:34837
  51721. msgid "Still here? The next section provides a reference of the programming interface for services."
  51722. msgstr ""
  51723. #. type: Plain text
  51724. #: guix-git/doc/guix.texi:34845
  51725. 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."
  51726. msgstr ""
  51727. #. type: deffn
  51728. #: guix-git/doc/guix.texi:34846
  51729. #, no-wrap
  51730. msgid "{Scheme Procedure} service @var{type} [@var{value}]"
  51731. msgstr ""
  51732. #. type: deffn
  51733. #: guix-git/doc/guix.texi:34850
  51734. 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."
  51735. msgstr ""
  51736. #. type: deffn
  51737. #: guix-git/doc/guix.texi:34854
  51738. 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."
  51739. msgstr ""
  51740. #. type: deffn
  51741. #: guix-git/doc/guix.texi:34856
  51742. msgid "For instance, this:"
  51743. msgstr ""
  51744. #. type: lisp
  51745. #: guix-git/doc/guix.texi:34859
  51746. #, no-wrap
  51747. msgid "(service openssh-service-type)\n"
  51748. msgstr ""
  51749. #. type: deffn
  51750. #: guix-git/doc/guix.texi:34863
  51751. msgid "is equivalent to this:"
  51752. msgstr ""
  51753. #. type: lisp
  51754. #: guix-git/doc/guix.texi:34867
  51755. #, no-wrap
  51756. msgid ""
  51757. "(service openssh-service-type\n"
  51758. " (openssh-configuration))\n"
  51759. msgstr ""
  51760. #. type: deffn
  51761. #: guix-git/doc/guix.texi:34871
  51762. msgid "In both cases the result is an instance of @code{openssh-service-type} with the default configuration."
  51763. msgstr ""
  51764. #. type: deffn
  51765. #: guix-git/doc/guix.texi:34873
  51766. #, no-wrap
  51767. msgid "{Scheme Procedure} service? @var{obj}"
  51768. msgstr ""
  51769. #. type: deffn
  51770. #: guix-git/doc/guix.texi:34875
  51771. msgid "Return true if @var{obj} is a service."
  51772. msgstr ""
  51773. #. type: deffn
  51774. #: guix-git/doc/guix.texi:34877
  51775. #, no-wrap
  51776. msgid "{Scheme Procedure} service-kind @var{service}"
  51777. msgstr ""
  51778. #. type: deffn
  51779. #: guix-git/doc/guix.texi:34879
  51780. msgid "Return the type of @var{service}---i.e., a @code{<service-type>} object."
  51781. msgstr ""
  51782. #. type: deffn
  51783. #: guix-git/doc/guix.texi:34881
  51784. #, no-wrap
  51785. msgid "{Scheme Procedure} service-value @var{service}"
  51786. msgstr ""
  51787. #. type: deffn
  51788. #: guix-git/doc/guix.texi:34884
  51789. msgid "Return the value associated with @var{service}. It represents its parameters."
  51790. msgstr ""
  51791. #. type: Plain text
  51792. #: guix-git/doc/guix.texi:34887
  51793. msgid "Here is an example of how a service is created and manipulated:"
  51794. msgstr ""
  51795. #. type: lisp
  51796. #: guix-git/doc/guix.texi:34896
  51797. #, no-wrap
  51798. msgid ""
  51799. "(define s\n"
  51800. " (service nginx-service-type\n"
  51801. " (nginx-configuration\n"
  51802. " (nginx nginx)\n"
  51803. " (log-directory log-directory)\n"
  51804. " (run-directory run-directory)\n"
  51805. " (file config-file))))\n"
  51806. "\n"
  51807. msgstr ""
  51808. #. type: lisp
  51809. #: guix-git/doc/guix.texi:34899
  51810. #, no-wrap
  51811. msgid ""
  51812. "(service? s)\n"
  51813. "@result{} #t\n"
  51814. "\n"
  51815. msgstr ""
  51816. #. type: lisp
  51817. #: guix-git/doc/guix.texi:34902
  51818. #, no-wrap
  51819. msgid ""
  51820. "(eq? (service-kind s) nginx-service-type)\n"
  51821. "@result{} #t\n"
  51822. msgstr ""
  51823. #. type: Plain text
  51824. #: guix-git/doc/guix.texi:34912
  51825. 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."
  51826. msgstr ""
  51827. #. type: deffn
  51828. #: guix-git/doc/guix.texi:34913
  51829. #, no-wrap
  51830. msgid "{Scheme Syntax} modify-services @var{services} @"
  51831. msgstr ""
  51832. #. type: deffn
  51833. #: guix-git/doc/guix.texi:34915
  51834. msgid "(@var{type} @var{variable} => @var{body}) @dots{}"
  51835. msgstr ""
  51836. #. type: deffn
  51837. #: guix-git/doc/guix.texi:34918
  51838. msgid "Modify the services listed in @var{services} according to the given clauses. Each clause has the form:"
  51839. msgstr ""
  51840. #. type: example
  51841. #: guix-git/doc/guix.texi:34921
  51842. #, no-wrap
  51843. msgid "(@var{type} @var{variable} => @var{body})\n"
  51844. msgstr ""
  51845. #. type: deffn
  51846. #: guix-git/doc/guix.texi:34928
  51847. 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}."
  51848. msgstr ""
  51849. #. type: deffn
  51850. #: guix-git/doc/guix.texi:34935
  51851. 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."
  51852. msgstr ""
  51853. #. type: deffn
  51854. #: guix-git/doc/guix.texi:34937
  51855. msgid "@xref{Using the Configuration System}, for example usage."
  51856. msgstr ""
  51857. #. type: Plain text
  51858. #: guix-git/doc/guix.texi:34944
  51859. 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."
  51860. msgstr ""
  51861. #. type: deftp
  51862. #: guix-git/doc/guix.texi:34945
  51863. #, no-wrap
  51864. msgid "{Data Type} service-type"
  51865. msgstr ""
  51866. #. type: cindex
  51867. #: guix-git/doc/guix.texi:34946
  51868. #, no-wrap
  51869. msgid "service type"
  51870. msgstr ""
  51871. #. type: deftp
  51872. #: guix-git/doc/guix.texi:34949
  51873. msgid "This is the representation of a @dfn{service type} (@pxref{Service Types and Services})."
  51874. msgstr ""
  51875. #. type: table
  51876. #: guix-git/doc/guix.texi:34953
  51877. msgid "This is a symbol, used only to simplify inspection and debugging."
  51878. msgstr ""
  51879. #. type: code{#1}
  51880. #: guix-git/doc/guix.texi:34954
  51881. #, no-wrap
  51882. msgid "extensions"
  51883. msgstr ""
  51884. #. type: table
  51885. #: guix-git/doc/guix.texi:34956
  51886. msgid "A non-empty list of @code{<service-extension>} objects (see below)."
  51887. msgstr ""
  51888. #. type: item
  51889. #: guix-git/doc/guix.texi:34957
  51890. #, no-wrap
  51891. msgid "@code{compose} (default: @code{#f})"
  51892. msgstr ""
  51893. #. type: table
  51894. #: guix-git/doc/guix.texi:34961
  51895. 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."
  51896. msgstr ""
  51897. #. type: table
  51898. #: guix-git/doc/guix.texi:34965
  51899. 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."
  51900. msgstr ""
  51901. #. type: item
  51902. #: guix-git/doc/guix.texi:34966
  51903. #, no-wrap
  51904. msgid "@code{extend} (default: @code{#f})"
  51905. msgstr ""
  51906. #. type: table
  51907. #: guix-git/doc/guix.texi:34968
  51908. msgid "If this is @code{#f}, services of this type cannot be extended."
  51909. msgstr ""
  51910. #. type: table
  51911. #: guix-git/doc/guix.texi:34974
  51912. 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."
  51913. msgstr ""
  51914. #. type: table
  51915. #: guix-git/doc/guix.texi:34980
  51916. 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})."
  51917. msgstr ""
  51918. #. type: item
  51919. #: guix-git/doc/guix.texi:34981
  51920. #, fuzzy, no-wrap
  51921. msgid "@code{default-value} (default: @code{&no-default-value})"
  51922. msgstr "@code{mate}(默认值:@code{mate})"
  51923. #. type: table
  51924. #: guix-git/doc/guix.texi:34984
  51925. msgid "The default value associated for instances of this service type. This allows users to use the @code{service} form without its second argument:"
  51926. msgstr ""
  51927. #. type: lisp
  51928. #: guix-git/doc/guix.texi:34987
  51929. #, no-wrap
  51930. msgid "(service @var{type})\n"
  51931. msgstr ""
  51932. #. type: table
  51933. #: guix-git/doc/guix.texi:34991
  51934. msgid "The returned service in this case has the default value specified by @var{type}."
  51935. msgstr ""
  51936. #. type: deftp
  51937. #: guix-git/doc/guix.texi:34994
  51938. msgid "@xref{Service Types and Services}, for examples."
  51939. msgstr ""
  51940. #. type: deffn
  51941. #: guix-git/doc/guix.texi:34996
  51942. #, no-wrap
  51943. msgid "{Scheme Procedure} service-extension @var{target-type} @"
  51944. msgstr ""
  51945. #. type: deffn
  51946. #: guix-git/doc/guix.texi:35002
  51947. 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."
  51948. msgstr ""
  51949. #. type: deffn
  51950. #: guix-git/doc/guix.texi:35004
  51951. #, no-wrap
  51952. msgid "{Scheme Procedure} service-extension? @var{obj}"
  51953. msgstr ""
  51954. #. type: deffn
  51955. #: guix-git/doc/guix.texi:35006
  51956. msgid "Return true if @var{obj} is a service extension."
  51957. msgstr ""
  51958. #. type: Plain text
  51959. #: guix-git/doc/guix.texi:35012
  51960. 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."
  51961. msgstr ""
  51962. #. type: deffn
  51963. #: guix-git/doc/guix.texi:35013
  51964. #, no-wrap
  51965. msgid "{Scheme Procedure} simple-service @var{name} @var{target} @var{value}"
  51966. msgstr ""
  51967. #. type: deffn
  51968. #: guix-git/doc/guix.texi:35017
  51969. 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."
  51970. msgstr ""
  51971. #. type: deffn
  51972. #: guix-git/doc/guix.texi:35020
  51973. msgid "For example, this extends mcron (@pxref{Scheduled Job Execution}) with an additional job:"
  51974. msgstr ""
  51975. #. type: lisp
  51976. #: guix-git/doc/guix.texi:35024
  51977. #, no-wrap
  51978. msgid ""
  51979. "(simple-service 'my-mcron-job mcron-service-type\n"
  51980. " #~(job '(next-hour (3)) \"guix gc -F 2G\"))\n"
  51981. msgstr ""
  51982. #. type: Plain text
  51983. #: guix-git/doc/guix.texi:35034
  51984. 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."
  51985. msgstr ""
  51986. #. type: deffn
  51987. #: guix-git/doc/guix.texi:35035
  51988. #, no-wrap
  51989. msgid "{Scheme Procedure} fold-services @var{services} @"
  51990. msgstr ""
  51991. #. type: deffn
  51992. #: guix-git/doc/guix.texi:35039
  51993. 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."
  51994. msgstr ""
  51995. #. type: Plain text
  51996. #: guix-git/doc/guix.texi:35043
  51997. msgid "Lastly, the @code{(gnu services)} module also defines several essential service types, some of which are listed below."
  51998. msgstr ""
  51999. #. type: defvr
  52000. #: guix-git/doc/guix.texi:35044
  52001. #, no-wrap
  52002. msgid "{Scheme Variable} system-service-type"
  52003. msgstr ""
  52004. #. type: defvr
  52005. #: guix-git/doc/guix.texi:35047
  52006. msgid "This is the root of the service graph. It produces the system directory as returned by the @command{guix system build} command."
  52007. msgstr ""
  52008. #. type: defvr
  52009. #: guix-git/doc/guix.texi:35049
  52010. #, no-wrap
  52011. msgid "{Scheme Variable} boot-service-type"
  52012. msgstr ""
  52013. #. type: defvr
  52014. #: guix-git/doc/guix.texi:35052
  52015. 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."
  52016. msgstr ""
  52017. #. type: defvr
  52018. #: guix-git/doc/guix.texi:35054
  52019. #, no-wrap
  52020. msgid "{Scheme Variable} etc-service-type"
  52021. msgstr ""
  52022. #. type: defvr
  52023. #: guix-git/doc/guix.texi:35058
  52024. 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:"
  52025. msgstr ""
  52026. #. type: lisp
  52027. #: guix-git/doc/guix.texi:35061
  52028. #, no-wrap
  52029. msgid "(list `(\"issue\" ,(plain-file \"issue\" \"Welcome!\\n\")))\n"
  52030. msgstr ""
  52031. #. type: defvr
  52032. #: guix-git/doc/guix.texi:35065
  52033. msgid "In this example, the effect would be to add an @file{/etc/issue} file pointing to the given file."
  52034. msgstr ""
  52035. #. type: defvr
  52036. #: guix-git/doc/guix.texi:35067
  52037. #, no-wrap
  52038. msgid "{Scheme Variable} setuid-program-service-type"
  52039. msgstr ""
  52040. #. type: defvr
  52041. #: guix-git/doc/guix.texi:35071
  52042. 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})."
  52043. msgstr ""
  52044. #. type: defvr
  52045. #: guix-git/doc/guix.texi:35073
  52046. #, no-wrap
  52047. msgid "{Scheme Variable} profile-service-type"
  52048. msgstr ""
  52049. #. type: defvr
  52050. #: guix-git/doc/guix.texi:35077
  52051. 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."
  52052. msgstr ""
  52053. #. type: anchor{#1}
  52054. #: guix-git/doc/guix.texi:35081
  52055. msgid "provenance-service-type"
  52056. msgstr ""
  52057. #. type: defvr
  52058. #: guix-git/doc/guix.texi:35081
  52059. #, no-wrap
  52060. msgid "{Scheme Variable} provenance-service-type"
  52061. msgstr ""
  52062. #. type: defvr
  52063. #: guix-git/doc/guix.texi:35085
  52064. 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}:"
  52065. msgstr ""
  52066. #. type: item
  52067. #: guix-git/doc/guix.texi:35087
  52068. #, fuzzy, no-wrap
  52069. msgid "channels.scm"
  52070. msgstr "通道"
  52071. #. type: table
  52072. #: guix-git/doc/guix.texi:35092
  52073. 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})."
  52074. msgstr ""
  52075. #. type: item
  52076. #: guix-git/doc/guix.texi:35093
  52077. #, fuzzy, no-wrap
  52078. msgid "configuration.scm"
  52079. msgstr "系统配置"
  52080. #. type: table
  52081. #: guix-git/doc/guix.texi:35098
  52082. 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."
  52083. msgstr ""
  52084. #. type: item
  52085. #: guix-git/doc/guix.texi:35099
  52086. #, no-wrap
  52087. msgid "provenance"
  52088. msgstr ""
  52089. #. type: table
  52090. #: guix-git/doc/guix.texi:35102
  52091. msgid "This contains the same information as the two other files but in a format that is more readily processable."
  52092. msgstr ""
  52093. #. type: defvr
  52094. #: guix-git/doc/guix.texi:35106
  52095. msgid "In general, these two pieces of information (channels and configuration file) are enough to reproduce the operating system ``from source''."
  52096. msgstr ""
  52097. #. type: quotation
  52098. #: guix-git/doc/guix.texi:35107
  52099. #, no-wrap
  52100. msgid "Caveats"
  52101. msgstr ""
  52102. #. type: quotation
  52103. #: guix-git/doc/guix.texi:35114
  52104. 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."
  52105. msgstr ""
  52106. #. type: quotation
  52107. #: guix-git/doc/guix.texi:35122
  52108. 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."
  52109. msgstr ""
  52110. #. type: defvr
  52111. #: guix-git/doc/guix.texi:35127
  52112. 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}."
  52113. msgstr ""
  52114. #. type: defvr
  52115. #: guix-git/doc/guix.texi:35129
  52116. #, no-wrap
  52117. msgid "{Scheme Variable} linux-loadable-module-service-type"
  52118. msgstr ""
  52119. #. type: defvr
  52120. #: guix-git/doc/guix.texi:35133
  52121. msgid "Type of the service that collects lists of packages containing kernel-loadable modules, and adds them to the set of kernel-loadable modules."
  52122. msgstr ""
  52123. #. type: defvr
  52124. #: guix-git/doc/guix.texi:35136
  52125. msgid "This service type is intended to be extended by other service types, such as below:"
  52126. msgstr ""
  52127. #. type: lisp
  52128. #: guix-git/doc/guix.texi:35142
  52129. #, no-wrap
  52130. msgid ""
  52131. "(simple-service 'installing-module\n"
  52132. " linux-loadable-module-service-type\n"
  52133. " (list module-to-install-1\n"
  52134. " module-to-install-2))\n"
  52135. msgstr ""
  52136. #. type: defvr
  52137. #: guix-git/doc/guix.texi:35146
  52138. 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."
  52139. msgstr ""
  52140. #. type: cindex
  52141. #: guix-git/doc/guix.texi:35151 guix-git/doc/guix.texi:35847
  52142. #, no-wrap
  52143. msgid "shepherd services"
  52144. msgstr ""
  52145. #. type: cindex
  52146. #: guix-git/doc/guix.texi:35152
  52147. #, no-wrap
  52148. msgid "PID 1"
  52149. msgstr ""
  52150. #. type: cindex
  52151. #: guix-git/doc/guix.texi:35153
  52152. #, no-wrap
  52153. msgid "init system"
  52154. msgstr ""
  52155. #. type: Plain text
  52156. #: guix-git/doc/guix.texi:35159
  52157. 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})."
  52158. msgstr ""
  52159. #. type: Plain text
  52160. #: guix-git/doc/guix.texi:35165
  52161. 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:"
  52162. msgstr ""
  52163. #. type: Plain text
  52164. #: guix-git/doc/guix.texi:35167
  52165. msgid "@image{images/shepherd-graph,,5in,Typical shepherd service graph.}"
  52166. msgstr ""
  52167. #. type: Plain text
  52168. #: guix-git/doc/guix.texi:35171
  52169. 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}})."
  52170. msgstr ""
  52171. #. type: Plain text
  52172. #: guix-git/doc/guix.texi:35175
  52173. 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."
  52174. msgstr ""
  52175. #. type: deftp
  52176. #: guix-git/doc/guix.texi:35176
  52177. #, no-wrap
  52178. msgid "{Data Type} shepherd-service"
  52179. msgstr ""
  52180. #. type: deftp
  52181. #: guix-git/doc/guix.texi:35178
  52182. msgid "The data type representing a service managed by the Shepherd."
  52183. msgstr ""
  52184. #. type: code{#1}
  52185. #: guix-git/doc/guix.texi:35180
  52186. #, no-wrap
  52187. msgid "provision"
  52188. msgstr ""
  52189. #. type: table
  52190. #: guix-git/doc/guix.texi:35182
  52191. msgid "This is a list of symbols denoting what the service provides."
  52192. msgstr ""
  52193. #. type: table
  52194. #: guix-git/doc/guix.texi:35187
  52195. 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."
  52196. msgstr ""
  52197. #. type: item
  52198. #: guix-git/doc/guix.texi:35188
  52199. #, fuzzy, no-wrap
  52200. msgid "@code{requirement} (default: @code{'()})"
  52201. msgstr "@code{features} (@code{'()})"
  52202. #. type: table
  52203. #: guix-git/doc/guix.texi:35190
  52204. msgid "List of symbols denoting the Shepherd services this one depends on."
  52205. msgstr ""
  52206. #. type: cindex
  52207. #: guix-git/doc/guix.texi:35191
  52208. #, no-wrap
  52209. msgid "one-shot services, for the Shepherd"
  52210. msgstr ""
  52211. #. type: table
  52212. #: guix-git/doc/guix.texi:35196
  52213. 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."
  52214. msgstr ""
  52215. #. type: item
  52216. #: guix-git/doc/guix.texi:35197
  52217. #, no-wrap
  52218. msgid "@code{respawn?} (default: @code{#t})"
  52219. msgstr ""
  52220. #. type: table
  52221. #: guix-git/doc/guix.texi:35200
  52222. msgid "Whether to restart the service when it stops, for instance when the underlying process dies."
  52223. msgstr ""
  52224. #. type: code{#1}
  52225. #: guix-git/doc/guix.texi:35201
  52226. #, no-wrap
  52227. msgid "start"
  52228. msgstr ""
  52229. #. type: itemx
  52230. #: guix-git/doc/guix.texi:35202
  52231. #, no-wrap
  52232. msgid "@code{stop} (default: @code{#~(const #f)})"
  52233. msgstr ""
  52234. #. type: table
  52235. #: guix-git/doc/guix.texi:35208
  52236. 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})."
  52237. msgstr ""
  52238. #. type: item
  52239. #: guix-git/doc/guix.texi:35209
  52240. #, no-wrap
  52241. msgid "@code{actions} (default: @code{'()})"
  52242. msgstr ""
  52243. #. type: cindex
  52244. #: guix-git/doc/guix.texi:35210
  52245. #, no-wrap
  52246. msgid "actions, of Shepherd services"
  52247. msgstr ""
  52248. #. type: table
  52249. #: guix-git/doc/guix.texi:35215
  52250. 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:"
  52251. msgstr ""
  52252. #. type: example
  52253. #: guix-git/doc/guix.texi:35218
  52254. #, no-wrap
  52255. msgid "herd @var{action} @var{service} [@var{arguments}@dots{}]\n"
  52256. msgstr ""
  52257. #. type: item
  52258. #: guix-git/doc/guix.texi:35220
  52259. #, fuzzy, no-wrap
  52260. msgid "@code{auto-start?} (default: @code{#t})"
  52261. msgstr "@code{port}(默认值:@code{22})"
  52262. #. type: table
  52263. #: guix-git/doc/guix.texi:35223
  52264. 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}."
  52265. msgstr ""
  52266. #. type: table
  52267. #: guix-git/doc/guix.texi:35226
  52268. msgid "A documentation string, as shown when running:"
  52269. msgstr ""
  52270. #. type: example
  52271. #: guix-git/doc/guix.texi:35229
  52272. #, no-wrap
  52273. msgid "herd doc @var{service-name}\n"
  52274. msgstr ""
  52275. #. type: table
  52276. #: guix-git/doc/guix.texi:35233
  52277. msgid "where @var{service-name} is one of the symbols in @code{provision} (@pxref{Invoking herd,,, shepherd, The GNU Shepherd Manual})."
  52278. msgstr ""
  52279. #. type: item
  52280. #: guix-git/doc/guix.texi:35234
  52281. #, no-wrap
  52282. msgid "@code{modules} (default: @code{%default-modules})"
  52283. msgstr ""
  52284. #. type: table
  52285. #: guix-git/doc/guix.texi:35237
  52286. msgid "This is the list of modules that must be in scope when @code{start} and @code{stop} are evaluated."
  52287. msgstr ""
  52288. #. type: Plain text
  52289. #: guix-git/doc/guix.texi:35245
  52290. 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}):"
  52291. msgstr ""
  52292. #. type: example
  52293. #: guix-git/doc/guix.texi:35257
  52294. #, no-wrap
  52295. msgid ""
  52296. "(let ((config (plain-file \"syslogd.conf\" \"@dots{}\")))\n"
  52297. " (shepherd-service\n"
  52298. " (documentation \"Run the syslog daemon (syslogd).\")\n"
  52299. " (provision '(syslogd))\n"
  52300. " (requirement '(user-processes))\n"
  52301. " (start #~(make-forkexec-constructor\n"
  52302. " (list #$(file-append inetutils \"/libexec/syslogd\")\n"
  52303. " \"--rcfile\" #$config)\n"
  52304. " #:pid-file \"/var/run/syslog.pid\"))\n"
  52305. " (stop #~(make-kill-destructor))))\n"
  52306. msgstr ""
  52307. #. type: Plain text
  52308. #: guix-git/doc/guix.texi:35272
  52309. 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})."
  52310. msgstr ""
  52311. #. type: deftp
  52312. #: guix-git/doc/guix.texi:35273
  52313. #, no-wrap
  52314. msgid "{Data Type} shepherd-action"
  52315. msgstr ""
  52316. #. type: deftp
  52317. #: guix-git/doc/guix.texi:35276
  52318. msgid "This is the data type that defines additional actions implemented by a Shepherd service (see above)."
  52319. msgstr ""
  52320. #. type: table
  52321. #: guix-git/doc/guix.texi:35280
  52322. msgid "Symbol naming the action."
  52323. msgstr ""
  52324. #. type: table
  52325. #: guix-git/doc/guix.texi:35283
  52326. msgid "This is a documentation string for the action. It can be viewed by running:"
  52327. msgstr ""
  52328. #. type: example
  52329. #: guix-git/doc/guix.texi:35286
  52330. #, no-wrap
  52331. msgid "herd doc @var{service} action @var{action}\n"
  52332. msgstr ""
  52333. #. type: item
  52334. #: guix-git/doc/guix.texi:35288
  52335. #, no-wrap
  52336. msgid "procedure"
  52337. msgstr ""
  52338. #. type: table
  52339. #: guix-git/doc/guix.texi:35292
  52340. 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})."
  52341. msgstr ""
  52342. #. type: deftp
  52343. #: guix-git/doc/guix.texi:35296
  52344. msgid "The following example defines an action called @code{say-hello} that kindly greets the user:"
  52345. msgstr ""
  52346. #. type: lisp
  52347. #: guix-git/doc/guix.texi:35305
  52348. #, no-wrap
  52349. msgid ""
  52350. "(shepherd-action\n"
  52351. " (name 'say-hello)\n"
  52352. " (documentation \"Say hi!\")\n"
  52353. " (procedure #~(lambda (running . args)\n"
  52354. " (format #t \"Hello, friend! arguments: ~s\\n\"\n"
  52355. " args)\n"
  52356. " #t)))\n"
  52357. msgstr ""
  52358. #. type: deftp
  52359. #: guix-git/doc/guix.texi:35308
  52360. msgid "Assuming this action is added to the @code{example} service, then you can do:"
  52361. msgstr ""
  52362. #. type: example
  52363. #: guix-git/doc/guix.texi:35314
  52364. #, no-wrap
  52365. msgid ""
  52366. "# herd say-hello example\n"
  52367. "Hello, friend! arguments: ()\n"
  52368. "# herd say-hello example a b c\n"
  52369. "Hello, friend! arguments: (\"a\" \"b\" \"c\")\n"
  52370. msgstr ""
  52371. #. type: deftp
  52372. #: guix-git/doc/guix.texi:35319
  52373. 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."
  52374. msgstr ""
  52375. #. type: defvr
  52376. #: guix-git/doc/guix.texi:35321
  52377. #, no-wrap
  52378. msgid "{Scheme Variable} shepherd-root-service-type"
  52379. msgstr ""
  52380. #. type: defvr
  52381. #: guix-git/doc/guix.texi:35323
  52382. msgid "The service type for the Shepherd ``root service''---i.e., PID@tie{}1."
  52383. msgstr ""
  52384. #. type: defvr
  52385. #: guix-git/doc/guix.texi:35328 guix-git/doc/guix.texi:35859
  52386. 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."
  52387. msgstr ""
  52388. #. type: deftp
  52389. #: guix-git/doc/guix.texi:35330 guix-git/doc/guix.texi:35861
  52390. #, fuzzy, no-wrap
  52391. msgid "{Data Type} shepherd-configuration"
  52392. msgstr "{数据类型} build-machine"
  52393. #. type: deftp
  52394. #: guix-git/doc/guix.texi:35332 guix-git/doc/guix.texi:35863
  52395. #, fuzzy
  52396. msgid "This data type represents the Shepherd's configuration."
  52397. msgstr "管理操作系统配置。"
  52398. #. type: item
  52399. #: guix-git/doc/guix.texi:35334 guix-git/doc/guix.texi:35865
  52400. #, fuzzy, no-wrap
  52401. msgid "shepherd (default: @code{shepherd})"
  52402. msgstr "@code{mate}(默认值:@code{mate})"
  52403. #. type: table
  52404. #: guix-git/doc/guix.texi:35336 guix-git/doc/guix.texi:35867
  52405. #, fuzzy
  52406. msgid "The Shepherd package to use."
  52407. msgstr "软件包数据类型。"
  52408. #. type: item
  52409. #: guix-git/doc/guix.texi:35337 guix-git/doc/guix.texi:35871
  52410. #, fuzzy, no-wrap
  52411. msgid "services (default: @code{'()})"
  52412. msgstr "@code{features} (@code{'()})"
  52413. #. type: table
  52414. #: guix-git/doc/guix.texi:35341 guix-git/doc/guix.texi:35875
  52415. msgid "A list of @code{<shepherd-service>} to start. You should probably use the service extension mechanism instead (@pxref{Shepherd Services})."
  52416. msgstr ""
  52417. #. type: Plain text
  52418. #: guix-git/doc/guix.texi:35346
  52419. msgid "The following example specifies the Shepherd package for the operating system:"
  52420. msgstr ""
  52421. #. type: lisp
  52422. #: guix-git/doc/guix.texi:35361
  52423. #, no-wrap
  52424. msgid ""
  52425. "(operating-system\n"
  52426. " ;; ...\n"
  52427. " (services (append (list openssh-service-type))\n"
  52428. " ;; ...\n"
  52429. " %desktop-services)\n"
  52430. " ;; ...\n"
  52431. " ;; Use own Shepherd package.\n"
  52432. " (essential-services\n"
  52433. " (modify-services (operating-system-default-essential-services\n"
  52434. " this-operating-system)\n"
  52435. " (shepherd-root-service-type config => (shepherd-configuration\n"
  52436. " (inherit config)\n"
  52437. " (shepherd my-shepherd))))))\n"
  52438. msgstr ""
  52439. #. type: defvr
  52440. #: guix-git/doc/guix.texi:35363
  52441. #, no-wrap
  52442. msgid "{Scheme Variable} %shepherd-root-service"
  52443. msgstr ""
  52444. #. type: defvr
  52445. #: guix-git/doc/guix.texi:35365
  52446. msgid "This service represents PID@tie{}1."
  52447. msgstr ""
  52448. #. type: cindex
  52449. #: guix-git/doc/guix.texi:35369
  52450. #, fuzzy, no-wrap
  52451. msgid "home configuration"
  52452. msgstr "系统配置"
  52453. #. type: Plain text
  52454. #: guix-git/doc/guix.texi:35381
  52455. 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})."
  52456. msgstr ""
  52457. #. type: Plain text
  52458. #: guix-git/doc/guix.texi:35398
  52459. 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."
  52460. msgstr ""
  52461. #. type: Plain text
  52462. #: guix-git/doc/guix.texi:35401
  52463. msgid "Using Guix for managing home environments provides a number of advantages:"
  52464. msgstr ""
  52465. #. type: item
  52466. #: guix-git/doc/guix.texi:35404
  52467. #, no-wrap
  52468. msgid "All software can be configured in one language (Guile Scheme),"
  52469. msgstr ""
  52470. #. type: itemize
  52471. #: guix-git/doc/guix.texi:35407
  52472. msgid "this gives users the ability to share values between configurations of different programs."
  52473. msgstr ""
  52474. #. type: item
  52475. #: guix-git/doc/guix.texi:35408
  52476. #, no-wrap
  52477. msgid "A well-defined home environment is self-contained and can be"
  52478. msgstr ""
  52479. #. type: itemize
  52480. #: guix-git/doc/guix.texi:35411
  52481. msgid "created in a declarative and reproducible way---there is no need to grab external binaries or manually edit some configuration file."
  52482. msgstr ""
  52483. #. type: item
  52484. #: guix-git/doc/guix.texi:35412
  52485. #, no-wrap
  52486. msgid "After every @command{guix home reconfigure} invocation, a new home"
  52487. msgstr ""
  52488. #. type: itemize
  52489. #: guix-git/doc/guix.texi:35416
  52490. 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."
  52491. msgstr ""
  52492. #. type: item
  52493. #: guix-git/doc/guix.texi:35417
  52494. #, no-wrap
  52495. msgid "It is possible to manage stateful data with Guix Home, this"
  52496. msgstr ""
  52497. #. type: itemize
  52498. #: guix-git/doc/guix.texi:35422
  52499. 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."
  52500. msgstr ""
  52501. #. type: section
  52502. #: guix-git/doc/guix.texi:35430 guix-git/doc/guix.texi:35432
  52503. #: guix-git/doc/guix.texi:35433
  52504. #, fuzzy, no-wrap
  52505. #| msgid "Preparing the isolated build environment."
  52506. msgid "Declaring the Home Environment"
  52507. msgstr "准备隔离的构建环境。"
  52508. #. type: menuentry
  52509. #: guix-git/doc/guix.texi:35430
  52510. #, fuzzy
  52511. #| msgid "Customizing your GNU system."
  52512. msgid "Customizing your Home."
  52513. msgstr "定制你的GNU系统。"
  52514. #. type: section
  52515. #: guix-git/doc/guix.texi:35430 guix-git/doc/guix.texi:35468
  52516. #: guix-git/doc/guix.texi:35469
  52517. #, fuzzy, no-wrap
  52518. #| msgid "Configuring the boot loader."
  52519. msgid "Configuring the Shell"
  52520. msgstr "设置引导程序。"
  52521. #. type: menuentry
  52522. #: guix-git/doc/guix.texi:35430
  52523. #, fuzzy
  52524. #| msgid "Invoking guix environment"
  52525. msgid "Enabling home environment."
  52526. msgstr "调用guix environment"
  52527. #. type: section
  52528. #: guix-git/doc/guix.texi:35430 guix-git/doc/guix.texi:35515
  52529. #: guix-git/doc/guix.texi:35516
  52530. #, fuzzy, no-wrap
  52531. #| msgid "Game Services"
  52532. msgid "Home Services"
  52533. msgstr "游戏服务"
  52534. #. type: menuentry
  52535. #: guix-git/doc/guix.texi:35430
  52536. #, fuzzy
  52537. #| msgid "Specifying system services."
  52538. msgid "Specifying home services."
  52539. msgstr "指定系统服务。"
  52540. #. type: menuentry
  52541. #: guix-git/doc/guix.texi:35430
  52542. #, fuzzy
  52543. #| msgid "Instantiating a system configuration."
  52544. msgid "Instantiating a home configuration."
  52545. msgstr "实例化一个系统配置。"
  52546. #. type: Plain text
  52547. #: guix-git/doc/guix.texi:35442
  52548. 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}). 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 dotfiles, before installing any configuration files, Guix Home will back up existing config files to a separate place in the home folder."
  52549. msgstr ""
  52550. #. type: quotation
  52551. #: guix-git/doc/guix.texi:35448
  52552. 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})."
  52553. msgstr ""
  52554. #. type: findex
  52555. #: guix-git/doc/guix.texi:35450
  52556. #, fuzzy, no-wrap
  52557. msgid "home-environment"
  52558. msgstr "构建环境"
  52559. #. type: include
  52560. #: guix-git/doc/guix.texi:35452
  52561. #, fuzzy, no-wrap
  52562. msgid "he-config-bare-bones.scm"
  52563. msgstr "系统配置"
  52564. #. type: Plain text
  52565. #: guix-git/doc/guix.texi:35459
  52566. 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."
  52567. msgstr ""
  52568. #. type: Plain text
  52569. #: guix-git/doc/guix.texi:35467
  52570. 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 @ref{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."
  52571. msgstr ""
  52572. #. type: Plain text
  52573. #: guix-git/doc/guix.texi:35472
  52574. msgid "This section is safe to skip if your shell or shells are managed by Guix Home. Otherwise, read it carefully."
  52575. msgstr ""
  52576. #. type: Plain text
  52577. #: guix-git/doc/guix.texi:35479
  52578. 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}."
  52579. msgstr ""
  52580. #. type: Plain text
  52581. #: guix-git/doc/guix.texi:35486
  52582. 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}."
  52583. msgstr ""
  52584. #. type: Plain text
  52585. #: guix-git/doc/guix.texi:35489
  52586. msgid "Guix Home will always create @file{~/.profile}, which contains the following lines:"
  52587. msgstr ""
  52588. #. type: example
  52589. #: guix-git/doc/guix.texi:35494
  52590. #, no-wrap
  52591. msgid ""
  52592. "HOME_ENVIRONMENT=$HOME/.guix-home\n"
  52593. ". $HOME_ENVIRONMENT/setup-environment\n"
  52594. "$HOME_ENVIRONMENT/on-first-login\n"
  52595. msgstr ""
  52596. #. type: Plain text
  52597. #: guix-git/doc/guix.texi:35504
  52598. 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."
  52599. msgstr ""
  52600. #. type: Plain text
  52601. #: guix-git/doc/guix.texi:35509
  52602. 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}."
  52603. msgstr ""
  52604. #. type: quotation
  52605. #: guix-git/doc/guix.texi:35513
  52606. msgid "This step is only required if your shell is NOT managed by Guix Home. Otherwise, everything will be done automatically."
  52607. msgstr ""
  52608. #. type: cindex
  52609. #: guix-git/doc/guix.texi:35517
  52610. #, fuzzy, no-wrap
  52611. #| msgid "Other services."
  52612. msgid "home services"
  52613. msgstr "其它服务。"
  52614. #. type: Plain text
  52615. #: guix-git/doc/guix.texi:35526
  52616. 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."
  52617. msgstr ""
  52618. #. type: Plain text
  52619. #: guix-git/doc/guix.texi:35534
  52620. 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}}."
  52621. msgstr ""
  52622. #. type: Plain text
  52623. #: guix-git/doc/guix.texi:35545
  52624. msgid "A good way to discover avaliable 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)}."
  52625. msgstr ""
  52626. #. type: subsection
  52627. #: guix-git/doc/guix.texi:35551 guix-git/doc/guix.texi:35554
  52628. #: guix-git/doc/guix.texi:35555
  52629. #, fuzzy, no-wrap
  52630. #| msgid "Essential system services."
  52631. msgid "Essential Home Services"
  52632. msgstr "必要的系统服务。"
  52633. #. type: menuentry
  52634. #: guix-git/doc/guix.texi:35551
  52635. msgid "Environment variables, packages, on-* scripts."
  52636. msgstr ""
  52637. #. type: menuentry
  52638. #: guix-git/doc/guix.texi:35551
  52639. #, fuzzy
  52640. #| msgid "Shepherd Services"
  52641. msgid "Shells: Shells Home Services"
  52642. msgstr "Shepherd服务"
  52643. #. type: menuentry
  52644. #: guix-git/doc/guix.texi:35551
  52645. msgid "POSIX shells, Bash, Zsh."
  52646. msgstr ""
  52647. #. type: menuentry
  52648. #: guix-git/doc/guix.texi:35551
  52649. #, fuzzy
  52650. msgid "Mcron: Mcron Home Service"
  52651. msgstr "声音服务"
  52652. #. type: menuentry
  52653. #: guix-git/doc/guix.texi:35551
  52654. #, fuzzy
  52655. #| msgid "Scheduled Job Execution"
  52656. msgid "Scheduled User's Job Execution."
  52657. msgstr "执行计划任务"
  52658. #. type: menuentry
  52659. #: guix-git/doc/guix.texi:35551
  52660. #, fuzzy
  52661. #| msgid "Shepherd Services"
  52662. msgid "Shepherd: Shepherd Home Service"
  52663. msgstr "Shepherd服务"
  52664. #. type: menuentry
  52665. #: guix-git/doc/guix.texi:35551
  52666. #, fuzzy
  52667. #| msgid "Messaging services."
  52668. msgid "Managing User's Daemons."
  52669. msgstr "消息服务。"
  52670. #. type: Plain text
  52671. #: guix-git/doc/guix.texi:35560
  52672. 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."
  52673. msgstr ""
  52674. #. type: cindex
  52675. #: guix-git/doc/guix.texi:35561
  52676. #, fuzzy, no-wrap
  52677. msgid "environment variables"
  52678. msgstr "构建环境"
  52679. #. type: defvr
  52680. #: guix-git/doc/guix.texi:35563
  52681. #, no-wrap
  52682. msgid "{Scheme Variable} home-environment-variables-service-type"
  52683. msgstr ""
  52684. #. type: defvr
  52685. #: guix-git/doc/guix.texi:35568
  52686. 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."
  52687. msgstr ""
  52688. #. type: lisp
  52689. #: guix-git/doc/guix.texi:35572
  52690. #, no-wrap
  52691. msgid ""
  52692. "(list (\"ENV_VAR1\" . \"value1\")\n"
  52693. " (\"ENV_VAR2\" . \"value2\"))\n"
  52694. msgstr ""
  52695. #. type: defvr
  52696. #: guix-git/doc/guix.texi:35577
  52697. 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)}."
  52698. msgstr ""
  52699. #. type: lisp
  52700. #: guix-git/doc/guix.texi:35585
  52701. #, no-wrap
  52702. msgid ""
  52703. "(simple-service 'some-useful-env-vars-service\n"
  52704. "\t\thome-environment-variables-service-type\n"
  52705. "\t\t`((\"LESSHISTFILE\" . \"$XDG_CACHE_HOME/.lesshst\")\n"
  52706. " (\"SHELL\" . ,(file-append zsh \"/bin/zsh\"))\n"
  52707. " (\"USELESS_VAR\" . #f)\n"
  52708. " (\"_JAVA_AWT_WM_NONREPARENTING\" . #t)))\n"
  52709. msgstr ""
  52710. #. type: defvr
  52711. #: guix-git/doc/guix.texi:35590
  52712. 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):"
  52713. msgstr ""
  52714. #. type: example
  52715. #: guix-git/doc/guix.texi:35595
  52716. #, no-wrap
  52717. msgid ""
  52718. "export LESSHISTFILE=$XDG_CACHE_HOME/.lesshst\n"
  52719. "export SHELL=/gnu/store/2hsg15n644f0glrcbkb1kqknmmqdar03-zsh-5.8/bin/zsh\n"
  52720. "export _JAVA_AWT_WM_NONREPARENTING\n"
  52721. msgstr ""
  52722. #. type: quotation
  52723. #: guix-git/doc/guix.texi:35602
  52724. 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."
  52725. msgstr ""
  52726. #. type: defvr
  52727. #: guix-git/doc/guix.texi:35615
  52728. 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."
  52729. msgstr ""
  52730. #. type: defvr
  52731. #: guix-git/doc/guix.texi:35618
  52732. #, no-wrap
  52733. msgid "{Scheme Variable} home-profile-service-type"
  52734. msgstr ""
  52735. #. type: defvr
  52736. #: guix-git/doc/guix.texi:35624
  52737. 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 avaliable to the user will also extend this service type."
  52738. msgstr ""
  52739. #. type: defvr
  52740. #: guix-git/doc/guix.texi:35626
  52741. msgid "The extension value is just a list of packages:"
  52742. msgstr ""
  52743. #. type: lisp
  52744. #: guix-git/doc/guix.texi:35629
  52745. #, no-wrap
  52746. msgid "(list htop vim emacs)\n"
  52747. msgstr ""
  52748. #. type: defvr
  52749. #: guix-git/doc/guix.texi:35639
  52750. 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."
  52751. msgstr ""
  52752. #. type: Plain text
  52753. #: guix-git/doc/guix.texi:35643
  52754. msgid "There are few more essential services, but users are not expected to extend them."
  52755. msgstr ""
  52756. #. type: defvr
  52757. #: guix-git/doc/guix.texi:35644
  52758. #, no-wrap
  52759. msgid "{Scheme Variable} home-service-type"
  52760. msgstr ""
  52761. #. type: defvr
  52762. #: guix-git/doc/guix.texi:35649
  52763. 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."
  52764. msgstr ""
  52765. #. type: defvr
  52766. #: guix-git/doc/guix.texi:35651
  52767. #, no-wrap
  52768. msgid "{Scheme Variable} home-run-on-first-login-service-type"
  52769. msgstr ""
  52770. #. type: defvr
  52771. #: guix-git/doc/guix.texi:35656
  52772. 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."
  52773. msgstr ""
  52774. #. type: defvr
  52775. #: guix-git/doc/guix.texi:35662
  52776. 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-shpeherd-service-type} with a Shepherd service (@pxref{Shepherd Services}), or extend the shell's startup file with required command using the appropriate service type."
  52777. msgstr ""
  52778. #. type: defvr
  52779. #: guix-git/doc/guix.texi:35664
  52780. #, no-wrap
  52781. msgid "{Scheme Variable} home-activation-service-type"
  52782. msgstr ""
  52783. #. type: defvr
  52784. #: guix-git/doc/guix.texi:35668
  52785. 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."
  52786. msgstr ""
  52787. #. type: node
  52788. #: guix-git/doc/guix.texi:35670
  52789. #, fuzzy, no-wrap
  52790. #| msgid "Shepherd Services"
  52791. msgid "Shells Home Services"
  52792. msgstr "Shepherd服务"
  52793. #. type: subsection
  52794. #: guix-git/doc/guix.texi:35671
  52795. #, no-wrap
  52796. msgid "Shells"
  52797. msgstr ""
  52798. #. type: cindex
  52799. #: guix-git/doc/guix.texi:35673 guix-git/doc/guix.texi:35900
  52800. #, no-wrap
  52801. msgid "shell"
  52802. msgstr ""
  52803. #. type: cindex
  52804. #: guix-git/doc/guix.texi:35674
  52805. #, no-wrap
  52806. msgid "login shell"
  52807. msgstr ""
  52808. #. type: cindex
  52809. #: guix-git/doc/guix.texi:35675
  52810. #, no-wrap
  52811. msgid "interactive shell"
  52812. msgstr ""
  52813. #. type: cindex
  52814. #: guix-git/doc/guix.texi:35676 guix-git/doc/guix.texi:35902
  52815. #, no-wrap
  52816. msgid "bash"
  52817. msgstr ""
  52818. #. type: cindex
  52819. #: guix-git/doc/guix.texi:35677 guix-git/doc/guix.texi:35903
  52820. #, no-wrap
  52821. msgid "zsh"
  52822. msgstr ""
  52823. #. type: Plain text
  52824. #: guix-git/doc/guix.texi:35683
  52825. 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."
  52826. msgstr ""
  52827. #. type: Plain text
  52828. #: guix-git/doc/guix.texi:35693
  52829. 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."
  52830. msgstr ""
  52831. #. type: subsubheading
  52832. #: guix-git/doc/guix.texi:35694
  52833. #, fuzzy, no-wrap
  52834. #| msgid "Certificate Services"
  52835. msgid "Shell Profile Service"
  52836. msgstr "证书服务"
  52837. #. type: deftp
  52838. #: guix-git/doc/guix.texi:35696
  52839. #, fuzzy, no-wrap
  52840. msgid "{Data Type} home-shell-profile-configuration"
  52841. msgstr "管理操作系统配置。"
  52842. #. type: deftp
  52843. #: guix-git/doc/guix.texi:35698
  52844. msgid "Available @code{home-shell-profile-configuration} fields are:"
  52845. msgstr ""
  52846. #. type: item
  52847. #: guix-git/doc/guix.texi:35700
  52848. #, fuzzy, no-wrap
  52849. msgid "@code{profile} (default: @code{()}) (type: text-config)"
  52850. msgstr "@code{challenge}(默认值:@code{#f})"
  52851. #. type: table
  52852. #: guix-git/doc/guix.texi:35710
  52853. 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 have to be evaluated by login shell to make home-environment's profile avaliable 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."
  52854. msgstr ""
  52855. #. type: subsubheading
  52856. #: guix-git/doc/guix.texi:35715
  52857. #, fuzzy, no-wrap
  52858. #| msgid "Base Services"
  52859. msgid "Bash Home Service"
  52860. msgstr "基础服务"
  52861. #. type: deftp
  52862. #: guix-git/doc/guix.texi:35717
  52863. #, fuzzy, no-wrap
  52864. msgid "{Data Type} home-bash-configuration"
  52865. msgstr "{数据类型} build-machine"
  52866. #. type: deftp
  52867. #: guix-git/doc/guix.texi:35719
  52868. msgid "Available @code{home-bash-configuration} fields are:"
  52869. msgstr ""
  52870. #. type: item
  52871. #: guix-git/doc/guix.texi:35721
  52872. #, fuzzy, no-wrap
  52873. msgid "@code{package} (default: @code{bash}) (type: package)"
  52874. msgstr "@code{xfce}(默认值:@code{xfce})"
  52875. #. type: table
  52876. #: guix-git/doc/guix.texi:35723
  52877. #, fuzzy
  52878. msgid "The Bash package to use."
  52879. msgstr "软件包数据类型。"
  52880. #. type: item
  52881. #: guix-git/doc/guix.texi:35724
  52882. #, fuzzy, no-wrap
  52883. msgid "@code{guix-defaults?} (default: @code{#t}) (type: boolean)"
  52884. msgstr "@code{challenge}(默认值:@code{#f})"
  52885. #. type: table
  52886. #: guix-git/doc/guix.texi:35727
  52887. msgid "Add sane defaults like reading @file{/etc/bashrc}, coloring output for @code{ls} provided by guix to @file{.bashrc}."
  52888. msgstr ""
  52889. #. type: item
  52890. #: guix-git/doc/guix.texi:35728 guix-git/doc/guix.texi:35768
  52891. #, fuzzy, no-wrap
  52892. msgid "@code{environment-variables} (default: @code{()}) (type: alist)"
  52893. msgstr "@code{features} (@code{'()})"
  52894. #. type: table
  52895. #: guix-git/doc/guix.texi:35730
  52896. msgid "Association list of environment variables to set for the Bash session."
  52897. msgstr ""
  52898. #. type: item
  52899. #: guix-git/doc/guix.texi:35731
  52900. #, fuzzy, no-wrap
  52901. msgid "@code{bash-profile} (default: @code{()}) (type: text-config)"
  52902. msgstr "@code{xfce}(默认值:@code{xfce})"
  52903. #. type: table
  52904. #: guix-git/doc/guix.texi:35736
  52905. 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."
  52906. msgstr ""
  52907. #. type: item
  52908. #: guix-git/doc/guix.texi:35737
  52909. #, fuzzy, no-wrap
  52910. msgid "@code{bashrc} (default: @code{()}) (type: text-config)"
  52911. msgstr "@code{xfce}(默认值:@code{xfce})"
  52912. #. type: table
  52913. #: guix-git/doc/guix.texi:35742
  52914. 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)."
  52915. msgstr ""
  52916. #. type: item
  52917. #: guix-git/doc/guix.texi:35743
  52918. #, fuzzy, no-wrap
  52919. msgid "@code{bash-logout} (default: @code{()}) (type: text-config)"
  52920. msgstr "@code{xfce}(默认值:@code{xfce})"
  52921. #. type: table
  52922. #: guix-git/doc/guix.texi:35748
  52923. 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)."
  52924. msgstr ""
  52925. #. type: subsubheading
  52926. #: guix-git/doc/guix.texi:35753
  52927. #, fuzzy, no-wrap
  52928. #| msgid "Game Services"
  52929. msgid "Zsh Home Service"
  52930. msgstr "游戏服务"
  52931. #. type: deftp
  52932. #: guix-git/doc/guix.texi:35755
  52933. #, fuzzy, no-wrap
  52934. msgid "{Data Type} home-zsh-configuration"
  52935. msgstr "{数据类型} build-machine"
  52936. #. type: deftp
  52937. #: guix-git/doc/guix.texi:35757
  52938. msgid "Available @code{home-zsh-configuration} fields are:"
  52939. msgstr ""
  52940. #. type: item
  52941. #: guix-git/doc/guix.texi:35759
  52942. #, fuzzy, no-wrap
  52943. msgid "@code{package} (default: @code{zsh}) (type: package)"
  52944. msgstr "@code{xfce}(默认值:@code{xfce})"
  52945. #. type: table
  52946. #: guix-git/doc/guix.texi:35761
  52947. #, fuzzy
  52948. msgid "The Zsh package to use."
  52949. msgstr "软件包数据类型。"
  52950. #. type: item
  52951. #: guix-git/doc/guix.texi:35762
  52952. #, fuzzy, no-wrap
  52953. msgid "@code{xdg-flavor?} (default: @code{#t}) (type: boolean)"
  52954. msgstr "@code{challenge}(默认值:@code{#f})"
  52955. #. type: table
  52956. #: guix-git/doc/guix.texi:35767
  52957. 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}."
  52958. msgstr ""
  52959. #. type: table
  52960. #: guix-git/doc/guix.texi:35770
  52961. msgid "Association list of environment variables to set for the Zsh session."
  52962. msgstr ""
  52963. #. type: item
  52964. #: guix-git/doc/guix.texi:35771
  52965. #, fuzzy, no-wrap
  52966. msgid "@code{zshenv} (default: @code{()}) (type: text-config)"
  52967. msgstr "@code{xfce}(默认值:@code{xfce})"
  52968. #. type: table
  52969. #: guix-git/doc/guix.texi:35776
  52970. 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}."
  52971. msgstr ""
  52972. #. type: item
  52973. #: guix-git/doc/guix.texi:35777
  52974. #, fuzzy, no-wrap
  52975. msgid "@code{zprofile} (default: @code{()}) (type: text-config)"
  52976. msgstr "@code{challenge}(默认值:@code{#f})"
  52977. #. type: table
  52978. #: guix-git/doc/guix.texi:35782
  52979. 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}."
  52980. msgstr ""
  52981. #. type: item
  52982. #: guix-git/doc/guix.texi:35783
  52983. #, fuzzy, no-wrap
  52984. msgid "@code{zshrc} (default: @code{()}) (type: text-config)"
  52985. msgstr "@code{xfce}(默认值:@code{xfce})"
  52986. #. type: table
  52987. #: guix-git/doc/guix.texi:35788
  52988. 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)."
  52989. msgstr ""
  52990. #. type: item
  52991. #: guix-git/doc/guix.texi:35789
  52992. #, fuzzy, no-wrap
  52993. msgid "@code{zlogin} (default: @code{()}) (type: text-config)"
  52994. msgstr "@code{speed}(默认值:@code{1.0})"
  52995. #. type: table
  52996. #: guix-git/doc/guix.texi:35793
  52997. 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."
  52998. msgstr ""
  52999. #. type: item
  53000. #: guix-git/doc/guix.texi:35794
  53001. #, fuzzy, no-wrap
  53002. msgid "@code{zlogout} (default: @code{()}) (type: text-config)"
  53003. msgstr "@code{xfce}(默认值:@code{xfce})"
  53004. #. type: table
  53005. #: guix-git/doc/guix.texi:35799
  53006. 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)."
  53007. msgstr ""
  53008. #. type: node
  53009. #: guix-git/doc/guix.texi:35804
  53010. #, fuzzy, no-wrap
  53011. #| msgid "Monitoring Services"
  53012. msgid "Mcron Home Service"
  53013. msgstr "监控服务"
  53014. #. type: subsection
  53015. #: guix-git/doc/guix.texi:35805
  53016. #, fuzzy, no-wrap
  53017. #| msgid "Scheduled Job Execution"
  53018. msgid "Scheduled User's Job Execution"
  53019. msgstr "执行计划任务"
  53020. #. type: Plain text
  53021. #: guix-git/doc/guix.texi:35818
  53022. 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."
  53023. msgstr ""
  53024. #. type: defvr
  53025. #: guix-git/doc/guix.texi:35819
  53026. #, no-wrap
  53027. msgid "{Scheme Variable} home-mcron-service-type"
  53028. msgstr ""
  53029. #. type: defvr
  53030. #: guix-git/doc/guix.texi:35823
  53031. 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."
  53032. msgstr ""
  53033. #. type: deftp
  53034. #: guix-git/doc/guix.texi:35830
  53035. #, fuzzy, no-wrap
  53036. msgid "{Data Type} home-mcron-configuration"
  53037. msgstr "{数据类型} build-machine"
  53038. #. type: node
  53039. #: guix-git/doc/guix.texi:35844
  53040. #, fuzzy, no-wrap
  53041. #| msgid "Shepherd Services"
  53042. msgid "Shepherd Home Service"
  53043. msgstr "Shepherd服务"
  53044. #. type: subsection
  53045. #: guix-git/doc/guix.texi:35845
  53046. #, no-wrap
  53047. msgid "Managing User's Daemons"
  53048. msgstr ""
  53049. #. type: defvr
  53050. #: guix-git/doc/guix.texi:35849
  53051. #, no-wrap
  53052. msgid "{Scheme Variable} home-shepherd-service-type"
  53053. msgstr ""
  53054. #. type: defvr
  53055. #: guix-git/doc/guix.texi:35854
  53056. 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."
  53057. msgstr ""
  53058. #. type: item
  53059. #: guix-git/doc/guix.texi:35868
  53060. #, fuzzy, no-wrap
  53061. msgid "auto-start? (default: @code{#t})"
  53062. msgstr "@code{port}(默认值:@code{22})"
  53063. #. type: table
  53064. #: guix-git/doc/guix.texi:35870
  53065. msgid "Whether or not to start Shepherd on first login."
  53066. msgstr ""
  53067. #. type: section
  53068. #: guix-git/doc/guix.texi:35879
  53069. #, fuzzy, no-wrap
  53070. msgid "Invoking @code{guix home}"
  53071. msgstr "调用@command{guix-daemon}"
  53072. #. type: Plain text
  53073. #: guix-git/doc/guix.texi:35884
  53074. 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:"
  53075. msgstr ""
  53076. #. type: example
  53077. #: guix-git/doc/guix.texi:35887
  53078. #, no-wrap
  53079. msgid "guix home @var{options}@dots{} @var{action} @var{file}\n"
  53080. msgstr ""
  53081. #. type: Plain text
  53082. #: guix-git/doc/guix.texi:35894
  53083. 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:"
  53084. msgstr ""
  53085. #. type: table
  53086. #: guix-git/doc/guix.texi:35899
  53087. msgid "Display available home service type definitions that match the given regular expressions, sorted by relevance:"
  53088. msgstr ""
  53089. #. type: cindex
  53090. #: guix-git/doc/guix.texi:35901
  53091. #, no-wrap
  53092. msgid "shell-profile"
  53093. msgstr ""
  53094. #. type: example
  53095. #: guix-git/doc/guix.texi:35913
  53096. #, no-wrap
  53097. msgid ""
  53098. "$ guix home search shell\n"
  53099. "name: home-shell-profile\n"
  53100. "location: gnu/home/services/shells.scm:73:2\n"
  53101. "extends: home-files\n"
  53102. "description: Create `~/.profile', which is used for environment initialization\n"
  53103. "+ of POSIX compatible login shells. Can be extended with a list of strings or\n"
  53104. "+ gexps.\n"
  53105. "relevance: 6\n"
  53106. "\n"
  53107. msgstr ""
  53108. #. type: example
  53109. #: guix-git/doc/guix.texi:35919
  53110. #, no-wrap
  53111. msgid ""
  53112. "name: home-zsh-plugin-manager\n"
  53113. "location: gnu/home/services/shellutils.scm:28:2\n"
  53114. "extends: home-zsh home-profile\n"
  53115. "description: Install plugins in profile and configure Zsh to load them.\n"
  53116. "relevance: 1\n"
  53117. "\n"
  53118. msgstr ""
  53119. #. type: example
  53120. #: guix-git/doc/guix.texi:35926
  53121. #, no-wrap
  53122. msgid ""
  53123. "name: home-zsh-direnv\n"
  53124. "location: gnu/home/services/shellutils.scm:69:2\n"
  53125. "extends: home-profile home-zsh\n"
  53126. "description: Enables `direnv' for `zsh'. Adds hook to `.zshrc' and installs a\n"
  53127. "+ package in the profile.\n"
  53128. "relevance: 1\n"
  53129. "\n"
  53130. msgstr ""
  53131. #. type: example
  53132. #: guix-git/doc/guix.texi:35935
  53133. #, no-wrap
  53134. msgid ""
  53135. "name: home-zsh-autosuggestions\n"
  53136. "location: gnu/home/services/shellutils.scm:43:2\n"
  53137. "extends: home-zsh-plugin-manager home-zsh\n"
  53138. "description: Enables Fish-like fast/unobtrusive autosuggestions for `zsh' and\n"
  53139. "+ sets reasonable default values for some plugin's variables to improve perfomance\n"
  53140. "+ and adjust behavior: `(history completion)' is set for strategy, manual rebind\n"
  53141. "+ and async are enabled.\n"
  53142. "relevance: 1\n"
  53143. "\n"
  53144. msgstr ""
  53145. #. type: example
  53146. #: guix-git/doc/guix.texi:35941
  53147. #, no-wrap
  53148. msgid ""
  53149. "name: home-zsh\n"
  53150. "location: gnu/home/services/shells.scm:236:2\n"
  53151. "extends: home-files home-profile\n"
  53152. "description: Install and configure Zsh.\n"
  53153. "relevance: 1\n"
  53154. "\n"
  53155. msgstr ""
  53156. #. type: example
  53157. #: guix-git/doc/guix.texi:35947
  53158. #, no-wrap
  53159. msgid ""
  53160. "name: home-bash\n"
  53161. "location: gnu/home/services/shells.scm:388:2\n"
  53162. "extends: home-files home-profile\n"
  53163. "description: Install and configure Bash.\n"
  53164. "relevance: 1\n"
  53165. "\n"
  53166. msgstr ""
  53167. #. type: table
  53168. #: guix-git/doc/guix.texi:35963
  53169. 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{~/TIMESTAMP-guix-home-legacy-configs-backup}, where TIMESTAMP is a current UNIX epoch time."
  53170. msgstr ""
  53171. #. type: quotation
  53172. #: guix-git/doc/guix.texi:35968
  53173. 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})."
  53174. msgstr ""
  53175. #. type: table
  53176. #: guix-git/doc/guix.texi:35975
  53177. 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 X} or @code{herd restart X})."
  53178. msgstr ""
  53179. #. type: table
  53180. #: guix-git/doc/guix.texi:35981
  53181. 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})."
  53182. msgstr ""
  53183. #. type: cindex
  53184. #: guix-git/doc/guix.texi:35982
  53185. #, fuzzy, no-wrap
  53186. msgid "provenance tracking, of the home environment"
  53187. msgstr "配置操作系统。"
  53188. #. type: table
  53189. #: guix-git/doc/guix.texi:35987
  53190. 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:"
  53191. msgstr ""
  53192. #. type: example
  53193. #: guix-git/doc/guix.texi:35990
  53194. #, fuzzy, no-wrap
  53195. #| msgid "guix describe\n"
  53196. msgid "guix home describe\n"
  53197. msgstr "guix describe\n"
  53198. #. type: table
  53199. #: guix-git/doc/guix.texi:35996
  53200. 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:"
  53201. msgstr ""
  53202. #. type: example
  53203. #: guix-git/doc/guix.texi:36002
  53204. #, no-wrap
  53205. msgid ""
  53206. "guix time-machine \\\n"
  53207. " -C /var/guix/profiles/per-user/@var{USER}/guix-home-@var{n}-link/channels.scm -- \\\n"
  53208. " home reconfigure \\\n"
  53209. " /var/guix/profiles/per-user/@var{USER}/guix-home-@var{n}-link/configuration.scm\n"
  53210. "\n"
  53211. msgstr ""
  53212. #. type: table
  53213. #: guix-git/doc/guix.texi:36009
  53214. 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}."
  53215. msgstr ""
  53216. #. type: cindex
  53217. #: guix-git/doc/guix.texi:36015
  53218. #, fuzzy, no-wrap
  53219. #| msgid "Documentation"
  53220. msgid "home generations"
  53221. msgstr "文档"
  53222. #. type: table
  53223. #: guix-git/doc/guix.texi:36018
  53224. msgid "Switch to an existing home generation. This action atomically switches the home profile to the specified home generation."
  53225. msgstr ""
  53226. #. type: table
  53227. #: guix-git/doc/guix.texi:36022
  53228. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to home generation 7:"
  53229. msgstr ""
  53230. #. type: example
  53231. #: guix-git/doc/guix.texi:36025
  53232. #, fuzzy, no-wrap
  53233. msgid "guix home switch-generation 7\n"
  53234. msgstr "guix package --list-available\n"
  53235. #. type: example
  53236. #: guix-git/doc/guix.texi:36036
  53237. #, fuzzy, no-wrap
  53238. msgid "guix home switch-generation -- -1\n"
  53239. msgstr "guix package --list-available\n"
  53240. #. type: table
  53241. #: guix-git/doc/guix.texi:36045
  53242. 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}."
  53243. msgstr ""
  53244. #. type: cindex
  53245. #: guix-git/doc/guix.texi:36047
  53246. #, no-wrap
  53247. msgid "deleting home generations"
  53248. msgstr ""
  53249. #. type: table
  53250. #: guix-git/doc/guix.texi:36052
  53251. msgid "Delete home generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  53252. msgstr ""
  53253. #. type: table
  53254. #: guix-git/doc/guix.texi:36056
  53255. 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:"
  53256. msgstr ""
  53257. #. type: example
  53258. #: guix-git/doc/guix.texi:36059
  53259. #, fuzzy, no-wrap
  53260. msgid "guix home delete-generations\n"
  53261. msgstr "guix package --list-available\n"
  53262. #. type: table
  53263. #: guix-git/doc/guix.texi:36063
  53264. msgid "You can also select the generations you want to delete. The example below deletes all the home generations that are more than two month old:"
  53265. msgstr ""
  53266. #. type: example
  53267. #: guix-git/doc/guix.texi:36066
  53268. #, fuzzy, no-wrap
  53269. msgid "guix home delete-generations 2m\n"
  53270. msgstr "guix package --list-available\n"
  53271. #. type: table
  53272. #: guix-git/doc/guix.texi:36072
  53273. msgid "Build the derivation of the home environment, which includes all the configuration files and programs needed. This action does not actually install anything."
  53274. msgstr ""
  53275. #. type: table
  53276. #: guix-git/doc/guix.texi:36076
  53277. msgid "Describe the current home generation: its file name, as well as provenance information when available."
  53278. msgstr ""
  53279. #. type: table
  53280. #: guix-git/doc/guix.texi:36082
  53281. 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})."
  53282. msgstr ""
  53283. #. type: example
  53284. #: guix-git/doc/guix.texi:36090
  53285. #, fuzzy, no-wrap
  53286. msgid "$ guix home list-generations 10d\n"
  53287. msgstr "guix package --list-available\n"
  53288. #. type: table
  53289. #: guix-git/doc/guix.texi:36105
  53290. msgid "Consider the home-environment @var{expr} evaluates to. This is an alternative to specifying a file which evaluates to a home environment."
  53291. msgstr ""
  53292. #. type: cindex
  53293. #: guix-git/doc/guix.texi:36111
  53294. #, no-wrap
  53295. msgid "documentation, searching for"
  53296. msgstr ""
  53297. #. type: cindex
  53298. #: guix-git/doc/guix.texi:36112
  53299. #, no-wrap
  53300. msgid "searching for documentation"
  53301. msgstr ""
  53302. #. type: cindex
  53303. #: guix-git/doc/guix.texi:36113
  53304. #, no-wrap
  53305. msgid "Info, documentation format"
  53306. msgstr ""
  53307. #. type: cindex
  53308. #: guix-git/doc/guix.texi:36114
  53309. #, no-wrap
  53310. msgid "man pages"
  53311. msgstr ""
  53312. #. type: cindex
  53313. #: guix-git/doc/guix.texi:36115
  53314. #, no-wrap
  53315. msgid "manual pages"
  53316. msgstr ""
  53317. #. type: Plain text
  53318. #: guix-git/doc/guix.texi:36122
  53319. 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}."
  53320. msgstr ""
  53321. #. type: Plain text
  53322. #: guix-git/doc/guix.texi:36126
  53323. 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:"
  53324. msgstr ""
  53325. #. type: example
  53326. #: guix-git/doc/guix.texi:36134
  53327. #, no-wrap
  53328. msgid ""
  53329. "$ info -k TLS\n"
  53330. "\"(emacs)Network Security\" -- STARTTLS\n"
  53331. "\"(emacs)Network Security\" -- TLS\n"
  53332. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_flags\n"
  53333. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_function\n"
  53334. "@dots{}\n"
  53335. msgstr ""
  53336. #. type: Plain text
  53337. #: guix-git/doc/guix.texi:36138
  53338. msgid "The command below searches for the same keyword in man pages:"
  53339. msgstr ""
  53340. #. type: example
  53341. #: guix-git/doc/guix.texi:36144
  53342. #, no-wrap
  53343. msgid ""
  53344. "$ man -k TLS\n"
  53345. "SSL (7) - OpenSSL SSL/TLS library\n"
  53346. "certtool (1) - GnuTLS certificate tool\n"
  53347. "@dots {}\n"
  53348. msgstr ""
  53349. #. type: Plain text
  53350. #: guix-git/doc/guix.texi:36150
  53351. 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."
  53352. msgstr ""
  53353. #. type: Plain text
  53354. #: guix-git/doc/guix.texi:36153
  53355. msgid "Once you have these results, you can view the relevant documentation by running, say:"
  53356. msgstr ""
  53357. #. type: example
  53358. #: guix-git/doc/guix.texi:36156
  53359. #, no-wrap
  53360. msgid "$ info \"(gnutls)Core TLS API\"\n"
  53361. msgstr ""
  53362. #. type: Plain text
  53363. #: guix-git/doc/guix.texi:36160
  53364. msgid "or:"
  53365. msgstr ""
  53366. #. type: example
  53367. #: guix-git/doc/guix.texi:36163
  53368. #, no-wrap
  53369. msgid "$ man certtool\n"
  53370. msgstr ""
  53371. #. type: Plain text
  53372. #: guix-git/doc/guix.texi:36171
  53373. 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."
  53374. msgstr ""
  53375. #. type: cindex
  53376. #: guix-git/doc/guix.texi:36175
  53377. #, no-wrap
  53378. msgid "debugging files"
  53379. msgstr ""
  53380. #. type: Plain text
  53381. #: guix-git/doc/guix.texi:36181
  53382. 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."
  53383. msgstr ""
  53384. #. type: Plain text
  53385. #: guix-git/doc/guix.texi:36185
  53386. 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."
  53387. msgstr ""
  53388. #. type: Plain text
  53389. #: guix-git/doc/guix.texi:36201
  53390. 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})."
  53391. msgstr ""
  53392. #. type: Plain text
  53393. #: guix-git/doc/guix.texi:36208
  53394. 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})."
  53395. msgstr ""
  53396. #. type: Plain text
  53397. #: guix-git/doc/guix.texi:36216
  53398. 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:"
  53399. msgstr ""
  53400. #. type: example
  53401. #: guix-git/doc/guix.texi:36219
  53402. #, no-wrap
  53403. msgid "guix install glibc:debug guile:debug\n"
  53404. msgstr ""
  53405. #. type: Plain text
  53406. #: guix-git/doc/guix.texi:36225
  53407. 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}):"
  53408. msgstr ""
  53409. #. type: example
  53410. #: guix-git/doc/guix.texi:36228
  53411. #, no-wrap
  53412. msgid "(gdb) set debug-file-directory ~/.guix-profile/lib/debug\n"
  53413. msgstr ""
  53414. #. type: Plain text
  53415. #: guix-git/doc/guix.texi:36232
  53416. msgid "From there on, GDB will pick up debugging information from the @file{.debug} files under @file{~/.guix-profile/lib/debug}."
  53417. msgstr ""
  53418. #. type: Plain text
  53419. #: guix-git/doc/guix.texi:36239
  53420. 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})."
  53421. msgstr ""
  53422. #. type: Plain text
  53423. #: guix-git/doc/guix.texi:36247
  53424. 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})."
  53425. msgstr ""
  53426. #. type: Plain text
  53427. #: guix-git/doc/guix.texi:36249
  53428. msgid "Read on for how to deal with packages lacking a @code{debug} output."
  53429. msgstr ""
  53430. #. type: Plain text
  53431. #: guix-git/doc/guix.texi:36261
  53432. 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."
  53433. msgstr ""
  53434. #. type: Plain text
  53435. #: guix-git/doc/guix.texi:36266
  53436. 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:"
  53437. msgstr ""
  53438. #. type: example
  53439. #: guix-git/doc/guix.texi:36277
  53440. #, no-wrap
  53441. msgid ""
  53442. "(gdb) bt\n"
  53443. "#0 0x00007ffff5f92190 in g_getenv ()\n"
  53444. " from /gnu/store/@dots{}-glib-2.62.6/lib/libglib-2.0.so.0\n"
  53445. "#1 0x00007ffff608a7d6 in gobject_init_ctor ()\n"
  53446. " from /gnu/store/@dots{}-glib-2.62.6/lib/libgobject-2.0.so.0\n"
  53447. "#2 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=1, argv=argv@@entry=0x7fffffffcfd8, \n"
  53448. " env=env@@entry=0x7fffffffcfe8) at dl-init.c:72\n"
  53449. "#3 0x00007ffff7fe2866 in call_init (env=0x7fffffffcfe8, argv=0x7fffffffcfd8, argc=1, l=<optimized out>)\n"
  53450. " at dl-init.c:118\n"
  53451. msgstr ""
  53452. #. type: Plain text
  53453. #: guix-git/doc/guix.texi:36281
  53454. msgid "To address that, you install Inkscape linked against a variant GLib that contains debug info:"
  53455. msgstr ""
  53456. #. type: Plain text
  53457. #: guix-git/doc/guix.texi:36287
  53458. msgid "This time, debugging will be a whole lot nicer:"
  53459. msgstr ""
  53460. #. type: example
  53461. #: guix-git/doc/guix.texi:36305
  53462. #, no-wrap
  53463. msgid ""
  53464. "$ gdb --args sh -c 'exec inkscape'\n"
  53465. "@dots{}\n"
  53466. "(gdb) b g_getenv\n"
  53467. "Function \"g_getenv\" not defined.\n"
  53468. "Make breakpoint pending on future shared library load? (y or [n]) y\n"
  53469. "Breakpoint 1 (g_getenv) pending.\n"
  53470. "(gdb) r\n"
  53471. "Starting program: /gnu/store/@dots{}-profile/bin/sh -c exec\\ inkscape\n"
  53472. "@dots{}\n"
  53473. "(gdb) bt\n"
  53474. "#0 g_getenv (variable=variable@@entry=0x7ffff60c7a2e \"GOBJECT_DEBUG\") at ../glib-2.62.6/glib/genviron.c:252\n"
  53475. "#1 0x00007ffff608a7d6 in gobject_init () at ../glib-2.62.6/gobject/gtype.c:4380\n"
  53476. "#2 gobject_init_ctor () at ../glib-2.62.6/gobject/gtype.c:4493\n"
  53477. "#3 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=3, argv=argv@@entry=0x7fffffffd088, \n"
  53478. " env=env@@entry=0x7fffffffd0a8) at dl-init.c:72\n"
  53479. "@dots{}\n"
  53480. msgstr ""
  53481. #. type: Plain text
  53482. #: guix-git/doc/guix.texi:36308
  53483. msgid "Much better!"
  53484. msgstr ""
  53485. #. type: Plain text
  53486. #: guix-git/doc/guix.texi:36312
  53487. 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."
  53488. msgstr ""
  53489. #. type: cindex
  53490. #: guix-git/doc/guix.texi:36316
  53491. #, no-wrap
  53492. msgid "security updates"
  53493. msgstr ""
  53494. #. type: Plain text
  53495. #: guix-git/doc/guix.texi:36325
  53496. 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:"
  53497. msgstr ""
  53498. #. type: smallexample
  53499. #: guix-git/doc/guix.texi:36332
  53500. #, no-wrap
  53501. msgid ""
  53502. "$ guix lint -c cve\n"
  53503. "gnu/packages/base.scm:652:2: glibc@@2.21: probably vulnerable to CVE-2015-1781, CVE-2015-7547\n"
  53504. "gnu/packages/gcc.scm:334:2: gcc@@4.9.3: probably vulnerable to CVE-2015-5276\n"
  53505. "gnu/packages/image.scm:312:2: openjpeg@@2.1.0: probably vulnerable to CVE-2016-1923, CVE-2016-1924\n"
  53506. "@dots{}\n"
  53507. msgstr ""
  53508. #. type: Plain text
  53509. #: guix-git/doc/guix.texi:36335
  53510. msgid "@xref{Invoking guix lint}, for more information."
  53511. msgstr ""
  53512. #. type: Plain text
  53513. #: guix-git/doc/guix.texi:36344
  53514. 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."
  53515. msgstr ""
  53516. #. type: cindex
  53517. #: guix-git/doc/guix.texi:36345
  53518. #, no-wrap
  53519. msgid "grafts"
  53520. msgstr ""
  53521. #. type: Plain text
  53522. #: guix-git/doc/guix.texi:36353
  53523. 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."
  53524. msgstr ""
  53525. #. type: cindex
  53526. #: guix-git/doc/guix.texi:36354
  53527. #, no-wrap
  53528. msgid "replacements of packages, for grafts"
  53529. msgstr ""
  53530. #. type: Plain text
  53531. #: guix-git/doc/guix.texi:36360
  53532. 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:"
  53533. msgstr ""
  53534. #. type: lisp
  53535. #: guix-git/doc/guix.texi:36367
  53536. #, no-wrap
  53537. msgid ""
  53538. "(define bash\n"
  53539. " (package\n"
  53540. " (name \"bash\")\n"
  53541. " ;; @dots{}\n"
  53542. " (replacement bash-fixed)))\n"
  53543. msgstr ""
  53544. #. type: Plain text
  53545. #: guix-git/doc/guix.texi:36377
  53546. 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."
  53547. msgstr ""
  53548. #. type: Plain text
  53549. #: guix-git/doc/guix.texi:36385
  53550. 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."
  53551. msgstr ""
  53552. #. type: Plain text
  53553. #: guix-git/doc/guix.texi:36389
  53554. msgid "The @option{--no-grafts} command-line option allows you to forcefully avoid grafting (@pxref{Common Build Options, @option{--no-grafts}}). Thus, the command:"
  53555. msgstr ""
  53556. #. type: example
  53557. #: guix-git/doc/guix.texi:36392
  53558. #, no-wrap
  53559. msgid "guix build bash --no-grafts\n"
  53560. msgstr ""
  53561. #. type: Plain text
  53562. #: guix-git/doc/guix.texi:36396
  53563. msgid "returns the store file name of the original Bash, whereas:"
  53564. msgstr ""
  53565. #. type: example
  53566. #: guix-git/doc/guix.texi:36399
  53567. #, no-wrap
  53568. msgid "guix build bash\n"
  53569. msgstr ""
  53570. #. type: Plain text
  53571. #: guix-git/doc/guix.texi:36404
  53572. msgid "returns the store file name of the ``fixed'', replacement Bash. This allows you to distinguish between the two variants of Bash."
  53573. msgstr ""
  53574. #. type: Plain text
  53575. #: guix-git/doc/guix.texi:36407
  53576. msgid "To verify which Bash your whole profile refers to, you can run (@pxref{Invoking guix gc}):"
  53577. msgstr ""
  53578. #. type: example
  53579. #: guix-git/doc/guix.texi:36410
  53580. #, no-wrap
  53581. msgid "guix gc -R $(readlink -f ~/.guix-profile) | grep bash\n"
  53582. msgstr ""
  53583. #. type: Plain text
  53584. #: guix-git/doc/guix.texi:36415
  53585. msgid "@dots{} and compare the store file names that you get with those above. Likewise for a complete Guix system generation:"
  53586. msgstr ""
  53587. #. type: example
  53588. #: guix-git/doc/guix.texi:36418
  53589. #, no-wrap
  53590. msgid "guix gc -R $(guix system build my-config.scm) | grep bash\n"
  53591. msgstr ""
  53592. #. type: Plain text
  53593. #: guix-git/doc/guix.texi:36422
  53594. msgid "Lastly, to check which Bash running processes are using, you can use the @command{lsof} command:"
  53595. msgstr ""
  53596. #. type: example
  53597. #: guix-git/doc/guix.texi:36425
  53598. #, no-wrap
  53599. msgid "lsof | grep /gnu/store/.*bash\n"
  53600. msgstr ""
  53601. #. type: cindex
  53602. #: guix-git/doc/guix.texi:36433
  53603. #, no-wrap
  53604. msgid "bootstrapping"
  53605. msgstr ""
  53606. #. type: Plain text
  53607. #: guix-git/doc/guix.texi:36440
  53608. 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?"
  53609. msgstr ""
  53610. #. type: Plain text
  53611. #: guix-git/doc/guix.texi:36448
  53612. 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."
  53613. msgstr ""
  53614. #. type: cindex
  53615. #: guix-git/doc/guix.texi:36449 guix-git/doc/guix.texi:36661
  53616. #, no-wrap
  53617. msgid "bootstrap binaries"
  53618. msgstr ""
  53619. #. type: Plain text
  53620. #: guix-git/doc/guix.texi:36459
  53621. 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}."
  53622. msgstr ""
  53623. #. type: Plain text
  53624. #: guix-git/doc/guix.texi:36463
  53625. msgid "These bootstrap binaries are ``taken for granted'', though we can also re-create them if needed (@pxref{Preparing to Use the Bootstrap Binaries})."
  53626. msgstr ""
  53627. #. type: section
  53628. #: guix-git/doc/guix.texi:36470
  53629. #, no-wrap
  53630. msgid "The Reduced Binary Seed Bootstrap"
  53631. msgstr ""
  53632. #. type: Plain text
  53633. #: guix-git/doc/guix.texi:36477
  53634. 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.''"
  53635. msgstr ""
  53636. #. type: Plain text
  53637. #: guix-git/doc/guix.texi:36483
  53638. 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."
  53639. msgstr ""
  53640. #. type: Plain text
  53641. #: guix-git/doc/guix.texi:36488
  53642. 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.}."
  53643. msgstr ""
  53644. #. type: Plain text
  53645. #: guix-git/doc/guix.texi:36494
  53646. 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)."
  53647. msgstr ""
  53648. #. type: Plain text
  53649. #: guix-git/doc/guix.texi:36499
  53650. 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."
  53651. msgstr ""
  53652. #. type: Plain text
  53653. #: guix-git/doc/guix.texi:36507
  53654. 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."
  53655. msgstr ""
  53656. #. type: Plain text
  53657. #: guix-git/doc/guix.texi:36517
  53658. 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."
  53659. msgstr ""
  53660. #. type: Plain text
  53661. #: guix-git/doc/guix.texi:36521
  53662. 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."
  53663. msgstr ""
  53664. #. type: Plain text
  53665. #: guix-git/doc/guix.texi:36524
  53666. msgid "@image{images/gcc-core-mesboot0-graph,6in,,Dependency graph of gcc-core-mesboot0}"
  53667. msgstr ""
  53668. #. type: Plain text
  53669. #: guix-git/doc/guix.texi:36531
  53670. 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.}."
  53671. msgstr ""
  53672. #. type: Plain text
  53673. #: guix-git/doc/guix.texi:36534
  53674. 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}."
  53675. msgstr ""
  53676. #. type: Plain text
  53677. #: guix-git/doc/guix.texi:36539
  53678. 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."
  53679. msgstr ""
  53680. #. type: Plain text
  53681. #: guix-git/doc/guix.texi:36543
  53682. 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}."
  53683. msgstr ""
  53684. #. type: Plain text
  53685. #: guix-git/doc/guix.texi:36550
  53686. msgid "@image{images/bootstrap-graph,6in,,Dependency graph of the early bootstrap derivations}"
  53687. msgstr ""
  53688. #. type: Plain text
  53689. #: guix-git/doc/guix.texi:36555
  53690. 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:"
  53691. msgstr ""
  53692. #. type: example
  53693. #: guix-git/doc/guix.texi:36560
  53694. #, no-wrap
  53695. msgid ""
  53696. "guix graph -t derivation \\\n"
  53697. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-gcc)' \\\n"
  53698. " | dot -Tps > gcc.ps\n"
  53699. msgstr ""
  53700. #. type: Plain text
  53701. #: guix-git/doc/guix.texi:36563
  53702. msgid "or, for the further Reduced Binary Seed bootstrap"
  53703. msgstr ""
  53704. #. type: example
  53705. #: guix-git/doc/guix.texi:36568
  53706. #, no-wrap
  53707. msgid ""
  53708. "guix graph -t derivation \\\n"
  53709. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-mes)' \\\n"
  53710. " | dot -Tps > mes.ps\n"
  53711. msgstr ""
  53712. #. type: Plain text
  53713. #: guix-git/doc/guix.texi:36577
  53714. 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})."
  53715. msgstr ""
  53716. #. type: Plain text
  53717. #: guix-git/doc/guix.texi:36586
  53718. 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."
  53719. msgstr ""
  53720. #. type: Plain text
  53721. #: guix-git/doc/guix.texi:36598
  53722. 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})."
  53723. msgstr ""
  53724. #. type: Plain text
  53725. #: guix-git/doc/guix.texi:36603
  53726. 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."
  53727. msgstr ""
  53728. #. type: unnumberedsec
  53729. #: guix-git/doc/guix.texi:36604
  53730. #, no-wrap
  53731. msgid "Building the Build Tools"
  53732. msgstr ""
  53733. #. type: Plain text
  53734. #: guix-git/doc/guix.texi:36613
  53735. 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."
  53736. msgstr ""
  53737. #. type: Plain text
  53738. #: guix-git/doc/guix.texi:36620
  53739. 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:"
  53740. msgstr ""
  53741. #. type: example
  53742. #: guix-git/doc/guix.texi:36625
  53743. #, no-wrap
  53744. msgid ""
  53745. "guix graph -t bag \\\n"
  53746. " -e '(@@@@ (gnu packages commencement)\n"
  53747. " glibc-final-with-bootstrap-bash)' | xdot -\n"
  53748. msgstr ""
  53749. #. type: Plain text
  53750. #: guix-git/doc/guix.texi:36632
  53751. 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."
  53752. msgstr ""
  53753. #. type: Plain text
  53754. #: guix-git/doc/guix.texi:36634
  53755. msgid "@image{images/bootstrap-packages,6in,,Dependency graph of the early packages}"
  53756. msgstr ""
  53757. #. type: Plain text
  53758. #: guix-git/doc/guix.texi:36640
  53759. 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."
  53760. msgstr ""
  53761. #. type: Plain text
  53762. #: guix-git/doc/guix.texi:36645
  53763. 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."
  53764. msgstr ""
  53765. #. type: Plain text
  53766. #: guix-git/doc/guix.texi:36651
  53767. 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."
  53768. msgstr ""
  53769. #. type: Plain text
  53770. #: guix-git/doc/guix.texi:36657
  53771. 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}})."
  53772. msgstr ""
  53773. #. type: unnumberedsec
  53774. #: guix-git/doc/guix.texi:36659
  53775. #, no-wrap
  53776. msgid "Building the Bootstrap Binaries"
  53777. msgstr ""
  53778. #. type: Plain text
  53779. #: guix-git/doc/guix.texi:36666
  53780. 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."
  53781. msgstr ""
  53782. #. type: Plain text
  53783. #: guix-git/doc/guix.texi:36672
  53784. 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):"
  53785. msgstr ""
  53786. #. type: example
  53787. #: guix-git/doc/guix.texi:36675
  53788. #, no-wrap
  53789. msgid "guix build bootstrap-tarballs\n"
  53790. msgstr ""
  53791. #. type: Plain text
  53792. #: guix-git/doc/guix.texi:36680
  53793. 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."
  53794. msgstr ""
  53795. #. type: Plain text
  53796. #: guix-git/doc/guix.texi:36686
  53797. 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."
  53798. msgstr ""
  53799. #. type: unnumberedsec
  53800. #: guix-git/doc/guix.texi:36687
  53801. #, no-wrap
  53802. msgid "Reducing the Set of Bootstrap Binaries"
  53803. msgstr ""
  53804. #. type: Plain text
  53805. #: guix-git/doc/guix.texi:36695
  53806. 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}."
  53807. msgstr ""
  53808. #. type: Plain text
  53809. #: guix-git/doc/guix.texi:36701
  53810. 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."
  53811. msgstr ""
  53812. #. type: Plain text
  53813. #: guix-git/doc/guix.texi:36707
  53814. 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."
  53815. msgstr ""
  53816. #. type: Plain text
  53817. #: guix-git/doc/guix.texi:36716
  53818. 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."
  53819. msgstr ""
  53820. #. type: Plain text
  53821. #: guix-git/doc/guix.texi:36719
  53822. 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!"
  53823. msgstr ""
  53824. #. type: chapter
  53825. #: guix-git/doc/guix.texi:36721
  53826. #, no-wrap
  53827. msgid "Porting to a New Platform"
  53828. msgstr ""
  53829. #. type: Plain text
  53830. #: guix-git/doc/guix.texi:36730
  53831. 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."
  53832. msgstr ""
  53833. #. type: Plain text
  53834. #: guix-git/doc/guix.texi:36735
  53835. 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:"
  53836. msgstr ""
  53837. #. type: example
  53838. #: guix-git/doc/guix.texi:36738
  53839. #, no-wrap
  53840. msgid "guix build --target=armv5tel-linux-gnueabi bootstrap-tarballs\n"
  53841. msgstr ""
  53842. #. type: Plain text
  53843. #: guix-git/doc/guix.texi:36745
  53844. 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."
  53845. msgstr ""
  53846. #. type: Plain text
  53847. #: guix-git/doc/guix.texi:36754
  53848. 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."
  53849. msgstr ""
  53850. #. type: Plain text
  53851. #: guix-git/doc/guix.texi:36763
  53852. 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."
  53853. msgstr ""
  53854. #. type: include
  53855. #: guix-git/doc/guix.texi:36765
  53856. #, no-wrap
  53857. msgid "contributing.texi"
  53858. msgstr "contributing.zh_CN.texi"
  53859. #. type: Plain text
  53860. #: guix-git/doc/guix.texi:36778
  53861. 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."
  53862. msgstr ""
  53863. #. type: Plain text
  53864. #: guix-git/doc/guix.texi:36781
  53865. msgid "The Nix-based software distributions, Nixpkgs and NixOS, have also been an inspiration for Guix."
  53866. msgstr "基于 Nix 的软件发行版 Nixpkgs 和 NixOS 也给 Guix 带来了灵感。"
  53867. #. type: Plain text
  53868. #: guix-git/doc/guix.texi:36787
  53869. 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!"
  53870. msgstr ""
  53871. #. type: cindex
  53872. #: guix-git/doc/guix.texi:36792
  53873. #, no-wrap
  53874. msgid "license, GNU Free Documentation License"
  53875. msgstr ""
  53876. #. type: include
  53877. #: guix-git/doc/guix.texi:36793
  53878. #, no-wrap
  53879. msgid "fdl-1.3.texi"
  53880. msgstr ""
  53881. #~ msgid "git-send-email"
  53882. #~ msgstr "git-send-email"
  53883. #, fuzzy
  53884. #~ msgid "@code{opam}, the default opam repository,"
  53885. #~ msgstr "@code{mate}(默认值:@code{mate})"
  53886. #, fuzzy
  53887. #~ msgid "of coq packages."
  53888. #~ msgstr "定义新软件包。"
  53889. #~ msgid "Using Debbugs."
  53890. #~ msgstr "用Debbugs。"
  53891. #, fuzzy
  53892. #~| msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  53893. #~ msgid "@xref{Build Phases}, for more info on build phases and ways to customize them."
  53894. #~ msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  53895. #~ msgid ""
  53896. #~ "(service qemu-binfmt-service-type\n"
  53897. #~ " (qemu-binfmt-configuration\n"
  53898. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  53899. #~ " (guix-support? #t)))\n"
  53900. #~ msgstr ""
  53901. #~ "(service qemu-binfmt-service-type\n"
  53902. #~ " (qemu-binfmt-configuration\n"
  53903. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  53904. #~ " (guix-support? #t)))\n"
  53905. #, fuzzy
  53906. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  53907. #~ msgid "@code{queries-log-file} (default: @code{#f})"
  53908. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  53909. #, fuzzy
  53910. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  53911. #~ msgid "@code{web-queries-log-file} (default: @code{#f})"
  53912. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  53913. #, fuzzy
  53914. #~| msgid "@code{max-zone-size} (default: @code{#f})"
  53915. #~ msgid "@code{queue-size} (default: @code{1})"
  53916. #~ msgstr "@code{max-zone-size}(默认值:@code{#f})"
  53917. #, fuzzy
  53918. #~| msgid "The host name of the remote machine."
  53919. #~ msgid "Size of the database writer queue."
  53920. #~ msgstr "远程机器的主机名。"
  53921. #, fuzzy
  53922. #~| msgid "Manage the operating system configuration."
  53923. #~ msgid "Data type representing the configuration of a simple Cuirass instance."
  53924. #~ msgstr "管理操作系统配置。"
  53925. #, fuzzy
  53926. #~| msgid "@code{port} (default: @code{22})"
  53927. #~ msgid "@code{build} (default: @code{all})"
  53928. #~ msgstr "@code{port}(默认值:@code{22})"
  53929. #, fuzzy
  53930. #~| msgid "{Data Type} build-machine"
  53931. #~ msgid "{Data Type} build-manifest"
  53932. #~ msgstr "{数据类型} build-machine"
  53933. #, fuzzy
  53934. #~| msgid "Channels"
  53935. #~ msgid "channel-name"
  53936. #~ msgstr "通道"
  53937. #, fuzzy
  53938. #~| msgid "-c @var{n}"
  53939. #~ msgid "manifest"
  53940. #~ msgstr "-c @var{n}"
  53941. #, fuzzy
  53942. #~| msgid "@code{includes} (default: @code{'()})"
  53943. #~ msgid "@code{non-package-channels} (default: @code{'()})"
  53944. #~ msgstr "@code{includes}(默认值:@code{'()})"
  53945. #, fuzzy
  53946. #~| msgid "@code{port} (default: @code{22})"
  53947. #~ msgid "@code{guix-support?} (default: @code{#t})"
  53948. #~ msgstr "@code{port}(默认值:@code{22})"
  53949. #, fuzzy
  53950. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  53951. #~ msgid "@code{password-file} (default: @code{#f})"
  53952. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  53953. #~ 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."
  53954. #~ msgstr "通常,@code{master}之外的其它分支如果最近被评审过,或有一个对应的@code{-next}分支,则被视为@emph{冻结}状态。如果不清楚该把补丁放到哪里,请在邮件列表或IRC上提问。"
  53955. #~ msgid "@xref{Invoking guix environment}, for more information on that command. Extra dependencies can be added with @option{--ad-hoc}:"
  53956. #~ msgstr "这个命令更多的信息请参考@xref{Invoking guix environment}。额外的依赖可以通过@option{--ad-hoc}选项添加:"
  53957. #~ msgid "Fiddling with Guix interactively."
  53958. #~ msgstr "交互式地操作Guix。"
  53959. #~ 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!"
  53960. #~ msgstr "小端序64位ARMv8-A处理器,Linux-Libre内核。目前处于实验阶段,支持有限。@xref{Contributing},提供帮助!"
  53961. #~ msgid "@url{https://zlib.net, zlib};"
  53962. #~ msgstr "@url{https://zlib.net, zlib};"
  53963. #~ msgid "Nix, compatibility"
  53964. #~ msgstr "Nix,兼容性"
  53965. #~ 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."
  53966. #~ msgstr "当一个已经安装的且可用的@url{https://nixos.org/nix/, Nix包管理器}存在时,你可以为Guix配置@code{--disable-daemon}参数。那样Nix可以替换上面的三个依赖。"
  53967. #~ 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."
  53968. #~ 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}参数不是必须的。"
  53969. #~ msgid "--no-build-hook"
  53970. #~ msgstr "--no-build-hook"
  53971. #~ msgid "Do not use the @dfn{build hook}."
  53972. #~ msgstr "不要使用@dfn{构建钩子}。"
  53973. #~ 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})."
  53974. #~ msgstr "构建钩子是一个可以被后台进程启动并且提交构建请求的辅助程序。这个机制被用来向其它机器下发构建。(@pxref{Daemon Offload Setup})。"
  53975. #~ 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}."
  53976. #~ msgstr "@code{guix}软件包必须保留在@code{root}的profile里,否则它会被垃圾回收清理掉--那时你会发现缺少@command{guix}命令。换句话说,不要用@code{guix package -r guix}命令删除@code{guix}。"