guix-manual.zh_CN.po 2.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962
  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-12-03 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:181
  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:1270
  120. #: guix-git/doc/contributing.texi:1271
  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:1385
  130. #: guix-git/doc/contributing.texi:1386
  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:1611
  140. #: guix-git/doc/contributing.texi:1612
  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:1652
  150. #: guix-git/doc/contributing.texi:1653
  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. #, fuzzy, no-wrap
  200. #| msgid "guix environment guix --pure\n"
  201. msgid "guix shell -D guix --pure\n"
  202. msgstr "guix environment guix --pure\n"
  203. #. type: Plain text
  204. #: guix-git/doc/contributing.texi:80
  205. #, fuzzy
  206. msgid "@xref{Invoking guix shell}, for more information on that command."
  207. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  208. #. type: Plain text
  209. #: guix-git/doc/contributing.texi:84
  210. #, fuzzy
  211. 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})."
  212. msgstr "当从Git检出构建Guix时,除安装指导(@pxref{Requirements})里提及的软件包之外还需要这些包。"
  213. #. type: item
  214. #: guix-git/doc/contributing.texi:86
  215. #, no-wrap
  216. msgid "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  217. msgstr "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  218. #. type: item
  219. #: guix-git/doc/contributing.texi:87
  220. #, no-wrap
  221. msgid "@url{https://gnu.org/software/automake/, GNU Automake};"
  222. msgstr "@url{https://gnu.org/software/automake/, GNU Automake};"
  223. #. type: item
  224. #: guix-git/doc/contributing.texi:88
  225. #, no-wrap
  226. msgid "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  227. msgstr "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  228. #. type: item
  229. #: guix-git/doc/contributing.texi:89
  230. #, no-wrap
  231. msgid "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  232. msgstr "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  233. #. type: item
  234. #: guix-git/doc/contributing.texi:90
  235. #, no-wrap
  236. msgid "@url{https://www.graphviz.org/, Graphviz};"
  237. msgstr "@url{https://www.graphviz.org/, Graphviz};"
  238. #. type: item
  239. #: guix-git/doc/contributing.texi:91
  240. #, no-wrap
  241. msgid "@url{https://www.gnu.org/software/help2man/, GNU Help2man (optional)}."
  242. msgstr "@url{https://www.gnu.org/software/help2man/, GNU Help2man(可选)}。"
  243. #. type: Plain text
  244. #: guix-git/doc/contributing.texi:96
  245. msgid "On Guix, extra dependencies can be added by instead running @command{guix shell}:"
  246. msgstr ""
  247. #. type: example
  248. #: guix-git/doc/contributing.texi:99
  249. #, fuzzy, no-wrap
  250. #| msgid "guix environment guix --pure --ad-hoc help2man git strace\n"
  251. msgid "guix shell -D guix help2man git strace --pure\n"
  252. msgstr "guix environment guix --pure --ad-hoc help2man git strace\n"
  253. #. type: Plain text
  254. #: guix-git/doc/contributing.texi:103
  255. msgid "Run @command{./bootstrap} to generate the build system infrastructure using Autoconf and Automake. If you get an error like this one:"
  256. msgstr "运行 @command{./bootstrap} 以使用Autoconf和Automake生成构建系统的基础框架。如果你的得到这样的错误:"
  257. #. type: example
  258. #: guix-git/doc/contributing.texi:106
  259. #, no-wrap
  260. msgid "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  261. msgstr "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  262. #. type: Plain text
  263. #: guix-git/doc/contributing.texi:115
  264. 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:"
  265. msgstr "它可能意味着Autoconf无法找到由pkg-config提供的@file{pkg.m4}。请确保@file{pkg.m4}可用。由Guile提供的@file{guile.m4}宏也类似。假如你的Automake安装在@file{/usr/local},那么它不会从@file{/usr/share}里寻找@file{.m4}文件。这种情况下,你必须执行下面这个命令:"
  266. #. type: example
  267. #: guix-git/doc/contributing.texi:118
  268. #, no-wrap
  269. msgid "export ACLOCAL_PATH=/usr/share/aclocal\n"
  270. msgstr "export ACLOCAL_PATH=/usr/share/aclocal\n"
  271. #. type: Plain text
  272. #: guix-git/doc/contributing.texi:122
  273. msgid "@xref{Macro Search Path,,, automake, The GNU Automake Manual}, for more information."
  274. msgstr "参考@xref{Macro Search Path,,, automake, The GNU Automake Manual}."
  275. #. type: Plain text
  276. #: guix-git/doc/contributing.texi:129
  277. msgid "Then, run @command{./configure --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}."
  278. msgstr ""
  279. #. type: Plain text
  280. #: guix-git/doc/contributing.texi:134
  281. #, fuzzy
  282. 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}."
  283. msgstr "最后,用@code{make check}执行测试(@pxref{Running the Test Suite})。如果遇到任何错误,请参考“安装指导”(@pxref{Installation})或者给@email{guix-devel@@gnu.org, 邮件列表}发邮件。"
  284. #. type: Plain text
  285. #: guix-git/doc/contributing.texi:137
  286. msgid "From there on, you can authenticate all the commits included in your checkout by running:"
  287. msgstr ""
  288. #. type: example
  289. #: guix-git/doc/contributing.texi:140
  290. #, fuzzy, no-wrap
  291. msgid "make authenticate\n"
  292. msgstr "make check\n"
  293. #. type: Plain text
  294. #: guix-git/doc/contributing.texi:143
  295. msgid "The first run takes a couple of minutes, but subsequent runs are faster."
  296. msgstr ""
  297. #. type: Plain text
  298. #: guix-git/doc/contributing.texi:149
  299. 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:"
  300. msgstr ""
  301. #. type: example
  302. #: guix-git/doc/contributing.texi:152
  303. #, no-wrap
  304. msgid "make authenticate GUIX_GIT_KEYRING=myremote/keyring\n"
  305. msgstr ""
  306. #. type: quotation
  307. #: guix-git/doc/contributing.texi:154 guix-git/doc/contributing.texi:1463
  308. #: guix-git/doc/guix.texi:584 guix-git/doc/guix.texi:633
  309. #: guix-git/doc/guix.texi:823 guix-git/doc/guix.texi:1802
  310. #: guix-git/doc/guix.texi:2049 guix-git/doc/guix.texi:2233
  311. #: guix-git/doc/guix.texi:2454 guix-git/doc/guix.texi:2666
  312. #: guix-git/doc/guix.texi:3794 guix-git/doc/guix.texi:4535
  313. #: guix-git/doc/guix.texi:4549 guix-git/doc/guix.texi:4631
  314. #: guix-git/doc/guix.texi:4861 guix-git/doc/guix.texi:5602
  315. #: guix-git/doc/guix.texi:6069 guix-git/doc/guix.texi:6320
  316. #: guix-git/doc/guix.texi:6441 guix-git/doc/guix.texi:6469
  317. #: guix-git/doc/guix.texi:6522 guix-git/doc/guix.texi:9268
  318. #: guix-git/doc/guix.texi:9338 guix-git/doc/guix.texi:11013
  319. #: guix-git/doc/guix.texi:11053 guix-git/doc/guix.texi:11327
  320. #: guix-git/doc/guix.texi:11339 guix-git/doc/guix.texi:13694
  321. #: guix-git/doc/guix.texi:14325 guix-git/doc/guix.texi:15210
  322. #: guix-git/doc/guix.texi:16195 guix-git/doc/guix.texi:18620
  323. #: guix-git/doc/guix.texi:18776 guix-git/doc/guix.texi:26647
  324. #: guix-git/doc/guix.texi:30370 guix-git/doc/guix.texi:34108
  325. #: guix-git/doc/guix.texi:34342 guix-git/doc/guix.texi:34512
  326. #: guix-git/doc/guix.texi:34680 guix-git/doc/guix.texi:34782
  327. #: guix-git/doc/guix.texi:34883 guix-git/doc/guix.texi:35186
  328. #: guix-git/doc/guix.texi:35964 guix-git/doc/guix.texi:36039
  329. #: guix-git/doc/guix.texi:36074 guix-git/doc/guix.texi:36124
  330. #: guix-git/doc/guix.texi:36211 guix-git/doc/guix.texi:36632
  331. #, no-wrap
  332. msgid "Note"
  333. msgstr "注"
  334. #. type: quotation
  335. #: guix-git/doc/contributing.texi:158
  336. 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."
  337. msgstr ""
  338. #. type: Plain text
  339. #: guix-git/doc/contributing.texi:168
  340. 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."
  341. msgstr "为了保持一个合适的工作环境,你会发现在你的本地代码树里测试修改而不用安装它们会很有用。TODO: So that you can distinguish between your ``end-user'' hat and your ``motley'' costume."
  342. #. type: Plain text
  343. #: guix-git/doc/contributing.texi:179
  344. #, fuzzy
  345. 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):"
  346. 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模块。}:"
  347. #. type: example
  348. #: guix-git/doc/contributing.texi:182
  349. #, fuzzy, no-wrap
  350. msgid "$ ./pre-inst-env guix build hello\n"
  351. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  352. #. type: Plain text
  353. #: guix-git/doc/contributing.texi:186
  354. msgid "Similarly, an example for a Guile session using the Guix modules:"
  355. msgstr "同样,一个使用 Guix 模块的 Guile 会话的例子:"
  356. #. type: example
  357. #: guix-git/doc/contributing.texi:189
  358. #, no-wrap
  359. msgid ""
  360. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  361. "\n"
  362. msgstr ""
  363. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  364. "\n"
  365. #. type: example
  366. #: guix-git/doc/contributing.texi:191
  367. #, no-wrap
  368. msgid ";;; (\"x86_64-linux\")\n"
  369. msgstr ";;; (\"x86_64-linux\")\n"
  370. #. type: cindex
  371. #: guix-git/doc/contributing.texi:194
  372. #, no-wrap
  373. msgid "REPL"
  374. msgstr "REPL"
  375. #. type: cindex
  376. #: guix-git/doc/contributing.texi:195
  377. #, no-wrap
  378. msgid "read-eval-print loop"
  379. msgstr "read-eval-print loop"
  380. #. type: Plain text
  381. #: guix-git/doc/contributing.texi:198
  382. msgid "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  383. msgstr "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  384. #. type: example
  385. #: guix-git/doc/contributing.texi:213
  386. #, no-wrap
  387. msgid ""
  388. "$ ./pre-inst-env guile\n"
  389. "scheme@@(guile-user)> ,use(guix)\n"
  390. "scheme@@(guile-user)> ,use(gnu)\n"
  391. "scheme@@(guile-user)> (define snakes\n"
  392. " (fold-packages\n"
  393. " (lambda (package lst)\n"
  394. " (if (string-prefix? \"python\"\n"
  395. " (package-name package))\n"
  396. " (cons package lst)\n"
  397. " lst))\n"
  398. " '()))\n"
  399. "scheme@@(guile-user)> (length snakes)\n"
  400. "$1 = 361\n"
  401. msgstr ""
  402. "$ ./pre-inst-env guile\n"
  403. "scheme@@(guile-user)> ,use(guix)\n"
  404. "scheme@@(guile-user)> ,use(gnu)\n"
  405. "scheme@@(guile-user)> (define snakes\n"
  406. " (fold-packages\n"
  407. " (lambda (package lst)\n"
  408. " (if (string-prefix? \"python\"\n"
  409. " (package-name package))\n"
  410. " (cons package lst)\n"
  411. " lst))\n"
  412. " '()))\n"
  413. "scheme@@(guile-user)> (length snakes)\n"
  414. "$1 = 361\n"
  415. #. type: Plain text
  416. #: guix-git/doc/contributing.texi:221
  417. #, fuzzy
  418. 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.}:"
  419. 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模块。}:"
  420. #. type: example
  421. #: guix-git/doc/contributing.texi:224
  422. #, fuzzy, no-wrap
  423. msgid "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  424. msgstr ""
  425. "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  426. "$ ./pre-inst-env guix build hello\n"
  427. #. type: Plain text
  428. #: guix-git/doc/contributing.texi:228
  429. 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}."
  430. msgstr "@command{pre-inst-env}脚本设置为此好了所有必要的的环境变量,包括@env{PATH}和@env{GUILE_LOAD_PATH}。"
  431. #. type: Plain text
  432. #: guix-git/doc/contributing.texi:233
  433. 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."
  434. msgstr "@command{./pre-inst-env guix pull} @emph{不} 会更新本地源代码树,它只更新符号链接@file{~/.config/guix/current} (@pxref{Invoking guix pull})。如果你想更新本地源代码树,请运行@command{git pull}。"
  435. #. type: Plain text
  436. #: guix-git/doc/contributing.texi:243
  437. 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:"
  438. 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}。为此,运行:"
  439. #. type: example
  440. #: guix-git/doc/contributing.texi:246
  441. #, fuzzy, no-wrap
  442. #| msgid "guix package -i emacs guile emacs-geiser\n"
  443. msgid "guix package -i emacs guile emacs-geiser emacs-geiser-guile\n"
  444. msgstr "guix package -i emacs guile emacs-geiser\n"
  445. #. type: Plain text
  446. #: guix-git/doc/contributing.texi:255
  447. 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:"
  448. msgstr "Geiser 允许在 Emacs 里进行交互式的、增长式的开发:buffer 里的代码补全和执行,获取一行的文档 (docstrings),上下文敏感的补全,@kbd{M-.} 跳转到对象定义,测试代码的 REPL,及更多(@pxref{Introduction,,, geiser, Geiser User Manual})。为了方便的 Guix 开发,请确保修改 Guile 的加载路径 (load path) 以使其能从你的项目里找到源代码文件:"
  449. #. type: lisp
  450. #: guix-git/doc/contributing.texi:260
  451. #, no-wrap
  452. msgid ""
  453. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  454. "(with-eval-after-load 'geiser-guile\n"
  455. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  456. msgstr ""
  457. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  458. "(with-eval-after-load 'geiser-guile\n"
  459. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  460. #. type: Plain text
  461. #: guix-git/doc/contributing.texi:268
  462. 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."
  463. msgstr "真正编辑代码时别忘了 Emacs 自带了方便的 Scheme 模式。而且,一定不要错过 @url{https://www.emacswiki.org/emacs/ParEdit, Paredit}。它提供了直接操作语法树的的功能,例如,用 S- 表达式替换父节点,为 S- 表达式添加、删除前后的括号,删除后面的 S- 表达式,等等。"
  464. #. type: cindex
  465. #: guix-git/doc/contributing.texi:269
  466. #, no-wrap
  467. msgid "code snippets"
  468. msgstr "代码片段"
  469. #. type: cindex
  470. #: guix-git/doc/contributing.texi:270
  471. #, no-wrap
  472. msgid "templates"
  473. msgstr "模板"
  474. #. type: cindex
  475. #: guix-git/doc/contributing.texi:271
  476. #, no-wrap
  477. msgid "reducing boilerplate"
  478. msgstr "减少样板"
  479. #. type: Plain text
  480. #: guix-git/doc/contributing.texi:278
  481. #, fuzzy
  482. 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."
  483. msgstr "在@file{etc/snippets}文件夹里,我们还为普通的git commit信息和软件包定义提供模板。这些模板可以通过@url{http://joaotavora.github.io/yasnippet/, YASnippet}使用,它可以把短的触发字符串扩展成交互式的文字片段。你可能希望将这个文件夹添加到Emacs的@var{yas-snippet-dirs}变量里。"
  484. #. type: lisp
  485. #: guix-git/doc/contributing.texi:283
  486. #, no-wrap
  487. msgid ""
  488. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  489. "(with-eval-after-load 'yasnippet\n"
  490. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  491. msgstr ""
  492. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  493. "(with-eval-after-load 'yasnippet\n"
  494. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  495. #. type: Plain text
  496. #: guix-git/doc/contributing.texi:291
  497. 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."
  498. msgstr "commit信息片段显示staged文件需要依赖@url{https://magit.vc/, Magit}。编辑commit信息时,输入@code{add},然后按@kbd{TAB}就可以插入一段用于新增软件包的模板;输入@code{update},然后按@kbd{TAB}可以插入一段更新软件包的模板;输入@code{https}然后按@kbd{TAB}可以插入一段修改主页URI为HTTPS的模板。"
  499. #. type: Plain text
  500. #: guix-git/doc/contributing.texi:297
  501. 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."
  502. msgstr "@code{scheme-mode}最重要的模板可以通过输入@code{package...},然后按@kbd{TAB}触发。这个片段还插入了触发字符串@code{origin...},以进一步展开。@code{origin}片段更进一步的可能插入其它以@code{...}结尾的触发字符串,它们可以被继续展开。"
  503. #. type: cindex
  504. #: guix-git/doc/contributing.texi:298
  505. #, no-wrap
  506. msgid "insert or update copyright"
  507. msgstr ""
  508. #. type: code{#1}
  509. #: guix-git/doc/contributing.texi:299
  510. #, no-wrap
  511. msgid "M-x guix-copyright"
  512. msgstr ""
  513. #. type: code{#1}
  514. #: guix-git/doc/contributing.texi:300
  515. #, no-wrap
  516. msgid "M-x copyright-update"
  517. msgstr ""
  518. #. type: Plain text
  519. #: guix-git/doc/contributing.texi:304
  520. 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."
  521. msgstr ""
  522. #. type: lisp
  523. #: guix-git/doc/contributing.texi:310
  524. #, no-wrap
  525. msgid ""
  526. "(setq user-full-name \"Alice Doe\")\n"
  527. "(setq user-mail-address \"alice@@mail.org\")\n"
  528. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  529. "(load-file \"~/src/guix/etc/copyright.el\")\n"
  530. msgstr ""
  531. #. type: Plain text
  532. #: guix-git/doc/contributing.texi:313
  533. msgid "To insert a copyright at the current line invoke @code{M-x guix-copyright}."
  534. msgstr ""
  535. #. type: Plain text
  536. #: guix-git/doc/contributing.texi:315
  537. msgid "To update a copyright you need to specify a @code{copyright-names-regexp}."
  538. msgstr ""
  539. #. type: lisp
  540. #: guix-git/doc/contributing.texi:319
  541. #, no-wrap
  542. msgid ""
  543. "(setq copyright-names-regexp\n"
  544. " (format \"%s <%s>\" user-full-name user-mail-address))\n"
  545. msgstr ""
  546. #. type: Plain text
  547. #: guix-git/doc/contributing.texi:325
  548. 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."
  549. msgstr ""
  550. #. type: cindex
  551. #: guix-git/doc/contributing.texi:329
  552. #, no-wrap
  553. msgid "packages, creating"
  554. msgstr "软件包, 创建"
  555. #. type: Plain text
  556. #: guix-git/doc/contributing.texi:333
  557. 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."
  558. msgstr "这个GNU发行版正在开发的早期阶段,可能缺少一些你喜欢的软件。这个章节介绍你可以怎样帮助这个发行版成长。"
  559. #. type: Plain text
  560. #: guix-git/doc/contributing.texi:341
  561. 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."
  562. msgstr "自由软件通常以@dfn{源代码包}的形式分发,通常是包含完整代码的@file{tar.gz}包。添加软件包到这个发行版意味着两件事:添加描述如何构建包的@dfn{配方}和一系列依赖软件,以及添加配方之外的@dfn{软件包元数据},如一段文字描述和证书信息。"
  563. #. type: Plain text
  564. #: guix-git/doc/contributing.texi:350
  565. 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}."
  566. msgstr "在Guix里所有这些信息都包含在@dfn{软件包定义}里。软件包定义提供了软件包的高层视角。它们使用Scheme编程语言编写,事实上,对每个软件包我们都定义一个绑定到软件包定义的的变量,并且从模块(@pxref{Package Modules})中导出那个变量。然而,深入的Scheme知识@emph{不}是创建软件包的前提条件。若要了解软件包的更多信息,@pxref{Defining Packages}。"
  567. #. type: Plain text
  568. #: guix-git/doc/contributing.texi:356
  569. 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}):"
  570. msgstr "一旦软件包定义准备好了,并且包存在Guix代码树的一个文件里,你可以用@command{guix build} (@pxref{Invoking guix build})命令测试它。假设这个新软件包的名字叫做@code{gnew},你可以在Guix构建树里运行这个命令(@pxref{Running Guix Before It Is Installed}):"
  571. #. type: example
  572. #: guix-git/doc/contributing.texi:359
  573. #, no-wrap
  574. msgid "./pre-inst-env guix build gnew --keep-failed\n"
  575. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  576. #. type: Plain text
  577. #: guix-git/doc/contributing.texi:365
  578. 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."
  579. msgstr "使用@code{--keep-failed}参数会保留失败的构建树,这可以使调试构建错误更容易。@code{--log-file}也是一个调试时很有用的参数,它可以用来访问构建日志。"
  580. #. type: Plain text
  581. #: guix-git/doc/contributing.texi:370
  582. 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:"
  583. msgstr "如果@command{guix}命令找不到这个软件包,那可能是因为源文件包含语法错误,或者缺少导出软件包的@code{define-public}语句。为了查找错误,你可以用Guile导入这个模块以了解这个错误的详情:"
  584. #. type: example
  585. #: guix-git/doc/contributing.texi:373
  586. #, no-wrap
  587. msgid "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  588. msgstr "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  589. #. type: Plain text
  590. #: guix-git/doc/contributing.texi:380
  591. #, fuzzy
  592. 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}."
  593. msgstr "一旦你的软件包可以正确构建,请给我们发送补丁(@pxref{Submitting Patches})。当然,如果你需要帮助,我们也会很乐意帮助你。一旦补丁被提交到 Guix 仓库里,这个新的软件包会被自动地在支持的平台上构建 @url{@value{SUBSTITUTE-URL}, our continuous integration system}。"
  594. #. type: cindex
  595. #: guix-git/doc/contributing.texi:381
  596. #, no-wrap
  597. msgid "substituter"
  598. msgstr "substitutes"
  599. #. type: Plain text
  600. #: guix-git/doc/contributing.texi:388
  601. #, fuzzy
  602. #| 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."
  603. 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."
  604. msgstr "用户可以通过运行@command{guix pull}命令获取最新的软件包定义(@pxref{Invoking guix pull})。当@code{@value{SUBSTITUTE-SERVER}}构建好这些软件包之后,安装这些软件包时会自动从服务器(@pxref{Substitutes})上下载构建好的二进制包。唯一需要人工干预的地方是评审和应用代码补丁。"
  605. #. type: subsection
  606. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:404
  607. #: guix-git/doc/contributing.texi:405
  608. #, no-wrap
  609. msgid "Software Freedom"
  610. msgstr "软件自由"
  611. #. type: menuentry
  612. #: guix-git/doc/contributing.texi:402
  613. msgid "What may go into the distribution."
  614. msgstr "什么可以进入这个发行版。"
  615. #. type: subsection
  616. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:432
  617. #: guix-git/doc/contributing.texi:433
  618. #, no-wrap
  619. msgid "Package Naming"
  620. msgstr "软件包命名"
  621. #. type: menuentry
  622. #: guix-git/doc/contributing.texi:402
  623. msgid "What's in a name?"
  624. msgstr "名字里包含什么?"
  625. #. type: subsection
  626. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:465
  627. #: guix-git/doc/contributing.texi:466
  628. #, no-wrap
  629. msgid "Version Numbers"
  630. msgstr "版本号"
  631. #. type: menuentry
  632. #: guix-git/doc/contributing.texi:402
  633. msgid "When the name is not enough."
  634. msgstr "当名字不够时。"
  635. #. type: subsection
  636. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:572
  637. #: guix-git/doc/contributing.texi:573
  638. #, no-wrap
  639. msgid "Synopses and Descriptions"
  640. msgstr "简介和描述"
  641. #. type: menuentry
  642. #: guix-git/doc/contributing.texi:402
  643. msgid "Helping users find the right package."
  644. msgstr "帮助用户寻找合适的软件包。"
  645. #. type: subsection
  646. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:651
  647. #: guix-git/doc/contributing.texi:652
  648. #, no-wrap
  649. msgid "Snippets versus Phases"
  650. msgstr ""
  651. #. type: menuentry
  652. #: guix-git/doc/contributing.texi:402
  653. msgid "Whether to use a snippet, or a build phase."
  654. msgstr ""
  655. #. type: subsection
  656. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:666
  657. #: guix-git/doc/contributing.texi:667 guix-git/doc/guix.texi:1984
  658. #, no-wrap
  659. msgid "Emacs Packages"
  660. msgstr ""
  661. #. type: menuentry
  662. #: guix-git/doc/contributing.texi:402
  663. msgid "Your Elisp fix."
  664. msgstr ""
  665. #. type: subsection
  666. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:706
  667. #: guix-git/doc/contributing.texi:707
  668. #, no-wrap
  669. msgid "Python Modules"
  670. msgstr "Python模块"
  671. #. type: menuentry
  672. #: guix-git/doc/contributing.texi:402
  673. msgid "A touch of British comedy."
  674. msgstr "接触英式的喜剧。"
  675. #. type: subsection
  676. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:782
  677. #: guix-git/doc/contributing.texi:783
  678. #, no-wrap
  679. msgid "Perl Modules"
  680. msgstr "Perl模块"
  681. #. type: menuentry
  682. #: guix-git/doc/contributing.texi:402
  683. msgid "Little pearls."
  684. msgstr "小珍珠。"
  685. #. type: subsection
  686. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:798
  687. #: guix-git/doc/contributing.texi:799
  688. #, no-wrap
  689. msgid "Java Packages"
  690. msgstr "Java包"
  691. #. type: menuentry
  692. #: guix-git/doc/contributing.texi:402
  693. msgid "Coffee break."
  694. msgstr "喝咖啡休息。"
  695. #. type: subsection
  696. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:818
  697. #: guix-git/doc/contributing.texi:819
  698. #, no-wrap
  699. msgid "Rust Crates"
  700. msgstr ""
  701. #. type: menuentry
  702. #: guix-git/doc/contributing.texi:402
  703. msgid "Beware of oxidation."
  704. msgstr "谨防氧化。"
  705. #. type: subsection
  706. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:852
  707. #: guix-git/doc/contributing.texi:853
  708. #, no-wrap
  709. msgid "Fonts"
  710. msgstr "字体"
  711. #. type: menuentry
  712. #: guix-git/doc/contributing.texi:402
  713. msgid "Fond of fonts."
  714. msgstr "字体的乐趣。"
  715. #. type: cindex
  716. #: guix-git/doc/contributing.texi:408
  717. #, no-wrap
  718. msgid "free software"
  719. msgstr "自由软件"
  720. #. type: Plain text
  721. #: guix-git/doc/contributing.texi:416
  722. 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."
  723. msgstr "开发 GNU 操作系统是为了用户拥有计算的自由。GNU是@dfn{自由软件},这意味着它有@url{https://www.gnu.org/philosophy/free-sw.html,四项重要的自由}:运行程序的自由,以源代码形式学习和修改程序的自由,原样重新分发副本的自由,和分发修改后的版本的自由。GNU 发行版里包含的软件包只提供遵守这四项自由的软件。"
  724. #. type: Plain text
  725. #: guix-git/doc/contributing.texi:422
  726. 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."
  727. msgstr "此外,GNU 发行版遵循@url{https://www.gnu.org/distros/free-system-distribution-guidelines.html,自由软件发行版准则}。这些准则拒绝非自由的固件和对非自由软件的推荐,并讨论解决商标和专利的方法。"
  728. #. type: Plain text
  729. #: guix-git/doc/contributing.texi:430
  730. 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."
  731. msgstr "某些上游的软件包源代码包含一小部分违反上述准则的可选的子集,比如这个子集本身就是非自由代码。这时,这些讨厌的代码需要用合适的补丁或者软件包定义(@pxref{Defining Packages})里的@code{origin}里的代码片段移除。这样,@code{guix build --source}就可以返回自由的源代码而不是未经修改的上游源代码。"
  732. #. type: cindex
  733. #: guix-git/doc/contributing.texi:435
  734. #, no-wrap
  735. msgid "package name"
  736. msgstr "软件包名字"
  737. #. type: Plain text
  738. #: guix-git/doc/contributing.texi:443
  739. #, fuzzy
  740. 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}."
  741. msgstr "一个软件包事实上有两个名字:第一个是@emph{Scheme变量}的名字,即用@code{define-public}定义的名字。通过这个名字,软件包可以被Scheme代码找到,如用作其它软件包的输入。第二个名字是软件包定义里的@code{name}属性的字符串值。这个名字用于软件包管理命令,如:@command{guix package},@command{guix build}"
  742. #. type: Plain text
  743. #: guix-git/doc/contributing.texi:448
  744. 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}."
  745. msgstr "两个名字通常是相同的,常是上游项目名字转成小写字母并把下划线替换成连字符的结果。比如,GNUnet转成@code{gnunet},SDL_net转成@code{sdl-net}。"
  746. #. type: Plain text
  747. #: guix-git/doc/contributing.texi:456
  748. 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."
  749. msgstr ""
  750. #. type: Plain text
  751. #: guix-git/doc/contributing.texi:461
  752. 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."
  753. msgstr "我们不给库软件包添加@code{lib}前缀,除非它是项目官方名字的一部分。但是@pxref{Python Modules}和@ref{Perl Modules}有关于Python和Perl语言的特殊规则。"
  754. #. type: Plain text
  755. #: guix-git/doc/contributing.texi:463
  756. msgid "Font package names are handled differently, @pxref{Fonts}."
  757. msgstr "字体软件包的名字处理起来不同,@pxref{Fonts}."
  758. #. type: cindex
  759. #: guix-git/doc/contributing.texi:468
  760. #, no-wrap
  761. msgid "package version"
  762. msgstr "软件包版本"
  763. #. type: Plain text
  764. #: guix-git/doc/contributing.texi:477
  765. 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."
  766. msgstr "我们通常只为每个自由软件的最新版本打包。但是有时候,比如对于版本不兼容的库,需要有同一个软件包的两个或更多版本。它们需要使用不同的Scheme变量名。我们为最新的版本使用@ref{Package Naming}里规定的名字,旧的版本使用加上后缀的名字,后缀是@code{-}和可以区分开版本号的版本号的最小前缀。"
  767. #. type: Plain text
  768. #: guix-git/doc/contributing.texi:480
  769. msgid "The name inside the package definition is the same for all versions of a package and does not contain any version number."
  770. msgstr "软件包定义里的名字对于同一个软件包的所有版本都是相同的,并且不含有版本号。"
  771. #. type: Plain text
  772. #: guix-git/doc/contributing.texi:482
  773. msgid "For instance, the versions 2.24.20 and 3.9.12 of GTK+ may be packaged as follows:"
  774. msgstr "例如,GTK+的2.24.20和3.9.12两个版本可以这样打包:"
  775. #. type: lisp
  776. #: guix-git/doc/contributing.texi:494
  777. #, no-wrap
  778. msgid ""
  779. "(define-public gtk+\n"
  780. " (package\n"
  781. " (name \"gtk+\")\n"
  782. " (version \"3.9.12\")\n"
  783. " ...))\n"
  784. "(define-public gtk+-2\n"
  785. " (package\n"
  786. " (name \"gtk+\")\n"
  787. " (version \"2.24.20\")\n"
  788. " ...))\n"
  789. msgstr ""
  790. "(define-public gtk+\n"
  791. " (package\n"
  792. " (name \"gtk+\")\n"
  793. " (version \"3.9.12\")\n"
  794. " ...))\n"
  795. "(define-public gtk+-2\n"
  796. " (package\n"
  797. " (name \"gtk+\")\n"
  798. " (version \"2.24.20\")\n"
  799. " ...))\n"
  800. #. type: Plain text
  801. #: guix-git/doc/contributing.texi:496
  802. msgid "If we also wanted GTK+ 3.8.2, this would be packaged as"
  803. msgstr "如果我们还需要GTK+ 3.8.2,就这样打包"
  804. #. type: lisp
  805. #: guix-git/doc/contributing.texi:502
  806. #, no-wrap
  807. msgid ""
  808. "(define-public gtk+-3.8\n"
  809. " (package\n"
  810. " (name \"gtk+\")\n"
  811. " (version \"3.8.2\")\n"
  812. " ...))\n"
  813. msgstr ""
  814. "(define-public gtk+-3.8\n"
  815. " (package\n"
  816. " (name \"gtk+\")\n"
  817. " (version \"3.8.2\")\n"
  818. " ...))\n"
  819. #. type: cindex
  820. #: guix-git/doc/contributing.texi:506
  821. #, no-wrap
  822. msgid "version number, for VCS snapshots"
  823. msgstr "用于版本控制快照的版本号"
  824. #. type: Plain text
  825. #: guix-git/doc/contributing.texi:512
  826. 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?"
  827. msgstr "有时候,我们为软件包上游的版本控制系统(VCS)的快照而不是正式发布版打包。这是特殊情况,因为决定哪个是稳定版的权力应该属于上游开发者。然而,有时候这是必须的。那么,我们该如何决定写在@code{version}里的版本号呢?"
  828. #. type: Plain text
  829. #: guix-git/doc/contributing.texi:520
  830. 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:"
  831. msgstr "显然,我们需要让VCS快照的commit ID在版本号中体现出来,但是我们也需要确保版本号单调递增,以便@command{guix package --upgrade}决定哪个版本号更新。由于commit ID,尤其是Git的commit ID,不是单调递增的,我们添加一个每次升级快照时都手动增长的revision数字。最后的版本号字符串看起来是这样:"
  832. #. type: example
  833. #: guix-git/doc/contributing.texi:529
  834. #, no-wrap
  835. msgid ""
  836. "2.0.11-3.cabba9e\n"
  837. " ^ ^ ^\n"
  838. " | | `-- upstream commit ID\n"
  839. " | |\n"
  840. " | `--- Guix package revision\n"
  841. " |\n"
  842. "latest upstream version\n"
  843. msgstr ""
  844. "2.0.11-3.cabba9e\n"
  845. " ^ ^ ^\n"
  846. " | | `-- 上游的commit ID\n"
  847. " | |\n"
  848. " | `--- Guix软件包的revision\n"
  849. " |\n"
  850. "最新的上游版本号\n"
  851. #. type: Plain text
  852. #: guix-git/doc/contributing.texi:539
  853. #, fuzzy
  854. 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:"
  855. msgstr "把@code{版本号}里的commit ID截短,比如只取7个数字,是一个好主意。它避免了美学上的烦恼(假设美学在这里很重要),以及操作系统限制引起的问题(比如Linux内核的127字节)。尽管如此,在@code{origin}里最好使用完整的commit ID,以避免混淆。"
  856. #. type: lisp
  857. #: guix-git/doc/contributing.texi:556
  858. #, no-wrap
  859. msgid ""
  860. "(define my-package\n"
  861. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  862. " (revision \"1\")) ;Guix package revision\n"
  863. " (package\n"
  864. " (version (git-version \"0.9\" revision commit))\n"
  865. " (source (origin\n"
  866. " (method git-fetch)\n"
  867. " (uri (git-reference\n"
  868. " (url \"git://example.org/my-package.git\")\n"
  869. " (commit commit)))\n"
  870. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  871. " (file-name (git-file-name name version))))\n"
  872. " ;; @dots{}\n"
  873. " )))\n"
  874. msgstr ""
  875. "(define my-package\n"
  876. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  877. " (revision \"1\")) ;Guix软件包的revision\n"
  878. " (package\n"
  879. " (version (git-version \"0.9\" revision commit))\n"
  880. " (source (origin\n"
  881. " (method git-fetch)\n"
  882. " (uri (git-reference\n"
  883. " (url \"git://example.org/my-package.git\")\n"
  884. " (commit commit)))\n"
  885. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  886. " (file-name (git-file-name name version))))\n"
  887. " ;; @dots{}\n"
  888. " )))\n"
  889. #. type: deffn
  890. #: guix-git/doc/contributing.texi:558
  891. #, no-wrap
  892. msgid "{Scheme Procedure} git-version @var{VERSION} @var{REVISION} @var{COMMIT}"
  893. msgstr ""
  894. #. type: deffn
  895. #: guix-git/doc/contributing.texi:560
  896. msgid "Return the version string for packages using @code{git-fetch}."
  897. msgstr ""
  898. #. type: lisp
  899. #: guix-git/doc/contributing.texi:564
  900. #, no-wrap
  901. msgid ""
  902. "(git-version \"0.2.3\" \"0\" \"93818c936ee7e2f1ba1b315578bde363a7d43d05\")\n"
  903. "@result{} \"0.2.3-0.93818c9\"\n"
  904. msgstr ""
  905. #. type: deffn
  906. #: guix-git/doc/contributing.texi:567
  907. #, no-wrap
  908. msgid "{Scheme Procedure} hg-version @var{VERSION} @var{REVISION} @var{CHANGESET}"
  909. msgstr ""
  910. #. type: deffn
  911. #: guix-git/doc/contributing.texi:570
  912. msgid "Return the version string for packages using @code{hg-fetch}. It works in the same way as @code{git-version}."
  913. msgstr ""
  914. #. type: cindex
  915. #: guix-git/doc/contributing.texi:575
  916. #, no-wrap
  917. msgid "package description"
  918. msgstr "软件包描述"
  919. #. type: cindex
  920. #: guix-git/doc/contributing.texi:576
  921. #, no-wrap
  922. msgid "package synopsis"
  923. msgstr "软件包简介"
  924. #. type: Plain text
  925. #: guix-git/doc/contributing.texi:583
  926. 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."
  927. msgstr "我们已经看到,GNU@tie{}Guix里的每个软件包都包含一个简介(synopsis)和一个描述(description)(@pxref{Defining Packages})。简介和描述很重要:它们是@command{guix package --search}搜索的信息,并且是帮助用户决定一个软件包是否符合自己需求的重要信息。因此,打包的人应该关注怎样写它们的内容。"
  928. #. type: Plain text
  929. #: guix-git/doc/contributing.texi:591
  930. 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''."
  931. 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''。"
  932. #. type: Plain text
  933. #: guix-git/doc/contributing.texi:601
  934. 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."
  935. msgstr "记住,简介必须能被广大的听众理解。例如,“以SAM格式修改对齐”可能对经验丰富的生物信息科研工作者来说能理解,但是对普通对听众则是无用的甚至是令人误解的。简介最好说明软件包应用的领域。在这个例子中,应该这样描述“修改核苷酸序列的对齐格式”,这会让用户更容易判断这是不是他们想要的。"
  936. #. type: Plain text
  937. #: guix-git/doc/contributing.texi:609
  938. 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."
  939. msgstr "描述应该在5至10句话之间。使用完整的句子,并且避免在未介绍的情况下使用缩写。请避免推广营销性对词汇,如“世界领先”,“行业最强”,“下一代”,并且避免高级的形容词,如“最先进的”--他们对用户寻找软件包是无用的,甚至是可疑的。相反的,尽量务实,提及用例和功能。"
  940. #. type: cindex
  941. #: guix-git/doc/contributing.texi:610
  942. #, no-wrap
  943. msgid "Texinfo markup, in package descriptions"
  944. msgstr "软件包描述里的Texinfo标记"
  945. #. type: Plain text
  946. #: guix-git/doc/contributing.texi:619
  947. 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."
  948. msgstr "描述可以含有Texinfo标记,这对格式化有帮助,如@code{@@code}、@code{@@dfn}、列表、超链接(@pxref{Overview,,, texinfo, GNU Texinfo})。但是,在使用某些字符时应该小心,如@samp{@@}和花括号是基本的Texinfo特殊字符(@pxref{Special Characters,,, texinfo, GNU Texinfo})。@command{guix package --show}之类的用户界面会解决渲染问题。"
  949. #. type: Plain text
  950. #: guix-git/doc/contributing.texi:625
  951. #, fuzzy
  952. 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."
  953. msgstr "简介和描述会由@uref{http://translationproject.org/domain/guix-packages.html, Translation Project}项目的志愿者翻译,从而使尽可能多的用户可以用母语阅读。用户界面用当前区域设置的语言搜索和展示这些信息。"
  954. #. type: Plain text
  955. #: guix-git/doc/contributing.texi:630
  956. 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:"
  957. msgstr "为了让@command{xgettext}可以把它们提取成待翻译的字符串,简介和描述@emph{必须是文字字符串}。这意味着你不能使用@code{string-append}或@code{format}来合成字符串:"
  958. #. type: lisp
  959. #: guix-git/doc/contributing.texi:636
  960. #, no-wrap
  961. msgid ""
  962. "(package\n"
  963. " ;; @dots{}\n"
  964. " (synopsis \"This is translatable\")\n"
  965. " (description (string-append \"This is \" \"*not*\" \" translatable.\")))\n"
  966. msgstr ""
  967. "(package\n"
  968. " ;; @dots{}\n"
  969. " (synopsis \"这是可以翻译的\")\n"
  970. " (description (string-append \"这是\" \"*不可以*\" \"翻译的\")))\n"
  971. #. type: Plain text
  972. #: guix-git/doc/contributing.texi:644
  973. 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}):"
  974. msgstr "翻译是很繁重的工作,所以,作为打包者请更加注意你的简介和介绍,每一个改动都会增加翻译的工作量。为了帮助他们,你可以插入这类可以被他们看到的建议和指示(@pxref{xgettext Invocation,,, gettext, GNU Gettext}):"
  975. #. type: lisp
  976. #: guix-git/doc/contributing.texi:649
  977. #, no-wrap
  978. msgid ""
  979. ";; TRANSLATORS: \"X11 resize-and-rotate\" should not be translated.\n"
  980. "(description \"ARandR is designed to provide a simple visual front end\n"
  981. "for the X11 resize-and-rotate (RandR) extension. @dots{}\")\n"
  982. msgstr ""
  983. ";; TRANSLATORS: \"X11 resize-and-rotate\"不需要翻译。\n"
  984. "(description \"ARandR为X11 resize-and-rotate (RandR)扩展提供简单的图形界面。@dots{}\")\n"
  985. #. type: cindex
  986. #: guix-git/doc/contributing.texi:654
  987. #, no-wrap
  988. msgid "snippets, when to use"
  989. msgstr ""
  990. #. type: Plain text
  991. #: guix-git/doc/contributing.texi:665
  992. 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})."
  993. msgstr ""
  994. #. type: cindex
  995. #: guix-git/doc/contributing.texi:669
  996. #, no-wrap
  997. msgid "emacs, packaging"
  998. msgstr ""
  999. #. type: cindex
  1000. #: guix-git/doc/contributing.texi:670
  1001. #, no-wrap
  1002. msgid "elisp, packaging"
  1003. msgstr ""
  1004. #. type: Plain text
  1005. #: guix-git/doc/contributing.texi:682
  1006. 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."
  1007. msgstr ""
  1008. #. type: Plain text
  1009. #: guix-git/doc/contributing.texi:687
  1010. 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}."
  1011. msgstr ""
  1012. #. type: Plain text
  1013. #: guix-git/doc/contributing.texi:696
  1014. 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:"
  1015. msgstr ""
  1016. #. type: lisp
  1017. #: guix-git/doc/contributing.texi:699
  1018. #, no-wrap
  1019. msgid "#:include (cons \"^snippets/\" %default-include))\n"
  1020. msgstr ""
  1021. #. type: Plain text
  1022. #: guix-git/doc/contributing.texi:705
  1023. 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."
  1024. msgstr ""
  1025. #. type: cindex
  1026. #: guix-git/doc/contributing.texi:709
  1027. #, no-wrap
  1028. msgid "python"
  1029. msgstr "python"
  1030. #. type: Plain text
  1031. #: guix-git/doc/contributing.texi:715
  1032. 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}."
  1033. msgstr "我们目前为Python 2和Python 3打包,如@ref{Version Numbers}的规则所述,它们的Scheme变量名分别是@code{python-2}和@code{python}。为了避免和其他编程语言的冲突,Python模块的软件包名字最好含有@code{python}。"
  1034. #. type: Plain text
  1035. #: guix-git/doc/contributing.texi:722
  1036. #, fuzzy
  1037. 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."
  1038. msgstr "某些模块仅和一个版本的Python兼容,其它的和两个版本都兼容。如果一个叫做Foo的软件包仅和Python 3兼容,我们把它命名为@code{python-foo};如果它仅和Python 2兼容,我们把它命名为@code{python2-foo}。如果它和两个版本都兼容,我们创建两个软件包,名字如前所述。"
  1039. #. type: Plain text
  1040. #: guix-git/doc/contributing.texi:728
  1041. 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."
  1042. msgstr "如果一个项目的名字已经含有@code{python}这个单词,我们把它丢掉;例如,python-dateutil模块打包后的名字是@code{python-dateutil}和@code{python2-dateutil}。如果项目的名字以@code{py}开头(如@: @code{pytz}),我们把它保留,并且添加上面所述的前缀。"
  1043. #. type: subsubsection
  1044. #: guix-git/doc/contributing.texi:729
  1045. #, no-wrap
  1046. msgid "Specifying Dependencies"
  1047. msgstr "指定依赖"
  1048. #. type: cindex
  1049. #: guix-git/doc/contributing.texi:730
  1050. #, no-wrap
  1051. msgid "inputs, for Python packages"
  1052. msgstr "Python软件包的输入"
  1053. #. type: Plain text
  1054. #: guix-git/doc/contributing.texi:735
  1055. 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}."
  1056. msgstr "Python软件包的依赖信息通常在包的源代码树里,各种文件有不同的精确度:@file{setup.py}文件,@file{requirements.txt}文件,@file{tox.ini}文件。"
  1057. #. type: Plain text
  1058. #: guix-git/doc/contributing.texi:741
  1059. 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."
  1060. msgstr "你在写软件包配方时的任务是把这些依赖转换成相应的“输入”(@pxref{package Reference, inputs})。尽管@code{pypi}导入工具通常可以做得很好(@pxref{Invoking guix import}),你可能想检查下面这个清单,以决定每个依赖放在哪儿。"
  1061. #. type: itemize
  1062. #: guix-git/doc/contributing.texi:749
  1063. 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."
  1064. msgstr "默认地,我们为Python 2打包时像Python 3一样安装了@code{setuptools}和@code{pip}。所以你不需要把它们两个指定为依赖,否则@command{guix lint}会警告你。"
  1065. #. type: itemize
  1066. #: guix-git/doc/contributing.texi:755
  1067. 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."
  1068. msgstr "运行时需要的Python依赖要放进@code{propagated-inputs}。它们通常由@file{setup.py}文件里的@code{install_requires}关键字或@file{requirements.txt}文件定义。"
  1069. #. type: itemize
  1070. #: guix-git/doc/contributing.texi:763
  1071. 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."
  1072. msgstr "仅在构建时依赖的Python包--如,@file{setup.py}里的@code{setup_requires}关键字列举的包--或仅在测试时依赖的包--如,@code{tests_require}里的包--要放进@code{native-inputs}。因为,(1)在运行时不需要它们,因此不需要propagate,并且(2)在交叉编译时,它们属于“native”输入。"
  1073. #. type: itemize
  1074. #: guix-git/doc/contributing.texi:767
  1075. 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}."
  1076. msgstr "例如@code{pytest},@code{mock},@code{nose}测试框架。当然,如果在运行时需要这里的任何一个包,它需要被加进@code{propagated-inputs}。"
  1077. #. type: itemize
  1078. #: guix-git/doc/contributing.texi:772
  1079. 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."
  1080. msgstr "任何不属于上述类别的包都要被加进@code{inputs},如,构建含有C语言扩展的Python包所需的程序和C语言库。"
  1081. #. type: itemize
  1082. #: guix-git/doc/contributing.texi:778
  1083. 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}})."
  1084. msgstr "如果一个Python软件包由可选的依赖(@code{extras_require}),由你根据它们的性价比(用处/负担)决定是否添加它们(@pxref{Submitting Patches, @command{guix size}})。"
  1085. #. type: cindex
  1086. #: guix-git/doc/contributing.texi:785
  1087. #, no-wrap
  1088. msgid "perl"
  1089. msgstr "perl"
  1090. #. type: Plain text
  1091. #: guix-git/doc/contributing.texi:796
  1092. 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}."
  1093. msgstr "Perl程序和其它软件包的命名规则类似,用小写的上游名字命名。对于仅包含一个类的Perl包,我们使用小写的类名,把所有的@code{::}替换成破折号,并且添加@code{perl-}前缀。所以类@code{XML::Parser}变成@code{perl-xml-parser}。包含多个类的模块保留它们上游的名字,并且添加@code{perl-}前缀。这类模块的名字通常含有@code{perl},这个单词需要被删掉。例如,@code{libwww-perl}变成@code{perl-libwww}。"
  1094. #. type: cindex
  1095. #: guix-git/doc/contributing.texi:801
  1096. #, no-wrap
  1097. msgid "java"
  1098. msgstr "java"
  1099. #. type: Plain text
  1100. #: guix-git/doc/contributing.texi:804
  1101. msgid "Java programs standing for themselves are named as any other package, using the lowercase upstream name."
  1102. msgstr "Java程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1103. #. type: Plain text
  1104. #: guix-git/doc/contributing.texi:810
  1105. 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}."
  1106. msgstr "为了避免和其它编程语言混淆和命名冲突,Java软件包的名字最好有@code{java-}前缀。如果一个项目的名字已经含有@code{java},我们把它删掉;例如,@code{ngsjava}打包后的名字是@code{java-ngs}。"
  1107. #. type: Plain text
  1108. #: guix-git/doc/contributing.texi:816
  1109. 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}."
  1110. msgstr "对于仅包含一个或很少几个类的Java软件包,我们使用小写的类名,把所有的@code{.}替换成破折号,并且添加@code{java-}前缀。因此,类@code{apache.commons.cli}打包后的名字是@code{java-apache-commons-cli}。"
  1111. #. type: cindex
  1112. #: guix-git/doc/contributing.texi:821
  1113. #, no-wrap
  1114. msgid "rust"
  1115. msgstr ""
  1116. #. type: Plain text
  1117. #: guix-git/doc/contributing.texi:824
  1118. msgid "Rust programs standing for themselves are named as any other package, using the lowercase upstream name."
  1119. msgstr "Rust 程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1120. #. type: Plain text
  1121. #: guix-git/doc/contributing.texi:828
  1122. 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."
  1123. msgstr ""
  1124. #. type: Plain text
  1125. #: guix-git/doc/contributing.texi:834
  1126. 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}."
  1127. msgstr ""
  1128. #. type: Plain text
  1129. #: guix-git/doc/contributing.texi:844
  1130. 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."
  1131. msgstr ""
  1132. #. type: Plain text
  1133. #: guix-git/doc/contributing.texi:850
  1134. 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."
  1135. msgstr ""
  1136. #. type: cindex
  1137. #: guix-git/doc/contributing.texi:855 guix-git/doc/guix.texi:1919
  1138. #, no-wrap
  1139. msgid "fonts"
  1140. msgstr "字体"
  1141. #. type: Plain text
  1142. #: guix-git/doc/contributing.texi:861
  1143. 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."
  1144. msgstr "对于通常不会被用户安装用于排版的字体,或者随更大的软件包分发的字体,我们使用通常的命名规则。例如,这适用于X.Org系统附带的字体或TeX Live附带的字体。"
  1145. #. type: Plain text
  1146. #: guix-git/doc/contributing.texi:865
  1147. 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."
  1148. msgstr "为了让用户更容易搜索字体,其它仅含有字体的软件包按以下规则命名,不管上游的包名是什么。"
  1149. #. type: Plain text
  1150. #: guix-git/doc/contributing.texi:873
  1151. 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}."
  1152. msgstr "仅含有一个字体家族的软件包需要以@code{font-}开头;如果作者名字已知,则添加作者名字和@code{-},接着是字体家族名字(把空格替换成破折号),(和通常一样,把所有的大写字母转换成小写字母)。例如,由SIL设计的Gentium字体家族打包后的名字是@code{font-sil-gentium}。"
  1153. #. type: Plain text
  1154. #: guix-git/doc/contributing.texi:882
  1155. 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}."
  1156. msgstr "对于一个含有多个字体家族的软件包,用集合的名字替换字体家族的名字。例如,Liberation字体含有三个家族,Liberation Sans、Liberation Serif和Liberation Mono。它们可以用@code{font-liberation-sans}等名字分开打包;但是由于它们以一个共同的名字分发,我们倾向于以@code{font-liberation}名字统一打包。"
  1157. #. type: Plain text
  1158. #: guix-git/doc/contributing.texi:888
  1159. 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."
  1160. msgstr "当同一个字体家族或字体集合的不同格式分开打包时,把破折号和格式(缩写)添加在软件包名字后面。我们用@code{-ttf}代表TrueType字体,@code{-otf}代表OpenType字体,@code{-type1}代表PostScript Type 1字体。"
  1161. #. type: Plain text
  1162. #: guix-git/doc/contributing.texi:896
  1163. 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."
  1164. msgstr "总的来说,我们的代码遵循GNU代码规范(@pxref{Top,,, standards, GNU代码规范})。但是,这个规范对Scheme的介绍不多,所以这儿提供一些额外的规则。"
  1165. #. type: subsection
  1166. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:904
  1167. #: guix-git/doc/contributing.texi:905
  1168. #, no-wrap
  1169. msgid "Programming Paradigm"
  1170. msgstr "编程范例"
  1171. #. type: menuentry
  1172. #: guix-git/doc/contributing.texi:902
  1173. msgid "How to compose your elements."
  1174. msgstr "怎样合成元素。"
  1175. #. type: subsection
  1176. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:911
  1177. #: guix-git/doc/contributing.texi:912
  1178. #, no-wrap
  1179. msgid "Modules"
  1180. msgstr "模块"
  1181. #. type: menuentry
  1182. #: guix-git/doc/contributing.texi:902
  1183. msgid "Where to store your code?"
  1184. msgstr "在哪里保存代码?"
  1185. #. type: subsection
  1186. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:922
  1187. #: guix-git/doc/contributing.texi:923
  1188. #, no-wrap
  1189. msgid "Data Types and Pattern Matching"
  1190. msgstr "数据类型和模式匹配"
  1191. #. type: menuentry
  1192. #: guix-git/doc/contributing.texi:902
  1193. msgid "Implementing data structures."
  1194. msgstr "实现数据结构。"
  1195. #. type: subsection
  1196. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:937
  1197. #: guix-git/doc/contributing.texi:938
  1198. #, no-wrap
  1199. msgid "Formatting Code"
  1200. msgstr "格式化代码"
  1201. #. type: menuentry
  1202. #: guix-git/doc/contributing.texi:902
  1203. msgid "Writing conventions."
  1204. msgstr "书写规范。"
  1205. #. type: Plain text
  1206. #: guix-git/doc/contributing.texi:910
  1207. 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."
  1208. msgstr "Guix里的Scheme代码是以纯函数的风格写的。一个例外是有关输入/输出的代码,和实现底层概念的过程,如@code{memoize}过程。"
  1209. #. type: Plain text
  1210. #: guix-git/doc/contributing.texi:918
  1211. 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."
  1212. msgstr "用于构建的Guile模块必须放在@code{(guix build @dots{})}命名空间里。它们不允许引用其它Guix或GNU模块。但是,主机端(host-side)模块可以使用构建端(build-side)模块。"
  1213. #. type: Plain text
  1214. #: guix-git/doc/contributing.texi:921
  1215. msgid "Modules that deal with the broader GNU system should be in the @code{(gnu @dots{})} name space rather than @code{(guix @dots{})}."
  1216. msgstr "关于更广的GNU系统的模块应该在@code{(gnu @dots{})}命名空间里而不是@code{(guix @dots{})}。"
  1217. #. type: Plain text
  1218. #: guix-git/doc/contributing.texi:930
  1219. 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."
  1220. msgstr "经典的Lisp倾向于用列表表示所有的东西,然后用@code{car},@code{cdr},@code{cadr}等手动浏览它们。这种风格有几个问题,特别是难以阅读,易出错,并且妨碍生成合适的类型错误报告。"
  1221. #. type: Plain text
  1222. #: guix-git/doc/contributing.texi:936
  1223. #, fuzzy
  1224. 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})."
  1225. msgstr "Guix代码应该定义合适的数据类型(例如,用@code{define-record-type*})而不是滥用列表。而且,它应该利用Guile的@code{(ice-9 match)}模块使用模式匹配,特别是匹配列表的时候。"
  1226. #. type: cindex
  1227. #: guix-git/doc/contributing.texi:940
  1228. #, no-wrap
  1229. msgid "formatting code"
  1230. msgstr "格式化代码"
  1231. #. type: cindex
  1232. #: guix-git/doc/contributing.texi:941
  1233. #, no-wrap
  1234. msgid "coding style"
  1235. msgstr "代码风格"
  1236. #. type: Plain text
  1237. #: guix-git/doc/contributing.texi:948
  1238. #, fuzzy
  1239. 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."
  1240. msgstr "在写Scheme代码时,我们遵循Scheme程序员的通用智慧。通常,我们遵循@url{http://mumble.net/~campbell/scheme/style.txt, Riastradh的Lisp风格}。这个文档碰巧描述了在Guile代码里大量使用的惯例。它很周到,而且写的很好,所以务必阅读。"
  1241. #. type: Plain text
  1242. #: guix-git/doc/contributing.texi:955
  1243. 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})."
  1244. msgstr "一些Guix添加的special form,如@code{substitute*}宏,有特殊的缩进规则。它们的规则在@file{.dir-locals.el}文件里定义,Emacs会自动使用。另外,Emacs-Guix提供的@code{guix-devel-mode}模式可以正确地缩进和高亮Guix代码(@pxref{Development,,, emacs-guix, Emacs-Guix参考手册})。"
  1245. #. type: cindex
  1246. #: guix-git/doc/contributing.texi:956
  1247. #, no-wrap
  1248. msgid "indentation, of code"
  1249. msgstr "代码缩进"
  1250. #. type: cindex
  1251. #: guix-git/doc/contributing.texi:957
  1252. #, no-wrap
  1253. msgid "formatting, of code"
  1254. msgstr "代码格式化"
  1255. #. type: Plain text
  1256. #: guix-git/doc/contributing.texi:960
  1257. 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:"
  1258. msgstr "如果你不使用Emacs,请确保让你的编辑器知道这些规则。为了自动地缩进软件包定义,你也可以运行:"
  1259. #. type: example
  1260. #: guix-git/doc/contributing.texi:963
  1261. #, no-wrap
  1262. msgid "./etc/indent-code.el gnu/packages/@var{file}.scm @var{package}\n"
  1263. msgstr "./etc/indent-code.el gnu/packages/@var{文件}.scm @var{软件包}\n"
  1264. #. type: Plain text
  1265. #: guix-git/doc/contributing.texi:969
  1266. 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:"
  1267. msgstr "这会调用Emacs以批处理模式自动地缩进@file{gnu/packages/@var{文件}.scm}里@var{软件包}的定义。如果想缩进整个文件,省略第二个参数:"
  1268. #. type: example
  1269. #: guix-git/doc/contributing.texi:972
  1270. #, no-wrap
  1271. msgid "./etc/indent-code.el gnu/services/@var{file}.scm\n"
  1272. msgstr "./etc/indent-code.el gnu/services/@var{文件}.scm\n"
  1273. #. type: cindex
  1274. #: guix-git/doc/contributing.texi:974
  1275. #, no-wrap
  1276. msgid "Vim, Scheme code editing"
  1277. msgstr "Vim,编辑Scheme代码"
  1278. #. type: Plain text
  1279. #: guix-git/doc/contributing.texi:980
  1280. 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."
  1281. msgstr "如果你用Vim编辑代码,我们推荐你运行@code{:set autoindent},以使你在输入时自动缩进代码。另外,@uref{https://www.vim.org/scripts/script.php?script_id=3998, @code{paredit.vim}}可以帮你处理括号。"
  1282. #. type: Plain text
  1283. #: guix-git/doc/contributing.texi:984
  1284. 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."
  1285. msgstr "我们要求所有的顶级过程附带一个docstring。这个要求对@code{(guix build @dots{})}命名空间里的简单的私有过程可以放宽。"
  1286. #. type: Plain text
  1287. #: guix-git/doc/contributing.texi:987
  1288. msgid "Procedures should not have more than four positional parameters. Use keyword parameters for procedures that take more than four parameters."
  1289. msgstr "过程不应该有多于四个定位参数。对于接收多于四个定位参数的过程应使用关键字参数。"
  1290. #. type: Plain text
  1291. #: guix-git/doc/contributing.texi:1001
  1292. #, fuzzy
  1293. 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})."
  1294. msgstr "开发是使用Git分布式版本控制系统完成的。因此,对仓库的访问权限不是必须的。我们欢迎以向@email{guix-patches@@gnu.org}邮件列表发送@code{git format-patch}补丁的方式共享代码。"
  1295. #. type: Plain text
  1296. #: guix-git/doc/contributing.texi:1008
  1297. #, fuzzy
  1298. 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})."
  1299. msgstr "这个邮件列表的后端是一个Debbugs实例(可以从@uref{https://bugs.gnu.org/guix-patches}访问),它允许我们跟踪提交的bug。每个发送到那个邮件列表的消息都会被分配一个跟踪数字;之后人们可以通过向@code{@var{NNN}@@debbugs.gnu.org}发送邮件来跟进提交(@var{NNN}是跟踪数字,@pxref{Sending a Patch Series})。"
  1300. #. type: Plain text
  1301. #: guix-git/doc/contributing.texi:1012
  1302. msgid "Please write commit logs in the ChangeLog format (@pxref{Change Logs,,, standards, GNU Coding Standards}); you can check the commit history for examples."
  1303. msgstr "请以ChangeLog格式(@pxref{Change Logs,,, standards, GNU代码规范})写commit日志;你可以浏览commit历史里的例子。"
  1304. #. type: Plain text
  1305. #: guix-git/doc/contributing.texi:1015
  1306. msgid "Before submitting a patch that adds or modifies a package definition, please run through this check list:"
  1307. msgstr "提交添加或者修改软件包定义的补丁之前,请过一遍这个检查列表:"
  1308. #. type: code{#1}
  1309. #: guix-git/doc/contributing.texi:1017 guix-git/doc/contributing.texi:1223
  1310. #, no-wrap
  1311. msgid "git format-patch"
  1312. msgstr ""
  1313. #. type: code{#1}
  1314. #: guix-git/doc/contributing.texi:1018
  1315. #, no-wrap
  1316. msgid "git-format-patch"
  1317. msgstr ""
  1318. #. type: enumerate
  1319. #: guix-git/doc/contributing.texi:1025
  1320. msgid "When generating your patches with @code{git format-patch} or @code{git send-email}, we recommend using the option @code{--base=}, perhaps with the value @code{auto}. This option adds a note to the patch stating which commit the patch is based on. This helps reviewers understand how to apply and review your patches."
  1321. msgstr ""
  1322. #. type: enumerate
  1323. #: guix-git/doc/contributing.texi:1031
  1324. 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."
  1325. msgstr "如果软件包的作者为发布的文件包提供了密码学签名,请验证文件的真实性。对于独立的 GPG 签名文件,这可以通过 @code{gpg --verify} 命令完成。"
  1326. #. type: enumerate
  1327. #: guix-git/doc/contributing.texi:1035
  1328. msgid "Take some time to provide an adequate synopsis and description for the package. @xref{Synopses and Descriptions}, for some guidelines."
  1329. msgstr "花些时间为软件包提供一个合适的简介和描述。更多指导,@xref{Synopses and Descriptions}。"
  1330. #. type: enumerate
  1331. #: guix-git/doc/contributing.texi:1040
  1332. 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})."
  1333. msgstr "运行@code{guix lint @var{软件包}},@var{软件包}是新添加的或修改过的软件包的名字,修复它报告的错误(@pxref{Invoking guix lint})。"
  1334. #. type: enumerate
  1335. #: guix-git/doc/contributing.texi:1044
  1336. msgid "Make sure the package builds on your platform, using @code{guix build @var{package}}."
  1337. msgstr "用@code{guix build @var{软件包}}命令确保这个软件包可以在你的平台上构建。"
  1338. #. type: enumerate
  1339. #: guix-git/doc/contributing.texi:1052
  1340. #, fuzzy
  1341. #| 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:"
  1342. 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:"
  1343. msgstr "我们建议你同时尝试在别的支持的平台上构建这个软件包。你可能没有别的平台的真实的硬件,我们推荐使用@code{qemu-binfmt-service-type}来模拟它们。为了启用这个功能,把下面这个服务添加到你的@code{操作系统}配置的服务列表里:"
  1344. #. type: lisp
  1345. #: guix-git/doc/contributing.texi:1057
  1346. #, fuzzy, no-wrap
  1347. msgid ""
  1348. "(service qemu-binfmt-service-type\n"
  1349. " (qemu-binfmt-configuration\n"
  1350. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  1351. msgstr ""
  1352. "(service qemu-binfmt-service-type\n"
  1353. " (qemu-binfmt-configuration\n"
  1354. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  1355. " (guix-support? #t)))\n"
  1356. #. type: enumerate
  1357. #: guix-git/doc/contributing.texi:1060
  1358. msgid "Then reconfigure your system."
  1359. msgstr "然后重新配置你的系统。"
  1360. #. type: enumerate
  1361. #: guix-git/doc/contributing.texi:1065
  1362. #, fuzzy
  1363. #| 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:"
  1364. 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:"
  1365. msgstr "你之后可以用@code{--system}参数为不同的平台构建软件包。例如,为armhf,aarch64,或mips64架构构建\"hello\"软件包,你可以依次运行如下的命令:"
  1366. #. type: example
  1367. #: guix-git/doc/contributing.texi:1068
  1368. #, fuzzy, no-wrap
  1369. msgid ""
  1370. "guix build --system=armhf-linux --rounds=2 hello\n"
  1371. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1372. msgstr ""
  1373. "guix build --system=armhf-linux --rounds=2 hello\n"
  1374. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1375. "guix build --system=mips64el-linux --rounds=2 hello\n"
  1376. #. type: cindex
  1377. #: guix-git/doc/contributing.texi:1071
  1378. #, no-wrap
  1379. msgid "bundling"
  1380. msgstr "构建"
  1381. #. type: enumerate
  1382. #: guix-git/doc/contributing.texi:1074
  1383. msgid "Make sure the package does not use bundled copies of software already available as separate packages."
  1384. msgstr "请确保软件包里不捆绑出现已经被打过包的软件的副本。"
  1385. #. type: enumerate
  1386. #: guix-git/doc/contributing.texi:1083
  1387. 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."
  1388. msgstr "有时,软件包为了方便用户,捆绑了依赖库的源代码。然而,当依赖库在发行版里已经存在时,做为一个发行版,我们希望确保这些软件包使用发行版里已有的副本。这提高资源使用率(依赖库只构建一次,存储一份),并且使发行版更容易管理,如仅在一个地方对某个软件包进行安全更新就可以影响整个系统--捆绑软件会妨碍这么做。"
  1389. #. type: enumerate
  1390. #: guix-git/doc/contributing.texi:1092
  1391. #, fuzzy
  1392. 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."
  1393. msgstr "看一下@command{guix size}(@pxref{Invoking guix size})的分析报告。这会让你注意到对其它软件包无意中的引用。它也可以帮助决定是否要把一个软件包分割成几个输出(@pxref{有多个输出的软件包}),以及需要使用哪些可选的依赖。特别地,避免把@code{texlive}添加为依赖:因为它太大了,请使用@code{texlive-tiny}或@code{texlive-union}代替它。"
  1394. #. type: enumerate
  1395. #: guix-git/doc/contributing.texi:1097
  1396. #, fuzzy
  1397. #| 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})."
  1398. 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})."
  1399. msgstr "对于重要的更改,确保依赖它的软件包没有受到影响。@code{guix refresh --list-dependent @var{软件包}}会帮你检查(@pxref{Invoking guix refresh})。"
  1400. #. type: cindex
  1401. #: guix-git/doc/contributing.texi:1099
  1402. #, no-wrap
  1403. msgid "branching strategy"
  1404. msgstr "分支策略"
  1405. #. type: cindex
  1406. #: guix-git/doc/contributing.texi:1100
  1407. #, no-wrap
  1408. msgid "rebuild scheduling strategy"
  1409. msgstr "重新构建的调度策略"
  1410. #. type: enumerate
  1411. #: guix-git/doc/contributing.texi:1103
  1412. msgid "Depending on the number of dependent packages and thus the amount of rebuilding induced, commits go to different branches, along these lines:"
  1413. msgstr "取决于受影响的软件包的数量,即需要重新构建的数量,commit需要被提交到不同的分支,具体如下:"
  1414. #. type: item
  1415. #: guix-git/doc/contributing.texi:1105
  1416. #, no-wrap
  1417. msgid "300 dependent packages or less"
  1418. msgstr "300个或更少的受影响的软件包"
  1419. #. type: table
  1420. #: guix-git/doc/contributing.texi:1107
  1421. msgid "@code{master} branch (non-disruptive changes)."
  1422. msgstr "@code{master}分支(非破坏性的更改)。"
  1423. #. type: item
  1424. #: guix-git/doc/contributing.texi:1108
  1425. #, no-wrap
  1426. msgid "between 300 and 1,800 dependent packages"
  1427. msgstr "300 至 1800 个受影响的软件包"
  1428. #. type: table
  1429. #: guix-git/doc/contributing.texi:1114
  1430. #, fuzzy
  1431. 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."
  1432. msgstr "@code{staging}分支(非破坏性的更改)。这个分支每隔大约3周会被合并进@code{master}。对某个主题的更改(如对GNOME系列的更新)可以放进一个特定的分支(如@code{gnome-updates})。"
  1433. #. type: item
  1434. #: guix-git/doc/contributing.texi:1115
  1435. #, no-wrap
  1436. msgid "more than 1,800 dependent packages"
  1437. msgstr "超过 1800 个受影响的软件包"
  1438. #. type: table
  1439. #: guix-git/doc/contributing.texi:1120
  1440. #, fuzzy
  1441. 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."
  1442. msgstr "@code{core-updates}分支(可能含有重要的或破坏性的更改)。这个分支每隔大约2.5个月会被合并进@code{master}。"
  1443. #. type: enumerate
  1444. #: guix-git/doc/contributing.texi:1127
  1445. #, fuzzy
  1446. #| 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."
  1447. 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."
  1448. msgstr "所有这些分支都@uref{@value{SUBSTITUTE-URL}, 被构建农场跟踪},并且当一切都被顺利构建时合并进@code{master}。这使我们在影响到用户之前就能改正问题,并且缩小没有准备好预构建的二进制包的窗口期。"
  1449. #. type: enumerate
  1450. #: guix-git/doc/contributing.texi:1136
  1451. 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."
  1452. msgstr ""
  1453. #. type: cindex
  1454. #: guix-git/doc/contributing.texi:1138
  1455. #, no-wrap
  1456. msgid "determinism, of build processes"
  1457. msgstr "构建过程的确定性"
  1458. #. type: cindex
  1459. #: guix-git/doc/contributing.texi:1139
  1460. #, no-wrap
  1461. msgid "reproducible builds, checking"
  1462. msgstr "检查可复现的构建"
  1463. #. type: enumerate
  1464. #: guix-git/doc/contributing.texi:1143
  1465. 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."
  1466. msgstr "检查软件包的构建过程是不是确定性的。这通常意味着检查对软件包的独立构建是否能得到每一个比特都完全相同的结果。"
  1467. #. type: enumerate
  1468. #: guix-git/doc/contributing.texi:1146
  1469. 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}):"
  1470. msgstr "为此,一个简单的做法是在你的机器上多次构建同一个软件包(@pxref{Invoking guix build}):"
  1471. #. type: example
  1472. #: guix-git/doc/contributing.texi:1149
  1473. #, no-wrap
  1474. msgid "guix build --rounds=2 my-package\n"
  1475. msgstr "guix build --rounds=2 <我的软件包>\n"
  1476. #. type: enumerate
  1477. #: guix-git/doc/contributing.texi:1153
  1478. msgid "This is enough to catch a class of common non-determinism issues, such as timestamps or randomly-generated output in the build result."
  1479. msgstr "这足以查出一批普通的不确定性问题,如构建结果里存在时间戳或随机生成的输出。"
  1480. #. type: enumerate
  1481. #: guix-git/doc/contributing.texi:1163
  1482. #, fuzzy
  1483. #| 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."
  1484. 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."
  1485. msgstr "另一个选择是使用@command{guix challenge}(@pxref{Invoking guix challenge})。当软件包被提交并且被@code{@value{SUBSTITUTE-SERVER}}构建之后,你可以运行这个命令检查你是否得到相同的构建结果。更好的:找另一台可以构建的机器,运行@command{guix publish}。由于远程的构建机器很可能和你的机器不同,这可以捕捉到由硬件不同引起的不确定性问题--如,使用不同的指令集--或不同操作系统内核引起的问题--如,对@code{uname}或@file{/proc}文件的依赖。"
  1486. #. type: enumerate
  1487. #: guix-git/doc/contributing.texi:1169
  1488. 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."
  1489. msgstr "在编写文档时,请用性别中立的词语指代人,如@uref{https://en.wikipedia.org/wiki/Singular_they, “他”@comma{} “他的”},等。"
  1490. #. type: enumerate
  1491. #: guix-git/doc/contributing.texi:1173
  1492. msgid "Verify that your patch contains only one set of related changes. Bundling unrelated changes together makes reviewing harder and slower."
  1493. msgstr "检查你的补丁只包含一些相关的更改。把不相关的更改捆绑在一起会让评审更困难和更慢。"
  1494. #. type: enumerate
  1495. #: guix-git/doc/contributing.texi:1176
  1496. msgid "Examples of unrelated changes include the addition of several packages, or a package update along with fixes to that package."
  1497. msgstr "不相关的更改的例子有:同时新增多个软件包,或更新软件包同时修补这个软件包。"
  1498. #. type: enumerate
  1499. #: guix-git/doc/contributing.texi:1181
  1500. 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})."
  1501. msgstr "请遵守我们的代码格式规范,最好运行@command{etc/indent-code.el}脚本以自动为你格式化(@pxref{Formatting Code})。"
  1502. #. type: enumerate
  1503. #: guix-git/doc/contributing.texi:1189
  1504. 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."
  1505. msgstr "当可能时,请在源URL里使用镜像@pxref{Invoking guix download}。使用可靠的而不是生成的URL。例如,GitHub的下载文件每次生成时不一定是相同的,所以这时最好克隆仓库。不要在URL里使用@command{name}变量:这没有什么用,而且如果名字变了,URL很可能就错了。"
  1506. #. type: enumerate
  1507. #: guix-git/doc/contributing.texi:1193
  1508. msgid "Check if Guix builds (@pxref{Building from Git}) and address the warnings, especially those about use of undefined symbols."
  1509. msgstr ""
  1510. #. type: enumerate
  1511. #: guix-git/doc/contributing.texi:1196
  1512. msgid "Make sure your changes do not break Guix and simulate a @code{guix pull} with:"
  1513. msgstr ""
  1514. #. type: example
  1515. #: guix-git/doc/contributing.texi:1198
  1516. #, no-wrap
  1517. msgid "guix pull --url=/path/to/your/checkout --profile=/tmp/guix.master\n"
  1518. msgstr ""
  1519. #. type: Plain text
  1520. #: guix-git/doc/contributing.texi:1211
  1521. #, fuzzy
  1522. 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."
  1523. msgstr "在提交补丁到邮件列表时,使用@samp{[PATCH] @dots{}}做为主题。你可以使用你的邮件客户端或者@command{git send-email}命令(@pxref{Sending a Patch Series})。我们倾向于接收纯文本的邮件,无论是在正文里还是在MIME附件里。建议你注意你的邮件客户端是否会自动修改换行或缩进,这可能会损坏补丁。"
  1524. #. type: Plain text
  1525. #: guix-git/doc/contributing.texi:1216
  1526. 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."
  1527. msgstr ""
  1528. #. type: Plain text
  1529. #: guix-git/doc/contributing.texi:1219
  1530. msgid "When a bug is resolved, please close the thread by sending an email to @email{@var{NNN}-done@@debbugs.gnu.org}."
  1531. msgstr "当一个bug被修复时,请通过向@email{@var{NNN}-done@@debbugs.gnu.org}发邮件的方式关闭thread。"
  1532. #. type: subsection
  1533. #: guix-git/doc/contributing.texi:1220 guix-git/doc/contributing.texi:1221
  1534. #, fuzzy, no-wrap
  1535. #| msgid "Configuring the boot loader."
  1536. msgid "Configuring Git"
  1537. msgstr "设置引导程序。"
  1538. #. type: cindex
  1539. #: guix-git/doc/contributing.texi:1222
  1540. #, fuzzy, no-wrap
  1541. msgid "git configuration"
  1542. msgstr "系统配置"
  1543. #. type: code{#1}
  1544. #: guix-git/doc/contributing.texi:1224 guix-git/doc/contributing.texi:1259
  1545. #, no-wrap
  1546. msgid "git send-email"
  1547. msgstr "git send-email"
  1548. #. type: Plain text
  1549. #: guix-git/doc/contributing.texi:1232
  1550. 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}."
  1551. msgstr ""
  1552. #. type: Plain text
  1553. #: guix-git/doc/contributing.texi:1238
  1554. 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:"
  1555. msgstr ""
  1556. #. type: example
  1557. #: guix-git/doc/contributing.texi:1241
  1558. #, no-wrap
  1559. msgid "git config --local include.path ../etc/git/gitconfig\n"
  1560. msgstr ""
  1561. #. type: Plain text
  1562. #: guix-git/doc/contributing.texi:1245
  1563. msgid "From then on, any changes to @file{etc/git/gitconfig} would automatically take effect."
  1564. msgstr ""
  1565. #. type: Plain text
  1566. #: guix-git/doc/contributing.texi:1250
  1567. 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}:"
  1568. msgstr ""
  1569. #. type: example
  1570. #: guix-git/doc/contributing.texi:1254
  1571. #, no-wrap
  1572. msgid ""
  1573. "git config --local format.thread shallow\n"
  1574. "git config --local sendemail.thread no\n"
  1575. msgstr ""
  1576. #. type: anchor{#1}
  1577. #: guix-git/doc/contributing.texi:1256 guix-git/doc/contributing.texi:1258
  1578. #, no-wrap
  1579. msgid "Sending a Patch Series"
  1580. msgstr "发送补丁系列"
  1581. #. type: cindex
  1582. #: guix-git/doc/contributing.texi:1258
  1583. #, no-wrap
  1584. msgid "patch series"
  1585. msgstr "补丁系列"
  1586. #. type: Plain text
  1587. #: guix-git/doc/contributing.texi:1269
  1588. #, fuzzy
  1589. 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}."
  1590. msgstr "在发送补丁系列时(如,使用@code{git send-email}),请先向@email{guix-patches@@gnu.org}发送一封邮件,再把后续的补丁发送到@email{@var{NNN}@@debbugs.gnu.org},以确保他们被归在一起。见@uref{https://debbugs.gnu.org/Advanced.html, Debbugs文档}以了解更多信息。"
  1591. #. type: Plain text
  1592. #: guix-git/doc/contributing.texi:1275
  1593. msgid "This section describes how the Guix project tracks its bug reports and patch submissions."
  1594. msgstr ""
  1595. #. type: subsection
  1596. #: guix-git/doc/contributing.texi:1280 guix-git/doc/contributing.texi:1282
  1597. #: guix-git/doc/contributing.texi:1283
  1598. #, no-wrap
  1599. msgid "The Issue Tracker"
  1600. msgstr ""
  1601. #. type: menuentry
  1602. #: guix-git/doc/contributing.texi:1280
  1603. msgid "The official bug and patch tracker."
  1604. msgstr ""
  1605. #. type: subsection
  1606. #: guix-git/doc/contributing.texi:1280 guix-git/doc/contributing.texi:1296
  1607. #: guix-git/doc/contributing.texi:1297
  1608. #, fuzzy, no-wrap
  1609. #| msgid "user interfaces"
  1610. msgid "Debbugs User Interfaces"
  1611. msgstr "用户界面"
  1612. #. type: menuentry
  1613. #: guix-git/doc/contributing.texi:1280
  1614. msgid "Ways to interact with Debbugs."
  1615. msgstr ""
  1616. #. type: subsection
  1617. #: guix-git/doc/contributing.texi:1280 guix-git/doc/contributing.texi:1336
  1618. #: guix-git/doc/contributing.texi:1337
  1619. #, no-wrap
  1620. msgid "Debbugs Usertags"
  1621. msgstr ""
  1622. #. type: menuentry
  1623. #: guix-git/doc/contributing.texi:1280
  1624. msgid "Tag reports with custom labels."
  1625. msgstr ""
  1626. #. type: cindex
  1627. #: guix-git/doc/contributing.texi:1285
  1628. #, no-wrap
  1629. msgid "bug reports, tracking"
  1630. msgstr ""
  1631. #. type: cindex
  1632. #: guix-git/doc/contributing.texi:1286
  1633. #, no-wrap
  1634. msgid "patch submissions, tracking"
  1635. msgstr ""
  1636. #. type: cindex
  1637. #: guix-git/doc/contributing.texi:1287
  1638. #, no-wrap
  1639. msgid "issue tracking"
  1640. msgstr ""
  1641. #. type: cindex
  1642. #: guix-git/doc/contributing.texi:1288
  1643. #, no-wrap
  1644. msgid "Debbugs, issue tracking system"
  1645. msgstr ""
  1646. #. type: Plain text
  1647. #: guix-git/doc/contributing.texi:1295
  1648. 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})."
  1649. msgstr ""
  1650. #. type: Plain text
  1651. #: guix-git/doc/contributing.texi:1301
  1652. msgid "A web interface (actually @emph{two} web interfaces!) are available to browse issues:"
  1653. msgstr ""
  1654. #. type: itemize
  1655. #: guix-git/doc/contributing.texi:1310
  1656. 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;"
  1657. msgstr ""
  1658. #. type: itemize
  1659. #: guix-git/doc/contributing.texi:1312
  1660. #, fuzzy
  1661. msgid "@url{https://bugs.gnu.org/guix} lists bug reports;"
  1662. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  1663. #. type: itemize
  1664. #: guix-git/doc/contributing.texi:1314
  1665. msgid "@url{https://bugs.gnu.org/guix-patches} lists patch submissions."
  1666. msgstr ""
  1667. #. type: Plain text
  1668. #: guix-git/doc/contributing.texi:1319
  1669. 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}}."
  1670. msgstr ""
  1671. #. type: Plain text
  1672. #: guix-git/doc/contributing.texi:1322
  1673. msgid "If you use Emacs, you may find it more convenient to interact with issues using @file{debbugs.el}, which you can install with:"
  1674. msgstr ""
  1675. #. type: example
  1676. #: guix-git/doc/contributing.texi:1325
  1677. #, fuzzy, no-wrap
  1678. msgid "guix install emacs-debbugs\n"
  1679. msgstr "guix install emacs-guix\n"
  1680. #. type: Plain text
  1681. #: guix-git/doc/contributing.texi:1328
  1682. msgid "For example, to list all open issues on @code{guix-patches}, hit:"
  1683. msgstr ""
  1684. #. type: example
  1685. #: guix-git/doc/contributing.texi:1331
  1686. #, no-wrap
  1687. msgid "@kbd{C-u} @kbd{M-x} debbugs-gnu @kbd{RET} @kbd{RET} guix-patches @kbd{RET} n y\n"
  1688. msgstr ""
  1689. #. type: Plain text
  1690. #: guix-git/doc/contributing.texi:1335
  1691. #, fuzzy
  1692. msgid "@xref{Top,,, debbugs-ug, Debbugs User Guide}, for more information on this nifty tool!"
  1693. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  1694. #. type: cindex
  1695. #: guix-git/doc/contributing.texi:1339
  1696. #, no-wrap
  1697. msgid "usertags, for debbugs"
  1698. msgstr ""
  1699. #. type: cindex
  1700. #: guix-git/doc/contributing.texi:1340
  1701. #, no-wrap
  1702. msgid "Debbugs usertags"
  1703. msgstr ""
  1704. #. type: Plain text
  1705. #: guix-git/doc/contributing.texi:1346
  1706. 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.}."
  1707. msgstr ""
  1708. #. type: Plain text
  1709. #: guix-git/doc/contributing.texi:1352
  1710. 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}."
  1711. msgstr ""
  1712. #. type: Plain text
  1713. #: guix-git/doc/contributing.texi:1356
  1714. 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."
  1715. msgstr ""
  1716. #. type: Plain text
  1717. #: guix-git/doc/contributing.texi:1361
  1718. 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:"
  1719. msgstr ""
  1720. #. type: item
  1721. #: guix-git/doc/contributing.texi:1364 guix-git/doc/guix.texi:546
  1722. #, fuzzy, no-wrap
  1723. msgid "powerpc64le-linux"
  1724. msgstr "aarch64-linux"
  1725. #. type: table
  1726. #: guix-git/doc/contributing.texi:1372
  1727. 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."
  1728. msgstr ""
  1729. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  1730. #. type: item
  1731. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  1732. #. type: cindex
  1733. #: guix-git/doc/contributing.texi:1373 guix-git/doc/guix.texi:3059
  1734. #: guix-git/doc/guix.texi:4758
  1735. #, no-wrap
  1736. msgid "reproducibility"
  1737. msgstr ""
  1738. #. type: table
  1739. #: guix-git/doc/contributing.texi:1377
  1740. 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."
  1741. msgstr ""
  1742. #. type: Plain text
  1743. #: guix-git/doc/contributing.texi:1384
  1744. 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."
  1745. msgstr ""
  1746. #. type: cindex
  1747. #: guix-git/doc/contributing.texi:1388
  1748. #, no-wrap
  1749. msgid "commit access, for developers"
  1750. msgstr ""
  1751. #. type: Plain text
  1752. #: guix-git/doc/contributing.texi:1394
  1753. 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."
  1754. msgstr ""
  1755. #. type: Plain text
  1756. #: guix-git/doc/contributing.texi:1398
  1757. 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."
  1758. msgstr ""
  1759. #. type: subsection
  1760. #: guix-git/doc/contributing.texi:1399
  1761. #, fuzzy, no-wrap
  1762. #| msgid "Commit Access"
  1763. msgid "Applying for Commit Access"
  1764. msgstr "提交权利"
  1765. #. type: Plain text
  1766. #: guix-git/doc/contributing.texi:1403
  1767. msgid "When you deem it necessary, consider applying for commit access by following these steps:"
  1768. msgstr ""
  1769. #. type: enumerate
  1770. #: guix-git/doc/contributing.texi:1412
  1771. 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."
  1772. msgstr ""
  1773. #. type: enumerate
  1774. #: guix-git/doc/contributing.texi:1418
  1775. 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''."
  1776. msgstr ""
  1777. #. type: enumerate
  1778. #: guix-git/doc/contributing.texi:1425
  1779. 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."
  1780. msgstr ""
  1781. #. type: enumerate
  1782. #: guix-git/doc/contributing.texi:1431
  1783. 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}):"
  1784. msgstr ""
  1785. #. type: example
  1786. #: guix-git/doc/contributing.texi:1434
  1787. #, no-wrap
  1788. msgid "digest-algo sha512\n"
  1789. msgstr ""
  1790. #. type: enumerate
  1791. #: guix-git/doc/contributing.texi:1439
  1792. msgid "Maintainers ultimately decide whether to grant you commit access, usually following your referrals' recommendation."
  1793. msgstr ""
  1794. #. type: cindex
  1795. #: guix-git/doc/contributing.texi:1441
  1796. #, no-wrap
  1797. msgid "OpenPGP, signed commits"
  1798. msgstr ""
  1799. #. type: enumerate
  1800. #: guix-git/doc/contributing.texi:1446
  1801. 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."
  1802. msgstr ""
  1803. #. type: quotation
  1804. #: guix-git/doc/contributing.texi:1447 guix-git/doc/guix.texi:17483
  1805. #, no-wrap
  1806. msgid "Important"
  1807. msgstr ""
  1808. #. type: quotation
  1809. #: guix-git/doc/contributing.texi:1449
  1810. msgid "Before you can push for the first time, maintainers must:"
  1811. msgstr ""
  1812. #. type: enumerate
  1813. #: guix-git/doc/contributing.texi:1453
  1814. msgid "add your OpenPGP key to the @code{keyring} branch;"
  1815. msgstr ""
  1816. #. type: enumerate
  1817. #: guix-git/doc/contributing.texi:1456
  1818. msgid "add your OpenPGP fingerprint to the @file{.guix-authorizations} file of the branch(es) you will commit to."
  1819. msgstr ""
  1820. #. type: enumerate
  1821. #: guix-git/doc/contributing.texi:1461
  1822. msgid "Make sure to read the rest of this section and... profit!"
  1823. msgstr ""
  1824. #. type: quotation
  1825. #: guix-git/doc/contributing.texi:1467
  1826. 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!"
  1827. msgstr ""
  1828. #. type: quotation
  1829. #: guix-git/doc/contributing.texi:1471
  1830. 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!"
  1831. msgstr ""
  1832. #. type: Plain text
  1833. #: guix-git/doc/contributing.texi:1478
  1834. 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:"
  1835. msgstr ""
  1836. #. type: example
  1837. #: guix-git/doc/contributing.texi:1481
  1838. #, no-wrap
  1839. msgid ""
  1840. "git config commit.gpgsign true\n"
  1841. "\n"
  1842. msgstr ""
  1843. #. type: example
  1844. #: guix-git/doc/contributing.texi:1484
  1845. #, no-wrap
  1846. msgid ""
  1847. "# Substitute the fingerprint of your public PGP key.\n"
  1848. "git config user.signingkey CABBA6EA1DC0FF33\n"
  1849. msgstr ""
  1850. #. type: Plain text
  1851. #: guix-git/doc/contributing.texi:1489
  1852. 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}:"
  1853. msgstr ""
  1854. #. type: example
  1855. #: guix-git/doc/contributing.texi:1492
  1856. #, no-wrap
  1857. msgid "cp etc/git/pre-push .git/hooks/pre-push\n"
  1858. msgstr ""
  1859. #. type: subsection
  1860. #: guix-git/doc/contributing.texi:1494
  1861. #, fuzzy, no-wrap
  1862. #| msgid "Commit Access"
  1863. msgid "Commit Policy"
  1864. msgstr "提交权利"
  1865. #. type: Plain text
  1866. #: guix-git/doc/contributing.texi:1499
  1867. 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})."
  1868. msgstr ""
  1869. #. type: Plain text
  1870. #: guix-git/doc/contributing.texi:1504
  1871. 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})."
  1872. msgstr ""
  1873. #. type: Plain text
  1874. #: guix-git/doc/contributing.texi:1513
  1875. 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}."
  1876. msgstr ""
  1877. #. type: Plain text
  1878. #: guix-git/doc/contributing.texi:1518
  1879. 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."
  1880. msgstr ""
  1881. #. type: Plain text
  1882. #: guix-git/doc/contributing.texi:1522
  1883. 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:"
  1884. msgstr ""
  1885. #. type: example
  1886. #: guix-git/doc/contributing.texi:1525
  1887. #, fuzzy, no-wrap
  1888. msgid "make check-channel-news\n"
  1889. msgstr "make check\n"
  1890. #. type: Plain text
  1891. #: guix-git/doc/contributing.texi:1531
  1892. 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."
  1893. msgstr ""
  1894. #. type: Plain text
  1895. #: guix-git/doc/contributing.texi:1534
  1896. msgid "That last part is subject to being adjusted, allowing individuals to commit directly on non-controversial changes on parts they’re familiar with."
  1897. msgstr ""
  1898. #. type: subsection
  1899. #: guix-git/doc/contributing.texi:1535
  1900. #, no-wrap
  1901. msgid "Addressing Issues"
  1902. msgstr ""
  1903. #. type: Plain text
  1904. #: guix-git/doc/contributing.texi:1546
  1905. 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."
  1906. msgstr ""
  1907. #. type: Plain text
  1908. #: guix-git/doc/contributing.texi:1551
  1909. 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."
  1910. msgstr ""
  1911. #. type: cindex
  1912. #: guix-git/doc/contributing.texi:1552
  1913. #, no-wrap
  1914. msgid "reverting commits"
  1915. msgstr ""
  1916. #. type: Plain text
  1917. #: guix-git/doc/contributing.texi:1558
  1918. 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."
  1919. msgstr ""
  1920. #. type: Plain text
  1921. #: guix-git/doc/contributing.texi:1564
  1922. 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."
  1923. msgstr ""
  1924. #. type: Plain text
  1925. #: guix-git/doc/contributing.texi:1573
  1926. 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."
  1927. msgstr ""
  1928. #. type: subsection
  1929. #: guix-git/doc/contributing.texi:1574
  1930. #, fuzzy, no-wrap
  1931. #| msgid "Log Rotation"
  1932. msgid "Commit Revocation"
  1933. msgstr "日志轮替"
  1934. #. type: Plain text
  1935. #: guix-git/doc/contributing.texi:1581
  1936. 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."
  1937. msgstr ""
  1938. #. type: Plain text
  1939. #: guix-git/doc/contributing.texi:1591
  1940. 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:"
  1941. msgstr ""
  1942. #. type: item
  1943. #: guix-git/doc/contributing.texi:1593
  1944. #, no-wrap
  1945. msgid "repeated violation of the commit policy stated above;"
  1946. msgstr ""
  1947. #. type: item
  1948. #: guix-git/doc/contributing.texi:1594
  1949. #, no-wrap
  1950. msgid "repeated failure to take peer criticism into account;"
  1951. msgstr ""
  1952. #. type: item
  1953. #: guix-git/doc/contributing.texi:1595
  1954. #, no-wrap
  1955. msgid "breaching trust through a series of grave incidents."
  1956. msgstr ""
  1957. #. type: Plain text
  1958. #: guix-git/doc/contributing.texi:1602
  1959. 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."
  1960. msgstr ""
  1961. #. type: subsection
  1962. #: guix-git/doc/contributing.texi:1603
  1963. #, no-wrap
  1964. msgid "Helping Out"
  1965. msgstr ""
  1966. #. type: Plain text
  1967. #: guix-git/doc/contributing.texi:1610
  1968. 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!"
  1969. msgstr ""
  1970. #. type: cindex
  1971. #: guix-git/doc/contributing.texi:1614
  1972. #, fuzzy, no-wrap
  1973. msgid "update-guix-package, updating the guix package"
  1974. msgstr "guix package:调用guix package"
  1975. #. type: Plain text
  1976. #: guix-git/doc/contributing.texi:1620
  1977. 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:"
  1978. msgstr ""
  1979. #. type: example
  1980. #: guix-git/doc/contributing.texi:1623
  1981. #, no-wrap
  1982. msgid "make update-guix-package\n"
  1983. msgstr ""
  1984. #. type: Plain text
  1985. #: guix-git/doc/contributing.texi:1630
  1986. 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."
  1987. msgstr ""
  1988. #. type: Plain text
  1989. #: guix-git/doc/contributing.texi:1634
  1990. 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:"
  1991. msgstr ""
  1992. #. type: example
  1993. #: guix-git/doc/contributing.texi:1637
  1994. #, fuzzy, no-wrap
  1995. msgid "./pre-inst-env guix build guix\n"
  1996. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  1997. #. type: Plain text
  1998. #: guix-git/doc/contributing.texi:1642
  1999. 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."
  2000. msgstr ""
  2001. #. type: Plain text
  2002. #: guix-git/doc/contributing.texi:1647
  2003. 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."
  2004. msgstr ""
  2005. #. type: cindex
  2006. #: guix-git/doc/contributing.texi:1648
  2007. #, fuzzy, no-wrap
  2008. #| msgid "isolation"
  2009. msgid "translation"
  2010. msgstr "隔离"
  2011. #. type: cindex
  2012. #: guix-git/doc/contributing.texi:1649
  2013. #, no-wrap
  2014. msgid "l10n"
  2015. msgstr ""
  2016. #. type: cindex
  2017. #: guix-git/doc/contributing.texi:1650
  2018. #, no-wrap
  2019. msgid "i18n"
  2020. msgstr ""
  2021. #. type: cindex
  2022. #: guix-git/doc/contributing.texi:1651
  2023. #, no-wrap
  2024. msgid "native language support"
  2025. msgstr ""
  2026. #. type: Plain text
  2027. #: guix-git/doc/contributing.texi:1661
  2028. 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!"
  2029. msgstr ""
  2030. #. type: Plain text
  2031. #: guix-git/doc/contributing.texi:1667
  2032. 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."
  2033. msgstr ""
  2034. #. type: Plain text
  2035. #: guix-git/doc/contributing.texi:1674
  2036. 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."
  2037. msgstr ""
  2038. #. type: Plain text
  2039. #: guix-git/doc/contributing.texi:1679
  2040. 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}."
  2041. msgstr ""
  2042. #. type: Plain text
  2043. #: guix-git/doc/contributing.texi:1681
  2044. msgid "Guix has five components hosted on Weblate."
  2045. msgstr ""
  2046. #. type: item
  2047. #: guix-git/doc/contributing.texi:1683
  2048. #, no-wrap
  2049. msgid "@code{guix} contains all the strings from the Guix software (the"
  2050. msgstr ""
  2051. #. type: itemize
  2052. #: guix-git/doc/contributing.texi:1685
  2053. msgid "guided system installer, the package manager, etc), excluding packages."
  2054. msgstr ""
  2055. #. type: item
  2056. #: guix-git/doc/contributing.texi:1685
  2057. #, no-wrap
  2058. msgid "@code{packages} contains the synopsis (single-sentence description"
  2059. msgstr ""
  2060. #. type: itemize
  2061. #: guix-git/doc/contributing.texi:1687
  2062. msgid "of a package) and description (longer description) of packages in Guix."
  2063. msgstr ""
  2064. #. type: item
  2065. #: guix-git/doc/contributing.texi:1687
  2066. #, no-wrap
  2067. msgid "@code{website} contains the official Guix website, except for"
  2068. msgstr ""
  2069. #. type: itemize
  2070. #: guix-git/doc/contributing.texi:1689
  2071. msgid "blog posts and multimedia content."
  2072. msgstr ""
  2073. #. type: item
  2074. #: guix-git/doc/contributing.texi:1689
  2075. #, no-wrap
  2076. msgid "@code{documentation-manual} corresponds to this manual."
  2077. msgstr ""
  2078. #. type: item
  2079. #: guix-git/doc/contributing.texi:1690
  2080. #, no-wrap
  2081. msgid "@code{documentation-cookbook} is the component for the cookbook."
  2082. msgstr ""
  2083. #. type: subsubheading
  2084. #: guix-git/doc/contributing.texi:1693
  2085. #, no-wrap
  2086. msgid "General Directions"
  2087. msgstr ""
  2088. #. type: Plain text
  2089. #: guix-git/doc/contributing.texi:1701
  2090. 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."
  2091. msgstr ""
  2092. #. type: Plain text
  2093. #: guix-git/doc/contributing.texi:1706
  2094. 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."
  2095. msgstr ""
  2096. #. type: Plain text
  2097. #: guix-git/doc/contributing.texi:1717
  2098. 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."
  2099. msgstr ""
  2100. #. type: Plain text
  2101. #: guix-git/doc/contributing.texi:1722
  2102. 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."
  2103. msgstr ""
  2104. #. type: subsubheading
  2105. #: guix-git/doc/contributing.texi:1723
  2106. #, no-wrap
  2107. msgid "Translation Components"
  2108. msgstr ""
  2109. #. type: Plain text
  2110. #: guix-git/doc/contributing.texi:1728
  2111. 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!"
  2112. msgstr ""
  2113. #. type: item
  2114. #: guix-git/doc/contributing.texi:1730 guix-git/doc/guix.texi:9297
  2115. #, no-wrap
  2116. msgid "guix"
  2117. msgstr ""
  2118. #. type: table
  2119. #: guix-git/doc/contributing.texi:1735
  2120. 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."
  2121. msgstr ""
  2122. #. type: table
  2123. #: guix-git/doc/contributing.texi:1744
  2124. 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."
  2125. msgstr ""
  2126. #. type: table
  2127. #: guix-git/doc/contributing.texi:1748
  2128. 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."
  2129. msgstr ""
  2130. #. type: table
  2131. #: guix-git/doc/contributing.texi:1756
  2132. 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."
  2133. msgstr ""
  2134. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  2135. #. type: item
  2136. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  2137. #. type: cindex
  2138. #: guix-git/doc/contributing.texi:1757 guix-git/doc/guix.texi:2977
  2139. #, no-wrap
  2140. msgid "packages"
  2141. msgstr ""
  2142. #. type: table
  2143. #: guix-git/doc/contributing.texi:1762
  2144. 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."
  2145. msgstr ""
  2146. #. type: table
  2147. #: guix-git/doc/contributing.texi:1771
  2148. 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})."
  2149. msgstr ""
  2150. #. type: item
  2151. #: guix-git/doc/contributing.texi:1772
  2152. #, no-wrap
  2153. msgid "documentation-manual and documentation-cookbook"
  2154. msgstr ""
  2155. #. type: table
  2156. #: guix-git/doc/contributing.texi:1776
  2157. msgid "The first step to ensure a successful translation of the manual is to find and translate the following strings @emph{first}:"
  2158. msgstr ""
  2159. #. type: item
  2160. #: guix-git/doc/contributing.texi:1778
  2161. #, no-wrap
  2162. msgid "@code{version.texi}: Translate this string as @code{version-xx.texi},"
  2163. msgstr ""
  2164. #. type: itemize
  2165. #: guix-git/doc/contributing.texi:1781
  2166. msgid "where @code{xx} is your language code (the one shown in the URL on weblate)."
  2167. msgstr ""
  2168. #. type: item
  2169. #: guix-git/doc/contributing.texi:1781
  2170. #, no-wrap
  2171. msgid "@code{contributing.texi}: Translate this string as"
  2172. msgstr ""
  2173. #. type: itemize
  2174. #: guix-git/doc/contributing.texi:1783
  2175. msgid "@code{contributing.xx.texi}, where @code{xx} is the same language code."
  2176. msgstr ""
  2177. #. type: item
  2178. #: guix-git/doc/contributing.texi:1783
  2179. #, no-wrap
  2180. msgid "@code{Top}: Do not translate this string, it is important for Texinfo."
  2181. msgstr ""
  2182. #. type: itemize
  2183. #: guix-git/doc/contributing.texi:1786
  2184. 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."
  2185. msgstr ""
  2186. #. type: table
  2187. #: guix-git/doc/contributing.texi:1791
  2188. 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."
  2189. msgstr ""
  2190. #. type: table
  2191. #: guix-git/doc/contributing.texi:1798
  2192. 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."
  2193. msgstr ""
  2194. #. type: table
  2195. #: guix-git/doc/contributing.texi:1806
  2196. 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."
  2197. msgstr ""
  2198. #. type: table
  2199. #: guix-git/doc/contributing.texi:1816
  2200. 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."
  2201. msgstr ""
  2202. #. type: item
  2203. #: guix-git/doc/contributing.texi:1817
  2204. #, fuzzy, no-wrap
  2205. #| msgid "official website"
  2206. msgid "website"
  2207. msgstr "官方网站"
  2208. #. type: table
  2209. #: guix-git/doc/contributing.texi:1824
  2210. 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."
  2211. msgstr ""
  2212. #. type: example
  2213. #: guix-git/doc/contributing.texi:1831
  2214. #, no-wrap
  2215. msgid ""
  2216. "#. TRANSLATORS: Defining Packages is a section name\n"
  2217. "#. in the English (en) manual.\n"
  2218. "#: apps/base/templates/about.scm:64\n"
  2219. "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"
  2220. "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"
  2221. msgstr ""
  2222. #. type: table
  2223. #: guix-git/doc/contributing.texi:1834
  2224. msgid "Note that you need to include the same markups. You cannot skip any."
  2225. msgstr ""
  2226. #. type: Plain text
  2227. #: guix-git/doc/contributing.texi:1842
  2228. 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."
  2229. msgstr ""
  2230. #. type: subsubheading
  2231. #: guix-git/doc/contributing.texi:1843
  2232. #, no-wrap
  2233. msgid "Outside of Weblate"
  2234. msgstr ""
  2235. #. type: Plain text
  2236. #: guix-git/doc/contributing.texi:1846
  2237. msgid "Currently, some parts of Guix cannot be translated on Weblate, help wanted!"
  2238. msgstr ""
  2239. #. type: item
  2240. #: guix-git/doc/contributing.texi:1848
  2241. #, no-wrap
  2242. msgid "@command{guix pull} news can be translated in @file{news.scm}, but is not"
  2243. msgstr ""
  2244. #. type: itemize
  2245. #: guix-git/doc/contributing.texi:1854
  2246. 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."
  2247. msgstr ""
  2248. #. type: item
  2249. #: guix-git/doc/contributing.texi:1854
  2250. #, no-wrap
  2251. msgid "Guix blog posts cannot currently be translated."
  2252. msgstr ""
  2253. #. type: item
  2254. #: guix-git/doc/contributing.texi:1855
  2255. #, no-wrap
  2256. msgid "The installer script (for foreign distributions) is entirely in English."
  2257. msgstr ""
  2258. #. type: item
  2259. #: guix-git/doc/contributing.texi:1856
  2260. #, no-wrap
  2261. msgid "Some of the libraries Guix uses cannot be translated or are translated"
  2262. msgstr ""
  2263. #. type: itemize
  2264. #: guix-git/doc/contributing.texi:1858
  2265. msgid "outside of the Guix project. Guile itself is not internationalized."
  2266. msgstr ""
  2267. #. type: item
  2268. #: guix-git/doc/contributing.texi:1858
  2269. #, no-wrap
  2270. msgid "Other manuals linked from this manual or the cookbook might not be"
  2271. msgstr ""
  2272. #. type: itemize
  2273. #: guix-git/doc/contributing.texi:1860
  2274. msgid "translated."
  2275. msgstr ""
  2276. #. type: subsubheading
  2277. #: guix-git/doc/contributing.texi:1862
  2278. #, no-wrap
  2279. msgid "Translation Infrastructure"
  2280. msgstr ""
  2281. #. type: Plain text
  2282. #: guix-git/doc/contributing.texi:1873
  2283. 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."
  2284. msgstr ""
  2285. #. type: Plain text
  2286. #: guix-git/doc/contributing.texi:1877
  2287. 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."
  2288. msgstr ""
  2289. #. type: Plain text
  2290. #: guix-git/doc/contributing.texi:1883
  2291. 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."
  2292. msgstr ""
  2293. #. type: Plain text
  2294. #: guix-git/doc/contributing.texi:1887
  2295. 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."
  2296. msgstr ""
  2297. #. type: item
  2298. #: guix-git/doc/contributing.texi:1889
  2299. #, no-wrap
  2300. msgid "New po files for the @code{guix} and @code{packages} components must"
  2301. msgstr ""
  2302. #. type: itemize
  2303. #: guix-git/doc/contributing.texi:1892
  2304. msgid "be registered by adding the new language to @file{po/guix/LINGUAS} or @file{po/packages/LINGUAS}."
  2305. msgstr ""
  2306. #. type: item
  2307. #: guix-git/doc/contributing.texi:1892
  2308. #, no-wrap
  2309. msgid "New po files for the @code{documentation-manual} component must be"
  2310. msgstr ""
  2311. #. type: itemize
  2312. #: guix-git/doc/contributing.texi:1898
  2313. 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}."
  2314. msgstr ""
  2315. #. type: item
  2316. #: guix-git/doc/contributing.texi:1898
  2317. #, no-wrap
  2318. msgid "New po files for the @code{documentation-cookbook} component must be"
  2319. msgstr ""
  2320. #. type: itemize
  2321. #: guix-git/doc/contributing.texi:1904
  2322. 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}."
  2323. msgstr ""
  2324. #. type: item
  2325. #: guix-git/doc/contributing.texi:1904
  2326. #, no-wrap
  2327. msgid "New po files for the @code{website} component must be added to the"
  2328. msgstr ""
  2329. #. type: itemize
  2330. #: guix-git/doc/contributing.texi:1909
  2331. 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)."
  2332. msgstr ""
  2333. #. type: Plain text
  2334. #: guix-git/doc/guix.texi:7
  2335. msgid "@documentencoding UTF-8"
  2336. msgstr "@documentencoding UTF-8"
  2337. #. type: title
  2338. #: guix-git/doc/guix.texi:7 guix-git/doc/guix.texi:130
  2339. #, no-wrap
  2340. msgid "GNU Guix Reference Manual"
  2341. msgstr "GNU Guix 参考手册"
  2342. #. type: include
  2343. #: guix-git/doc/guix.texi:10
  2344. #, no-wrap
  2345. msgid "version.texi"
  2346. msgstr "version-zh_CN.texi"
  2347. #. type: copying
  2348. #: guix-git/doc/guix.texi:102
  2349. 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, 2021 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@* Copyright @copyright{} 2021 Josselin Poiret@*"
  2350. msgstr ""
  2351. #. type: copying
  2352. #: guix-git/doc/guix.texi:109
  2353. 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''."
  2354. 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''."
  2355. #. type: dircategory
  2356. #: guix-git/doc/guix.texi:111
  2357. #, no-wrap
  2358. msgid "System administration"
  2359. msgstr "系统管理"
  2360. #. type: menuentry
  2361. #: guix-git/doc/guix.texi:119
  2362. msgid "Guix: (guix)"
  2363. msgstr "Guix:(guix)"
  2364. #. type: menuentry
  2365. #: guix-git/doc/guix.texi:119
  2366. msgid "Manage installed software and system configuration."
  2367. msgstr "管理安装的软件和系统配置。"
  2368. #. type: menuentry
  2369. #: guix-git/doc/guix.texi:119
  2370. msgid "guix package: (guix)Invoking guix package"
  2371. msgstr "guix package:调用guix package"
  2372. #. type: menuentry
  2373. #: guix-git/doc/guix.texi:119
  2374. msgid "Installing, removing, and upgrading packages."
  2375. msgstr "安装、删除和升级软件包。"
  2376. #. type: menuentry
  2377. #: guix-git/doc/guix.texi:119
  2378. msgid "guix gc: (guix)Invoking guix gc"
  2379. msgstr "guix gc:调用guix gc"
  2380. #. type: menuentry
  2381. #: guix-git/doc/guix.texi:119
  2382. msgid "Reclaiming unused disk space."
  2383. msgstr "回收不使用的硬盘空间。"
  2384. #. type: menuentry
  2385. #: guix-git/doc/guix.texi:119
  2386. msgid "guix pull: (guix)Invoking guix pull"
  2387. msgstr "guix pull:调用guix pull"
  2388. #. type: menuentry
  2389. #: guix-git/doc/guix.texi:119
  2390. msgid "Update the list of available packages."
  2391. msgstr "更新可用的软件包列表。"
  2392. #. type: menuentry
  2393. #: guix-git/doc/guix.texi:119
  2394. msgid "guix system: (guix)Invoking guix system"
  2395. msgstr "guix system:调用guix system"
  2396. #. type: menuentry
  2397. #: guix-git/doc/guix.texi:119
  2398. msgid "Manage the operating system configuration."
  2399. msgstr "管理操作系统配置。"
  2400. #. type: menuentry
  2401. #: guix-git/doc/guix.texi:119
  2402. #, fuzzy
  2403. msgid "guix deploy: (guix)Invoking guix deploy"
  2404. msgstr "guix pull:调用guix pull"
  2405. #. type: menuentry
  2406. #: guix-git/doc/guix.texi:119
  2407. #, fuzzy
  2408. msgid "Manage operating system configurations for remote hosts."
  2409. msgstr "管理操作系统配置。"
  2410. #. type: dircategory
  2411. #: guix-git/doc/guix.texi:121
  2412. #, no-wrap
  2413. msgid "Software development"
  2414. msgstr "软件开发"
  2415. #. type: menuentry
  2416. #: guix-git/doc/guix.texi:127
  2417. #, fuzzy
  2418. #| msgid "guix pull: (guix)Invoking guix pull"
  2419. msgid "guix shell: (guix)Invoking guix shell"
  2420. msgstr "guix pull:调用guix pull"
  2421. #. type: menuentry
  2422. #: guix-git/doc/guix.texi:127
  2423. #, fuzzy
  2424. #| msgid "Creating software bundles."
  2425. msgid "Creating software environments."
  2426. msgstr "创建软件bundle。"
  2427. #. type: menuentry
  2428. #: guix-git/doc/guix.texi:127
  2429. msgid "guix environment: (guix)Invoking guix environment"
  2430. msgstr "guix environment:调用guix environment"
  2431. #. type: menuentry
  2432. #: guix-git/doc/guix.texi:127
  2433. msgid "Building development environments with Guix."
  2434. msgstr "用Guix构建开发环境。"
  2435. #. type: menuentry
  2436. #: guix-git/doc/guix.texi:127
  2437. msgid "guix build: (guix)Invoking guix build"
  2438. msgstr "guix build:(guix)调用guix build"
  2439. #. type: menuentry
  2440. #: guix-git/doc/guix.texi:127
  2441. msgid "Building packages."
  2442. msgstr "构建软件包。"
  2443. #. type: menuentry
  2444. #: guix-git/doc/guix.texi:127
  2445. msgid "guix pack: (guix)Invoking guix pack"
  2446. msgstr "guix pack:(guix)调用guix pack"
  2447. #. type: menuentry
  2448. #: guix-git/doc/guix.texi:127
  2449. msgid "Creating binary bundles."
  2450. msgstr "创建二进制bundle。"
  2451. #. type: subtitle
  2452. #: guix-git/doc/guix.texi:131
  2453. #, no-wrap
  2454. msgid "Using the GNU Guix Functional Package Manager"
  2455. msgstr "使用GNU Guix函数式包管理器"
  2456. #. type: author
  2457. #: guix-git/doc/guix.texi:132
  2458. #, no-wrap
  2459. msgid "The GNU Guix Developers"
  2460. msgstr "GNU Guix开发者"
  2461. #. type: titlepage
  2462. #: guix-git/doc/guix.texi:138
  2463. msgid "Edition @value{EDITION} @* @value{UPDATED} @*"
  2464. msgstr "版本@value{EDITION} @* @value{UPDATED} @*"
  2465. #. type: node
  2466. #: guix-git/doc/guix.texi:145
  2467. #, no-wrap
  2468. msgid "Top"
  2469. msgstr "Top"
  2470. #. type: top
  2471. #: guix-git/doc/guix.texi:146
  2472. #, no-wrap
  2473. msgid "GNU Guix"
  2474. msgstr "GNU Guix"
  2475. #. type: Plain text
  2476. #: guix-git/doc/guix.texi:150
  2477. msgid "This document describes GNU Guix version @value{VERSION}, a functional package management tool written for the GNU system."
  2478. msgstr "这份文档介绍GNU Guix版本@value{VERSION},一个为GNU系统编写的函数式包管理器。"
  2479. #. type: Plain text
  2480. #: guix-git/doc/guix.texi:162
  2481. #, fuzzy
  2482. 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})."
  2483. 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}。"
  2484. #. type: chapter
  2485. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:191
  2486. #: guix-git/doc/guix.texi:398 guix-git/doc/guix.texi:399
  2487. #, no-wrap
  2488. msgid "Introduction"
  2489. msgstr "介绍"
  2490. #. type: menuentry
  2491. #: guix-git/doc/guix.texi:181
  2492. msgid "What is Guix about?"
  2493. msgstr "Guix是关于什么的?"
  2494. #. type: chapter
  2495. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:196
  2496. #: guix-git/doc/guix.texi:579 guix-git/doc/guix.texi:580
  2497. #, no-wrap
  2498. msgid "Installation"
  2499. msgstr "安装"
  2500. #. type: menuentry
  2501. #: guix-git/doc/guix.texi:181
  2502. msgid "Installing Guix."
  2503. msgstr "安装Guix。"
  2504. #. type: chapter
  2505. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:212
  2506. #: guix-git/doc/guix.texi:2038 guix-git/doc/guix.texi:2039
  2507. #, no-wrap
  2508. msgid "System Installation"
  2509. msgstr "系统安装"
  2510. #. type: menuentry
  2511. #: guix-git/doc/guix.texi:181
  2512. msgid "Installing the whole operating system."
  2513. msgstr "安装整个操作系统。"
  2514. #. type: chapter
  2515. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:2766
  2516. #: guix-git/doc/guix.texi:2767
  2517. #, no-wrap
  2518. msgid "Getting Started"
  2519. msgstr "入门"
  2520. #. type: menuentry
  2521. #: guix-git/doc/guix.texi:181
  2522. msgid "Your first steps."
  2523. msgstr ""
  2524. #. type: chapter
  2525. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:229
  2526. #: guix-git/doc/guix.texi:2974 guix-git/doc/guix.texi:2975
  2527. #, no-wrap
  2528. msgid "Package Management"
  2529. msgstr "软件包管理"
  2530. #. type: menuentry
  2531. #: guix-git/doc/guix.texi:181
  2532. msgid "Package installation, upgrade, etc."
  2533. msgstr "软件包安装、升级等。"
  2534. #. type: chapter
  2535. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:252
  2536. #: guix-git/doc/guix.texi:5040 guix-git/doc/guix.texi:5041
  2537. #, no-wrap
  2538. msgid "Channels"
  2539. msgstr "通道"
  2540. #. type: menuentry
  2541. #: guix-git/doc/guix.texi:181
  2542. msgid "Customizing the package collection."
  2543. msgstr "定制软件包集合。"
  2544. #. type: chapter
  2545. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:266
  2546. #: guix-git/doc/guix.texi:5568 guix-git/doc/guix.texi:5569
  2547. #, no-wrap
  2548. msgid "Development"
  2549. msgstr "开发"
  2550. #. type: menuentry
  2551. #: guix-git/doc/guix.texi:181
  2552. msgid "Guix-aided software development."
  2553. msgstr "Guix辅助的软件开发。"
  2554. #. type: chapter
  2555. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:274
  2556. #: guix-git/doc/guix.texi:6786 guix-git/doc/guix.texi:6787
  2557. #, no-wrap
  2558. msgid "Programming Interface"
  2559. msgstr "编程接口"
  2560. #. type: menuentry
  2561. #: guix-git/doc/guix.texi:181
  2562. msgid "Using Guix in Scheme."
  2563. msgstr "在Scheme里使用Guix。"
  2564. #. type: chapter
  2565. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:293
  2566. #: guix-git/doc/guix.texi:10651 guix-git/doc/guix.texi:10652
  2567. #, no-wrap
  2568. msgid "Utilities"
  2569. msgstr "工具"
  2570. #. type: menuentry
  2571. #: guix-git/doc/guix.texi:181
  2572. msgid "Package management commands."
  2573. msgstr "软件包管理命令。"
  2574. #. type: chapter
  2575. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:318
  2576. #: guix-git/doc/guix.texi:13972 guix-git/doc/guix.texi:13973
  2577. #, no-wrap
  2578. msgid "System Configuration"
  2579. msgstr "系统配置"
  2580. #. type: menuentry
  2581. #: guix-git/doc/guix.texi:181
  2582. msgid "Configuring the operating system."
  2583. msgstr "配置操作系统。"
  2584. #. type: chapter
  2585. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:35949
  2586. #: guix-git/doc/guix.texi:35950
  2587. #, fuzzy, no-wrap
  2588. #| msgid "System Configuration"
  2589. msgid "Home Configuration"
  2590. msgstr "系统配置"
  2591. #. type: menuentry
  2592. #: guix-git/doc/guix.texi:181
  2593. #, fuzzy
  2594. #| msgid "Configuring the boot loader."
  2595. msgid "Configuring the home environment."
  2596. msgstr "设置引导程序。"
  2597. #. type: chapter
  2598. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:36789
  2599. #: guix-git/doc/guix.texi:36790
  2600. #, no-wrap
  2601. msgid "Documentation"
  2602. msgstr "文档"
  2603. #. type: menuentry
  2604. #: guix-git/doc/guix.texi:181
  2605. msgid "Browsing software user manuals."
  2606. msgstr "浏览软件用户手册。"
  2607. #. type: chapter
  2608. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:385
  2609. #: guix-git/doc/guix.texi:36855 guix-git/doc/guix.texi:36856
  2610. #, no-wrap
  2611. msgid "Installing Debugging Files"
  2612. msgstr "安装调试文件"
  2613. #. type: menuentry
  2614. #: guix-git/doc/guix.texi:181
  2615. msgid "Feeding the debugger."
  2616. msgstr "为调试工具提供输入。"
  2617. #. type: chapter
  2618. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:36996
  2619. #: guix-git/doc/guix.texi:36997
  2620. #, no-wrap
  2621. msgid "Security Updates"
  2622. msgstr "安全更新"
  2623. #. type: menuentry
  2624. #: guix-git/doc/guix.texi:181
  2625. msgid "Deploying security fixes quickly."
  2626. msgstr "快速部署安全补丁。"
  2627. #. type: chapter
  2628. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:390
  2629. #: guix-git/doc/guix.texi:37111 guix-git/doc/guix.texi:37112
  2630. #, no-wrap
  2631. msgid "Bootstrapping"
  2632. msgstr "引导"
  2633. #. type: menuentry
  2634. #: guix-git/doc/guix.texi:181
  2635. msgid "GNU/Linux built from scratch."
  2636. msgstr "从头开始构建GNU/Linux。"
  2637. #. type: node
  2638. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:37403
  2639. #, no-wrap
  2640. msgid "Porting"
  2641. msgstr "移植"
  2642. #. type: menuentry
  2643. #: guix-git/doc/guix.texi:181
  2644. msgid "Targeting another platform or kernel."
  2645. msgstr "以别的平台或内核为目标。"
  2646. #. type: menuentry
  2647. #: guix-git/doc/guix.texi:181
  2648. msgid "Your help needed!"
  2649. msgstr "你需要帮助!"
  2650. #. type: chapter
  2651. #: guix-git/doc/guix.texi:186 guix-git/doc/guix.texi:37451
  2652. #: guix-git/doc/guix.texi:37452
  2653. #, no-wrap
  2654. msgid "Acknowledgments"
  2655. msgstr "致谢"
  2656. #. type: menuentry
  2657. #: guix-git/doc/guix.texi:186
  2658. msgid "Thanks!"
  2659. msgstr "感谢!"
  2660. #. type: appendix
  2661. #: guix-git/doc/guix.texi:186 guix-git/doc/guix.texi:37473
  2662. #: guix-git/doc/guix.texi:37474
  2663. #, no-wrap
  2664. msgid "GNU Free Documentation License"
  2665. msgstr "GNU自由文档许可证"
  2666. #. type: menuentry
  2667. #: guix-git/doc/guix.texi:186
  2668. msgid "The license of this manual."
  2669. msgstr "这个用户手册的许可证。"
  2670. #. type: unnumbered
  2671. #: guix-git/doc/guix.texi:186 guix-git/doc/guix.texi:37479
  2672. #: guix-git/doc/guix.texi:37480
  2673. #, no-wrap
  2674. msgid "Concept Index"
  2675. msgstr "概念索引"
  2676. #. type: menuentry
  2677. #: guix-git/doc/guix.texi:186
  2678. msgid "Concepts."
  2679. msgstr "概念。"
  2680. #. type: unnumbered
  2681. #: guix-git/doc/guix.texi:186 guix-git/doc/guix.texi:37483
  2682. #: guix-git/doc/guix.texi:37484
  2683. #, no-wrap
  2684. msgid "Programming Index"
  2685. msgstr "编程索引"
  2686. #. type: menuentry
  2687. #: guix-git/doc/guix.texi:186
  2688. msgid "Data types, functions, and variables."
  2689. msgstr "数据类型、函数和变量。"
  2690. #. type: menuentry
  2691. #: guix-git/doc/guix.texi:189
  2692. msgid "--- The Detailed Node Listing ---"
  2693. msgstr "---详细的章节列表---"
  2694. #. type: section
  2695. #: guix-git/doc/guix.texi:194 guix-git/doc/guix.texi:425
  2696. #: guix-git/doc/guix.texi:427 guix-git/doc/guix.texi:428
  2697. #, no-wrap
  2698. msgid "Managing Software the Guix Way"
  2699. msgstr "以Guix的方式管理软件"
  2700. #. type: menuentry
  2701. #: guix-git/doc/guix.texi:194 guix-git/doc/guix.texi:425
  2702. msgid "What's special."
  2703. msgstr "特殊的地方。"
  2704. #. type: section
  2705. #: guix-git/doc/guix.texi:194 guix-git/doc/guix.texi:425
  2706. #: guix-git/doc/guix.texi:482 guix-git/doc/guix.texi:483
  2707. #, no-wrap
  2708. msgid "GNU Distribution"
  2709. msgstr "GNU发行版"
  2710. #. type: menuentry
  2711. #: guix-git/doc/guix.texi:194 guix-git/doc/guix.texi:425
  2712. msgid "The packages and tools."
  2713. msgstr "软件包和工具。"
  2714. #. type: section
  2715. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2716. #: guix-git/doc/guix.texi:621 guix-git/doc/guix.texi:622
  2717. #, no-wrap
  2718. msgid "Binary Installation"
  2719. msgstr "二进制文件安装"
  2720. #. type: menuentry
  2721. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2722. msgid "Getting Guix running in no time!"
  2723. msgstr "立刻运行Guix!"
  2724. #. type: section
  2725. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2726. #: guix-git/doc/guix.texi:861 guix-git/doc/guix.texi:862
  2727. #, no-wrap
  2728. msgid "Requirements"
  2729. msgstr "需求"
  2730. #. type: menuentry
  2731. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2732. msgid "Software needed to build and run Guix."
  2733. msgstr "构建和运行Guix需要的软件。"
  2734. #. type: section
  2735. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2736. #: guix-git/doc/guix.texi:947 guix-git/doc/guix.texi:948
  2737. #, no-wrap
  2738. msgid "Running the Test Suite"
  2739. msgstr "运行测试套件"
  2740. #. type: menuentry
  2741. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2742. msgid "Testing Guix."
  2743. msgstr "测试Guix。"
  2744. #. type: section
  2745. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:206
  2746. #: guix-git/doc/guix.texi:619 guix-git/doc/guix.texi:1044
  2747. #: guix-git/doc/guix.texi:1045
  2748. #, no-wrap
  2749. msgid "Setting Up the Daemon"
  2750. msgstr "设置后台进程"
  2751. #. type: menuentry
  2752. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2753. msgid "Preparing the build daemon's environment."
  2754. msgstr "准备“构建后台进程”的环境。"
  2755. #. type: node
  2756. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2757. #: guix-git/doc/guix.texi:1514
  2758. #, no-wrap
  2759. msgid "Invoking guix-daemon"
  2760. msgstr "调用guix-daemon"
  2761. #. type: menuentry
  2762. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2763. msgid "Running the build daemon."
  2764. msgstr "运行“构建后台进程”"
  2765. #. type: section
  2766. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2767. #: guix-git/doc/guix.texi:1816 guix-git/doc/guix.texi:1817
  2768. #, no-wrap
  2769. msgid "Application Setup"
  2770. msgstr "设置应用程序"
  2771. #. type: menuentry
  2772. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2773. msgid "Application-specific setup."
  2774. msgstr "应用程序相关的设置。"
  2775. #. type: section
  2776. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2777. #: guix-git/doc/guix.texi:2001 guix-git/doc/guix.texi:2002
  2778. #, fuzzy, no-wrap
  2779. msgid "Upgrading Guix"
  2780. msgstr "安装Guix"
  2781. #. type: menuentry
  2782. #: guix-git/doc/guix.texi:204 guix-git/doc/guix.texi:619
  2783. msgid "Upgrading Guix and its build daemon."
  2784. msgstr "升级 Guix 及其构建守护进程。"
  2785. #. type: subsection
  2786. #: guix-git/doc/guix.texi:210 guix-git/doc/guix.texi:1064
  2787. #: guix-git/doc/guix.texi:1066 guix-git/doc/guix.texi:1067
  2788. #, no-wrap
  2789. msgid "Build Environment Setup"
  2790. msgstr "设置构建环境"
  2791. #. type: menuentry
  2792. #: guix-git/doc/guix.texi:210 guix-git/doc/guix.texi:1064
  2793. msgid "Preparing the isolated build environment."
  2794. msgstr "准备隔离的构建环境。"
  2795. #. type: node
  2796. #: guix-git/doc/guix.texi:210 guix-git/doc/guix.texi:1064
  2797. #: guix-git/doc/guix.texi:1185
  2798. #, no-wrap
  2799. msgid "Daemon Offload Setup"
  2800. msgstr "下发工作给后台进程的设置"
  2801. #. type: menuentry
  2802. #: guix-git/doc/guix.texi:210 guix-git/doc/guix.texi:1064
  2803. msgid "Offloading builds to remote machines."
  2804. msgstr "下发构建工作给远程的机器。"
  2805. #. type: subsection
  2806. #: guix-git/doc/guix.texi:210 guix-git/doc/guix.texi:1064
  2807. #: guix-git/doc/guix.texi:1423 guix-git/doc/guix.texi:1424
  2808. #, no-wrap
  2809. msgid "SELinux Support"
  2810. msgstr "SELinux的支持"
  2811. #. type: menuentry
  2812. #: guix-git/doc/guix.texi:210 guix-git/doc/guix.texi:1064
  2813. msgid "Using an SELinux policy for the daemon."
  2814. msgstr "为后台进程使用SELinux规则。"
  2815. #. type: section
  2816. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:1459
  2817. #: guix-git/doc/guix.texi:2072 guix-git/doc/guix.texi:2074
  2818. #: guix-git/doc/guix.texi:2075
  2819. #, no-wrap
  2820. msgid "Limitations"
  2821. msgstr "限制"
  2822. #. type: menuentry
  2823. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2824. msgid "What you can expect."
  2825. msgstr "你可以期待什么。"
  2826. #. type: section
  2827. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2828. #: guix-git/doc/guix.texi:2100 guix-git/doc/guix.texi:2101
  2829. #, no-wrap
  2830. msgid "Hardware Considerations"
  2831. msgstr "硬件的考虑"
  2832. #. type: menuentry
  2833. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2834. msgid "Supported hardware."
  2835. msgstr "支持的硬件。"
  2836. #. type: section
  2837. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2838. #: guix-git/doc/guix.texi:2135 guix-git/doc/guix.texi:2136
  2839. #, no-wrap
  2840. msgid "USB Stick and DVD Installation"
  2841. msgstr "U盘和DVD安装"
  2842. #. type: menuentry
  2843. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2844. msgid "Preparing the installation medium."
  2845. msgstr "准备安装介质。"
  2846. #. type: section
  2847. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2848. #: guix-git/doc/guix.texi:2216 guix-git/doc/guix.texi:2217
  2849. #, no-wrap
  2850. msgid "Preparing for Installation"
  2851. msgstr "准备安装"
  2852. #. type: menuentry
  2853. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2854. msgid "Networking, partitioning, etc."
  2855. msgstr "网络、分区等。"
  2856. #. type: section
  2857. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2858. #: guix-git/doc/guix.texi:2239 guix-git/doc/guix.texi:2240
  2859. #, no-wrap
  2860. msgid "Guided Graphical Installation"
  2861. msgstr "指导的图形安装"
  2862. #. type: menuentry
  2863. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2864. msgid "Easy graphical installation."
  2865. msgstr "简单的图形安装。"
  2866. #. type: section
  2867. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:224
  2868. #: guix-git/doc/guix.texi:2072 guix-git/doc/guix.texi:2270
  2869. #: guix-git/doc/guix.texi:2271
  2870. #, no-wrap
  2871. msgid "Manual Installation"
  2872. msgstr "手动安装"
  2873. #. type: menuentry
  2874. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2875. msgid "Manual installation for wizards."
  2876. msgstr "适合巫师的手动安装。"
  2877. #. type: section
  2878. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2879. #: guix-git/doc/guix.texi:2649 guix-git/doc/guix.texi:2650
  2880. #, no-wrap
  2881. msgid "After System Installation"
  2882. msgstr "系统安装之后"
  2883. #. type: menuentry
  2884. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2885. msgid "When installation succeeded."
  2886. msgstr "当安装成功后。"
  2887. #. type: node
  2888. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2889. #: guix-git/doc/guix.texi:2683
  2890. #, no-wrap
  2891. msgid "Installing Guix in a VM"
  2892. msgstr "在虚拟机里安装 Guix"
  2893. #. type: menuentry
  2894. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2895. msgid "Guix System playground."
  2896. msgstr "Guix系统游乐场。"
  2897. #. type: section
  2898. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2899. #: guix-git/doc/guix.texi:2734 guix-git/doc/guix.texi:2735
  2900. #, no-wrap
  2901. msgid "Building the Installation Image"
  2902. msgstr "构建安装镜像"
  2903. #. type: menuentry
  2904. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2072
  2905. msgid "How this comes to be."
  2906. msgstr "这是怎样实现的。"
  2907. #. type: node
  2908. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2288
  2909. #: guix-git/doc/guix.texi:2290
  2910. #, no-wrap
  2911. msgid "Keyboard Layout and Networking and Partitioning"
  2912. msgstr "键盘布局、网络和分区"
  2913. #. type: menuentry
  2914. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2288
  2915. msgid "Initial setup."
  2916. msgstr "初始设置。"
  2917. #. type: subsection
  2918. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2288
  2919. #: guix-git/doc/guix.texi:2560 guix-git/doc/guix.texi:2561
  2920. #, no-wrap
  2921. msgid "Proceeding with the Installation"
  2922. msgstr "继续安装步骤"
  2923. #. type: menuentry
  2924. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2288
  2925. msgid "Installing."
  2926. msgstr "安装。"
  2927. #. type: section
  2928. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2929. #: guix-git/doc/guix.texi:3008 guix-git/doc/guix.texi:3009
  2930. #, no-wrap
  2931. msgid "Features"
  2932. msgstr "功能"
  2933. #. type: menuentry
  2934. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2935. msgid "How Guix will make your life brighter."
  2936. msgstr "Guix怎样让你的生活更美好。"
  2937. #. type: node
  2938. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2939. #: guix-git/doc/guix.texi:3098
  2940. #, no-wrap
  2941. msgid "Invoking guix package"
  2942. msgstr "调用guix package"
  2943. #. type: menuentry
  2944. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2945. msgid "Package installation, removal, etc."
  2946. msgstr "软件包安装,移除等。"
  2947. #. type: section
  2948. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:242
  2949. #: guix-git/doc/guix.texi:3006 guix-git/doc/guix.texi:3725
  2950. #: guix-git/doc/guix.texi:3726
  2951. #, no-wrap
  2952. msgid "Substitutes"
  2953. msgstr "substitutes"
  2954. #. type: menuentry
  2955. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2956. msgid "Downloading pre-built binaries."
  2957. msgstr "下载构建好的二进制文件。"
  2958. #. type: section
  2959. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2960. #: guix-git/doc/guix.texi:4061 guix-git/doc/guix.texi:4062
  2961. #, no-wrap
  2962. msgid "Packages with Multiple Outputs"
  2963. msgstr "有多个输出的软件包"
  2964. #. type: menuentry
  2965. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2966. msgid "Single source package, multiple outputs."
  2967. msgstr "单个输入多个输出的软件包。"
  2968. #. type: node
  2969. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2970. #: guix-git/doc/guix.texi:4115
  2971. #, no-wrap
  2972. msgid "Invoking guix gc"
  2973. msgstr "调用guix gc"
  2974. #. type: menuentry
  2975. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2976. msgid "Running the garbage collector."
  2977. msgstr "运行垃圾回收器。"
  2978. #. type: node
  2979. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2980. #: guix-git/doc/guix.texi:4325
  2981. #, no-wrap
  2982. msgid "Invoking guix pull"
  2983. msgstr "调用guix pull"
  2984. #. type: menuentry
  2985. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2986. msgid "Fetching the latest Guix and distribution."
  2987. msgstr "获取最新的Guix和发行版。"
  2988. #. type: node
  2989. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2990. #: guix-git/doc/guix.texi:4572
  2991. #, fuzzy, no-wrap
  2992. msgid "Invoking guix time-machine"
  2993. msgstr "调用guix archive"
  2994. #. type: menuentry
  2995. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  2996. #, fuzzy
  2997. msgid "Running an older revision of Guix."
  2998. msgstr "和其它版本的Guix交互。"
  2999. #. type: section
  3000. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  3001. #: guix-git/doc/guix.texi:4627 guix-git/doc/guix.texi:4628
  3002. #, no-wrap
  3003. msgid "Inferiors"
  3004. msgstr ""
  3005. #. type: menuentry
  3006. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  3007. msgid "Interacting with another revision of Guix."
  3008. msgstr "和其它版本的Guix交互。"
  3009. #. type: node
  3010. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  3011. #: guix-git/doc/guix.texi:4755
  3012. #, no-wrap
  3013. msgid "Invoking guix describe"
  3014. msgstr "调用guix describe"
  3015. #. type: menuentry
  3016. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  3017. msgid "Display information about your Guix revision."
  3018. msgstr "显示你的Guix版本信息。"
  3019. #. type: node
  3020. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  3021. #: guix-git/doc/guix.texi:4850
  3022. #, no-wrap
  3023. msgid "Invoking guix archive"
  3024. msgstr "调用guix archive"
  3025. #. type: menuentry
  3026. #: guix-git/doc/guix.texi:240 guix-git/doc/guix.texi:3006
  3027. msgid "Exporting and importing store files."
  3028. msgstr "导出和导入仓库文件。"
  3029. #. type: subsection
  3030. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3031. #: guix-git/doc/guix.texi:3751 guix-git/doc/guix.texi:3752
  3032. #, fuzzy, no-wrap
  3033. #| msgid "Official Substitute Server"
  3034. msgid "Official Substitute Servers"
  3035. msgstr "官方的substitute服务器"
  3036. #. type: menuentry
  3037. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3038. msgid "One particular source of substitutes."
  3039. msgstr "substitute的一个特殊来源。"
  3040. #. type: subsection
  3041. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3042. #: guix-git/doc/guix.texi:3781 guix-git/doc/guix.texi:3782
  3043. #, no-wrap
  3044. msgid "Substitute Server Authorization"
  3045. msgstr "授权substitute服务器。"
  3046. #. type: menuentry
  3047. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3048. msgid "How to enable or disable substitutes."
  3049. msgstr "怎么开启或关闭substitute。"
  3050. #. type: subsection
  3051. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3052. #: guix-git/doc/guix.texi:3851 guix-git/doc/guix.texi:3852
  3053. #, no-wrap
  3054. msgid "Getting Substitutes from Other Servers"
  3055. msgstr ""
  3056. #. type: menuentry
  3057. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3058. #, fuzzy
  3059. msgid "Substitute diversity."
  3060. msgstr "substitutes"
  3061. #. type: subsection
  3062. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3063. #: guix-git/doc/guix.texi:3956 guix-git/doc/guix.texi:3957
  3064. #, no-wrap
  3065. msgid "Substitute Authentication"
  3066. msgstr "验证substitute"
  3067. #. type: menuentry
  3068. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3069. msgid "How Guix verifies substitutes."
  3070. msgstr "Guix怎样验证substitute。"
  3071. #. type: subsection
  3072. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3073. #: guix-git/doc/guix.texi:3991 guix-git/doc/guix.texi:3992
  3074. #, no-wrap
  3075. msgid "Proxy Settings"
  3076. msgstr "代理设置"
  3077. #. type: menuentry
  3078. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3079. msgid "How to get substitutes via proxy."
  3080. msgstr "怎样通过代理获取substitute。"
  3081. #. type: subsection
  3082. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3083. #: guix-git/doc/guix.texi:4003 guix-git/doc/guix.texi:4004
  3084. #, no-wrap
  3085. msgid "Substitution Failure"
  3086. msgstr "substitute失败"
  3087. #. type: menuentry
  3088. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3089. msgid "What happens when substitution fails."
  3090. msgstr "当substitute失败时会发生什么。"
  3091. #. type: subsection
  3092. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3093. #: guix-git/doc/guix.texi:4031 guix-git/doc/guix.texi:4032
  3094. #, no-wrap
  3095. msgid "On Trusting Binaries"
  3096. msgstr "关于信任二进制文件"
  3097. #. type: menuentry
  3098. #: guix-git/doc/guix.texi:250 guix-git/doc/guix.texi:3749
  3099. msgid "How can you trust that binary blob?"
  3100. msgstr "你怎么能信任二进制的 blob 呢?"
  3101. #. type: section
  3102. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3103. #: guix-git/doc/guix.texi:5073 guix-git/doc/guix.texi:5074
  3104. #, no-wrap
  3105. msgid "Specifying Additional Channels"
  3106. msgstr ""
  3107. #. type: menuentry
  3108. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3109. msgid "Extending the package collection."
  3110. msgstr "拓展软件包集合。"
  3111. #. type: section
  3112. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3113. #: guix-git/doc/guix.texi:5123 guix-git/doc/guix.texi:5124
  3114. #, no-wrap
  3115. msgid "Using a Custom Guix Channel"
  3116. msgstr ""
  3117. #. type: menuentry
  3118. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3119. msgid "Using a customized Guix."
  3120. msgstr ""
  3121. #. type: section
  3122. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3123. #: guix-git/doc/guix.texi:5145 guix-git/doc/guix.texi:5146
  3124. #, no-wrap
  3125. msgid "Replicating Guix"
  3126. msgstr ""
  3127. #. type: menuentry
  3128. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3129. msgid "Running the @emph{exact same} Guix."
  3130. msgstr ""
  3131. #. type: section
  3132. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3133. #: guix-git/doc/guix.texi:5186 guix-git/doc/guix.texi:5187
  3134. #, fuzzy, no-wrap
  3135. msgid "Channel Authentication"
  3136. msgstr "验证substitute"
  3137. #. type: menuentry
  3138. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3139. #, fuzzy
  3140. msgid "How Guix verifies what it fetches."
  3141. msgstr "Guix怎样验证substitute。"
  3142. #. type: section
  3143. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3144. #: guix-git/doc/guix.texi:5226 guix-git/doc/guix.texi:5227
  3145. #, fuzzy, no-wrap
  3146. msgid "Channels with Substitutes"
  3147. msgstr "分享substitute。"
  3148. #. type: menuentry
  3149. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3150. msgid "Using channels with available substitutes."
  3151. msgstr ""
  3152. #. type: section
  3153. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3154. #: guix-git/doc/guix.texi:5251 guix-git/doc/guix.texi:5252
  3155. #, no-wrap
  3156. msgid "Creating a Channel"
  3157. msgstr "创建一个频道"
  3158. #. type: menuentry
  3159. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3160. msgid "How to write your custom channel."
  3161. msgstr ""
  3162. #. type: section
  3163. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3164. #: guix-git/doc/guix.texi:5318 guix-git/doc/guix.texi:5319
  3165. #, fuzzy, no-wrap
  3166. msgid "Package Modules in a Sub-directory"
  3167. msgstr "软件包模块"
  3168. #. type: menuentry
  3169. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3170. #, fuzzy
  3171. msgid "Specifying the channel's package modules location."
  3172. msgstr "指定如何构建软件包。"
  3173. #. type: section
  3174. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3175. #: guix-git/doc/guix.texi:5332 guix-git/doc/guix.texi:5333
  3176. #, no-wrap
  3177. msgid "Declaring Channel Dependencies"
  3178. msgstr ""
  3179. #. type: menuentry
  3180. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3181. msgid "How to depend on other channels."
  3182. msgstr ""
  3183. #. type: section
  3184. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3185. #: guix-git/doc/guix.texi:5374 guix-git/doc/guix.texi:5375
  3186. #, no-wrap
  3187. msgid "Specifying Channel Authorizations"
  3188. msgstr ""
  3189. #. type: menuentry
  3190. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3191. msgid "Defining channel authors authorizations."
  3192. msgstr ""
  3193. #. type: section
  3194. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3195. #: guix-git/doc/guix.texi:5475 guix-git/doc/guix.texi:5476
  3196. #, no-wrap
  3197. msgid "Primary URL"
  3198. msgstr ""
  3199. #. type: menuentry
  3200. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3201. msgid "Distinguishing mirror to original."
  3202. msgstr ""
  3203. #. type: section
  3204. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3205. #: guix-git/doc/guix.texi:5498 guix-git/doc/guix.texi:5499
  3206. #, no-wrap
  3207. msgid "Writing Channel News"
  3208. msgstr ""
  3209. #. type: menuentry
  3210. #: guix-git/doc/guix.texi:264 guix-git/doc/guix.texi:5071
  3211. msgid "Communicating information to channel's users."
  3212. msgstr ""
  3213. #. type: node
  3214. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:5588
  3215. #: guix-git/doc/guix.texi:5590
  3216. #, fuzzy, no-wrap
  3217. #| msgid "Invoking guix size"
  3218. msgid "Invoking guix shell"
  3219. msgstr "调用guix size"
  3220. #. type: menuentry
  3221. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:5588
  3222. #, fuzzy
  3223. #| msgid "Preparing the isolated build environment."
  3224. msgid "Spawning one-off software environments."
  3225. msgstr "准备隔离的构建环境。"
  3226. #. type: node
  3227. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:5588
  3228. #: guix-git/doc/guix.texi:5943
  3229. #, no-wrap
  3230. msgid "Invoking guix environment"
  3231. msgstr "调用guix environment"
  3232. #. type: menuentry
  3233. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:5588
  3234. msgid "Setting up development environments."
  3235. msgstr "设置开发环境。"
  3236. #. type: node
  3237. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:5588
  3238. #: guix-git/doc/guix.texi:6312
  3239. #, no-wrap
  3240. msgid "Invoking guix pack"
  3241. msgstr "调用guix pack"
  3242. #. type: menuentry
  3243. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:5588
  3244. msgid "Creating software bundles."
  3245. msgstr "创建软件bundle。"
  3246. #. type: section
  3247. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:5588
  3248. #: guix-git/doc/guix.texi:6698 guix-git/doc/guix.texi:6699
  3249. #, no-wrap
  3250. msgid "The GCC toolchain"
  3251. msgstr ""
  3252. #. type: menuentry
  3253. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:5588
  3254. msgid "Working with languages supported by GCC."
  3255. msgstr ""
  3256. #. type: node
  3257. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:5588
  3258. #: guix-git/doc/guix.texi:6724
  3259. #, fuzzy, no-wrap
  3260. msgid "Invoking guix git authenticate"
  3261. msgstr "调用guix edit。"
  3262. #. type: menuentry
  3263. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:5588
  3264. #, fuzzy
  3265. msgid "Authenticating Git repositories."
  3266. msgstr "认证HTTPS服务器。"
  3267. #. type: section
  3268. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3269. #: guix-git/doc/guix.texi:6828 guix-git/doc/guix.texi:6829
  3270. #, no-wrap
  3271. msgid "Package Modules"
  3272. msgstr "软件包模块"
  3273. #. type: menuentry
  3274. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3275. msgid "Packages from the programmer's viewpoint."
  3276. msgstr "从程序员的角度看软件包。"
  3277. #. type: section
  3278. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:288
  3279. #: guix-git/doc/guix.texi:6826 guix-git/doc/guix.texi:6890
  3280. #: guix-git/doc/guix.texi:6891
  3281. #, no-wrap
  3282. msgid "Defining Packages"
  3283. msgstr "定义软件包"
  3284. #. type: menuentry
  3285. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3286. msgid "Defining new packages."
  3287. msgstr "定义新软件包。"
  3288. #. type: section
  3289. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3290. #: guix-git/doc/guix.texi:7501 guix-git/doc/guix.texi:7502
  3291. #, fuzzy, no-wrap
  3292. msgid "Defining Package Variants"
  3293. msgstr "定义软件包"
  3294. #. type: menuentry
  3295. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3296. #, fuzzy
  3297. msgid "Customizing packages."
  3298. msgstr "构建软件包。"
  3299. #. type: section
  3300. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3301. #: guix-git/doc/guix.texi:7733 guix-git/doc/guix.texi:7734
  3302. #, no-wrap
  3303. msgid "Build Systems"
  3304. msgstr "构建系统"
  3305. #. type: menuentry
  3306. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3307. msgid "Specifying how packages are built."
  3308. msgstr "指定如何构建软件包。"
  3309. #. type: subsection
  3310. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3311. #: guix-git/doc/guix.texi:8765 guix-git/doc/guix.texi:8766
  3312. #: guix-git/doc/guix.texi:9169
  3313. #, fuzzy, no-wrap
  3314. msgid "Build Phases"
  3315. msgstr "构建系统"
  3316. #. type: menuentry
  3317. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3318. msgid "Phases of the build process of a package."
  3319. msgstr ""
  3320. #. type: section
  3321. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3322. #: guix-git/doc/guix.texi:8959 guix-git/doc/guix.texi:8960
  3323. #, fuzzy, no-wrap
  3324. msgid "Build Utilities"
  3325. msgstr "工具"
  3326. #. type: menuentry
  3327. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3328. #, fuzzy
  3329. msgid "Helpers for your package definitions and more."
  3330. msgstr "导入软件包定义。"
  3331. #. type: section
  3332. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3333. #: guix-git/doc/guix.texi:9246 guix-git/doc/guix.texi:9247
  3334. #, no-wrap
  3335. msgid "The Store"
  3336. msgstr "仓库"
  3337. #. type: menuentry
  3338. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3339. msgid "Manipulating the package store."
  3340. msgstr "操纵软件包仓库。"
  3341. #. type: section
  3342. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3343. #: guix-git/doc/guix.texi:9399 guix-git/doc/guix.texi:9400
  3344. #, no-wrap
  3345. msgid "Derivations"
  3346. msgstr ""
  3347. #. type: menuentry
  3348. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3349. msgid "Low-level interface to package derivations."
  3350. msgstr "软件包derivation的底层接口。"
  3351. #. type: section
  3352. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3353. #: guix-git/doc/guix.texi:9593 guix-git/doc/guix.texi:9594
  3354. #, no-wrap
  3355. msgid "The Store Monad"
  3356. msgstr "仓库monad"
  3357. #. type: menuentry
  3358. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3359. msgid "Purely functional interface to the store."
  3360. msgstr "仓库的纯函数式接口。"
  3361. #. type: section
  3362. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3363. #: guix-git/doc/guix.texi:9912 guix-git/doc/guix.texi:9913
  3364. #, no-wrap
  3365. msgid "G-Expressions"
  3366. msgstr "G-表达式"
  3367. #. type: menuentry
  3368. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3369. msgid "Manipulating build expressions."
  3370. msgstr "操纵构建表达式。"
  3371. #. type: node
  3372. #: guix-git/doc/guix.texi:286 guix-git/doc/guix.texi:6826
  3373. #: guix-git/doc/guix.texi:10551
  3374. #, no-wrap
  3375. msgid "Invoking guix repl"
  3376. msgstr "调用guix repl"
  3377. #. type: menuentry
  3378. #: guix-git/doc/guix.texi:286
  3379. #, fuzzy
  3380. msgid "Programming Guix in Guile."
  3381. msgstr "编程索引"
  3382. #. type: node
  3383. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:7093
  3384. #: guix-git/doc/guix.texi:7096
  3385. #, no-wrap
  3386. msgid "package Reference"
  3387. msgstr "软件包引用"
  3388. #. type: menuentry
  3389. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:7093
  3390. msgid "The package data type."
  3391. msgstr "软件包数据类型。"
  3392. #. type: node
  3393. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:7093
  3394. #: guix-git/doc/guix.texi:7309
  3395. #, no-wrap
  3396. msgid "origin Reference"
  3397. msgstr "origin参考手册"
  3398. #. type: menuentry
  3399. #: guix-git/doc/guix.texi:291 guix-git/doc/guix.texi:7093
  3400. msgid "The origin data type."
  3401. msgstr "origin数据类型。"
  3402. #. type: node
  3403. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3404. #: guix-git/doc/guix.texi:10677
  3405. #, no-wrap
  3406. msgid "Invoking guix build"
  3407. msgstr "调用guix build"
  3408. #. type: menuentry
  3409. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3410. msgid "Building packages from the command line."
  3411. msgstr "用命令行构建软件包。"
  3412. #. type: node
  3413. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3414. #: guix-git/doc/guix.texi:11514
  3415. #, no-wrap
  3416. msgid "Invoking guix edit"
  3417. msgstr "调用guix edit。"
  3418. #. type: menuentry
  3419. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3420. msgid "Editing package definitions."
  3421. msgstr "编辑软件包定义。"
  3422. #. type: node
  3423. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3424. #: guix-git/doc/guix.texi:11544
  3425. #, no-wrap
  3426. msgid "Invoking guix download"
  3427. msgstr "调用guix download"
  3428. #. type: menuentry
  3429. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3430. msgid "Downloading a file and printing its hash."
  3431. msgstr "下载一个文件并打印它的hash。"
  3432. #. type: node
  3433. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3434. #: guix-git/doc/guix.texi:11602
  3435. #, no-wrap
  3436. msgid "Invoking guix hash"
  3437. msgstr "调用guix hash"
  3438. #. type: menuentry
  3439. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3440. msgid "Computing the cryptographic hash of a file."
  3441. msgstr "计算一个文件的密码学hash。"
  3442. #. type: node
  3443. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3444. #: guix-git/doc/guix.texi:11674
  3445. #, no-wrap
  3446. msgid "Invoking guix import"
  3447. msgstr "调用guix import"
  3448. #. type: menuentry
  3449. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3450. msgid "Importing package definitions."
  3451. msgstr "导入软件包定义。"
  3452. #. type: node
  3453. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3454. #: guix-git/doc/guix.texi:12209
  3455. #, no-wrap
  3456. msgid "Invoking guix refresh"
  3457. msgstr "调用guix refresh"
  3458. #. type: menuentry
  3459. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3460. msgid "Updating package definitions."
  3461. msgstr "更新软件包定义。"
  3462. #. type: node
  3463. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3464. #: guix-git/doc/guix.texi:12581
  3465. #, no-wrap
  3466. msgid "Invoking guix lint"
  3467. msgstr "调用guix lint"
  3468. #. type: menuentry
  3469. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3470. msgid "Finding errors in package definitions."
  3471. msgstr "从软件包定义里寻找错误。"
  3472. #. type: node
  3473. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3474. #: guix-git/doc/guix.texi:12750
  3475. #, no-wrap
  3476. msgid "Invoking guix size"
  3477. msgstr "调用guix size"
  3478. #. type: menuentry
  3479. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3480. msgid "Profiling disk usage."
  3481. msgstr "分析硬盘使用情况。"
  3482. #. type: node
  3483. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3484. #: guix-git/doc/guix.texi:12894
  3485. #, no-wrap
  3486. msgid "Invoking guix graph"
  3487. msgstr "调用guix graph"
  3488. #. type: menuentry
  3489. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3490. msgid "Visualizing the graph of packages."
  3491. msgstr "展示软件包的关系图。"
  3492. #. type: node
  3493. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3494. #: guix-git/doc/guix.texi:13175
  3495. #, no-wrap
  3496. msgid "Invoking guix publish"
  3497. msgstr "调用guix publish"
  3498. #. type: menuentry
  3499. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3500. msgid "Sharing substitutes."
  3501. msgstr "分享substitute。"
  3502. #. type: node
  3503. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3504. #: guix-git/doc/guix.texi:13444
  3505. #, no-wrap
  3506. msgid "Invoking guix challenge"
  3507. msgstr "调用guix challenge"
  3508. #. type: menuentry
  3509. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3510. msgid "Challenging substitute servers."
  3511. msgstr "挑战subtitute服务器。"
  3512. #. type: node
  3513. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3514. #: guix-git/doc/guix.texi:13627
  3515. #, no-wrap
  3516. msgid "Invoking guix copy"
  3517. msgstr "调用guix copy"
  3518. #. type: menuentry
  3519. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3520. msgid "Copying to and from a remote store."
  3521. msgstr "复制到远程的仓库,或从远程的仓库复制。"
  3522. #. type: node
  3523. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3524. #: guix-git/doc/guix.texi:13690
  3525. #, no-wrap
  3526. msgid "Invoking guix container"
  3527. msgstr "调用guix container"
  3528. #. type: menuentry
  3529. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3530. msgid "Process isolation."
  3531. msgstr "进程隔离。"
  3532. #. type: node
  3533. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3534. #: guix-git/doc/guix.texi:13744
  3535. #, no-wrap
  3536. msgid "Invoking guix weather"
  3537. msgstr "调用guix weather"
  3538. #. type: menuentry
  3539. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3540. msgid "Assessing substitute availability."
  3541. msgstr "评估substitute的可用性。"
  3542. #. type: node
  3543. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3544. #: guix-git/doc/guix.texi:13874
  3545. #, no-wrap
  3546. msgid "Invoking guix processes"
  3547. msgstr "调用guix processes"
  3548. #. type: menuentry
  3549. #: guix-git/doc/guix.texi:309 guix-git/doc/guix.texi:10675
  3550. msgid "Listing client processes."
  3551. msgstr "列出客户端进程。"
  3552. #. type: section
  3553. #: guix-git/doc/guix.texi:311 guix-git/doc/guix.texi:10678
  3554. #, no-wrap
  3555. msgid "Invoking @command{guix build}"
  3556. msgstr "调用@command{guix build}"
  3557. #. type: subsection
  3558. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:10729
  3559. #: guix-git/doc/guix.texi:10731 guix-git/doc/guix.texi:10732
  3560. #, no-wrap
  3561. msgid "Common Build Options"
  3562. msgstr "普通的构建选项"
  3563. #. type: menuentry
  3564. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:10729
  3565. msgid "Build options for most commands."
  3566. msgstr "大部分命令的构建选项。"
  3567. #. type: subsection
  3568. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:10729
  3569. #: guix-git/doc/guix.texi:10886 guix-git/doc/guix.texi:10887
  3570. #, no-wrap
  3571. msgid "Package Transformation Options"
  3572. msgstr "软件包变换选项。"
  3573. #. type: menuentry
  3574. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:10729
  3575. msgid "Creating variants of packages."
  3576. msgstr "创建软件包的变体。"
  3577. #. type: subsection
  3578. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:10729
  3579. #: guix-git/doc/guix.texi:11196 guix-git/doc/guix.texi:11197
  3580. #, no-wrap
  3581. msgid "Additional Build Options"
  3582. msgstr "额外的构建选项"
  3583. #. type: menuentry
  3584. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:10729
  3585. msgid "Options specific to 'guix build'."
  3586. msgstr "只属于'guix build'的选项。"
  3587. #. type: subsection
  3588. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:10729
  3589. #: guix-git/doc/guix.texi:11434 guix-git/doc/guix.texi:11435
  3590. #, no-wrap
  3591. msgid "Debugging Build Failures"
  3592. msgstr "调试构建错误"
  3593. #. type: menuentry
  3594. #: guix-git/doc/guix.texi:316 guix-git/doc/guix.texi:10729
  3595. msgid "Real life packaging experience."
  3596. msgstr "真实的打包经验。"
  3597. #. type: section
  3598. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3599. #: guix-git/doc/guix.texi:14018 guix-git/doc/guix.texi:14019
  3600. #, no-wrap
  3601. msgid "Using the Configuration System"
  3602. msgstr "使用配置系统"
  3603. #. type: menuentry
  3604. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3605. msgid "Customizing your GNU system."
  3606. msgstr "定制你的GNU系统。"
  3607. #. type: node
  3608. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3609. #: guix-git/doc/guix.texi:14269
  3610. #, no-wrap
  3611. msgid "operating-system Reference"
  3612. msgstr "操作系统参考"
  3613. #. type: menuentry
  3614. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3615. msgid "Detail of operating-system declarations."
  3616. msgstr "操作系统声明详情。"
  3617. #. type: section
  3618. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3619. #: guix-git/doc/guix.texi:14492 guix-git/doc/guix.texi:14493
  3620. #, no-wrap
  3621. msgid "File Systems"
  3622. msgstr "文件系统"
  3623. #. type: menuentry
  3624. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3625. msgid "Configuring file system mounts."
  3626. msgstr "设置文件系统挂载。"
  3627. #. type: section
  3628. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3629. #: guix-git/doc/guix.texi:14845 guix-git/doc/guix.texi:14846
  3630. #, no-wrap
  3631. msgid "Mapped Devices"
  3632. msgstr "映射的设备"
  3633. #. type: menuentry
  3634. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3635. msgid "Block device extra processing."
  3636. msgstr "块设备额外的处理。"
  3637. #. type: section
  3638. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3639. #: guix-git/doc/guix.texi:14994 guix-git/doc/guix.texi:14995
  3640. #, no-wrap
  3641. msgid "Swap Space"
  3642. msgstr ""
  3643. #. type: menuentry
  3644. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3645. msgid "Backing RAM with disk space."
  3646. msgstr ""
  3647. #. type: section
  3648. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3649. #: guix-git/doc/guix.texi:15094 guix-git/doc/guix.texi:15095
  3650. #, no-wrap
  3651. msgid "User Accounts"
  3652. msgstr "用户帐号"
  3653. #. type: menuentry
  3654. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3655. msgid "Specifying user accounts."
  3656. msgstr "指定用户帐号。"
  3657. #. type: section
  3658. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:2297
  3659. #: guix-git/doc/guix.texi:14016 guix-git/doc/guix.texi:15270
  3660. #: guix-git/doc/guix.texi:15271
  3661. #, no-wrap
  3662. msgid "Keyboard Layout"
  3663. msgstr "键盘布局"
  3664. #. type: menuentry
  3665. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3666. msgid "How the system interprets key strokes."
  3667. msgstr "系统怎样理解按键。"
  3668. #. type: section
  3669. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:1824
  3670. #: guix-git/doc/guix.texi:14016 guix-git/doc/guix.texi:15416
  3671. #: guix-git/doc/guix.texi:15417
  3672. #, no-wrap
  3673. msgid "Locales"
  3674. msgstr "区域"
  3675. #. type: menuentry
  3676. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3677. msgid "Language and cultural convention settings."
  3678. msgstr "语言和文化惯例设置。"
  3679. #. type: section
  3680. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:343
  3681. #: guix-git/doc/guix.texi:14016 guix-git/doc/guix.texi:15556
  3682. #: guix-git/doc/guix.texi:15557
  3683. #, no-wrap
  3684. msgid "Services"
  3685. msgstr "服务"
  3686. #. type: menuentry
  3687. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3688. msgid "Specifying system services."
  3689. msgstr "指定系统服务。"
  3690. #. type: section
  3691. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3692. #: guix-git/doc/guix.texi:33506 guix-git/doc/guix.texi:33507
  3693. #, no-wrap
  3694. msgid "Setuid Programs"
  3695. msgstr "setuid程序"
  3696. #. type: menuentry
  3697. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3698. msgid "Programs running with root privileges."
  3699. msgstr "以root权限运行的程序。"
  3700. #. type: section
  3701. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:1973
  3702. #: guix-git/doc/guix.texi:14016 guix-git/doc/guix.texi:33579
  3703. #: guix-git/doc/guix.texi:33580
  3704. #, no-wrap
  3705. msgid "X.509 Certificates"
  3706. msgstr "X.509证书"
  3707. #. type: menuentry
  3708. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3709. msgid "Authenticating HTTPS servers."
  3710. msgstr "认证HTTPS服务器。"
  3711. #. type: section
  3712. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:1867
  3713. #: guix-git/doc/guix.texi:14016 guix-git/doc/guix.texi:33642
  3714. #: guix-git/doc/guix.texi:33643
  3715. #, no-wrap
  3716. msgid "Name Service Switch"
  3717. msgstr "Name Service Switch"
  3718. #. type: menuentry
  3719. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3720. msgid "Configuring libc's name service switch."
  3721. msgstr "设置libc的name service switch。"
  3722. #. type: section
  3723. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3724. #: guix-git/doc/guix.texi:33780 guix-git/doc/guix.texi:33781
  3725. #, no-wrap
  3726. msgid "Initial RAM Disk"
  3727. msgstr "初始的内存虚拟硬盘"
  3728. #. type: menuentry
  3729. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3730. msgid "Linux-Libre bootstrapping."
  3731. msgstr "Linux-Libre引导。"
  3732. #. type: section
  3733. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3734. #: guix-git/doc/guix.texi:33975 guix-git/doc/guix.texi:33976
  3735. #, no-wrap
  3736. msgid "Bootloader Configuration"
  3737. msgstr "引导设置"
  3738. #. type: menuentry
  3739. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3740. msgid "Configuring the boot loader."
  3741. msgstr "设置引导程序。"
  3742. #. type: node
  3743. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3744. #: guix-git/doc/guix.texi:34273
  3745. #, no-wrap
  3746. msgid "Invoking guix system"
  3747. msgstr "调用guix system"
  3748. #. type: menuentry
  3749. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3750. msgid "Instantiating a system configuration."
  3751. msgstr "实例化一个系统配置。"
  3752. #. type: node
  3753. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3754. #: guix-git/doc/guix.texi:34873
  3755. #, no-wrap
  3756. msgid "Invoking guix deploy"
  3757. msgstr "调用 guix deploy"
  3758. #. type: menuentry
  3759. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3760. #, fuzzy
  3761. msgid "Deploying a system configuration to a remote host."
  3762. msgstr "实例化一个系统配置。"
  3763. #. type: node
  3764. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3765. #: guix-git/doc/guix.texi:35079
  3766. #, no-wrap
  3767. msgid "Running Guix in a VM"
  3768. msgstr "在虚拟机里运行Guix"
  3769. #. type: menuentry
  3770. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3771. msgid "How to run Guix System in a virtual machine."
  3772. msgstr "怎样在虚拟机里运行Guix。"
  3773. #. type: section
  3774. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:378
  3775. #: guix-git/doc/guix.texi:14016 guix-git/doc/guix.texi:35213
  3776. #: guix-git/doc/guix.texi:35214
  3777. #, no-wrap
  3778. msgid "Defining Services"
  3779. msgstr "定义服务"
  3780. #. type: menuentry
  3781. #: guix-git/doc/guix.texi:337 guix-git/doc/guix.texi:14016
  3782. msgid "Adding new service definitions."
  3783. msgstr "添加新的服务定义。"
  3784. #. type: menuentry
  3785. #: guix-git/doc/guix.texi:339
  3786. #, fuzzy
  3787. #| msgid "System Configuration"
  3788. msgid "Home Environment Configuration"
  3789. msgstr "系统配置"
  3790. #. type: node
  3791. #: guix-git/doc/guix.texi:341 guix-git/doc/guix.texi:36012
  3792. #: guix-git/doc/guix.texi:36546
  3793. #, fuzzy, no-wrap
  3794. #| msgid "Invoking guix hash"
  3795. msgid "Invoking guix home"
  3796. msgstr "调用guix hash"
  3797. #. type: menuentry
  3798. #: guix-git/doc/guix.texi:341
  3799. #, fuzzy
  3800. #| msgid "Instantiating a system configuration."
  3801. msgid "Instantiating a home environment configuration."
  3802. msgstr "实例化一个系统配置。"
  3803. #. type: subsection
  3804. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3805. #: guix-git/doc/guix.texi:15641 guix-git/doc/guix.texi:15642
  3806. #, no-wrap
  3807. msgid "Base Services"
  3808. msgstr "基础服务"
  3809. #. type: menuentry
  3810. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3811. msgid "Essential system services."
  3812. msgstr "必要的系统服务。"
  3813. #. type: subsection
  3814. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3815. #: guix-git/doc/guix.texi:16568 guix-git/doc/guix.texi:16569
  3816. #, no-wrap
  3817. msgid "Scheduled Job Execution"
  3818. msgstr "执行计划任务"
  3819. #. type: menuentry
  3820. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3821. msgid "The mcron service."
  3822. msgstr "mcron服务。"
  3823. #. type: subsection
  3824. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3825. #: guix-git/doc/guix.texi:16718 guix-git/doc/guix.texi:16719
  3826. #, no-wrap
  3827. msgid "Log Rotation"
  3828. msgstr "日志轮替"
  3829. #. type: menuentry
  3830. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3831. msgid "The rottlog service."
  3832. msgstr "rottlog服务。"
  3833. #. type: subsection
  3834. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3835. #: guix-git/doc/guix.texi:16831 guix-git/doc/guix.texi:16832
  3836. #, no-wrap
  3837. msgid "Networking Services"
  3838. msgstr "网络服务"
  3839. #. type: menuentry
  3840. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3841. msgid "Network setup, SSH daemon, etc."
  3842. msgstr "网络设置,SSH后台进程,等"
  3843. #. type: subsection
  3844. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3845. #: guix-git/doc/guix.texi:18500 guix-git/doc/guix.texi:18501
  3846. #, no-wrap
  3847. msgid "Unattended Upgrades"
  3848. msgstr ""
  3849. #. type: menuentry
  3850. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3851. msgid "Automated system upgrades."
  3852. msgstr ""
  3853. #. type: subsection
  3854. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3855. #: guix-git/doc/guix.texi:18638 guix-git/doc/guix.texi:18639
  3856. #, no-wrap
  3857. msgid "X Window"
  3858. msgstr "X窗口"
  3859. #. type: menuentry
  3860. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3861. msgid "Graphical display."
  3862. msgstr "图形显示器。"
  3863. #. type: subsection
  3864. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3865. #: guix-git/doc/guix.texi:19022 guix-git/doc/guix.texi:19023
  3866. #, no-wrap
  3867. msgid "Printing Services"
  3868. msgstr "打印服务"
  3869. #. type: menuentry
  3870. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3871. msgid "Local and remote printer support."
  3872. msgstr "本地和远程打印机的支持。"
  3873. #. type: subsection
  3874. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3875. #: guix-git/doc/guix.texi:19869 guix-git/doc/guix.texi:19870
  3876. #, no-wrap
  3877. msgid "Desktop Services"
  3878. msgstr "桌面服务"
  3879. #. type: menuentry
  3880. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3881. msgid "D-Bus and desktop services."
  3882. msgstr "D-Bus和桌面服务。"
  3883. #. type: subsection
  3884. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3885. #: guix-git/doc/guix.texi:20387 guix-git/doc/guix.texi:20388
  3886. #, no-wrap
  3887. msgid "Sound Services"
  3888. msgstr "声音服务"
  3889. #. type: menuentry
  3890. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3891. msgid "ALSA and Pulseaudio services."
  3892. msgstr "ALSA和Pulseaudio服务。"
  3893. #. type: subsection
  3894. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3895. #: guix-git/doc/guix.texi:20527 guix-git/doc/guix.texi:20528
  3896. #, no-wrap
  3897. msgid "Database Services"
  3898. msgstr "数据库服务"
  3899. #. type: menuentry
  3900. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3901. msgid "SQL databases, key-value stores, etc."
  3902. msgstr "SQL数据库,键值仓库,等"
  3903. #. type: subsection
  3904. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3905. #: guix-git/doc/guix.texi:20862 guix-git/doc/guix.texi:20863
  3906. #, no-wrap
  3907. msgid "Mail Services"
  3908. msgstr "邮件服务"
  3909. #. type: menuentry
  3910. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3911. msgid "IMAP, POP3, SMTP, and all that."
  3912. msgstr "IMAP,POP3,SMTP,等"
  3913. #. type: subsection
  3914. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3915. #: guix-git/doc/guix.texi:22721 guix-git/doc/guix.texi:22722
  3916. #, no-wrap
  3917. msgid "Messaging Services"
  3918. msgstr "消息服务"
  3919. #. type: menuentry
  3920. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3921. msgid "Messaging services."
  3922. msgstr "消息服务。"
  3923. #. type: subsection
  3924. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3925. #: guix-git/doc/guix.texi:23224 guix-git/doc/guix.texi:23225
  3926. #, no-wrap
  3927. msgid "Telephony Services"
  3928. msgstr "电话服务"
  3929. #. type: menuentry
  3930. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3931. msgid "Telephony services."
  3932. msgstr "电话服务。"
  3933. #. type: subsection
  3934. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3935. #: guix-git/doc/guix.texi:24455 guix-git/doc/guix.texi:24456
  3936. #, no-wrap
  3937. msgid "Monitoring Services"
  3938. msgstr "监控服务"
  3939. #. type: menuentry
  3940. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3941. msgid "Monitoring services."
  3942. msgstr "监控服务。"
  3943. #. type: subsection
  3944. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3945. #: guix-git/doc/guix.texi:24966 guix-git/doc/guix.texi:24967
  3946. #, no-wrap
  3947. msgid "Kerberos Services"
  3948. msgstr "Kerberos服务"
  3949. #. type: menuentry
  3950. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3951. msgid "Kerberos services."
  3952. msgstr "Kerberos服务。"
  3953. #. type: subsection
  3954. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3955. #: guix-git/doc/guix.texi:25092 guix-git/doc/guix.texi:25093
  3956. #, no-wrap
  3957. msgid "LDAP Services"
  3958. msgstr ""
  3959. #. type: menuentry
  3960. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3961. msgid "LDAP services."
  3962. msgstr ""
  3963. #. type: subsection
  3964. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3965. #: guix-git/doc/guix.texi:25571 guix-git/doc/guix.texi:25572
  3966. #, no-wrap
  3967. msgid "Web Services"
  3968. msgstr "Web服务"
  3969. #. type: menuentry
  3970. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3971. msgid "Web servers."
  3972. msgstr "Web服务。"
  3973. #. type: subsection
  3974. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3975. #: guix-git/doc/guix.texi:26779 guix-git/doc/guix.texi:26780
  3976. #, no-wrap
  3977. msgid "Certificate Services"
  3978. msgstr "证书服务"
  3979. #. type: menuentry
  3980. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3981. msgid "TLS certificates via Let's Encrypt."
  3982. msgstr "Let's Encrypt TLS证书。"
  3983. #. type: subsection
  3984. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3985. #: guix-git/doc/guix.texi:26960 guix-git/doc/guix.texi:26961
  3986. #, no-wrap
  3987. msgid "DNS Services"
  3988. msgstr "DNS服务"
  3989. #. type: menuentry
  3990. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3991. msgid "DNS daemons."
  3992. msgstr "DNS后台进程。"
  3993. #. type: subsection
  3994. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  3995. #: guix-git/doc/guix.texi:27705 guix-git/doc/guix.texi:27706
  3996. #, no-wrap
  3997. msgid "VPN Services"
  3998. msgstr "VPN服务"
  3999. #. type: menuentry
  4000. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4001. msgid "VPN daemons."
  4002. msgstr "VPN后台进程。"
  4003. #. type: subsection
  4004. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4005. #: guix-git/doc/guix.texi:28214 guix-git/doc/guix.texi:28215
  4006. #, no-wrap
  4007. msgid "Network File System"
  4008. msgstr "网络文件系统"
  4009. #. type: menuentry
  4010. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4011. msgid "NFS related services."
  4012. msgstr "网络文件系统相关的服务。"
  4013. #. type: subsection
  4014. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4015. #: guix-git/doc/guix.texi:28410 guix-git/doc/guix.texi:28411
  4016. #, no-wrap
  4017. msgid "Continuous Integration"
  4018. msgstr "持续集成"
  4019. #. type: menuentry
  4020. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4021. #, fuzzy
  4022. msgid "Cuirass and Laminar services."
  4023. msgstr "Cuirass服务。"
  4024. #. type: subsection
  4025. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4026. #: guix-git/doc/guix.texi:28696 guix-git/doc/guix.texi:28697
  4027. #, no-wrap
  4028. msgid "Power Management Services"
  4029. msgstr "电源管理服务"
  4030. #. type: menuentry
  4031. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4032. msgid "Extending battery life."
  4033. msgstr "延长电池寿命。"
  4034. #. type: subsection
  4035. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4036. #: guix-git/doc/guix.texi:29230 guix-git/doc/guix.texi:29231
  4037. #, no-wrap
  4038. msgid "Audio Services"
  4039. msgstr "音频服务"
  4040. #. type: menuentry
  4041. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4042. msgid "The MPD."
  4043. msgstr "MPD。"
  4044. #. type: subsection
  4045. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4046. #: guix-git/doc/guix.texi:29349 guix-git/doc/guix.texi:29350
  4047. #, no-wrap
  4048. msgid "Virtualization Services"
  4049. msgstr "虚拟化服务"
  4050. #. type: menuentry
  4051. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4052. msgid "Virtualization services."
  4053. msgstr "虚拟化服务。"
  4054. #. type: subsection
  4055. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4056. #: guix-git/doc/guix.texi:31010 guix-git/doc/guix.texi:31011
  4057. #, no-wrap
  4058. msgid "Version Control Services"
  4059. msgstr "版本控制服务"
  4060. #. type: menuentry
  4061. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4062. msgid "Providing remote access to Git repositories."
  4063. msgstr "远程访问Git仓库。"
  4064. #. type: subsection
  4065. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4066. #: guix-git/doc/guix.texi:32346 guix-git/doc/guix.texi:32347
  4067. #, no-wrap
  4068. msgid "Game Services"
  4069. msgstr "游戏服务"
  4070. #. type: menuentry
  4071. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4072. msgid "Game servers."
  4073. msgstr "游戏服务器。"
  4074. #. type: subsection
  4075. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4076. #: guix-git/doc/guix.texi:32378 guix-git/doc/guix.texi:32379
  4077. #, fuzzy, no-wrap
  4078. msgid "PAM Mount Service"
  4079. msgstr "声音服务"
  4080. #. type: menuentry
  4081. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4082. msgid "Service to mount volumes when logging in."
  4083. msgstr ""
  4084. #. type: subsection
  4085. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4086. #: guix-git/doc/guix.texi:32461 guix-git/doc/guix.texi:32462
  4087. #, fuzzy, no-wrap
  4088. msgid "Guix Services"
  4089. msgstr "音频服务"
  4090. #. type: menuentry
  4091. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4092. msgid "Services relating specifically to Guix."
  4093. msgstr ""
  4094. #. type: subsection
  4095. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4096. #: guix-git/doc/guix.texi:32739 guix-git/doc/guix.texi:32740
  4097. #, fuzzy, no-wrap
  4098. msgid "Linux Services"
  4099. msgstr "邮件服务"
  4100. #. type: menuentry
  4101. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4102. msgid "Services tied to the Linux kernel."
  4103. msgstr ""
  4104. #. type: subsection
  4105. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4106. #: guix-git/doc/guix.texi:32966 guix-git/doc/guix.texi:32967
  4107. #, fuzzy, no-wrap
  4108. msgid "Hurd Services"
  4109. msgstr "声音服务"
  4110. #. type: menuentry
  4111. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4112. msgid "Services specific for a Hurd System."
  4113. msgstr ""
  4114. #. type: subsection
  4115. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4116. #: guix-git/doc/guix.texi:33008 guix-git/doc/guix.texi:33009
  4117. #, no-wrap
  4118. msgid "Miscellaneous Services"
  4119. msgstr "其它各种服务"
  4120. #. type: menuentry
  4121. #: guix-git/doc/guix.texi:376 guix-git/doc/guix.texi:15639
  4122. msgid "Other services."
  4123. msgstr "其它服务。"
  4124. #. type: subsection
  4125. #: guix-git/doc/guix.texi:383 guix-git/doc/guix.texi:35225
  4126. #: guix-git/doc/guix.texi:35227 guix-git/doc/guix.texi:35228
  4127. #, no-wrap
  4128. msgid "Service Composition"
  4129. msgstr "合成服务"
  4130. #. type: menuentry
  4131. #: guix-git/doc/guix.texi:383 guix-git/doc/guix.texi:35225
  4132. msgid "The model for composing services."
  4133. msgstr "服务合成的模型。"
  4134. #. type: subsection
  4135. #: guix-git/doc/guix.texi:383 guix-git/doc/guix.texi:35225
  4136. #: guix-git/doc/guix.texi:35283 guix-git/doc/guix.texi:35284
  4137. #, no-wrap
  4138. msgid "Service Types and Services"
  4139. msgstr "服务类型和服务"
  4140. #. type: menuentry
  4141. #: guix-git/doc/guix.texi:383 guix-git/doc/guix.texi:35225
  4142. msgid "Types and services."
  4143. msgstr "类型和服务。"
  4144. #. type: subsection
  4145. #: guix-git/doc/guix.texi:383 guix-git/doc/guix.texi:35225
  4146. #: guix-git/doc/guix.texi:35420 guix-git/doc/guix.texi:35421
  4147. #, no-wrap
  4148. msgid "Service Reference"
  4149. msgstr "服务参考"
  4150. #. type: menuentry
  4151. #: guix-git/doc/guix.texi:383 guix-git/doc/guix.texi:35225
  4152. msgid "API reference."
  4153. msgstr "API参考。"
  4154. #. type: subsection
  4155. #: guix-git/doc/guix.texi:383 guix-git/doc/guix.texi:35225
  4156. #: guix-git/doc/guix.texi:35730 guix-git/doc/guix.texi:35731
  4157. #, no-wrap
  4158. msgid "Shepherd Services"
  4159. msgstr "Shepherd服务"
  4160. #. type: menuentry
  4161. #: guix-git/doc/guix.texi:383 guix-git/doc/guix.texi:35225
  4162. msgid "A particular type of service."
  4163. msgstr "一种特别的服务。"
  4164. #. type: section
  4165. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36872
  4166. #: guix-git/doc/guix.texi:36874 guix-git/doc/guix.texi:36875
  4167. #, no-wrap
  4168. msgid "Separate Debug Info"
  4169. msgstr ""
  4170. #. type: menuentry
  4171. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36872
  4172. #, fuzzy
  4173. msgid "Installing 'debug' outputs."
  4174. msgstr "安装调试文件"
  4175. #. type: section
  4176. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36872
  4177. #: guix-git/doc/guix.texi:36933 guix-git/doc/guix.texi:36934
  4178. #, no-wrap
  4179. msgid "Rebuilding Debug Info"
  4180. msgstr ""
  4181. #. type: menuentry
  4182. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36872
  4183. msgid "Building missing debug info."
  4184. msgstr ""
  4185. #. type: node
  4186. #: guix-git/doc/guix.texi:393 guix-git/doc/guix.texi:37150
  4187. #: guix-git/doc/guix.texi:37152
  4188. #, no-wrap
  4189. msgid "Reduced Binary Seed Bootstrap"
  4190. msgstr ""
  4191. #. type: menuentry
  4192. #: guix-git/doc/guix.texi:393 guix-git/doc/guix.texi:37150
  4193. msgid "A Bootstrap worthy of GNU."
  4194. msgstr ""
  4195. #. type: section
  4196. #: guix-git/doc/guix.texi:393 guix-git/doc/guix.texi:37150
  4197. #: guix-git/doc/guix.texi:37227 guix-git/doc/guix.texi:37228
  4198. #, no-wrap
  4199. msgid "Preparing to Use the Bootstrap Binaries"
  4200. msgstr ""
  4201. #. type: menuentry
  4202. #: guix-git/doc/guix.texi:393 guix-git/doc/guix.texi:37150
  4203. msgid "Building that what matters most."
  4204. msgstr ""
  4205. #. type: cindex
  4206. #: guix-git/doc/guix.texi:401
  4207. #, no-wrap
  4208. msgid "purpose"
  4209. msgstr "目的"
  4210. #. type: Plain text
  4211. #: guix-git/doc/guix.texi:409
  4212. 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."
  4213. msgstr "GNU Guix@footnote{``Guix''读做``geeks'',或``ɡiːks''(国际音标)}是GNU系统的包管理器和发行版。Guix让无特权的用户可以轻松地安装,升级,或删除软件包,回滚到前一个软件包集合,从源代码构建软件包,及辅助软件环境的创建和维护。"
  4214. #. type: cindex
  4215. #: guix-git/doc/guix.texi:410 guix-git/doc/guix.texi:485
  4216. #, no-wrap
  4217. msgid "Guix System"
  4218. msgstr "Guix系统"
  4219. #. type: cindex
  4220. #: guix-git/doc/guix.texi:411
  4221. #, no-wrap
  4222. msgid "GuixSD, now Guix System"
  4223. msgstr "GuixSD,现在称为Guix系统"
  4224. #. type: cindex
  4225. #: guix-git/doc/guix.texi:412
  4226. #, no-wrap
  4227. msgid "Guix System Distribution, now Guix System"
  4228. msgstr "Guix系统发行版,现在称为Guix系统"
  4229. #. type: Plain text
  4230. #: guix-git/doc/guix.texi:421
  4231. 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}."
  4232. msgstr "你可以在现有的GNU/Linux发行版上安装GNU@tie{}Guix(@pxref{Installation}),Guix可以补充已有的工具,并且不会和它们产生冲突。或者你可以把它当作独立的操作系统发行版(@dfn{Guix@tie{}系统}@footnote{我们以前把Guix系统称为``Guix系统发行版''或``GuixSD''。我们现在觉得把一切都统一在``Guix''的旗帜下更合理,因为,毕竟即使在别的发行版上你也可以随时通过@command{guix system}命令获得Guix系统})。@xref{GNU Distribution}."
  4233. #. type: cindex
  4234. #: guix-git/doc/guix.texi:430
  4235. #, no-wrap
  4236. msgid "user interfaces"
  4237. msgstr "用户界面"
  4238. #. type: Plain text
  4239. #: guix-git/doc/guix.texi:436
  4240. #, fuzzy
  4241. 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})."
  4242. msgstr "Guix提供了命令行软件包管理接口(@pxref{Package Management}),辅助软件开发的工具(@pxref{Development}),高级用法的命令行接口(@pxref{Utilities}),以及Scheme编程语言接口(@pxref{Programming Interface})。"
  4243. #. type: cindex
  4244. #: guix-git/doc/guix.texi:436
  4245. #, no-wrap
  4246. msgid "build daemon"
  4247. msgstr "构建后台进程"
  4248. #. type: Plain text
  4249. #: guix-git/doc/guix.texi:440
  4250. 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})."
  4251. msgstr "@dfn{构建后台进程}为用户构建软件包(@pxref{Setting Up the Daemon}),及从授权的源(@pxref{Substitutes})下载预构建的二进制文件。"
  4252. #. type: cindex
  4253. #: guix-git/doc/guix.texi:441
  4254. #, no-wrap
  4255. msgid "extensibility of the distribution"
  4256. msgstr "发行版的扩展性"
  4257. #. type: cindex
  4258. #: guix-git/doc/guix.texi:442 guix-git/doc/guix.texi:6850
  4259. #, no-wrap
  4260. msgid "customization, of packages"
  4261. msgstr "定制软件包"
  4262. #. type: Plain text
  4263. #: guix-git/doc/guix.texi:451
  4264. 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})."
  4265. 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})。"
  4266. #. type: cindex
  4267. #: guix-git/doc/guix.texi:452
  4268. #, no-wrap
  4269. msgid "functional package management"
  4270. msgstr "函数式包管理器"
  4271. #. type: cindex
  4272. #: guix-git/doc/guix.texi:453
  4273. #, no-wrap
  4274. msgid "isolation"
  4275. msgstr "隔离"
  4276. #. type: Plain text
  4277. #: guix-git/doc/guix.texi:468
  4278. 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."
  4279. msgstr "在底层,Guix实现了由Nix(@pxref{Acknowledgments})开创的@dfn{函数式包管理器}。在Guix里,软件包构建和安装过程被视为数学意义上的@emph{函数}。函数获取输入,如构建脚本、编译器和库,并且返回一个安装好的软件包。作为一个纯函数,它的结果只取决于它的输入--例如,它不能引用没有作为显式输入传入的软件和脚本。当传入特定的输入时,一个构建函数总是得到相同的结果。它不能以任何方式修改运行系统的环境,例如,它不能创建,修改,或删除构建和安装环境之外的文件夹。这是通过在隔离的环境(@dfn{容器})里运行构建进程实现的,在这个环境里只能访问到显式的输入。"
  4280. #. type: cindex
  4281. #: guix-git/doc/guix.texi:469 guix-git/doc/guix.texi:9249
  4282. #, no-wrap
  4283. msgid "store"
  4284. msgstr "仓库"
  4285. #. type: Plain text
  4286. #: guix-git/doc/guix.texi:476
  4287. 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."
  4288. msgstr "软件包构建函数的结果被@dfn{缓存}在文件系统里的一个叫做@dfn{仓库}(@pxref{The Store})的特殊文件夹内。每个软件包都被安装在仓库(默认在@file{/gnu/store})里的一个独立的文件夹内。这个文件夹的名字含有用于构建这个软件包的所有输入的hash,所以,修改输入会得到一个不同的文件夹名。"
  4289. #. type: Plain text
  4290. #: guix-git/doc/guix.texi:480
  4291. 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})."
  4292. msgstr "这种手段是实现Guix的突出功能的基础:对事务型软件包升级和回滚的支持,每个用户独立的安装,软件包垃圾回收@pxref{Features}。"
  4293. #. type: Plain text
  4294. #: guix-git/doc/guix.texi:495
  4295. 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."
  4296. msgstr "Guix提供了一个GNU系统发行版,这个发新版只包含自由软件@footnote{这里的“自由”指的是@url{https://www.gnu.org/philosophy/free-sw.html,软件提供给用户的自由}。}。这个发行版可以独立安装(@pxref{System Installation}),但是把Guix安装为一个已经安装好的GNU/Linux系统的包管理器也是可行的(@pxref{Installation})。当我们需要区分这两者时,我们把独立的发行版称为“Guix系统”。"
  4297. #. type: Plain text
  4298. #: guix-git/doc/guix.texi:501
  4299. 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}):"
  4300. msgstr "这个发行版提供了GNU核心软件包,如libc、gcc和Binutils,以及很多GNU和非GNU应用程序。可用的软件包的完整列表可以在@url{https://www.gnu.org/software/guix/packages,on-line}浏览,或者通过运行@command{guix package}(@pxref{Invoking guix package})获得:"
  4301. #. type: example
  4302. #: guix-git/doc/guix.texi:504
  4303. #, no-wrap
  4304. msgid "guix package --list-available\n"
  4305. msgstr "guix package --list-available\n"
  4306. #. type: Plain text
  4307. #: guix-git/doc/guix.texi:510
  4308. 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."
  4309. msgstr "我们的目标是提供一个基于Linux和其它GNU变体的可用的100%自由的软件发行版,我们的重点是推广和紧密集成GNU组件,以及强调帮助用户行使那些自由的程序和工具。"
  4310. #. type: Plain text
  4311. #: guix-git/doc/guix.texi:512
  4312. msgid "Packages are currently available on the following platforms:"
  4313. msgstr "目前这些平台提供软件包:"
  4314. #. type: item
  4315. #: guix-git/doc/guix.texi:515 guix-git/doc/guix.texi:2144
  4316. #, no-wrap
  4317. msgid "x86_64-linux"
  4318. msgstr "x86_64-linux"
  4319. #. type: table
  4320. #: guix-git/doc/guix.texi:517
  4321. msgid "Intel/AMD @code{x86_64} architecture, Linux-Libre kernel."
  4322. msgstr "Intel/AMD @code{x86_64} 架构,Linux-Libre 内核。"
  4323. #. type: item
  4324. #: guix-git/doc/guix.texi:518 guix-git/doc/guix.texi:2147
  4325. #, no-wrap
  4326. msgid "i686-linux"
  4327. msgstr "i686-linux"
  4328. #. type: table
  4329. #: guix-git/doc/guix.texi:520
  4330. msgid "Intel 32-bit architecture (IA32), Linux-Libre kernel."
  4331. msgstr "Intel 32 位架构(IA32),Linux-Libre 内核。"
  4332. #. type: item
  4333. #: guix-git/doc/guix.texi:521
  4334. #, no-wrap
  4335. msgid "armhf-linux"
  4336. msgstr "armhf-linux"
  4337. #. type: table
  4338. #: guix-git/doc/guix.texi:525
  4339. msgid "ARMv7-A architecture with hard float, Thumb-2 and NEON, using the EABI hard-float application binary interface (ABI), and Linux-Libre kernel."
  4340. msgstr "ARMv7-A架构,带硬件浮点数、Thumb-2和NEON扩展,EABI硬件浮点数应用二进制接口(ABI),和Linux-Libre内核。"
  4341. #. type: item
  4342. #: guix-git/doc/guix.texi:526
  4343. #, no-wrap
  4344. msgid "aarch64-linux"
  4345. msgstr "aarch64-linux"
  4346. #. type: table
  4347. #: guix-git/doc/guix.texi:528
  4348. #, fuzzy
  4349. msgid "little-endian 64-bit ARMv8-A processors, Linux-Libre kernel."
  4350. msgstr "小端序64位MIPS处理器,龙芯系列,n32 ABI,Linux-Libre内核。"
  4351. #. type: item
  4352. #: guix-git/doc/guix.texi:529
  4353. #, no-wrap
  4354. msgid "i586-gnu"
  4355. msgstr ""
  4356. #. type: table
  4357. #: guix-git/doc/guix.texi:532
  4358. msgid "@uref{https://hurd.gnu.org, GNU/Hurd} on the Intel 32-bit architecture (IA32)."
  4359. msgstr ""
  4360. #. type: table
  4361. #: guix-git/doc/guix.texi:538
  4362. 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!"
  4363. msgstr ""
  4364. #. type: item
  4365. #: guix-git/doc/guix.texi:539
  4366. #, fuzzy, no-wrap
  4367. msgid "mips64el-linux (deprecated)"
  4368. msgstr "mips64el-linux"
  4369. #. type: table
  4370. #: guix-git/doc/guix.texi:545
  4371. 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."
  4372. msgstr ""
  4373. #. type: table
  4374. #: guix-git/doc/guix.texi:556
  4375. 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!"
  4376. msgstr ""
  4377. #. type: Plain text
  4378. #: guix-git/doc/guix.texi:566
  4379. 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."
  4380. msgstr "在Guix系统里,你@emph{声明}操作系统所有方面的配置,然后Guix以事务型的,可重复的,和无状态的方式解决实例化配置的问题(@pxref{System Configuration})。Guix系统使用Linux-Libre内核,Shepherd初始化系统@pxref{Introduction,,, shepherd, GNU Shepherd用户手册},知名的GNU工具和工具链,以及你可选的图形界面环境和系统服务。"
  4381. #. type: Plain text
  4382. #: guix-git/doc/guix.texi:569
  4383. #, fuzzy
  4384. msgid "Guix System is available on all the above platforms except @code{mips64el-linux} and @code{powerpc64le-linux}."
  4385. msgstr "Guix系统在上面所有的平台上都可用,除了@code{mips64el-linux}。"
  4386. #. type: Plain text
  4387. #: guix-git/doc/guix.texi:573
  4388. msgid "For information on porting to other architectures or kernels, @pxref{Porting}."
  4389. msgstr "关于移植到其它架构或内核的信息,@pxref{Porting}。"
  4390. #. type: Plain text
  4391. #: guix-git/doc/guix.texi:576
  4392. msgid "Building this distribution is a cooperative effort, and you are invited to join! @xref{Contributing}, for information about how you can help."
  4393. msgstr "构建这个发行版需要努力合作,欢迎你加入!关于你可以怎样提供帮助的信息,@xref{Contributing}。"
  4394. #. type: cindex
  4395. #: guix-git/doc/guix.texi:582
  4396. #, no-wrap
  4397. msgid "installing Guix"
  4398. msgstr "安装Guix"
  4399. #. type: quotation
  4400. #: guix-git/doc/guix.texi:594
  4401. 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."
  4402. 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用户身份运行。"
  4403. #. type: cindex
  4404. #: guix-git/doc/guix.texi:596 guix-git/doc/guix.texi:1819
  4405. #, no-wrap
  4406. msgid "foreign distro"
  4407. msgstr "别的发行版"
  4408. #. type: cindex
  4409. #: guix-git/doc/guix.texi:597
  4410. #, no-wrap
  4411. msgid "directories related to foreign distro"
  4412. msgstr "和foreign distro相关的文件夹"
  4413. #. type: Plain text
  4414. #: guix-git/doc/guix.texi:602
  4415. 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."
  4416. msgstr "在foreign distro上安装时,GNU@tie{}Guix可以在不引起冲突的前提下补充现有的工具。它的数据只存放在两个文件夹里,通常是@file{/gnu/store}和@file{/var/guix};系统上的其它文件,如@file{/etc},不会被修改。"
  4417. #. type: Plain text
  4418. #: guix-git/doc/guix.texi:605
  4419. msgid "Once installed, Guix can be updated by running @command{guix pull} (@pxref{Invoking guix pull})."
  4420. msgstr "一旦安装好了,可以通过运行@command{guix pull}升级Guix(@pxref{Invoking guix pull})。"
  4421. #. type: Plain text
  4422. #: guix-git/doc/guix.texi:610
  4423. 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."
  4424. msgstr "如果你希望手动执行安装步骤,或者想改变安装步骤,接下来这些小节会很有用。它们介绍Guix的软件依赖,以及如何手动安装和使用Guix。"
  4425. #. type: cindex
  4426. #: guix-git/doc/guix.texi:624
  4427. #, no-wrap
  4428. msgid "installing Guix from binaries"
  4429. msgstr "用二进制文件安装Guix"
  4430. #. type: cindex
  4431. #: guix-git/doc/guix.texi:625
  4432. #, no-wrap
  4433. msgid "installer script"
  4434. msgstr "安装脚本"
  4435. #. type: Plain text
  4436. #: guix-git/doc/guix.texi:631
  4437. 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."
  4438. msgstr "这个小节介绍如何在任意的系统上用独立的Guix二进制文件包安装Guix和它的依赖。这通常比从源代码安装更快,下一小节会介绍如何从源代码安装。唯一的需求是有GNU@tie{}tar和Xz。"
  4439. #. type: quotation
  4440. #: guix-git/doc/guix.texi:639
  4441. #, fuzzy
  4442. 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:"
  4443. msgstr "我们推荐使用这个@uref{https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh, shell安装脚本}。这个脚本自动执行下述的下载、安装并且初始化Guix的过程。它需要以root用户身份运行。"
  4444. #. type: example
  4445. #: guix-git/doc/guix.texi:645
  4446. #, no-wrap
  4447. msgid ""
  4448. "cd /tmp\n"
  4449. "wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh\n"
  4450. "chmod +x guix-install.sh\n"
  4451. "./guix-install.sh\n"
  4452. msgstr ""
  4453. #. type: quotation
  4454. #: guix-git/doc/guix.texi:649
  4455. msgid "When you're done, @pxref{Application Setup} for extra configuration you might need, and @ref{Getting Started} for your first steps!"
  4456. msgstr ""
  4457. #. type: Plain text
  4458. #: guix-git/doc/guix.texi:652
  4459. msgid "Installing goes along these lines:"
  4460. msgstr "安装步骤如下:"
  4461. #. type: cindex
  4462. #: guix-git/doc/guix.texi:655
  4463. #, no-wrap
  4464. msgid "downloading Guix binary"
  4465. msgstr "下载Guix二进制文件"
  4466. #. type: enumerate
  4467. #: guix-git/doc/guix.texi:661
  4468. #, fuzzy
  4469. 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})."
  4470. msgstr "从@indicateurl{@value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz}下载二进制安装包,对于运行Linux内核的@code{x86_64}机器来说@var{系统}是@code{x86_64-linux},以此类推。"
  4471. #. type: enumerate
  4472. #: guix-git/doc/guix.texi:665
  4473. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the tarball against it, along these lines:"
  4474. msgstr "请确保下载相关的@file{.sig}文件,并且用它验证文件包的可靠性,方法如下:"
  4475. #. type: example
  4476. #: guix-git/doc/guix.texi:669
  4477. #, fuzzy, no-wrap
  4478. msgid ""
  4479. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  4480. "$ gpg --verify guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  4481. msgstr ""
  4482. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  4483. "$ gpg --verify guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  4484. #. type: Plain text
  4485. #: guix-git/doc/guix.texi:673 guix-git/doc/guix.texi:2162
  4486. msgid "If that command fails because you do not have the required public key, then run this command to import it:"
  4487. msgstr "如果那个命令因为缺少所需的公钥而失败了,那么用这个命令导入它:"
  4488. #. type: example
  4489. #: guix-git/doc/guix.texi:677
  4490. #, no-wrap
  4491. msgid ""
  4492. "$ wget '@value{OPENPGP-SIGNING-KEY-URL}' \\\n"
  4493. " -qO - | gpg --import -\n"
  4494. msgstr ""
  4495. #. type: Plain text
  4496. #: guix-git/doc/guix.texi:681 guix-git/doc/guix.texi:2170
  4497. msgid "and rerun the @code{gpg --verify} command."
  4498. msgstr "再次运行@code{gpg --verify}命令。"
  4499. #. type: Plain text
  4500. #: guix-git/doc/guix.texi:684 guix-git/doc/guix.texi:2173
  4501. msgid "Take note that a warning like ``This key is not certified with a trusted signature!'' is normal."
  4502. msgstr ""
  4503. #. type: enumerate
  4504. #: guix-git/doc/guix.texi:690
  4505. 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:"
  4506. msgstr "现在你需要成为@code{root}用户。基于你的发行版,你可能需要执行@code{su -}或@code{sudo -i}。以@code{root}用户身份,执行:"
  4507. #. type: example
  4508. #: guix-git/doc/guix.texi:696
  4509. #, fuzzy, no-wrap
  4510. msgid ""
  4511. "# cd /tmp\n"
  4512. "# tar --warning=no-timestamp -xf \\\n"
  4513. " /path/to/guix-binary-@value{VERSION}.x86_64-linux.tar.xz\n"
  4514. "# mv var/guix /var/ && mv gnu /\n"
  4515. msgstr ""
  4516. "# cd /tmp\n"
  4517. "# tar --warning=no-timestamp -xf \\\n"
  4518. " guix-binary-@value{VERSION}.@var{系统}.tar.xz\n"
  4519. "# mv var/guix /var/ && mv gnu /\n"
  4520. #. type: enumerate
  4521. #: guix-git/doc/guix.texi:701
  4522. #, fuzzy
  4523. 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)."
  4524. msgstr "这会创建@file{/gnu/store}(@pxref{The Store})和@file{/var/guix}。后一个文件夹为@code{root}用户提供了一个立即可用的profile(见下一步)。"
  4525. #. type: enumerate
  4526. #: guix-git/doc/guix.texi:704
  4527. msgid "Do @emph{not} unpack the tarball on a working Guix system since that would overwrite its own essential files."
  4528. msgstr "@emph{不要}在一个正常的Guix系统上解压这个文件包,因为那会把现有的重要的文件覆盖。"
  4529. #. type: enumerate
  4530. #: guix-git/doc/guix.texi:714
  4531. #, fuzzy
  4532. 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."
  4533. msgstr "@code{--warning=no-timestamp}选项使GNU@tie{}tar不输出有关“implausibly old time stamps”的警告(这类警告会被GNU@tie{}tar 1.26或更老的版本触发;新的版本没事)。这类警告是因为文件包里的所有文件的修改时间戳都被设置为0(即1970年1月1日)。这是故意的,为了确保文件包的内容独立于创建的时间,从而使它可再现。"
  4534. #. type: enumerate
  4535. #: guix-git/doc/guix.texi:718
  4536. msgid "Make the profile available under @file{~root/.config/guix/current}, which is where @command{guix pull} will install updates (@pxref{Invoking guix pull}):"
  4537. msgstr "使profile出现在@file{~root/.config/guix/current},这是@command{guix pull}安装更新的位置(@pxref{Invoking guix pull}):"
  4538. #. type: example
  4539. #: guix-git/doc/guix.texi:723
  4540. #, no-wrap
  4541. msgid ""
  4542. "# mkdir -p ~root/.config/guix\n"
  4543. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  4544. " ~root/.config/guix/current\n"
  4545. msgstr ""
  4546. "# mkdir -p ~root/.config/guix\n"
  4547. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  4548. " ~root/.config/guix/current\n"
  4549. #. type: enumerate
  4550. #: guix-git/doc/guix.texi:727
  4551. #, fuzzy
  4552. msgid "Source @file{etc/profile} to augment @env{PATH} and other relevant environment variables:"
  4553. msgstr "执行@file{etc/profile}以更新@code{PATH}和其它相关的环境变量:"
  4554. #. type: example
  4555. #: guix-git/doc/guix.texi:731
  4556. #, no-wrap
  4557. msgid ""
  4558. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  4559. " source $GUIX_PROFILE/etc/profile\n"
  4560. msgstr ""
  4561. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  4562. " source $GUIX_PROFILE/etc/profile\n"
  4563. #. type: enumerate
  4564. #: guix-git/doc/guix.texi:736
  4565. msgid "Create the group and user accounts for build users as explained below (@pxref{Build Environment Setup})."
  4566. msgstr "像下面解释的那样为“构建用户”创建用户组和用户(@pxref{Build Environment Setup})。"
  4567. #. type: enumerate
  4568. #: guix-git/doc/guix.texi:739
  4569. msgid "Run the daemon, and set it to automatically start on boot."
  4570. msgstr "运行后台进程,并设置为开机自启动。"
  4571. #. type: enumerate
  4572. #: guix-git/doc/guix.texi:742
  4573. msgid "If your host distro uses the systemd init system, this can be achieved with these commands:"
  4574. msgstr "如果你的主机的发行版使用systemd init系统,可以用这些命令:"
  4575. #. type: example
  4576. #: guix-git/doc/guix.texi:755
  4577. #, fuzzy, no-wrap
  4578. msgid ""
  4579. "# cp ~root/.config/guix/current/lib/systemd/system/gnu-store.mount \\\n"
  4580. " ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4581. " /etc/systemd/system/\n"
  4582. "# systemctl enable --now gnu-store.mount guix-daemon\n"
  4583. msgstr ""
  4584. "# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4585. " /etc/systemd/system/\n"
  4586. "# systemctl start guix-daemon && systemctl enable guix-daemon\n"
  4587. #. type: enumerate
  4588. #: guix-git/doc/guix.texi:758
  4589. msgid "You may also want to arrange for @command{guix gc} to run periodically:"
  4590. msgstr ""
  4591. #. type: example
  4592. #: guix-git/doc/guix.texi:764
  4593. #, fuzzy, no-wrap
  4594. msgid ""
  4595. "# cp ~root/.config/guix/current/lib/systemd/system/guix-gc.service \\\n"
  4596. " ~root/.config/guix/current/lib/systemd/system/guix-gc.timer \\\n"
  4597. " /etc/systemd/system/\n"
  4598. "# systemctl enable --now guix-gc.timer\n"
  4599. msgstr ""
  4600. "# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4601. " /etc/systemd/system/\n"
  4602. "# systemctl start guix-daemon && systemctl enable guix-daemon\n"
  4603. #. type: enumerate
  4604. #: guix-git/doc/guix.texi:768
  4605. msgid "You may want to edit @file{guix-gc.service} to adjust the command line options to fit your needs (@pxref{Invoking guix gc})."
  4606. msgstr ""
  4607. #. type: itemize
  4608. #: guix-git/doc/guix.texi:770 guix-git/doc/guix.texi:13434
  4609. msgid "If your host distro uses the Upstart init system:"
  4610. msgstr "如果你的主机的发行版使用Upstart init系统:"
  4611. #. type: example
  4612. #: guix-git/doc/guix.texi:776
  4613. #, no-wrap
  4614. msgid ""
  4615. "# initctl reload-configuration\n"
  4616. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  4617. " /etc/init/\n"
  4618. "# start guix-daemon\n"
  4619. msgstr ""
  4620. "# initctl reload-configuration\n"
  4621. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  4622. " /etc/init/\n"
  4623. "# start guix-daemon\n"
  4624. #. type: enumerate
  4625. #: guix-git/doc/guix.texi:779
  4626. msgid "Otherwise, you can still start the daemon manually with:"
  4627. msgstr "此外,你可以手动启动后台进程:"
  4628. #. type: example
  4629. #: guix-git/doc/guix.texi:783
  4630. #, no-wrap
  4631. msgid ""
  4632. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  4633. " --build-users-group=guixbuild\n"
  4634. msgstr ""
  4635. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  4636. " --build-users-group=guixbuild\n"
  4637. #. type: enumerate
  4638. #: guix-git/doc/guix.texi:788
  4639. msgid "Make the @command{guix} command available to other users on the machine, for instance with:"
  4640. msgstr "使机器上的其他用户也可以使用@command{guix}命令:"
  4641. #. type: example
  4642. #: guix-git/doc/guix.texi:793
  4643. #, no-wrap
  4644. msgid ""
  4645. "# mkdir -p /usr/local/bin\n"
  4646. "# cd /usr/local/bin\n"
  4647. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  4648. msgstr ""
  4649. "# mkdir -p /usr/local/bin\n"
  4650. "# cd /usr/local/bin\n"
  4651. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  4652. #. type: enumerate
  4653. #: guix-git/doc/guix.texi:797
  4654. msgid "It is also a good idea to make the Info version of this manual available there:"
  4655. msgstr "最好让这个用户手册的Info版也可以被访问:"
  4656. #. type: example
  4657. #: guix-git/doc/guix.texi:803
  4658. #, no-wrap
  4659. msgid ""
  4660. "# mkdir -p /usr/local/share/info\n"
  4661. "# cd /usr/local/share/info\n"
  4662. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  4663. " do ln -s $i ; done\n"
  4664. msgstr ""
  4665. "# mkdir -p /usr/local/share/info\n"
  4666. "# cd /usr/local/share/info\n"
  4667. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  4668. " do ln -s $i ; done\n"
  4669. #. type: enumerate
  4670. #: guix-git/doc/guix.texi:809
  4671. #, fuzzy
  4672. 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)."
  4673. msgstr "那样,假设@file{/usr/local/share/info}在搜索路径里,运行@command{info guix}命令就会打开这个用户手册(@pxref{Other Info Directories,,, texinfo, GNU Texinfo},更多关于Info搜索路径的信息)。"
  4674. #. type: cindex
  4675. #: guix-git/doc/guix.texi:811 guix-git/doc/guix.texi:3785
  4676. #: guix-git/doc/guix.texi:16182
  4677. #, no-wrap
  4678. msgid "substitutes, authorization thereof"
  4679. msgstr "substitutes,对其授权"
  4680. #. type: enumerate
  4681. #: guix-git/doc/guix.texi:815
  4682. #, fuzzy
  4683. #| msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER}} or one of its mirrors (@pxref{Substitutes}), authorize them:"
  4684. msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER-1}}, @code{@value{SUBSTITUTE-SERVER-2}} or a mirror (@pxref{Substitutes}), authorize them:"
  4685. msgstr "为了使用@code{@value{SUBSTITUTE-SERVER}}或其镜像的substitute(@pxref{Substitutes}),对其授权:"
  4686. #. type: example
  4687. #: guix-git/doc/guix.texi:821
  4688. #, fuzzy, no-wrap
  4689. #| msgid ""
  4690. #| "# guix archive --authorize < \\\n"
  4691. #| " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  4692. msgid ""
  4693. "# guix archive --authorize < \\\n"
  4694. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  4695. "# guix archive --authorize < \\\n"
  4696. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  4697. msgstr ""
  4698. "# guix archive --authorize < \\\n"
  4699. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  4700. #. type: quotation
  4701. #: guix-git/doc/guix.texi:828
  4702. 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."
  4703. msgstr ""
  4704. #. type: enumerate
  4705. #: guix-git/doc/guix.texi:833
  4706. msgid "Each user may need to perform a few additional steps to make their Guix environment ready for use, @pxref{Application Setup}."
  4707. msgstr "每个用户可能需要执行一些额外的步骤以使各自的Guix环境可用,@pxref{Application Setup}。"
  4708. #. type: Plain text
  4709. #: guix-git/doc/guix.texi:836
  4710. msgid "Voilà, the installation is complete!"
  4711. msgstr "瞧,安装完成了!"
  4712. #. type: Plain text
  4713. #: guix-git/doc/guix.texi:839
  4714. msgid "You can confirm that Guix is working by installing a sample package into the root profile:"
  4715. msgstr "你可以通过给root profile安装一个软件包来确认Guix可以正常工作。"
  4716. #. type: example
  4717. #: guix-git/doc/guix.texi:842
  4718. #, no-wrap
  4719. msgid "# guix install hello\n"
  4720. msgstr "# guix install hello\n"
  4721. #. type: Plain text
  4722. #: guix-git/doc/guix.texi:846
  4723. msgid "The binary installation tarball can be (re)produced and verified simply by running the following command in the Guix source tree:"
  4724. msgstr "二进制安装包可以通过在Guix源代码树里运行下面这些命令来重现和验证:"
  4725. #. type: example
  4726. #: guix-git/doc/guix.texi:849
  4727. #, no-wrap
  4728. msgid "make guix-binary.@var{system}.tar.xz\n"
  4729. msgstr "make guix-binary.@var{系统}.tar.xz\n"
  4730. #. type: Plain text
  4731. #: guix-git/doc/guix.texi:853
  4732. msgid "...@: which, in turn, runs:"
  4733. msgstr "...@: 这个命令会执行:"
  4734. #. type: example
  4735. #: guix-git/doc/guix.texi:857
  4736. #, no-wrap
  4737. msgid ""
  4738. "guix pack -s @var{system} --localstatedir \\\n"
  4739. " --profile-name=current-guix guix\n"
  4740. msgstr ""
  4741. "guix pack -s @var{系统} --localstatedir \\\n"
  4742. " --profile-name=current-guix guix\n"
  4743. #. type: Plain text
  4744. #: guix-git/doc/guix.texi:860
  4745. msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  4746. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  4747. #. type: Plain text
  4748. #: guix-git/doc/guix.texi:868
  4749. 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."
  4750. msgstr "这个小节列举了从源代码构建Guix的需求。构建Guix的步骤和其它GNU软件相同,这里不介绍。请阅读Guix源代码树里的@file{README}和@file{INSTALL}文件以了解更多的信息。"
  4751. #. type: cindex
  4752. #: guix-git/doc/guix.texi:869
  4753. #, no-wrap
  4754. msgid "official website"
  4755. msgstr "官方网站"
  4756. #. type: Plain text
  4757. #: guix-git/doc/guix.texi:872
  4758. msgid "GNU Guix is available for download from its website at @url{https://www.gnu.org/software/guix/}."
  4759. msgstr "GNU Guix可以从它的网站下载@url{https://www.gnu.org/software/guix/}。"
  4760. #. type: Plain text
  4761. #: guix-git/doc/guix.texi:874
  4762. msgid "GNU Guix depends on the following packages:"
  4763. msgstr "GNU Guix依赖这些软件包:"
  4764. #. type: item
  4765. #: guix-git/doc/guix.texi:876
  4766. #, fuzzy, no-wrap
  4767. msgid "@url{https://gnu.org/software/guile/, GNU Guile}, version 3.0.x;"
  4768. msgstr "@url{https://gnu.org/software/guile/, GNU Guile},版本2.2.x;"
  4769. #. type: item
  4770. #: guix-git/doc/guix.texi:877
  4771. #, no-wrap
  4772. msgid "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt}, version"
  4773. msgstr "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt},版本"
  4774. #. type: itemize
  4775. #: guix-git/doc/guix.texi:879
  4776. msgid "0.1.0 or later;"
  4777. msgstr "0.1.0或更新;"
  4778. #. type: itemize
  4779. #: guix-git/doc/guix.texi:883
  4780. 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});"
  4781. msgstr "@uref{https://gnutls.org/, GnuTLS},特别是它的Guile接口(@pxref{Guile Preparations, 怎样为Guile安装GnuTLS接口,, gnutls-guile, GnuTLS-Guile});"
  4782. #. type: itemize
  4783. #: guix-git/doc/guix.texi:886
  4784. msgid "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3}, version 0.1.0 or later;"
  4785. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4786. #. type: item
  4787. #: guix-git/doc/guix.texi:886
  4788. #, fuzzy, no-wrap
  4789. msgid "@uref{https://notabug.org/guile-zlib/guile-zlib, Guile-zlib},"
  4790. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4791. #. type: itemize
  4792. #: guix-git/doc/guix.texi:888
  4793. #, fuzzy
  4794. msgid "version 0.1.0 or later;"
  4795. msgstr "0.1.0或更新;"
  4796. #. type: item
  4797. #: guix-git/doc/guix.texi:888
  4798. #, fuzzy, no-wrap
  4799. msgid "@uref{https://notabug.org/guile-lzlib/guile-lzlib, Guile-lzlib};"
  4800. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4801. #. type: item
  4802. #: guix-git/doc/guix.texi:889
  4803. #, no-wrap
  4804. msgid "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4805. msgstr "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4806. #. type: itemize
  4807. #: guix-git/doc/guix.texi:893
  4808. #, fuzzy
  4809. msgid "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git}, version 0.5.0 or later;"
  4810. msgstr "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git},2017年8月及之后的版本;"
  4811. #. type: item
  4812. #: guix-git/doc/guix.texi:893
  4813. #, fuzzy, no-wrap
  4814. msgid "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON}"
  4815. msgstr "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON};"
  4816. #. type: itemize
  4817. #: guix-git/doc/guix.texi:895
  4818. #, fuzzy
  4819. msgid "4.3.0 or later;"
  4820. msgstr "0.1.0或更新;"
  4821. #. type: item
  4822. #: guix-git/doc/guix.texi:895
  4823. #, no-wrap
  4824. msgid "@url{https://www.gnu.org/software/make/, GNU Make}."
  4825. msgstr "@url{https://www.gnu.org/software/make/, GNU Make}。"
  4826. #. type: Plain text
  4827. #: guix-git/doc/guix.texi:899
  4828. msgid "The following dependencies are optional:"
  4829. msgstr "这些依赖是可选的:"
  4830. #. type: itemize
  4831. #: guix-git/doc/guix.texi:907
  4832. #, fuzzy
  4833. 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."
  4834. 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或更新。"
  4835. #. type: itemize
  4836. #: guix-git/doc/guix.texi:912
  4837. 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})."
  4838. msgstr ""
  4839. #. type: itemize
  4840. #: guix-git/doc/guix.texi:916
  4841. msgid "@uref{https://ngyro.com/software/guile-semver.html, Guile-Semver} for the @code{crate} importer (@pxref{Invoking guix import})."
  4842. msgstr ""
  4843. #. type: itemize
  4844. #: guix-git/doc/guix.texi:921
  4845. 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})."
  4846. msgstr ""
  4847. #. type: itemize
  4848. #: guix-git/doc/guix.texi:925
  4849. msgid "When @url{http://www.bzip.org, libbz2} is available, @command{guix-daemon} can use it to compress build logs."
  4850. msgstr "当@url{http://www.bzip.org, libbz2}存在时,@command{guix-daemon}可以用它压缩构建日志。"
  4851. #. type: Plain text
  4852. #: guix-git/doc/guix.texi:929
  4853. #, fuzzy
  4854. msgid "Unless @option{--disable-daemon} was passed to @command{configure}, the following packages are also needed:"
  4855. msgstr "除非@code{--disable-daemon}参数被传给@command{configure},这些软件包也是需要的依赖:"
  4856. #. type: item
  4857. #: guix-git/doc/guix.texi:931
  4858. #, no-wrap
  4859. msgid "@url{https://gnupg.org/, GNU libgcrypt};"
  4860. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  4861. #. type: item
  4862. #: guix-git/doc/guix.texi:932
  4863. #, no-wrap
  4864. msgid "@url{https://sqlite.org, SQLite 3};"
  4865. msgstr "@url{https://sqlite.org, SQLite 3};"
  4866. #. type: item
  4867. #: guix-git/doc/guix.texi:933
  4868. #, no-wrap
  4869. msgid "@url{https://gcc.gnu.org, GCC's g++}, with support for the"
  4870. msgstr "@url{https://gcc.gnu.org, GCC's g++},支持"
  4871. #. type: itemize
  4872. #: guix-git/doc/guix.texi:935
  4873. msgid "C++11 standard."
  4874. msgstr "C++11标准。"
  4875. #. type: cindex
  4876. #: guix-git/doc/guix.texi:937
  4877. #, no-wrap
  4878. msgid "state directory"
  4879. msgstr "状态文件夹"
  4880. #. type: Plain text
  4881. #: guix-git/doc/guix.texi:946
  4882. #, fuzzy
  4883. 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})."
  4884. msgstr "当在一个已经安装Guix的系统上配置Guix时,请确保用@command{configure}的@code{--localstatedir}参数指定和现有的安装相同的状态文件夹(@pxref{Directory Variables, @code{localstatedir},, standards, GNU Coding Standards})。@command{configure}保护你免于误设置@var{localstatedir},从而不会无意中损坏仓库(@pxref{The Store})。"
  4885. #. type: cindex
  4886. #: guix-git/doc/guix.texi:950
  4887. #, no-wrap
  4888. msgid "test suite"
  4889. msgstr "测试套件"
  4890. #. type: Plain text
  4891. #: guix-git/doc/guix.texi:956
  4892. 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:"
  4893. msgstr "成功执行@command{configure}和@code{make}之后,最好运行测试套件。它可以帮助查找设置和环境的错误,或者是Guix自身的bug--并且,报告测试错误是帮助改进软件的好方法。输入下面的命令以执行测试套件。"
  4894. #. type: example
  4895. #: guix-git/doc/guix.texi:959
  4896. #, no-wrap
  4897. msgid "make check\n"
  4898. msgstr "make check\n"
  4899. #. type: Plain text
  4900. #: guix-git/doc/guix.texi:966
  4901. 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."
  4902. msgstr "测试用例可以并行运行:你可以用GNU@tie{}make的@code{-j}参数来加速运行。才一台较新的机器上第一次运行可能会花几分钟,后续的运行会更快,因为为测试创建的仓库已经包含了各种缓存。"
  4903. #. type: Plain text
  4904. #: guix-git/doc/guix.texi:969
  4905. msgid "It is also possible to run a subset of the tests by defining the @code{TESTS} makefile variable as in this example:"
  4906. msgstr "你还可以通过定义makefile的@code{TESTS}变量只运行测试的一个子集:"
  4907. #. type: example
  4908. #: guix-git/doc/guix.texi:972
  4909. #, no-wrap
  4910. msgid "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  4911. msgstr "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  4912. #. type: Plain text
  4913. #: guix-git/doc/guix.texi:977
  4914. 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:"
  4915. msgstr "默认情况下,测试结果只展示到文件层级。为了看每个独立的测试用例的详情,可以像这样定义@code{SCM_LOG_DRIVER_FLAGS} makefile变量:"
  4916. #. type: example
  4917. #: guix-git/doc/guix.texi:980
  4918. #, no-wrap
  4919. msgid "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4920. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4921. #. type: Plain text
  4922. #: guix-git/doc/guix.texi:988
  4923. 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'':"
  4924. msgstr ""
  4925. #. type: example
  4926. #: guix-git/doc/guix.texi:992
  4927. #, no-wrap
  4928. msgid ""
  4929. "export SCM_LOG_DRIVER_FLAGS=\"--select=^transaction-upgrade-entry\"\n"
  4930. "make check TESTS=\"tests/packages.scm\"\n"
  4931. msgstr ""
  4932. #. type: Plain text
  4933. #: guix-git/doc/guix.texi:998
  4934. 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:"
  4935. msgstr ""
  4936. #. type: example
  4937. #: guix-git/doc/guix.texi:1001
  4938. #, fuzzy, no-wrap
  4939. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --errors-only=yes\" VERBOSE=1\n"
  4940. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4941. #. type: Plain text
  4942. #: guix-git/doc/guix.texi:1006
  4943. 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}:"
  4944. msgstr ""
  4945. #. type: example
  4946. #: guix-git/doc/guix.texi:1009
  4947. #, fuzzy, no-wrap
  4948. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --show-duration=yes\"\n"
  4949. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4950. #. type: Plain text
  4951. #: guix-git/doc/guix.texi:1013
  4952. msgid "@xref{Parallel Test Harness,,,automake,GNU Automake} for more information about the Automake Parallel Test Harness."
  4953. msgstr ""
  4954. #. type: Plain text
  4955. #: guix-git/doc/guix.texi:1018
  4956. 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."
  4957. msgstr "遇到错误时,请给@email{bug-guix@@gnu.org}发邮件,并附带@file{test-suite.log}文件。请在消息里说明使用的Guix的版本信息和依赖(@pxref{Requirements})的版本信息。"
  4958. #. type: Plain text
  4959. #: guix-git/doc/guix.texi:1022
  4960. 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:"
  4961. msgstr "Guix还附带了一个可以测试整个Guix系统实例的全系统测试套件。它只能在已经安装Guix的系统上运行:"
  4962. #. type: example
  4963. #: guix-git/doc/guix.texi:1025
  4964. #, no-wrap
  4965. msgid "make check-system\n"
  4966. msgstr "make check-system\n"
  4967. #. type: Plain text
  4968. #: guix-git/doc/guix.texi:1029
  4969. msgid "or, again, by defining @code{TESTS} to select a subset of tests to run:"
  4970. msgstr "或者,同样的,通过定义@code{TESTS}只运行测试的一个子集:"
  4971. #. type: example
  4972. #: guix-git/doc/guix.texi:1032
  4973. #, no-wrap
  4974. msgid "make check-system TESTS=\"basic mcron\"\n"
  4975. msgstr "make check-system TESTS=\"basic mcron\"\n"
  4976. #. type: Plain text
  4977. #: guix-git/doc/guix.texi:1040
  4978. 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."
  4979. msgstr "这些系统测试是在@code{(gnu tests @dots{})}模块里定义的。它们在虚拟机(VM)里运行轻量的指令。它们的计算量可能很多也可能很少,这取决于它们依赖的substitute(@pxref{Substitutes})是否已经存在。它们之中有些需要很多存储空间以保存虚拟机硬盘。"
  4980. #. type: Plain text
  4981. #: guix-git/doc/guix.texi:1043
  4982. msgid "Again in case of test failures, please send @email{bug-guix@@gnu.org} all the details."
  4983. msgstr "再重复一遍,如果遇到测试错误,请给@email{bug-guix@@gnu.org}发邮件,并附带详细的说明。"
  4984. #. type: cindex
  4985. #: guix-git/doc/guix.texi:1047
  4986. #, no-wrap
  4987. msgid "daemon"
  4988. msgstr "后台进程"
  4989. #. type: Plain text
  4990. #: guix-git/doc/guix.texi:1055
  4991. 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."
  4992. msgstr "构建软件包或运行垃圾回收器之类的操作都是由一个特殊的进程代替客户执行的,即@dfn{构建后台进程}。只有这个进程可以访问仓库和相关的数据库。因此,所有修改仓库的操作都通过这个后台进程执行。例如,@command{guix package}和@command{guix build}之类的命令行工具通过和这个后台进程通信(@i{通过}远程过程调用)来指示它该做什么。"
  4993. #. type: Plain text
  4994. #: guix-git/doc/guix.texi:1059
  4995. 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."
  4996. msgstr "接下来的几个小节介绍如何准备“构建后台进程”的环境。参考@ref{Substitutes},了解怎样允许这个后台进程下载预构建好的二进制文件。"
  4997. #. type: cindex
  4998. #: guix-git/doc/guix.texi:1069 guix-git/doc/guix.texi:1531
  4999. #, no-wrap
  5000. msgid "build environment"
  5001. msgstr "构建环境"
  5002. #. type: Plain text
  5003. #: guix-git/doc/guix.texi:1077
  5004. 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."
  5005. msgstr "在一个标准的多用户设置里,Guix和它的后台进程--@command{guix-daemon}程序--是由@code{root}用户安装的,并且@command{guix-daemon}以@code{root}用户身份运行。无特权的用户可以用Guix的工具构建软件包或访问仓库,这个后台进程会代替用户进行这些操作,以确保仓库保持一致的状态,并且允许构建好的软件包可以在不同用户间共享。"
  5006. #. type: cindex
  5007. #: guix-git/doc/guix.texi:1078
  5008. #, no-wrap
  5009. msgid "build users"
  5010. msgstr "构建用户"
  5011. #. type: Plain text
  5012. #: guix-git/doc/guix.texi:1089
  5013. 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})."
  5014. msgstr "当@command{guix-daemon}以@code{root}用户身份运行时,由于安全方面的考虑,你可能不希望软件包构建进程也以@code{root}用户身份运行。为了避免那样,我们需要创建一个@dfn{构建用户}池,以供后台进程启动的构建进程使用。这些构建用户不需要拥有shell和家目录:他们只会在后台进程为构建进程剥夺@code{root}特权时使用。拥有多个这类用户使后台进程可以以不同的UID启动不同的构建进程,这保证它们不会互相干扰--这是一个重要的功能,因为构建被视为纯函数(@pxref{Introduction})。"
  5015. #. type: Plain text
  5016. #: guix-git/doc/guix.texi:1092
  5017. msgid "On a GNU/Linux system, a build user pool may be created like this (using Bash syntax and the @code{shadow} commands):"
  5018. msgstr "在一个GNU/Linux系统上,可以这样创建一个构建用户池(用bash语法和@code{shadow}命令):"
  5019. #. type: example
  5020. #: guix-git/doc/guix.texi:1104
  5021. #, fuzzy, no-wrap
  5022. msgid ""
  5023. "# groupadd --system guixbuild\n"
  5024. "# for i in $(seq -w 1 10);\n"
  5025. " do\n"
  5026. " useradd -g guixbuild -G guixbuild \\\n"
  5027. " -d /var/empty -s $(which nologin) \\\n"
  5028. " -c \"Guix build user $i\" --system \\\n"
  5029. " guixbuilder$i;\n"
  5030. " done\n"
  5031. msgstr ""
  5032. "# groupadd --system guixbuild\n"
  5033. "# for i in `seq -w 1 10`;\n"
  5034. " do\n"
  5035. " useradd -g guixbuild -G guixbuild \\\n"
  5036. " -d /var/empty -s `which nologin` \\\n"
  5037. " -c \"Guix build user $i\" --system \\\n"
  5038. " guixbuilder$i;\n"
  5039. " done\n"
  5040. #. type: Plain text
  5041. #: guix-git/doc/guix.texi:1114
  5042. 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})."
  5043. 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})。"
  5044. #. type: Plain text
  5045. #: guix-git/doc/guix.texi:1123
  5046. 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}.}:"
  5047. 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}文件夹里}:"
  5048. #. type: example
  5049. #: guix-git/doc/guix.texi:1126 guix-git/doc/guix.texi:1524
  5050. #, no-wrap
  5051. msgid "# guix-daemon --build-users-group=guixbuild\n"
  5052. msgstr "# guix-daemon --build-users-group=guixbuild\n"
  5053. #. type: cindex
  5054. #: guix-git/doc/guix.texi:1128 guix-git/doc/guix.texi:1529
  5055. #, no-wrap
  5056. msgid "chroot"
  5057. msgstr "chroot"
  5058. #. type: Plain text
  5059. #: guix-git/doc/guix.texi:1133
  5060. 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:"
  5061. msgstr "这样,后台进程在一个chroot环境里,以一个@code{guixbuilder}用户组成员的身份启动构建进程。在GNU/Linux上,默认的,这个chroot环境仅包含这些东西:"
  5062. #. type: itemize
  5063. #: guix-git/doc/guix.texi:1141
  5064. 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.};"
  5065. msgstr "一个和主机@code{/dev}独立的@footnote{大致这样,因为虽然chroot环境里的@code{/dev}包含的文件是固定的,大部分这些文件只有在主机有对应的文件时才能创建。},最小的@code{/dev}文件夹;"
  5066. #. type: itemize
  5067. #: guix-git/doc/guix.texi:1145
  5068. msgid "the @code{/proc} directory; it only shows the processes of the container since a separate PID name space is used;"
  5069. msgstr "@code{/proc}文件夹;它只含有当前容器的进程,因为用了一个独立的进程PID命名空间;"
  5070. #. type: itemize
  5071. #: guix-git/doc/guix.texi:1149
  5072. msgid "@file{/etc/passwd} with an entry for the current user and an entry for user @file{nobody};"
  5073. msgstr "@file{/etc/passwd},仅包含当前用户和@file{nobody};"
  5074. #. type: itemize
  5075. #: guix-git/doc/guix.texi:1152
  5076. msgid "@file{/etc/group} with an entry for the user's group;"
  5077. msgstr "@file{/etc/group},包含用户的组;"
  5078. #. type: itemize
  5079. #: guix-git/doc/guix.texi:1156
  5080. msgid "@file{/etc/hosts} with an entry that maps @code{localhost} to @code{127.0.0.1};"
  5081. msgstr "@file{/etc/hosts},包含@code{localhost}映射到@code{127.0.0.1}的条目;"
  5082. #. type: itemize
  5083. #: guix-git/doc/guix.texi:1159
  5084. msgid "a writable @file{/tmp} directory."
  5085. msgstr "一个可写的@file{/tmp}文件夹。"
  5086. #. type: Plain text
  5087. #: guix-git/doc/guix.texi:1168
  5088. #, fuzzy
  5089. 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."
  5090. msgstr "你可以@i{通过}@code{TMPDIR}环境变量修改后台进程保存构建树的位置。但是,chroot里的构建树总是在@file{/tmp/guix-build-@var{名字}.drv-0},@var{名字}是derivation的名字--如@code{coreutils-8.24}。这样,@code{TMPDIR}的值就不会泄漏到构建环境里,这可以避免由构建进程读取构建树名字引起的问题。"
  5091. #. type: vindex
  5092. #: guix-git/doc/guix.texi:1169 guix-git/doc/guix.texi:3994
  5093. #, no-wrap
  5094. msgid "http_proxy"
  5095. msgstr "http_proxy"
  5096. #. type: vindex
  5097. #: guix-git/doc/guix.texi:1170 guix-git/doc/guix.texi:3995
  5098. #, fuzzy, no-wrap
  5099. msgid "https_proxy"
  5100. msgstr "http_proxy"
  5101. #. type: Plain text
  5102. #: guix-git/doc/guix.texi:1175
  5103. #, fuzzy
  5104. 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})."
  5105. msgstr "后台进程通过HTTP下载时还遵守@code{http_proxy}环境变量,无论是下载derivation(@pxref{Derivations}),还是下载substitute(@pxref{Substitutes})。"
  5106. #. type: Plain text
  5107. #: guix-git/doc/guix.texi:1183
  5108. #, fuzzy
  5109. 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."
  5110. msgstr "如果你是以无特权的用户的身份安装Guix,你仍可以运行@command{guix-daemon},只要添加@code{--disable-chroot}参数就行了。但是,构建进程不会互相隔离,也不会和系统的其它部分隔离。因此,构建进程有可能互相干扰,可以访问程序、库和系统上的其它文件--这样就很难把它看作@emph{纯}函数。"
  5111. #. type: subsection
  5112. #: guix-git/doc/guix.texi:1186
  5113. #, no-wrap
  5114. msgid "Using the Offload Facility"
  5115. msgstr "使用任务下发设施"
  5116. #. type: cindex
  5117. #: guix-git/doc/guix.texi:1188 guix-git/doc/guix.texi:1590
  5118. #, no-wrap
  5119. msgid "offloading"
  5120. msgstr "下发"
  5121. #. type: cindex
  5122. #: guix-git/doc/guix.texi:1189
  5123. #, no-wrap
  5124. msgid "build hook"
  5125. msgstr "构建钩子"
  5126. #. type: Plain text
  5127. #: guix-git/doc/guix.texi:1208
  5128. #, fuzzy
  5129. 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:"
  5130. 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复制到目标机器,然后继续构建;成功后,构建输出的结果被复制回初始的机器上。"
  5131. #. type: enumerate
  5132. #: guix-git/doc/guix.texi:1214
  5133. 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."
  5134. msgstr ""
  5135. #. type: enumerate
  5136. #: guix-git/doc/guix.texi:1218
  5137. msgid "Its relative speed, as defined via the @code{speed} field of its @code{build-machine} object."
  5138. msgstr ""
  5139. #. type: enumerate
  5140. #: guix-git/doc/guix.texi:1223
  5141. 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."
  5142. msgstr ""
  5143. #. type: enumerate
  5144. #: guix-git/doc/guix.texi:1226
  5145. msgid "Disk space availability. More than a 100 MiB must be available."
  5146. msgstr ""
  5147. #. type: Plain text
  5148. #: guix-git/doc/guix.texi:1229
  5149. msgid "The @file{/etc/guix/machines.scm} file typically looks like this:"
  5150. msgstr "@file{/etc/guix/machines.scm}文件通常是这样的:"
  5151. #. type: lisp
  5152. #: guix-git/doc/guix.texi:1237
  5153. #, fuzzy, no-wrap
  5154. msgid ""
  5155. "(list (build-machine\n"
  5156. " (name \"eightysix.example.org\")\n"
  5157. " (systems (list \"x86_64-linux\" \"i686-linux\"))\n"
  5158. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5159. " (user \"bob\")\n"
  5160. " (speed 2.)) ;incredibly fast!\n"
  5161. "\n"
  5162. msgstr ""
  5163. "(list (build-machine\n"
  5164. " (name \"eightysix.example.org\")\n"
  5165. " (system \"x86_64-linux\")\n"
  5166. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5167. " (user \"bob\")\n"
  5168. " (speed 2.)) ;非常快!\n"
  5169. "\n"
  5170. #. type: lisp
  5171. #: guix-git/doc/guix.texi:1246
  5172. #, fuzzy, no-wrap
  5173. msgid ""
  5174. " (build-machine\n"
  5175. " (name \"armeight.example.org\")\n"
  5176. " (systems (list \"aarch64-linux\"))\n"
  5177. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  5178. " (user \"alice\")\n"
  5179. " (private-key\n"
  5180. " (string-append (getenv \"HOME\")\n"
  5181. " \"/.ssh/identity-for-guix\"))))\n"
  5182. msgstr ""
  5183. " (build-machine\n"
  5184. " (name \"meeps.example.org\")\n"
  5185. " (system \"mips64el-linux\")\n"
  5186. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  5187. " (user \"alice\")\n"
  5188. " (private-key\n"
  5189. " (string-append (getenv \"HOME\")\n"
  5190. " \"/.ssh/identity-for-guix\"))))\n"
  5191. #. type: Plain text
  5192. #: guix-git/doc/guix.texi:1252
  5193. #, fuzzy
  5194. 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."
  5195. msgstr "在上面的例子里,我们指定了一个包含两个构建机器的列表,一个是@code{x86_64}架构,一个是@code{mips64el}架构。"
  5196. #. type: Plain text
  5197. #: guix-git/doc/guix.texi:1261
  5198. 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."
  5199. msgstr "事实上,这个文件--并不意外地--是一个Scheme文件,当@code{下发}钩子被启动时执行。它的返回值必须是一个包含@code{build-machine}对象的列表。虽然这个例子展示的是一个固定的列表,你可以想象,使用DNS-SD来返回一个包含从局域网内发现的构建机器的列表,@pxref{Introduction, Guile-Avahi,, guile-avahi, 在Guile Scheme程序里使用Avahi}。@code{build-machine}数据类型的详细信息如下。"
  5200. #. type: deftp
  5201. #: guix-git/doc/guix.texi:1262
  5202. #, no-wrap
  5203. msgid "{Data Type} build-machine"
  5204. msgstr "{数据类型} build-machine"
  5205. #. type: deftp
  5206. #: guix-git/doc/guix.texi:1265
  5207. msgid "This data type represents build machines to which the daemon may offload builds. The important fields are:"
  5208. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  5209. #. type: item
  5210. #: guix-git/doc/guix.texi:1268 guix-git/doc/guix.texi:7106
  5211. #: guix-git/doc/guix.texi:15140 guix-git/doc/guix.texi:15234
  5212. #: guix-git/doc/guix.texi:15475 guix-git/doc/guix.texi:17446
  5213. #: guix-git/doc/guix.texi:20728 guix-git/doc/guix.texi:23638
  5214. #: guix-git/doc/guix.texi:25027 guix-git/doc/guix.texi:25639
  5215. #: guix-git/doc/guix.texi:25992 guix-git/doc/guix.texi:26033
  5216. #: guix-git/doc/guix.texi:28191 guix-git/doc/guix.texi:30521
  5217. #: guix-git/doc/guix.texi:30541 guix-git/doc/guix.texi:33215
  5218. #: guix-git/doc/guix.texi:33232 guix-git/doc/guix.texi:33759
  5219. #: guix-git/doc/guix.texi:35533 guix-git/doc/guix.texi:35860
  5220. #, no-wrap
  5221. msgid "name"
  5222. msgstr "名字"
  5223. #. type: table
  5224. #: guix-git/doc/guix.texi:1270
  5225. msgid "The host name of the remote machine."
  5226. msgstr "远程机器的主机名。"
  5227. #. type: item
  5228. #: guix-git/doc/guix.texi:1271
  5229. #, fuzzy, no-wrap
  5230. msgid "systems"
  5231. msgstr "系统"
  5232. #. type: table
  5233. #: guix-git/doc/guix.texi:1274
  5234. #, fuzzy
  5235. msgid "The system types the remote machine supports---e.g., @code{(list \"x86_64-linux\" \"i686-linux\")}."
  5236. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  5237. #. type: code{#1}
  5238. #: guix-git/doc/guix.texi:1275 guix-git/doc/guix.texi:17456
  5239. #, no-wrap
  5240. msgid "user"
  5241. msgstr "用户"
  5242. #. type: table
  5243. #: guix-git/doc/guix.texi:1279
  5244. 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."
  5245. msgstr "通过SSH连接远程机器时使用的用户帐号。注意,SSH密钥@emph{不}能被密码保护,以支持无交互的登录。"
  5246. #. type: item
  5247. #: guix-git/doc/guix.texi:1280
  5248. #, no-wrap
  5249. msgid "host-key"
  5250. msgstr "主机公钥"
  5251. #. type: table
  5252. #: guix-git/doc/guix.texi:1284
  5253. 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:"
  5254. msgstr "这必须是机器的OpenSSH格式的SSH@dfn{公钥}。这是用来在连接机器时认证身份的。它是一个像这样的长字符串:"
  5255. #. type: example
  5256. #: guix-git/doc/guix.texi:1287
  5257. #, no-wrap
  5258. msgid "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  5259. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  5260. #. type: table
  5261. #: guix-git/doc/guix.texi:1292
  5262. 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}."
  5263. msgstr "如果这个机器正在运行OpenSSH后台进程,@command{sshd},那么主机公钥可以在@file{/etc/ssh/ssh_host_ed25519_key.pub}找到。"
  5264. #. type: table
  5265. #: guix-git/doc/guix.texi:1297
  5266. 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}):"
  5267. msgstr "如果这个机器正在运行GNU@tie{}lsh,@command{lshd},那么主机公钥可以在@file{/etc/lsh/host-key.pub}或类似的位置找到。它可以通过@command{lsh-export-key}命令转换成OpenSSH格式(@pxref{Converting keys,,, lsh, LSH用户手册}):"
  5268. #. type: example
  5269. #: guix-git/doc/guix.texi:1301
  5270. #, fuzzy, no-wrap
  5271. msgid ""
  5272. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub\n"
  5273. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  5274. msgstr ""
  5275. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub \n"
  5276. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  5277. #. type: deftp
  5278. #: guix-git/doc/guix.texi:1306
  5279. msgid "A number of optional fields may be specified:"
  5280. msgstr "一些可选的项:"
  5281. #. type: item
  5282. #: guix-git/doc/guix.texi:1309 guix-git/doc/guix.texi:35029
  5283. #, no-wrap
  5284. msgid "@code{port} (default: @code{22})"
  5285. msgstr "@code{port}(默认值:@code{22})"
  5286. #. type: table
  5287. #: guix-git/doc/guix.texi:1311
  5288. msgid "Port number of SSH server on the machine."
  5289. msgstr "机器上的SSH服务器的端口号。"
  5290. #. type: item
  5291. #: guix-git/doc/guix.texi:1312
  5292. #, no-wrap
  5293. msgid "@code{private-key} (default: @file{~root/.ssh/id_rsa})"
  5294. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  5295. #. type: table
  5296. #: guix-git/doc/guix.texi:1315
  5297. 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."
  5298. msgstr "连接机器时使用的SSH私钥,OpenSSH格式。这个私钥不能被密码保护。"
  5299. #. type: table
  5300. #: guix-git/doc/guix.texi:1318
  5301. msgid "Note that the default value is the private key @emph{of the root account}. Make sure it exists if you use the default."
  5302. msgstr "注意,默认值是@emph{root帐号}的私钥。使用默认值时请确保它存在。"
  5303. #. type: item
  5304. #: guix-git/doc/guix.texi:1319
  5305. #, no-wrap
  5306. msgid "@code{compression} (default: @code{\"zlib@@openssh.com,zlib\"})"
  5307. msgstr "@code{compression}(默认值:@code{\"zlib@@openssh.com,zlib\"})"
  5308. #. type: itemx
  5309. #: guix-git/doc/guix.texi:1320
  5310. #, no-wrap
  5311. msgid "@code{compression-level} (default: @code{3})"
  5312. msgstr "@code{compression-level}(默认值:@code{3})"
  5313. #. type: table
  5314. #: guix-git/doc/guix.texi:1322
  5315. msgid "The SSH-level compression methods and compression level requested."
  5316. msgstr "SSH压缩算法和压缩级别。"
  5317. #. type: table
  5318. #: guix-git/doc/guix.texi:1325
  5319. msgid "Note that offloading relies on SSH compression to reduce bandwidth usage when transferring files to and from build machines."
  5320. msgstr "下发任务依赖SSH压缩来减少传输文件到构建机器时使用的带宽。"
  5321. #. type: item
  5322. #: guix-git/doc/guix.texi:1326
  5323. #, no-wrap
  5324. msgid "@code{daemon-socket} (default: @code{\"/var/guix/daemon-socket/socket\"})"
  5325. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  5326. #. type: table
  5327. #: guix-git/doc/guix.texi:1329
  5328. msgid "File name of the Unix-domain socket @command{guix-daemon} is listening to on that machine."
  5329. msgstr "那台机器上的@command{guix-daemon}监听的Unix套接字文件名。"
  5330. #. type: item
  5331. #: guix-git/doc/guix.texi:1330
  5332. #, fuzzy, no-wrap
  5333. msgid "@code{overload-threshold} (default: @code{0.6})"
  5334. msgstr "@code{features} (@code{'()})"
  5335. #. type: table
  5336. #: guix-git/doc/guix.texi:1336
  5337. 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}."
  5338. msgstr ""
  5339. #. type: item
  5340. #: guix-git/doc/guix.texi:1337
  5341. #, no-wrap
  5342. msgid "@code{parallel-builds} (default: @code{1})"
  5343. msgstr "@code{parallel-builds}(默认值:@code{1})"
  5344. #. type: table
  5345. #: guix-git/doc/guix.texi:1339
  5346. msgid "The number of builds that may run in parallel on the machine."
  5347. msgstr "那台机器上可以并行运行的构建任务数量。"
  5348. #. type: item
  5349. #: guix-git/doc/guix.texi:1340
  5350. #, no-wrap
  5351. msgid "@code{speed} (default: @code{1.0})"
  5352. msgstr "@code{speed}(默认值:@code{1.0})"
  5353. #. type: table
  5354. #: guix-git/doc/guix.texi:1343
  5355. msgid "A ``relative speed factor''. The offload scheduler will tend to prefer machines with a higher speed factor."
  5356. msgstr "一个相对的速度值。下发调度器会偏好速度更快的机器。"
  5357. #. type: item
  5358. #: guix-git/doc/guix.texi:1344
  5359. #, no-wrap
  5360. msgid "@code{features} (default: @code{'()})"
  5361. msgstr "@code{features} (@code{'()})"
  5362. #. type: table
  5363. #: guix-git/doc/guix.texi:1349
  5364. 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."
  5365. msgstr "一个表示机器支持的功能的字符串列表。例如,@code{\"kvm\"}表示机器有KVM Linux模块和相关的硬件支持。Derivation可以通过名字请求需要的功能,然后被分发到匹配的机器的任务队列里。"
  5366. #. type: Plain text
  5367. #: guix-git/doc/guix.texi:1355
  5368. 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:"
  5369. msgstr "@command{guix}命令必须在构建机器的搜素路径里。你可以通过这个命令检查:"
  5370. #. type: example
  5371. #: guix-git/doc/guix.texi:1358
  5372. #, no-wrap
  5373. msgid "ssh build-machine guix repl --version\n"
  5374. msgstr "ssh build-machine guix repl --version\n"
  5375. #. type: Plain text
  5376. #: guix-git/doc/guix.texi:1365
  5377. 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}):"
  5378. msgstr "@file{machines.scm}到位后,还有一件要做的事。如上所述,下发任务时会在机器的仓库之间传输文件。为此,你需要在每台机器上生成一个密钥对,以使后台进程可以从仓库导出签名后的文件包(@pxref{Invoking guix archive}):"
  5379. #. type: example
  5380. #: guix-git/doc/guix.texi:1368 guix-git/doc/guix.texi:34957
  5381. #, no-wrap
  5382. msgid "# guix archive --generate-key\n"
  5383. msgstr "# guix archive --generate-key\n"
  5384. #. type: Plain text
  5385. #: guix-git/doc/guix.texi:1373
  5386. msgid "Each build machine must authorize the key of the master machine so that it accepts store items it receives from the master:"
  5387. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  5388. #. type: example
  5389. #: guix-git/doc/guix.texi:1376
  5390. #, no-wrap
  5391. msgid "# guix archive --authorize < master-public-key.txt\n"
  5392. msgstr "# guix archive --authorize < master-public-key.txt\n"
  5393. #. type: Plain text
  5394. #: guix-git/doc/guix.texi:1380
  5395. msgid "Likewise, the master machine must authorize the key of each build machine."
  5396. msgstr "类似的,主机器必须认证每台构建机器的公钥:"
  5397. #. type: Plain text
  5398. #: guix-git/doc/guix.texi:1386
  5399. 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."
  5400. msgstr "所有这些有关公钥的繁琐事宜都是为了表达主服务器和构建服务器之间成对的互相信任关系。具体地,当主机器从构建机器接收文件时(反之亦然),它的构建后台进程可以确保文件是原样的,没有被篡改,并且被认证的公钥签名过。"
  5401. #. type: cindex
  5402. #: guix-git/doc/guix.texi:1387
  5403. #, no-wrap
  5404. msgid "offload test"
  5405. msgstr "下发测试"
  5406. #. type: Plain text
  5407. #: guix-git/doc/guix.texi:1390
  5408. msgid "To test whether your setup is operational, run this command on the master node:"
  5409. msgstr "为了测试你的设置是否能正常工作,在主节点上运行这个命令:"
  5410. #. type: example
  5411. #: guix-git/doc/guix.texi:1393
  5412. #, no-wrap
  5413. msgid "# guix offload test\n"
  5414. msgstr "# guix offload test\n"
  5415. #. type: Plain text
  5416. #: guix-git/doc/guix.texi:1399
  5417. #, fuzzy
  5418. 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."
  5419. msgstr "这会尝试连接每台在@file{/etc/guix/machines.scm}里指定的构建机器,确保Guile和Guix模块在每台机器上都可用,尝试导出到这些机器和从这些机器导入,并且报告这个过程中遇到的任何错误。"
  5420. #. type: Plain text
  5421. #: guix-git/doc/guix.texi:1402
  5422. msgid "If you want to test a different machine file, just specify it on the command line:"
  5423. msgstr "如果你希望用别的文件测试,只需要在命令行指定它:"
  5424. #. type: example
  5425. #: guix-git/doc/guix.texi:1405
  5426. #, no-wrap
  5427. msgid "# guix offload test machines-qualif.scm\n"
  5428. msgstr "# guix offload test machines-qualif.scm\n"
  5429. #. type: Plain text
  5430. #: guix-git/doc/guix.texi:1409
  5431. msgid "Last, you can test the subset of the machines whose name matches a regular expression like this:"
  5432. msgstr "最后,你可以像这样只测试机器列表里名字匹配某个正则表达式的子集:"
  5433. #. type: example
  5434. #: guix-git/doc/guix.texi:1412
  5435. #, no-wrap
  5436. msgid "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  5437. msgstr "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  5438. #. type: cindex
  5439. #: guix-git/doc/guix.texi:1414
  5440. #, no-wrap
  5441. msgid "offload status"
  5442. msgstr "下发状态"
  5443. #. type: Plain text
  5444. #: guix-git/doc/guix.texi:1417
  5445. msgid "To display the current load of all build hosts, run this command on the main node:"
  5446. msgstr "若想展示所有构建主机的当前负载,在主节点上运行这个命令:"
  5447. #. type: example
  5448. #: guix-git/doc/guix.texi:1420
  5449. #, no-wrap
  5450. msgid "# guix offload status\n"
  5451. msgstr "# guix offload status\n"
  5452. #. type: cindex
  5453. #: guix-git/doc/guix.texi:1426
  5454. #, no-wrap
  5455. msgid "SELinux, daemon policy"
  5456. msgstr "SELinux,后台进程策略"
  5457. #. type: cindex
  5458. #: guix-git/doc/guix.texi:1427
  5459. #, no-wrap
  5460. msgid "mandatory access control, SELinux"
  5461. msgstr "强制访问控制,SELinux"
  5462. #. type: cindex
  5463. #: guix-git/doc/guix.texi:1428
  5464. #, no-wrap
  5465. msgid "security, guix-daemon"
  5466. msgstr "安全,guix-daemon"
  5467. #. type: Plain text
  5468. #: guix-git/doc/guix.texi:1434
  5469. 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."
  5470. msgstr "Guix附带一个SELinux策略文件,位置在@file{etc/guix-daemon.cil},它可以在启用SELinux的系统上安装,为Guix的文件添加标签及指定后台进程的期望行为。由于Guix系统不提供SELinux基础策略,这个后台进程策略不能在Guix系统上使用。"
  5471. #. type: subsubsection
  5472. #: guix-git/doc/guix.texi:1435
  5473. #, no-wrap
  5474. msgid "Installing the SELinux policy"
  5475. msgstr "安装SELinux策略"
  5476. #. type: cindex
  5477. #: guix-git/doc/guix.texi:1436
  5478. #, no-wrap
  5479. msgid "SELinux, policy installation"
  5480. msgstr "SELinux,安装策略"
  5481. #. type: Plain text
  5482. #: guix-git/doc/guix.texi:1438
  5483. msgid "To install the policy run this command as root:"
  5484. msgstr "用root用户执行这个命令以安装策略:"
  5485. #. type: example
  5486. #: guix-git/doc/guix.texi:1441
  5487. #, no-wrap
  5488. msgid "semodule -i etc/guix-daemon.cil\n"
  5489. msgstr "semodule -i etc/guix-daemon.cil\n"
  5490. #. type: Plain text
  5491. #: guix-git/doc/guix.texi:1445
  5492. msgid "Then relabel the file system with @code{restorecon} or by a different mechanism provided by your system."
  5493. msgstr "用@code{restorecon}或者你的系统提供的其它机制重新给文件系统打标签。"
  5494. #. type: Plain text
  5495. #: guix-git/doc/guix.texi:1450
  5496. 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:"
  5497. msgstr "一旦安装好策略,为文件系统重新打好标签,并且重启了后台进程,它应该在@code{guix_daemon_t}环境里运行。你可以用下面这个命令确认:"
  5498. #. type: example
  5499. #: guix-git/doc/guix.texi:1453
  5500. #, no-wrap
  5501. msgid "ps -Zax | grep guix-daemon\n"
  5502. msgstr "ps -Zax | grep guix-daemon\n"
  5503. #. type: Plain text
  5504. #: guix-git/doc/guix.texi:1458
  5505. 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."
  5506. msgstr "运行@code{guix build hello}之类的命令并监控SELinux日志以说服你自己SELinux允许所有的操作。"
  5507. #. type: cindex
  5508. #: guix-git/doc/guix.texi:1460
  5509. #, no-wrap
  5510. msgid "SELinux, limitations"
  5511. msgstr "SELinux,限制"
  5512. #. type: Plain text
  5513. #: guix-git/doc/guix.texi:1465
  5514. 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."
  5515. msgstr "这个策略不是完美的。这里有一个关于限制和缺陷的列表,当为Guix后台进程部署提供的SELinux策略时该认真考虑。"
  5516. #. type: enumerate
  5517. #: guix-git/doc/guix.texi:1472
  5518. #, fuzzy
  5519. 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."
  5520. msgstr "@code{guix_daemon_socket_t}没有被实际使用。所有的套接字操作都和@code{guix_daemon_socket_t}没有任何关系。存在这个没被使用的标签并不碍事,但是为这个标签定义套接字规则是更好的选择。"
  5521. #. type: enumerate
  5522. #: guix-git/doc/guix.texi:1483
  5523. 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."
  5524. msgstr "@code{guix gc}不可以任意访问指向profile的链接。由于设计的原因,符号链接的目标的文件标签和符号链接本身的文件标签是不同的。尽管$localstatedir里的所有profile都被打上了标签,指向这些profile的符号链接继承它们所在的文件夹的标签。对于普通用户的家目录里的链接,标签是@code{user_home_t}。但是对于root用户的家目录,或@file{/tmp},或HTTP服务器的工作目录等文件夹里的链接不是这样。@code{guix gc}会被阻止读取和跟随这些链接。"
  5525. #. type: enumerate
  5526. #: guix-git/doc/guix.texi:1488
  5527. 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."
  5528. msgstr "后台进程监听TCP连接的功能不再可用。这可能需要额外的规则,因为SELinux区别对待网络套接字和文件。"
  5529. #. type: enumerate
  5530. #: guix-git/doc/guix.texi:1499
  5531. 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."
  5532. 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无法阻止它访问所在域的进程可以访问的文件。"
  5533. #. type: enumerate
  5534. #: guix-git/doc/guix.texi:1504
  5535. 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."
  5536. msgstr ""
  5537. #. type: enumerate
  5538. #: guix-git/doc/guix.texi:1512
  5539. 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."
  5540. msgstr "我们可以在安装时生成一个更严格的策略,仅当前安装的@code{guix-daemon}的@emph{精确的}的文件名会被打上@code{guix_daemon_exec_t}标签,而不是用一个宽泛的正则表达式。这样的缺点是root必须在每次安装提供@code{guix-daemon}的Guix软件包时安装或升级策略。"
  5541. #. type: section
  5542. #: guix-git/doc/guix.texi:1515
  5543. #, no-wrap
  5544. msgid "Invoking @command{guix-daemon}"
  5545. msgstr "调用@command{guix-daemon}"
  5546. #. type: Plain text
  5547. #: guix-git/doc/guix.texi:1521
  5548. 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:"
  5549. msgstr "@command{guix-daemon}程序实现了所有访问仓库的功能。包括启动构建进程,运行垃圾回收器,查询构建结果,等。它通常以@code{root}身份运行:"
  5550. #. type: Plain text
  5551. #: guix-git/doc/guix.texi:1528
  5552. msgid "For details on how to set it up, @pxref{Setting Up the Daemon}."
  5553. msgstr "关于如何设置它,@pxref{Setting Up the Daemon}。"
  5554. #. type: cindex
  5555. #: guix-git/doc/guix.texi:1530
  5556. #, no-wrap
  5557. msgid "container, build environment"
  5558. msgstr "容器,构建环境"
  5559. #. type: cindex
  5560. #: guix-git/doc/guix.texi:1532 guix-git/doc/guix.texi:3060
  5561. #: guix-git/doc/guix.texi:3975 guix-git/doc/guix.texi:13447
  5562. #, no-wrap
  5563. msgid "reproducible builds"
  5564. msgstr "可复现的构建"
  5565. #. type: Plain text
  5566. #: guix-git/doc/guix.texi:1544
  5567. #, fuzzy
  5568. 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})."
  5569. 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})。"
  5570. #. type: Plain text
  5571. #: guix-git/doc/guix.texi:1550
  5572. #, fuzzy
  5573. 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}."
  5574. msgstr "当后台进程代替用户执行构建时,它在@file{/tmp}或@code{TMPDIR}环境变量指定的文件夹里创建一个文件夹。在构建期间,这个文件夹被共享给容器,然而容器内,这个构建树总是叫做@file{/tmp/guix-build-@var{name}.drv-0}。"
  5575. #. type: Plain text
  5576. #: guix-git/doc/guix.texi:1554
  5577. #, fuzzy
  5578. 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}})."
  5579. msgstr "结束时构建文件夹就被自动删除了,除非构建失败并且客户端指定了@option{--keep-failed}参数(@pxref{Invoking guix build, @option{--keep-failed}})。"
  5580. #. type: Plain text
  5581. #: guix-git/doc/guix.texi:1560
  5582. #, fuzzy
  5583. 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."
  5584. msgstr "后台进程监听连接并且为每个客户端(@command{guix}的子命令)启动的会话生成一个子进程。@command{guix processes}命令允许你获取系统上的活动的概况,浏览每个活动会话和客户端。@xref{Invoking guix processes},以了解更多信息。"
  5585. #. type: Plain text
  5586. #: guix-git/doc/guix.texi:1562
  5587. msgid "The following command-line options are supported:"
  5588. msgstr "下面这些命令行选项受支持:"
  5589. #. type: item
  5590. #: guix-git/doc/guix.texi:1564
  5591. #, no-wrap
  5592. msgid "--build-users-group=@var{group}"
  5593. msgstr "--build-users-group=@var{用户组}"
  5594. #. type: table
  5595. #: guix-git/doc/guix.texi:1567
  5596. msgid "Take users from @var{group} to run build processes (@pxref{Setting Up the Daemon, build users})."
  5597. msgstr "这会从@var{用户组}里选取用户,以运行构建进程(@pxref{Setting Up the Daemon,构建用户})。"
  5598. #. type: item
  5599. #: guix-git/doc/guix.texi:1568 guix-git/doc/guix.texi:10791
  5600. #, no-wrap
  5601. msgid "--no-substitutes"
  5602. msgstr "--no-substitutes"
  5603. #. type: cindex
  5604. #: guix-git/doc/guix.texi:1569 guix-git/doc/guix.texi:3072
  5605. #: guix-git/doc/guix.texi:3728
  5606. #, no-wrap
  5607. msgid "substitutes"
  5608. msgstr "substitutes"
  5609. #. type: table
  5610. #: guix-git/doc/guix.texi:1573 guix-git/doc/guix.texi:10795
  5611. msgid "Do not use substitutes for build products. That is, always build things locally instead of allowing downloads of pre-built binaries (@pxref{Substitutes})."
  5612. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  5613. #. type: table
  5614. #: guix-git/doc/guix.texi:1577
  5615. #, fuzzy
  5616. 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})."
  5617. msgstr "当后台进程用@code{--no-substitutes}参数启动时,客户端仍然可以显式地@i{通过}@code{set-build-options}远程过程调用来启用substitute(@pxref{The Store})。"
  5618. #. type: anchor{#1}
  5619. #: guix-git/doc/guix.texi:1579
  5620. msgid "daemon-substitute-urls"
  5621. msgstr "daemon-substitute-urls"
  5622. #. type: item
  5623. #: guix-git/doc/guix.texi:1579 guix-git/doc/guix.texi:10778
  5624. #: guix-git/doc/guix.texi:12854 guix-git/doc/guix.texi:13593
  5625. #: guix-git/doc/guix.texi:13818
  5626. #, no-wrap
  5627. msgid "--substitute-urls=@var{urls}"
  5628. msgstr "--substitute-urls=@var{urls}"
  5629. #. type: table
  5630. #: guix-git/doc/guix.texi:1583
  5631. #, fuzzy
  5632. #| 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."
  5633. msgid "Consider @var{urls} the default whitespace-separated list of substitute source URLs. When this option is omitted, @indicateurl{@value{SUBSTITUTE-URLS}} is used."
  5634. msgstr "@var{urls}是用空格分隔的substitute源URL列表。当这个选项被省略时,默认使用@indicateurl{https://@value{SUBSTITUTE-SERVER}}。"
  5635. #. type: table
  5636. #: guix-git/doc/guix.texi:1586
  5637. msgid "This means that substitutes may be downloaded from @var{urls}, as long as they are signed by a trusted signature (@pxref{Substitutes})."
  5638. msgstr "这意味着可以从@var{urls}下载substitute,只要它们的签名可信(@pxref{Substitutes})。"
  5639. #. type: table
  5640. #: guix-git/doc/guix.texi:1589
  5641. msgid "@xref{Getting Substitutes from Other Servers}, for more information on how to configure the daemon to get substitutes from other servers."
  5642. msgstr ""
  5643. #. type: item
  5644. #: guix-git/doc/guix.texi:1591 guix-git/doc/guix.texi:10814
  5645. #, fuzzy, no-wrap
  5646. msgid "--no-offload"
  5647. msgstr "下发"
  5648. #. type: table
  5649. #: guix-git/doc/guix.texi:1595 guix-git/doc/guix.texi:10818
  5650. #, fuzzy
  5651. 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."
  5652. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  5653. #. type: item
  5654. #: guix-git/doc/guix.texi:1596
  5655. #, no-wrap
  5656. msgid "--cache-failures"
  5657. msgstr "--cache-failures"
  5658. #. type: table
  5659. #: guix-git/doc/guix.texi:1598
  5660. msgid "Cache build failures. By default, only successful builds are cached."
  5661. msgstr "缓存失败的构建。默认地,只缓存成功的构建。"
  5662. #. type: table
  5663. #: guix-git/doc/guix.texi:1603
  5664. 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}."
  5665. msgstr "当这个选项被使用时,可以用@command{guix gc --list-failures}查询被标记为失败的仓库文件;@command{guix gc --clear-failures}从仓库里删除失败的缓存。@xref{Invoking guix gc}。"
  5666. #. type: item
  5667. #: guix-git/doc/guix.texi:1604 guix-git/doc/guix.texi:10844
  5668. #, no-wrap
  5669. msgid "--cores=@var{n}"
  5670. msgstr "--cores=@var{n}"
  5671. #. type: itemx
  5672. #: guix-git/doc/guix.texi:1605 guix-git/doc/guix.texi:10845
  5673. #, no-wrap
  5674. msgid "-c @var{n}"
  5675. msgstr "-c @var{n}"
  5676. #. type: table
  5677. #: guix-git/doc/guix.texi:1608
  5678. msgid "Use @var{n} CPU cores to build each derivation; @code{0} means as many as available."
  5679. msgstr "用@var{n}个CPU核来构建每个derivation;@code{0}表示有多少就用多少。"
  5680. #. type: table
  5681. #: guix-git/doc/guix.texi:1612
  5682. #, fuzzy
  5683. 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})."
  5684. msgstr "默认值是@code{0},但是它的值可以被客户端覆盖,例如@command{guix build}的@code{--cores}选项(@pxref{Invoking guix build})。"
  5685. #. type: table
  5686. #: guix-git/doc/guix.texi:1616
  5687. #, fuzzy
  5688. 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}."
  5689. msgstr "他的作用是在构建进程里设置@code{NIX_BUILD_CORES}环境变量,从而用它来利用内部的并行机制--例如,通过运行@code{make -j$NIX_BUILD_CORES}。"
  5690. #. type: item
  5691. #: guix-git/doc/guix.texi:1617 guix-git/doc/guix.texi:10849
  5692. #, no-wrap
  5693. msgid "--max-jobs=@var{n}"
  5694. msgstr "--max-jobs=@var{n}"
  5695. #. type: itemx
  5696. #: guix-git/doc/guix.texi:1618 guix-git/doc/guix.texi:10850
  5697. #, no-wrap
  5698. msgid "-M @var{n}"
  5699. msgstr "-M @var{n}"
  5700. #. type: table
  5701. #: guix-git/doc/guix.texi:1623
  5702. 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."
  5703. msgstr "最多允许@var{n}个并行的构建任务。默认值是@code{1}。设置为@code{0}表示不在本地执行构建;而是下发构建任务(@pxref{Daemon Offload Setup}),或者直接失败。"
  5704. #. type: item
  5705. #: guix-git/doc/guix.texi:1624 guix-git/doc/guix.texi:10819
  5706. #, no-wrap
  5707. msgid "--max-silent-time=@var{seconds}"
  5708. msgstr "--max-silent-time=@var{seconds}"
  5709. #. type: table
  5710. #: guix-git/doc/guix.texi:1627 guix-git/doc/guix.texi:10822
  5711. msgid "When the build or substitution process remains silent for more than @var{seconds}, terminate it and report a build failure."
  5712. msgstr "当构建或substitution进程超过@var{seconds}秒仍然保持静默,就把它结束掉并报告构建失败。"
  5713. #. type: table
  5714. #: guix-git/doc/guix.texi:1629 guix-git/doc/guix.texi:1638
  5715. msgid "The default value is @code{0}, which disables the timeout."
  5716. msgstr "默认值是@code{0},表示关闭超时。"
  5717. #. type: table
  5718. #: guix-git/doc/guix.texi:1632
  5719. #, fuzzy
  5720. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--max-silent-time}})."
  5721. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--max-silent-time}})。"
  5722. #. type: item
  5723. #: guix-git/doc/guix.texi:1633 guix-git/doc/guix.texi:10826
  5724. #, no-wrap
  5725. msgid "--timeout=@var{seconds}"
  5726. msgstr "--timeout=@var{seconds}"
  5727. #. type: table
  5728. #: guix-git/doc/guix.texi:1636 guix-git/doc/guix.texi:10829
  5729. msgid "Likewise, when the build or substitution process lasts for more than @var{seconds}, terminate it and report a build failure."
  5730. msgstr "类似地,当构建或substitution进程执行超过@var{seconds}秒,就把它结束掉并报告构建失败。"
  5731. #. type: table
  5732. #: guix-git/doc/guix.texi:1641
  5733. #, fuzzy
  5734. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--timeout}})."
  5735. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--timeout}})。"
  5736. #. type: item
  5737. #: guix-git/doc/guix.texi:1642
  5738. #, no-wrap
  5739. msgid "--rounds=@var{N}"
  5740. msgstr "--rounds=@var{N}"
  5741. #. type: table
  5742. #: guix-git/doc/guix.texi:1647
  5743. 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})."
  5744. msgstr "为每个derivation构建@var{n}次,如果连续的构建结果不是每个比特都相同就报告错误。这个设置可以被@command{guix build}之类的客户端覆盖(@pxref{Invoking guix build})。"
  5745. #. type: table
  5746. #: guix-git/doc/guix.texi:1651 guix-git/doc/guix.texi:10813
  5747. #: guix-git/doc/guix.texi:11376
  5748. 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."
  5749. msgstr "当和@option{--keep-failed}一起使用时,不同的输出保存在@file{/gnu/store/@dots{}-check}。这让检查两个结果的区别更容易。"
  5750. #. type: item
  5751. #: guix-git/doc/guix.texi:1652
  5752. #, no-wrap
  5753. msgid "--debug"
  5754. msgstr "--debug"
  5755. #. type: table
  5756. #: guix-git/doc/guix.texi:1654
  5757. msgid "Produce debugging output."
  5758. msgstr "生成调试输出。"
  5759. #. type: table
  5760. #: guix-git/doc/guix.texi:1658
  5761. #, fuzzy
  5762. 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})."
  5763. msgstr "这对调试后台进程的启动问题很有用,但是之后它可能会被客户端覆盖,例如@command{guix build}命令的@code{--verbosity}选项(@pxref{Invoking guix build})。"
  5764. #. type: item
  5765. #: guix-git/doc/guix.texi:1659
  5766. #, no-wrap
  5767. msgid "--chroot-directory=@var{dir}"
  5768. msgstr "--chroot-directory=@var{dir}"
  5769. #. type: table
  5770. #: guix-git/doc/guix.texi:1661
  5771. msgid "Add @var{dir} to the build chroot."
  5772. msgstr "把@var{dir}添加到构建的chroot。"
  5773. #. type: table
  5774. #: guix-git/doc/guix.texi:1667
  5775. 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."
  5776. msgstr "这么做可能会改变构建进程的结果--例如,如果它们使用了在@var{dir}里发现的可选依赖。因此,建议不要这么做,而是确保每个derivation声明所需的全部输入。"
  5777. #. type: item
  5778. #: guix-git/doc/guix.texi:1668
  5779. #, no-wrap
  5780. msgid "--disable-chroot"
  5781. msgstr "--disable-chroot"
  5782. #. type: table
  5783. #: guix-git/doc/guix.texi:1670
  5784. msgid "Disable chroot builds."
  5785. msgstr "关闭chroot构建。"
  5786. #. type: table
  5787. #: guix-git/doc/guix.texi:1675
  5788. 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."
  5789. msgstr "不建议使用这个选项,因为它会允许构建进程访问到没被声明的依赖。但是,当@command{guix-daemon}以没有特权的用户身份运行时,这个选项是必须的。"
  5790. #. type: item
  5791. #: guix-git/doc/guix.texi:1676
  5792. #, no-wrap
  5793. msgid "--log-compression=@var{type}"
  5794. msgstr "--log-compression=@var{type}"
  5795. #. type: table
  5796. #: guix-git/doc/guix.texi:1679
  5797. msgid "Compress build logs according to @var{type}, one of @code{gzip}, @code{bzip2}, or @code{none}."
  5798. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  5799. #. type: table
  5800. #: guix-git/doc/guix.texi:1683
  5801. #, fuzzy
  5802. 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."
  5803. msgstr "除非使用了@code{--lose-logs},所有的构建日志都保存在@var{localstatedir}里。为了节省空间,后台进程默认使用bzip2对它们进行压缩。"
  5804. #. type: item
  5805. #: guix-git/doc/guix.texi:1684
  5806. #, no-wrap
  5807. msgid "--discover[=yes|no]"
  5808. msgstr ""
  5809. #. type: table
  5810. #: guix-git/doc/guix.texi:1687 guix-git/doc/guix.texi:16251
  5811. msgid "Whether to discover substitute servers on the local network using mDNS and DNS-SD."
  5812. msgstr ""
  5813. #. type: table
  5814. #: guix-git/doc/guix.texi:1690
  5815. msgid "This feature is still experimental. However, here are a few considerations."
  5816. msgstr ""
  5817. #. type: enumerate
  5818. #: guix-git/doc/guix.texi:1694
  5819. msgid "It might be faster/less expensive than fetching from remote servers;"
  5820. msgstr ""
  5821. #. type: enumerate
  5822. #: guix-git/doc/guix.texi:1697
  5823. msgid "There are no security risks, only genuine substitutes will be used (@pxref{Substitute Authentication});"
  5824. msgstr ""
  5825. #. type: enumerate
  5826. #: guix-git/doc/guix.texi:1701
  5827. msgid "An attacker advertising @command{guix publish} on your LAN cannot serve you malicious binaries, but they can learn what software you’re installing;"
  5828. msgstr ""
  5829. #. type: enumerate
  5830. #: guix-git/doc/guix.texi:1704
  5831. msgid "Servers may serve substitute over HTTP, unencrypted, so anyone on the LAN can see what software you’re installing."
  5832. msgstr ""
  5833. #. type: table
  5834. #: guix-git/doc/guix.texi:1708
  5835. msgid "It is also possible to enable or disable substitute server discovery at run-time by running:"
  5836. msgstr ""
  5837. #. type: example
  5838. #: guix-git/doc/guix.texi:1712
  5839. #, no-wrap
  5840. msgid ""
  5841. "herd discover guix-daemon on\n"
  5842. "herd discover guix-daemon off\n"
  5843. msgstr ""
  5844. #. type: item
  5845. #: guix-git/doc/guix.texi:1714
  5846. #, no-wrap
  5847. msgid "--disable-deduplication"
  5848. msgstr "--disable-deduplication"
  5849. #. type: cindex
  5850. #: guix-git/doc/guix.texi:1715 guix-git/doc/guix.texi:4313
  5851. #, no-wrap
  5852. msgid "deduplication"
  5853. msgstr "去重"
  5854. #. type: table
  5855. #: guix-git/doc/guix.texi:1717
  5856. msgid "Disable automatic file ``deduplication'' in the store."
  5857. msgstr "关闭自动对仓库文件“去重”。"
  5858. #. type: table
  5859. #: guix-git/doc/guix.texi:1724
  5860. 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."
  5861. msgstr "默认地,添加到仓库的文件会被自动“去重”:如果新添加的文件和仓库里找到的某个文件完全相同,后台进程把这个新文件变成另一个文件的硬链接。这可以明显地减少硬盘使用,代价是构建结束后轻微地增加输入/输出负载。这个选项关闭这个优化。"
  5862. #. type: item
  5863. #: guix-git/doc/guix.texi:1725
  5864. #, no-wrap
  5865. msgid "--gc-keep-outputs[=yes|no]"
  5866. msgstr "--gc-keep-outputs[=yes|no]"
  5867. #. type: table
  5868. #: guix-git/doc/guix.texi:1728
  5869. msgid "Tell whether the garbage collector (GC) must keep outputs of live derivations."
  5870. msgstr "垃圾收集器(GC)是否必须保留存活的derivation的输出。"
  5871. #. type: cindex
  5872. #: guix-git/doc/guix.texi:1729 guix-git/doc/guix.texi:4126
  5873. #, no-wrap
  5874. msgid "GC roots"
  5875. msgstr "GC根"
  5876. #. type: cindex
  5877. #: guix-git/doc/guix.texi:1730 guix-git/doc/guix.texi:4127
  5878. #, no-wrap
  5879. msgid "garbage collector roots"
  5880. msgstr "垃圾收集的根"
  5881. #. type: table
  5882. #: guix-git/doc/guix.texi:1736
  5883. #, fuzzy
  5884. 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."
  5885. msgstr "当设置为“yes”时,GC会保留仓库里每个存活的derivation(@code{.drv}文件)的输出。默认是“no”,表示只有当从GC根可以访问时才保留derivation的输出。@xref{Invoking guix gc},了解更多关于GC根的信息。"
  5886. #. type: item
  5887. #: guix-git/doc/guix.texi:1737
  5888. #, no-wrap
  5889. msgid "--gc-keep-derivations[=yes|no]"
  5890. msgstr "--gc-keep-derivations[=yes|no]"
  5891. #. type: table
  5892. #: guix-git/doc/guix.texi:1740
  5893. msgid "Tell whether the garbage collector (GC) must keep derivations corresponding to live outputs."
  5894. msgstr "垃圾收集器(GC)是否必须保留和存活的输出相关的derivation。"
  5895. #. type: table
  5896. #: guix-git/doc/guix.texi:1746
  5897. #, fuzzy
  5898. 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."
  5899. msgstr "当设置为“yes”时(默认),只要derivation(即@code{.drv}文件)的输出至少有一个是存活的,GC就将其保留。这让用户可以追踪仓库里物品的源头。设置为“no”可以节省一点硬盘空间。"
  5900. #. type: table
  5901. #: guix-git/doc/guix.texi:1755
  5902. #, fuzzy
  5903. 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."
  5904. msgstr "这样,设置@code{--gc-keep-derivations}为“yes”使存活性从“输出”传递到“derivation”,设置@code{--gc-keep-outputs}为“yes”使存活性从“derivation”传递到“输出”。当两者都设置为“yes”时,效果是保留所有在仓库里的存活对象的构建先决条件(源代码,编译器,库,和其它构建时的工具),不管这些先决条件是否能从某个GC根访问到。这对开发者来说很方便,因为它避免了重复构建和下载。"
  5905. #. type: item
  5906. #: guix-git/doc/guix.texi:1756
  5907. #, no-wrap
  5908. msgid "--impersonate-linux-2.6"
  5909. msgstr "--impersonate-linux-2.6"
  5910. #. type: table
  5911. #: guix-git/doc/guix.texi:1759
  5912. #, fuzzy
  5913. 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."
  5914. msgstr "在基于Linux的系统上,伪装成Linux 2.6。这意味着内核的@code{uname}系统调用会把版本号报告为2.6。"
  5915. #. type: table
  5916. #: guix-git/doc/guix.texi:1762
  5917. msgid "This might be helpful to build programs that (usually wrongfully) depend on the kernel version number."
  5918. msgstr "这可能会有助于构建那些(通常是错误地)依赖内核版本号的程序。"
  5919. #. type: item
  5920. #: guix-git/doc/guix.texi:1763
  5921. #, no-wrap
  5922. msgid "--lose-logs"
  5923. msgstr "--lose-logs"
  5924. #. type: table
  5925. #: guix-git/doc/guix.texi:1766
  5926. #, fuzzy
  5927. msgid "Do not keep build logs. By default they are kept under @file{@var{localstatedir}/guix/log}."
  5928. msgstr "不保留构建日志。默认保存在@code{@var{localstatedir}/guix/log}。"
  5929. #. type: item
  5930. #: guix-git/doc/guix.texi:1767 guix-git/doc/guix.texi:4554
  5931. #: guix-git/doc/guix.texi:5833 guix-git/doc/guix.texi:6216
  5932. #: guix-git/doc/guix.texi:6616 guix-git/doc/guix.texi:11320
  5933. #: guix-git/doc/guix.texi:12881 guix-git/doc/guix.texi:13146
  5934. #: guix-git/doc/guix.texi:13823 guix-git/doc/guix.texi:33881
  5935. #: guix-git/doc/guix.texi:34699
  5936. #, no-wrap
  5937. msgid "--system=@var{system}"
  5938. msgstr "--system=@var{system}"
  5939. #. type: table
  5940. #: guix-git/doc/guix.texi:1771
  5941. 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}."
  5942. msgstr "假设@var{system}是当前的系统类型。默认值是configure时发现的架构/内核元组,如@code{x86_64-linux}。"
  5943. #. type: item
  5944. #: guix-git/doc/guix.texi:1772 guix-git/doc/guix.texi:10624
  5945. #, no-wrap
  5946. msgid "--listen=@var{endpoint}"
  5947. msgstr "--listen=@var{endpoint}"
  5948. #. type: table
  5949. #: guix-git/doc/guix.texi:1777
  5950. 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:"
  5951. msgstr ""
  5952. #. type: item
  5953. #: guix-git/doc/guix.texi:1779
  5954. #, no-wrap
  5955. msgid "--listen=/gnu/var/daemon"
  5956. msgstr ""
  5957. #. type: table
  5958. #: guix-git/doc/guix.texi:1782
  5959. msgid "Listen for connections on the @file{/gnu/var/daemon} Unix-domain socket, creating it if needed."
  5960. msgstr ""
  5961. #. type: item
  5962. #: guix-git/doc/guix.texi:1783
  5963. #, no-wrap
  5964. msgid "--listen=localhost"
  5965. msgstr ""
  5966. #. type: cindex
  5967. #: guix-git/doc/guix.texi:1784 guix-git/doc/guix.texi:9298
  5968. #, no-wrap
  5969. msgid "daemon, remote access"
  5970. msgstr ""
  5971. #. type: cindex
  5972. #: guix-git/doc/guix.texi:1785 guix-git/doc/guix.texi:9299
  5973. #, no-wrap
  5974. msgid "remote access to the daemon"
  5975. msgstr ""
  5976. #. type: cindex
  5977. #: guix-git/doc/guix.texi:1786 guix-git/doc/guix.texi:9300
  5978. #, no-wrap
  5979. msgid "daemon, cluster setup"
  5980. msgstr ""
  5981. #. type: cindex
  5982. #: guix-git/doc/guix.texi:1787 guix-git/doc/guix.texi:9301
  5983. #, no-wrap
  5984. msgid "clusters, daemon setup"
  5985. msgstr ""
  5986. #. type: table
  5987. #: guix-git/doc/guix.texi:1790
  5988. msgid "Listen for TCP connections on the network interface corresponding to @code{localhost}, on port 44146."
  5989. msgstr ""
  5990. #. type: item
  5991. #: guix-git/doc/guix.texi:1791
  5992. #, no-wrap
  5993. msgid "--listen=128.0.0.42:1234"
  5994. msgstr ""
  5995. #. type: table
  5996. #: guix-git/doc/guix.texi:1794
  5997. msgid "Listen for TCP connections on the network interface corresponding to @code{128.0.0.42}, on port 1234."
  5998. msgstr ""
  5999. #. type: table
  6000. #: guix-git/doc/guix.texi:1801
  6001. 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}})."
  6002. msgstr ""
  6003. #. type: quotation
  6004. #: guix-git/doc/guix.texi:1808
  6005. 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."
  6006. msgstr ""
  6007. #. type: table
  6008. #: guix-git/doc/guix.texi:1813
  6009. 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}."
  6010. msgstr ""
  6011. #. type: Plain text
  6012. #: guix-git/doc/guix.texi:1823
  6013. 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."
  6014. msgstr ""
  6015. #. type: anchor{#1}
  6016. #: guix-git/doc/guix.texi:1827
  6017. msgid "locales-and-locpath"
  6018. msgstr ""
  6019. #. type: cindex
  6020. #: guix-git/doc/guix.texi:1827
  6021. #, no-wrap
  6022. msgid "locales, when not on Guix System"
  6023. msgstr ""
  6024. #. type: vindex
  6025. #: guix-git/doc/guix.texi:1828 guix-git/doc/guix.texi:15459
  6026. #, no-wrap
  6027. msgid "LOCPATH"
  6028. msgstr ""
  6029. #. type: vindex
  6030. #: guix-git/doc/guix.texi:1829
  6031. #, no-wrap
  6032. msgid "GUIX_LOCPATH"
  6033. msgstr ""
  6034. #. type: Plain text
  6035. #: guix-git/doc/guix.texi:1834
  6036. 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:"
  6037. msgstr ""
  6038. #. type: example
  6039. #: guix-git/doc/guix.texi:1838
  6040. #, no-wrap
  6041. msgid ""
  6042. "$ guix install glibc-locales\n"
  6043. "$ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale\n"
  6044. msgstr ""
  6045. #. type: Plain text
  6046. #: guix-git/doc/guix.texi:1844
  6047. 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."
  6048. msgstr ""
  6049. #. type: Plain text
  6050. #: guix-git/doc/guix.texi:1848
  6051. 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:"
  6052. msgstr ""
  6053. #. type: enumerate
  6054. #: guix-git/doc/guix.texi:1855
  6055. 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."
  6056. msgstr ""
  6057. #. type: enumerate
  6058. #: guix-git/doc/guix.texi:1862
  6059. 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."
  6060. msgstr ""
  6061. #. type: Plain text
  6062. #: guix-git/doc/guix.texi:1866
  6063. msgid "This is important because the locale data format used by different libc versions may be incompatible."
  6064. msgstr ""
  6065. #. type: cindex
  6066. #: guix-git/doc/guix.texi:1869
  6067. #, no-wrap
  6068. msgid "name service switch, glibc"
  6069. msgstr ""
  6070. #. type: cindex
  6071. #: guix-git/doc/guix.texi:1870
  6072. #, no-wrap
  6073. msgid "NSS (name service switch), glibc"
  6074. msgstr ""
  6075. #. type: cindex
  6076. #: guix-git/doc/guix.texi:1871
  6077. #, no-wrap
  6078. msgid "nscd (name service caching daemon)"
  6079. msgstr ""
  6080. #. type: cindex
  6081. #: guix-git/doc/guix.texi:1872
  6082. #, no-wrap
  6083. msgid "name service caching daemon (nscd)"
  6084. msgstr ""
  6085. #. type: Plain text
  6086. #: guix-git/doc/guix.texi:1879
  6087. 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."
  6088. msgstr ""
  6089. #. type: file{#1}
  6090. #: guix-git/doc/guix.texi:1880
  6091. #, no-wrap
  6092. msgid "nsswitch.conf"
  6093. msgstr ""
  6094. #. type: Plain text
  6095. #: guix-git/doc/guix.texi:1885
  6096. 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})."
  6097. msgstr ""
  6098. #. type: cindex
  6099. #: guix-git/doc/guix.texi:1886
  6100. #, no-wrap
  6101. msgid "Network information service (NIS)"
  6102. msgstr ""
  6103. #. type: cindex
  6104. #: guix-git/doc/guix.texi:1887
  6105. #, no-wrap
  6106. msgid "NIS (Network information service)"
  6107. msgstr ""
  6108. #. type: Plain text
  6109. #: guix-git/doc/guix.texi:1896
  6110. 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})."
  6111. msgstr ""
  6112. #. type: Plain text
  6113. #: guix-git/doc/guix.texi:1906
  6114. 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)."
  6115. msgstr ""
  6116. #. type: Plain text
  6117. #: guix-git/doc/guix.texi:1911
  6118. 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."
  6119. msgstr ""
  6120. #. type: Plain text
  6121. #: guix-git/doc/guix.texi:1916
  6122. 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."
  6123. msgstr ""
  6124. #. type: subsection
  6125. #: guix-git/doc/guix.texi:1917
  6126. #, no-wrap
  6127. msgid "X11 Fonts"
  6128. msgstr ""
  6129. #. type: Plain text
  6130. #: guix-git/doc/guix.texi:1927
  6131. 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}."
  6132. msgstr ""
  6133. #. type: code{#1}
  6134. #: guix-git/doc/guix.texi:1928
  6135. #, no-wrap
  6136. msgid "fc-cache"
  6137. msgstr ""
  6138. #. type: cindex
  6139. #: guix-git/doc/guix.texi:1929
  6140. #, no-wrap
  6141. msgid "font cache"
  6142. msgstr ""
  6143. #. type: Plain text
  6144. #: guix-git/doc/guix.texi:1933
  6145. 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:"
  6146. msgstr ""
  6147. #. type: example
  6148. #: guix-git/doc/guix.texi:1937
  6149. #, no-wrap
  6150. msgid ""
  6151. "guix install fontconfig\n"
  6152. "fc-cache -rv\n"
  6153. msgstr ""
  6154. #. type: Plain text
  6155. #: guix-git/doc/guix.texi:1945
  6156. 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:"
  6157. msgstr ""
  6158. #. type: example
  6159. #: guix-git/doc/guix.texi:1948
  6160. #, no-wrap
  6161. msgid "guix install font-adobe-source-han-sans:cn\n"
  6162. msgstr ""
  6163. #. type: code{#1}
  6164. #: guix-git/doc/guix.texi:1950
  6165. #, no-wrap
  6166. msgid "xterm"
  6167. msgstr ""
  6168. #. type: Plain text
  6169. #: guix-git/doc/guix.texi:1954
  6170. 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:"
  6171. msgstr ""
  6172. #. type: example
  6173. #: guix-git/doc/guix.texi:1957
  6174. #, no-wrap
  6175. msgid "-*-dejavu sans-medium-r-normal-*-*-100-*-*-*-*-*-1\n"
  6176. msgstr ""
  6177. #. type: Plain text
  6178. #: guix-git/doc/guix.texi:1961
  6179. 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:"
  6180. msgstr ""
  6181. #. type: example
  6182. #: guix-git/doc/guix.texi:1966
  6183. #, no-wrap
  6184. msgid "xset +fp $(dirname $(readlink -f ~/.guix-profile/share/fonts/truetype/fonts.dir))\n"
  6185. msgstr ""
  6186. #. type: code{#1}
  6187. #: guix-git/doc/guix.texi:1968
  6188. #, no-wrap
  6189. msgid "xlsfonts"
  6190. msgstr ""
  6191. #. type: Plain text
  6192. #: guix-git/doc/guix.texi:1971
  6193. msgid "After that, you can run @code{xlsfonts} (from @code{xlsfonts} package) to make sure your TrueType fonts are listed there."
  6194. msgstr ""
  6195. #. type: code{#1}
  6196. #: guix-git/doc/guix.texi:1975 guix-git/doc/guix.texi:33600
  6197. #, no-wrap
  6198. msgid "nss-certs"
  6199. msgstr ""
  6200. #. type: Plain text
  6201. #: guix-git/doc/guix.texi:1978
  6202. msgid "The @code{nss-certs} package provides X.509 certificates, which allow programs to authenticate Web servers accessed over HTTPS."
  6203. msgstr ""
  6204. #. type: Plain text
  6205. #: guix-git/doc/guix.texi:1983
  6206. 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."
  6207. msgstr ""
  6208. #. type: code{#1}
  6209. #: guix-git/doc/guix.texi:1986
  6210. #, no-wrap
  6211. msgid "emacs"
  6212. msgstr ""
  6213. #. type: Plain text
  6214. #: guix-git/doc/guix.texi:1992
  6215. 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."
  6216. msgstr ""
  6217. #. type: Plain text
  6218. #: guix-git/doc/guix.texi:1999
  6219. 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})."
  6220. msgstr ""
  6221. #. type: cindex
  6222. #: guix-git/doc/guix.texi:2004
  6223. #, no-wrap
  6224. msgid "Upgrading Guix, on a foreign distro"
  6225. msgstr ""
  6226. #. type: Plain text
  6227. #: guix-git/doc/guix.texi:2007
  6228. msgid "To upgrade Guix, run:"
  6229. msgstr ""
  6230. #. type: example
  6231. #: guix-git/doc/guix.texi:2010 guix-git/doc/guix.texi:2868
  6232. #, no-wrap
  6233. msgid "guix pull\n"
  6234. msgstr "guix pull\n"
  6235. #. type: Plain text
  6236. #: guix-git/doc/guix.texi:2013
  6237. #, fuzzy
  6238. msgid "@xref{Invoking guix pull}, for more information."
  6239. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  6240. #. type: cindex
  6241. #: guix-git/doc/guix.texi:2014
  6242. #, no-wrap
  6243. msgid "upgrading Guix for the root user, on a foreign distro"
  6244. msgstr ""
  6245. #. type: cindex
  6246. #: guix-git/doc/guix.texi:2015
  6247. #, no-wrap
  6248. msgid "upgrading the Guix daemon, on a foreign distro"
  6249. msgstr ""
  6250. #. type: cindex
  6251. #: guix-git/doc/guix.texi:2016
  6252. #, no-wrap
  6253. msgid "@command{guix pull} for the root user, on a foreign distro"
  6254. msgstr ""
  6255. #. type: Plain text
  6256. #: guix-git/doc/guix.texi:2019
  6257. msgid "On a foreign distro, you can upgrade the build daemon by running:"
  6258. msgstr ""
  6259. #. type: example
  6260. #: guix-git/doc/guix.texi:2022
  6261. #, no-wrap
  6262. msgid "sudo -i guix pull\n"
  6263. msgstr "sudo -i guix pull\n"
  6264. #. type: Plain text
  6265. #: guix-git/doc/guix.texi:2027
  6266. msgid "followed by (assuming your distro uses the systemd service management tool):"
  6267. msgstr ""
  6268. #. type: example
  6269. #: guix-git/doc/guix.texi:2030
  6270. #, fuzzy, no-wrap
  6271. msgid "systemctl restart guix-daemon.service\n"
  6272. msgstr "semodule -i etc/guix-daemon.cil\n"
  6273. #. type: Plain text
  6274. #: guix-git/doc/guix.texi:2034
  6275. msgid "On Guix System, upgrading the daemon is achieved by reconfiguring the system (@pxref{Invoking guix system, @code{guix system reconfigure}})."
  6276. msgstr ""
  6277. #. type: cindex
  6278. #: guix-git/doc/guix.texi:2041
  6279. #, no-wrap
  6280. msgid "installing Guix System"
  6281. msgstr ""
  6282. #. type: cindex
  6283. #: guix-git/doc/guix.texi:2042
  6284. #, no-wrap
  6285. msgid "Guix System, installation"
  6286. msgstr ""
  6287. #. type: Plain text
  6288. #: guix-git/doc/guix.texi:2047
  6289. 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}."
  6290. msgstr ""
  6291. #. type: quotation
  6292. #: guix-git/doc/guix.texi:2056
  6293. 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."
  6294. msgstr ""
  6295. #. type: quotation
  6296. #: guix-git/doc/guix.texi:2059
  6297. msgid "Alternatively, run @command{info info} in another tty to keep the manual available."
  6298. msgstr ""
  6299. #. type: Plain text
  6300. #: guix-git/doc/guix.texi:2080
  6301. 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."
  6302. msgstr ""
  6303. #. type: Plain text
  6304. #: guix-git/doc/guix.texi:2083
  6305. msgid "Nevertheless, before you proceed with the installation, be aware of the following noteworthy limitations applicable to version @value{VERSION}:"
  6306. msgstr ""
  6307. #. type: itemize
  6308. #: guix-git/doc/guix.texi:2088
  6309. msgid "More and more system services are provided (@pxref{Services}), but some may be missing."
  6310. msgstr ""
  6311. #. type: itemize
  6312. #: guix-git/doc/guix.texi:2093
  6313. 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."
  6314. msgstr ""
  6315. #. type: Plain text
  6316. #: guix-git/doc/guix.texi:2098
  6317. 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."
  6318. msgstr ""
  6319. #. type: cindex
  6320. #: guix-git/doc/guix.texi:2103
  6321. #, no-wrap
  6322. msgid "hardware support on Guix System"
  6323. msgstr ""
  6324. #. type: Plain text
  6325. #: guix-git/doc/guix.texi:2112
  6326. 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."
  6327. msgstr ""
  6328. #. type: cindex
  6329. #: guix-git/doc/guix.texi:2113
  6330. #, no-wrap
  6331. msgid "WiFi, hardware support"
  6332. msgstr ""
  6333. #. type: Plain text
  6334. #: guix-git/doc/guix.texi:2122
  6335. 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}})."
  6336. msgstr ""
  6337. #. type: cindex
  6338. #: guix-git/doc/guix.texi:2123
  6339. #, no-wrap
  6340. msgid "RYF, Respects Your Freedom"
  6341. msgstr ""
  6342. #. type: Plain text
  6343. #: guix-git/doc/guix.texi:2129
  6344. 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."
  6345. msgstr ""
  6346. #. type: Plain text
  6347. #: guix-git/doc/guix.texi:2133
  6348. 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."
  6349. msgstr ""
  6350. #. type: Plain text
  6351. #: guix-git/doc/guix.texi:2142
  6352. 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:"
  6353. msgstr ""
  6354. #. type: table
  6355. #: guix-git/doc/guix.texi:2146
  6356. msgid "for a GNU/Linux system on Intel/AMD-compatible 64-bit CPUs;"
  6357. msgstr ""
  6358. #. type: table
  6359. #: guix-git/doc/guix.texi:2149
  6360. msgid "for a 32-bit GNU/Linux system on Intel-compatible CPUs."
  6361. msgstr ""
  6362. #. type: Plain text
  6363. #: guix-git/doc/guix.texi:2154
  6364. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the image against it, along these lines:"
  6365. msgstr ""
  6366. #. type: example
  6367. #: guix-git/doc/guix.texi:2158
  6368. #, no-wrap
  6369. msgid ""
  6370. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  6371. "$ gpg --verify guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  6372. msgstr ""
  6373. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  6374. "$ gpg --verify guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  6375. #. type: example
  6376. #: guix-git/doc/guix.texi:2166
  6377. #, no-wrap
  6378. msgid ""
  6379. "$ wget @value{OPENPGP-SIGNING-KEY-URL} \\\n"
  6380. " -qO - | gpg --import -\n"
  6381. msgstr ""
  6382. #. type: Plain text
  6383. #: guix-git/doc/guix.texi:2178
  6384. 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."
  6385. msgstr ""
  6386. #. type: unnumberedsubsec
  6387. #: guix-git/doc/guix.texi:2179
  6388. #, no-wrap
  6389. msgid "Copying to a USB Stick"
  6390. msgstr ""
  6391. #. type: Plain text
  6392. #: guix-git/doc/guix.texi:2184
  6393. 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:"
  6394. msgstr ""
  6395. #. type: example
  6396. #: guix-git/doc/guix.texi:2188
  6397. #, no-wrap
  6398. msgid ""
  6399. "dd if=guix-system-install-@value{VERSION}.x86_64-linux.iso of=/dev/sdX status=progress\n"
  6400. "sync\n"
  6401. msgstr ""
  6402. #. type: Plain text
  6403. #: guix-git/doc/guix.texi:2191
  6404. msgid "Access to @file{/dev/sdX} usually requires root privileges."
  6405. msgstr ""
  6406. #. type: unnumberedsubsec
  6407. #: guix-git/doc/guix.texi:2192
  6408. #, no-wrap
  6409. msgid "Burning on a DVD"
  6410. msgstr ""
  6411. #. type: Plain text
  6412. #: guix-git/doc/guix.texi:2197
  6413. 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:"
  6414. msgstr ""
  6415. #. type: example
  6416. #: guix-git/doc/guix.texi:2200
  6417. #, no-wrap
  6418. msgid "growisofs -dvd-compat -Z /dev/srX=guix-system-install-@value{VERSION}.x86_64-linux.iso\n"
  6419. msgstr ""
  6420. #. type: Plain text
  6421. #: guix-git/doc/guix.texi:2203
  6422. msgid "Access to @file{/dev/srX} usually requires root privileges."
  6423. msgstr ""
  6424. #. type: unnumberedsubsec
  6425. #: guix-git/doc/guix.texi:2204
  6426. #, no-wrap
  6427. msgid "Booting"
  6428. msgstr ""
  6429. #. type: Plain text
  6430. #: guix-git/doc/guix.texi:2211
  6431. 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}."
  6432. msgstr ""
  6433. #. type: Plain text
  6434. #: guix-git/doc/guix.texi:2214
  6435. msgid "@xref{Installing Guix in a VM}, if, instead, you would like to install Guix System in a virtual machine (VM)."
  6436. msgstr ""
  6437. #. type: Plain text
  6438. #: guix-git/doc/guix.texi:2224
  6439. 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})."
  6440. msgstr ""
  6441. #. type: Plain text
  6442. #: guix-git/doc/guix.texi:2232
  6443. 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."
  6444. msgstr ""
  6445. #. type: quotation
  6446. #: guix-git/doc/guix.texi:2237
  6447. msgid "Installation requires access to the Internet so that any missing dependencies of your system configuration can be downloaded. See the ``Networking'' section below."
  6448. msgstr ""
  6449. #. type: Plain text
  6450. #: guix-git/doc/guix.texi:2244
  6451. 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."
  6452. msgstr ""
  6453. #. type: Plain text
  6454. #: guix-git/doc/guix.texi:2249
  6455. 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."
  6456. msgstr ""
  6457. #. type: Plain text
  6458. #: guix-git/doc/guix.texi:2251
  6459. msgid "@image{images/installer-network,5in,, networking setup with the graphical installer}"
  6460. msgstr ""
  6461. #. type: Plain text
  6462. #: guix-git/doc/guix.texi:2256
  6463. 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."
  6464. msgstr ""
  6465. #. type: Plain text
  6466. #: guix-git/doc/guix.texi:2258
  6467. msgid "@image{images/installer-partitions,5in,, partitioning with the graphical installer}"
  6468. msgstr ""
  6469. #. type: Plain text
  6470. #: guix-git/doc/guix.texi:2261
  6471. 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."
  6472. msgstr ""
  6473. #. type: Plain text
  6474. #: guix-git/doc/guix.texi:2263
  6475. msgid "@image{images/installer-resume,5in,, resuming the installation process}"
  6476. msgstr ""
  6477. #. type: Plain text
  6478. #: guix-git/doc/guix.texi:2268
  6479. 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!"
  6480. msgstr ""
  6481. #. type: Plain text
  6482. #: guix-git/doc/guix.texi:2278
  6483. 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})."
  6484. msgstr ""
  6485. #. type: Plain text
  6486. #: guix-git/doc/guix.texi:2284
  6487. 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})."
  6488. msgstr ""
  6489. #. type: subsection
  6490. #: guix-git/doc/guix.texi:2291
  6491. #, no-wrap
  6492. msgid "Keyboard Layout, Networking, and Partitioning"
  6493. msgstr ""
  6494. #. type: Plain text
  6495. #: guix-git/doc/guix.texi:2296
  6496. 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."
  6497. msgstr ""
  6498. #. type: cindex
  6499. #: guix-git/doc/guix.texi:2299 guix-git/doc/guix.texi:15273
  6500. #, no-wrap
  6501. msgid "keyboard layout"
  6502. msgstr ""
  6503. #. type: Plain text
  6504. #: guix-git/doc/guix.texi:2303
  6505. 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:"
  6506. msgstr "安装镜像使用的是美国的 qwerty 键盘布局,如果想更改,可以使用 @command{loadkeys} 命令。 例如,用以下命令选择 Dvorak 键盘布局:"
  6507. #. type: example
  6508. #: guix-git/doc/guix.texi:2306
  6509. #, no-wrap
  6510. msgid "loadkeys dvorak\n"
  6511. msgstr ""
  6512. #. type: Plain text
  6513. #: guix-git/doc/guix.texi:2311
  6514. 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."
  6515. msgstr ""
  6516. #. type: subsubsection
  6517. #: guix-git/doc/guix.texi:2312
  6518. #, no-wrap
  6519. msgid "Networking"
  6520. msgstr ""
  6521. #. type: Plain text
  6522. #: guix-git/doc/guix.texi:2315
  6523. msgid "Run the following command to see what your network interfaces are called:"
  6524. msgstr "运行以下命令查看你的网络接口的名称:"
  6525. #. type: example
  6526. #: guix-git/doc/guix.texi:2318
  6527. #, no-wrap
  6528. msgid "ifconfig -a\n"
  6529. msgstr ""
  6530. #. type: table
  6531. #: guix-git/doc/guix.texi:2322 guix-git/doc/guix.texi:2344
  6532. msgid "@dots{} or, using the GNU/Linux-specific @command{ip} command:"
  6533. msgstr "@dots{} 或者,使用 GNU/Linux 特有的 @command{ip} 命令:"
  6534. #. type: example
  6535. #: guix-git/doc/guix.texi:2325
  6536. #, no-wrap
  6537. msgid "ip address\n"
  6538. msgstr ""
  6539. #. type: Plain text
  6540. #: guix-git/doc/guix.texi:2332
  6541. 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}."
  6542. msgstr ""
  6543. #. type: item
  6544. #: guix-git/doc/guix.texi:2334
  6545. #, no-wrap
  6546. msgid "Wired connection"
  6547. msgstr "有线连接"
  6548. #. type: table
  6549. #: guix-git/doc/guix.texi:2337
  6550. msgid "To configure a wired network run the following command, substituting @var{interface} with the name of the wired interface you want to use."
  6551. msgstr ""
  6552. #. type: example
  6553. #: guix-git/doc/guix.texi:2340
  6554. #, no-wrap
  6555. msgid "ifconfig @var{interface} up\n"
  6556. msgstr ""
  6557. #. type: example
  6558. #: guix-git/doc/guix.texi:2347
  6559. #, no-wrap
  6560. msgid "ip link set @var{interface} up\n"
  6561. msgstr ""
  6562. #. type: item
  6563. #: guix-git/doc/guix.texi:2349
  6564. #, no-wrap
  6565. msgid "Wireless connection"
  6566. msgstr "无线连接"
  6567. #. type: cindex
  6568. #: guix-git/doc/guix.texi:2350 guix-git/doc/guix.texi:16918
  6569. #, no-wrap
  6570. msgid "wireless"
  6571. msgstr ""
  6572. #. type: cindex
  6573. #: guix-git/doc/guix.texi:2351 guix-git/doc/guix.texi:16919
  6574. #, no-wrap
  6575. msgid "WiFi"
  6576. msgstr ""
  6577. #. type: table
  6578. #: guix-git/doc/guix.texi:2356
  6579. 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}:"
  6580. msgstr ""
  6581. #. type: example
  6582. #: guix-git/doc/guix.texi:2359
  6583. #, no-wrap
  6584. msgid "nano wpa_supplicant.conf\n"
  6585. msgstr ""
  6586. #. type: table
  6587. #: guix-git/doc/guix.texi:2364
  6588. 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:"
  6589. msgstr ""
  6590. #. type: example
  6591. #: guix-git/doc/guix.texi:2371
  6592. #, no-wrap
  6593. msgid ""
  6594. "network=@{\n"
  6595. " ssid=\"@var{my-ssid}\"\n"
  6596. " key_mgmt=WPA-PSK\n"
  6597. " psk=\"the network's secret passphrase\"\n"
  6598. "@}\n"
  6599. msgstr ""
  6600. #. type: table
  6601. #: guix-git/doc/guix.texi:2376
  6602. 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):"
  6603. msgstr ""
  6604. #. type: example
  6605. #: guix-git/doc/guix.texi:2379
  6606. #, no-wrap
  6607. msgid "wpa_supplicant -c wpa_supplicant.conf -i @var{interface} -B\n"
  6608. msgstr ""
  6609. #. type: table
  6610. #: guix-git/doc/guix.texi:2382
  6611. msgid "Run @command{man wpa_supplicant} for more information."
  6612. msgstr ""
  6613. #. type: cindex
  6614. #: guix-git/doc/guix.texi:2384
  6615. #, no-wrap
  6616. msgid "DHCP"
  6617. msgstr ""
  6618. #. type: Plain text
  6619. #: guix-git/doc/guix.texi:2387
  6620. 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:"
  6621. msgstr ""
  6622. #. type: example
  6623. #: guix-git/doc/guix.texi:2390
  6624. #, no-wrap
  6625. msgid "dhclient -v @var{interface}\n"
  6626. msgstr ""
  6627. #. type: Plain text
  6628. #: guix-git/doc/guix.texi:2393
  6629. msgid "Try to ping a server to see if networking is up and running:"
  6630. msgstr ""
  6631. #. type: example
  6632. #: guix-git/doc/guix.texi:2396
  6633. #, no-wrap
  6634. msgid "ping -c 3 gnu.org\n"
  6635. msgstr ""
  6636. #. type: Plain text
  6637. #: guix-git/doc/guix.texi:2400
  6638. 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."
  6639. msgstr ""
  6640. #. type: cindex
  6641. #: guix-git/doc/guix.texi:2401
  6642. #, fuzzy, no-wrap
  6643. msgid "proxy, during system installation"
  6644. msgstr "系统安装之后"
  6645. #. type: Plain text
  6646. #: guix-git/doc/guix.texi:2404
  6647. msgid "If you need HTTP and HTTPS access to go through a proxy, run the following command:"
  6648. msgstr ""
  6649. #. type: example
  6650. #: guix-git/doc/guix.texi:2407
  6651. #, no-wrap
  6652. msgid "herd set-http-proxy guix-daemon @var{URL}\n"
  6653. msgstr ""
  6654. #. type: Plain text
  6655. #: guix-git/doc/guix.texi:2412
  6656. msgid "where @var{URL} is the proxy URL, for example @code{http://example.org:8118}."
  6657. msgstr ""
  6658. #. type: cindex
  6659. #: guix-git/doc/guix.texi:2413
  6660. #, no-wrap
  6661. msgid "installing over SSH"
  6662. msgstr ""
  6663. #. type: Plain text
  6664. #: guix-git/doc/guix.texi:2416
  6665. msgid "If you want to, you can continue the installation remotely by starting an SSH server:"
  6666. msgstr ""
  6667. #. type: example
  6668. #: guix-git/doc/guix.texi:2419
  6669. #, no-wrap
  6670. msgid "herd start ssh-daemon\n"
  6671. msgstr ""
  6672. #. type: Plain text
  6673. #: guix-git/doc/guix.texi:2423
  6674. msgid "Make sure to either set a password with @command{passwd}, or configure OpenSSH public key authentication before logging in."
  6675. msgstr ""
  6676. #. type: subsubsection
  6677. #: guix-git/doc/guix.texi:2424
  6678. #, no-wrap
  6679. msgid "Disk Partitioning"
  6680. msgstr "磁盘分区"
  6681. #. type: Plain text
  6682. #: guix-git/doc/guix.texi:2428
  6683. msgid "Unless this has already been done, the next step is to partition, and then format the target partition(s)."
  6684. msgstr ""
  6685. #. type: Plain text
  6686. #: guix-git/doc/guix.texi:2433
  6687. 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:"
  6688. msgstr ""
  6689. #. type: example
  6690. #: guix-git/doc/guix.texi:2436
  6691. #, no-wrap
  6692. msgid "cfdisk\n"
  6693. msgstr ""
  6694. #. type: Plain text
  6695. #: guix-git/doc/guix.texi:2442
  6696. 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})."
  6697. msgstr ""
  6698. #. type: cindex
  6699. #: guix-git/doc/guix.texi:2443
  6700. #, no-wrap
  6701. msgid "EFI, installation"
  6702. msgstr ""
  6703. #. type: cindex
  6704. #: guix-git/doc/guix.texi:2444
  6705. #, no-wrap
  6706. msgid "UEFI, installation"
  6707. msgstr ""
  6708. #. type: cindex
  6709. #: guix-git/doc/guix.texi:2445
  6710. #, no-wrap
  6711. msgid "ESP, EFI system partition"
  6712. msgstr ""
  6713. #. type: Plain text
  6714. #: guix-git/doc/guix.texi:2449
  6715. 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}:"
  6716. msgstr ""
  6717. #. type: example
  6718. #: guix-git/doc/guix.texi:2452
  6719. #, no-wrap
  6720. msgid "parted /dev/sda set 1 esp on\n"
  6721. msgstr ""
  6722. #. type: vindex
  6723. #: guix-git/doc/guix.texi:2455 guix-git/doc/guix.texi:34019
  6724. #, no-wrap
  6725. msgid "grub-bootloader"
  6726. msgstr ""
  6727. #. type: vindex
  6728. #: guix-git/doc/guix.texi:2456 guix-git/doc/guix.texi:34013
  6729. #, no-wrap
  6730. msgid "grub-efi-bootloader"
  6731. msgstr ""
  6732. #. type: quotation
  6733. #: guix-git/doc/guix.texi:2463
  6734. 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."
  6735. msgstr ""
  6736. #. type: Plain text
  6737. #: guix-git/doc/guix.texi:2471
  6738. 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:"
  6739. msgstr ""
  6740. #. type: example
  6741. #: guix-git/doc/guix.texi:2474
  6742. #, no-wrap
  6743. msgid "mkfs.fat -F32 /dev/sda1\n"
  6744. msgstr ""
  6745. #. type: Plain text
  6746. #: guix-git/doc/guix.texi:2481
  6747. 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})."
  6748. msgstr ""
  6749. #. type: Plain text
  6750. #: guix-git/doc/guix.texi:2488
  6751. 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:"
  6752. msgstr ""
  6753. #. type: example
  6754. #: guix-git/doc/guix.texi:2491
  6755. #, no-wrap
  6756. msgid "mkfs.ext4 -L my-root /dev/sda2\n"
  6757. msgstr ""
  6758. #. type: cindex
  6759. #: guix-git/doc/guix.texi:2493 guix-git/doc/guix.texi:14169
  6760. #, no-wrap
  6761. msgid "encrypted disk"
  6762. msgstr ""
  6763. #. type: Plain text
  6764. #: guix-git/doc/guix.texi:2498
  6765. 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)."
  6766. msgstr ""
  6767. #. type: quotation
  6768. #: guix-git/doc/guix.texi:2499 guix-git/doc/guix.texi:5267
  6769. #: guix-git/doc/guix.texi:6476 guix-git/doc/guix.texi:14295
  6770. #: guix-git/doc/guix.texi:20472 guix-git/doc/guix.texi:20479
  6771. #, no-wrap
  6772. msgid "Warning"
  6773. msgstr ""
  6774. #. type: quotation
  6775. #: guix-git/doc/guix.texi:2506
  6776. msgid "Note that GRUB can unlock LUKS2 devices since version 2.06, but only supports the PBKDF2 key derivation function, which is not the default for @command{cryptsetup luksFormat}. You can check which key derivation function is being used by a device by running @command{cryptsetup luksDump @var{device}}, and looking for the PBKDF field of your keyslots."
  6777. msgstr ""
  6778. #. type: Plain text
  6779. #: guix-git/doc/guix.texi:2511
  6780. msgid "Assuming you want to store the root partition on @file{/dev/sda2}, the command sequence to format it as a LUKS2 partition would be along these lines:"
  6781. msgstr ""
  6782. #. type: example
  6783. #: guix-git/doc/guix.texi:2516
  6784. #, no-wrap
  6785. msgid ""
  6786. "cryptsetup luksFormat --type luks2 --pbkdf pbkdf2 /dev/sda2\n"
  6787. "cryptsetup open /dev/sda2 my-partition\n"
  6788. "mkfs.ext4 -L my-root /dev/mapper/my-partition\n"
  6789. msgstr ""
  6790. #. type: Plain text
  6791. #: guix-git/doc/guix.texi:2521
  6792. 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):"
  6793. msgstr ""
  6794. #. type: example
  6795. #: guix-git/doc/guix.texi:2524
  6796. #, no-wrap
  6797. msgid "mount LABEL=my-root /mnt\n"
  6798. msgstr ""
  6799. #. type: Plain text
  6800. #: guix-git/doc/guix.texi:2530
  6801. 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."
  6802. msgstr ""
  6803. #. type: Plain text
  6804. #: guix-git/doc/guix.texi:2534
  6805. msgid "Finally, if you plan to use one or more swap partitions (@pxref{Swap Space}), make sure to initialize them with @command{mkswap}. Assuming you have one swap partition on @file{/dev/sda3}, you would run:"
  6806. msgstr ""
  6807. #. type: example
  6808. #: guix-git/doc/guix.texi:2538
  6809. #, no-wrap
  6810. msgid ""
  6811. "mkswap /dev/sda3\n"
  6812. "swapon /dev/sda3\n"
  6813. msgstr ""
  6814. #. type: Plain text
  6815. #: guix-git/doc/guix.texi:2546
  6816. 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}.}:"
  6817. msgstr ""
  6818. #. type: example
  6819. #: guix-git/doc/guix.texi:2554
  6820. #, no-wrap
  6821. msgid ""
  6822. "# This is 10 GiB of swap space. Adjust \"count\" to change the size.\n"
  6823. "dd if=/dev/zero of=/mnt/swapfile bs=1MiB count=10240\n"
  6824. "# For security, make the file readable and writable only by root.\n"
  6825. "chmod 600 /mnt/swapfile\n"
  6826. "mkswap /mnt/swapfile\n"
  6827. "swapon /mnt/swapfile\n"
  6828. msgstr ""
  6829. #. type: Plain text
  6830. #: guix-git/doc/guix.texi:2559
  6831. 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."
  6832. msgstr ""
  6833. #. type: Plain text
  6834. #: guix-git/doc/guix.texi:2565
  6835. msgid "With the target partitions ready and the target root mounted on @file{/mnt}, we're ready to go. First, run:"
  6836. msgstr ""
  6837. #. type: example
  6838. #: guix-git/doc/guix.texi:2568
  6839. #, no-wrap
  6840. msgid "herd start cow-store /mnt\n"
  6841. msgstr ""
  6842. #. type: Plain text
  6843. #: guix-git/doc/guix.texi:2575
  6844. 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."
  6845. msgstr ""
  6846. #. type: Plain text
  6847. #: guix-git/doc/guix.texi:2586
  6848. 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."
  6849. msgstr ""
  6850. #. type: Plain text
  6851. #: guix-git/doc/guix.texi:2593
  6852. 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:"
  6853. msgstr ""
  6854. #. type: example
  6855. #: guix-git/doc/guix.texi:2598
  6856. #, no-wrap
  6857. msgid ""
  6858. "# mkdir /mnt/etc\n"
  6859. "# cp /etc/configuration/desktop.scm /mnt/etc/config.scm\n"
  6860. "# nano /mnt/etc/config.scm\n"
  6861. msgstr ""
  6862. #. type: Plain text
  6863. #: guix-git/doc/guix.texi:2602
  6864. msgid "You should pay attention to what your configuration file contains, and in particular:"
  6865. msgstr ""
  6866. #. type: itemize
  6867. #: guix-git/doc/guix.texi:2614
  6868. 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."
  6869. msgstr ""
  6870. #. type: itemize
  6871. #: guix-git/doc/guix.texi:2620
  6872. 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."
  6873. msgstr ""
  6874. #. type: itemize
  6875. #: guix-git/doc/guix.texi:2624
  6876. msgid "If there are encrypted or RAID partitions, make sure to add a @code{mapped-devices} field to describe them (@pxref{Mapped Devices})."
  6877. msgstr ""
  6878. #. type: Plain text
  6879. #: guix-git/doc/guix.texi:2629
  6880. 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}):"
  6881. msgstr ""
  6882. #. type: example
  6883. #: guix-git/doc/guix.texi:2632
  6884. #, no-wrap
  6885. msgid "guix system init /mnt/etc/config.scm /mnt\n"
  6886. msgstr ""
  6887. #. type: Plain text
  6888. #: guix-git/doc/guix.texi:2639
  6889. 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."
  6890. msgstr ""
  6891. #. type: Plain text
  6892. #: guix-git/doc/guix.texi:2647
  6893. 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!"
  6894. msgstr ""
  6895. #. type: Plain text
  6896. #: guix-git/doc/guix.texi:2654
  6897. msgid "Success, you've now booted into Guix System! From then on, you can update the system whenever you want by running, say:"
  6898. msgstr ""
  6899. #. type: example
  6900. #: guix-git/doc/guix.texi:2658
  6901. #, no-wrap
  6902. msgid ""
  6903. "guix pull\n"
  6904. "sudo guix system reconfigure /etc/config.scm\n"
  6905. msgstr ""
  6906. #. type: Plain text
  6907. #: guix-git/doc/guix.texi:2664
  6908. 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})."
  6909. msgstr ""
  6910. #. type: cindex
  6911. #: guix-git/doc/guix.texi:2667
  6912. #, no-wrap
  6913. msgid "sudo vs. @command{guix pull}"
  6914. msgstr ""
  6915. #. type: quotation
  6916. #: guix-git/doc/guix.texi:2671
  6917. 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{}}."
  6918. msgstr ""
  6919. #. type: quotation
  6920. #: guix-git/doc/guix.texi:2676
  6921. 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."
  6922. msgstr ""
  6923. #. type: Plain text
  6924. #: guix-git/doc/guix.texi:2681
  6925. 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!"
  6926. msgstr ""
  6927. #. type: section
  6928. #: guix-git/doc/guix.texi:2684
  6929. #, no-wrap
  6930. msgid "Installing Guix in a Virtual Machine"
  6931. msgstr ""
  6932. #. type: cindex
  6933. #: guix-git/doc/guix.texi:2686
  6934. #, no-wrap
  6935. msgid "virtual machine, Guix System installation"
  6936. msgstr ""
  6937. #. type: cindex
  6938. #: guix-git/doc/guix.texi:2687
  6939. #, no-wrap
  6940. msgid "virtual private server (VPS)"
  6941. msgstr ""
  6942. #. type: cindex
  6943. #: guix-git/doc/guix.texi:2688
  6944. #, no-wrap
  6945. msgid "VPS (virtual private server)"
  6946. msgstr ""
  6947. #. type: Plain text
  6948. #: guix-git/doc/guix.texi:2692
  6949. 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."
  6950. msgstr ""
  6951. #. type: Plain text
  6952. #: guix-git/doc/guix.texi:2695
  6953. msgid "To boot a @uref{https://qemu.org/,QEMU} VM for installing Guix System in a disk image, follow these steps:"
  6954. msgstr ""
  6955. #. type: enumerate
  6956. #: guix-git/doc/guix.texi:2700
  6957. msgid "First, retrieve and decompress the Guix system installation image as described previously (@pxref{USB Stick and DVD Installation})."
  6958. msgstr ""
  6959. #. type: enumerate
  6960. #: guix-git/doc/guix.texi:2704
  6961. msgid "Create a disk image that will hold the installed system. To make a qcow2-formatted disk image, use the @command{qemu-img} command:"
  6962. msgstr ""
  6963. #. type: example
  6964. #: guix-git/doc/guix.texi:2707
  6965. #, no-wrap
  6966. msgid "qemu-img create -f qcow2 guix-system.img 50G\n"
  6967. msgstr ""
  6968. #. type: enumerate
  6969. #: guix-git/doc/guix.texi:2711
  6970. 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."
  6971. msgstr ""
  6972. #. type: enumerate
  6973. #: guix-git/doc/guix.texi:2714
  6974. msgid "Boot the USB installation image in an VM:"
  6975. msgstr ""
  6976. #. type: example
  6977. #: guix-git/doc/guix.texi:2720
  6978. #, no-wrap
  6979. msgid ""
  6980. "qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \\\n"
  6981. " -nic user,model=virtio-net-pci -boot menu=on,order=d \\\n"
  6982. " -drive file=guix-system.img \\\n"
  6983. " -drive media=cdrom,file=guix-system-install-@value{VERSION}.@var{system}.iso\n"
  6984. msgstr ""
  6985. #. type: enumerate
  6986. #: guix-git/doc/guix.texi:2724
  6987. msgid "@code{-enable-kvm} is optional, but significantly improves performance, @pxref{Running Guix in a VM}."
  6988. msgstr ""
  6989. #. type: enumerate
  6990. #: guix-git/doc/guix.texi:2728
  6991. msgid "You're now root in the VM, proceed with the installation process. @xref{Preparing for Installation}, and follow the instructions."
  6992. msgstr ""
  6993. #. type: Plain text
  6994. #: guix-git/doc/guix.texi:2733
  6995. 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."
  6996. msgstr ""
  6997. #. type: cindex
  6998. #: guix-git/doc/guix.texi:2737
  6999. #, no-wrap
  7000. msgid "installation image"
  7001. msgstr ""
  7002. #. type: Plain text
  7003. #: guix-git/doc/guix.texi:2740
  7004. msgid "The installation image described above was built using the @command{guix system} command, specifically:"
  7005. msgstr ""
  7006. #. type: example
  7007. #: guix-git/doc/guix.texi:2743
  7008. #, no-wrap
  7009. msgid "guix system image -t iso9660 gnu/system/install.scm\n"
  7010. msgstr ""
  7011. #. type: Plain text
  7012. #: guix-git/doc/guix.texi:2748
  7013. 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."
  7014. msgstr ""
  7015. #. type: section
  7016. #: guix-git/doc/guix.texi:2749
  7017. #, no-wrap
  7018. msgid "Building the Installation Image for ARM Boards"
  7019. msgstr ""
  7020. #. type: Plain text
  7021. #: guix-git/doc/guix.texi:2753
  7022. msgid "Many ARM boards require a specific variant of the @uref{https://www.denx.de/wiki/U-Boot/, U-Boot} bootloader."
  7023. msgstr ""
  7024. #. type: Plain text
  7025. #: guix-git/doc/guix.texi:2757
  7026. 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:"
  7027. msgstr ""
  7028. #. type: example
  7029. #: guix-git/doc/guix.texi:2760
  7030. #, no-wrap
  7031. msgid "guix system image --system=armhf-linux -e '((@@ (gnu system install) os-with-u-boot) (@@ (gnu system install) installation-os) \"A20-OLinuXino-Lime2\")'\n"
  7032. msgstr ""
  7033. #. type: Plain text
  7034. #: guix-git/doc/guix.texi:2764
  7035. 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."
  7036. msgstr ""
  7037. #. type: Plain text
  7038. #: guix-git/doc/guix.texi:2774
  7039. 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."
  7040. msgstr ""
  7041. #. type: Plain text
  7042. #: guix-git/doc/guix.texi:2778
  7043. 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:"
  7044. msgstr ""
  7045. #. type: example
  7046. #: guix-git/doc/guix.texi:2781
  7047. #, no-wrap
  7048. msgid "guix search text editor\n"
  7049. msgstr ""
  7050. #. type: Plain text
  7051. #: guix-git/doc/guix.texi:2788
  7052. 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}!):"
  7053. msgstr ""
  7054. #. type: example
  7055. #: guix-git/doc/guix.texi:2791
  7056. #, fuzzy, no-wrap
  7057. msgid "guix install emacs\n"
  7058. msgstr "guix install emacs-guix\n"
  7059. #. type: cindex
  7060. #: guix-git/doc/guix.texi:2793 guix-git/doc/guix.texi:3105
  7061. #: guix-git/doc/guix.texi:3157
  7062. #, no-wrap
  7063. msgid "profile"
  7064. msgstr ""
  7065. #. type: Plain text
  7066. #: guix-git/doc/guix.texi:2801
  7067. 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)."
  7068. msgstr ""
  7069. #. type: Plain text
  7070. #: guix-git/doc/guix.texi:2804
  7071. msgid "Unless you're using Guix System, the @command{guix install} command must have printed this hint:"
  7072. msgstr ""
  7073. #. type: example
  7074. #: guix-git/doc/guix.texi:2807
  7075. #, no-wrap
  7076. msgid ""
  7077. "hint: Consider setting the necessary environment variables by running:\n"
  7078. "\n"
  7079. msgstr ""
  7080. #. type: example
  7081. #: guix-git/doc/guix.texi:2810
  7082. #, no-wrap
  7083. msgid ""
  7084. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  7085. " . \"$GUIX_PROFILE/etc/profile\"\n"
  7086. "\n"
  7087. msgstr ""
  7088. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  7089. " . \"$GUIX_PROFILE/etc/profile\"\n"
  7090. "\n"
  7091. #. type: example
  7092. #: guix-git/doc/guix.texi:2812
  7093. #, no-wrap
  7094. msgid "Alternately, see `guix package --search-paths -p \"$HOME/.guix-profile\"'.\n"
  7095. msgstr ""
  7096. #. type: Plain text
  7097. #: guix-git/doc/guix.texi:2826
  7098. 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."
  7099. msgstr ""
  7100. #. type: Plain text
  7101. #: guix-git/doc/guix.texi:2829
  7102. msgid "You can go on installing packages at your will. To list installed packages, run:"
  7103. msgstr ""
  7104. #. type: example
  7105. #: guix-git/doc/guix.texi:2832
  7106. #, fuzzy, no-wrap
  7107. msgid "guix package --list-installed\n"
  7108. msgstr "guix package --list-available\n"
  7109. #. type: Plain text
  7110. #: guix-git/doc/guix.texi:2837
  7111. 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:"
  7112. msgstr ""
  7113. #. type: example
  7114. #: guix-git/doc/guix.texi:2840
  7115. #, fuzzy, no-wrap
  7116. msgid "guix package --roll-back\n"
  7117. msgstr "guix package --list-available\n"
  7118. #. type: Plain text
  7119. #: guix-git/doc/guix.texi:2845
  7120. 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:"
  7121. msgstr ""
  7122. #. type: example
  7123. #: guix-git/doc/guix.texi:2848
  7124. #, fuzzy, no-wrap
  7125. msgid "guix package --list-generations\n"
  7126. msgstr "guix package --list-available\n"
  7127. #. type: Plain text
  7128. #: guix-git/doc/guix.texi:2851
  7129. msgid "Now you know the basics of package management!"
  7130. msgstr "现在你知道包管理的基本知识了吧!"
  7131. #. type: quotation
  7132. #: guix-git/doc/guix.texi:2852 guix-git/doc/guix.texi:2911
  7133. #, no-wrap
  7134. msgid "Going further"
  7135. msgstr ""
  7136. #. type: quotation
  7137. #: guix-git/doc/guix.texi:2860
  7138. 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."
  7139. msgstr ""
  7140. #. type: Plain text
  7141. #: guix-git/doc/guix.texi:2865
  7142. 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:"
  7143. msgstr ""
  7144. #. type: Plain text
  7145. #: guix-git/doc/guix.texi:2875
  7146. 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}:"
  7147. msgstr ""
  7148. #. type: example
  7149. #: guix-git/doc/guix.texi:2879
  7150. #, no-wrap
  7151. msgid ""
  7152. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  7153. ". \"$GUIX_PROFILE/etc/profile\"\n"
  7154. msgstr ""
  7155. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  7156. ". \"$GUIX_PROFILE/etc/profile\"\n"
  7157. #. type: Plain text
  7158. #: guix-git/doc/guix.texi:2883
  7159. msgid "You must also instruct your shell to point to this new @command{guix}:"
  7160. msgstr ""
  7161. #. type: example
  7162. #: guix-git/doc/guix.texi:2886
  7163. #, no-wrap
  7164. msgid "hash guix\n"
  7165. msgstr ""
  7166. #. type: Plain text
  7167. #: guix-git/doc/guix.texi:2890
  7168. 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:"
  7169. msgstr ""
  7170. #. type: example
  7171. #: guix-git/doc/guix.texi:2893
  7172. #, no-wrap
  7173. msgid "guix upgrade\n"
  7174. msgstr ""
  7175. #. type: Plain text
  7176. #: guix-git/doc/guix.texi:2899
  7177. 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!"
  7178. msgstr ""
  7179. #. type: Plain text
  7180. #: guix-git/doc/guix.texi:2902
  7181. msgid "You can display the exact revision of Guix you're currently using by running:"
  7182. msgstr ""
  7183. #. type: example
  7184. #: guix-git/doc/guix.texi:2905
  7185. #, no-wrap
  7186. msgid "guix describe\n"
  7187. msgstr "guix describe\n"
  7188. #. type: Plain text
  7189. #: guix-git/doc/guix.texi:2910
  7190. 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."
  7191. msgstr ""
  7192. #. type: quotation
  7193. #: guix-git/doc/guix.texi:2916
  7194. 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})."
  7195. msgstr ""
  7196. #. type: Plain text
  7197. #: guix-git/doc/guix.texi:2921
  7198. 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:"
  7199. msgstr ""
  7200. #. type: example
  7201. #: guix-git/doc/guix.texi:2924
  7202. #, no-wrap
  7203. msgid "sudo guix system reconfigure /etc/config.scm\n"
  7204. msgstr ""
  7205. #. type: Plain text
  7206. #: guix-git/doc/guix.texi:2933
  7207. 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}:"
  7208. msgstr ""
  7209. #. type: example
  7210. #: guix-git/doc/guix.texi:2936
  7211. #, no-wrap
  7212. msgid "sudo guix system roll-back\n"
  7213. msgstr ""
  7214. #. type: Plain text
  7215. #: guix-git/doc/guix.texi:2943
  7216. 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."
  7217. msgstr ""
  7218. #. type: Plain text
  7219. #: guix-git/doc/guix.texi:2945
  7220. msgid "Now you know enough to get started!"
  7221. msgstr ""
  7222. #. type: quotation
  7223. #: guix-git/doc/guix.texi:2946
  7224. #, no-wrap
  7225. msgid "Resources"
  7226. msgstr ""
  7227. #. type: quotation
  7228. #: guix-git/doc/guix.texi:2949
  7229. msgid "The rest of this manual provides a reference for all things Guix. Here are some additional resources you may find useful:"
  7230. msgstr ""
  7231. #. type: itemize
  7232. #: guix-git/doc/guix.texi:2954
  7233. msgid "@xref{Top,,, guix-cookbook, The GNU Guix Cookbook}, for a list of ``how-to'' style of recipes for a variety of applications."
  7234. msgstr ""
  7235. #. type: itemize
  7236. #: guix-git/doc/guix.texi:2959
  7237. 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."
  7238. msgstr ""
  7239. #. type: itemize
  7240. #: guix-git/doc/guix.texi:2964
  7241. 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."
  7242. msgstr ""
  7243. #. type: itemize
  7244. #: guix-git/doc/guix.texi:2968
  7245. msgid "@xref{Documentation}, to learn how to access documentation on your computer."
  7246. msgstr ""
  7247. #. type: quotation
  7248. #: guix-git/doc/guix.texi:2971
  7249. msgid "We hope you will enjoy Guix as much as the community enjoys building it!"
  7250. msgstr ""
  7251. #. type: Plain text
  7252. #: guix-git/doc/guix.texi:2982
  7253. 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."
  7254. msgstr ""
  7255. #. type: Plain text
  7256. #: guix-git/doc/guix.texi:2990
  7257. 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):"
  7258. msgstr ""
  7259. #. type: example
  7260. #: guix-git/doc/guix.texi:2993
  7261. #, no-wrap
  7262. msgid "guix install emacs-guix\n"
  7263. msgstr "guix install emacs-guix\n"
  7264. #. type: Plain text
  7265. #: guix-git/doc/guix.texi:3014
  7266. 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."
  7267. msgstr ""
  7268. #. type: Plain text
  7269. #: guix-git/doc/guix.texi:3018
  7270. 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."
  7271. msgstr ""
  7272. #. type: Plain text
  7273. #: guix-git/doc/guix.texi:3023
  7274. 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}."
  7275. msgstr ""
  7276. #. type: Plain text
  7277. #: guix-git/doc/guix.texi:3031
  7278. 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."
  7279. msgstr ""
  7280. #. type: Plain text
  7281. #: guix-git/doc/guix.texi:3035
  7282. 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}."
  7283. msgstr ""
  7284. #. type: cindex
  7285. #: guix-git/doc/guix.texi:3036 guix-git/doc/guix.texi:3119
  7286. #, no-wrap
  7287. msgid "transactions"
  7288. msgstr ""
  7289. #. type: Plain text
  7290. #: guix-git/doc/guix.texi:3043
  7291. 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."
  7292. msgstr ""
  7293. #. type: Plain text
  7294. #: guix-git/doc/guix.texi:3051
  7295. 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})."
  7296. msgstr ""
  7297. #. type: Plain text
  7298. #: guix-git/doc/guix.texi:3058
  7299. 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."
  7300. msgstr ""
  7301. #. type: Plain text
  7302. #: guix-git/doc/guix.texi:3071
  7303. 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})."
  7304. msgstr ""
  7305. #. type: Plain text
  7306. #: guix-git/doc/guix.texi:3082
  7307. 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})."
  7308. msgstr ""
  7309. #. type: Plain text
  7310. #: guix-git/doc/guix.texi:3088
  7311. msgid "Control over the build environment is a feature that is also useful for developers. The @command{guix shell} command allows developers of a package to quickly set up the right development environment for their package, without having to manually install the dependencies of the package into their profile (@pxref{Invoking guix shell})."
  7312. msgstr ""
  7313. #. type: cindex
  7314. #: guix-git/doc/guix.texi:3089
  7315. #, no-wrap
  7316. msgid "replication, of software environments"
  7317. msgstr ""
  7318. #. type: cindex
  7319. #: guix-git/doc/guix.texi:3090
  7320. #, no-wrap
  7321. msgid "provenance tracking, of software artifacts"
  7322. msgstr ""
  7323. #. type: Plain text
  7324. #: guix-git/doc/guix.texi:3097
  7325. 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."
  7326. msgstr ""
  7327. #. type: section
  7328. #: guix-git/doc/guix.texi:3099
  7329. #, no-wrap
  7330. msgid "Invoking @command{guix package}"
  7331. msgstr ""
  7332. #. type: cindex
  7333. #: guix-git/doc/guix.texi:3101
  7334. #, no-wrap
  7335. msgid "installing packages"
  7336. msgstr ""
  7337. #. type: cindex
  7338. #: guix-git/doc/guix.texi:3102
  7339. #, no-wrap
  7340. msgid "removing packages"
  7341. msgstr ""
  7342. #. type: cindex
  7343. #: guix-git/doc/guix.texi:3103
  7344. #, no-wrap
  7345. msgid "package installation"
  7346. msgstr ""
  7347. #. type: cindex
  7348. #: guix-git/doc/guix.texi:3104
  7349. #, no-wrap
  7350. msgid "package removal"
  7351. msgstr ""
  7352. #. type: Plain text
  7353. #: guix-git/doc/guix.texi:3114
  7354. 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:"
  7355. msgstr ""
  7356. #. type: example
  7357. #: guix-git/doc/guix.texi:3117
  7358. #, no-wrap
  7359. msgid "guix package @var{options}\n"
  7360. msgstr ""
  7361. #. type: Plain text
  7362. #: guix-git/doc/guix.texi:3124
  7363. 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."
  7364. msgstr ""
  7365. #. type: Plain text
  7366. #: guix-git/doc/guix.texi:3127
  7367. msgid "For example, to remove @code{lua} and install @code{guile} and @code{guile-cairo} in a single transaction:"
  7368. msgstr ""
  7369. #. type: example
  7370. #: guix-git/doc/guix.texi:3130
  7371. #, no-wrap
  7372. msgid "guix package -r lua -i guile guile-cairo\n"
  7373. msgstr ""
  7374. #. type: cindex
  7375. #: guix-git/doc/guix.texi:3132
  7376. #, no-wrap
  7377. msgid "aliases, for @command{guix package}"
  7378. msgstr ""
  7379. #. type: Plain text
  7380. #: guix-git/doc/guix.texi:3134
  7381. msgid "For your convenience, we also provide the following aliases:"
  7382. msgstr ""
  7383. #. type: itemize
  7384. #: guix-git/doc/guix.texi:3138
  7385. msgid "@command{guix search} is an alias for @command{guix package -s},"
  7386. msgstr ""
  7387. #. type: itemize
  7388. #: guix-git/doc/guix.texi:3140
  7389. msgid "@command{guix install} is an alias for @command{guix package -i},"
  7390. msgstr ""
  7391. #. type: itemize
  7392. #: guix-git/doc/guix.texi:3142
  7393. msgid "@command{guix remove} is an alias for @command{guix package -r},"
  7394. msgstr ""
  7395. #. type: itemize
  7396. #: guix-git/doc/guix.texi:3144
  7397. msgid "@command{guix upgrade} is an alias for @command{guix package -u},"
  7398. msgstr ""
  7399. #. type: itemize
  7400. #: guix-git/doc/guix.texi:3146
  7401. msgid "and @command{guix show} is an alias for @command{guix package --show=}."
  7402. msgstr ""
  7403. #. type: Plain text
  7404. #: guix-git/doc/guix.texi:3151
  7405. 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."
  7406. msgstr ""
  7407. #. type: Plain text
  7408. #: guix-git/doc/guix.texi:3156
  7409. 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}})."
  7410. msgstr ""
  7411. #. type: Plain text
  7412. #: guix-git/doc/guix.texi:3163
  7413. 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."
  7414. msgstr ""
  7415. #. type: cindex
  7416. #: guix-git/doc/guix.texi:3163 guix-git/doc/guix.texi:3407
  7417. #, no-wrap
  7418. msgid "search paths"
  7419. msgstr ""
  7420. #. type: Plain text
  7421. #: guix-git/doc/guix.texi:3168
  7422. 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:"
  7423. msgstr ""
  7424. #. type: example
  7425. #: guix-git/doc/guix.texi:3172
  7426. #, no-wrap
  7427. msgid ""
  7428. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  7429. "source \"$GUIX_PROFILE/etc/profile\"\n"
  7430. msgstr ""
  7431. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  7432. "source \"$GUIX_PROFILE/etc/profile\"\n"
  7433. #. type: Plain text
  7434. #: guix-git/doc/guix.texi:3183
  7435. 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}."
  7436. msgstr ""
  7437. #. type: Plain text
  7438. #: guix-git/doc/guix.texi:3185
  7439. msgid "The @var{options} can be among the following:"
  7440. msgstr ""
  7441. #. type: item
  7442. #: guix-git/doc/guix.texi:3188
  7443. #, no-wrap
  7444. msgid "--install=@var{package} @dots{}"
  7445. msgstr ""
  7446. #. type: itemx
  7447. #: guix-git/doc/guix.texi:3189
  7448. #, no-wrap
  7449. msgid "-i @var{package} @dots{}"
  7450. msgstr ""
  7451. #. type: table
  7452. #: guix-git/doc/guix.texi:3191
  7453. msgid "Install the specified @var{package}s."
  7454. msgstr ""
  7455. #. type: table
  7456. #: guix-git/doc/guix.texi:3196
  7457. 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)."
  7458. msgstr ""
  7459. #. type: table
  7460. #: guix-git/doc/guix.texi:3204
  7461. 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})."
  7462. msgstr ""
  7463. #. type: cindex
  7464. #: guix-git/doc/guix.texi:3205
  7465. #, no-wrap
  7466. msgid "propagated inputs"
  7467. msgstr ""
  7468. #. type: table
  7469. #: guix-git/doc/guix.texi:3211
  7470. 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)."
  7471. msgstr ""
  7472. #. type: anchor{#1}
  7473. #: guix-git/doc/guix.texi:3218
  7474. msgid "package-cmd-propagated-inputs"
  7475. msgstr ""
  7476. #. type: table
  7477. #: guix-git/doc/guix.texi:3218
  7478. 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."
  7479. msgstr ""
  7480. #. type: table
  7481. #: guix-git/doc/guix.texi:3223
  7482. 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."
  7483. msgstr ""
  7484. #. type: item
  7485. #: guix-git/doc/guix.texi:3224
  7486. #, no-wrap
  7487. msgid "--install-from-expression=@var{exp}"
  7488. msgstr ""
  7489. #. type: itemx
  7490. #: guix-git/doc/guix.texi:3225
  7491. #, no-wrap
  7492. msgid "-e @var{exp}"
  7493. msgstr ""
  7494. #. type: table
  7495. #: guix-git/doc/guix.texi:3227
  7496. msgid "Install the package @var{exp} evaluates to."
  7497. msgstr ""
  7498. #. type: table
  7499. #: guix-git/doc/guix.texi:3232
  7500. 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)}."
  7501. msgstr ""
  7502. #. type: table
  7503. #: guix-git/doc/guix.texi:3236
  7504. 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."
  7505. msgstr ""
  7506. #. type: item
  7507. #: guix-git/doc/guix.texi:3237
  7508. #, no-wrap
  7509. msgid "--install-from-file=@var{file}"
  7510. msgstr ""
  7511. #. type: itemx
  7512. #: guix-git/doc/guix.texi:3238 guix-git/doc/guix.texi:5768
  7513. #: guix-git/doc/guix.texi:11211
  7514. #, no-wrap
  7515. msgid "-f @var{file}"
  7516. msgstr ""
  7517. #. type: table
  7518. #: guix-git/doc/guix.texi:3240
  7519. msgid "Install the package that the code within @var{file} evaluates to."
  7520. msgstr ""
  7521. #. type: table
  7522. #: guix-git/doc/guix.texi:3243 guix-git/doc/guix.texi:5774
  7523. #: guix-git/doc/guix.texi:6149
  7524. msgid "As an example, @var{file} might contain a definition like this (@pxref{Defining Packages}):"
  7525. msgstr ""
  7526. #. type: include
  7527. #: guix-git/doc/guix.texi:3245 guix-git/doc/guix.texi:11219
  7528. #, no-wrap
  7529. msgid "package-hello.scm"
  7530. msgstr ""
  7531. #. type: table
  7532. #: guix-git/doc/guix.texi:3252
  7533. msgid "Developers may find it useful to include such a @file{guix.scm} file in the root of their project source tree that can be used to test development snapshots and create reproducible development environments (@pxref{Invoking guix shell})."
  7534. msgstr ""
  7535. #. type: table
  7536. #: guix-git/doc/guix.texi:3257
  7537. 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}:"
  7538. msgstr ""
  7539. #. type: example
  7540. #: guix-git/doc/guix.texi:3260 guix-git/doc/guix.texi:11229
  7541. #, no-wrap
  7542. msgid "@verbatiminclude package-hello.json\n"
  7543. msgstr ""
  7544. #. type: item
  7545. #: guix-git/doc/guix.texi:3262
  7546. #, no-wrap
  7547. msgid "--remove=@var{package} @dots{}"
  7548. msgstr ""
  7549. #. type: itemx
  7550. #: guix-git/doc/guix.texi:3263
  7551. #, no-wrap
  7552. msgid "-r @var{package} @dots{}"
  7553. msgstr ""
  7554. #. type: table
  7555. #: guix-git/doc/guix.texi:3265
  7556. msgid "Remove the specified @var{package}s."
  7557. msgstr ""
  7558. #. type: table
  7559. #: guix-git/doc/guix.texi:3270
  7560. 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}."
  7561. msgstr ""
  7562. #. type: item
  7563. #: guix-git/doc/guix.texi:3271
  7564. #, no-wrap
  7565. msgid "--upgrade[=@var{regexp} @dots{}]"
  7566. msgstr ""
  7567. #. type: itemx
  7568. #: guix-git/doc/guix.texi:3272
  7569. #, no-wrap
  7570. msgid "-u [@var{regexp} @dots{}]"
  7571. msgstr ""
  7572. #. type: cindex
  7573. #: guix-git/doc/guix.texi:3273
  7574. #, no-wrap
  7575. msgid "upgrading packages"
  7576. msgstr ""
  7577. #. type: table
  7578. #: guix-git/doc/guix.texi:3277
  7579. 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."
  7580. msgstr ""
  7581. #. type: table
  7582. #: guix-git/doc/guix.texi:3282
  7583. 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})."
  7584. msgstr ""
  7585. #. type: cindex
  7586. #: guix-git/doc/guix.texi:3283
  7587. #, fuzzy, no-wrap
  7588. msgid "package transformations, upgrades"
  7589. msgstr "软件包变换选项。"
  7590. #. type: table
  7591. #: guix-git/doc/guix.texi:3288
  7592. 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:"
  7593. msgstr ""
  7594. #. type: example
  7595. #: guix-git/doc/guix.texi:3291
  7596. #, no-wrap
  7597. msgid "guix install emacs-next --with-branch=emacs-next=master\n"
  7598. msgstr ""
  7599. #. type: table
  7600. #: guix-git/doc/guix.texi:3296
  7601. 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."
  7602. msgstr ""
  7603. #. type: table
  7604. #: guix-git/doc/guix.texi:3301
  7605. 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:"
  7606. msgstr ""
  7607. #. type: example
  7608. #: guix-git/doc/guix.texi:3304
  7609. #, fuzzy, no-wrap
  7610. msgid "guix install @var{package}\n"
  7611. msgstr "guix install emacs-guix\n"
  7612. #. type: item
  7613. #: guix-git/doc/guix.texi:3306
  7614. #, no-wrap
  7615. msgid "--do-not-upgrade[=@var{regexp} @dots{}]"
  7616. msgstr ""
  7617. #. type: table
  7618. #: guix-git/doc/guix.texi:3311
  7619. 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'':"
  7620. msgstr ""
  7621. #. type: example
  7622. #: guix-git/doc/guix.texi:3314
  7623. #, no-wrap
  7624. msgid "$ guix package --upgrade . --do-not-upgrade emacs\n"
  7625. msgstr ""
  7626. #. type: anchor{#1}
  7627. #: guix-git/doc/guix.texi:3316
  7628. #, no-wrap
  7629. msgid "profile-manifest"
  7630. msgstr ""
  7631. #. type: item
  7632. #: guix-git/doc/guix.texi:3316 guix-git/doc/guix.texi:5786
  7633. #: guix-git/doc/guix.texi:6154 guix-git/doc/guix.texi:6602
  7634. #: guix-git/doc/guix.texi:12332 guix-git/doc/guix.texi:13829
  7635. #, no-wrap
  7636. msgid "--manifest=@var{file}"
  7637. msgstr ""
  7638. #. type: itemx
  7639. #: guix-git/doc/guix.texi:3317 guix-git/doc/guix.texi:5787
  7640. #: guix-git/doc/guix.texi:6155 guix-git/doc/guix.texi:6603
  7641. #: guix-git/doc/guix.texi:12333
  7642. #, no-wrap
  7643. msgid "-m @var{file}"
  7644. msgstr ""
  7645. #. type: cindex
  7646. #: guix-git/doc/guix.texi:3318
  7647. #, no-wrap
  7648. msgid "profile declaration"
  7649. msgstr ""
  7650. #. type: cindex
  7651. #: guix-git/doc/guix.texi:3319
  7652. #, no-wrap
  7653. msgid "profile manifest"
  7654. msgstr ""
  7655. #. type: table
  7656. #: guix-git/doc/guix.texi:3323
  7657. 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."
  7658. msgstr ""
  7659. #. type: table
  7660. #: guix-git/doc/guix.texi:3329
  7661. 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."
  7662. msgstr ""
  7663. #. type: table
  7664. #: guix-git/doc/guix.texi:3333
  7665. msgid "@var{file} must return a @dfn{manifest} object, which is roughly a list of packages:"
  7666. msgstr ""
  7667. #. type: findex
  7668. #: guix-git/doc/guix.texi:3334
  7669. #, no-wrap
  7670. msgid "packages->manifest"
  7671. msgstr ""
  7672. #. type: lisp
  7673. #: guix-git/doc/guix.texi:3337
  7674. #, no-wrap
  7675. msgid ""
  7676. "(use-package-modules guile emacs)\n"
  7677. "\n"
  7678. msgstr ""
  7679. #. type: lisp
  7680. #: guix-git/doc/guix.texi:3343
  7681. #, no-wrap
  7682. msgid ""
  7683. "(packages->manifest\n"
  7684. " (list emacs\n"
  7685. " guile-2.0\n"
  7686. " ;; Use a specific package output.\n"
  7687. " (list guile-2.0 \"debug\")))\n"
  7688. msgstr ""
  7689. #. type: findex
  7690. #: guix-git/doc/guix.texi:3345
  7691. #, no-wrap
  7692. msgid "specifications->manifest"
  7693. msgstr ""
  7694. #. type: table
  7695. #: guix-git/doc/guix.texi:3352
  7696. 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:"
  7697. msgstr ""
  7698. #. type: lisp
  7699. #: guix-git/doc/guix.texi:3356
  7700. #, no-wrap
  7701. msgid ""
  7702. "(specifications->manifest\n"
  7703. " '(\"emacs\" \"guile@@2.2\" \"guile@@2.2:debug\"))\n"
  7704. msgstr ""
  7705. #. type: findex
  7706. #: guix-git/doc/guix.texi:3358
  7707. #, no-wrap
  7708. msgid "package->development-manifest"
  7709. msgstr ""
  7710. #. type: table
  7711. #: guix-git/doc/guix.texi:3361
  7712. msgid "You might also want to create a manifest for all the dependencies of a package, rather than the package itself:"
  7713. msgstr ""
  7714. #. type: lisp
  7715. #: guix-git/doc/guix.texi:3364
  7716. #, no-wrap
  7717. msgid "(package->development-manifest (specification->package \"emacs\"))\n"
  7718. msgstr ""
  7719. #. type: table
  7720. #: guix-git/doc/guix.texi:3368
  7721. msgid "The example above gives you all the software required to develop Emacs, similar to what @command{guix environment emacs} provides."
  7722. msgstr ""
  7723. #. type: table
  7724. #: guix-git/doc/guix.texi:3371
  7725. msgid "@xref{export-manifest, @option{--export-manifest}}, to learn how to obtain a manifest file from an existing profile."
  7726. msgstr ""
  7727. #. type: item
  7728. #: guix-git/doc/guix.texi:3372 guix-git/doc/guix.texi:4479
  7729. #, no-wrap
  7730. msgid "--roll-back"
  7731. msgstr ""
  7732. #. type: cindex
  7733. #: guix-git/doc/guix.texi:3373 guix-git/doc/guix.texi:4480
  7734. #: guix-git/doc/guix.texi:34445 guix-git/doc/guix.texi:36709
  7735. #, no-wrap
  7736. msgid "rolling back"
  7737. msgstr ""
  7738. #. type: cindex
  7739. #: guix-git/doc/guix.texi:3374 guix-git/doc/guix.texi:4481
  7740. #, no-wrap
  7741. msgid "undoing transactions"
  7742. msgstr ""
  7743. #. type: cindex
  7744. #: guix-git/doc/guix.texi:3375 guix-git/doc/guix.texi:4482
  7745. #, no-wrap
  7746. msgid "transactions, undoing"
  7747. msgstr ""
  7748. #. type: table
  7749. #: guix-git/doc/guix.texi:3378
  7750. msgid "Roll back to the previous @dfn{generation} of the profile---i.e., undo the last transaction."
  7751. msgstr ""
  7752. #. type: table
  7753. #: guix-git/doc/guix.texi:3381
  7754. msgid "When combined with options such as @option{--install}, roll back occurs before any other actions."
  7755. msgstr ""
  7756. #. type: table
  7757. #: guix-git/doc/guix.texi:3385
  7758. 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."
  7759. msgstr ""
  7760. #. type: table
  7761. #: guix-git/doc/guix.texi:3389
  7762. 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."
  7763. msgstr ""
  7764. #. type: item
  7765. #: guix-git/doc/guix.texi:3390 guix-git/doc/guix.texi:4486
  7766. #, no-wrap
  7767. msgid "--switch-generation=@var{pattern}"
  7768. msgstr ""
  7769. #. type: itemx
  7770. #: guix-git/doc/guix.texi:3391 guix-git/doc/guix.texi:4487
  7771. #, no-wrap
  7772. msgid "-S @var{pattern}"
  7773. msgstr ""
  7774. #. type: cindex
  7775. #: guix-git/doc/guix.texi:3392 guix-git/doc/guix.texi:3622
  7776. #: guix-git/doc/guix.texi:4488 guix-git/doc/guix.texi:34403
  7777. #, no-wrap
  7778. msgid "generations"
  7779. msgstr ""
  7780. #. type: table
  7781. #: guix-git/doc/guix.texi:3394 guix-git/doc/guix.texi:4490
  7782. msgid "Switch to a particular generation defined by @var{pattern}."
  7783. msgstr ""
  7784. #. type: table
  7785. #: guix-git/doc/guix.texi:3400 guix-git/doc/guix.texi:4496
  7786. 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}."
  7787. msgstr ""
  7788. #. type: table
  7789. #: guix-git/doc/guix.texi:3405
  7790. 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."
  7791. msgstr ""
  7792. #. type: item
  7793. #: guix-git/doc/guix.texi:3406
  7794. #, no-wrap
  7795. msgid "--search-paths[=@var{kind}]"
  7796. msgstr ""
  7797. #. type: table
  7798. #: guix-git/doc/guix.texi:3412
  7799. 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."
  7800. msgstr ""
  7801. #. type: table
  7802. #: guix-git/doc/guix.texi:3420
  7803. 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."
  7804. msgstr ""
  7805. #. type: table
  7806. #: guix-git/doc/guix.texi:3423
  7807. msgid "The typical use case is to define these environment variables in the shell:"
  7808. msgstr ""
  7809. #. type: example
  7810. #: guix-git/doc/guix.texi:3426
  7811. #, no-wrap
  7812. msgid "$ eval `guix package --search-paths`\n"
  7813. msgstr ""
  7814. #. type: table
  7815. #: guix-git/doc/guix.texi:3432
  7816. 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}."
  7817. msgstr ""
  7818. #. type: table
  7819. #: guix-git/doc/guix.texi:3435
  7820. msgid "This option can also be used to compute the @emph{combined} search paths of several profiles. Consider this example:"
  7821. msgstr ""
  7822. #. type: example
  7823. #: guix-git/doc/guix.texi:3440
  7824. #, no-wrap
  7825. msgid ""
  7826. "$ guix package -p foo -i guile\n"
  7827. "$ guix package -p bar -i guile-json\n"
  7828. "$ guix package -p foo -p bar --search-paths\n"
  7829. msgstr ""
  7830. #. type: table
  7831. #: guix-git/doc/guix.texi:3445
  7832. 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."
  7833. msgstr ""
  7834. #. type: cindex
  7835. #: guix-git/doc/guix.texi:3447
  7836. #, no-wrap
  7837. msgid "profile, choosing"
  7838. msgstr ""
  7839. #. type: item
  7840. #: guix-git/doc/guix.texi:3448 guix-git/doc/guix.texi:4516
  7841. #: guix-git/doc/guix.texi:4845
  7842. #, no-wrap
  7843. msgid "--profile=@var{profile}"
  7844. msgstr ""
  7845. #. type: itemx
  7846. #: guix-git/doc/guix.texi:3449 guix-git/doc/guix.texi:4517
  7847. #: guix-git/doc/guix.texi:4846
  7848. #, no-wrap
  7849. msgid "-p @var{profile}"
  7850. msgstr ""
  7851. #. type: table
  7852. #: guix-git/doc/guix.texi:3451
  7853. msgid "Use @var{profile} instead of the user's default profile."
  7854. msgstr ""
  7855. #. type: table
  7856. #: guix-git/doc/guix.texi:3456
  7857. 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:"
  7858. msgstr ""
  7859. #. type: example
  7860. #: guix-git/doc/guix.texi:3462
  7861. #, no-wrap
  7862. msgid ""
  7863. "$ guix install hello -p ~/code/my-profile\n"
  7864. "@dots{}\n"
  7865. "$ ~/code/my-profile/bin/hello\n"
  7866. "Hello, world!\n"
  7867. msgstr ""
  7868. #. type: table
  7869. #: guix-git/doc/guix.texi:3466
  7870. msgid "All it takes to get rid of the profile is to remove this symlink and its siblings that point to specific generations:"
  7871. msgstr ""
  7872. #. type: example
  7873. #: guix-git/doc/guix.texi:3469
  7874. #, no-wrap
  7875. msgid "$ rm ~/code/my-profile ~/code/my-profile-*-link\n"
  7876. msgstr ""
  7877. #. type: item
  7878. #: guix-git/doc/guix.texi:3471
  7879. #, no-wrap
  7880. msgid "--list-profiles"
  7881. msgstr ""
  7882. #. type: table
  7883. #: guix-git/doc/guix.texi:3473
  7884. msgid "List all the user's profiles:"
  7885. msgstr ""
  7886. #. type: example
  7887. #: guix-git/doc/guix.texi:3480
  7888. #, no-wrap
  7889. msgid ""
  7890. "$ guix package --list-profiles\n"
  7891. "/home/charlie/.guix-profile\n"
  7892. "/home/charlie/code/my-profile\n"
  7893. "/home/charlie/code/devel-profile\n"
  7894. "/home/charlie/tmp/test\n"
  7895. msgstr ""
  7896. #. type: table
  7897. #: guix-git/doc/guix.texi:3483
  7898. msgid "When running as root, list all the profiles of all the users."
  7899. msgstr ""
  7900. #. type: cindex
  7901. #: guix-git/doc/guix.texi:3484
  7902. #, no-wrap
  7903. msgid "collisions, in a profile"
  7904. msgstr ""
  7905. #. type: cindex
  7906. #: guix-git/doc/guix.texi:3485
  7907. #, no-wrap
  7908. msgid "colliding packages in profiles"
  7909. msgstr ""
  7910. #. type: cindex
  7911. #: guix-git/doc/guix.texi:3486
  7912. #, no-wrap
  7913. msgid "profile collisions"
  7914. msgstr ""
  7915. #. type: item
  7916. #: guix-git/doc/guix.texi:3487
  7917. #, no-wrap
  7918. msgid "--allow-collisions"
  7919. msgstr ""
  7920. #. type: table
  7921. #: guix-git/doc/guix.texi:3489
  7922. msgid "Allow colliding packages in the new profile. Use at your own risk!"
  7923. msgstr ""
  7924. #. type: table
  7925. #: guix-git/doc/guix.texi:3493
  7926. 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."
  7927. msgstr ""
  7928. #. type: item
  7929. #: guix-git/doc/guix.texi:3494 guix-git/doc/guix.texi:4559
  7930. #: guix-git/doc/guix.texi:6688
  7931. #, no-wrap
  7932. msgid "--bootstrap"
  7933. msgstr ""
  7934. #. type: table
  7935. #: guix-git/doc/guix.texi:3497
  7936. msgid "Use the bootstrap Guile to build the profile. This option is only useful to distribution developers."
  7937. msgstr ""
  7938. #. type: Plain text
  7939. #: guix-git/doc/guix.texi:3503
  7940. 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:"
  7941. msgstr ""
  7942. #. type: item
  7943. #: guix-git/doc/guix.texi:3506
  7944. #, no-wrap
  7945. msgid "--search=@var{regexp}"
  7946. msgstr ""
  7947. #. type: itemx
  7948. #: guix-git/doc/guix.texi:3507
  7949. #, no-wrap
  7950. msgid "-s @var{regexp}"
  7951. msgstr ""
  7952. #. type: anchor{#1}
  7953. #: guix-git/doc/guix.texi:3509
  7954. msgid "guix-search"
  7955. msgstr ""
  7956. #. type: cindex
  7957. #: guix-git/doc/guix.texi:3509
  7958. #, no-wrap
  7959. msgid "searching for packages"
  7960. msgstr ""
  7961. #. type: table
  7962. #: guix-git/doc/guix.texi:3515
  7963. 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})."
  7964. msgstr ""
  7965. #. type: table
  7966. #: guix-git/doc/guix.texi:3518
  7967. msgid "This allows specific fields to be extracted using the @command{recsel} command, for instance:"
  7968. msgstr ""
  7969. #. type: example
  7970. #: guix-git/doc/guix.texi:3524
  7971. #, no-wrap
  7972. msgid ""
  7973. "$ guix package -s malloc | recsel -p name,version,relevance\n"
  7974. "name: jemalloc\n"
  7975. "version: 4.5.0\n"
  7976. "relevance: 6\n"
  7977. "\n"
  7978. msgstr ""
  7979. #. type: example
  7980. #: guix-git/doc/guix.texi:3528
  7981. #, no-wrap
  7982. msgid ""
  7983. "name: glibc\n"
  7984. "version: 2.25\n"
  7985. "relevance: 1\n"
  7986. "\n"
  7987. msgstr ""
  7988. #. type: example
  7989. #: guix-git/doc/guix.texi:3532
  7990. #, no-wrap
  7991. msgid ""
  7992. "name: libgc\n"
  7993. "version: 7.6.0\n"
  7994. "relevance: 1\n"
  7995. msgstr ""
  7996. #. type: table
  7997. #: guix-git/doc/guix.texi:3536
  7998. msgid "Similarly, to show the name of all the packages available under the terms of the GNU@tie{}LGPL version 3:"
  7999. msgstr ""
  8000. #. type: example
  8001. #: guix-git/doc/guix.texi:3540
  8002. #, no-wrap
  8003. msgid ""
  8004. "$ guix package -s \"\" | recsel -p name -e 'license ~ \"LGPL 3\"'\n"
  8005. "name: elfutils\n"
  8006. "\n"
  8007. msgstr ""
  8008. #. type: example
  8009. #: guix-git/doc/guix.texi:3543
  8010. #, no-wrap
  8011. msgid ""
  8012. "name: gmp\n"
  8013. "@dots{}\n"
  8014. msgstr ""
  8015. #. type: table
  8016. #: guix-git/doc/guix.texi:3549
  8017. 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):"
  8018. msgstr ""
  8019. #. type: example
  8020. #: guix-git/doc/guix.texi:3554
  8021. #, no-wrap
  8022. msgid ""
  8023. "$ guix search '\\<board\\>' game | recsel -p name\n"
  8024. "name: gnubg\n"
  8025. "@dots{}\n"
  8026. msgstr ""
  8027. #. type: table
  8028. #: guix-git/doc/guix.texi:3560
  8029. 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."
  8030. msgstr ""
  8031. #. type: table
  8032. #: guix-git/doc/guix.texi:3564
  8033. 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:"
  8034. msgstr ""
  8035. #. type: example
  8036. #: guix-git/doc/guix.texi:3568
  8037. #, no-wrap
  8038. msgid ""
  8039. "$ guix search crypto library | \\\n"
  8040. " recsel -e '! (name ~ \"^(ghc|perl|python|ruby)\")' -p name,synopsis\n"
  8041. msgstr ""
  8042. #. type: table
  8043. #: guix-git/doc/guix.texi:3573
  8044. msgid "@xref{Selection Expressions,,, recutils, GNU recutils manual}, for more information on @dfn{selection expressions} for @code{recsel -e}."
  8045. msgstr ""
  8046. #. type: item
  8047. #: guix-git/doc/guix.texi:3574
  8048. #, no-wrap
  8049. msgid "--show=@var{package}"
  8050. msgstr ""
  8051. #. type: table
  8052. #: guix-git/doc/guix.texi:3578
  8053. 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})."
  8054. msgstr ""
  8055. #. type: example
  8056. #: guix-git/doc/guix.texi:3583
  8057. #, no-wrap
  8058. msgid ""
  8059. "$ guix package --show=python | recsel -p name,version\n"
  8060. "name: python\n"
  8061. "version: 2.7.6\n"
  8062. "\n"
  8063. msgstr ""
  8064. #. type: example
  8065. #: guix-git/doc/guix.texi:3586
  8066. #, no-wrap
  8067. msgid ""
  8068. "name: python\n"
  8069. "version: 3.3.5\n"
  8070. msgstr ""
  8071. #. type: table
  8072. #: guix-git/doc/guix.texi:3590
  8073. 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):"
  8074. msgstr ""
  8075. #. type: example
  8076. #: guix-git/doc/guix.texi:3594
  8077. #, no-wrap
  8078. msgid ""
  8079. "$ guix show python@@3.4 | recsel -p name,version\n"
  8080. "name: python\n"
  8081. "version: 3.4.3\n"
  8082. msgstr ""
  8083. #. type: item
  8084. #: guix-git/doc/guix.texi:3598
  8085. #, no-wrap
  8086. msgid "--list-installed[=@var{regexp}]"
  8087. msgstr ""
  8088. #. type: itemx
  8089. #: guix-git/doc/guix.texi:3599
  8090. #, no-wrap
  8091. msgid "-I [@var{regexp}]"
  8092. msgstr ""
  8093. #. type: table
  8094. #: guix-git/doc/guix.texi:3603
  8095. 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}."
  8096. msgstr ""
  8097. #. type: table
  8098. #: guix-git/doc/guix.texi:3609
  8099. 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."
  8100. msgstr ""
  8101. #. type: item
  8102. #: guix-git/doc/guix.texi:3610
  8103. #, no-wrap
  8104. msgid "--list-available[=@var{regexp}]"
  8105. msgstr ""
  8106. #. type: itemx
  8107. #: guix-git/doc/guix.texi:3611
  8108. #, no-wrap
  8109. msgid "-A [@var{regexp}]"
  8110. msgstr ""
  8111. #. type: table
  8112. #: guix-git/doc/guix.texi:3615
  8113. 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}."
  8114. msgstr ""
  8115. #. type: table
  8116. #: guix-git/doc/guix.texi:3619
  8117. 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."
  8118. msgstr ""
  8119. #. type: item
  8120. #: guix-git/doc/guix.texi:3620 guix-git/doc/guix.texi:4472
  8121. #, no-wrap
  8122. msgid "--list-generations[=@var{pattern}]"
  8123. msgstr ""
  8124. #. type: itemx
  8125. #: guix-git/doc/guix.texi:3621 guix-git/doc/guix.texi:4473
  8126. #, no-wrap
  8127. msgid "-l [@var{pattern}]"
  8128. msgstr ""
  8129. #. type: table
  8130. #: guix-git/doc/guix.texi:3627
  8131. 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."
  8132. msgstr ""
  8133. #. type: table
  8134. #: guix-git/doc/guix.texi:3632
  8135. 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."
  8136. msgstr ""
  8137. #. type: table
  8138. #: guix-git/doc/guix.texi:3635
  8139. msgid "When @var{pattern} is used, the command returns only matching generations. Valid patterns include:"
  8140. msgstr ""
  8141. #. type: item
  8142. #: guix-git/doc/guix.texi:3637
  8143. #, no-wrap
  8144. msgid "@emph{Integers and comma-separated integers}. Both patterns denote"
  8145. msgstr ""
  8146. #. type: itemize
  8147. #: guix-git/doc/guix.texi:3640
  8148. msgid "generation numbers. For instance, @option{--list-generations=1} returns the first one."
  8149. msgstr ""
  8150. #. type: itemize
  8151. #: guix-git/doc/guix.texi:3643
  8152. msgid "And @option{--list-generations=1,8,2} outputs three generations in the specified order. Neither spaces nor trailing commas are allowed."
  8153. msgstr ""
  8154. #. type: item
  8155. #: guix-git/doc/guix.texi:3644
  8156. #, no-wrap
  8157. msgid "@emph{Ranges}. @option{--list-generations=2..9} prints the"
  8158. msgstr ""
  8159. #. type: itemize
  8160. #: guix-git/doc/guix.texi:3647
  8161. msgid "specified generations and everything in between. Note that the start of a range must be smaller than its end."
  8162. msgstr ""
  8163. #. type: itemize
  8164. #: guix-git/doc/guix.texi:3651
  8165. msgid "It is also possible to omit the endpoint. For example, @option{--list-generations=2..}, returns all generations starting from the second one."
  8166. msgstr ""
  8167. #. type: item
  8168. #: guix-git/doc/guix.texi:3652
  8169. #, no-wrap
  8170. msgid "@emph{Durations}. You can also get the last @emph{N}@tie{}days, weeks,"
  8171. msgstr ""
  8172. #. type: itemize
  8173. #: guix-git/doc/guix.texi:3656
  8174. 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."
  8175. msgstr ""
  8176. #. type: item
  8177. #: guix-git/doc/guix.texi:3658 guix-git/doc/guix.texi:4497
  8178. #, no-wrap
  8179. msgid "--delete-generations[=@var{pattern}]"
  8180. msgstr ""
  8181. #. type: itemx
  8182. #: guix-git/doc/guix.texi:3659 guix-git/doc/guix.texi:4498
  8183. #, no-wrap
  8184. msgid "-d [@var{pattern}]"
  8185. msgstr ""
  8186. #. type: table
  8187. #: guix-git/doc/guix.texi:3662 guix-git/doc/guix.texi:4501
  8188. msgid "When @var{pattern} is omitted, delete all generations except the current one."
  8189. msgstr ""
  8190. #. type: table
  8191. #: guix-git/doc/guix.texi:3668 guix-git/doc/guix.texi:4507
  8192. 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."
  8193. msgstr ""
  8194. #. type: table
  8195. #: guix-git/doc/guix.texi:3671
  8196. msgid "If the current generation matches, it is @emph{not} deleted. Also, the zeroth generation is never deleted."
  8197. msgstr ""
  8198. #. type: table
  8199. #: guix-git/doc/guix.texi:3674 guix-git/doc/guix.texi:4512
  8200. msgid "Note that deleting generations prevents rolling back to them. Consequently, this command must be used with care."
  8201. msgstr ""
  8202. #. type: cindex
  8203. #: guix-git/doc/guix.texi:3675
  8204. #, no-wrap
  8205. msgid "manifest, exporting"
  8206. msgstr ""
  8207. #. type: anchor{#1}
  8208. #: guix-git/doc/guix.texi:3677
  8209. msgid "export-manifest"
  8210. msgstr ""
  8211. #. type: item
  8212. #: guix-git/doc/guix.texi:3677
  8213. #, no-wrap
  8214. msgid "--export-manifest"
  8215. msgstr ""
  8216. #. type: table
  8217. #: guix-git/doc/guix.texi:3680
  8218. msgid "Write to standard output a manifest suitable for @option{--manifest} corresponding to the chosen profile(s)."
  8219. msgstr ""
  8220. #. type: table
  8221. #: guix-git/doc/guix.texi:3684
  8222. 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."
  8223. msgstr ""
  8224. #. type: table
  8225. #: guix-git/doc/guix.texi:3689
  8226. 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."
  8227. msgstr ""
  8228. #. type: table
  8229. #: guix-git/doc/guix.texi:3694
  8230. 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."
  8231. msgstr ""
  8232. #. type: cindex
  8233. #: guix-git/doc/guix.texi:3695
  8234. #, fuzzy, no-wrap
  8235. msgid "pinning, channel revisions of a profile"
  8236. msgstr "和其它版本的Guix交互。"
  8237. #. type: item
  8238. #: guix-git/doc/guix.texi:3696
  8239. #, no-wrap
  8240. msgid "--export-channels"
  8241. msgstr ""
  8242. #. type: table
  8243. #: guix-git/doc/guix.texi:3700
  8244. 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})."
  8245. msgstr ""
  8246. #. type: table
  8247. #: guix-git/doc/guix.texi:3704
  8248. msgid "Together with @option{--export-manifest}, this option provides information allowing you to replicate the current profile (@pxref{Replicating Guix})."
  8249. msgstr ""
  8250. #. type: table
  8251. #: guix-git/doc/guix.texi:3712
  8252. 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})."
  8253. msgstr ""
  8254. #. type: table
  8255. #: guix-git/doc/guix.texi:3717
  8256. 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."
  8257. msgstr ""
  8258. #. type: Plain text
  8259. #: guix-git/doc/guix.texi:3724
  8260. 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})."
  8261. msgstr ""
  8262. #. type: cindex
  8263. #: guix-git/doc/guix.texi:3729
  8264. #, no-wrap
  8265. msgid "pre-built binaries"
  8266. msgstr ""
  8267. #. type: Plain text
  8268. #: guix-git/doc/guix.texi:3735
  8269. 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."
  8270. msgstr ""
  8271. #. type: Plain text
  8272. #: guix-git/doc/guix.texi:3740
  8273. 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."
  8274. msgstr ""
  8275. #. type: cindex
  8276. #: guix-git/doc/guix.texi:3754
  8277. #, no-wrap
  8278. msgid "build farm"
  8279. msgstr ""
  8280. #. type: Plain text
  8281. #: guix-git/doc/guix.texi:3765
  8282. 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})."
  8283. msgstr ""
  8284. #. type: Plain text
  8285. #: guix-git/doc/guix.texi:3771
  8286. 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."
  8287. msgstr ""
  8288. #. type: Plain text
  8289. #: guix-git/doc/guix.texi:3780
  8290. 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."
  8291. msgstr ""
  8292. #. type: cindex
  8293. #: guix-git/doc/guix.texi:3784
  8294. #, no-wrap
  8295. msgid "security"
  8296. msgstr ""
  8297. #. type: cindex
  8298. #: guix-git/doc/guix.texi:3786
  8299. #, no-wrap
  8300. msgid "access control list (ACL), for substitutes"
  8301. msgstr ""
  8302. #. type: cindex
  8303. #: guix-git/doc/guix.texi:3787
  8304. #, no-wrap
  8305. msgid "ACL (access control list), for substitutes"
  8306. msgstr ""
  8307. #. type: Plain text
  8308. #: guix-git/doc/guix.texi:3793
  8309. 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."
  8310. msgstr ""
  8311. #. type: quotation
  8312. #: guix-git/doc/guix.texi:3798
  8313. 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."
  8314. msgstr ""
  8315. #. type: Plain text
  8316. #: guix-git/doc/guix.texi:3806
  8317. 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:"
  8318. msgstr ""
  8319. #. type: example
  8320. #: guix-git/doc/guix.texi:3810
  8321. #, no-wrap
  8322. msgid ""
  8323. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  8324. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  8325. msgstr ""
  8326. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  8327. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  8328. #. type: Plain text
  8329. #: guix-git/doc/guix.texi:3814
  8330. msgid "Once this is in place, the output of a command like @code{guix build} should change from something like:"
  8331. msgstr ""
  8332. #. type: example
  8333. #: guix-git/doc/guix.texi:3823
  8334. #, no-wrap
  8335. msgid ""
  8336. "$ guix build emacs --dry-run\n"
  8337. "The following derivations would be built:\n"
  8338. " /gnu/store/yr7bnx8xwcayd6j95r2clmkdl1qh688w-emacs-24.3.drv\n"
  8339. " /gnu/store/x8qsh1hlhgjx6cwsjyvybnfv2i37z23w-dbus-1.6.4.tar.gz.drv\n"
  8340. " /gnu/store/1ixwp12fl950d15h2cj11c73733jay0z-alsa-lib-1.0.27.1.tar.bz2.drv\n"
  8341. " /gnu/store/nlma1pw0p603fpfiqy7kn4zm105r5dmw-util-linux-2.21.drv\n"
  8342. "@dots{}\n"
  8343. msgstr ""
  8344. #. type: Plain text
  8345. #: guix-git/doc/guix.texi:3827
  8346. msgid "to something like:"
  8347. msgstr ""
  8348. #. type: example
  8349. #: guix-git/doc/guix.texi:3836
  8350. #, no-wrap
  8351. msgid ""
  8352. "$ guix build emacs --dry-run\n"
  8353. "112.3 MB would be downloaded:\n"
  8354. " /gnu/store/pk3n22lbq6ydamyymqkkz7i69wiwjiwi-emacs-24.3\n"
  8355. " /gnu/store/2ygn4ncnhrpr61rssa6z0d9x22si0va3-libjpeg-8d\n"
  8356. " /gnu/store/71yz6lgx4dazma9dwn2mcjxaah9w77jq-cairo-1.12.16\n"
  8357. " /gnu/store/7zdhgp0n1518lvfn8mb96sxqfmvqrl7v-libxrender-0.9.7\n"
  8358. "@dots{}\n"
  8359. msgstr ""
  8360. #. type: Plain text
  8361. #: guix-git/doc/guix.texi:3843
  8362. 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."
  8363. msgstr ""
  8364. #. type: cindex
  8365. #: guix-git/doc/guix.texi:3844
  8366. #, no-wrap
  8367. msgid "substitutes, how to disable"
  8368. msgstr ""
  8369. #. type: Plain text
  8370. #: guix-git/doc/guix.texi:3850
  8371. 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."
  8372. msgstr ""
  8373. #. type: cindex
  8374. #: guix-git/doc/guix.texi:3854
  8375. #, fuzzy, no-wrap
  8376. msgid "substitute servers, adding more"
  8377. msgstr "授权substitute服务器。"
  8378. #. type: Plain text
  8379. #: guix-git/doc/guix.texi:3861
  8380. 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."
  8381. msgstr ""
  8382. #. type: Plain text
  8383. #: guix-git/doc/guix.texi:3866
  8384. 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."
  8385. msgstr ""
  8386. #. type: Plain text
  8387. #: guix-git/doc/guix.texi:3873
  8388. 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}})."
  8389. msgstr ""
  8390. #. type: Plain text
  8391. #: guix-git/doc/guix.texi:3879
  8392. 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:"
  8393. msgstr ""
  8394. #. type: lisp
  8395. #: guix-git/doc/guix.texi:3896
  8396. #, no-wrap
  8397. msgid ""
  8398. "(operating-system\n"
  8399. " ;; @dots{}\n"
  8400. " (services\n"
  8401. " ;; Assume we're starting from '%desktop-services'. Replace it\n"
  8402. " ;; with the list of services you're actually using.\n"
  8403. " (modify-services %desktop-services\n"
  8404. " (guix-service-type config =>\n"
  8405. " (guix-configuration\n"
  8406. " (inherit config)\n"
  8407. " (substitute-urls\n"
  8408. " (append (list \"https://guix.example.org\")\n"
  8409. " %default-substitute-urls))\n"
  8410. " (authorized-keys\n"
  8411. " (append (list (local-file \"./key.pub\"))\n"
  8412. " %default-authorized-guix-keys)))))))\n"
  8413. msgstr ""
  8414. #. type: Plain text
  8415. #: guix-git/doc/guix.texi:3903
  8416. 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:"
  8417. msgstr ""
  8418. #. type: example
  8419. #: guix-git/doc/guix.texi:3907
  8420. #, no-wrap
  8421. msgid ""
  8422. "$ sudo guix system reconfigure /etc/config.scm\n"
  8423. "$ sudo herd restart guix-daemon\n"
  8424. msgstr ""
  8425. #. type: Plain text
  8426. #: guix-git/doc/guix.texi:3911
  8427. msgid "If you're running Guix on a ``foreign distro'', you would instead take the following steps to get substitutes from additional servers:"
  8428. msgstr ""
  8429. #. type: enumerate
  8430. #: guix-git/doc/guix.texi:3920
  8431. 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}}):"
  8432. msgstr ""
  8433. #. type: example
  8434. #: guix-git/doc/guix.texi:3923
  8435. #, no-wrap
  8436. msgid "@dots{} --substitute-urls='https://guix.example.org @value{SUBSTITUTE-URLS}'\n"
  8437. msgstr ""
  8438. #. type: enumerate
  8439. #: guix-git/doc/guix.texi:3927
  8440. msgid "Restart the daemon. For systemd, it goes like this:"
  8441. msgstr ""
  8442. #. type: example
  8443. #: guix-git/doc/guix.texi:3931
  8444. #, no-wrap
  8445. msgid ""
  8446. "systemctl daemon-reload\n"
  8447. "systemctl restart guix-daemon.service\n"
  8448. msgstr ""
  8449. #. type: enumerate
  8450. #: guix-git/doc/guix.texi:3935
  8451. msgid "Authorize the key of the new server (@pxref{Invoking guix archive}):"
  8452. msgstr ""
  8453. #. type: example
  8454. #: guix-git/doc/guix.texi:3938
  8455. #, fuzzy, no-wrap
  8456. msgid "guix archive --authorize < key.pub\n"
  8457. msgstr "# guix archive --authorize < master-public-key.txt\n"
  8458. #. type: enumerate
  8459. #: guix-git/doc/guix.texi:3942
  8460. msgid "Again this assumes @file{key.pub} contains the public key that @code{guix.example.org} uses to sign substitutes."
  8461. msgstr ""
  8462. #. type: Plain text
  8463. #: guix-git/doc/guix.texi:3951
  8464. 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."
  8465. msgstr ""
  8466. #. type: Plain text
  8467. #: guix-git/doc/guix.texi:3955
  8468. 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."
  8469. msgstr ""
  8470. #. type: cindex
  8471. #: guix-git/doc/guix.texi:3959
  8472. #, no-wrap
  8473. msgid "digital signatures"
  8474. msgstr ""
  8475. #. type: Plain text
  8476. #: guix-git/doc/guix.texi:3963
  8477. 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."
  8478. msgstr ""
  8479. #. type: Plain text
  8480. #: guix-git/doc/guix.texi:3969
  8481. 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:"
  8482. msgstr ""
  8483. #. type: example
  8484. #: guix-git/doc/guix.texi:3972
  8485. #, no-wrap
  8486. msgid "--substitute-urls=\"https://a.example.org https://b.example.org\"\n"
  8487. msgstr ""
  8488. #. type: Plain text
  8489. #: guix-git/doc/guix.texi:3983
  8490. 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)."
  8491. msgstr ""
  8492. #. type: Plain text
  8493. #: guix-git/doc/guix.texi:3990
  8494. 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)."
  8495. msgstr ""
  8496. #. type: Plain text
  8497. #: guix-git/doc/guix.texi:4002
  8498. 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}."
  8499. msgstr ""
  8500. #. type: Plain text
  8501. #: guix-git/doc/guix.texi:4011
  8502. 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."
  8503. msgstr ""
  8504. #. type: Plain text
  8505. #: guix-git/doc/guix.texi:4025
  8506. 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."
  8507. msgstr ""
  8508. #. type: Plain text
  8509. #: guix-git/doc/guix.texi:4030
  8510. 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."
  8511. msgstr ""
  8512. #. type: cindex
  8513. #: guix-git/doc/guix.texi:4034
  8514. #, no-wrap
  8515. msgid "trust, of pre-built binaries"
  8516. msgstr ""
  8517. #. type: Plain text
  8518. #: guix-git/doc/guix.texi:4044
  8519. 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})."
  8520. msgstr ""
  8521. #. type: Plain text
  8522. #: guix-git/doc/guix.texi:4056
  8523. 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}})."
  8524. msgstr ""
  8525. #. type: Plain text
  8526. #: guix-git/doc/guix.texi:4060
  8527. 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}."
  8528. msgstr ""
  8529. #. type: cindex
  8530. #: guix-git/doc/guix.texi:4064
  8531. #, no-wrap
  8532. msgid "multiple-output packages"
  8533. msgstr ""
  8534. #. type: cindex
  8535. #: guix-git/doc/guix.texi:4065
  8536. #, no-wrap
  8537. msgid "package outputs"
  8538. msgstr ""
  8539. #. type: cindex
  8540. #: guix-git/doc/guix.texi:4066
  8541. #, no-wrap
  8542. msgid "outputs"
  8543. msgstr ""
  8544. #. type: Plain text
  8545. #: guix-git/doc/guix.texi:4076
  8546. 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."
  8547. msgstr ""
  8548. #. type: Plain text
  8549. #: guix-git/doc/guix.texi:4084
  8550. 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:"
  8551. msgstr ""
  8552. #. type: example
  8553. #: guix-git/doc/guix.texi:4087
  8554. #, no-wrap
  8555. msgid "guix install glib\n"
  8556. msgstr "guix install glib\n"
  8557. #. type: item
  8558. #: guix-git/doc/guix.texi:4089 guix-git/doc/guix.texi:35806
  8559. #: guix-git/doc/guix.texi:35863
  8560. #, no-wrap
  8561. msgid "documentation"
  8562. msgstr ""
  8563. #. type: Plain text
  8564. #: guix-git/doc/guix.texi:4091
  8565. msgid "The command to install its documentation is:"
  8566. msgstr ""
  8567. #. type: example
  8568. #: guix-git/doc/guix.texi:4094
  8569. #, no-wrap
  8570. msgid "guix install glib:doc\n"
  8571. msgstr ""
  8572. #. type: Plain text
  8573. #: guix-git/doc/guix.texi:4105
  8574. 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})."
  8575. msgstr ""
  8576. #. type: Plain text
  8577. #: guix-git/doc/guix.texi:4113
  8578. 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})."
  8579. msgstr ""
  8580. #. type: section
  8581. #: guix-git/doc/guix.texi:4116
  8582. #, no-wrap
  8583. msgid "Invoking @command{guix gc}"
  8584. msgstr ""
  8585. #. type: cindex
  8586. #: guix-git/doc/guix.texi:4118
  8587. #, no-wrap
  8588. msgid "garbage collector"
  8589. msgstr ""
  8590. #. type: cindex
  8591. #: guix-git/doc/guix.texi:4119
  8592. #, no-wrap
  8593. msgid "disk space"
  8594. msgstr ""
  8595. #. type: Plain text
  8596. #: guix-git/doc/guix.texi:4125
  8597. 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!"
  8598. msgstr ""
  8599. #. type: Plain text
  8600. #: guix-git/doc/guix.texi:4136
  8601. 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."
  8602. msgstr ""
  8603. #. type: Plain text
  8604. #: guix-git/doc/guix.texi:4142
  8605. 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})."
  8606. msgstr ""
  8607. #. type: Plain text
  8608. #: guix-git/doc/guix.texi:4146
  8609. 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:"
  8610. msgstr ""
  8611. #. type: example
  8612. #: guix-git/doc/guix.texi:4149
  8613. #, no-wrap
  8614. msgid "guix gc -F 5G\n"
  8615. msgstr ""
  8616. #. type: Plain text
  8617. #: guix-git/doc/guix.texi:4158
  8618. 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."
  8619. msgstr ""
  8620. #. type: Plain text
  8621. #: guix-git/doc/guix.texi:4164
  8622. 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:"
  8623. msgstr ""
  8624. #. type: item
  8625. #: guix-git/doc/guix.texi:4166
  8626. #, no-wrap
  8627. msgid "--collect-garbage[=@var{min}]"
  8628. msgstr ""
  8629. #. type: itemx
  8630. #: guix-git/doc/guix.texi:4167
  8631. #, no-wrap
  8632. msgid "-C [@var{min}]"
  8633. msgstr ""
  8634. #. type: table
  8635. #: guix-git/doc/guix.texi:4171
  8636. msgid "Collect garbage---i.e., unreachable @file{/gnu/store} files and sub-directories. This is the default operation when no option is specified."
  8637. msgstr ""
  8638. #. type: table
  8639. #: guix-git/doc/guix.texi:4176
  8640. 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})."
  8641. msgstr ""
  8642. #. type: table
  8643. #: guix-git/doc/guix.texi:4178
  8644. msgid "When @var{min} is omitted, collect all the garbage."
  8645. msgstr ""
  8646. #. type: item
  8647. #: guix-git/doc/guix.texi:4179
  8648. #, no-wrap
  8649. msgid "--free-space=@var{free}"
  8650. msgstr ""
  8651. #. type: itemx
  8652. #: guix-git/doc/guix.texi:4180
  8653. #, no-wrap
  8654. msgid "-F @var{free}"
  8655. msgstr ""
  8656. #. type: table
  8657. #: guix-git/doc/guix.texi:4184
  8658. 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."
  8659. msgstr ""
  8660. #. type: table
  8661. #: guix-git/doc/guix.texi:4187
  8662. msgid "When @var{free} or more is already available in @file{/gnu/store}, do nothing and exit immediately."
  8663. msgstr ""
  8664. #. type: item
  8665. #: guix-git/doc/guix.texi:4188
  8666. #, no-wrap
  8667. msgid "--delete-generations[=@var{duration}]"
  8668. msgstr ""
  8669. #. type: itemx
  8670. #: guix-git/doc/guix.texi:4189
  8671. #, no-wrap
  8672. msgid "-d [@var{duration}]"
  8673. msgstr ""
  8674. #. type: table
  8675. #: guix-git/doc/guix.texi:4193
  8676. 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}."
  8677. msgstr ""
  8678. #. type: table
  8679. #: guix-git/doc/guix.texi:4197
  8680. 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:"
  8681. msgstr ""
  8682. #. type: example
  8683. #: guix-git/doc/guix.texi:4200
  8684. #, no-wrap
  8685. msgid "guix gc -d 2m -F 10G\n"
  8686. msgstr ""
  8687. #. type: item
  8688. #: guix-git/doc/guix.texi:4202
  8689. #, no-wrap
  8690. msgid "--delete"
  8691. msgstr ""
  8692. #. type: itemx
  8693. #: guix-git/doc/guix.texi:4203 guix-git/doc/guix.texi:5727
  8694. #, no-wrap
  8695. msgid "-D"
  8696. msgstr ""
  8697. #. type: table
  8698. #: guix-git/doc/guix.texi:4207
  8699. 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."
  8700. msgstr ""
  8701. #. type: item
  8702. #: guix-git/doc/guix.texi:4208
  8703. #, no-wrap
  8704. msgid "--list-failures"
  8705. msgstr ""
  8706. #. type: table
  8707. #: guix-git/doc/guix.texi:4210
  8708. msgid "List store items corresponding to cached build failures."
  8709. msgstr ""
  8710. #. type: table
  8711. #: guix-git/doc/guix.texi:4214
  8712. msgid "This prints nothing unless the daemon was started with @option{--cache-failures} (@pxref{Invoking guix-daemon, @option{--cache-failures}})."
  8713. msgstr ""
  8714. #. type: item
  8715. #: guix-git/doc/guix.texi:4215
  8716. #, no-wrap
  8717. msgid "--list-roots"
  8718. msgstr ""
  8719. #. type: table
  8720. #: guix-git/doc/guix.texi:4218
  8721. msgid "List the GC roots owned by the user; when run as root, list @emph{all} the GC roots."
  8722. msgstr ""
  8723. #. type: item
  8724. #: guix-git/doc/guix.texi:4219
  8725. #, no-wrap
  8726. msgid "--list-busy"
  8727. msgstr ""
  8728. #. type: table
  8729. #: guix-git/doc/guix.texi:4222
  8730. msgid "List store items in use by currently running processes. These store items are effectively considered GC roots: they cannot be deleted."
  8731. msgstr ""
  8732. #. type: item
  8733. #: guix-git/doc/guix.texi:4223
  8734. #, no-wrap
  8735. msgid "--clear-failures"
  8736. msgstr ""
  8737. #. type: table
  8738. #: guix-git/doc/guix.texi:4225
  8739. msgid "Remove the specified store items from the failed-build cache."
  8740. msgstr ""
  8741. #. type: table
  8742. #: guix-git/doc/guix.texi:4228
  8743. msgid "Again, this option only makes sense when the daemon is started with @option{--cache-failures}. Otherwise, it does nothing."
  8744. msgstr ""
  8745. #. type: item
  8746. #: guix-git/doc/guix.texi:4229
  8747. #, no-wrap
  8748. msgid "--list-dead"
  8749. msgstr ""
  8750. #. type: table
  8751. #: guix-git/doc/guix.texi:4232
  8752. 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."
  8753. msgstr ""
  8754. #. type: item
  8755. #: guix-git/doc/guix.texi:4233
  8756. #, no-wrap
  8757. msgid "--list-live"
  8758. msgstr ""
  8759. #. type: table
  8760. #: guix-git/doc/guix.texi:4235
  8761. msgid "Show the list of live store files and directories."
  8762. msgstr ""
  8763. #. type: Plain text
  8764. #: guix-git/doc/guix.texi:4239
  8765. msgid "In addition, the references among existing store files can be queried:"
  8766. msgstr ""
  8767. #. type: item
  8768. #: guix-git/doc/guix.texi:4242
  8769. #, no-wrap
  8770. msgid "--references"
  8771. msgstr ""
  8772. #. type: itemx
  8773. #: guix-git/doc/guix.texi:4243
  8774. #, no-wrap
  8775. msgid "--referrers"
  8776. msgstr ""
  8777. #. type: cindex
  8778. #: guix-git/doc/guix.texi:4244 guix-git/doc/guix.texi:12899
  8779. #, no-wrap
  8780. msgid "package dependencies"
  8781. msgstr ""
  8782. #. type: table
  8783. #: guix-git/doc/guix.texi:4247
  8784. msgid "List the references (respectively, the referrers) of store files given as arguments."
  8785. msgstr ""
  8786. #. type: item
  8787. #: guix-git/doc/guix.texi:4248
  8788. #, no-wrap
  8789. msgid "--requisites"
  8790. msgstr ""
  8791. #. type: itemx
  8792. #: guix-git/doc/guix.texi:4249 guix-git/doc/guix.texi:6488
  8793. #, no-wrap
  8794. msgid "-R"
  8795. msgstr ""
  8796. #. type: item
  8797. #: guix-git/doc/guix.texi:4250 guix-git/doc/guix.texi:12755
  8798. #: guix-git/doc/guix.texi:12783 guix-git/doc/guix.texi:12864
  8799. #, no-wrap
  8800. msgid "closure"
  8801. msgstr ""
  8802. #. type: table
  8803. #: guix-git/doc/guix.texi:4255
  8804. 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."
  8805. msgstr ""
  8806. #. type: table
  8807. #: guix-git/doc/guix.texi:4259
  8808. 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."
  8809. msgstr ""
  8810. #. type: item
  8811. #: guix-git/doc/guix.texi:4260
  8812. #, no-wrap
  8813. msgid "--derivers"
  8814. msgstr ""
  8815. #. type: item
  8816. #: guix-git/doc/guix.texi:4261 guix-git/doc/guix.texi:6802
  8817. #: guix-git/doc/guix.texi:12618 guix-git/doc/guix.texi:13008
  8818. #, no-wrap
  8819. msgid "derivation"
  8820. msgstr ""
  8821. #. type: table
  8822. #: guix-git/doc/guix.texi:4264
  8823. msgid "Return the derivation(s) leading to the given store items (@pxref{Derivations})."
  8824. msgstr ""
  8825. #. type: table
  8826. #: guix-git/doc/guix.texi:4266
  8827. msgid "For example, this command:"
  8828. msgstr ""
  8829. #. type: example
  8830. #: guix-git/doc/guix.texi:4269
  8831. #, no-wrap
  8832. msgid "guix gc --derivers $(guix package -I ^emacs$ | cut -f4)\n"
  8833. msgstr ""
  8834. #. type: table
  8835. #: guix-git/doc/guix.texi:4274
  8836. msgid "returns the @file{.drv} file(s) leading to the @code{emacs} package installed in your profile."
  8837. msgstr ""
  8838. #. type: table
  8839. #: guix-git/doc/guix.texi:4278
  8840. 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."
  8841. msgstr ""
  8842. #. type: Plain text
  8843. #: guix-git/doc/guix.texi:4282
  8844. msgid "Lastly, the following options allow you to check the integrity of the store and to control disk usage."
  8845. msgstr ""
  8846. #. type: item
  8847. #: guix-git/doc/guix.texi:4285
  8848. #, no-wrap
  8849. msgid "--verify[=@var{options}]"
  8850. msgstr ""
  8851. #. type: cindex
  8852. #: guix-git/doc/guix.texi:4286
  8853. #, no-wrap
  8854. msgid "integrity, of the store"
  8855. msgstr ""
  8856. #. type: cindex
  8857. #: guix-git/doc/guix.texi:4287
  8858. #, no-wrap
  8859. msgid "integrity checking"
  8860. msgstr ""
  8861. #. type: table
  8862. #: guix-git/doc/guix.texi:4289
  8863. msgid "Verify the integrity of the store."
  8864. msgstr ""
  8865. #. type: table
  8866. #: guix-git/doc/guix.texi:4292
  8867. 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}."
  8868. msgstr ""
  8869. #. type: table
  8870. #: guix-git/doc/guix.texi:4295
  8871. msgid "When provided, @var{options} must be a comma-separated list containing one or more of @code{contents} and @code{repair}."
  8872. msgstr ""
  8873. #. type: table
  8874. #: guix-git/doc/guix.texi:4301
  8875. 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."
  8876. msgstr ""
  8877. #. type: cindex
  8878. #: guix-git/doc/guix.texi:4302
  8879. #, no-wrap
  8880. msgid "repairing the store"
  8881. msgstr ""
  8882. #. type: cindex
  8883. #: guix-git/doc/guix.texi:4303 guix-git/doc/guix.texi:11379
  8884. #, no-wrap
  8885. msgid "corruption, recovering from"
  8886. msgstr ""
  8887. #. type: table
  8888. #: guix-git/doc/guix.texi:4311
  8889. 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})."
  8890. msgstr ""
  8891. #. type: item
  8892. #: guix-git/doc/guix.texi:4312
  8893. #, no-wrap
  8894. msgid "--optimize"
  8895. msgstr ""
  8896. #. type: table
  8897. #: guix-git/doc/guix.texi:4316
  8898. msgid "Optimize the store by hard-linking identical files---this is @dfn{deduplication}."
  8899. msgstr ""
  8900. #. type: table
  8901. #: guix-git/doc/guix.texi:4322
  8902. 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}."
  8903. msgstr ""
  8904. #. type: section
  8905. #: guix-git/doc/guix.texi:4326
  8906. #, no-wrap
  8907. msgid "Invoking @command{guix pull}"
  8908. msgstr ""
  8909. #. type: cindex
  8910. #: guix-git/doc/guix.texi:4328
  8911. #, no-wrap
  8912. msgid "upgrading Guix"
  8913. msgstr ""
  8914. #. type: cindex
  8915. #: guix-git/doc/guix.texi:4329
  8916. #, no-wrap
  8917. msgid "updating Guix"
  8918. msgstr ""
  8919. #. type: command{#1}
  8920. #: guix-git/doc/guix.texi:4330
  8921. #, no-wrap
  8922. msgid "guix pull"
  8923. msgstr ""
  8924. #. type: cindex
  8925. #: guix-git/doc/guix.texi:4331
  8926. #, no-wrap
  8927. msgid "pull"
  8928. msgstr ""
  8929. #. type: cindex
  8930. #: guix-git/doc/guix.texi:4332
  8931. #, fuzzy, no-wrap
  8932. msgid "security, @command{guix pull}"
  8933. msgstr "调用@command{guix build}"
  8934. #. type: cindex
  8935. #: guix-git/doc/guix.texi:4333
  8936. #, no-wrap
  8937. msgid "authenticity, of code obtained with @command{guix pull}"
  8938. msgstr ""
  8939. #. type: Plain text
  8940. #: guix-git/doc/guix.texi:4343
  8941. 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."
  8942. msgstr ""
  8943. #. type: Plain text
  8944. #: guix-git/doc/guix.texi:4346
  8945. msgid "Specifically, @command{guix pull} downloads code from the @dfn{channels} (@pxref{Channels}) specified by one of the followings, in this order:"
  8946. msgstr ""
  8947. #. type: enumerate
  8948. #: guix-git/doc/guix.texi:4350
  8949. msgid "the @option{--channels} option;"
  8950. msgstr ""
  8951. #. type: enumerate
  8952. #: guix-git/doc/guix.texi:4352
  8953. msgid "the user's @file{~/.config/guix/channels.scm} file;"
  8954. msgstr ""
  8955. #. type: enumerate
  8956. #: guix-git/doc/guix.texi:4354
  8957. msgid "the system-wide @file{/etc/guix/channels.scm} file;"
  8958. msgstr ""
  8959. #. type: enumerate
  8960. #: guix-git/doc/guix.texi:4357
  8961. msgid "the built-in default channels specified in the @code{%default-channels} variable."
  8962. msgstr ""
  8963. #. type: Plain text
  8964. #: guix-git/doc/guix.texi:4364
  8965. 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."
  8966. msgstr ""
  8967. #. type: Plain text
  8968. #: guix-git/doc/guix.texi:4370
  8969. 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."
  8970. msgstr ""
  8971. #. type: Plain text
  8972. #: guix-git/doc/guix.texi:4376
  8973. 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}):"
  8974. msgstr ""
  8975. #. type: example
  8976. #: guix-git/doc/guix.texi:4380
  8977. #, no-wrap
  8978. msgid ""
  8979. "export PATH=\"$HOME/.config/guix/current/bin:$PATH\"\n"
  8980. "export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"\n"
  8981. msgstr ""
  8982. #. type: Plain text
  8983. #: guix-git/doc/guix.texi:4384
  8984. msgid "The @option{--list-generations} or @option{-l} option lists past generations produced by @command{guix pull}, along with details about their provenance:"
  8985. msgstr ""
  8986. #. type: example
  8987. #: guix-git/doc/guix.texi:4392
  8988. #, no-wrap
  8989. msgid ""
  8990. "$ guix pull -l\n"
  8991. "Generation 1\tJun 10 2018 00:18:18\n"
  8992. " guix 65956ad\n"
  8993. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8994. " branch: origin/master\n"
  8995. " commit: 65956ad3526ba09e1f7a40722c96c6ef7c0936fe\n"
  8996. "\n"
  8997. msgstr ""
  8998. #. type: example
  8999. #: guix-git/doc/guix.texi:4402
  9000. #, no-wrap
  9001. msgid ""
  9002. "Generation 2\tJun 11 2018 11:02:49\n"
  9003. " guix e0cc7f6\n"
  9004. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9005. " branch: origin/master\n"
  9006. " commit: e0cc7f669bec22c37481dd03a7941c7d11a64f1d\n"
  9007. " 2 new packages: keepalived, libnfnetlink\n"
  9008. " 6 packages upgraded: emacs-nix-mode@@2.0.4,\n"
  9009. " guile2.0-guix@@0.14.0-12.77a1aac, guix@@0.14.0-12.77a1aac,\n"
  9010. " heimdal@@7.5.0, milkytracker@@1.02.00, nix@@2.0.4\n"
  9011. "\n"
  9012. msgstr ""
  9013. #. type: example
  9014. #: guix-git/doc/guix.texi:4410
  9015. #, no-wrap
  9016. msgid ""
  9017. "Generation 3\tJun 13 2018 23:31:07\t(current)\n"
  9018. " guix 844cc1c\n"
  9019. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9020. " branch: origin/master\n"
  9021. " commit: 844cc1c8f394f03b404c5bb3aee086922373490c\n"
  9022. " 28 new packages: emacs-helm-ls-git, emacs-helm-mu, @dots{}\n"
  9023. " 69 packages upgraded: borg@@1.1.6, cheese@@3.28.0, @dots{}\n"
  9024. msgstr ""
  9025. #. type: Plain text
  9026. #: guix-git/doc/guix.texi:4414
  9027. msgid "@xref{Invoking guix describe, @command{guix describe}}, for other ways to describe the current status of Guix."
  9028. msgstr ""
  9029. #. type: Plain text
  9030. #: guix-git/doc/guix.texi:4419
  9031. 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:"
  9032. msgstr ""
  9033. #. type: example
  9034. #: guix-git/doc/guix.texi:4425
  9035. #, no-wrap
  9036. msgid ""
  9037. "$ guix pull --roll-back\n"
  9038. "switched from generation 3 to 2\n"
  9039. "$ guix pull --delete-generations=1\n"
  9040. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  9041. msgstr ""
  9042. #. type: Plain text
  9043. #: guix-git/doc/guix.texi:4429
  9044. msgid "You can also use @command{guix package} (@pxref{Invoking guix package}) to manage the profile by naming it explicitly:"
  9045. msgstr ""
  9046. #. type: example
  9047. #: guix-git/doc/guix.texi:4434
  9048. #, no-wrap
  9049. msgid ""
  9050. "$ guix package -p ~/.config/guix/current --roll-back\n"
  9051. "switched from generation 3 to 2\n"
  9052. "$ guix package -p ~/.config/guix/current --delete-generations=1\n"
  9053. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  9054. msgstr ""
  9055. #. type: Plain text
  9056. #: guix-git/doc/guix.texi:4438
  9057. msgid "The @command{guix pull} command is usually invoked with no arguments, but it supports the following options:"
  9058. msgstr ""
  9059. #. type: item
  9060. #: guix-git/doc/guix.texi:4440 guix-git/doc/guix.texi:4598
  9061. #, no-wrap
  9062. msgid "--url=@var{url}"
  9063. msgstr ""
  9064. #. type: itemx
  9065. #: guix-git/doc/guix.texi:4441 guix-git/doc/guix.texi:4599
  9066. #, no-wrap
  9067. msgid "--commit=@var{commit}"
  9068. msgstr ""
  9069. #. type: itemx
  9070. #: guix-git/doc/guix.texi:4442 guix-git/doc/guix.texi:4600
  9071. #, no-wrap
  9072. msgid "--branch=@var{branch}"
  9073. msgstr ""
  9074. #. type: table
  9075. #: guix-git/doc/guix.texi:4446
  9076. 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}."
  9077. msgstr ""
  9078. #. type: cindex
  9079. #: guix-git/doc/guix.texi:4447 guix-git/doc/guix.texi:5044
  9080. #, no-wrap
  9081. msgid "@file{channels.scm}, configuration file"
  9082. msgstr ""
  9083. #. type: cindex
  9084. #: guix-git/doc/guix.texi:4448 guix-git/doc/guix.texi:5045
  9085. #, no-wrap
  9086. msgid "configuration file for channels"
  9087. msgstr ""
  9088. #. type: table
  9089. #: guix-git/doc/guix.texi:4452
  9090. 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)."
  9091. msgstr ""
  9092. #. type: item
  9093. #: guix-git/doc/guix.texi:4453 guix-git/doc/guix.texi:4605
  9094. #, no-wrap
  9095. msgid "--channels=@var{file}"
  9096. msgstr ""
  9097. #. type: itemx
  9098. #: guix-git/doc/guix.texi:4454 guix-git/doc/guix.texi:4606
  9099. #, no-wrap
  9100. msgid "-C @var{file}"
  9101. msgstr ""
  9102. #. type: table
  9103. #: guix-git/doc/guix.texi:4460
  9104. 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."
  9105. msgstr ""
  9106. #. type: cindex
  9107. #: guix-git/doc/guix.texi:4461
  9108. #, fuzzy, no-wrap
  9109. msgid "channel news"
  9110. msgstr "通道"
  9111. #. type: item
  9112. #: guix-git/doc/guix.texi:4462
  9113. #, no-wrap
  9114. msgid "--news"
  9115. msgstr ""
  9116. #. type: itemx
  9117. #: guix-git/doc/guix.texi:4463 guix-git/doc/guix.texi:5851
  9118. #: guix-git/doc/guix.texi:6234 guix-git/doc/guix.texi:34752
  9119. #, no-wrap
  9120. msgid "-N"
  9121. msgstr ""
  9122. #. type: table
  9123. #: guix-git/doc/guix.texi:4467
  9124. 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})."
  9125. msgstr ""
  9126. #. type: table
  9127. #: guix-git/doc/guix.texi:4471
  9128. 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)."
  9129. msgstr ""
  9130. #. type: table
  9131. #: guix-git/doc/guix.texi:4478
  9132. 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})."
  9133. msgstr ""
  9134. #. type: table
  9135. #: guix-git/doc/guix.texi:4485
  9136. msgid "Roll back to the previous @dfn{generation} of @file{~/.config/guix/current}---i.e., undo the last transaction."
  9137. msgstr ""
  9138. #. type: table
  9139. #: guix-git/doc/guix.texi:4509
  9140. msgid "If the current generation matches, it is @emph{not} deleted."
  9141. msgstr ""
  9142. #. type: table
  9143. #: guix-git/doc/guix.texi:4515
  9144. msgid "@xref{Invoking guix describe}, for a way to display information about the current generation only."
  9145. msgstr ""
  9146. #. type: table
  9147. #: guix-git/doc/guix.texi:4519
  9148. msgid "Use @var{profile} instead of @file{~/.config/guix/current}."
  9149. msgstr ""
  9150. #. type: item
  9151. #: guix-git/doc/guix.texi:4520 guix-git/doc/guix.texi:10769
  9152. #, no-wrap
  9153. msgid "--dry-run"
  9154. msgstr ""
  9155. #. type: itemx
  9156. #: guix-git/doc/guix.texi:4521 guix-git/doc/guix.texi:10770
  9157. #: guix-git/doc/guix.texi:12737
  9158. #, no-wrap
  9159. msgid "-n"
  9160. msgstr ""
  9161. #. type: table
  9162. #: guix-git/doc/guix.texi:4524
  9163. msgid "Show which channel commit(s) would be used and what would be built or substituted but do not actually do it."
  9164. msgstr ""
  9165. #. type: item
  9166. #: guix-git/doc/guix.texi:4525 guix-git/doc/guix.texi:34771
  9167. #, no-wrap
  9168. msgid "--allow-downgrades"
  9169. msgstr ""
  9170. #. type: table
  9171. #: guix-git/doc/guix.texi:4528
  9172. msgid "Allow pulling older or unrelated revisions of channels than those currently in use."
  9173. msgstr ""
  9174. #. type: cindex
  9175. #: guix-git/doc/guix.texi:4529
  9176. #, no-wrap
  9177. msgid "downgrade attacks, protection against"
  9178. msgstr ""
  9179. #. type: table
  9180. #: guix-git/doc/guix.texi:4534
  9181. 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."
  9182. msgstr ""
  9183. #. type: quotation
  9184. #: guix-git/doc/guix.texi:4538 guix-git/doc/guix.texi:34785
  9185. msgid "Make sure you understand its security implications before using @option{--allow-downgrades}."
  9186. msgstr ""
  9187. #. type: item
  9188. #: guix-git/doc/guix.texi:4540
  9189. #, fuzzy, no-wrap
  9190. msgid "--disable-authentication"
  9191. msgstr "--disable-deduplication"
  9192. #. type: table
  9193. #: guix-git/doc/guix.texi:4542
  9194. msgid "Allow pulling channel code without authenticating it."
  9195. msgstr ""
  9196. #. type: cindex
  9197. #: guix-git/doc/guix.texi:4543 guix-git/doc/guix.texi:5190
  9198. #, fuzzy, no-wrap
  9199. msgid "authentication, of channel code"
  9200. msgstr "代码缩进"
  9201. #. type: table
  9202. #: guix-git/doc/guix.texi:4548
  9203. 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."
  9204. msgstr ""
  9205. #. type: quotation
  9206. #: guix-git/doc/guix.texi:4552
  9207. msgid "Make sure you understand its security implications before using @option{--disable-authentication}."
  9208. msgstr ""
  9209. #. type: itemx
  9210. #: guix-git/doc/guix.texi:4555 guix-git/doc/guix.texi:5834
  9211. #: guix-git/doc/guix.texi:6217 guix-git/doc/guix.texi:6617
  9212. #: guix-git/doc/guix.texi:11321 guix-git/doc/guix.texi:12882
  9213. #: guix-git/doc/guix.texi:13147 guix-git/doc/guix.texi:13824
  9214. #: guix-git/doc/guix.texi:34700
  9215. #, no-wrap
  9216. msgid "-s @var{system}"
  9217. msgstr ""
  9218. #. type: table
  9219. #: guix-git/doc/guix.texi:4558 guix-git/doc/guix.texi:6620
  9220. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of the system type of the build host."
  9221. msgstr ""
  9222. #. type: table
  9223. #: guix-git/doc/guix.texi:4562
  9224. msgid "Use the bootstrap Guile to build the latest Guix. This option is only useful to Guix developers."
  9225. msgstr ""
  9226. #. type: Plain text
  9227. #: guix-git/doc/guix.texi:4568
  9228. 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."
  9229. msgstr ""
  9230. #. type: Plain text
  9231. #: guix-git/doc/guix.texi:4571
  9232. msgid "In addition, @command{guix pull} supports all the common build options (@pxref{Common Build Options})."
  9233. msgstr ""
  9234. #. type: section
  9235. #: guix-git/doc/guix.texi:4573
  9236. #, fuzzy, no-wrap
  9237. msgid "Invoking @command{guix time-machine}"
  9238. msgstr "调用@command{guix-daemon}"
  9239. #. type: command{#1}
  9240. #: guix-git/doc/guix.texi:4575
  9241. #, no-wrap
  9242. msgid "guix time-machine"
  9243. msgstr ""
  9244. #. type: cindex
  9245. #: guix-git/doc/guix.texi:4576 guix-git/doc/guix.texi:5148
  9246. #, no-wrap
  9247. msgid "pinning, channels"
  9248. msgstr ""
  9249. #. type: cindex
  9250. #: guix-git/doc/guix.texi:4577 guix-git/doc/guix.texi:4759
  9251. #: guix-git/doc/guix.texi:5149
  9252. #, no-wrap
  9253. msgid "replicating Guix"
  9254. msgstr ""
  9255. #. type: cindex
  9256. #: guix-git/doc/guix.texi:4578 guix-git/doc/guix.texi:5150
  9257. #, no-wrap
  9258. msgid "reproducibility, of Guix"
  9259. msgstr ""
  9260. #. type: Plain text
  9261. #: guix-git/doc/guix.texi:4586
  9262. 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})."
  9263. msgstr ""
  9264. #. type: Plain text
  9265. #: guix-git/doc/guix.texi:4588 guix-git/doc/guix.texi:5610
  9266. #: guix-git/doc/guix.texi:5961 guix-git/doc/guix.texi:6740
  9267. #: guix-git/doc/guix.texi:10566 guix-git/doc/guix.texi:10689
  9268. #: guix-git/doc/guix.texi:11612 guix-git/doc/guix.texi:11689
  9269. #: guix-git/doc/guix.texi:12712 guix-git/doc/guix.texi:13205
  9270. #: guix-git/doc/guix.texi:13578 guix-git/doc/guix.texi:13667
  9271. #: guix-git/doc/guix.texi:13706 guix-git/doc/guix.texi:13803
  9272. msgid "The general syntax is:"
  9273. msgstr ""
  9274. #. type: example
  9275. #: guix-git/doc/guix.texi:4591
  9276. #, no-wrap
  9277. msgid "guix time-machine @var{options}@dots{} -- @var{command} @var {arg}@dots{}\n"
  9278. msgstr ""
  9279. #. type: Plain text
  9280. #: guix-git/doc/guix.texi:4596
  9281. 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}):"
  9282. msgstr ""
  9283. #. type: table
  9284. #: guix-git/doc/guix.texi:4604
  9285. 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}."
  9286. msgstr ""
  9287. #. type: table
  9288. #: guix-git/doc/guix.texi:4610
  9289. 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."
  9290. msgstr ""
  9291. #. type: Plain text
  9292. #: guix-git/doc/guix.texi:4614
  9293. 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"
  9294. msgstr ""
  9295. #. type: example
  9296. #: guix-git/doc/guix.texi:4617
  9297. #, no-wrap
  9298. msgid "guix time-machine -- build hello\n"
  9299. msgstr ""
  9300. #. type: Plain text
  9301. #: guix-git/doc/guix.texi:4622
  9302. 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!"
  9303. msgstr ""
  9304. #. type: Plain text
  9305. #: guix-git/doc/guix.texi:4626
  9306. 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})."
  9307. msgstr ""
  9308. #. type: quotation
  9309. #: guix-git/doc/guix.texi:4634
  9310. msgid "The functionality described here is a ``technology preview'' as of version @value{VERSION}. As such, the interface is subject to change."
  9311. msgstr ""
  9312. #. type: cindex
  9313. #: guix-git/doc/guix.texi:4636 guix-git/doc/guix.texi:10603
  9314. #, no-wrap
  9315. msgid "inferiors"
  9316. msgstr ""
  9317. #. type: cindex
  9318. #: guix-git/doc/guix.texi:4637
  9319. #, no-wrap
  9320. msgid "composition of Guix revisions"
  9321. msgstr ""
  9322. #. type: Plain text
  9323. #: guix-git/doc/guix.texi:4642
  9324. 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."
  9325. msgstr ""
  9326. #. type: cindex
  9327. #: guix-git/doc/guix.texi:4643 guix-git/doc/guix.texi:4708
  9328. #, no-wrap
  9329. msgid "inferior packages"
  9330. msgstr ""
  9331. #. type: Plain text
  9332. #: guix-git/doc/guix.texi:4649
  9333. 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}."
  9334. msgstr ""
  9335. #. type: Plain text
  9336. #: guix-git/doc/guix.texi:4659
  9337. 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:"
  9338. msgstr ""
  9339. #. type: lisp
  9340. #: guix-git/doc/guix.texi:4663
  9341. #, no-wrap
  9342. msgid ""
  9343. "(use-modules (guix inferior) (guix channels)\n"
  9344. " (srfi srfi-1)) ;for 'first'\n"
  9345. "\n"
  9346. msgstr ""
  9347. #. type: lisp
  9348. #: guix-git/doc/guix.texi:4672
  9349. #, no-wrap
  9350. msgid ""
  9351. "(define channels\n"
  9352. " ;; This is the old revision from which we want to\n"
  9353. " ;; extract guile-json.\n"
  9354. " (list (channel\n"
  9355. " (name 'guix)\n"
  9356. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9357. " (commit\n"
  9358. " \"65956ad3526ba09e1f7a40722c96c6ef7c0936fe\"))))\n"
  9359. "\n"
  9360. msgstr ""
  9361. #. type: lisp
  9362. #: guix-git/doc/guix.texi:4676
  9363. #, no-wrap
  9364. msgid ""
  9365. "(define inferior\n"
  9366. " ;; An inferior representing the above revision.\n"
  9367. " (inferior-for-channels channels))\n"
  9368. "\n"
  9369. msgstr ""
  9370. #. type: lisp
  9371. #: guix-git/doc/guix.texi:4682
  9372. #, no-wrap
  9373. msgid ""
  9374. ";; Now create a manifest with the current \"guile\" package\n"
  9375. ";; and the old \"guile-json\" package.\n"
  9376. "(packages->manifest\n"
  9377. " (list (first (lookup-inferior-packages inferior \"guile-json\"))\n"
  9378. " (specification->package \"guile\")))\n"
  9379. msgstr ""
  9380. #. type: Plain text
  9381. #: guix-git/doc/guix.texi:4687
  9382. 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."
  9383. msgstr ""
  9384. #. type: Plain text
  9385. #: guix-git/doc/guix.texi:4690
  9386. msgid "The @code{(guix inferior)} module provides the following procedures to open an inferior:"
  9387. msgstr ""
  9388. #. type: deffn
  9389. #: guix-git/doc/guix.texi:4691
  9390. #, no-wrap
  9391. msgid "{Scheme Procedure} inferior-for-channels @var{channels} @"
  9392. msgstr ""
  9393. #. type: deffn
  9394. #: guix-git/doc/guix.texi:4696
  9395. 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."
  9396. msgstr ""
  9397. #. type: deffn
  9398. #: guix-git/doc/guix.texi:4699
  9399. msgid "As a side effect, this procedure may build or substitute binaries for @var{channels}, which can take time."
  9400. msgstr ""
  9401. #. type: deffn
  9402. #: guix-git/doc/guix.texi:4701
  9403. #, no-wrap
  9404. msgid "{Scheme Procedure} open-inferior @var{directory} @"
  9405. msgstr ""
  9406. #. type: deffn
  9407. #: guix-git/doc/guix.texi:4706
  9408. 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."
  9409. msgstr ""
  9410. #. type: Plain text
  9411. #: guix-git/doc/guix.texi:4711
  9412. msgid "The procedures listed below allow you to obtain and manipulate inferior packages."
  9413. msgstr ""
  9414. #. type: deffn
  9415. #: guix-git/doc/guix.texi:4712
  9416. #, no-wrap
  9417. msgid "{Scheme Procedure} inferior-packages @var{inferior}"
  9418. msgstr ""
  9419. #. type: deffn
  9420. #: guix-git/doc/guix.texi:4714
  9421. msgid "Return the list of packages known to @var{inferior}."
  9422. msgstr ""
  9423. #. type: deffn
  9424. #: guix-git/doc/guix.texi:4716
  9425. #, no-wrap
  9426. msgid "{Scheme Procedure} lookup-inferior-packages @var{inferior} @var{name} @"
  9427. msgstr ""
  9428. #. type: deffn
  9429. #: guix-git/doc/guix.texi:4721
  9430. 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}."
  9431. msgstr ""
  9432. #. type: deffn
  9433. #: guix-git/doc/guix.texi:4723
  9434. #, no-wrap
  9435. msgid "{Scheme Procedure} inferior-package? @var{obj}"
  9436. msgstr ""
  9437. #. type: deffn
  9438. #: guix-git/doc/guix.texi:4725
  9439. msgid "Return true if @var{obj} is an inferior package."
  9440. msgstr ""
  9441. #. type: deffn
  9442. #: guix-git/doc/guix.texi:4727
  9443. #, no-wrap
  9444. msgid "{Scheme Procedure} inferior-package-name @var{package}"
  9445. msgstr ""
  9446. #. type: deffnx
  9447. #: guix-git/doc/guix.texi:4728
  9448. #, no-wrap
  9449. msgid "{Scheme Procedure} inferior-package-version @var{package}"
  9450. msgstr ""
  9451. #. type: deffnx
  9452. #: guix-git/doc/guix.texi:4729
  9453. #, no-wrap
  9454. msgid "{Scheme Procedure} inferior-package-synopsis @var{package}"
  9455. msgstr ""
  9456. #. type: deffnx
  9457. #: guix-git/doc/guix.texi:4730
  9458. #, no-wrap
  9459. msgid "{Scheme Procedure} inferior-package-description @var{package}"
  9460. msgstr ""
  9461. #. type: deffnx
  9462. #: guix-git/doc/guix.texi:4731
  9463. #, no-wrap
  9464. msgid "{Scheme Procedure} inferior-package-home-page @var{package}"
  9465. msgstr ""
  9466. #. type: deffnx
  9467. #: guix-git/doc/guix.texi:4732
  9468. #, no-wrap
  9469. msgid "{Scheme Procedure} inferior-package-location @var{package}"
  9470. msgstr ""
  9471. #. type: deffnx
  9472. #: guix-git/doc/guix.texi:4733
  9473. #, no-wrap
  9474. msgid "{Scheme Procedure} inferior-package-inputs @var{package}"
  9475. msgstr ""
  9476. #. type: deffnx
  9477. #: guix-git/doc/guix.texi:4734
  9478. #, no-wrap
  9479. msgid "{Scheme Procedure} inferior-package-native-inputs @var{package}"
  9480. msgstr ""
  9481. #. type: deffnx
  9482. #: guix-git/doc/guix.texi:4735
  9483. #, no-wrap
  9484. msgid "{Scheme Procedure} inferior-package-propagated-inputs @var{package}"
  9485. msgstr ""
  9486. #. type: deffnx
  9487. #: guix-git/doc/guix.texi:4736
  9488. #, no-wrap
  9489. msgid "{Scheme Procedure} inferior-package-transitive-propagated-inputs @var{package}"
  9490. msgstr ""
  9491. #. type: deffnx
  9492. #: guix-git/doc/guix.texi:4737
  9493. #, no-wrap
  9494. msgid "{Scheme Procedure} inferior-package-native-search-paths @var{package}"
  9495. msgstr ""
  9496. #. type: deffnx
  9497. #: guix-git/doc/guix.texi:4738
  9498. #, no-wrap
  9499. msgid "{Scheme Procedure} inferior-package-transitive-native-search-paths @var{package}"
  9500. msgstr ""
  9501. #. type: deffnx
  9502. #: guix-git/doc/guix.texi:4739
  9503. #, no-wrap
  9504. msgid "{Scheme Procedure} inferior-package-search-paths @var{package}"
  9505. msgstr ""
  9506. #. type: deffn
  9507. #: guix-git/doc/guix.texi:4744
  9508. 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."
  9509. msgstr ""
  9510. #. type: Plain text
  9511. #: guix-git/doc/guix.texi:4754
  9512. 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."
  9513. msgstr ""
  9514. #. type: section
  9515. #: guix-git/doc/guix.texi:4756
  9516. #, no-wrap
  9517. msgid "Invoking @command{guix describe}"
  9518. msgstr ""
  9519. #. type: Plain text
  9520. #: guix-git/doc/guix.texi:4767
  9521. 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."
  9522. msgstr ""
  9523. #. type: Plain text
  9524. #: guix-git/doc/guix.texi:4771
  9525. 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}):"
  9526. msgstr ""
  9527. #. type: example
  9528. #: guix-git/doc/guix.texi:4779
  9529. #, no-wrap
  9530. msgid ""
  9531. "$ guix describe\n"
  9532. "Generation 10\tSep 03 2018 17:32:44\t(current)\n"
  9533. " guix e0fa68c\n"
  9534. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9535. " branch: master\n"
  9536. " commit: e0fa68c7718fffd33d81af415279d6ddb518f727\n"
  9537. msgstr ""
  9538. #. type: Plain text
  9539. #: guix-git/doc/guix.texi:4788
  9540. 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."
  9541. msgstr ""
  9542. #. type: Plain text
  9543. #: guix-git/doc/guix.texi:4791
  9544. 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:"
  9545. msgstr ""
  9546. #. type: example
  9547. #: guix-git/doc/guix.texi:4804
  9548. #, no-wrap
  9549. msgid ""
  9550. "$ guix describe -f channels\n"
  9551. "(list (channel\n"
  9552. " (name 'guix)\n"
  9553. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9554. " (commit\n"
  9555. " \"e0fa68c7718fffd33d81af415279d6ddb518f727\")\n"
  9556. " (introduction\n"
  9557. " (make-channel-introduction\n"
  9558. " \"9edb3f66fd807b096b48283debdcddccfea34bad\"\n"
  9559. " (openpgp-fingerprint\n"
  9560. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\")))))\n"
  9561. msgstr ""
  9562. #. type: Plain text
  9563. #: guix-git/doc/guix.texi:4813
  9564. 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!"
  9565. msgstr ""
  9566. #. type: Plain text
  9567. #: guix-git/doc/guix.texi:4816
  9568. msgid "The details of the options supported by @command{guix describe} are as follows:"
  9569. msgstr ""
  9570. #. type: item
  9571. #: guix-git/doc/guix.texi:4818 guix-git/doc/guix.texi:6418
  9572. #: guix-git/doc/guix.texi:13936
  9573. #, no-wrap
  9574. msgid "--format=@var{format}"
  9575. msgstr ""
  9576. #. type: itemx
  9577. #: guix-git/doc/guix.texi:4819 guix-git/doc/guix.texi:6419
  9578. #: guix-git/doc/guix.texi:13937
  9579. #, no-wrap
  9580. msgid "-f @var{format}"
  9581. msgstr ""
  9582. #. type: table
  9583. #: guix-git/doc/guix.texi:4821 guix-git/doc/guix.texi:13939
  9584. msgid "Produce output in the specified @var{format}, one of:"
  9585. msgstr ""
  9586. #. type: item
  9587. #: guix-git/doc/guix.texi:4823
  9588. #, no-wrap
  9589. msgid "human"
  9590. msgstr ""
  9591. #. type: table
  9592. #: guix-git/doc/guix.texi:4825
  9593. msgid "produce human-readable output;"
  9594. msgstr ""
  9595. #. type: cindex
  9596. #: guix-git/doc/guix.texi:4825 guix-git/doc/guix.texi:5043
  9597. #, no-wrap
  9598. msgid "channels"
  9599. msgstr ""
  9600. #. type: table
  9601. #: guix-git/doc/guix.texi:4829
  9602. 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});"
  9603. msgstr ""
  9604. #. type: item
  9605. #: guix-git/doc/guix.texi:4829
  9606. #, no-wrap
  9607. msgid "channels-sans-intro"
  9608. msgstr ""
  9609. #. type: table
  9610. #: guix-git/doc/guix.texi:4835
  9611. 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;"
  9612. msgstr ""
  9613. #. type: item
  9614. #: guix-git/doc/guix.texi:4835 guix-git/doc/guix.texi:11906
  9615. #, no-wrap
  9616. msgid "json"
  9617. msgstr ""
  9618. #. type: cindex
  9619. #: guix-git/doc/guix.texi:4836
  9620. #, no-wrap
  9621. msgid "JSON"
  9622. msgstr ""
  9623. #. type: table
  9624. #: guix-git/doc/guix.texi:4838
  9625. msgid "produce a list of channel specifications in JSON format;"
  9626. msgstr ""
  9627. #. type: item
  9628. #: guix-git/doc/guix.texi:4838 guix-git/doc/guix.texi:13941
  9629. #, no-wrap
  9630. msgid "recutils"
  9631. msgstr ""
  9632. #. type: table
  9633. #: guix-git/doc/guix.texi:4840
  9634. msgid "produce a list of channel specifications in Recutils format."
  9635. msgstr ""
  9636. #. type: item
  9637. #: guix-git/doc/guix.texi:4842
  9638. #, no-wrap
  9639. msgid "--list-formats"
  9640. msgstr ""
  9641. #. type: table
  9642. #: guix-git/doc/guix.texi:4844
  9643. msgid "Display available formats for @option{--format} option."
  9644. msgstr ""
  9645. #. type: table
  9646. #: guix-git/doc/guix.texi:4848
  9647. msgid "Display information about @var{profile}."
  9648. msgstr ""
  9649. #. type: section
  9650. #: guix-git/doc/guix.texi:4851
  9651. #, no-wrap
  9652. msgid "Invoking @command{guix archive}"
  9653. msgstr ""
  9654. #. type: command{#1}
  9655. #: guix-git/doc/guix.texi:4853
  9656. #, no-wrap
  9657. msgid "guix archive"
  9658. msgstr ""
  9659. #. type: cindex
  9660. #: guix-git/doc/guix.texi:4854
  9661. #, no-wrap
  9662. msgid "archive"
  9663. msgstr "归档"
  9664. #. type: Plain text
  9665. #: guix-git/doc/guix.texi:4860
  9666. 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."
  9667. msgstr ""
  9668. #. type: quotation
  9669. #: guix-git/doc/guix.texi:4864
  9670. msgid "If you're looking for a way to produce archives in a format suitable for tools other than Guix, @pxref{Invoking guix pack}."
  9671. msgstr ""
  9672. #. type: cindex
  9673. #: guix-git/doc/guix.texi:4866
  9674. #, no-wrap
  9675. msgid "exporting store items"
  9676. msgstr ""
  9677. #. type: Plain text
  9678. #: guix-git/doc/guix.texi:4868
  9679. msgid "To export store files as an archive to standard output, run:"
  9680. msgstr ""
  9681. #. type: example
  9682. #: guix-git/doc/guix.texi:4871
  9683. #, no-wrap
  9684. msgid "guix archive --export @var{options} @var{specifications}...\n"
  9685. msgstr ""
  9686. #. type: Plain text
  9687. #: guix-git/doc/guix.texi:4878
  9688. 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}:"
  9689. msgstr ""
  9690. #. type: example
  9691. #: guix-git/doc/guix.texi:4881
  9692. #, no-wrap
  9693. msgid "guix archive --export git:gui /gnu/store/...-emacs-24.3 > great.nar\n"
  9694. msgstr ""
  9695. #. type: Plain text
  9696. #: guix-git/doc/guix.texi:4886
  9697. 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})."
  9698. msgstr ""
  9699. #. type: Plain text
  9700. #: guix-git/doc/guix.texi:4889
  9701. msgid "To transfer the @code{emacs} package to a machine connected over SSH, one would run:"
  9702. msgstr ""
  9703. #. type: example
  9704. #: guix-git/doc/guix.texi:4892
  9705. #, no-wrap
  9706. msgid "guix archive --export -r emacs | ssh the-machine guix archive --import\n"
  9707. msgstr ""
  9708. #. type: Plain text
  9709. #: guix-git/doc/guix.texi:4897
  9710. msgid "Similarly, a complete user profile may be transferred from one machine to another like this:"
  9711. msgstr ""
  9712. #. type: example
  9713. #: guix-git/doc/guix.texi:4901
  9714. #, no-wrap
  9715. msgid ""
  9716. "guix archive --export -r $(readlink -f ~/.guix-profile) | \\\n"
  9717. " ssh the-machine guix archive --import\n"
  9718. msgstr ""
  9719. #. type: Plain text
  9720. #: guix-git/doc/guix.texi:4911
  9721. 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})."
  9722. msgstr ""
  9723. #. type: cindex
  9724. #: guix-git/doc/guix.texi:4912
  9725. #, no-wrap
  9726. msgid "nar, archive format"
  9727. msgstr ""
  9728. #. type: cindex
  9729. #: guix-git/doc/guix.texi:4913
  9730. #, no-wrap
  9731. msgid "normalized archive (nar)"
  9732. msgstr ""
  9733. #. type: cindex
  9734. #: guix-git/doc/guix.texi:4914
  9735. #, no-wrap
  9736. msgid "nar bundle, archive format"
  9737. msgstr ""
  9738. #. type: Plain text
  9739. #: guix-git/doc/guix.texi:4919
  9740. 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}."
  9741. msgstr ""
  9742. #. type: Plain text
  9743. #: guix-git/doc/guix.texi:4929
  9744. 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."
  9745. msgstr ""
  9746. #. type: Plain text
  9747. #: guix-git/doc/guix.texi:4933
  9748. 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."
  9749. msgstr ""
  9750. #. type: Plain text
  9751. #: guix-git/doc/guix.texi:4939
  9752. 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."
  9753. msgstr ""
  9754. #. type: Plain text
  9755. #: guix-git/doc/guix.texi:4941
  9756. msgid "The main options are:"
  9757. msgstr ""
  9758. #. type: item
  9759. #: guix-git/doc/guix.texi:4943
  9760. #, no-wrap
  9761. msgid "--export"
  9762. msgstr ""
  9763. #. type: table
  9764. #: guix-git/doc/guix.texi:4946
  9765. msgid "Export the specified store files or packages (see below). Write the resulting archive to the standard output."
  9766. msgstr ""
  9767. #. type: table
  9768. #: guix-git/doc/guix.texi:4949
  9769. msgid "Dependencies are @emph{not} included in the output, unless @option{--recursive} is passed."
  9770. msgstr ""
  9771. #. type: itemx
  9772. #: guix-git/doc/guix.texi:4950 guix-git/doc/guix.texi:11645
  9773. #: guix-git/doc/guix.texi:11753 guix-git/doc/guix.texi:11778
  9774. #: guix-git/doc/guix.texi:11810 guix-git/doc/guix.texi:11981
  9775. #: guix-git/doc/guix.texi:12022 guix-git/doc/guix.texi:12073
  9776. #: guix-git/doc/guix.texi:12098 guix-git/doc/guix.texi:12114
  9777. #: guix-git/doc/guix.texi:12162 guix-git/doc/guix.texi:12198
  9778. #, no-wrap
  9779. msgid "-r"
  9780. msgstr ""
  9781. #. type: item
  9782. #: guix-git/doc/guix.texi:4951 guix-git/doc/guix.texi:11644
  9783. #: guix-git/doc/guix.texi:11752 guix-git/doc/guix.texi:11777
  9784. #: guix-git/doc/guix.texi:11809 guix-git/doc/guix.texi:11980
  9785. #: guix-git/doc/guix.texi:12021 guix-git/doc/guix.texi:12072
  9786. #: guix-git/doc/guix.texi:12097 guix-git/doc/guix.texi:12113
  9787. #: guix-git/doc/guix.texi:12161 guix-git/doc/guix.texi:12197
  9788. #: guix-git/doc/guix.texi:12246
  9789. #, no-wrap
  9790. msgid "--recursive"
  9791. msgstr ""
  9792. #. type: table
  9793. #: guix-git/doc/guix.texi:4956
  9794. 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."
  9795. msgstr ""
  9796. #. type: item
  9797. #: guix-git/doc/guix.texi:4957
  9798. #, no-wrap
  9799. msgid "--import"
  9800. msgstr ""
  9801. #. type: table
  9802. #: guix-git/doc/guix.texi:4962
  9803. 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)."
  9804. msgstr ""
  9805. #. type: item
  9806. #: guix-git/doc/guix.texi:4963
  9807. #, no-wrap
  9808. msgid "--missing"
  9809. msgstr ""
  9810. #. type: table
  9811. #: guix-git/doc/guix.texi:4967
  9812. 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."
  9813. msgstr ""
  9814. #. type: item
  9815. #: guix-git/doc/guix.texi:4968
  9816. #, no-wrap
  9817. msgid "--generate-key[=@var{parameters}]"
  9818. msgstr ""
  9819. #. type: cindex
  9820. #: guix-git/doc/guix.texi:4969
  9821. #, no-wrap
  9822. msgid "signing, archives"
  9823. msgstr ""
  9824. #. type: table
  9825. #: guix-git/doc/guix.texi:4976
  9826. 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."
  9827. msgstr ""
  9828. #. type: table
  9829. #: guix-git/doc/guix.texi:4986
  9830. 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})."
  9831. msgstr ""
  9832. #. type: item
  9833. #: guix-git/doc/guix.texi:4987
  9834. #, no-wrap
  9835. msgid "--authorize"
  9836. msgstr ""
  9837. #. type: cindex
  9838. #: guix-git/doc/guix.texi:4988
  9839. #, no-wrap
  9840. msgid "authorizing, archives"
  9841. msgstr ""
  9842. #. type: table
  9843. #: guix-git/doc/guix.texi:4992
  9844. 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."
  9845. msgstr ""
  9846. #. type: table
  9847. #: guix-git/doc/guix.texi:4999
  9848. 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)}."
  9849. msgstr ""
  9850. #. type: item
  9851. #: guix-git/doc/guix.texi:5000
  9852. #, no-wrap
  9853. msgid "--extract=@var{directory}"
  9854. msgstr ""
  9855. #. type: itemx
  9856. #: guix-git/doc/guix.texi:5001
  9857. #, no-wrap
  9858. msgid "-x @var{directory}"
  9859. msgstr ""
  9860. #. type: table
  9861. #: guix-git/doc/guix.texi:5005
  9862. 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."
  9863. msgstr ""
  9864. #. type: table
  9865. #: guix-git/doc/guix.texi:5008
  9866. msgid "For example, the following command extracts the substitute for Emacs served by @code{@value{SUBSTITUTE-SERVER-1}} to @file{/tmp/emacs}:"
  9867. msgstr ""
  9868. #. type: example
  9869. #: guix-git/doc/guix.texi:5013
  9870. #, no-wrap
  9871. msgid ""
  9872. "$ wget -O - \\\n"
  9873. " https://@value{SUBSTITUTE-SERVER-1}/nar/gzip/@dots{}-emacs-24.5 \\\n"
  9874. " | gunzip | guix archive -x /tmp/emacs\n"
  9875. msgstr ""
  9876. #. type: table
  9877. #: guix-git/doc/guix.texi:5020
  9878. 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."
  9879. msgstr ""
  9880. #. type: table
  9881. #: guix-git/doc/guix.texi:5024
  9882. msgid "The primary purpose of this operation is to facilitate inspection of archive contents coming from possibly untrusted substitute servers (@pxref{Invoking guix challenge})."
  9883. msgstr ""
  9884. #. type: item
  9885. #: guix-git/doc/guix.texi:5025
  9886. #, no-wrap
  9887. msgid "--list"
  9888. msgstr ""
  9889. #. type: itemx
  9890. #: guix-git/doc/guix.texi:5026 guix-git/doc/guix.texi:11968
  9891. #: guix-git/doc/guix.texi:12015
  9892. #, no-wrap
  9893. msgid "-t"
  9894. msgstr ""
  9895. #. type: table
  9896. #: guix-git/doc/guix.texi:5030
  9897. 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:"
  9898. msgstr ""
  9899. #. type: example
  9900. #: guix-git/doc/guix.texi:5035
  9901. #, no-wrap
  9902. msgid ""
  9903. "$ wget -O - \\\n"
  9904. " https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-emacs-26.3 \\\n"
  9905. " | lzip -d | guix archive -t\n"
  9906. msgstr ""
  9907. #. type: cindex
  9908. #: guix-git/doc/guix.texi:5046
  9909. #, no-wrap
  9910. msgid "@command{guix pull}, configuration file"
  9911. msgstr ""
  9912. #. type: cindex
  9913. #: guix-git/doc/guix.texi:5047
  9914. #, no-wrap
  9915. msgid "configuration of @command{guix pull}"
  9916. msgstr ""
  9917. #. type: Plain text
  9918. #: guix-git/doc/guix.texi:5058
  9919. 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."
  9920. msgstr ""
  9921. #. type: cindex
  9922. #: guix-git/doc/guix.texi:5076
  9923. #, no-wrap
  9924. msgid "extending the package collection (channels)"
  9925. msgstr ""
  9926. #. type: cindex
  9927. #: guix-git/doc/guix.texi:5077
  9928. #, no-wrap
  9929. msgid "variant packages (channels)"
  9930. msgstr ""
  9931. #. type: Plain text
  9932. #: guix-git/doc/guix.texi:5081
  9933. 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):"
  9934. msgstr ""
  9935. #. type: vindex
  9936. #: guix-git/doc/guix.texi:5082
  9937. #, no-wrap
  9938. msgid "%default-channels"
  9939. msgstr ""
  9940. #. type: lisp
  9941. #: guix-git/doc/guix.texi:5089
  9942. #, no-wrap
  9943. msgid ""
  9944. ";; Add variant packages to those Guix provides.\n"
  9945. "(cons (channel\n"
  9946. " (name 'variant-packages)\n"
  9947. " (url \"https://example.org/variant-packages.git\"))\n"
  9948. " %default-channels)\n"
  9949. msgstr ""
  9950. #. type: Plain text
  9951. #: guix-git/doc/guix.texi:5099
  9952. 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:"
  9953. msgstr ""
  9954. #. type: example
  9955. #: guix-git/doc/guix.texi:5114
  9956. #, no-wrap
  9957. msgid ""
  9958. "$ guix pull --list-generations\n"
  9959. "@dots{}\n"
  9960. "Generation 19\tAug 27 2018 16:20:48\n"
  9961. " guix d894ab8\n"
  9962. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9963. " branch: master\n"
  9964. " commit: d894ab8e9bfabcefa6c49d9ba2e834dd5a73a300\n"
  9965. " variant-packages dd3df5e\n"
  9966. " repository URL: https://example.org/variant-packages.git\n"
  9967. " branch: master\n"
  9968. " commit: dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\n"
  9969. " 11 new packages: variant-gimp, variant-emacs-with-cool-features, @dots{}\n"
  9970. " 4 packages upgraded: emacs-racket-mode@@0.0.2-2.1b78827, @dots{}\n"
  9971. msgstr ""
  9972. #. type: Plain text
  9973. #: guix-git/doc/guix.texi:5122
  9974. 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."
  9975. msgstr ""
  9976. #. type: Plain text
  9977. #: guix-git/doc/guix.texi:5131
  9978. 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:"
  9979. msgstr ""
  9980. #. type: lisp
  9981. #: guix-git/doc/guix.texi:5138
  9982. #, no-wrap
  9983. msgid ""
  9984. ";; Tell 'guix pull' to use another repo.\n"
  9985. "(list (channel\n"
  9986. " (name 'guix)\n"
  9987. " (url \"https://example.org/another-guix.git\")\n"
  9988. " (branch \"super-hacks\")))\n"
  9989. msgstr ""
  9990. #. type: Plain text
  9991. #: guix-git/doc/guix.texi:5144
  9992. 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})."
  9993. msgstr ""
  9994. #. type: Plain text
  9995. #: guix-git/doc/guix.texi:5155
  9996. 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:"
  9997. msgstr ""
  9998. #. type: lisp
  9999. #: guix-git/doc/guix.texi:5166
  10000. #, no-wrap
  10001. msgid ""
  10002. ";; Deploy specific commits of my channels of interest.\n"
  10003. "(list (channel\n"
  10004. " (name 'guix)\n"
  10005. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  10006. " (commit \"6298c3ffd9654d3231a6f25390b056483e8f407c\"))\n"
  10007. " (channel\n"
  10008. " (name 'variant-packages)\n"
  10009. " (url \"https://example.org/variant-packages.git\")\n"
  10010. " (commit \"dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\")))\n"
  10011. msgstr ""
  10012. #. type: Plain text
  10013. #: guix-git/doc/guix.texi:5173
  10014. 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})."
  10015. msgstr ""
  10016. #. type: Plain text
  10017. #: guix-git/doc/guix.texi:5180
  10018. 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."
  10019. msgstr ""
  10020. #. type: Plain text
  10021. #: guix-git/doc/guix.texi:5185
  10022. 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."
  10023. msgstr ""
  10024. #. type: anchor{#1}
  10025. #: guix-git/doc/guix.texi:5190
  10026. msgid "channel-authentication"
  10027. msgstr ""
  10028. #. type: Plain text
  10029. #: guix-git/doc/guix.texi:5196
  10030. 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."
  10031. msgstr ""
  10032. #. type: Plain text
  10033. #: guix-git/doc/guix.texi:5201
  10034. 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:"
  10035. msgstr ""
  10036. #. type: lisp
  10037. #: guix-git/doc/guix.texi:5211
  10038. #, no-wrap
  10039. msgid ""
  10040. "(channel\n"
  10041. " (name 'some-channel)\n"
  10042. " (url \"https://example.org/some-channel.git\")\n"
  10043. " (introduction\n"
  10044. " (make-channel-introduction\n"
  10045. " \"6f0d8cc0d88abb59c324b2990bfee2876016bb86\"\n"
  10046. " (openpgp-fingerprint\n"
  10047. " \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  10048. msgstr ""
  10049. #. type: Plain text
  10050. #: guix-git/doc/guix.texi:5217
  10051. 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{}}."
  10052. msgstr ""
  10053. #. type: Plain text
  10054. #: guix-git/doc/guix.texi:5223
  10055. 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."
  10056. msgstr ""
  10057. #. type: Plain text
  10058. #: guix-git/doc/guix.texi:5225
  10059. msgid "If you're curious about the authentication mechanics, read on!"
  10060. msgstr ""
  10061. #. type: Plain text
  10062. #: guix-git/doc/guix.texi:5236
  10063. 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}."
  10064. msgstr ""
  10065. #. type: lisp
  10066. #: guix-git/doc/guix.texi:5239
  10067. #, no-wrap
  10068. msgid ""
  10069. "(use-modules (guix ci))\n"
  10070. "\n"
  10071. msgstr ""
  10072. #. type: lisp
  10073. #: guix-git/doc/guix.texi:5243
  10074. #, no-wrap
  10075. msgid ""
  10076. "(list (channel-with-substitutes-available\n"
  10077. " %default-guix-channel\n"
  10078. " \"https://ci.guix.gnu.org\"))\n"
  10079. msgstr ""
  10080. #. type: Plain text
  10081. #: guix-git/doc/guix.texi:5250
  10082. 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."
  10083. msgstr ""
  10084. #. type: cindex
  10085. #: guix-git/doc/guix.texi:5254
  10086. #, no-wrap
  10087. msgid "personal packages (channels)"
  10088. msgstr ""
  10089. #. type: cindex
  10090. #: guix-git/doc/guix.texi:5255
  10091. #, no-wrap
  10092. msgid "channels, for personal packages"
  10093. msgstr ""
  10094. #. type: Plain text
  10095. #: guix-git/doc/guix.texi:5263
  10096. 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?"
  10097. msgstr ""
  10098. #. type: quotation
  10099. #: guix-git/doc/guix.texi:5271
  10100. 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:"
  10101. msgstr ""
  10102. #. type: itemize
  10103. #: guix-git/doc/guix.texi:5279
  10104. 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."
  10105. msgstr ""
  10106. #. type: itemize
  10107. #: guix-git/doc/guix.texi:5288
  10108. 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."
  10109. msgstr ""
  10110. #. type: itemize
  10111. #: guix-git/doc/guix.texi:5292
  10112. 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."
  10113. msgstr ""
  10114. #. type: quotation
  10115. #: guix-git/doc/guix.texi:5299
  10116. 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."
  10117. msgstr ""
  10118. #. type: Plain text
  10119. #: guix-git/doc/guix.texi:5311
  10120. 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})."
  10121. msgstr ""
  10122. #. type: Plain text
  10123. #: guix-git/doc/guix.texi:5316
  10124. 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."
  10125. msgstr ""
  10126. #. type: cindex
  10127. #: guix-git/doc/guix.texi:5321
  10128. #, no-wrap
  10129. msgid "subdirectory, channels"
  10130. msgstr ""
  10131. #. type: Plain text
  10132. #: guix-git/doc/guix.texi:5325
  10133. 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:"
  10134. msgstr ""
  10135. #. type: lisp
  10136. #: guix-git/doc/guix.texi:5330
  10137. #, no-wrap
  10138. msgid ""
  10139. "(channel\n"
  10140. " (version 0)\n"
  10141. " (directory \"guix\"))\n"
  10142. msgstr ""
  10143. #. type: cindex
  10144. #: guix-git/doc/guix.texi:5335
  10145. #, no-wrap
  10146. msgid "dependencies, channels"
  10147. msgstr ""
  10148. #. type: cindex
  10149. #: guix-git/doc/guix.texi:5336
  10150. #, no-wrap
  10151. msgid "meta-data, channels"
  10152. msgstr ""
  10153. #. type: Plain text
  10154. #: guix-git/doc/guix.texi:5341
  10155. 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."
  10156. msgstr ""
  10157. #. type: Plain text
  10158. #: guix-git/doc/guix.texi:5343
  10159. msgid "The meta-data file should contain a simple S-expression like this:"
  10160. msgstr ""
  10161. #. type: lisp
  10162. #: guix-git/doc/guix.texi:5351
  10163. #, no-wrap
  10164. msgid ""
  10165. "(channel\n"
  10166. " (version 0)\n"
  10167. " (dependencies\n"
  10168. " (channel\n"
  10169. " (name some-collection)\n"
  10170. " (url \"https://example.org/first-collection.git\")\n"
  10171. "\n"
  10172. msgstr ""
  10173. #. type: lisp
  10174. #: guix-git/doc/guix.texi:5363
  10175. #, no-wrap
  10176. msgid ""
  10177. " ;; The 'introduction' bit below is optional: you would\n"
  10178. " ;; provide it for dependencies that can be authenticated.\n"
  10179. " (introduction\n"
  10180. " (channel-introduction\n"
  10181. " (version 0)\n"
  10182. " (commit \"a8883b58dc82e167c96506cf05095f37c2c2c6cd\")\n"
  10183. " (signer \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  10184. " (channel\n"
  10185. " (name some-other-collection)\n"
  10186. " (url \"https://example.org/second-collection.git\")\n"
  10187. " (branch \"testing\"))))\n"
  10188. msgstr ""
  10189. #. type: Plain text
  10190. #: guix-git/doc/guix.texi:5369
  10191. 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."
  10192. msgstr ""
  10193. #. type: Plain text
  10194. #: guix-git/doc/guix.texi:5373
  10195. 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."
  10196. msgstr ""
  10197. #. type: cindex
  10198. #: guix-git/doc/guix.texi:5377
  10199. #, no-wrap
  10200. msgid "channel authorizations"
  10201. msgstr ""
  10202. #. type: anchor{#1}
  10203. #: guix-git/doc/guix.texi:5391
  10204. msgid "channel-authorizations"
  10205. msgstr ""
  10206. #. type: Plain text
  10207. #: guix-git/doc/guix.texi:5391
  10208. 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:"
  10209. msgstr ""
  10210. #. type: lisp
  10211. #: guix-git/doc/guix.texi:5394
  10212. #, no-wrap
  10213. msgid ""
  10214. ";; Example '.guix-authorizations' file.\n"
  10215. "\n"
  10216. msgstr ""
  10217. #. type: lisp
  10218. #: guix-git/doc/guix.texi:5397
  10219. #, no-wrap
  10220. msgid ""
  10221. "(authorizations\n"
  10222. " (version 0) ;current file format version\n"
  10223. "\n"
  10224. msgstr ""
  10225. #. type: lisp
  10226. #: guix-git/doc/guix.texi:5404
  10227. #, no-wrap
  10228. msgid ""
  10229. " ((\"AD17 A21E F8AE D8F1 CC02 DBD9 F8AE D8F1 765C 61E3\"\n"
  10230. " (name \"alice\"))\n"
  10231. " (\"2A39 3FFF 68F4 EF7A 3D29 12AF 68F4 EF7A 22FB B2D5\"\n"
  10232. " (name \"bob\"))\n"
  10233. " (\"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"\n"
  10234. " (name \"charlie\"))))\n"
  10235. msgstr ""
  10236. #. type: Plain text
  10237. #: guix-git/doc/guix.texi:5408
  10238. msgid "Each fingerprint is followed by optional key/value pairs, as in the example above. Currently these key/value pairs are ignored."
  10239. msgstr ""
  10240. #. type: Plain text
  10241. #: guix-git/doc/guix.texi:5413
  10242. 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?"
  10243. msgstr ""
  10244. #. type: cindex
  10245. #: guix-git/doc/guix.texi:5414
  10246. #, fuzzy, no-wrap
  10247. msgid "channel introduction"
  10248. msgstr "介绍"
  10249. #. type: Plain text
  10250. #: guix-git/doc/guix.texi:5421
  10251. 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."
  10252. msgstr ""
  10253. #. type: Plain text
  10254. #: guix-git/doc/guix.texi:5428
  10255. 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:"
  10256. msgstr ""
  10257. #. type: lisp
  10258. #: guix-git/doc/guix.texi:5433
  10259. #, no-wrap
  10260. msgid ""
  10261. "(channel\n"
  10262. " (version 0)\n"
  10263. " (keyring-reference \"my-keyring-branch\"))\n"
  10264. msgstr ""
  10265. #. type: Plain text
  10266. #: guix-git/doc/guix.texi:5437
  10267. msgid "To summarize, as the author of a channel, there are three things you have to do to allow users to authenticate your code:"
  10268. msgstr ""
  10269. #. type: enumerate
  10270. #: guix-git/doc/guix.texi:5443
  10271. 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})."
  10272. msgstr ""
  10273. #. type: enumerate
  10274. #: guix-git/doc/guix.texi:5448
  10275. 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.)"
  10276. msgstr ""
  10277. #. type: enumerate
  10278. #: guix-git/doc/guix.texi:5454
  10279. 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."
  10280. msgstr ""
  10281. #. type: Plain text
  10282. #: guix-git/doc/guix.texi:5459
  10283. 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:"
  10284. msgstr ""
  10285. #. type: example
  10286. #: guix-git/doc/guix.texi:5462
  10287. #, no-wrap
  10288. msgid "guix git authenticate @var{commit} @var{signer}\n"
  10289. msgstr ""
  10290. #. type: Plain text
  10291. #: guix-git/doc/guix.texi:5467
  10292. msgid "where @var{commit} and @var{signer} are your channel introduction. @xref{Invoking guix git authenticate}, for details."
  10293. msgstr ""
  10294. #. type: Plain text
  10295. #: guix-git/doc/guix.texi:5474
  10296. 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."
  10297. msgstr ""
  10298. #. type: cindex
  10299. #: guix-git/doc/guix.texi:5478
  10300. #, no-wrap
  10301. msgid "primary URL, channels"
  10302. msgstr ""
  10303. #. type: Plain text
  10304. #: guix-git/doc/guix.texi:5481
  10305. msgid "Channel authors can indicate the primary URL of their channel's Git repository in the @file{.guix-channel} file, like so:"
  10306. msgstr ""
  10307. #. type: lisp
  10308. #: guix-git/doc/guix.texi:5486
  10309. #, no-wrap
  10310. msgid ""
  10311. "(channel\n"
  10312. " (version 0)\n"
  10313. " (url \"https://example.org/guix.git\"))\n"
  10314. msgstr ""
  10315. #. type: Plain text
  10316. #: guix-git/doc/guix.texi:5493
  10317. 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."
  10318. msgstr ""
  10319. #. type: Plain text
  10320. #: guix-git/doc/guix.texi:5497
  10321. 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."
  10322. msgstr ""
  10323. #. type: cindex
  10324. #: guix-git/doc/guix.texi:5501
  10325. #, no-wrap
  10326. msgid "news, for channels"
  10327. msgstr ""
  10328. #. type: Plain text
  10329. #: guix-git/doc/guix.texi:5505
  10330. 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."
  10331. msgstr ""
  10332. #. type: Plain text
  10333. #: guix-git/doc/guix.texi:5510
  10334. 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."
  10335. msgstr ""
  10336. #. type: Plain text
  10337. #: guix-git/doc/guix.texi:5513
  10338. msgid "To do that, channel authors must first declare the name of the news file in their @file{.guix-channel} file:"
  10339. msgstr ""
  10340. #. type: lisp
  10341. #: guix-git/doc/guix.texi:5518
  10342. #, no-wrap
  10343. msgid ""
  10344. "(channel\n"
  10345. " (version 0)\n"
  10346. " (news-file \"etc/news.txt\"))\n"
  10347. msgstr ""
  10348. #. type: Plain text
  10349. #: guix-git/doc/guix.texi:5522
  10350. msgid "The news file itself, @file{etc/news.txt} in this example, must look something like this:"
  10351. msgstr ""
  10352. #. type: lisp
  10353. #: guix-git/doc/guix.texi:5535
  10354. #, no-wrap
  10355. msgid ""
  10356. "(channel-news\n"
  10357. " (version 0)\n"
  10358. " (entry (tag \"the-bug-fix\")\n"
  10359. " (title (en \"Fixed terrible bug\")\n"
  10360. " (fr \"Oh la la\"))\n"
  10361. " (body (en \"@@emph@{Good news@}! It's fixed!\")\n"
  10362. " (eo \"Certe ĝi pli bone funkcias nun!\")))\n"
  10363. " (entry (commit \"bdcabe815cd28144a2d2b4bc3c5057b051fa9906\")\n"
  10364. " (title (en \"Added a great package\")\n"
  10365. " (ca \"Què vol dir guix?\"))\n"
  10366. " (body (en \"Don't miss the @@code@{hello@} package!\"))))\n"
  10367. msgstr ""
  10368. #. type: Plain text
  10369. #: guix-git/doc/guix.texi:5542
  10370. 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."
  10371. msgstr ""
  10372. #. type: Plain text
  10373. #: guix-git/doc/guix.texi:5547
  10374. 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."
  10375. msgstr ""
  10376. #. type: Plain text
  10377. #: guix-git/doc/guix.texi:5553
  10378. 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."
  10379. msgstr ""
  10380. #. type: Plain text
  10381. #: guix-git/doc/guix.texi:5559
  10382. 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:"
  10383. msgstr ""
  10384. #. type: example
  10385. #: guix-git/doc/guix.texi:5562
  10386. #, no-wrap
  10387. msgid "xgettext -o news.po -l scheme -ken etc/news.txt\n"
  10388. msgstr ""
  10389. #. type: Plain text
  10390. #: guix-git/doc/guix.texi:5566
  10391. 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."
  10392. msgstr ""
  10393. #. type: cindex
  10394. #: guix-git/doc/guix.texi:5571
  10395. #, no-wrap
  10396. msgid "software development"
  10397. msgstr ""
  10398. #. type: Plain text
  10399. #: guix-git/doc/guix.texi:5575
  10400. 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."
  10401. msgstr ""
  10402. #. type: Plain text
  10403. #: guix-git/doc/guix.texi:5581
  10404. msgid "The @command{guix shell} command provides a convenient way to set up one-off software environments, be it for development purposes or to run a command without installing it in your profile. The @command{guix pack} command allows you to create @dfn{application bundles} that can be easily distributed to users who do not run Guix."
  10405. msgstr ""
  10406. #. type: section
  10407. #: guix-git/doc/guix.texi:5591
  10408. #, fuzzy, no-wrap
  10409. #| msgid "Invoking @command{guix build}"
  10410. msgid "Invoking @command{guix shell}"
  10411. msgstr "调用@command{guix build}"
  10412. #. type: cindex
  10413. #: guix-git/doc/guix.texi:5593
  10414. #, no-wrap
  10415. msgid "reproducible build environments"
  10416. msgstr ""
  10417. #. type: cindex
  10418. #: guix-git/doc/guix.texi:5594
  10419. #, no-wrap
  10420. msgid "development environments"
  10421. msgstr ""
  10422. #. type: command{#1}
  10423. #: guix-git/doc/guix.texi:5595
  10424. #, no-wrap
  10425. msgid "guix environment"
  10426. msgstr ""
  10427. #. type: cindex
  10428. #: guix-git/doc/guix.texi:5596
  10429. #, no-wrap
  10430. msgid "environment, package build environment"
  10431. msgstr ""
  10432. #. type: Plain text
  10433. #: guix-git/doc/guix.texi:5601
  10434. msgid "The purpose of @command{guix shell} is to make it easy to create one-off software environments, without changing one's profile. It is typically used to create development environments; it is also a convenient way to run applications without ``polluting'' your profile."
  10435. msgstr ""
  10436. #. type: quotation
  10437. #: guix-git/doc/guix.texi:5607
  10438. msgid "The @command{guix shell} command was recently introduced to supersede @command{guix environment} (@pxref{Invoking guix environment}). If you are familiar with @command{guix environment}, you will notice that it is similar but also---we hope!---more convenient."
  10439. msgstr ""
  10440. #. type: example
  10441. #: guix-git/doc/guix.texi:5613
  10442. #, no-wrap
  10443. msgid "guix shell [@var{options}] [@var{package}@dots{}]\n"
  10444. msgstr ""
  10445. #. type: Plain text
  10446. #: guix-git/doc/guix.texi:5618
  10447. msgid "The following example creates an environment containing Python and NumPy, building or downloading any missing package, and runs the @command{python3} command in that environment:"
  10448. msgstr ""
  10449. #. type: example
  10450. #: guix-git/doc/guix.texi:5621
  10451. #, no-wrap
  10452. msgid "guix shell python python-numpy -- python3\n"
  10453. msgstr ""
  10454. #. type: Plain text
  10455. #: guix-git/doc/guix.texi:5626
  10456. msgid "Development environments can be created as in the example below, which spawns an interactive shell containing all the dependencies and environment variables needed to work on Inkscape:"
  10457. msgstr ""
  10458. #. type: example
  10459. #: guix-git/doc/guix.texi:5629
  10460. #, no-wrap
  10461. msgid "guix shell --development inkscape\n"
  10462. msgstr ""
  10463. #. type: Plain text
  10464. #: guix-git/doc/guix.texi:5635
  10465. msgid "Exiting the shell places the user back in the original environment before @command{guix shell} was invoked. The next garbage collection (@pxref{Invoking guix gc}) may clean up packages that were installed in the environment and that are no longer used outside of it."
  10466. msgstr ""
  10467. #. type: Plain text
  10468. #: guix-git/doc/guix.texi:5642
  10469. msgid "As an added convenience, when running from a directory that contains a @file{manifest.scm} or a @file{guix.scm} file (in this order), possibly in a parent directory, @command{guix shell} automatically loads the file---provided the directory is listed in @file{~/.config/guix/shell-authorized-directories}, and only for interactive use:"
  10470. msgstr ""
  10471. #. type: example
  10472. #: guix-git/doc/guix.texi:5645
  10473. #, fuzzy, no-wrap
  10474. #| msgid "guix pull\n"
  10475. msgid "guix shell\n"
  10476. msgstr "guix pull\n"
  10477. #. type: Plain text
  10478. #: guix-git/doc/guix.texi:5649
  10479. msgid "This provides an easy way to define, share, and enter development environments."
  10480. msgstr ""
  10481. #. type: Plain text
  10482. #: guix-git/doc/guix.texi:5660
  10483. msgid "By default, the shell session or command runs in an @emph{augmented} environment, where the new packages are added to search path environment variables such as @code{PATH}. You can, instead, choose to create an @emph{isolated} environment containing nothing but the packages you asked for. Passing the @option{--pure} option clears environment variable definitions found in the parent environment@footnote{Be sure to use the @option{--check} option the first time you use @command{guix shell} interactively to make sure the shell does not undo the effect of @option{--pure}.}; passing @option{--container} goes one step further by spawning a @dfn{container} isolated from the rest of the system:"
  10484. msgstr ""
  10485. #. type: example
  10486. #: guix-git/doc/guix.texi:5663
  10487. #, no-wrap
  10488. msgid "guix shell --container emacs gcc-toolchain\n"
  10489. msgstr ""
  10490. #. type: Plain text
  10491. #: guix-git/doc/guix.texi:5671
  10492. msgid "The command above spawns an interactive shell in a container where nothing but @code{emacs}, @code{gcc-toolchain}, and their dependencies is available. The container lacks network access and shares no files other than the current working directory with the surrounding environment. This is useful to prevent access to system-wide resources such as @file{/usr/bin} on foreign distros."
  10493. msgstr ""
  10494. #. type: Plain text
  10495. #: guix-git/doc/guix.texi:5678
  10496. msgid "This @option{--container} option can also prove useful if you wish to run a security-sensitive application, such as a web browser, in an isolated environment. For example, the command below launches Ungoogled-Chromium in an isolated environment, this time sharing network access with the host and preserving its @code{DISPLAY} environment variable, but without even sharing the current directory:"
  10497. msgstr ""
  10498. #. type: example
  10499. #: guix-git/doc/guix.texi:5682
  10500. #, no-wrap
  10501. msgid ""
  10502. "guix shell --container --network --no-cwd ungoogled-chromium \\\n"
  10503. " --preserve='^DISPLAY$' -- chromium\n"
  10504. msgstr ""
  10505. #. type: vindex
  10506. #: guix-git/doc/guix.texi:5684 guix-git/doc/guix.texi:5995
  10507. #, no-wrap
  10508. msgid "GUIX_ENVIRONMENT"
  10509. msgstr ""
  10510. #. type: Plain text
  10511. #: guix-git/doc/guix.texi:5690
  10512. msgid "@command{guix shell} defines the @env{GUIX_ENVIRONMENT} variable in the shell it spawns; its value is the file name of the profile of this environment. This allows users to, say, define a specific prompt for development environments in their @file{.bashrc} (@pxref{Bash Startup Files,,, bash, The GNU Bash Reference Manual}):"
  10513. msgstr ""
  10514. #. type: example
  10515. #: guix-git/doc/guix.texi:5696 guix-git/doc/guix.texi:6007
  10516. #, no-wrap
  10517. msgid ""
  10518. "if [ -n \"$GUIX_ENVIRONMENT\" ]\n"
  10519. "then\n"
  10520. " export PS1=\"\\u@@\\h \\w [dev]\\$ \"\n"
  10521. "fi\n"
  10522. msgstr ""
  10523. #. type: Plain text
  10524. #: guix-git/doc/guix.texi:5700 guix-git/doc/guix.texi:6011
  10525. msgid "...@: or to browse the profile:"
  10526. msgstr ""
  10527. #. type: example
  10528. #: guix-git/doc/guix.texi:5703 guix-git/doc/guix.texi:6014
  10529. #, no-wrap
  10530. msgid "$ ls \"$GUIX_ENVIRONMENT/bin\"\n"
  10531. msgstr ""
  10532. #. type: Plain text
  10533. #: guix-git/doc/guix.texi:5706 guix-git/doc/guix.texi:6090
  10534. msgid "The available options are summarized below."
  10535. msgstr ""
  10536. #. type: item
  10537. #: guix-git/doc/guix.texi:5708 guix-git/doc/guix.texi:6092
  10538. #: guix-git/doc/guix.texi:11361
  10539. #, no-wrap
  10540. msgid "--check"
  10541. msgstr ""
  10542. #. type: table
  10543. #: guix-git/doc/guix.texi:5713
  10544. msgid "Set up the environment and check whether the shell would clobber environment variables. It's a good idea to use this option the first time you run @command{guix shell} for an interactive session to make sure your setup is correct."
  10545. msgstr ""
  10546. #. type: table
  10547. #: guix-git/doc/guix.texi:5717
  10548. msgid "For example, if the shell modifies the @env{PATH} environment variable, report it since you would get a different environment than what you asked for."
  10549. msgstr ""
  10550. #. type: table
  10551. #: guix-git/doc/guix.texi:5725
  10552. msgid "Such problems usually indicate that the shell startup files are unexpectedly modifying those environment variables. For example, if you are using Bash, make sure that environment variables are set or modified in @file{~/.bash_profile} and @emph{not} in @file{~/.bashrc}---the former is sourced only by log-in shells. @xref{Bash Startup Files,,, bash, The GNU Bash Reference Manual}, for details on Bash start-up files."
  10553. msgstr ""
  10554. #. type: item
  10555. #: guix-git/doc/guix.texi:5726
  10556. #, fuzzy, no-wrap
  10557. #| msgid "Development"
  10558. msgid "--development"
  10559. msgstr "开发"
  10560. #. type: table
  10561. #: guix-git/doc/guix.texi:5733
  10562. msgid "Cause @command{guix shell} to include in the environment the dependencies of the following package rather than the package itself. This can be combined with other packages. For instance, the command below starts an interactive shell containing the build-time dependencies of GNU@tie{}Guile, plus Autoconf, Automake, and Libtool:"
  10563. msgstr ""
  10564. #. type: example
  10565. #: guix-git/doc/guix.texi:5736
  10566. #, no-wrap
  10567. msgid "guix shell -D guile autoconf automake libtool\n"
  10568. msgstr ""
  10569. #. type: item
  10570. #: guix-git/doc/guix.texi:5738 guix-git/doc/guix.texi:6113
  10571. #: guix-git/doc/guix.texi:6594 guix-git/doc/guix.texi:11236
  10572. #: guix-git/doc/guix.texi:12291 guix-git/doc/guix.texi:13136
  10573. #: guix-git/doc/guix.texi:34691 guix-git/doc/guix.texi:36781
  10574. #, no-wrap
  10575. msgid "--expression=@var{expr}"
  10576. msgstr ""
  10577. #. type: itemx
  10578. #: guix-git/doc/guix.texi:5739 guix-git/doc/guix.texi:6114
  10579. #: guix-git/doc/guix.texi:6595 guix-git/doc/guix.texi:11237
  10580. #: guix-git/doc/guix.texi:12292 guix-git/doc/guix.texi:13137
  10581. #: guix-git/doc/guix.texi:34692 guix-git/doc/guix.texi:36782
  10582. #, no-wrap
  10583. msgid "-e @var{expr}"
  10584. msgstr ""
  10585. #. type: table
  10586. #: guix-git/doc/guix.texi:5742 guix-git/doc/guix.texi:6117
  10587. msgid "Create an environment for the package or list of packages that @var{expr} evaluates to."
  10588. msgstr ""
  10589. #. type: table
  10590. #: guix-git/doc/guix.texi:5744 guix-git/doc/guix.texi:6119
  10591. msgid "For example, running:"
  10592. msgstr ""
  10593. #. type: example
  10594. #: guix-git/doc/guix.texi:5747
  10595. #, no-wrap
  10596. msgid "guix shell -D -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  10597. msgstr ""
  10598. #. type: table
  10599. #: guix-git/doc/guix.texi:5751 guix-git/doc/guix.texi:6126
  10600. msgid "starts a shell with the environment for this specific variant of the PETSc package."
  10601. msgstr ""
  10602. #. type: table
  10603. #: guix-git/doc/guix.texi:5753 guix-git/doc/guix.texi:6128
  10604. msgid "Running:"
  10605. msgstr ""
  10606. #. type: example
  10607. #: guix-git/doc/guix.texi:5756
  10608. #, no-wrap
  10609. msgid "guix shell -e '(@@ (gnu) %base-packages)'\n"
  10610. msgstr ""
  10611. #. type: table
  10612. #: guix-git/doc/guix.texi:5759 guix-git/doc/guix.texi:6134
  10613. msgid "starts a shell with all the base system packages available."
  10614. msgstr ""
  10615. #. type: table
  10616. #: guix-git/doc/guix.texi:5762 guix-git/doc/guix.texi:6137
  10617. msgid "The above commands only use the default output of the given packages. To select other outputs, two element tuples can be specified:"
  10618. msgstr ""
  10619. #. type: example
  10620. #: guix-git/doc/guix.texi:5765
  10621. #, no-wrap
  10622. msgid "guix shell -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  10623. msgstr ""
  10624. #. type: item
  10625. #: guix-git/doc/guix.texi:5767 guix-git/doc/guix.texi:11210
  10626. #, no-wrap
  10627. msgid "--file=@var{file}"
  10628. msgstr ""
  10629. #. type: table
  10630. #: guix-git/doc/guix.texi:5771
  10631. msgid "Create an environment containing the package or list of packages that the code within @var{file} evaluates to."
  10632. msgstr ""
  10633. #. type: lisp
  10634. #: guix-git/doc/guix.texi:5777 guix-git/doc/guix.texi:6152
  10635. #, no-wrap
  10636. msgid "@verbatiminclude environment-gdb.scm\n"
  10637. msgstr ""
  10638. #. type: table
  10639. #: guix-git/doc/guix.texi:5781
  10640. msgid "With the file above, you can enter a development environment for GDB by running:"
  10641. msgstr ""
  10642. #. type: example
  10643. #: guix-git/doc/guix.texi:5784
  10644. #, no-wrap
  10645. msgid "guix shell -D -f gdb-devel.scm\n"
  10646. msgstr ""
  10647. #. type: table
  10648. #: guix-git/doc/guix.texi:5791 guix-git/doc/guix.texi:6159
  10649. 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."
  10650. msgstr ""
  10651. #. type: table
  10652. #: guix-git/doc/guix.texi:5795 guix-git/doc/guix.texi:6163
  10653. msgid "This is similar to the same-named option in @command{guix package} (@pxref{profile-manifest, @option{--manifest}}) and uses the same manifest files."
  10654. msgstr ""
  10655. #. type: item
  10656. #: guix-git/doc/guix.texi:5796
  10657. #, fuzzy, no-wrap
  10658. #| msgid "--no-build-hook"
  10659. msgid "--rebuild-cache"
  10660. msgstr "--no-build-hook"
  10661. #. type: table
  10662. #: guix-git/doc/guix.texi:5801
  10663. msgid "When using @option{--manifest}, @option{--file}, or when invoked without arguments, @command{guix shell} caches the environment so that subsequent uses are instantaneous. The cache is invalidated anytime the file is modified."
  10664. msgstr ""
  10665. #. type: table
  10666. #: guix-git/doc/guix.texi:5806
  10667. msgid "The @option{--rebuild-cache} forces the cached environment to be refreshed even if the file has not changed. This is useful if the @command{guix.scm} or @command{manifest.scm} has external dependencies, or if its behavior depends, say, on environment variables."
  10668. msgstr ""
  10669. #. type: item
  10670. #: guix-git/doc/guix.texi:5807 guix-git/doc/guix.texi:6190
  10671. #, no-wrap
  10672. msgid "--pure"
  10673. msgstr ""
  10674. #. type: table
  10675. #: guix-git/doc/guix.texi:5811 guix-git/doc/guix.texi:6194
  10676. 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."
  10677. msgstr ""
  10678. #. type: item
  10679. #: guix-git/doc/guix.texi:5812 guix-git/doc/guix.texi:6195
  10680. #, no-wrap
  10681. msgid "--preserve=@var{regexp}"
  10682. msgstr ""
  10683. #. type: itemx
  10684. #: guix-git/doc/guix.texi:5813 guix-git/doc/guix.texi:6196
  10685. #, no-wrap
  10686. msgid "-E @var{regexp}"
  10687. msgstr ""
  10688. #. type: table
  10689. #: guix-git/doc/guix.texi:5818 guix-git/doc/guix.texi:6201
  10690. 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."
  10691. msgstr ""
  10692. #. type: example
  10693. #: guix-git/doc/guix.texi:5822
  10694. #, no-wrap
  10695. msgid ""
  10696. "guix shell --pure --preserve=^SLURM openmpi @dots{} \\\n"
  10697. " -- mpirun @dots{}\n"
  10698. msgstr ""
  10699. #. type: table
  10700. #: guix-git/doc/guix.texi:5828 guix-git/doc/guix.texi:6211
  10701. 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.)."
  10702. msgstr ""
  10703. #. type: item
  10704. #: guix-git/doc/guix.texi:5829 guix-git/doc/guix.texi:6212
  10705. #, no-wrap
  10706. msgid "--search-paths"
  10707. msgstr ""
  10708. #. type: table
  10709. #: guix-git/doc/guix.texi:5832 guix-git/doc/guix.texi:6215
  10710. msgid "Display the environment variable definitions that make up the environment."
  10711. msgstr ""
  10712. #. type: table
  10713. #: guix-git/doc/guix.texi:5836 guix-git/doc/guix.texi:6219
  10714. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}."
  10715. msgstr ""
  10716. #. type: item
  10717. #: guix-git/doc/guix.texi:5837 guix-git/doc/guix.texi:6220
  10718. #, no-wrap
  10719. msgid "--container"
  10720. msgstr ""
  10721. #. type: itemx
  10722. #: guix-git/doc/guix.texi:5838 guix-git/doc/guix.texi:6221
  10723. #, no-wrap
  10724. msgid "-C"
  10725. msgstr ""
  10726. #. type: item
  10727. #: guix-git/doc/guix.texi:5839 guix-git/doc/guix.texi:6056
  10728. #: guix-git/doc/guix.texi:6222 guix-git/doc/guix.texi:13692
  10729. #: guix-git/doc/guix.texi:34659
  10730. #, no-wrap
  10731. msgid "container"
  10732. msgstr "容器"
  10733. #. type: table
  10734. #: guix-git/doc/guix.texi:5845 guix-git/doc/guix.texi:6228
  10735. 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."
  10736. msgstr ""
  10737. #. type: table
  10738. #: guix-git/doc/guix.texi:5849 guix-git/doc/guix.texi:6232
  10739. 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)."
  10740. msgstr ""
  10741. #. type: item
  10742. #: guix-git/doc/guix.texi:5850 guix-git/doc/guix.texi:6233
  10743. #: guix-git/doc/guix.texi:34751
  10744. #, no-wrap
  10745. msgid "--network"
  10746. msgstr ""
  10747. #. type: table
  10748. #: guix-git/doc/guix.texi:5855 guix-git/doc/guix.texi:6238
  10749. msgid "For containers, share the network namespace with the host system. Containers created without this flag only have access to the loopback device."
  10750. msgstr ""
  10751. #. type: item
  10752. #: guix-git/doc/guix.texi:5856 guix-git/doc/guix.texi:6239
  10753. #, no-wrap
  10754. msgid "--link-profile"
  10755. msgstr ""
  10756. #. type: itemx
  10757. #: guix-git/doc/guix.texi:5857 guix-git/doc/guix.texi:6240
  10758. #, no-wrap
  10759. msgid "-P"
  10760. msgstr ""
  10761. #. type: table
  10762. #: guix-git/doc/guix.texi:5865
  10763. msgid "For containers, link the environment profile to @file{~/.guix-profile} within the container and set @code{GUIX_ENVIRONMENT} to that. This is equivalent to making @file{~/.guix-profile} a symlink to the actual profile within the container. Linking will fail and abort the environment if the directory already exists, which will certainly be the case if @command{guix shell} was invoked in the user's home directory."
  10764. msgstr ""
  10765. #. type: table
  10766. #: guix-git/doc/guix.texi:5871 guix-git/doc/guix.texi:6254
  10767. 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."
  10768. msgstr ""
  10769. #. type: item
  10770. #: guix-git/doc/guix.texi:5872 guix-git/doc/guix.texi:6255
  10771. #: guix-git/doc/guix.texi:13269
  10772. #, no-wrap
  10773. msgid "--user=@var{user}"
  10774. msgstr ""
  10775. #. type: itemx
  10776. #: guix-git/doc/guix.texi:5873 guix-git/doc/guix.texi:6256
  10777. #: guix-git/doc/guix.texi:13270
  10778. #, no-wrap
  10779. msgid "-u @var{user}"
  10780. msgstr ""
  10781. #. type: table
  10782. #: guix-git/doc/guix.texi:5880 guix-git/doc/guix.texi:6263
  10783. 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."
  10784. msgstr ""
  10785. #. type: table
  10786. #: guix-git/doc/guix.texi:5885 guix-git/doc/guix.texi:6268
  10787. 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."
  10788. msgstr ""
  10789. #. type: example
  10790. #: guix-git/doc/guix.texi:5892
  10791. #, no-wrap
  10792. msgid ""
  10793. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  10794. "cd $HOME/wd\n"
  10795. "guix shell --container --user=foo \\\n"
  10796. " --expose=$HOME/test \\\n"
  10797. " --expose=/tmp/target=$HOME/target\n"
  10798. msgstr ""
  10799. #. type: table
  10800. #: guix-git/doc/guix.texi:5897 guix-git/doc/guix.texi:6280
  10801. 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."
  10802. msgstr ""
  10803. #. type: item
  10804. #: guix-git/doc/guix.texi:5898 guix-git/doc/guix.texi:6281
  10805. #, no-wrap
  10806. msgid "--no-cwd"
  10807. msgstr ""
  10808. #. type: table
  10809. #: guix-git/doc/guix.texi:5905 guix-git/doc/guix.texi:6288
  10810. 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}."
  10811. msgstr ""
  10812. #. type: item
  10813. #: guix-git/doc/guix.texi:5906 guix-git/doc/guix.texi:6289
  10814. #, no-wrap
  10815. msgid "--expose=@var{source}[=@var{target}]"
  10816. msgstr ""
  10817. #. type: itemx
  10818. #: guix-git/doc/guix.texi:5907 guix-git/doc/guix.texi:6290
  10819. #, no-wrap
  10820. msgid "--share=@var{source}[=@var{target}]"
  10821. msgstr ""
  10822. #. type: table
  10823. #: guix-git/doc/guix.texi:5913 guix-git/doc/guix.texi:6296
  10824. 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."
  10825. msgstr ""
  10826. #. type: table
  10827. #: guix-git/doc/guix.texi:5917 guix-git/doc/guix.texi:6300
  10828. 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:"
  10829. msgstr ""
  10830. #. type: example
  10831. #: guix-git/doc/guix.texi:5920
  10832. #, no-wrap
  10833. msgid "guix shell --container --expose=$HOME=/exchange guile -- guile\n"
  10834. msgstr ""
  10835. #. type: item
  10836. #: guix-git/doc/guix.texi:5922 guix-git/doc/guix.texi:6097
  10837. #: guix-git/doc/guix.texi:6662 guix-git/doc/guix.texi:11390
  10838. #: guix-git/doc/guix.texi:34756
  10839. #, no-wrap
  10840. msgid "--root=@var{file}"
  10841. msgstr ""
  10842. #. type: itemx
  10843. #: guix-git/doc/guix.texi:5923 guix-git/doc/guix.texi:6098
  10844. #: guix-git/doc/guix.texi:6663 guix-git/doc/guix.texi:11391
  10845. #: guix-git/doc/guix.texi:34757
  10846. #, no-wrap
  10847. msgid "-r @var{file}"
  10848. msgstr ""
  10849. #. type: cindex
  10850. #: guix-git/doc/guix.texi:5924 guix-git/doc/guix.texi:6099
  10851. #, no-wrap
  10852. msgid "persistent environment"
  10853. msgstr ""
  10854. #. type: cindex
  10855. #: guix-git/doc/guix.texi:5925 guix-git/doc/guix.texi:6100
  10856. #, no-wrap
  10857. msgid "garbage collector root, for environments"
  10858. msgstr ""
  10859. #. type: table
  10860. #: guix-git/doc/guix.texi:5928 guix-git/doc/guix.texi:6103
  10861. msgid "Make @var{file} a symlink to the profile for this environment, and register it as a garbage collector root."
  10862. msgstr ""
  10863. #. type: table
  10864. #: guix-git/doc/guix.texi:5931 guix-git/doc/guix.texi:6106
  10865. msgid "This is useful if you want to protect your environment from garbage collection, to make it ``persistent''."
  10866. msgstr ""
  10867. #. type: table
  10868. #: guix-git/doc/guix.texi:5937
  10869. msgid "When this option is omitted, the environment is protected from garbage collection only for the duration of the @command{guix shell} session. This means that next time you recreate the same environment, you could have to rebuild or re-download packages. @xref{Invoking guix gc}, for more on GC roots."
  10870. msgstr ""
  10871. #. type: Plain text
  10872. #: guix-git/doc/guix.texi:5942
  10873. msgid "@command{guix shell} also supports all of the common build options that @command{guix build} supports (@pxref{Common Build Options}) as well as package transformation options (@pxref{Package Transformation Options})."
  10874. msgstr ""
  10875. #. type: section
  10876. #: guix-git/doc/guix.texi:5944
  10877. #, no-wrap
  10878. msgid "Invoking @command{guix environment}"
  10879. msgstr ""
  10880. #. type: Plain text
  10881. #: guix-git/doc/guix.texi:5948
  10882. msgid "The purpose of @command{guix environment} is to assist in creating development environments."
  10883. msgstr ""
  10884. #. type: quotation
  10885. #: guix-git/doc/guix.texi:5949
  10886. #, no-wrap
  10887. msgid "Deprecation warning"
  10888. msgstr ""
  10889. #. type: quotation
  10890. #: guix-git/doc/guix.texi:5953
  10891. msgid "The @command{guix environment} command is deprecated in favor of @command{guix shell}, which performs similar functions but is more convenient to use. @xref{Invoking guix shell}."
  10892. msgstr ""
  10893. #. type: quotation
  10894. #: guix-git/doc/guix.texi:5958
  10895. msgid "Being deprecated, @command{guix environment} is slated for eventual removal, but the Guix project is committed to keeping it until May 1st, 2023. Please get in touch with us at @email{guix-devel@@gnu.org} if you would like to discuss it."
  10896. msgstr ""
  10897. #. type: example
  10898. #: guix-git/doc/guix.texi:5964
  10899. #, no-wrap
  10900. msgid "guix environment @var{options} @var{package}@dots{}\n"
  10901. msgstr ""
  10902. #. type: Plain text
  10903. #: guix-git/doc/guix.texi:5968
  10904. msgid "The following example spawns a new shell set up for the development of GNU@tie{}Guile:"
  10905. msgstr ""
  10906. #. type: example
  10907. #: guix-git/doc/guix.texi:5971
  10908. #, no-wrap
  10909. msgid "guix environment guile\n"
  10910. msgstr ""
  10911. #. type: Plain text
  10912. #: guix-git/doc/guix.texi:5988
  10913. 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.}."
  10914. msgstr ""
  10915. #. type: Plain text
  10916. #: guix-git/doc/guix.texi:5994
  10917. 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."
  10918. msgstr ""
  10919. #. type: Plain text
  10920. #: guix-git/doc/guix.texi:6001
  10921. 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}):"
  10922. msgstr ""
  10923. #. type: Plain text
  10924. #: guix-git/doc/guix.texi:6020
  10925. 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:"
  10926. msgstr ""
  10927. #. type: example
  10928. #: guix-git/doc/guix.texi:6023
  10929. #, no-wrap
  10930. msgid "guix environment guile emacs\n"
  10931. msgstr ""
  10932. #. type: Plain text
  10933. #: guix-git/doc/guix.texi:6028
  10934. 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:"
  10935. msgstr ""
  10936. #. type: example
  10937. #: guix-git/doc/guix.texi:6031
  10938. #, no-wrap
  10939. msgid "guix environment guile -- make -j4\n"
  10940. msgstr ""
  10941. #. type: Plain text
  10942. #: guix-git/doc/guix.texi:6037
  10943. 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:"
  10944. msgstr ""
  10945. #. type: example
  10946. #: guix-git/doc/guix.texi:6040
  10947. #, no-wrap
  10948. msgid "guix environment --ad-hoc python2-numpy python-2.7 -- python\n"
  10949. msgstr ""
  10950. #. type: Plain text
  10951. #: guix-git/doc/guix.texi:6051
  10952. 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:"
  10953. msgstr ""
  10954. #. type: example
  10955. #: guix-git/doc/guix.texi:6054
  10956. #, fuzzy, no-wrap
  10957. msgid "guix environment --pure guix --ad-hoc git strace\n"
  10958. msgstr "guix environment guix --ad-hoc help2man git strace\n"
  10959. #. type: Plain text
  10960. #: guix-git/doc/guix.texi:6064
  10961. 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:"
  10962. msgstr ""
  10963. #. type: example
  10964. #: guix-git/doc/guix.texi:6067
  10965. #, no-wrap
  10966. msgid "guix environment --ad-hoc --container guile -- guile\n"
  10967. msgstr ""
  10968. #. type: quotation
  10969. #: guix-git/doc/guix.texi:6071
  10970. msgid "The @option{--container} option requires Linux-libre 3.19 or newer."
  10971. msgstr ""
  10972. #. type: cindex
  10973. #: guix-git/doc/guix.texi:6073
  10974. #, fuzzy, no-wrap
  10975. msgid "certificates"
  10976. msgstr "X.509证书"
  10977. #. type: Plain text
  10978. #: guix-git/doc/guix.texi:6080
  10979. 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."
  10980. msgstr ""
  10981. #. type: example
  10982. #: guix-git/doc/guix.texi:6087
  10983. #, no-wrap
  10984. msgid ""
  10985. "guix environment --preserve='^DISPLAY$' --container --network \\\n"
  10986. " --expose=/etc/machine-id \\\n"
  10987. " --expose=/etc/ssl/certs/ \\\n"
  10988. " --share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \\\n"
  10989. " --ad-hoc eolie nss-certs dbus -- eolie\n"
  10990. msgstr ""
  10991. #. type: table
  10992. #: guix-git/doc/guix.texi:6096
  10993. msgid "Set up the environment and check whether the shell would clobber environment variables. @xref{Invoking guix shell, @option{--check}}, for more info."
  10994. msgstr ""
  10995. #. type: table
  10996. #: guix-git/doc/guix.texi:6112
  10997. 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."
  10998. msgstr ""
  10999. #. type: example
  11000. #: guix-git/doc/guix.texi:6122
  11001. #, no-wrap
  11002. msgid "guix environment -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  11003. msgstr ""
  11004. #. type: example
  11005. #: guix-git/doc/guix.texi:6131
  11006. #, no-wrap
  11007. msgid "guix environment --ad-hoc -e '(@@ (gnu) %base-packages)'\n"
  11008. msgstr ""
  11009. #. type: example
  11010. #: guix-git/doc/guix.texi:6140
  11011. #, no-wrap
  11012. msgid "guix environment --ad-hoc -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  11013. msgstr ""
  11014. #. type: item
  11015. #: guix-git/doc/guix.texi:6142
  11016. #, no-wrap
  11017. msgid "--load=@var{file}"
  11018. msgstr ""
  11019. #. type: itemx
  11020. #: guix-git/doc/guix.texi:6143
  11021. #, no-wrap
  11022. msgid "-l @var{file}"
  11023. msgstr ""
  11024. #. type: table
  11025. #: guix-git/doc/guix.texi:6146
  11026. msgid "Create an environment for the package or list of packages that the code within @var{file} evaluates to."
  11027. msgstr ""
  11028. #. type: item
  11029. #: guix-git/doc/guix.texi:6164
  11030. #, no-wrap
  11031. msgid "--ad-hoc"
  11032. msgstr ""
  11033. #. type: table
  11034. #: guix-git/doc/guix.texi:6169
  11035. 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."
  11036. msgstr ""
  11037. #. type: table
  11038. #: guix-git/doc/guix.texi:6171
  11039. msgid "For instance, the command:"
  11040. msgstr ""
  11041. #. type: example
  11042. #: guix-git/doc/guix.texi:6174
  11043. #, no-wrap
  11044. msgid "guix environment --ad-hoc guile guile-sdl -- guile\n"
  11045. msgstr ""
  11046. #. type: table
  11047. #: guix-git/doc/guix.texi:6178
  11048. msgid "runs @command{guile} in an environment where Guile and Guile-SDL are available."
  11049. msgstr ""
  11050. #. type: table
  11051. #: guix-git/doc/guix.texi:6183
  11052. 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})."
  11053. msgstr ""
  11054. #. type: table
  11055. #: guix-git/doc/guix.texi:6189
  11056. 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."
  11057. msgstr ""
  11058. #. type: example
  11059. #: guix-git/doc/guix.texi:6205
  11060. #, no-wrap
  11061. msgid ""
  11062. "guix environment --pure --preserve=^SLURM --ad-hoc openmpi @dots{} \\\n"
  11063. " -- mpirun @dots{}\n"
  11064. msgstr ""
  11065. #. type: table
  11066. #: guix-git/doc/guix.texi:6248
  11067. 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."
  11068. msgstr ""
  11069. #. type: example
  11070. #: guix-git/doc/guix.texi:6275
  11071. #, no-wrap
  11072. msgid ""
  11073. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  11074. "cd $HOME/wd\n"
  11075. "guix environment --container --user=foo \\\n"
  11076. " --expose=$HOME/test \\\n"
  11077. " --expose=/tmp/target=$HOME/target\n"
  11078. msgstr ""
  11079. #. type: example
  11080. #: guix-git/doc/guix.texi:6303
  11081. #, no-wrap
  11082. msgid "guix environment --container --expose=$HOME=/exchange --ad-hoc guile -- guile\n"
  11083. msgstr ""
  11084. #. type: Plain text
  11085. #: guix-git/doc/guix.texi:6311
  11086. 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})."
  11087. msgstr ""
  11088. #. type: section
  11089. #: guix-git/doc/guix.texi:6313
  11090. #, no-wrap
  11091. msgid "Invoking @command{guix pack}"
  11092. msgstr ""
  11093. #. type: Plain text
  11094. #: guix-git/doc/guix.texi:6319
  11095. 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."
  11096. msgstr ""
  11097. #. type: quotation
  11098. #: guix-git/doc/guix.texi:6324
  11099. 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}."
  11100. msgstr ""
  11101. #. type: cindex
  11102. #: guix-git/doc/guix.texi:6326
  11103. #, no-wrap
  11104. msgid "pack"
  11105. msgstr ""
  11106. #. type: cindex
  11107. #: guix-git/doc/guix.texi:6327
  11108. #, no-wrap
  11109. msgid "bundle"
  11110. msgstr ""
  11111. #. type: cindex
  11112. #: guix-git/doc/guix.texi:6328
  11113. #, no-wrap
  11114. msgid "application bundle"
  11115. msgstr ""
  11116. #. type: cindex
  11117. #: guix-git/doc/guix.texi:6329
  11118. #, no-wrap
  11119. msgid "software bundle"
  11120. msgstr ""
  11121. #. type: Plain text
  11122. #: guix-git/doc/guix.texi:6338
  11123. 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."
  11124. msgstr ""
  11125. #. type: Plain text
  11126. #: guix-git/doc/guix.texi:6341
  11127. msgid "For example, to create a bundle containing Guile, Emacs, Geiser, and all their dependencies, you can run:"
  11128. msgstr ""
  11129. #. type: example
  11130. #: guix-git/doc/guix.texi:6346
  11131. #, no-wrap
  11132. msgid ""
  11133. "$ guix pack guile emacs emacs-geiser\n"
  11134. "@dots{}\n"
  11135. "/gnu/store/@dots{}-pack.tar.gz\n"
  11136. msgstr ""
  11137. #. type: Plain text
  11138. #: guix-git/doc/guix.texi:6354
  11139. 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})."
  11140. msgstr ""
  11141. #. type: Plain text
  11142. #: guix-git/doc/guix.texi:6359
  11143. 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:"
  11144. msgstr ""
  11145. #. type: example
  11146. #: guix-git/doc/guix.texi:6362
  11147. #, fuzzy, no-wrap
  11148. msgid "guix pack -S /opt/gnu/bin=bin guile emacs emacs-geiser\n"
  11149. msgstr "guix package -i emacs guile emacs-geiser\n"
  11150. #. type: Plain text
  11151. #: guix-git/doc/guix.texi:6366
  11152. msgid "That way, users can happily type @file{/opt/gnu/bin/guile} and enjoy."
  11153. msgstr ""
  11154. #. type: cindex
  11155. #: guix-git/doc/guix.texi:6367
  11156. #, no-wrap
  11157. msgid "relocatable binaries, with @command{guix pack}"
  11158. msgstr ""
  11159. #. type: Plain text
  11160. #: guix-git/doc/guix.texi:6375
  11161. 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}."
  11162. msgstr ""
  11163. #. type: cindex
  11164. #: guix-git/doc/guix.texi:6376
  11165. #, no-wrap
  11166. msgid "Docker, build an image with guix pack"
  11167. msgstr ""
  11168. #. type: Plain text
  11169. #: guix-git/doc/guix.texi:6379
  11170. msgid "Alternatively, you can produce a pack in the Docker image format using the following command:"
  11171. msgstr ""
  11172. #. type: example
  11173. #: guix-git/doc/guix.texi:6382
  11174. #, no-wrap
  11175. msgid "guix pack -f docker -S /bin=bin guile guile-readline\n"
  11176. msgstr ""
  11177. #. type: Plain text
  11178. #: guix-git/doc/guix.texi:6387
  11179. msgid "The result is a tarball that can be passed to the @command{docker load} command, followed by @code{docker run}:"
  11180. msgstr ""
  11181. #. type: example
  11182. #: guix-git/doc/guix.texi:6391
  11183. #, no-wrap
  11184. msgid ""
  11185. "docker load < @var{file}\n"
  11186. "docker run -ti guile-guile-readline /bin/guile\n"
  11187. msgstr ""
  11188. #. type: Plain text
  11189. #: guix-git/doc/guix.texi:6398
  11190. 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."
  11191. msgstr ""
  11192. #. type: cindex
  11193. #: guix-git/doc/guix.texi:6399
  11194. #, no-wrap
  11195. msgid "Singularity, build an image with guix pack"
  11196. msgstr ""
  11197. #. type: cindex
  11198. #: guix-git/doc/guix.texi:6400
  11199. #, no-wrap
  11200. msgid "SquashFS, build an image with guix pack"
  11201. msgstr ""
  11202. #. type: Plain text
  11203. #: guix-git/doc/guix.texi:6403
  11204. msgid "Yet another option is to produce a SquashFS image with the following command:"
  11205. msgstr ""
  11206. #. type: example
  11207. #: guix-git/doc/guix.texi:6406
  11208. #, fuzzy, no-wrap
  11209. msgid "guix pack -f squashfs bash guile emacs emacs-geiser\n"
  11210. msgstr "guix package -i emacs guile emacs-geiser\n"
  11211. #. type: Plain text
  11212. #: guix-git/doc/guix.texi:6414
  11213. 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}."
  11214. msgstr ""
  11215. #. type: Plain text
  11216. #: guix-git/doc/guix.texi:6416
  11217. msgid "Several command-line options allow you to customize your pack:"
  11218. msgstr ""
  11219. #. type: table
  11220. #: guix-git/doc/guix.texi:6421
  11221. msgid "Produce a pack in the given @var{format}."
  11222. msgstr ""
  11223. #. type: table
  11224. #: guix-git/doc/guix.texi:6423
  11225. msgid "The available formats are:"
  11226. msgstr ""
  11227. #. type: item
  11228. #: guix-git/doc/guix.texi:6425
  11229. #, no-wrap
  11230. msgid "tarball"
  11231. msgstr ""
  11232. #. type: table
  11233. #: guix-git/doc/guix.texi:6428
  11234. msgid "This is the default format. It produces a tarball containing all the specified binaries and symlinks."
  11235. msgstr ""
  11236. #. type: item
  11237. #: guix-git/doc/guix.texi:6429
  11238. #, no-wrap
  11239. msgid "docker"
  11240. msgstr ""
  11241. #. type: table
  11242. #: guix-git/doc/guix.texi:6435
  11243. 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."
  11244. msgstr ""
  11245. #. type: item
  11246. #: guix-git/doc/guix.texi:6436
  11247. #, no-wrap
  11248. msgid "squashfs"
  11249. msgstr ""
  11250. #. type: table
  11251. #: guix-git/doc/guix.texi:6440
  11252. 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."
  11253. msgstr ""
  11254. #. type: quotation
  11255. #: guix-git/doc/guix.texi:6446
  11256. 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:"
  11257. msgstr ""
  11258. #. type: example
  11259. #: guix-git/doc/guix.texi:6449
  11260. #, no-wrap
  11261. msgid "guix pack -f squashfs bash @dots{}\n"
  11262. msgstr ""
  11263. #. type: quotation
  11264. #: guix-git/doc/guix.texi:6454
  11265. 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."
  11266. msgstr ""
  11267. #. type: item
  11268. #: guix-git/doc/guix.texi:6456
  11269. #, fuzzy, no-wrap
  11270. #| msgid "--debug"
  11271. msgid "deb"
  11272. msgstr "--debug"
  11273. #. type: table
  11274. #: guix-git/doc/guix.texi:6464
  11275. 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."
  11276. msgstr ""
  11277. #. type: example
  11278. #: guix-git/doc/guix.texi:6467
  11279. #, no-wrap
  11280. msgid "guix pack -f deb -C xz -S /usr/bin/hello=bin/hello hello\n"
  11281. msgstr ""
  11282. #. type: quotation
  11283. #: guix-git/doc/guix.texi:6474
  11284. 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."
  11285. msgstr ""
  11286. #. type: quotation
  11287. #: guix-git/doc/guix.texi:6482
  11288. 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."
  11289. msgstr ""
  11290. #. type: cindex
  11291. #: guix-git/doc/guix.texi:6486
  11292. #, no-wrap
  11293. msgid "relocatable binaries"
  11294. msgstr ""
  11295. #. type: item
  11296. #: guix-git/doc/guix.texi:6487
  11297. #, no-wrap
  11298. msgid "--relocatable"
  11299. msgstr ""
  11300. #. type: table
  11301. #: guix-git/doc/guix.texi:6491
  11302. msgid "Produce @dfn{relocatable binaries}---i.e., binaries that can be placed anywhere in the file system hierarchy and run from there."
  11303. msgstr ""
  11304. #. type: table
  11305. #: guix-git/doc/guix.texi:6499
  11306. 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."
  11307. msgstr ""
  11308. #. type: table
  11309. #: guix-git/doc/guix.texi:6501
  11310. msgid "For example, if you create a pack containing Bash with:"
  11311. msgstr ""
  11312. #. type: example
  11313. #: guix-git/doc/guix.texi:6504
  11314. #, no-wrap
  11315. msgid "guix pack -RR -S /mybin=bin bash\n"
  11316. msgstr ""
  11317. #. type: table
  11318. #: guix-git/doc/guix.texi:6509
  11319. msgid "...@: you can copy that pack to a machine that lacks Guix, and from your home directory as a normal user, run:"
  11320. msgstr ""
  11321. #. type: example
  11322. #: guix-git/doc/guix.texi:6513
  11323. #, no-wrap
  11324. msgid ""
  11325. "tar xf pack.tar.gz\n"
  11326. "./mybin/sh\n"
  11327. msgstr ""
  11328. #. type: table
  11329. #: guix-git/doc/guix.texi:6521
  11330. 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."
  11331. msgstr ""
  11332. #. type: quotation
  11333. #: guix-git/doc/guix.texi:6527
  11334. 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."
  11335. msgstr ""
  11336. #. type: quotation
  11337. #: guix-git/doc/guix.texi:6533
  11338. 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:"
  11339. msgstr ""
  11340. #. type: item
  11341. #: guix-git/doc/guix.texi:6535 guix-git/doc/guix.texi:17016
  11342. #, no-wrap
  11343. msgid "default"
  11344. msgstr ""
  11345. #. type: table
  11346. #: guix-git/doc/guix.texi:6538
  11347. msgid "Try user namespaces and fall back to PRoot if user namespaces are not supported (see below)."
  11348. msgstr ""
  11349. #. type: item
  11350. #: guix-git/doc/guix.texi:6539
  11351. #, fuzzy, no-wrap
  11352. msgid "performance"
  11353. msgstr "格式化代码"
  11354. #. type: table
  11355. #: guix-git/doc/guix.texi:6542
  11356. msgid "Try user namespaces and fall back to Fakechroot if user namespaces are not supported (see below)."
  11357. msgstr ""
  11358. #. type: item
  11359. #: guix-git/doc/guix.texi:6543
  11360. #, fuzzy, no-wrap
  11361. msgid "userns"
  11362. msgstr "用户"
  11363. #. type: table
  11364. #: guix-git/doc/guix.texi:6546
  11365. msgid "Run the program through user namespaces and abort if they are not supported."
  11366. msgstr ""
  11367. #. type: item
  11368. #: guix-git/doc/guix.texi:6547
  11369. #, fuzzy, no-wrap
  11370. msgid "proot"
  11371. msgstr "chroot"
  11372. #. type: table
  11373. #: guix-git/doc/guix.texi:6554
  11374. 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."
  11375. msgstr ""
  11376. #. type: item
  11377. #: guix-git/doc/guix.texi:6555
  11378. #, fuzzy, no-wrap
  11379. msgid "fakechroot"
  11380. msgstr "chroot"
  11381. #. type: table
  11382. #: guix-git/doc/guix.texi:6563
  11383. 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."
  11384. msgstr ""
  11385. #. type: vindex
  11386. #: guix-git/doc/guix.texi:6565
  11387. #, no-wrap
  11388. msgid "GUIX_EXECUTION_ENGINE"
  11389. msgstr ""
  11390. #. type: quotation
  11391. #: guix-git/doc/guix.texi:6569
  11392. 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."
  11393. msgstr ""
  11394. #. type: cindex
  11395. #: guix-git/doc/guix.texi:6571
  11396. #, no-wrap
  11397. msgid "entry point, for Docker images"
  11398. msgstr ""
  11399. #. type: item
  11400. #: guix-git/doc/guix.texi:6572
  11401. #, fuzzy, no-wrap
  11402. msgid "--entry-point=@var{command}"
  11403. msgstr "--timeout=@var{seconds}"
  11404. #. type: table
  11405. #: guix-git/doc/guix.texi:6577
  11406. 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."
  11407. msgstr ""
  11408. #. type: table
  11409. #: guix-git/doc/guix.texi:6581
  11410. 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:"
  11411. msgstr ""
  11412. #. type: example
  11413. #: guix-git/doc/guix.texi:6584
  11414. #, no-wrap
  11415. msgid "guix pack -f docker --entry-point=bin/guile guile\n"
  11416. msgstr ""
  11417. #. type: table
  11418. #: guix-git/doc/guix.texi:6588
  11419. msgid "The resulting pack can easily be loaded and @code{docker run} with no extra arguments will spawn @code{bin/guile}:"
  11420. msgstr ""
  11421. #. type: example
  11422. #: guix-git/doc/guix.texi:6592
  11423. #, no-wrap
  11424. msgid ""
  11425. "docker load -i pack.tar.gz\n"
  11426. "docker run @var{image-id}\n"
  11427. msgstr ""
  11428. #. type: table
  11429. #: guix-git/doc/guix.texi:6597 guix-git/doc/guix.texi:12294
  11430. #: guix-git/doc/guix.texi:13139
  11431. msgid "Consider the package @var{expr} evaluates to."
  11432. msgstr ""
  11433. #. type: table
  11434. #: guix-git/doc/guix.texi:6601
  11435. 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}})."
  11436. msgstr ""
  11437. #. type: table
  11438. #: guix-git/doc/guix.texi:6607
  11439. 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."
  11440. msgstr ""
  11441. #. type: table
  11442. #: guix-git/doc/guix.texi:6615
  11443. 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."
  11444. msgstr ""
  11445. #. type: item
  11446. #: guix-git/doc/guix.texi:6621 guix-git/doc/guix.texi:11354
  11447. #, no-wrap
  11448. msgid "--target=@var{triplet}"
  11449. msgstr ""
  11450. #. type: cindex
  11451. #: guix-git/doc/guix.texi:6622 guix-git/doc/guix.texi:7073
  11452. #: guix-git/doc/guix.texi:11355
  11453. #, no-wrap
  11454. msgid "cross-compilation"
  11455. msgstr ""
  11456. #. type: table
  11457. #: guix-git/doc/guix.texi:6626
  11458. 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})."
  11459. msgstr ""
  11460. #. type: item
  11461. #: guix-git/doc/guix.texi:6627
  11462. #, no-wrap
  11463. msgid "--compression=@var{tool}"
  11464. msgstr ""
  11465. #. type: itemx
  11466. #: guix-git/doc/guix.texi:6628
  11467. #, no-wrap
  11468. msgid "-C @var{tool}"
  11469. msgstr ""
  11470. #. type: table
  11471. #: guix-git/doc/guix.texi:6632
  11472. #, fuzzy
  11473. 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."
  11474. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  11475. #. type: item
  11476. #: guix-git/doc/guix.texi:6633
  11477. #, no-wrap
  11478. msgid "--symlink=@var{spec}"
  11479. msgstr ""
  11480. #. type: itemx
  11481. #: guix-git/doc/guix.texi:6634
  11482. #, no-wrap
  11483. msgid "-S @var{spec}"
  11484. msgstr ""
  11485. #. type: table
  11486. #: guix-git/doc/guix.texi:6637
  11487. msgid "Add the symlinks specified by @var{spec} to the pack. This option can appear several times."
  11488. msgstr ""
  11489. #. type: table
  11490. #: guix-git/doc/guix.texi:6641
  11491. 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."
  11492. msgstr ""
  11493. #. type: table
  11494. #: guix-git/doc/guix.texi:6644
  11495. 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."
  11496. msgstr ""
  11497. #. type: item
  11498. #: guix-git/doc/guix.texi:6645 guix-git/doc/guix.texi:34710
  11499. #, no-wrap
  11500. msgid "--save-provenance"
  11501. msgstr ""
  11502. #. type: table
  11503. #: guix-git/doc/guix.texi:6649
  11504. 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})."
  11505. msgstr ""
  11506. #. type: table
  11507. #: guix-git/doc/guix.texi:6655
  11508. 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."
  11509. msgstr ""
  11510. #. type: table
  11511. #: guix-git/doc/guix.texi:6661
  11512. 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."
  11513. msgstr ""
  11514. #. type: cindex
  11515. #: guix-git/doc/guix.texi:6664
  11516. #, fuzzy, no-wrap
  11517. msgid "garbage collector root, for packs"
  11518. msgstr "垃圾收集的根"
  11519. #. type: table
  11520. #: guix-git/doc/guix.texi:6667
  11521. msgid "Make @var{file} a symlink to the resulting pack, and register it as a garbage collector root."
  11522. msgstr ""
  11523. #. type: item
  11524. #: guix-git/doc/guix.texi:6668
  11525. #, no-wrap
  11526. msgid "--localstatedir"
  11527. msgstr ""
  11528. #. type: itemx
  11529. #: guix-git/doc/guix.texi:6669
  11530. #, no-wrap
  11531. msgid "--profile-name=@var{name}"
  11532. msgstr ""
  11533. #. type: table
  11534. #: guix-git/doc/guix.texi:6674
  11535. 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}."
  11536. msgstr ""
  11537. #. type: table
  11538. #: guix-git/doc/guix.texi:6680
  11539. 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."
  11540. msgstr ""
  11541. #. type: table
  11542. #: guix-git/doc/guix.texi:6683
  11543. msgid "One use case for this is the Guix self-contained binary tarball (@pxref{Binary Installation})."
  11544. msgstr ""
  11545. #. type: item
  11546. #: guix-git/doc/guix.texi:6684 guix-git/doc/guix.texi:34704
  11547. #, no-wrap
  11548. msgid "--derivation"
  11549. msgstr ""
  11550. #. type: itemx
  11551. #: guix-git/doc/guix.texi:6685 guix-git/doc/guix.texi:11386
  11552. #: guix-git/doc/guix.texi:34705
  11553. #, no-wrap
  11554. msgid "-d"
  11555. msgstr ""
  11556. #. type: table
  11557. #: guix-git/doc/guix.texi:6687
  11558. msgid "Print the name of the derivation that builds the pack."
  11559. msgstr ""
  11560. #. type: table
  11561. #: guix-git/doc/guix.texi:6691
  11562. msgid "Use the bootstrap binaries to build the pack. This option is only useful to Guix developers."
  11563. msgstr ""
  11564. #. type: Plain text
  11565. #: guix-git/doc/guix.texi:6696
  11566. 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})."
  11567. msgstr ""
  11568. #. type: cindex
  11569. #: guix-git/doc/guix.texi:6701
  11570. #, no-wrap
  11571. msgid "GCC"
  11572. msgstr ""
  11573. #. type: cindex
  11574. #: guix-git/doc/guix.texi:6702
  11575. #, no-wrap
  11576. msgid "ld-wrapper"
  11577. msgstr ""
  11578. #. type: cindex
  11579. #: guix-git/doc/guix.texi:6703
  11580. #, no-wrap
  11581. msgid "linker wrapper"
  11582. msgstr ""
  11583. #. type: cindex
  11584. #: guix-git/doc/guix.texi:6704
  11585. #, fuzzy, no-wrap
  11586. msgid "toolchain, for C development"
  11587. msgstr "软件开发"
  11588. #. type: cindex
  11589. #: guix-git/doc/guix.texi:6705
  11590. #, no-wrap
  11591. msgid "toolchain, for Fortran development"
  11592. msgstr ""
  11593. #. type: Plain text
  11594. #: guix-git/doc/guix.texi:6712
  11595. 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."
  11596. msgstr ""
  11597. #. type: Plain text
  11598. #: guix-git/doc/guix.texi:6718
  11599. 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}."
  11600. msgstr ""
  11601. #. type: Plain text
  11602. #: guix-git/doc/guix.texi:6722
  11603. 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})."
  11604. msgstr ""
  11605. #. type: section
  11606. #: guix-git/doc/guix.texi:6725
  11607. #, fuzzy, no-wrap
  11608. msgid "Invoking @command{guix git authenticate}"
  11609. msgstr "调用@command{guix build}"
  11610. #. type: Plain text
  11611. #: guix-git/doc/guix.texi:6733
  11612. 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)."
  11613. msgstr ""
  11614. #. type: Plain text
  11615. #: guix-git/doc/guix.texi:6738
  11616. 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."
  11617. msgstr ""
  11618. #. type: example
  11619. #: guix-git/doc/guix.texi:6743
  11620. #, no-wrap
  11621. msgid "guix git authenticate @var{commit} @var{signer} [@var{options}@dots{}]\n"
  11622. msgstr ""
  11623. #. type: Plain text
  11624. #: guix-git/doc/guix.texi:6752
  11625. 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."
  11626. msgstr ""
  11627. #. type: item
  11628. #: guix-git/doc/guix.texi:6754
  11629. #, fuzzy, no-wrap
  11630. msgid "--repository=@var{directory}"
  11631. msgstr "--chroot-directory=@var{dir}"
  11632. #. type: itemx
  11633. #: guix-git/doc/guix.texi:6755
  11634. #, fuzzy, no-wrap
  11635. msgid "-r @var{directory}"
  11636. msgstr "状态文件夹"
  11637. #. type: table
  11638. #: guix-git/doc/guix.texi:6758
  11639. msgid "Open the Git repository in @var{directory} instead of the current directory."
  11640. msgstr ""
  11641. #. type: item
  11642. #: guix-git/doc/guix.texi:6759
  11643. #, no-wrap
  11644. msgid "--keyring=@var{reference}"
  11645. msgstr ""
  11646. #. type: itemx
  11647. #: guix-git/doc/guix.texi:6760
  11648. #, fuzzy, no-wrap
  11649. msgid "-k @var{reference}"
  11650. msgstr "-c @var{n}"
  11651. #. type: table
  11652. #: guix-git/doc/guix.texi:6766
  11653. 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}."
  11654. msgstr ""
  11655. #. type: item
  11656. #: guix-git/doc/guix.texi:6767
  11657. #, no-wrap
  11658. msgid "--stats"
  11659. msgstr ""
  11660. #. type: table
  11661. #: guix-git/doc/guix.texi:6769
  11662. msgid "Display commit signing statistics upon completion."
  11663. msgstr ""
  11664. #. type: item
  11665. #: guix-git/doc/guix.texi:6770
  11666. #, fuzzy, no-wrap
  11667. msgid "--cache-key=@var{key}"
  11668. msgstr "--cores=@var{n}"
  11669. #. type: table
  11670. #: guix-git/doc/guix.texi:6774
  11671. 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."
  11672. msgstr ""
  11673. #. type: item
  11674. #: guix-git/doc/guix.texi:6775
  11675. #, no-wrap
  11676. msgid "--historical-authorizations=@var{file}"
  11677. msgstr ""
  11678. #. type: table
  11679. #: guix-git/doc/guix.texi:6782
  11680. 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})."
  11681. msgstr ""
  11682. #. type: Plain text
  11683. #: guix-git/doc/guix.texi:6795
  11684. 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."
  11685. msgstr ""
  11686. #. type: Plain text
  11687. #: guix-git/doc/guix.texi:6801
  11688. 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."
  11689. msgstr ""
  11690. #. type: Plain text
  11691. #: guix-git/doc/guix.texi:6810
  11692. 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."
  11693. msgstr ""
  11694. #. type: Plain text
  11695. #: guix-git/doc/guix.texi:6813
  11696. msgid "This chapter describes all these APIs in turn, starting from high-level package definitions."
  11697. msgstr ""
  11698. #. type: menuentry
  11699. #: guix-git/doc/guix.texi:6826
  11700. #, fuzzy
  11701. msgid "Programming Guix in Guile"
  11702. msgstr "编程索引"
  11703. #. type: Plain text
  11704. #: guix-git/doc/guix.texi:6842
  11705. 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})."
  11706. msgstr ""
  11707. #. type: Plain text
  11708. #: guix-git/doc/guix.texi:6849
  11709. 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."
  11710. msgstr ""
  11711. #. type: cindex
  11712. #: guix-git/doc/guix.texi:6851
  11713. #, no-wrap
  11714. msgid "package module search path"
  11715. msgstr ""
  11716. #. type: Plain text
  11717. #: guix-git/doc/guix.texi:6860
  11718. 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:"
  11719. msgstr ""
  11720. #. type: enumerate
  11721. #: guix-git/doc/guix.texi:6867
  11722. 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."
  11723. msgstr ""
  11724. #. type: enumerate
  11725. #: guix-git/doc/guix.texi:6873
  11726. 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."
  11727. msgstr ""
  11728. #. type: Plain text
  11729. #: guix-git/doc/guix.texi:6876
  11730. msgid "@env{GUIX_PACKAGE_PATH} works similarly to other search path variables:"
  11731. msgstr ""
  11732. #. type: defvr
  11733. #: guix-git/doc/guix.texi:6877
  11734. #, no-wrap
  11735. msgid "{Environment Variable} GUIX_PACKAGE_PATH"
  11736. msgstr ""
  11737. #. type: defvr
  11738. #: guix-git/doc/guix.texi:6881
  11739. 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."
  11740. msgstr ""
  11741. #. type: Plain text
  11742. #: guix-git/doc/guix.texi:6889
  11743. 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}."
  11744. msgstr ""
  11745. #. type: Plain text
  11746. #: guix-git/doc/guix.texi:6897
  11747. 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:"
  11748. msgstr ""
  11749. #. type: lisp
  11750. #: guix-git/doc/guix.texi:6905
  11751. #, no-wrap
  11752. msgid ""
  11753. "(define-module (gnu packages hello)\n"
  11754. " #:use-module (guix packages)\n"
  11755. " #:use-module (guix download)\n"
  11756. " #:use-module (guix build-system gnu)\n"
  11757. " #:use-module (guix licenses)\n"
  11758. " #:use-module (gnu packages gawk))\n"
  11759. "\n"
  11760. msgstr ""
  11761. #. type: lisp
  11762. #: guix-git/doc/guix.texi:6924
  11763. #, no-wrap
  11764. msgid ""
  11765. "(define-public hello\n"
  11766. " (package\n"
  11767. " (name \"hello\")\n"
  11768. " (version \"2.10\")\n"
  11769. " (source (origin\n"
  11770. " (method url-fetch)\n"
  11771. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  11772. " \".tar.gz\"))\n"
  11773. " (sha256\n"
  11774. " (base32\n"
  11775. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  11776. " (build-system gnu-build-system)\n"
  11777. " (arguments '(#:configure-flags '(\"--enable-silent-rules\")))\n"
  11778. " (inputs `((\"gawk\" ,gawk)))\n"
  11779. " (synopsis \"Hello, GNU world: An example GNU package\")\n"
  11780. " (description \"Guess what GNU Hello prints!\")\n"
  11781. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  11782. " (license gpl3+)))\n"
  11783. msgstr ""
  11784. #. type: Plain text
  11785. #: guix-git/doc/guix.texi:6934
  11786. 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\"}."
  11787. msgstr ""
  11788. #. type: Plain text
  11789. #: guix-git/doc/guix.texi:6938
  11790. 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})."
  11791. msgstr ""
  11792. #. type: Plain text
  11793. #: guix-git/doc/guix.texi:6944
  11794. 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})."
  11795. msgstr ""
  11796. #. type: Plain text
  11797. #: guix-git/doc/guix.texi:6946
  11798. msgid "There are a few points worth noting in the above package definition:"
  11799. msgstr ""
  11800. #. type: itemize
  11801. #: guix-git/doc/guix.texi:6953
  11802. 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."
  11803. msgstr ""
  11804. #. type: itemize
  11805. #: guix-git/doc/guix.texi:6956
  11806. msgid "The @code{mirror://gnu} prefix instructs @code{url-fetch} to use one of the GNU mirrors defined in @code{(guix download)}."
  11807. msgstr ""
  11808. #. type: itemize
  11809. #: guix-git/doc/guix.texi:6963
  11810. 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})."
  11811. msgstr ""
  11812. #. type: cindex
  11813. #: guix-git/doc/guix.texi:6964
  11814. #, no-wrap
  11815. msgid "patches"
  11816. msgstr ""
  11817. #. type: itemize
  11818. #: guix-git/doc/guix.texi:6968
  11819. 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."
  11820. msgstr ""
  11821. #. type: cindex
  11822. #: guix-git/doc/guix.texi:6970
  11823. #, no-wrap
  11824. msgid "GNU Build System"
  11825. msgstr ""
  11826. #. type: itemize
  11827. #: guix-git/doc/guix.texi:6976
  11828. 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."
  11829. msgstr ""
  11830. #. type: itemize
  11831. #: guix-git/doc/guix.texi:6980
  11832. 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."
  11833. msgstr ""
  11834. #. type: itemize
  11835. #: guix-git/doc/guix.texi:6986
  11836. 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."
  11837. msgstr ""
  11838. #. type: findex
  11839. #: guix-git/doc/guix.texi:6987 guix-git/doc/guix.texi:6990
  11840. #, no-wrap
  11841. msgid "quote"
  11842. msgstr ""
  11843. #. type: cindex
  11844. #: guix-git/doc/guix.texi:6988
  11845. #, no-wrap
  11846. msgid "quoting"
  11847. msgstr ""
  11848. #. type: findex
  11849. #: guix-git/doc/guix.texi:6989
  11850. #, no-wrap
  11851. msgid "'"
  11852. msgstr ""
  11853. #. type: itemize
  11854. #: guix-git/doc/guix.texi:6998
  11855. 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})."
  11856. msgstr ""
  11857. #. type: itemize
  11858. #: guix-git/doc/guix.texi:7004
  11859. 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})."
  11860. msgstr ""
  11861. #. type: itemize
  11862. #: guix-git/doc/guix.texi:7010
  11863. 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."
  11864. msgstr ""
  11865. #. type: cindex
  11866. #: guix-git/doc/guix.texi:7011
  11867. #, no-wrap
  11868. msgid "backquote (quasiquote)"
  11869. msgstr ""
  11870. #. type: findex
  11871. #: guix-git/doc/guix.texi:7012
  11872. #, no-wrap
  11873. msgid "`"
  11874. msgstr ""
  11875. #. type: findex
  11876. #: guix-git/doc/guix.texi:7013
  11877. #, no-wrap
  11878. msgid "quasiquote"
  11879. msgstr ""
  11880. #. type: cindex
  11881. #: guix-git/doc/guix.texi:7014
  11882. #, no-wrap
  11883. msgid "comma (unquote)"
  11884. msgstr ""
  11885. #. type: findex
  11886. #: guix-git/doc/guix.texi:7015
  11887. #, no-wrap
  11888. msgid ","
  11889. msgstr ""
  11890. #. type: findex
  11891. #: guix-git/doc/guix.texi:7016
  11892. #, no-wrap
  11893. msgid "unquote"
  11894. msgstr ""
  11895. #. type: findex
  11896. #: guix-git/doc/guix.texi:7017
  11897. #, no-wrap
  11898. msgid ",@@"
  11899. msgstr ""
  11900. #. type: findex
  11901. #: guix-git/doc/guix.texi:7018
  11902. #, no-wrap
  11903. msgid "unquote-splicing"
  11904. msgstr ""
  11905. #. type: itemize
  11906. #: guix-git/doc/guix.texi:7024
  11907. 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})."
  11908. msgstr ""
  11909. #. type: itemize
  11910. #: guix-git/doc/guix.texi:7028
  11911. 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})."
  11912. msgstr ""
  11913. #. type: itemize
  11914. #: guix-git/doc/guix.texi:7032
  11915. 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."
  11916. msgstr ""
  11917. #. type: Plain text
  11918. #: guix-git/doc/guix.texi:7035
  11919. msgid "@xref{package Reference}, for a full description of possible fields."
  11920. msgstr ""
  11921. #. type: Plain text
  11922. #: guix-git/doc/guix.texi:7046
  11923. 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."
  11924. msgstr ""
  11925. #. type: vindex
  11926. #: guix-git/doc/guix.texi:7046
  11927. #, no-wrap
  11928. msgid "GUIX_PACKAGE_PATH"
  11929. msgstr ""
  11930. #. type: Plain text
  11931. #: guix-git/doc/guix.texi:7050
  11932. msgid "Lastly, @pxref{Channels}, for information on how to extend the distribution by adding your own package definitions in a ``channel''."
  11933. msgstr ""
  11934. #. type: Plain text
  11935. #: guix-git/doc/guix.texi:7054
  11936. 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})."
  11937. msgstr ""
  11938. #. type: Plain text
  11939. #: guix-git/doc/guix.texi:7060
  11940. 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})."
  11941. msgstr ""
  11942. #. type: deffn
  11943. #: guix-git/doc/guix.texi:7061
  11944. #, no-wrap
  11945. msgid "{Scheme Procedure} package-derivation @var{store} @var{package} [@var{system}]"
  11946. msgstr ""
  11947. #. type: deffn
  11948. #: guix-git/doc/guix.texi:7064
  11949. msgid "Return the @code{<derivation>} object of @var{package} for @var{system} (@pxref{Derivations})."
  11950. msgstr ""
  11951. #. type: deffn
  11952. #: guix-git/doc/guix.texi:7070
  11953. 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})."
  11954. msgstr ""
  11955. #. type: Plain text
  11956. #: guix-git/doc/guix.texi:7076
  11957. msgid "Similarly, it is possible to compute a derivation that cross-builds a package for some other system:"
  11958. msgstr ""
  11959. #. type: deffn
  11960. #: guix-git/doc/guix.texi:7077
  11961. #, no-wrap
  11962. msgid "{Scheme Procedure} package-cross-derivation @var{store} @"
  11963. msgstr ""
  11964. #. type: deffn
  11965. #: guix-git/doc/guix.texi:7081
  11966. msgid "@var{package} @var{target} [@var{system}] Return the @code{<derivation>} object of @var{package} cross-built from @var{system} to @var{target}."
  11967. msgstr ""
  11968. #. type: deffn
  11969. #: guix-git/doc/guix.texi:7085
  11970. 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})."
  11971. msgstr ""
  11972. #. type: Plain text
  11973. #: guix-git/doc/guix.texi:7089
  11974. msgid "Once you have package definitions, you can easily define @emph{variants} of those packages. @xref{Defining Package Variants}, for more on that."
  11975. msgstr ""
  11976. #. type: subsection
  11977. #: guix-git/doc/guix.texi:7097
  11978. #, no-wrap
  11979. msgid "@code{package} Reference"
  11980. msgstr ""
  11981. #. type: Plain text
  11982. #: guix-git/doc/guix.texi:7101
  11983. msgid "This section summarizes all the options available in @code{package} declarations (@pxref{Defining Packages})."
  11984. msgstr ""
  11985. #. type: deftp
  11986. #: guix-git/doc/guix.texi:7102
  11987. #, no-wrap
  11988. msgid "{Data Type} package"
  11989. msgstr ""
  11990. #. type: deftp
  11991. #: guix-git/doc/guix.texi:7104
  11992. msgid "This is the data type representing a package recipe."
  11993. msgstr ""
  11994. #. type: table
  11995. #: guix-git/doc/guix.texi:7108
  11996. msgid "The name of the package, as a string."
  11997. msgstr ""
  11998. #. type: code{#1}
  11999. #: guix-git/doc/guix.texi:7109
  12000. #, no-wrap
  12001. msgid "version"
  12002. msgstr ""
  12003. #. type: table
  12004. #: guix-git/doc/guix.texi:7112
  12005. msgid "The version of the package, as a string. @xref{Version Numbers}, for guidelines."
  12006. msgstr ""
  12007. #. type: code{#1}
  12008. #: guix-git/doc/guix.texi:7113 guix-git/doc/guix.texi:12601
  12009. #: guix-git/doc/guix.texi:14875 guix-git/doc/guix.texi:15479
  12010. #, no-wrap
  12011. msgid "source"
  12012. msgstr ""
  12013. #. type: table
  12014. #: guix-git/doc/guix.texi:7120
  12015. 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}})."
  12016. msgstr ""
  12017. #. type: code{#1}
  12018. #: guix-git/doc/guix.texi:7121
  12019. #, no-wrap
  12020. msgid "build-system"
  12021. msgstr ""
  12022. #. type: table
  12023. #: guix-git/doc/guix.texi:7124
  12024. msgid "The build system that should be used to build the package (@pxref{Build Systems})."
  12025. msgstr ""
  12026. #. type: item
  12027. #: guix-git/doc/guix.texi:7125 guix-git/doc/guix.texi:17464
  12028. #, no-wrap
  12029. msgid "@code{arguments} (default: @code{'()})"
  12030. msgstr ""
  12031. #. type: table
  12032. #: guix-git/doc/guix.texi:7128
  12033. msgid "The arguments that should be passed to the build system. This is a list, typically containing sequential keyword-value pairs."
  12034. msgstr ""
  12035. #. type: item
  12036. #: guix-git/doc/guix.texi:7129
  12037. #, no-wrap
  12038. msgid "@code{inputs} (default: @code{'()})"
  12039. msgstr ""
  12040. #. type: itemx
  12041. #: guix-git/doc/guix.texi:7130
  12042. #, no-wrap
  12043. msgid "@code{native-inputs} (default: @code{'()})"
  12044. msgstr ""
  12045. #. type: itemx
  12046. #: guix-git/doc/guix.texi:7131
  12047. #, no-wrap
  12048. msgid "@code{propagated-inputs} (default: @code{'()})"
  12049. msgstr ""
  12050. #. type: cindex
  12051. #: guix-git/doc/guix.texi:7132
  12052. #, no-wrap
  12053. msgid "inputs, of packages"
  12054. msgstr ""
  12055. #. type: table
  12056. #: guix-git/doc/guix.texi:7140
  12057. 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:"
  12058. msgstr ""
  12059. #. type: lisp
  12060. #: guix-git/doc/guix.texi:7145
  12061. #, no-wrap
  12062. msgid ""
  12063. "`((\"libffi\" ,libffi)\n"
  12064. " (\"libunistring\" ,libunistring)\n"
  12065. " (\"glib:bin\" ,glib \"bin\")) ;the \"bin\" output of Glib\n"
  12066. msgstr ""
  12067. #. type: cindex
  12068. #: guix-git/doc/guix.texi:7147
  12069. #, no-wrap
  12070. msgid "cross compilation, package dependencies"
  12071. msgstr ""
  12072. #. type: table
  12073. #: guix-git/doc/guix.texi:7153
  12074. 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."
  12075. msgstr ""
  12076. #. type: table
  12077. #: guix-git/doc/guix.texi:7158
  12078. 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})."
  12079. msgstr ""
  12080. #. type: anchor{#1}
  12081. #: guix-git/doc/guix.texi:7166
  12082. msgid "package-propagated-inputs"
  12083. msgstr ""
  12084. #. type: table
  12085. #: guix-git/doc/guix.texi:7166
  12086. 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)."
  12087. msgstr ""
  12088. #. type: table
  12089. #: guix-git/doc/guix.texi:7170
  12090. 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."
  12091. msgstr ""
  12092. #. type: table
  12093. #: guix-git/doc/guix.texi:7177
  12094. 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}."
  12095. msgstr ""
  12096. #. type: item
  12097. #: guix-git/doc/guix.texi:7178
  12098. #, no-wrap
  12099. msgid "@code{outputs} (default: @code{'(\"out\")})"
  12100. msgstr ""
  12101. #. type: table
  12102. #: guix-git/doc/guix.texi:7181
  12103. msgid "The list of output names of the package. @xref{Packages with Multiple Outputs}, for typical uses of additional outputs."
  12104. msgstr ""
  12105. #. type: item
  12106. #: guix-git/doc/guix.texi:7182
  12107. #, no-wrap
  12108. msgid "@code{native-search-paths} (default: @code{'()})"
  12109. msgstr ""
  12110. #. type: itemx
  12111. #: guix-git/doc/guix.texi:7183
  12112. #, no-wrap
  12113. msgid "@code{search-paths} (default: @code{'()})"
  12114. msgstr ""
  12115. #. type: table
  12116. #: guix-git/doc/guix.texi:7186
  12117. msgid "A list of @code{search-path-specification} objects describing search-path environment variables honored by the package."
  12118. msgstr ""
  12119. #. type: item
  12120. #: guix-git/doc/guix.texi:7187
  12121. #, no-wrap
  12122. msgid "@code{replacement} (default: @code{#f})"
  12123. msgstr ""
  12124. #. type: table
  12125. #: guix-git/doc/guix.texi:7191
  12126. 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."
  12127. msgstr ""
  12128. #. type: item
  12129. #: guix-git/doc/guix.texi:7192 guix-git/doc/guix.texi:12593
  12130. #, no-wrap
  12131. msgid "synopsis"
  12132. msgstr ""
  12133. #. type: table
  12134. #: guix-git/doc/guix.texi:7194
  12135. msgid "A one-line description of the package."
  12136. msgstr ""
  12137. #. type: code{#1}
  12138. #: guix-git/doc/guix.texi:7195 guix-git/doc/guix.texi:12594
  12139. #: guix-git/doc/guix.texi:35406 guix-git/doc/guix.texi:35557
  12140. #, no-wrap
  12141. msgid "description"
  12142. msgstr ""
  12143. #. type: table
  12144. #: guix-git/doc/guix.texi:7197
  12145. msgid "A more elaborate description of the package."
  12146. msgstr ""
  12147. #. type: code{#1}
  12148. #: guix-git/doc/guix.texi:7198
  12149. #, no-wrap
  12150. msgid "license"
  12151. msgstr ""
  12152. #. type: cindex
  12153. #: guix-git/doc/guix.texi:7199
  12154. #, no-wrap
  12155. msgid "license, of packages"
  12156. msgstr ""
  12157. #. type: table
  12158. #: guix-git/doc/guix.texi:7202
  12159. msgid "The license of the package; a value from @code{(guix licenses)}, or a list of such values."
  12160. msgstr ""
  12161. #. type: itemx
  12162. #: guix-git/doc/guix.texi:7203 guix-git/doc/guix.texi:12602
  12163. #, no-wrap
  12164. msgid "home-page"
  12165. msgstr ""
  12166. #. type: table
  12167. #: guix-git/doc/guix.texi:7205
  12168. msgid "The URL to the home-page of the package, as a string."
  12169. msgstr ""
  12170. #. type: item
  12171. #: guix-git/doc/guix.texi:7206
  12172. #, fuzzy, no-wrap
  12173. msgid "@code{supported-systems} (default: @code{%supported-systems})"
  12174. msgstr "@code{port}(默认值:@code{22})"
  12175. #. type: table
  12176. #: guix-git/doc/guix.texi:7209
  12177. msgid "The list of systems supported by the package, as strings of the form @code{architecture-kernel}, for example @code{\"x86_64-linux\"}."
  12178. msgstr ""
  12179. #. type: item
  12180. #: guix-git/doc/guix.texi:7210
  12181. #, no-wrap
  12182. msgid "@code{location} (default: source location of the @code{package} form)"
  12183. msgstr ""
  12184. #. type: table
  12185. #: guix-git/doc/guix.texi:7214
  12186. 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."
  12187. msgstr ""
  12188. #. type: deffn
  12189. #: guix-git/doc/guix.texi:7217
  12190. #, no-wrap
  12191. msgid "{Scheme Syntax} this-package"
  12192. msgstr ""
  12193. #. type: deffn
  12194. #: guix-git/doc/guix.texi:7220
  12195. msgid "When used in the @emph{lexical scope} of a package field definition, this identifier resolves to the package being defined."
  12196. msgstr ""
  12197. #. type: deffn
  12198. #: guix-git/doc/guix.texi:7223
  12199. msgid "The example below shows how to add a package as a native input of itself when cross-compiling:"
  12200. msgstr ""
  12201. #. type: lisp
  12202. #: guix-git/doc/guix.texi:7228
  12203. #, no-wrap
  12204. msgid ""
  12205. "(package\n"
  12206. " (name \"guile\")\n"
  12207. " ;; ...\n"
  12208. "\n"
  12209. msgstr ""
  12210. #. type: lisp
  12211. #: guix-git/doc/guix.texi:7234
  12212. #, no-wrap
  12213. msgid ""
  12214. " ;; When cross-compiled, Guile, for example, depends on\n"
  12215. " ;; a native version of itself. Add it here.\n"
  12216. " (native-inputs (if (%current-target-system)\n"
  12217. " `((\"self\" ,this-package))\n"
  12218. " '())))\n"
  12219. msgstr ""
  12220. #. type: deffn
  12221. #: guix-git/doc/guix.texi:7237
  12222. msgid "It is an error to refer to @code{this-package} outside a package definition."
  12223. msgstr ""
  12224. #. type: cindex
  12225. #: guix-git/doc/guix.texi:7239
  12226. #, fuzzy, no-wrap
  12227. msgid "development inputs, of a package"
  12228. msgstr "创建软件包的变体。"
  12229. #. type: cindex
  12230. #: guix-git/doc/guix.texi:7240
  12231. #, fuzzy, no-wrap
  12232. #| msgid "inputs, for Python packages"
  12233. msgid "implicit inputs, of a package"
  12234. msgstr "Python软件包的输入"
  12235. #. type: Plain text
  12236. #: guix-git/doc/guix.texi:7245
  12237. msgid "Sometimes you will want to obtain the list of inputs needed to @emph{develop} a package---all the inputs that are visible when the package is compiled. This is what the @code{package-development-inputs} procedure returns."
  12238. msgstr ""
  12239. #. type: deffn
  12240. #: guix-git/doc/guix.texi:7246
  12241. #, no-wrap
  12242. msgid "{Scheme Procedure} package-development-inputs @var{package} @"
  12243. msgstr ""
  12244. #. type: deffn
  12245. #: guix-git/doc/guix.texi:7253
  12246. msgid "[@var{system}] [#:target #f] Return the list of inputs required by @var{package} for development purposes on @var{system}. When @var{target} is true, return the inputs needed to cross-compile @var{package} from @var{system} to @var{triplet}, where @var{triplet} is a triplet such as @code{\"aarch64-linux-gnu\"}."
  12247. msgstr ""
  12248. #. type: deffn
  12249. #: guix-git/doc/guix.texi:7257
  12250. msgid "Note that the result includes both explicit inputs and implicit inputs---inputs automatically added by the build system (@pxref{Build Systems}). Let us take the @code{hello} package to illustrate that:"
  12251. msgstr ""
  12252. #. type: lisp
  12253. #: guix-git/doc/guix.texi:7260
  12254. #, no-wrap
  12255. msgid ""
  12256. "(use-modules (gnu packages base) (guix packages))\n"
  12257. "\n"
  12258. msgstr ""
  12259. #. type: lisp
  12260. #: guix-git/doc/guix.texi:7263
  12261. #, no-wrap
  12262. msgid ""
  12263. "hello\n"
  12264. "@result{} #<package hello@@2.10 gnu/packages/base.scm:79 7f585d4f6790>\n"
  12265. "\n"
  12266. msgstr ""
  12267. #. type: lisp
  12268. #: guix-git/doc/guix.texi:7266
  12269. #, no-wrap
  12270. msgid ""
  12271. "(package-direct-inputs hello)\n"
  12272. "@result{} ()\n"
  12273. "\n"
  12274. msgstr ""
  12275. #. type: lisp
  12276. #: guix-git/doc/guix.texi:7269
  12277. #, no-wrap
  12278. msgid ""
  12279. "(package-development-inputs hello)\n"
  12280. "@result{} ((\"source\" @dots{}) (\"tar\" #<package tar@@1.32 @dots{}>) @dots{})\n"
  12281. msgstr ""
  12282. #. type: deffn
  12283. #: guix-git/doc/guix.texi:7278
  12284. msgid "In this example, @code{package-direct-inputs} returns the empty list, because @code{hello} has zero explicit dependencies. Conversely, @code{package-development-inputs} includes inputs implicitly added by @code{gnu-build-system} that are required to build @code{hello}: tar, gzip, GCC, libc, Bash, and more. To visualize it, @command{guix graph hello} would show you explicit inputs, whereas @command{guix graph -t bag hello} would include implicit inputs (@pxref{Invoking guix graph})."
  12285. msgstr ""
  12286. #. type: Plain text
  12287. #: guix-git/doc/guix.texi:7284
  12288. 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."
  12289. msgstr ""
  12290. #. type: cindex
  12291. #: guix-git/doc/guix.texi:7285
  12292. #, no-wrap
  12293. msgid "tool chain, choosing a package's tool chain"
  12294. msgstr ""
  12295. #. type: deffn
  12296. #: guix-git/doc/guix.texi:7286
  12297. #, no-wrap
  12298. msgid "{Scheme Procedure} package-with-c-toolchain @var{package} @var{toolchain}"
  12299. msgstr ""
  12300. #. type: deffn
  12301. #: guix-git/doc/guix.texi:7291
  12302. 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."
  12303. msgstr ""
  12304. #. type: deffn
  12305. #: guix-git/doc/guix.texi:7295
  12306. 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:"
  12307. msgstr ""
  12308. #. type: lisp
  12309. #: guix-git/doc/guix.texi:7299
  12310. #, no-wrap
  12311. msgid ""
  12312. "(let ((toolchain (specification->package \"gcc-toolchain@@10\")))\n"
  12313. " (package-with-c-toolchain hello `((\"toolchain\" ,toolchain))))\n"
  12314. msgstr ""
  12315. #. type: deffn
  12316. #: guix-git/doc/guix.texi:7307
  12317. 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."
  12318. msgstr ""
  12319. #. type: subsection
  12320. #: guix-git/doc/guix.texi:7310
  12321. #, no-wrap
  12322. msgid "@code{origin} Reference"
  12323. msgstr ""
  12324. #. type: Plain text
  12325. #: guix-git/doc/guix.texi:7318
  12326. 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."
  12327. msgstr ""
  12328. #. type: deftp
  12329. #: guix-git/doc/guix.texi:7319
  12330. #, no-wrap
  12331. msgid "{Data Type} origin"
  12332. msgstr ""
  12333. #. type: deftp
  12334. #: guix-git/doc/guix.texi:7321
  12335. msgid "This is the data type representing a source code origin."
  12336. msgstr ""
  12337. #. type: code{#1}
  12338. #: guix-git/doc/guix.texi:7323 guix-git/doc/guix.texi:26011
  12339. #, no-wrap
  12340. msgid "uri"
  12341. msgstr ""
  12342. #. type: table
  12343. #: guix-git/doc/guix.texi:7328
  12344. 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."
  12345. msgstr ""
  12346. #. type: cindex
  12347. #: guix-git/doc/guix.texi:7329
  12348. #, no-wrap
  12349. msgid "fixed-output derivations, for download"
  12350. msgstr ""
  12351. #. type: code{#1}
  12352. #: guix-git/doc/guix.texi:7330
  12353. #, no-wrap
  12354. msgid "method"
  12355. msgstr ""
  12356. #. type: table
  12357. #: guix-git/doc/guix.texi:7337
  12358. 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})."
  12359. msgstr ""
  12360. #. type: table
  12361. #: guix-git/doc/guix.texi:7341
  12362. 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)."
  12363. msgstr ""
  12364. #. type: code{#1}
  12365. #: guix-git/doc/guix.texi:7342
  12366. #, no-wrap
  12367. msgid "sha256"
  12368. msgstr ""
  12369. #. type: table
  12370. #: guix-git/doc/guix.texi:7346
  12371. 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."
  12372. msgstr ""
  12373. #. type: code{#1}
  12374. #: guix-git/doc/guix.texi:7347
  12375. #, no-wrap
  12376. msgid "hash"
  12377. msgstr ""
  12378. #. type: table
  12379. #: guix-git/doc/guix.texi:7350
  12380. msgid "The @code{content-hash} object of the source---see below for how to use @code{content-hash}."
  12381. msgstr ""
  12382. #. type: table
  12383. #: guix-git/doc/guix.texi:7354
  12384. msgid "You can obtain this information using @code{guix download} (@pxref{Invoking guix download}) or @code{guix hash} (@pxref{Invoking guix hash})."
  12385. msgstr ""
  12386. #. type: item
  12387. #: guix-git/doc/guix.texi:7355
  12388. #, no-wrap
  12389. msgid "@code{file-name} (default: @code{#f})"
  12390. msgstr ""
  12391. #. type: table
  12392. #: guix-git/doc/guix.texi:7361
  12393. 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."
  12394. msgstr ""
  12395. #. type: item
  12396. #: guix-git/doc/guix.texi:7362
  12397. #, no-wrap
  12398. msgid "@code{patches} (default: @code{'()})"
  12399. msgstr ""
  12400. #. type: table
  12401. #: guix-git/doc/guix.texi:7365
  12402. 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."
  12403. msgstr ""
  12404. #. type: table
  12405. #: guix-git/doc/guix.texi:7369
  12406. 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}."
  12407. msgstr ""
  12408. #. type: item
  12409. #: guix-git/doc/guix.texi:7370
  12410. #, no-wrap
  12411. msgid "@code{snippet} (default: @code{#f})"
  12412. msgstr ""
  12413. #. type: table
  12414. #: guix-git/doc/guix.texi:7374
  12415. 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."
  12416. msgstr ""
  12417. #. type: item
  12418. #: guix-git/doc/guix.texi:7375
  12419. #, no-wrap
  12420. msgid "@code{patch-flags} (default: @code{'(\"-p1\")})"
  12421. msgstr ""
  12422. #. type: table
  12423. #: guix-git/doc/guix.texi:7378
  12424. msgid "A list of command-line flags that should be passed to the @code{patch} command."
  12425. msgstr ""
  12426. #. type: item
  12427. #: guix-git/doc/guix.texi:7379
  12428. #, no-wrap
  12429. msgid "@code{patch-inputs} (default: @code{#f})"
  12430. msgstr ""
  12431. #. type: table
  12432. #: guix-git/doc/guix.texi:7383
  12433. 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."
  12434. msgstr ""
  12435. #. type: item
  12436. #: guix-git/doc/guix.texi:7384 guix-git/doc/guix.texi:25884
  12437. #, no-wrap
  12438. msgid "@code{modules} (default: @code{'()})"
  12439. msgstr ""
  12440. #. type: table
  12441. #: guix-git/doc/guix.texi:7387
  12442. msgid "A list of Guile modules that should be loaded during the patching process and while running the code in the @code{snippet} field."
  12443. msgstr ""
  12444. #. type: item
  12445. #: guix-git/doc/guix.texi:7388
  12446. #, no-wrap
  12447. msgid "@code{patch-guile} (default: @code{#f})"
  12448. msgstr ""
  12449. #. type: table
  12450. #: guix-git/doc/guix.texi:7391
  12451. msgid "The Guile package that should be used in the patching process. When this is @code{#f}, a sensible default is used."
  12452. msgstr ""
  12453. #. type: deftp
  12454. #: guix-git/doc/guix.texi:7394
  12455. #, no-wrap
  12456. msgid "{Data Type} content-hash @var{value} [@var{algorithm}]"
  12457. msgstr ""
  12458. #. type: deftp
  12459. #: guix-git/doc/guix.texi:7398
  12460. 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}."
  12461. msgstr ""
  12462. #. type: deftp
  12463. #: guix-git/doc/guix.texi:7401
  12464. msgid "@var{value} can be a literal string, in which case it is base32-decoded, or it can be a bytevector."
  12465. msgstr ""
  12466. #. type: deftp
  12467. #: guix-git/doc/guix.texi:7403
  12468. #, fuzzy
  12469. msgid "The following forms are all equivalent:"
  12470. msgstr "这些依赖是可选的:"
  12471. #. type: lisp
  12472. #: guix-git/doc/guix.texi:7412
  12473. #, no-wrap
  12474. msgid ""
  12475. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\")\n"
  12476. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"\n"
  12477. " sha256)\n"
  12478. "(content-hash (base32\n"
  12479. " \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"))\n"
  12480. "(content-hash (base64 \"kkb+RPaP7uyMZmu4eXPVkM4BN8yhRd8BTHLslb6f/Rc=\")\n"
  12481. " sha256)\n"
  12482. msgstr ""
  12483. #. type: deftp
  12484. #: guix-git/doc/guix.texi:7417
  12485. 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}."
  12486. msgstr ""
  12487. #. type: Plain text
  12488. #: guix-git/doc/guix.texi:7423
  12489. 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."
  12490. msgstr ""
  12491. #. type: deffn
  12492. #: guix-git/doc/guix.texi:7424
  12493. #, no-wrap
  12494. msgid "{Scheme Procedure} url-fetch @var{url} @var{hash-algo} @var{hash} @"
  12495. msgstr ""
  12496. #. type: deffn
  12497. #: guix-git/doc/guix.texi:7432
  12498. 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."
  12499. msgstr ""
  12500. #. type: deffn
  12501. #: guix-git/doc/guix.texi:7435
  12502. 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}."
  12503. msgstr ""
  12504. #. type: deffn
  12505. #: guix-git/doc/guix.texi:7438
  12506. msgid "Alternatively, when URL starts with @code{file://}, return the corresponding file name in the store."
  12507. msgstr ""
  12508. #. type: Plain text
  12509. #: guix-git/doc/guix.texi:7444
  12510. 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."
  12511. msgstr ""
  12512. #. type: deffn
  12513. #: guix-git/doc/guix.texi:7445
  12514. #, no-wrap
  12515. msgid "{Scheme Procedure} git-fetch @var{ref} @var{hash-algo} @var{hash}"
  12516. msgstr ""
  12517. #. type: deffn
  12518. #: guix-git/doc/guix.texi:7450
  12519. 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}."
  12520. msgstr ""
  12521. #. type: deftp
  12522. #: guix-git/doc/guix.texi:7452
  12523. #, fuzzy, no-wrap
  12524. msgid "{Data Type} git-reference"
  12525. msgstr "{数据类型} build-machine"
  12526. #. type: deftp
  12527. #: guix-git/doc/guix.texi:7455
  12528. msgid "This data type represents a Git reference for @code{git-fetch} to retrieve."
  12529. msgstr ""
  12530. #. type: code{#1}
  12531. #: guix-git/doc/guix.texi:7457 guix-git/doc/guix.texi:23645
  12532. #, no-wrap
  12533. msgid "url"
  12534. msgstr ""
  12535. #. type: table
  12536. #: guix-git/doc/guix.texi:7459
  12537. msgid "The URL of the Git repository to clone."
  12538. msgstr ""
  12539. #. type: code{#1}
  12540. #: guix-git/doc/guix.texi:7460
  12541. #, no-wrap
  12542. msgid "commit"
  12543. msgstr ""
  12544. #. type: table
  12545. #: guix-git/doc/guix.texi:7465
  12546. 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}."
  12547. msgstr ""
  12548. #. type: item
  12549. #: guix-git/doc/guix.texi:7466
  12550. #, fuzzy, no-wrap
  12551. msgid "@code{recursive?} (default: @code{#f})"
  12552. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  12553. #. type: table
  12554. #: guix-git/doc/guix.texi:7468
  12555. msgid "This Boolean indicates whether to recursively fetch Git sub-modules."
  12556. msgstr ""
  12557. #. type: deftp
  12558. #: guix-git/doc/guix.texi:7472
  12559. msgid "The example below denotes the @code{v2.10} tag of the GNU@tie{}Hello repository:"
  12560. msgstr ""
  12561. #. type: lisp
  12562. #: guix-git/doc/guix.texi:7477
  12563. #, fuzzy, no-wrap
  12564. msgid ""
  12565. "(git-reference\n"
  12566. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  12567. " (commit \"v2.10\"))\n"
  12568. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  12569. #. type: deftp
  12570. #: guix-git/doc/guix.texi:7481
  12571. msgid "This is equivalent to the reference below, which explicitly names the commit:"
  12572. msgstr ""
  12573. #. type: lisp
  12574. #: guix-git/doc/guix.texi:7486
  12575. #, no-wrap
  12576. msgid ""
  12577. "(git-reference\n"
  12578. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  12579. " (commit \"dc7dc56a00e48fe6f231a58f6537139fe2908fb9\"))\n"
  12580. msgstr ""
  12581. #. type: Plain text
  12582. #: guix-git/doc/guix.texi:7492
  12583. 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."
  12584. msgstr ""
  12585. #. type: deffn
  12586. #: guix-git/doc/guix.texi:7493
  12587. #, no-wrap
  12588. msgid "{Scheme Procedure} hg-fetch @var{ref} @var{hash-algo} @var{hash} @"
  12589. msgstr ""
  12590. #. type: deffn
  12591. #: guix-git/doc/guix.texi:7499
  12592. 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}."
  12593. msgstr ""
  12594. #. type: cindex
  12595. #: guix-git/doc/guix.texi:7504
  12596. #, fuzzy, no-wrap
  12597. msgid "customizing packages"
  12598. msgstr "定制软件包"
  12599. #. type: cindex
  12600. #: guix-git/doc/guix.texi:7505
  12601. #, fuzzy, no-wrap
  12602. msgid "variants, of packages"
  12603. msgstr "创建软件包的变体。"
  12604. #. type: Plain text
  12605. #: guix-git/doc/guix.texi:7515
  12606. 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!"
  12607. msgstr ""
  12608. #. type: cindex
  12609. #: guix-git/doc/guix.texi:7516
  12610. #, fuzzy, no-wrap
  12611. msgid "inherit, for package definitions"
  12612. msgstr "从软件包定义里寻找错误。"
  12613. #. type: Plain text
  12614. #: guix-git/doc/guix.texi:7523
  12615. 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."
  12616. msgstr ""
  12617. #. type: Plain text
  12618. #: guix-git/doc/guix.texi:7528
  12619. 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!):"
  12620. msgstr ""
  12621. #. type: lisp
  12622. #: guix-git/doc/guix.texi:7531
  12623. #, no-wrap
  12624. msgid ""
  12625. "(use-modules (gnu packages base)) ;for 'hello'\n"
  12626. "\n"
  12627. msgstr ""
  12628. #. type: lisp
  12629. #: guix-git/doc/guix.texi:7543
  12630. #, no-wrap
  12631. msgid ""
  12632. "(define hello-2.2\n"
  12633. " (package\n"
  12634. " (inherit hello)\n"
  12635. " (version \"2.2\")\n"
  12636. " (source (origin\n"
  12637. " (method url-fetch)\n"
  12638. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  12639. " \".tar.gz\"))\n"
  12640. " (sha256\n"
  12641. " (base32\n"
  12642. " \"0lappv4slgb5spyqbh6yl5r013zv72yqg2pcl30mginf3wdqd8k9\"))))))\n"
  12643. msgstr ""
  12644. #. type: Plain text
  12645. #: guix-git/doc/guix.texi:7552
  12646. 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."
  12647. msgstr ""
  12648. #. type: Plain text
  12649. #: guix-git/doc/guix.texi:7558
  12650. 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:"
  12651. msgstr ""
  12652. #. type: lisp
  12653. #: guix-git/doc/guix.texi:7562
  12654. #, no-wrap
  12655. msgid ""
  12656. "(use-modules (gnu packages gdb) ;for 'gdb'\n"
  12657. " (srfi srfi-1)) ;for 'alist-delete'\n"
  12658. "\n"
  12659. msgstr ""
  12660. #. type: lisp
  12661. #: guix-git/doc/guix.texi:7568
  12662. #, no-wrap
  12663. msgid ""
  12664. "(define gdb-sans-guile\n"
  12665. " (package\n"
  12666. " (inherit gdb)\n"
  12667. " (inputs (alist-delete \"guile\"\n"
  12668. " (package-inputs gdb)))))\n"
  12669. msgstr ""
  12670. #. type: Plain text
  12671. #: guix-git/doc/guix.texi:7574
  12672. 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})."
  12673. msgstr ""
  12674. #. type: Plain text
  12675. #: guix-git/doc/guix.texi:7582
  12676. 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:"
  12677. msgstr ""
  12678. #. type: lisp
  12679. #: guix-git/doc/guix.texi:7593
  12680. #, no-wrap
  12681. msgid ""
  12682. "(define (make-lua-socket name lua)\n"
  12683. " ;; Return a luasocket package built with LUA.\n"
  12684. " (package\n"
  12685. " (name name)\n"
  12686. " (version \"3.0\")\n"
  12687. " ;; several fields omitted\n"
  12688. " (inputs\n"
  12689. " `((\"lua\" ,lua)))\n"
  12690. " (synopsis \"Socket library for Lua\")))\n"
  12691. "\n"
  12692. msgstr ""
  12693. #. type: lisp
  12694. #: guix-git/doc/guix.texi:7596
  12695. #, no-wrap
  12696. msgid ""
  12697. "(define-public lua5.1-socket\n"
  12698. " (make-lua-socket \"lua5.1-socket\" lua-5.1))\n"
  12699. "\n"
  12700. msgstr ""
  12701. #. type: lisp
  12702. #: guix-git/doc/guix.texi:7599
  12703. #, no-wrap
  12704. msgid ""
  12705. "(define-public lua5.2-socket\n"
  12706. " (make-lua-socket \"lua5.2-socket\" lua-5.2))\n"
  12707. msgstr ""
  12708. #. type: Plain text
  12709. #: guix-git/doc/guix.texi:7607
  12710. 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})."
  12711. msgstr ""
  12712. #. type: cindex
  12713. #: guix-git/doc/guix.texi:7608
  12714. #, no-wrap
  12715. msgid "package transformations"
  12716. msgstr ""
  12717. #. type: Plain text
  12718. #: guix-git/doc/guix.texi:7613
  12719. 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}):"
  12720. msgstr ""
  12721. #. type: deffn
  12722. #: guix-git/doc/guix.texi:7614
  12723. #, no-wrap
  12724. msgid "{Scheme Procedure} options->transformation @var{opts}"
  12725. msgstr ""
  12726. #. type: deffn
  12727. #: guix-git/doc/guix.texi:7618
  12728. 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:"
  12729. msgstr ""
  12730. #. type: lisp
  12731. #: guix-git/doc/guix.texi:7622
  12732. #, no-wrap
  12733. msgid ""
  12734. "((with-branch . \"guile-gcrypt=master\")\n"
  12735. " (without-tests . \"libgcrypt\"))\n"
  12736. msgstr ""
  12737. #. type: deffn
  12738. #: guix-git/doc/guix.texi:7626
  12739. msgid "Each symbol names a transformation and the corresponding string is an argument to that transformation."
  12740. msgstr ""
  12741. #. type: Plain text
  12742. #: guix-git/doc/guix.texi:7629
  12743. msgid "For instance, a manifest equivalent to this command:"
  12744. msgstr ""
  12745. #. type: example
  12746. #: guix-git/doc/guix.texi:7634
  12747. #, no-wrap
  12748. msgid ""
  12749. "guix build guix \\\n"
  12750. " --with-branch=guile-gcrypt=master \\\n"
  12751. " --with-debug-info=zlib\n"
  12752. msgstr ""
  12753. #. type: Plain text
  12754. #: guix-git/doc/guix.texi:7638
  12755. msgid "... would look like this:"
  12756. msgstr ""
  12757. #. type: lisp
  12758. #: guix-git/doc/guix.texi:7641
  12759. #, no-wrap
  12760. msgid ""
  12761. "(use-modules (guix transformations))\n"
  12762. "\n"
  12763. msgstr ""
  12764. #. type: lisp
  12765. #: guix-git/doc/guix.texi:7647
  12766. #, no-wrap
  12767. msgid ""
  12768. "(define transform\n"
  12769. " ;; The package transformation procedure.\n"
  12770. " (options->transformation\n"
  12771. " '((with-branch . \"guile-gcrypt=master\")\n"
  12772. " (with-debug-info . \"zlib\"))))\n"
  12773. "\n"
  12774. msgstr ""
  12775. #. type: lisp
  12776. #: guix-git/doc/guix.texi:7650
  12777. #, no-wrap
  12778. msgid ""
  12779. "(packages->manifest\n"
  12780. " (list (transform (specification->package \"guix\"))))\n"
  12781. msgstr ""
  12782. #. type: cindex
  12783. #: guix-git/doc/guix.texi:7652
  12784. #, no-wrap
  12785. msgid "input rewriting"
  12786. msgstr ""
  12787. #. type: cindex
  12788. #: guix-git/doc/guix.texi:7653
  12789. #, no-wrap
  12790. msgid "dependency graph rewriting"
  12791. msgstr ""
  12792. #. type: Plain text
  12793. #: guix-git/doc/guix.texi:7660
  12794. 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."
  12795. msgstr ""
  12796. #. type: Plain text
  12797. #: guix-git/doc/guix.texi:7664
  12798. 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."
  12799. msgstr ""
  12800. #. type: deffn
  12801. #: guix-git/doc/guix.texi:7665
  12802. #, no-wrap
  12803. msgid "{Scheme Procedure} package-input-rewriting @var{replacements} @"
  12804. msgstr ""
  12805. #. type: deffn
  12806. #: guix-git/doc/guix.texi:7672
  12807. 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."
  12808. msgstr ""
  12809. #. type: deffn
  12810. #: guix-git/doc/guix.texi:7675
  12811. msgid "Optionally, @var{rewrite-name} is a one-argument procedure that takes the name of a package and returns its new name after rewrite."
  12812. msgstr ""
  12813. #. type: table
  12814. #: guix-git/doc/guix.texi:7679 guix-git/doc/guix.texi:11031
  12815. msgid "Consider this example:"
  12816. msgstr ""
  12817. #. type: lisp
  12818. #: guix-git/doc/guix.texi:7685
  12819. #, no-wrap
  12820. msgid ""
  12821. "(define libressl-instead-of-openssl\n"
  12822. " ;; This is a procedure to replace OPENSSL by LIBRESSL,\n"
  12823. " ;; recursively.\n"
  12824. " (package-input-rewriting `((,openssl . ,libressl))))\n"
  12825. "\n"
  12826. msgstr ""
  12827. #. type: lisp
  12828. #: guix-git/doc/guix.texi:7688
  12829. #, no-wrap
  12830. msgid ""
  12831. "(define git-with-libressl\n"
  12832. " (libressl-instead-of-openssl git))\n"
  12833. msgstr ""
  12834. #. type: Plain text
  12835. #: guix-git/doc/guix.texi:7696
  12836. 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}})."
  12837. msgstr ""
  12838. #. type: Plain text
  12839. #: guix-git/doc/guix.texi:7699
  12840. msgid "The following variant of @code{package-input-rewriting} can match packages to be replaced by name rather than by identity."
  12841. msgstr ""
  12842. #. type: deffn
  12843. #: guix-git/doc/guix.texi:7700
  12844. #, no-wrap
  12845. msgid "{Scheme Procedure} package-input-rewriting/spec @var{replacements} [#:deep? #t]"
  12846. msgstr ""
  12847. #. type: deffn
  12848. #: guix-git/doc/guix.texi:7707
  12849. 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."
  12850. msgstr ""
  12851. #. type: Plain text
  12852. #: guix-git/doc/guix.texi:7710
  12853. msgid "The example above could be rewritten this way:"
  12854. msgstr ""
  12855. #. type: lisp
  12856. #: guix-git/doc/guix.texi:7715
  12857. #, no-wrap
  12858. msgid ""
  12859. "(define libressl-instead-of-openssl\n"
  12860. " ;; Replace all the packages called \"openssl\" with LibreSSL.\n"
  12861. " (package-input-rewriting/spec `((\"openssl\" . ,(const libressl)))))\n"
  12862. msgstr ""
  12863. #. type: Plain text
  12864. #: guix-git/doc/guix.texi:7720
  12865. 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."
  12866. msgstr ""
  12867. #. type: Plain text
  12868. #: guix-git/doc/guix.texi:7724
  12869. msgid "A more generic procedure to rewrite a package dependency graph is @code{package-mapping}: it supports arbitrary changes to nodes in the graph."
  12870. msgstr ""
  12871. #. type: deffn
  12872. #: guix-git/doc/guix.texi:7725
  12873. #, no-wrap
  12874. msgid "{Scheme Procedure} package-mapping @var{proc} [@var{cut?}] [#:deep? #f]"
  12875. msgstr ""
  12876. #. type: deffn
  12877. #: guix-git/doc/guix.texi:7730
  12878. 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."
  12879. msgstr ""
  12880. #. type: cindex
  12881. #: guix-git/doc/guix.texi:7736
  12882. #, no-wrap
  12883. msgid "build system"
  12884. msgstr ""
  12885. #. type: Plain text
  12886. #: guix-git/doc/guix.texi:7741
  12887. 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."
  12888. msgstr ""
  12889. #. type: Plain text
  12890. #: guix-git/doc/guix.texi:7745
  12891. 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."
  12892. msgstr ""
  12893. #. type: cindex
  12894. #: guix-git/doc/guix.texi:7746
  12895. #, no-wrap
  12896. msgid "bag (low-level package representation)"
  12897. msgstr ""
  12898. #. type: Plain text
  12899. #: guix-git/doc/guix.texi:7756
  12900. 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}})."
  12901. msgstr ""
  12902. #. type: Plain text
  12903. #: guix-git/doc/guix.texi:7764
  12904. 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})."
  12905. msgstr ""
  12906. #. type: Plain text
  12907. #: guix-git/doc/guix.texi:7768
  12908. 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."
  12909. msgstr ""
  12910. #. type: defvr
  12911. #: guix-git/doc/guix.texi:7769
  12912. #, no-wrap
  12913. msgid "{Scheme Variable} gnu-build-system"
  12914. msgstr ""
  12915. #. type: defvr
  12916. #: guix-git/doc/guix.texi:7773
  12917. msgid "@code{gnu-build-system} represents the GNU Build System, and variants thereof (@pxref{Configuration, configuration and makefile conventions,, standards, GNU Coding Standards})."
  12918. msgstr ""
  12919. #. type: cindex
  12920. #: guix-git/doc/guix.texi:7774 guix-git/doc/guix.texi:8716
  12921. #: guix-git/doc/guix.texi:9171
  12922. #, no-wrap
  12923. msgid "build phases"
  12924. msgstr ""
  12925. #. type: defvr
  12926. #: guix-git/doc/guix.texi:7781
  12927. 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."
  12928. msgstr ""
  12929. #. type: defvr
  12930. #: guix-git/doc/guix.texi:7788
  12931. 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."
  12932. msgstr ""
  12933. #. type: defvr
  12934. #: guix-git/doc/guix.texi:7792
  12935. 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:"
  12936. msgstr ""
  12937. #. type: item
  12938. #: guix-git/doc/guix.texi:7794
  12939. #, no-wrap
  12940. msgid "#:phases"
  12941. msgstr ""
  12942. #. type: table
  12943. #: guix-git/doc/guix.texi:7797
  12944. msgid "This argument specifies build-side code that evaluates to an alist of build phases. @xref{Build Phases}, for more information."
  12945. msgstr ""
  12946. #. type: item
  12947. #: guix-git/doc/guix.texi:7798
  12948. #, fuzzy, no-wrap
  12949. msgid "#:configure-flags"
  12950. msgstr "系统配置"
  12951. #. type: table
  12952. #: guix-git/doc/guix.texi:7801
  12953. msgid "This is a list of flags (strings) passed to the @command{configure} script. @xref{Defining Packages}, for an example."
  12954. msgstr ""
  12955. #. type: item
  12956. #: guix-git/doc/guix.texi:7802
  12957. #, no-wrap
  12958. msgid "#:make-flags"
  12959. msgstr ""
  12960. #. type: table
  12961. #: guix-git/doc/guix.texi:7806
  12962. msgid "This list of strings contains flags passed as arguments to @command{make} invocations in the @code{build}, @code{check}, and @code{install} phases."
  12963. msgstr ""
  12964. #. type: item
  12965. #: guix-git/doc/guix.texi:7807
  12966. #, no-wrap
  12967. msgid "#:out-of-source?"
  12968. msgstr ""
  12969. #. type: table
  12970. #: guix-git/doc/guix.texi:7810
  12971. msgid "This Boolean, @code{#f} by default, indicates whether to run builds in a build directory separate from the source tree."
  12972. msgstr ""
  12973. #. type: table
  12974. #: guix-git/doc/guix.texi:7815
  12975. 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}."
  12976. msgstr ""
  12977. #. type: item
  12978. #: guix-git/doc/guix.texi:7816
  12979. #, no-wrap
  12980. msgid "#:tests?"
  12981. msgstr ""
  12982. #. type: table
  12983. #: guix-git/doc/guix.texi:7819
  12984. msgid "This Boolean, @code{#t} by default, indicates whether the @code{check} phase should run the package's test suite."
  12985. msgstr ""
  12986. #. type: item
  12987. #: guix-git/doc/guix.texi:7820
  12988. #, no-wrap
  12989. msgid "#:test-target"
  12990. msgstr ""
  12991. #. type: table
  12992. #: guix-git/doc/guix.texi:7823
  12993. msgid "This string, @code{\"check\"} by default, gives the name of the makefile target used by the @code{check} phase."
  12994. msgstr ""
  12995. #. type: item
  12996. #: guix-git/doc/guix.texi:7824
  12997. #, no-wrap
  12998. msgid "#:parallel-build?"
  12999. msgstr ""
  13000. #. type: itemx
  13001. #: guix-git/doc/guix.texi:7825
  13002. #, no-wrap
  13003. msgid "#:parallel-tests?"
  13004. msgstr ""
  13005. #. type: table
  13006. #: guix-git/doc/guix.texi:7832
  13007. 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}})."
  13008. msgstr ""
  13009. #. type: cindex
  13010. #: guix-git/doc/guix.texi:7833
  13011. #, no-wrap
  13012. msgid "RUNPATH, validation"
  13013. msgstr ""
  13014. #. type: item
  13015. #: guix-git/doc/guix.texi:7834
  13016. #, no-wrap
  13017. msgid "#:validate-runpath?"
  13018. msgstr ""
  13019. #. type: table
  13020. #: guix-git/doc/guix.texi:7838
  13021. 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."
  13022. msgstr ""
  13023. #. type: table
  13024. #: guix-git/doc/guix.texi:7846
  13025. 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}."
  13026. msgstr ""
  13027. #. type: item
  13028. #: guix-git/doc/guix.texi:7847
  13029. #, fuzzy, no-wrap
  13030. msgid "#:substitutable?"
  13031. msgstr "substitutes"
  13032. #. type: table
  13033. #: guix-git/doc/guix.texi:7851
  13034. 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})."
  13035. msgstr ""
  13036. #. type: item
  13037. #: guix-git/doc/guix.texi:7852
  13038. #, no-wrap
  13039. msgid "#:allowed-references"
  13040. msgstr ""
  13041. #. type: itemx
  13042. #: guix-git/doc/guix.texi:7853
  13043. #, no-wrap
  13044. msgid "#:disallowed-references"
  13045. msgstr ""
  13046. #. type: table
  13047. #: guix-git/doc/guix.texi:7858
  13048. 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."
  13049. msgstr ""
  13050. #. type: table
  13051. #: guix-git/doc/guix.texi:7863
  13052. 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})."
  13053. msgstr ""
  13054. #. type: defvr
  13055. #: guix-git/doc/guix.texi:7866
  13056. msgid "Most other build systems support these keyword arguments."
  13057. msgstr ""
  13058. #. type: Plain text
  13059. #: guix-git/doc/guix.texi:7873
  13060. 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."
  13061. msgstr ""
  13062. #. type: defvr
  13063. #: guix-git/doc/guix.texi:7874
  13064. #, no-wrap
  13065. msgid "{Scheme Variable} ant-build-system"
  13066. msgstr ""
  13067. #. type: defvr
  13068. #: guix-git/doc/guix.texi:7878
  13069. 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}."
  13070. msgstr ""
  13071. #. type: defvr
  13072. #: guix-git/doc/guix.texi:7883
  13073. 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."
  13074. msgstr ""
  13075. #. type: defvr
  13076. #: guix-git/doc/guix.texi:7889
  13077. 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''."
  13078. msgstr ""
  13079. #. type: defvr
  13080. #: guix-git/doc/guix.texi:7897
  13081. 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."
  13082. msgstr ""
  13083. #. type: defvr
  13084. #: guix-git/doc/guix.texi:7901
  13085. 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."
  13086. msgstr ""
  13087. #. type: defvr
  13088. #: guix-git/doc/guix.texi:7904
  13089. #, no-wrap
  13090. msgid "{Scheme Variable} android-ndk-build-system"
  13091. msgstr ""
  13092. #. type: cindex
  13093. #: guix-git/doc/guix.texi:7905
  13094. #, no-wrap
  13095. msgid "Android distribution"
  13096. msgstr ""
  13097. #. type: cindex
  13098. #: guix-git/doc/guix.texi:7906
  13099. #, no-wrap
  13100. msgid "Android NDK build system"
  13101. msgstr ""
  13102. #. type: defvr
  13103. #: guix-git/doc/guix.texi:7910
  13104. 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."
  13105. msgstr ""
  13106. #. type: defvr
  13107. #: guix-git/doc/guix.texi:7914
  13108. 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."
  13109. msgstr ""
  13110. #. type: defvr
  13111. #: guix-git/doc/guix.texi:7917
  13112. msgid "It's also assumed that the union of all the dependencies of a package has no conflicting files."
  13113. msgstr ""
  13114. #. type: defvr
  13115. #: guix-git/doc/guix.texi:7920
  13116. msgid "For the time being, cross-compilation is not supported - so right now the libraries and header files are assumed to be host tools."
  13117. msgstr ""
  13118. #. type: defvr
  13119. #: guix-git/doc/guix.texi:7923
  13120. #, no-wrap
  13121. msgid "{Scheme Variable} asdf-build-system/source"
  13122. msgstr ""
  13123. #. type: defvrx
  13124. #: guix-git/doc/guix.texi:7924
  13125. #, no-wrap
  13126. msgid "{Scheme Variable} asdf-build-system/sbcl"
  13127. msgstr ""
  13128. #. type: defvrx
  13129. #: guix-git/doc/guix.texi:7925
  13130. #, no-wrap
  13131. msgid "{Scheme Variable} asdf-build-system/ecl"
  13132. msgstr ""
  13133. #. type: defvr
  13134. #: guix-git/doc/guix.texi:7931
  13135. 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."
  13136. msgstr ""
  13137. #. type: defvr
  13138. #: guix-git/doc/guix.texi:7938
  13139. 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."
  13140. msgstr ""
  13141. #. type: defvr
  13142. #: guix-git/doc/guix.texi:7942
  13143. 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}."
  13144. msgstr ""
  13145. #. type: defvr
  13146. #: guix-git/doc/guix.texi:7946
  13147. 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."
  13148. msgstr ""
  13149. #. type: defvr
  13150. #: guix-git/doc/guix.texi:7954
  13151. 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."
  13152. msgstr ""
  13153. #. type: defvr
  13154. #: guix-git/doc/guix.texi:7963
  13155. 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."
  13156. msgstr ""
  13157. #. type: defvr
  13158. #: guix-git/doc/guix.texi:7968
  13159. 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."
  13160. msgstr ""
  13161. #. type: defvr
  13162. #: guix-git/doc/guix.texi:7971
  13163. #, no-wrap
  13164. msgid "{Scheme Variable} cargo-build-system"
  13165. msgstr ""
  13166. #. type: cindex
  13167. #: guix-git/doc/guix.texi:7972
  13168. #, no-wrap
  13169. msgid "Rust programming language"
  13170. msgstr ""
  13171. #. type: cindex
  13172. #: guix-git/doc/guix.texi:7973
  13173. #, no-wrap
  13174. msgid "Cargo (Rust build system)"
  13175. msgstr ""
  13176. #. type: defvr
  13177. #: guix-git/doc/guix.texi:7977
  13178. 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}."
  13179. msgstr ""
  13180. #. type: defvr
  13181. #: guix-git/doc/guix.texi:7980
  13182. 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."
  13183. msgstr ""
  13184. #. type: defvr
  13185. #: guix-git/doc/guix.texi:7990
  13186. 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."
  13187. msgstr ""
  13188. #. type: defvr
  13189. #: guix-git/doc/guix.texi:8000
  13190. 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."
  13191. msgstr ""
  13192. #. type: defvr
  13193. #: guix-git/doc/guix.texi:8002
  13194. #, no-wrap
  13195. msgid "{Scheme Variable} chicken-build-system"
  13196. msgstr ""
  13197. #. type: defvr
  13198. #: guix-git/doc/guix.texi:8007
  13199. 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."
  13200. msgstr ""
  13201. #. type: defvr
  13202. #: guix-git/doc/guix.texi:8010
  13203. msgid "This build system adds @code{chicken} to the package inputs, as well as the packages of @code{gnu-build-system}."
  13204. msgstr ""
  13205. #. type: defvr
  13206. #: guix-git/doc/guix.texi:8014
  13207. 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."
  13208. msgstr ""
  13209. #. type: defvr
  13210. #: guix-git/doc/guix.texi:8016
  13211. msgid "For example, if you are packaging the @code{srfi-1} egg:"
  13212. msgstr ""
  13213. #. type: lisp
  13214. #: guix-git/doc/guix.texi:8019
  13215. #, no-wrap
  13216. msgid "(arguments '(#:egg-name \"srfi-1\"))\n"
  13217. msgstr ""
  13218. #. type: defvr
  13219. #: guix-git/doc/guix.texi:8024
  13220. 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."
  13221. msgstr ""
  13222. #. type: defvr
  13223. #: guix-git/doc/guix.texi:8026
  13224. #, no-wrap
  13225. msgid "{Scheme Variable} copy-build-system"
  13226. msgstr ""
  13227. #. type: defvr
  13228. #: guix-git/doc/guix.texi:8030
  13229. 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."
  13230. msgstr ""
  13231. #. type: defvr
  13232. #: guix-git/doc/guix.texi:8035
  13233. 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}."
  13234. msgstr ""
  13235. #. type: defvr
  13236. #: guix-git/doc/guix.texi:8040
  13237. 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."
  13238. msgstr ""
  13239. #. type: item
  13240. #: guix-git/doc/guix.texi:8042
  13241. #, no-wrap
  13242. msgid "When @var{source} matches a file or directory without trailing slash, install it to @var{target}."
  13243. msgstr ""
  13244. #. type: item
  13245. #: guix-git/doc/guix.texi:8044
  13246. #, no-wrap
  13247. msgid "If @var{target} has a trailing slash, install @var{source} basename beneath @var{target}."
  13248. msgstr ""
  13249. #. type: item
  13250. #: guix-git/doc/guix.texi:8045
  13251. #, no-wrap
  13252. msgid "Otherwise install @var{source} as @var{target}."
  13253. msgstr ""
  13254. #. type: item
  13255. #: guix-git/doc/guix.texi:8048
  13256. #, no-wrap
  13257. msgid "When @var{source} is a directory with a trailing slash, or when @var{filters} are used,"
  13258. msgstr ""
  13259. #. type: itemize
  13260. #: guix-git/doc/guix.texi:8051
  13261. msgid "the trailing slash of @var{target} is implied with the same meaning as above."
  13262. msgstr ""
  13263. #. type: item
  13264. #: guix-git/doc/guix.texi:8052
  13265. #, no-wrap
  13266. msgid "Without @var{filters}, install the full @var{source} @emph{content} to @var{target}."
  13267. msgstr ""
  13268. #. type: item
  13269. #: guix-git/doc/guix.texi:8053
  13270. #, no-wrap
  13271. msgid "With @var{filters} among @code{#:include}, @code{#:include-regexp}, @code{#:exclude},"
  13272. msgstr ""
  13273. #. type: itemize
  13274. #: guix-git/doc/guix.texi:8056
  13275. msgid "@code{#:exclude-regexp}, only select files are installed depending on the filters. Each filters is specified by a list of strings."
  13276. msgstr ""
  13277. #. type: item
  13278. #: guix-git/doc/guix.texi:8057
  13279. #, no-wrap
  13280. msgid "With @code{#:include}, install all the files which the path suffix matches"
  13281. msgstr ""
  13282. #. type: itemize
  13283. #: guix-git/doc/guix.texi:8059
  13284. msgid "at least one of the elements in the given list."
  13285. msgstr ""
  13286. #. type: item
  13287. #: guix-git/doc/guix.texi:8059
  13288. #, no-wrap
  13289. msgid "With @code{#:include-regexp}, install all the files which the"
  13290. msgstr ""
  13291. #. type: itemize
  13292. #: guix-git/doc/guix.texi:8062
  13293. msgid "subpaths match at least one of the regular expressions in the given list."
  13294. msgstr ""
  13295. #. type: item
  13296. #: guix-git/doc/guix.texi:8062
  13297. #, no-wrap
  13298. msgid "The @code{#:exclude} and @code{#:exclude-regexp} filters"
  13299. msgstr ""
  13300. #. type: itemize
  13301. #: guix-git/doc/guix.texi:8067
  13302. 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."
  13303. msgstr ""
  13304. #. type: itemize
  13305. #: guix-git/doc/guix.texi:8071
  13306. msgid "In all cases, the paths relative to @var{source} are preserved within @var{target}."
  13307. msgstr ""
  13308. #. type: defvr
  13309. #: guix-git/doc/guix.texi:8074
  13310. msgid "Examples:"
  13311. msgstr ""
  13312. #. type: item
  13313. #: guix-git/doc/guix.texi:8076
  13314. #, no-wrap
  13315. msgid "@code{(\"foo/bar\" \"share/my-app/\")}: Install @file{bar} to @file{share/my-app/bar}."
  13316. msgstr ""
  13317. #. type: item
  13318. #: guix-git/doc/guix.texi:8077
  13319. #, no-wrap
  13320. msgid "@code{(\"foo/bar\" \"share/my-app/baz\")}: Install @file{bar} to @file{share/my-app/baz}."
  13321. msgstr ""
  13322. #. type: item
  13323. #: guix-git/doc/guix.texi:8078
  13324. #, no-wrap
  13325. msgid "@code{(\"foo/\" \"share/my-app\")}: Install the content of @file{foo} inside @file{share/my-app},"
  13326. msgstr ""
  13327. #. type: itemize
  13328. #: guix-git/doc/guix.texi:8080
  13329. msgid "e.g., install @file{foo/sub/file} to @file{share/my-app/sub/file}."
  13330. msgstr ""
  13331. #. type: item
  13332. #: guix-git/doc/guix.texi:8080
  13333. #, no-wrap
  13334. msgid "@code{(\"foo/\" \"share/my-app\" #:include (\"sub/file\"))}: Install only @file{foo/sub/file} to"
  13335. msgstr ""
  13336. #. type: itemize
  13337. #: guix-git/doc/guix.texi:8082
  13338. msgid "@file{share/my-app/sub/file}."
  13339. msgstr ""
  13340. #. type: item
  13341. #: guix-git/doc/guix.texi:8082
  13342. #, no-wrap
  13343. msgid "@code{(\"foo/sub\" \"share/my-app\" #:include (\"file\"))}: Install @file{foo/sub/file} to"
  13344. msgstr ""
  13345. #. type: itemize
  13346. #: guix-git/doc/guix.texi:8084
  13347. msgid "@file{share/my-app/file}."
  13348. msgstr ""
  13349. #. type: cindex
  13350. #: guix-git/doc/guix.texi:8088
  13351. #, no-wrap
  13352. msgid "Clojure (programming language)"
  13353. msgstr ""
  13354. #. type: cindex
  13355. #: guix-git/doc/guix.texi:8089
  13356. #, no-wrap
  13357. msgid "simple Clojure build system"
  13358. msgstr ""
  13359. #. type: defvr
  13360. #: guix-git/doc/guix.texi:8090
  13361. #, no-wrap
  13362. msgid "{Scheme Variable} clojure-build-system"
  13363. msgstr ""
  13364. #. type: defvr
  13365. #: guix-git/doc/guix.texi:8095
  13366. 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."
  13367. msgstr ""
  13368. #. type: defvr
  13369. #: guix-git/doc/guix.texi:8099
  13370. 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."
  13371. msgstr ""
  13372. #. type: defvr
  13373. #: guix-git/doc/guix.texi:8105
  13374. 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."
  13375. msgstr ""
  13376. #. type: defvr
  13377. #: guix-git/doc/guix.texi:8108
  13378. msgid "This build system is an extension of @code{ant-build-system}, but with the following phases changed:"
  13379. msgstr ""
  13380. #. type: item
  13381. #: guix-git/doc/guix.texi:8111 guix-git/doc/guix.texi:8679
  13382. #: guix-git/doc/guix.texi:8726 guix-git/doc/guix.texi:8795
  13383. #: guix-git/doc/guix.texi:34481 guix-git/doc/guix.texi:36736
  13384. #, no-wrap
  13385. msgid "build"
  13386. msgstr ""
  13387. #. type: table
  13388. #: guix-git/doc/guix.texi:8120
  13389. 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."
  13390. msgstr ""
  13391. #. type: item
  13392. #: guix-git/doc/guix.texi:8121 guix-git/doc/guix.texi:8683
  13393. #: guix-git/doc/guix.texi:8800
  13394. #, no-wrap
  13395. msgid "check"
  13396. msgstr ""
  13397. #. type: table
  13398. #: guix-git/doc/guix.texi:8128
  13399. 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."
  13400. msgstr ""
  13401. #. type: item
  13402. #: guix-git/doc/guix.texi:8129 guix-git/doc/guix.texi:8687
  13403. #: guix-git/doc/guix.texi:8730 guix-git/doc/guix.texi:8806
  13404. #, no-wrap
  13405. msgid "install"
  13406. msgstr ""
  13407. #. type: table
  13408. #: guix-git/doc/guix.texi:8131
  13409. msgid "This phase installs all jars built previously."
  13410. msgstr ""
  13411. #. type: defvr
  13412. #: guix-git/doc/guix.texi:8134
  13413. msgid "Apart from the above, this build system also contains an additional phase:"
  13414. msgstr ""
  13415. #. type: item
  13416. #: guix-git/doc/guix.texi:8137
  13417. #, no-wrap
  13418. msgid "install-doc"
  13419. msgstr ""
  13420. #. type: table
  13421. #: guix-git/doc/guix.texi:8142
  13422. 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."
  13423. msgstr ""
  13424. #. type: defvr
  13425. #: guix-git/doc/guix.texi:8145
  13426. #, no-wrap
  13427. msgid "{Scheme Variable} cmake-build-system"
  13428. msgstr ""
  13429. #. type: defvr
  13430. #: guix-git/doc/guix.texi:8149
  13431. 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}."
  13432. msgstr ""
  13433. #. type: defvr
  13434. #: guix-git/doc/guix.texi:8153
  13435. 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."
  13436. msgstr ""
  13437. #. type: defvr
  13438. #: guix-git/doc/guix.texi:8160
  13439. 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."
  13440. msgstr ""
  13441. #. type: defvr
  13442. #: guix-git/doc/guix.texi:8162
  13443. #, no-wrap
  13444. msgid "{Scheme Variable} dune-build-system"
  13445. msgstr ""
  13446. #. type: defvr
  13447. #: guix-git/doc/guix.texi:8169
  13448. 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."
  13449. msgstr ""
  13450. #. type: defvr
  13451. #: guix-git/doc/guix.texi:8173
  13452. 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."
  13453. msgstr ""
  13454. #. type: defvr
  13455. #: guix-git/doc/guix.texi:8177
  13456. 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."
  13457. msgstr ""
  13458. #. type: defvr
  13459. #: guix-git/doc/guix.texi:8181
  13460. 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}."
  13461. msgstr ""
  13462. #. type: defvr
  13463. #: guix-git/doc/guix.texi:8186
  13464. 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}."
  13465. msgstr ""
  13466. #. type: defvr
  13467. #: guix-git/doc/guix.texi:8189
  13468. #, no-wrap
  13469. msgid "{Scheme Variable} go-build-system"
  13470. msgstr ""
  13471. #. type: defvr
  13472. #: guix-git/doc/guix.texi:8194
  13473. 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}."
  13474. msgstr ""
  13475. #. type: defvr
  13476. #: guix-git/doc/guix.texi:8205
  13477. 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."
  13478. msgstr ""
  13479. #. type: defvr
  13480. #: guix-git/doc/guix.texi:8210
  13481. 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."
  13482. msgstr ""
  13483. #. type: defvr
  13484. #: guix-git/doc/guix.texi:8217
  13485. 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}."
  13486. msgstr ""
  13487. #. type: defvr
  13488. #: guix-git/doc/guix.texi:8219
  13489. #, no-wrap
  13490. msgid "{Scheme Variable} glib-or-gtk-build-system"
  13491. msgstr ""
  13492. #. type: defvr
  13493. #: guix-git/doc/guix.texi:8222
  13494. 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+."
  13495. msgstr ""
  13496. #. type: defvr
  13497. #: guix-git/doc/guix.texi:8225
  13498. msgid "This build system adds the following two phases to the ones defined by @code{gnu-build-system}:"
  13499. msgstr ""
  13500. #. type: item
  13501. #: guix-git/doc/guix.texi:8227 guix-git/doc/guix.texi:8703
  13502. #, no-wrap
  13503. msgid "glib-or-gtk-wrap"
  13504. msgstr ""
  13505. #. type: table
  13506. #: guix-git/doc/guix.texi:8234
  13507. 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."
  13508. msgstr ""
  13509. #. type: table
  13510. #: guix-git/doc/guix.texi:8241
  13511. 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+."
  13512. msgstr ""
  13513. #. type: item
  13514. #: guix-git/doc/guix.texi:8242 guix-git/doc/guix.texi:8707
  13515. #, no-wrap
  13516. msgid "glib-or-gtk-compile-schemas"
  13517. msgstr ""
  13518. #. type: table
  13519. #: guix-git/doc/guix.texi:8250
  13520. 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."
  13521. msgstr ""
  13522. #. type: defvr
  13523. #: guix-git/doc/guix.texi:8253
  13524. msgid "Both phases are executed after the @code{install} phase."
  13525. msgstr ""
  13526. #. type: defvr
  13527. #: guix-git/doc/guix.texi:8255
  13528. #, no-wrap
  13529. msgid "{Scheme Variable} guile-build-system"
  13530. msgstr ""
  13531. #. type: defvr
  13532. #: guix-git/doc/guix.texi:8262
  13533. 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."
  13534. msgstr ""
  13535. #. type: defvr
  13536. #: guix-git/doc/guix.texi:8265
  13537. msgid "This build system supports cross-compilation by using the @option{--target} option of @samp{guild compile}."
  13538. msgstr ""
  13539. #. type: defvr
  13540. #: guix-git/doc/guix.texi:8268
  13541. msgid "Packages built with @code{guile-build-system} must provide a Guile package in their @code{native-inputs} field."
  13542. msgstr ""
  13543. #. type: defvr
  13544. #: guix-git/doc/guix.texi:8270
  13545. #, no-wrap
  13546. msgid "{Scheme Variable} julia-build-system"
  13547. msgstr ""
  13548. #. type: defvr
  13549. #: guix-git/doc/guix.texi:8277
  13550. 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}."
  13551. msgstr ""
  13552. #. type: defvr
  13553. #: guix-git/doc/guix.texi:8281
  13554. 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)."
  13555. msgstr ""
  13556. #. type: defvr
  13557. #: guix-git/doc/guix.texi:8285
  13558. 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}."
  13559. msgstr ""
  13560. #. type: defvr
  13561. #: guix-git/doc/guix.texi:8290
  13562. 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."
  13563. msgstr ""
  13564. #. type: defvr
  13565. #: guix-git/doc/guix.texi:8294
  13566. 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:"
  13567. msgstr ""
  13568. #. type: lisp
  13569. #: guix-git/doc/guix.texi:8306
  13570. #, no-wrap
  13571. msgid ""
  13572. "(add-after 'unpack 'override-binary-path\n"
  13573. " (lambda* (#:key inputs #:allow-other-keys)\n"
  13574. " (for-each (lambda (wrapper)\n"
  13575. " (substitute* wrapper\n"
  13576. " ((\"generate_wrapper_header.*\")\n"
  13577. " (string-append\n"
  13578. " \"generate_wrapper_header(\\\"MbedTLS\\\", \\\"\"\n"
  13579. " (assoc-ref inputs \"mbedtls-apache\") \"\\\")\\n\"))))\n"
  13580. " ;; There's a Julia file for each platform, override them all.\n"
  13581. " (find-files \"src/wrappers/\" \"\\\\.jl$\"))))\n"
  13582. msgstr ""
  13583. #. type: defvr
  13584. #: guix-git/doc/guix.texi:8314
  13585. 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."
  13586. msgstr ""
  13587. #. type: defvr
  13588. #: guix-git/doc/guix.texi:8316
  13589. #, no-wrap
  13590. msgid "{Scheme Variable} maven-build-system"
  13591. msgstr ""
  13592. #. type: defvr
  13593. #: guix-git/doc/guix.texi:8323
  13594. 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."
  13595. msgstr ""
  13596. #. type: defvr
  13597. #: guix-git/doc/guix.texi:8333
  13598. 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."
  13599. msgstr ""
  13600. #. type: defvr
  13601. #: guix-git/doc/guix.texi:8336
  13602. 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."
  13603. msgstr ""
  13604. #. type: defvr
  13605. #: guix-git/doc/guix.texi:8342
  13606. 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}."
  13607. msgstr ""
  13608. #. type: defvr
  13609. #: guix-git/doc/guix.texi:8348
  13610. 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."
  13611. msgstr ""
  13612. #. type: defvr
  13613. #: guix-git/doc/guix.texi:8351
  13614. msgid "You can override the default @code{jdk} and @code{maven} packages with the corresponding argument, @code{#:jdk} and @code{#:maven}."
  13615. msgstr ""
  13616. #. type: defvr
  13617. #: guix-git/doc/guix.texi:8356
  13618. 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."
  13619. msgstr ""
  13620. #. type: defvr
  13621. #: guix-git/doc/guix.texi:8358
  13622. #, no-wrap
  13623. msgid "{Scheme Variable} minetest-mod-build-system"
  13624. msgstr ""
  13625. #. type: defvr
  13626. #: guix-git/doc/guix.texi:8364
  13627. 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."
  13628. msgstr ""
  13629. #. type: defvr
  13630. #: guix-git/doc/guix.texi:8366
  13631. #, no-wrap
  13632. msgid "{Scheme Variable} minify-build-system"
  13633. msgstr ""
  13634. #. type: defvr
  13635. #: guix-git/doc/guix.texi:8369
  13636. msgid "This variable is exported by @code{(guix build-system minify)}. It implements a minification procedure for simple JavaScript packages."
  13637. msgstr ""
  13638. #. type: defvr
  13639. #: guix-git/doc/guix.texi:8375
  13640. 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."
  13641. msgstr ""
  13642. #. type: defvr
  13643. #: guix-git/doc/guix.texi:8379
  13644. 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."
  13645. msgstr ""
  13646. #. type: defvr
  13647. #: guix-git/doc/guix.texi:8381
  13648. #, no-wrap
  13649. msgid "{Scheme Variable} ocaml-build-system"
  13650. msgstr ""
  13651. #. type: defvr
  13652. #: guix-git/doc/guix.texi:8387
  13653. 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."
  13654. msgstr ""
  13655. #. type: defvr
  13656. #: guix-git/doc/guix.texi:8397
  13657. 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."
  13658. msgstr ""
  13659. #. type: defvr
  13660. #: guix-git/doc/guix.texi:8402
  13661. 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."
  13662. msgstr ""
  13663. #. type: defvr
  13664. #: guix-git/doc/guix.texi:8406
  13665. 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."
  13666. msgstr ""
  13667. #. type: defvr
  13668. #: guix-git/doc/guix.texi:8414
  13669. 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."
  13670. msgstr ""
  13671. #. type: defvr
  13672. #: guix-git/doc/guix.texi:8422
  13673. 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."
  13674. msgstr ""
  13675. #. type: defvr
  13676. #: guix-git/doc/guix.texi:8424
  13677. #, no-wrap
  13678. msgid "{Scheme Variable} python-build-system"
  13679. msgstr ""
  13680. #. type: defvr
  13681. #: guix-git/doc/guix.texi:8429
  13682. 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{}}."
  13683. msgstr ""
  13684. #. type: defvr
  13685. #: guix-git/doc/guix.texi:8433
  13686. 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."
  13687. msgstr ""
  13688. #. type: defvr
  13689. #: guix-git/doc/guix.texi:8439
  13690. 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."
  13691. msgstr ""
  13692. #. type: defvr
  13693. #: guix-git/doc/guix.texi:8444
  13694. 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}."
  13695. msgstr ""
  13696. #. type: defvr
  13697. #: guix-git/doc/guix.texi:8446
  13698. #, no-wrap
  13699. msgid "{Scheme Variable} perl-build-system"
  13700. msgstr ""
  13701. #. type: defvr
  13702. #: guix-git/doc/guix.texi:8458
  13703. 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."
  13704. msgstr ""
  13705. #. type: defvr
  13706. #: guix-git/doc/guix.texi:8462
  13707. 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."
  13708. msgstr ""
  13709. #. type: defvr
  13710. #: guix-git/doc/guix.texi:8464
  13711. msgid "Which Perl package is used can be specified with @code{#:perl}."
  13712. msgstr ""
  13713. #. type: defvr
  13714. #: guix-git/doc/guix.texi:8466
  13715. #, no-wrap
  13716. msgid "{Scheme Variable} renpy-build-system"
  13717. msgstr ""
  13718. #. type: defvr
  13719. #: guix-git/doc/guix.texi:8470
  13720. 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."
  13721. msgstr ""
  13722. #. type: defvr
  13723. #: guix-git/doc/guix.texi:8473
  13724. 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."
  13725. msgstr ""
  13726. #. type: defvr
  13727. #: guix-git/doc/guix.texi:8477
  13728. 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}."
  13729. msgstr ""
  13730. #. type: defvr
  13731. #: guix-git/doc/guix.texi:8479
  13732. #, no-wrap
  13733. msgid "{Scheme Variable} qt-build-system"
  13734. msgstr ""
  13735. #. type: defvr
  13736. #: guix-git/doc/guix.texi:8482
  13737. msgid "This variable is exported by @code{(guix build-system qt)}. It is intended for use with applications using Qt or KDE."
  13738. msgstr ""
  13739. #. type: defvr
  13740. #: guix-git/doc/guix.texi:8485
  13741. msgid "This build system adds the following two phases to the ones defined by @code{cmake-build-system}:"
  13742. msgstr ""
  13743. #. type: item
  13744. #: guix-git/doc/guix.texi:8487
  13745. #, no-wrap
  13746. msgid "check-setup"
  13747. msgstr ""
  13748. #. type: table
  13749. #: guix-git/doc/guix.texi:8494
  13750. 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}."
  13751. msgstr ""
  13752. #. type: table
  13753. #: guix-git/doc/guix.texi:8497
  13754. msgid "This phase is added before the @code{check} phase. It's a separate phase to ease adjusting if necessary."
  13755. msgstr ""
  13756. #. type: item
  13757. #: guix-git/doc/guix.texi:8498
  13758. #, no-wrap
  13759. msgid "qt-wrap"
  13760. msgstr ""
  13761. #. type: table
  13762. #: guix-git/doc/guix.texi:8504
  13763. 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."
  13764. msgstr ""
  13765. #. type: table
  13766. #: guix-git/doc/guix.texi:8510
  13767. 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."
  13768. msgstr ""
  13769. #. type: table
  13770. #: guix-git/doc/guix.texi:8512
  13771. msgid "This phase is added after the @code{install} phase."
  13772. msgstr ""
  13773. #. type: defvr
  13774. #: guix-git/doc/guix.texi:8515
  13775. #, no-wrap
  13776. msgid "{Scheme Variable} r-build-system"
  13777. msgstr ""
  13778. #. type: defvr
  13779. #: guix-git/doc/guix.texi:8523
  13780. 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}."
  13781. msgstr ""
  13782. #. type: defvr
  13783. #: guix-git/doc/guix.texi:8525
  13784. #, no-wrap
  13785. msgid "{Scheme Variable} rakudo-build-system"
  13786. msgstr ""
  13787. #. type: defvr
  13788. #: guix-git/doc/guix.texi:8533
  13789. 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."
  13790. msgstr ""
  13791. #. type: defvr
  13792. #: guix-git/doc/guix.texi:8541
  13793. 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."
  13794. msgstr ""
  13795. #. type: defvr
  13796. #: guix-git/doc/guix.texi:8543
  13797. #, no-wrap
  13798. msgid "{Scheme Variable} texlive-build-system"
  13799. msgstr ""
  13800. #. type: defvr
  13801. #: guix-git/doc/guix.texi:8548
  13802. 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."
  13803. msgstr ""
  13804. #. type: defvr
  13805. #: guix-git/doc/guix.texi:8557
  13806. 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."
  13807. msgstr ""
  13808. #. type: defvr
  13809. #: guix-git/doc/guix.texi:8560
  13810. msgid "The @code{#:tex-directory} parameter tells the build system where to install the built files under the texmf tree."
  13811. msgstr ""
  13812. #. type: defvr
  13813. #: guix-git/doc/guix.texi:8562
  13814. #, no-wrap
  13815. msgid "{Scheme Variable} ruby-build-system"
  13816. msgstr ""
  13817. #. type: defvr
  13818. #: guix-git/doc/guix.texi:8566
  13819. 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}."
  13820. msgstr ""
  13821. #. type: defvr
  13822. #: guix-git/doc/guix.texi:8574
  13823. 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."
  13824. msgstr ""
  13825. #. type: defvr
  13826. #: guix-git/doc/guix.texi:8578
  13827. 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."
  13828. msgstr ""
  13829. #. type: defvr
  13830. #: guix-git/doc/guix.texi:8580
  13831. #, no-wrap
  13832. msgid "{Scheme Variable} waf-build-system"
  13833. msgstr ""
  13834. #. type: defvr
  13835. #: guix-git/doc/guix.texi:8586
  13836. 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."
  13837. msgstr ""
  13838. #. type: defvr
  13839. #: guix-git/doc/guix.texi:8590
  13840. 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."
  13841. msgstr ""
  13842. #. type: defvr
  13843. #: guix-git/doc/guix.texi:8592
  13844. #, no-wrap
  13845. msgid "{Scheme Variable} scons-build-system"
  13846. msgstr ""
  13847. #. type: defvr
  13848. #: guix-git/doc/guix.texi:8598
  13849. 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."
  13850. msgstr ""
  13851. #. type: defvr
  13852. #: guix-git/doc/guix.texi:8605
  13853. 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."
  13854. msgstr ""
  13855. #. type: defvr
  13856. #: guix-git/doc/guix.texi:8607
  13857. #, no-wrap
  13858. msgid "{Scheme Variable} haskell-build-system"
  13859. msgstr ""
  13860. #. type: defvr
  13861. #: guix-git/doc/guix.texi:8621
  13862. 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."
  13863. msgstr ""
  13864. #. type: defvr
  13865. #: guix-git/doc/guix.texi:8624
  13866. msgid "Which Haskell compiler is used can be specified with the @code{#:haskell} parameter which defaults to @code{ghc}."
  13867. msgstr ""
  13868. #. type: defvr
  13869. #: guix-git/doc/guix.texi:8626
  13870. #, no-wrap
  13871. msgid "{Scheme Variable} dub-build-system"
  13872. msgstr ""
  13873. #. type: defvr
  13874. #: guix-git/doc/guix.texi:8631
  13875. 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."
  13876. msgstr ""
  13877. #. type: defvr
  13878. #: guix-git/doc/guix.texi:8634
  13879. msgid "Which D compiler is used can be specified with the @code{#:ldc} parameter which defaults to @code{ldc}."
  13880. msgstr ""
  13881. #. type: anchor{#1}
  13882. #: guix-git/doc/guix.texi:8637
  13883. msgid "emacs-build-system"
  13884. msgstr ""
  13885. #. type: defvr
  13886. #: guix-git/doc/guix.texi:8637
  13887. #, no-wrap
  13888. msgid "{Scheme Variable} emacs-build-system"
  13889. msgstr ""
  13890. #. type: defvr
  13891. #: guix-git/doc/guix.texi:8641
  13892. 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})."
  13893. msgstr ""
  13894. #. type: defvr
  13895. #: guix-git/doc/guix.texi:8647
  13896. 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}."
  13897. msgstr ""
  13898. #. type: defvr
  13899. #: guix-git/doc/guix.texi:8649
  13900. #, no-wrap
  13901. msgid "{Scheme Variable} font-build-system"
  13902. msgstr ""
  13903. #. type: defvr
  13904. #: guix-git/doc/guix.texi:8655
  13905. 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."
  13906. msgstr ""
  13907. #. type: defvr
  13908. #: guix-git/doc/guix.texi:8657
  13909. #, no-wrap
  13910. msgid "{Scheme Variable} meson-build-system"
  13911. msgstr ""
  13912. #. type: defvr
  13913. #: guix-git/doc/guix.texi:8661
  13914. 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."
  13915. msgstr ""
  13916. #. type: defvr
  13917. #: guix-git/doc/guix.texi:8667
  13918. 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."
  13919. msgstr ""
  13920. #. type: defvr
  13921. #: guix-git/doc/guix.texi:8670
  13922. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed to some specific for Meson:"
  13923. msgstr ""
  13924. #. type: item
  13925. #: guix-git/doc/guix.texi:8673 guix-git/doc/guix.texi:8722
  13926. #: guix-git/doc/guix.texi:8790
  13927. #, no-wrap
  13928. msgid "configure"
  13929. msgstr ""
  13930. #. type: table
  13931. #: guix-git/doc/guix.texi:8678
  13932. 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}."
  13933. msgstr ""
  13934. #. type: table
  13935. #: guix-git/doc/guix.texi:8682
  13936. msgid "The phase runs @code{ninja} to build the package in parallel by default, but this can be changed with @code{#:parallel-build?}."
  13937. msgstr ""
  13938. #. type: table
  13939. #: guix-git/doc/guix.texi:8686
  13940. msgid "The phase runs @code{ninja} with the target specified in @code{#:test-target}, which is @code{\"test\"} by default."
  13941. msgstr ""
  13942. #. type: table
  13943. #: guix-git/doc/guix.texi:8689
  13944. msgid "The phase runs @code{ninja install} and can not be changed."
  13945. msgstr ""
  13946. #. type: defvr
  13947. #: guix-git/doc/guix.texi:8692
  13948. msgid "Apart from that, the build system also adds the following phases:"
  13949. msgstr ""
  13950. #. type: item
  13951. #: guix-git/doc/guix.texi:8695
  13952. #, no-wrap
  13953. msgid "fix-runpath"
  13954. msgstr ""
  13955. #. type: table
  13956. #: guix-git/doc/guix.texi:8702
  13957. 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."
  13958. msgstr ""
  13959. #. type: table
  13960. #: guix-git/doc/guix.texi:8706 guix-git/doc/guix.texi:8710
  13961. 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?}."
  13962. msgstr ""
  13963. #. type: defvr
  13964. #: guix-git/doc/guix.texi:8713
  13965. #, no-wrap
  13966. msgid "{Scheme Variable} linux-module-build-system"
  13967. msgstr ""
  13968. #. type: defvr
  13969. #: guix-git/doc/guix.texi:8715
  13970. msgid "@code{linux-module-build-system} allows building Linux kernel modules."
  13971. msgstr ""
  13972. #. type: defvr
  13973. #: guix-git/doc/guix.texi:8719
  13974. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed:"
  13975. msgstr ""
  13976. #. type: table
  13977. #: guix-git/doc/guix.texi:8725
  13978. msgid "This phase configures the environment so that the Linux kernel's Makefile can be used to build the external kernel module."
  13979. msgstr ""
  13980. #. type: table
  13981. #: guix-git/doc/guix.texi:8729
  13982. msgid "This phase uses the Linux kernel's Makefile in order to build the external kernel module."
  13983. msgstr ""
  13984. #. type: table
  13985. #: guix-git/doc/guix.texi:8733
  13986. msgid "This phase uses the Linux kernel's Makefile in order to install the external kernel module."
  13987. msgstr ""
  13988. #. type: defvr
  13989. #: guix-git/doc/guix.texi:8738
  13990. 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)."
  13991. msgstr ""
  13992. #. type: defvr
  13993. #: guix-git/doc/guix.texi:8740
  13994. #, no-wrap
  13995. msgid "{Scheme Variable} node-build-system"
  13996. msgstr ""
  13997. #. type: defvr
  13998. #: guix-git/doc/guix.texi:8745
  13999. 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."
  14000. msgstr ""
  14001. #. type: defvr
  14002. #: guix-git/doc/guix.texi:8749
  14003. 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}."
  14004. msgstr ""
  14005. #. type: Plain text
  14006. #: guix-git/doc/guix.texi:8755
  14007. 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."
  14008. msgstr ""
  14009. #. type: defvr
  14010. #: guix-git/doc/guix.texi:8756
  14011. #, no-wrap
  14012. msgid "{Scheme Variable} trivial-build-system"
  14013. msgstr ""
  14014. #. type: defvr
  14015. #: guix-git/doc/guix.texi:8758
  14016. msgid "This variable is exported by @code{(guix build-system trivial)}."
  14017. msgstr ""
  14018. #. type: defvr
  14019. #: guix-git/doc/guix.texi:8763
  14020. 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}})."
  14021. msgstr ""
  14022. #. type: cindex
  14023. #: guix-git/doc/guix.texi:8768
  14024. #, fuzzy, no-wrap
  14025. msgid "build phases, for packages"
  14026. msgstr "Python软件包的输入"
  14027. #. type: Plain text
  14028. #: guix-git/doc/guix.texi:8774
  14029. 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})."
  14030. msgstr ""
  14031. #. type: Plain text
  14032. #: guix-git/doc/guix.texi:8778
  14033. 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:"
  14034. msgstr ""
  14035. #. type: item
  14036. #: guix-git/doc/guix.texi:8780
  14037. #, no-wrap
  14038. msgid "unpack"
  14039. msgstr ""
  14040. #. type: table
  14041. #: guix-git/doc/guix.texi:8784
  14042. 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."
  14043. msgstr ""
  14044. #. type: item
  14045. #: guix-git/doc/guix.texi:8785
  14046. #, no-wrap
  14047. msgid "patch-source-shebangs"
  14048. msgstr ""
  14049. #. type: table
  14050. #: guix-git/doc/guix.texi:8789
  14051. 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}."
  14052. msgstr ""
  14053. #. type: table
  14054. #: guix-git/doc/guix.texi:8794
  14055. 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."
  14056. msgstr ""
  14057. #. type: table
  14058. #: guix-git/doc/guix.texi:8799
  14059. 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}."
  14060. msgstr ""
  14061. #. type: table
  14062. #: guix-git/doc/guix.texi:8805
  14063. 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}."
  14064. msgstr ""
  14065. #. type: table
  14066. #: guix-git/doc/guix.texi:8808
  14067. msgid "Run @code{make install} with the flags listed in @code{#:make-flags}."
  14068. msgstr ""
  14069. #. type: item
  14070. #: guix-git/doc/guix.texi:8809
  14071. #, no-wrap
  14072. msgid "patch-shebangs"
  14073. msgstr ""
  14074. #. type: table
  14075. #: guix-git/doc/guix.texi:8811
  14076. msgid "Patch shebangs on the installed executable files."
  14077. msgstr ""
  14078. #. type: item
  14079. #: guix-git/doc/guix.texi:8812
  14080. #, no-wrap
  14081. msgid "strip"
  14082. msgstr ""
  14083. #. type: table
  14084. #: guix-git/doc/guix.texi:8816
  14085. 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})."
  14086. msgstr ""
  14087. #. type: Plain text
  14088. #: guix-git/doc/guix.texi:8825
  14089. 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})."
  14090. msgstr ""
  14091. #. type: Plain text
  14092. #: guix-git/doc/guix.texi:8832
  14093. 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."
  14094. msgstr ""
  14095. #. type: vindex
  14096. #: guix-git/doc/guix.texi:8833
  14097. #, no-wrap
  14098. msgid "%standard-phases"
  14099. msgstr ""
  14100. #. type: Plain text
  14101. #: guix-git/doc/guix.texi:8839
  14102. 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!}:"
  14103. msgstr ""
  14104. #. type: lisp
  14105. #: guix-git/doc/guix.texi:8842
  14106. #, no-wrap
  14107. msgid ""
  14108. ";; The build phases of 'gnu-build-system'.\n"
  14109. "\n"
  14110. msgstr ""
  14111. #. type: lisp
  14112. #: guix-git/doc/guix.texi:8846
  14113. #, no-wrap
  14114. msgid ""
  14115. "(define* (unpack #:key source #:allow-other-keys)\n"
  14116. " ;; Extract the source tarball.\n"
  14117. " (invoke \"tar\" \"xvf\" source))\n"
  14118. "\n"
  14119. msgstr ""
  14120. #. type: lisp
  14121. #: guix-git/doc/guix.texi:8852
  14122. #, no-wrap
  14123. msgid ""
  14124. "(define* (configure #:key outputs #:allow-other-keys)\n"
  14125. " ;; Run the 'configure' script. Install to output \"out\".\n"
  14126. " (let ((out (assoc-ref outputs \"out\")))\n"
  14127. " (invoke \"./configure\"\n"
  14128. " (string-append \"--prefix=\" out))))\n"
  14129. "\n"
  14130. msgstr ""
  14131. #. type: lisp
  14132. #: guix-git/doc/guix.texi:8856
  14133. #, no-wrap
  14134. msgid ""
  14135. "(define* (build #:allow-other-keys)\n"
  14136. " ;; Compile.\n"
  14137. " (invoke \"make\"))\n"
  14138. "\n"
  14139. msgstr ""
  14140. #. type: lisp
  14141. #: guix-git/doc/guix.texi:8863
  14142. #, no-wrap
  14143. msgid ""
  14144. "(define* (check #:key (test-target \"check\") (tests? #true)\n"
  14145. " #:allow-other-keys)\n"
  14146. " ;; Run the test suite.\n"
  14147. " (if tests?\n"
  14148. " (invoke \"make\" test-target)\n"
  14149. " (display \"test suite not run\\n\")))\n"
  14150. "\n"
  14151. msgstr ""
  14152. #. type: lisp
  14153. #: guix-git/doc/guix.texi:8867
  14154. #, no-wrap
  14155. msgid ""
  14156. "(define* (install #:allow-other-keys)\n"
  14157. " ;; Install files to the prefix 'configure' specified.\n"
  14158. " (invoke \"make\" \"install\"))\n"
  14159. "\n"
  14160. msgstr ""
  14161. #. type: lisp
  14162. #: guix-git/doc/guix.texi:8876
  14163. #, no-wrap
  14164. msgid ""
  14165. "(define %standard-phases\n"
  14166. " ;; The list of standard phases (quite a few are omitted\n"
  14167. " ;; for brevity). Each element is a symbol/procedure pair.\n"
  14168. " (list (cons 'unpack unpack)\n"
  14169. " (cons 'configure configure)\n"
  14170. " (cons 'build build)\n"
  14171. " (cons 'check check)\n"
  14172. " (cons 'install install)))\n"
  14173. msgstr ""
  14174. #. type: Plain text
  14175. #: guix-git/doc/guix.texi:8886
  14176. 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."
  14177. msgstr ""
  14178. #. type: Plain text
  14179. #: guix-git/doc/guix.texi:8892
  14180. 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})."
  14181. msgstr ""
  14182. #. type: Plain text
  14183. #: guix-git/doc/guix.texi:8908
  14184. 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."
  14185. msgstr ""
  14186. #. type: cindex
  14187. #: guix-git/doc/guix.texi:8909
  14188. #, no-wrap
  14189. msgid "build phases, customizing"
  14190. msgstr ""
  14191. #. type: Plain text
  14192. #: guix-git/doc/guix.texi:8918
  14193. 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}})."
  14194. msgstr ""
  14195. #. type: Plain text
  14196. #: guix-git/doc/guix.texi:8923
  14197. 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}:"
  14198. msgstr ""
  14199. #. type: lisp
  14200. #: guix-git/doc/guix.texi:8943
  14201. #, no-wrap
  14202. msgid ""
  14203. "(define-public example\n"
  14204. " (package\n"
  14205. " (name \"example\")\n"
  14206. " ;; other fields omitted\n"
  14207. " (build-system gnu-build-system)\n"
  14208. " (arguments\n"
  14209. " '(#:phases (modify-phases %standard-phases\n"
  14210. " (delete 'configure)\n"
  14211. " (add-before 'build 'set-prefix-in-makefile\n"
  14212. " (lambda* (#:key outputs #:allow-other-keys)\n"
  14213. " ;; Modify the makefile so that its\n"
  14214. " ;; 'PREFIX' variable points to \"out\".\n"
  14215. " (let ((out (assoc-ref outputs \"out\")))\n"
  14216. " (substitute* \"Makefile\"\n"
  14217. " ((\"PREFIX =.*\")\n"
  14218. " (string-append \"PREFIX = \"\n"
  14219. " out \"\\n\")))\n"
  14220. " #true))))))))\n"
  14221. msgstr ""
  14222. #. type: Plain text
  14223. #: guix-git/doc/guix.texi:8949
  14224. 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}."
  14225. msgstr ""
  14226. #. type: cindex
  14227. #: guix-git/doc/guix.texi:8950 guix-git/doc/guix.texi:9923
  14228. #, no-wrap
  14229. msgid "code staging"
  14230. msgstr ""
  14231. #. type: cindex
  14232. #: guix-git/doc/guix.texi:8951 guix-git/doc/guix.texi:9924
  14233. #, fuzzy, no-wrap
  14234. msgid "staging, of code"
  14235. msgstr "代码格式化"
  14236. #. type: Plain text
  14237. #: guix-git/doc/guix.texi:8958
  14238. 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."
  14239. msgstr ""
  14240. #. type: Plain text
  14241. #: guix-git/doc/guix.texi:8968
  14242. 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."
  14243. msgstr ""
  14244. #. type: Plain text
  14245. #: guix-git/doc/guix.texi:8972
  14246. 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."
  14247. msgstr ""
  14248. #. type: Plain text
  14249. #: guix-git/doc/guix.texi:8977
  14250. 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}):"
  14251. msgstr ""
  14252. #. type: lisp
  14253. #: guix-git/doc/guix.texi:8984
  14254. #, no-wrap
  14255. msgid ""
  14256. "(with-imported-modules '((guix build utils)) ;import it\n"
  14257. " (computed-file \"empty-tree\"\n"
  14258. " #~(begin\n"
  14259. " ;; Put it in scope.\n"
  14260. " (use-modules (guix build utils))\n"
  14261. "\n"
  14262. msgstr ""
  14263. #. type: lisp
  14264. #: guix-git/doc/guix.texi:8987
  14265. #, no-wrap
  14266. msgid ""
  14267. " ;; Happily use its 'mkdir-p' procedure.\n"
  14268. " (mkdir-p (string-append #$output \"/a/b/c\")))))\n"
  14269. msgstr ""
  14270. #. type: Plain text
  14271. #: guix-git/doc/guix.texi:8991
  14272. msgid "The remainder of this section is the reference for most of the utility procedures provided by @code{(guix build utils)}."
  14273. msgstr ""
  14274. #. type: subsection
  14275. #: guix-git/doc/guix.texi:8994
  14276. #, no-wrap
  14277. msgid "Dealing with Store File Names"
  14278. msgstr ""
  14279. #. type: Plain text
  14280. #: guix-git/doc/guix.texi:8997
  14281. msgid "This section documents procedures that deal with store file names."
  14282. msgstr ""
  14283. #. type: deffn
  14284. #: guix-git/doc/guix.texi:8998
  14285. #, no-wrap
  14286. msgid "{Scheme Procedure} %store-directory"
  14287. msgstr ""
  14288. #. type: deffn
  14289. #: guix-git/doc/guix.texi:9000
  14290. #, fuzzy
  14291. msgid "Return the directory name of the store."
  14292. msgstr "仓库的纯函数式接口。"
  14293. #. type: deffn
  14294. #: guix-git/doc/guix.texi:9002
  14295. #, no-wrap
  14296. msgid "{Scheme Procedure} store-file-name? @var{file}"
  14297. msgstr ""
  14298. #. type: deffn
  14299. #: guix-git/doc/guix.texi:9004
  14300. msgid "Return true if @var{file} is in the store."
  14301. msgstr ""
  14302. #. type: deffn
  14303. #: guix-git/doc/guix.texi:9006
  14304. #, no-wrap
  14305. msgid "{Scheme Procedure} strip-store-file-name @var{file}"
  14306. msgstr ""
  14307. #. type: deffn
  14308. #: guix-git/doc/guix.texi:9009
  14309. 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."
  14310. msgstr ""
  14311. #. type: deffn
  14312. #: guix-git/doc/guix.texi:9011
  14313. #, no-wrap
  14314. msgid "{Scheme Procedure} package-name->name+version @var{name}"
  14315. msgstr ""
  14316. #. type: deffn
  14317. #: guix-git/doc/guix.texi:9016
  14318. 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."
  14319. msgstr ""
  14320. #. type: subsection
  14321. #: guix-git/doc/guix.texi:9018
  14322. #, fuzzy, no-wrap
  14323. msgid "File Types"
  14324. msgstr "文件系统"
  14325. #. type: Plain text
  14326. #: guix-git/doc/guix.texi:9021
  14327. msgid "The procedures below deal with files and file types."
  14328. msgstr ""
  14329. #. type: deffn
  14330. #: guix-git/doc/guix.texi:9022
  14331. #, no-wrap
  14332. msgid "{Scheme Procedure} directory-exists? @var{dir}"
  14333. msgstr ""
  14334. #. type: deffn
  14335. #: guix-git/doc/guix.texi:9024
  14336. msgid "Return @code{#t} if @var{dir} exists and is a directory."
  14337. msgstr ""
  14338. #. type: deffn
  14339. #: guix-git/doc/guix.texi:9026
  14340. #, no-wrap
  14341. msgid "{Scheme Procedure} executable-file? @var{file}"
  14342. msgstr ""
  14343. #. type: deffn
  14344. #: guix-git/doc/guix.texi:9028
  14345. msgid "Return @code{#t} if @var{file} exists and is executable."
  14346. msgstr ""
  14347. #. type: deffn
  14348. #: guix-git/doc/guix.texi:9030
  14349. #, no-wrap
  14350. msgid "{Scheme Procedure} symbolic-link? @var{file}"
  14351. msgstr ""
  14352. #. type: deffn
  14353. #: guix-git/doc/guix.texi:9032
  14354. msgid "Return @code{#t} if @var{file} is a symbolic link (aka. a ``symlink'')."
  14355. msgstr ""
  14356. #. type: deffn
  14357. #: guix-git/doc/guix.texi:9034
  14358. #, no-wrap
  14359. msgid "{Scheme Procedure} elf-file? @var{file}"
  14360. msgstr ""
  14361. #. type: deffnx
  14362. #: guix-git/doc/guix.texi:9035
  14363. #, no-wrap
  14364. msgid "{Scheme Procedure} ar-file? @var{file}"
  14365. msgstr ""
  14366. #. type: deffnx
  14367. #: guix-git/doc/guix.texi:9036
  14368. #, no-wrap
  14369. msgid "{Scheme Procedure} gzip-file? @var{file}"
  14370. msgstr ""
  14371. #. type: deffn
  14372. #: guix-git/doc/guix.texi:9039
  14373. 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."
  14374. msgstr ""
  14375. #. type: deffn
  14376. #: guix-git/doc/guix.texi:9041
  14377. #, no-wrap
  14378. msgid "{Scheme Procedure} reset-gzip-timestamp @var{file} [#:keep-mtime? #t]"
  14379. msgstr ""
  14380. #. type: deffn
  14381. #: guix-git/doc/guix.texi:9045
  14382. 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."
  14383. msgstr ""
  14384. #. type: subsection
  14385. #: guix-git/doc/guix.texi:9047
  14386. #, no-wrap
  14387. msgid "File Manipulation"
  14388. msgstr ""
  14389. #. type: Plain text
  14390. #: guix-git/doc/guix.texi:9054
  14391. 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})."
  14392. msgstr ""
  14393. #. type: deffn
  14394. #: guix-git/doc/guix.texi:9055
  14395. #, no-wrap
  14396. msgid "{Scheme Syntax} with-directory-excursion @var{directory} @var{body}@dots{}"
  14397. msgstr ""
  14398. #. type: deffn
  14399. #: guix-git/doc/guix.texi:9057
  14400. msgid "Run @var{body} with @var{directory} as the process's current directory."
  14401. msgstr ""
  14402. #. type: deffn
  14403. #: guix-git/doc/guix.texi:9064
  14404. 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."
  14405. msgstr ""
  14406. #. type: deffn
  14407. #: guix-git/doc/guix.texi:9066
  14408. #, no-wrap
  14409. msgid "{Scheme Procedure} mkdir-p @var{dir}"
  14410. msgstr ""
  14411. #. type: deffn
  14412. #: guix-git/doc/guix.texi:9068
  14413. msgid "Create directory @var{dir} and all its ancestors."
  14414. msgstr ""
  14415. #. type: deffn
  14416. #: guix-git/doc/guix.texi:9070
  14417. #, no-wrap
  14418. msgid "{Scheme Procedure} install-file @var{file} @var{directory}"
  14419. msgstr ""
  14420. #. type: deffn
  14421. #: guix-git/doc/guix.texi:9073
  14422. msgid "Create @var{directory} if it does not exist and copy @var{file} in there under the same name."
  14423. msgstr ""
  14424. #. type: deffn
  14425. #: guix-git/doc/guix.texi:9075
  14426. #, no-wrap
  14427. msgid "{Scheme Procedure} make-file-writable @var{file}"
  14428. msgstr ""
  14429. #. type: deffn
  14430. #: guix-git/doc/guix.texi:9077
  14431. msgid "Make @var{file} writable for its owner."
  14432. msgstr ""
  14433. #. type: deffn
  14434. #: guix-git/doc/guix.texi:9079
  14435. #, no-wrap
  14436. msgid "{Scheme Procedure} copy-recursively @var{source} @var{destination} @"
  14437. msgstr ""
  14438. #. type: deffn
  14439. #: guix-git/doc/guix.texi:9086
  14440. 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."
  14441. msgstr ""
  14442. #. type: deffn
  14443. #: guix-git/doc/guix.texi:9088
  14444. #, no-wrap
  14445. msgid "{Scheme Procedure} delete-file-recursively @var{dir} @"
  14446. msgstr ""
  14447. #. type: deffn
  14448. #: guix-git/doc/guix.texi:9093
  14449. 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."
  14450. msgstr ""
  14451. #. type: deffn
  14452. #: guix-git/doc/guix.texi:9095
  14453. #, no-wrap
  14454. msgid "{Scheme Syntax} substitute* @var{file} @"
  14455. msgstr ""
  14456. #. type: deffn
  14457. #: guix-git/doc/guix.texi:9100
  14458. 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:"
  14459. msgstr ""
  14460. #. type: lisp
  14461. #: guix-git/doc/guix.texi:9107
  14462. #, no-wrap
  14463. msgid ""
  14464. "(substitute* file\n"
  14465. " ((\"hello\")\n"
  14466. " \"good morning\\n\")\n"
  14467. " ((\"foo([a-z]+)bar(.*)$\" all letters end)\n"
  14468. " (string-append \"baz\" letter end)))\n"
  14469. msgstr ""
  14470. #. type: deffn
  14471. #: guix-git/doc/guix.texi:9113
  14472. 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."
  14473. msgstr ""
  14474. #. type: deffn
  14475. #: guix-git/doc/guix.texi:9116
  14476. msgid "When one of the @var{match-var} is @code{_}, no variable is bound to the corresponding match substring."
  14477. msgstr ""
  14478. #. type: deffn
  14479. #: guix-git/doc/guix.texi:9119
  14480. msgid "Alternatively, @var{file} may be a list of file names, in which case they are all subject to the substitutions."
  14481. msgstr ""
  14482. #. type: deffn
  14483. #: guix-git/doc/guix.texi:9122
  14484. 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."
  14485. msgstr ""
  14486. #. type: subsection
  14487. #: guix-git/doc/guix.texi:9124
  14488. #, fuzzy, no-wrap
  14489. msgid "File Search"
  14490. msgstr "文件系统"
  14491. #. type: cindex
  14492. #: guix-git/doc/guix.texi:9126
  14493. #, no-wrap
  14494. msgid "file, searching"
  14495. msgstr ""
  14496. #. type: Plain text
  14497. #: guix-git/doc/guix.texi:9128
  14498. msgid "This section documents procedures to search and filter files."
  14499. msgstr ""
  14500. #. type: deffn
  14501. #: guix-git/doc/guix.texi:9129
  14502. #, no-wrap
  14503. msgid "{Scheme Procedure} file-name-predicate @var{regexp}"
  14504. msgstr ""
  14505. #. type: deffn
  14506. #: guix-git/doc/guix.texi:9132
  14507. msgid "Return a predicate that returns true when passed a file name whose base name matches @var{regexp}."
  14508. msgstr ""
  14509. #. type: deffn
  14510. #: guix-git/doc/guix.texi:9134
  14511. #, no-wrap
  14512. msgid "{Scheme Procedure} find-files @var{dir} [@var{pred}] @"
  14513. msgstr ""
  14514. #. type: deffn
  14515. #: guix-git/doc/guix.texi:9145
  14516. 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."
  14517. msgstr ""
  14518. #. type: Plain text
  14519. #: guix-git/doc/guix.texi:9149
  14520. msgid "Here are a few examples where we assume that the current directory is the root of the Guix source tree:"
  14521. msgstr ""
  14522. #. type: lisp
  14523. #: guix-git/doc/guix.texi:9154
  14524. #, no-wrap
  14525. msgid ""
  14526. ";; List all the regular files in the current directory.\n"
  14527. "(find-files \".\")\n"
  14528. "@result{} (\"./.dir-locals.el\" \"./.gitignore\" @dots{})\n"
  14529. "\n"
  14530. msgstr ""
  14531. #. type: lisp
  14532. #: guix-git/doc/guix.texi:9158
  14533. #, no-wrap
  14534. msgid ""
  14535. ";; List all the .scm files under gnu/services.\n"
  14536. "(find-files \"gnu/services\" \"\\\\.scm$\")\n"
  14537. "@result{} (\"gnu/services/admin.scm\" \"gnu/services/audio.scm\" @dots{})\n"
  14538. "\n"
  14539. msgstr ""
  14540. #. type: lisp
  14541. #: guix-git/doc/guix.texi:9162
  14542. #, no-wrap
  14543. msgid ""
  14544. ";; List ar files in the current directory.\n"
  14545. "(find-files \".\" (lambda (file stat) (ar-file? file)))\n"
  14546. "@result{} (\"./libformat.a\" \"./libstore.a\" @dots{})\n"
  14547. msgstr ""
  14548. #. type: deffn
  14549. #: guix-git/doc/guix.texi:9164
  14550. #, no-wrap
  14551. msgid "{Scheme Procedure} which @var{program}"
  14552. msgstr ""
  14553. #. type: deffn
  14554. #: guix-git/doc/guix.texi:9167
  14555. msgid "Return the complete file name for @var{program} as found in @code{$PATH}, or @code{#f} if @var{program} could not be found."
  14556. msgstr ""
  14557. #. type: Plain text
  14558. #: guix-git/doc/guix.texi:9178
  14559. 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})."
  14560. msgstr ""
  14561. #. type: Plain text
  14562. #: guix-git/doc/guix.texi:9182
  14563. 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."
  14564. msgstr ""
  14565. #. type: cindex
  14566. #: guix-git/doc/guix.texi:9183
  14567. #, fuzzy, no-wrap
  14568. msgid "build phases, modifying"
  14569. msgstr "构建后台进程"
  14570. #. type: deffn
  14571. #: guix-git/doc/guix.texi:9184
  14572. #, no-wrap
  14573. msgid "{Scheme Syntax} modify-phases @var{phases} @var{clause}@dots{}"
  14574. msgstr ""
  14575. #. type: deffn
  14576. #: guix-git/doc/guix.texi:9187
  14577. msgid "Modify @var{phases} sequentially as per each @var{clause}, which may have one of the following forms:"
  14578. msgstr ""
  14579. #. type: lisp
  14580. #: guix-git/doc/guix.texi:9193
  14581. #, no-wrap
  14582. msgid ""
  14583. "(delete @var{old-phase-name})\n"
  14584. "(replace @var{old-phase-name} @var{new-phase})\n"
  14585. "(add-before @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  14586. "(add-after @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  14587. msgstr ""
  14588. #. type: deffn
  14589. #: guix-git/doc/guix.texi:9197
  14590. msgid "Where every @var{phase-name} above is an expression evaluating to a symbol, and @var{new-phase} an expression evaluating to a procedure."
  14591. msgstr ""
  14592. #. type: Plain text
  14593. #: guix-git/doc/guix.texi:9208
  14594. 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:"
  14595. msgstr ""
  14596. #. type: lisp
  14597. #: guix-git/doc/guix.texi:9222
  14598. #, no-wrap
  14599. msgid ""
  14600. "(modify-phases %standard-phases\n"
  14601. " (add-after 'install 'fix-egrep-and-fgrep\n"
  14602. " ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its\n"
  14603. " ;; absolute file name instead of searching for it in $PATH.\n"
  14604. " (lambda* (#:key outputs #:allow-other-keys)\n"
  14605. " (let* ((out (assoc-ref outputs \"out\"))\n"
  14606. " (bin (string-append out \"/bin\")))\n"
  14607. " (substitute* (list (string-append bin \"/egrep\")\n"
  14608. " (string-append bin \"/fgrep\"))\n"
  14609. " ((\"^exec grep\")\n"
  14610. " (string-append \"exec \" bin \"/grep\")))\n"
  14611. " #t))))\n"
  14612. msgstr ""
  14613. #. type: Plain text
  14614. #: guix-git/doc/guix.texi:9229
  14615. 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:"
  14616. msgstr ""
  14617. #. type: lisp
  14618. #: guix-git/doc/guix.texi:9242
  14619. #, no-wrap
  14620. msgid ""
  14621. "(modify-phases %standard-phases\n"
  14622. " (delete 'configure) ;no 'configure' script\n"
  14623. " (replace 'install\n"
  14624. " (lambda* (#:key outputs #:allow-other-keys)\n"
  14625. " ;; The package's Makefile doesn't provide an \"install\"\n"
  14626. " ;; rule so do it by ourselves.\n"
  14627. " (let ((bin (string-append (assoc-ref outputs \"out\")\n"
  14628. " \"/bin\")))\n"
  14629. " (install-file \"footswitch\" bin)\n"
  14630. " (install-file \"scythe\" bin)\n"
  14631. " #t))))\n"
  14632. msgstr ""
  14633. #. type: cindex
  14634. #: guix-git/doc/guix.texi:9250
  14635. #, no-wrap
  14636. msgid "store items"
  14637. msgstr ""
  14638. #. type: cindex
  14639. #: guix-git/doc/guix.texi:9251
  14640. #, no-wrap
  14641. msgid "store paths"
  14642. msgstr ""
  14643. #. type: Plain text
  14644. #: guix-git/doc/guix.texi:9262
  14645. 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}."
  14646. msgstr ""
  14647. #. type: Plain text
  14648. #: guix-git/doc/guix.texi:9267
  14649. 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."
  14650. msgstr ""
  14651. #. type: quotation
  14652. #: guix-git/doc/guix.texi:9272
  14653. 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})."
  14654. msgstr ""
  14655. #. type: quotation
  14656. #: guix-git/doc/guix.texi:9276
  14657. 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."
  14658. msgstr ""
  14659. #. type: Plain text
  14660. #: guix-git/doc/guix.texi:9283
  14661. 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."
  14662. msgstr ""
  14663. #. type: defvr
  14664. #: guix-git/doc/guix.texi:9284
  14665. #, no-wrap
  14666. msgid "{Environment Variable} GUIX_DAEMON_SOCKET"
  14667. msgstr ""
  14668. #. type: defvr
  14669. #: guix-git/doc/guix.texi:9289
  14670. 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:"
  14671. msgstr ""
  14672. #. type: code{#1}
  14673. #: guix-git/doc/guix.texi:9291 guix-git/doc/guix.texi:25642
  14674. #, no-wrap
  14675. msgid "file"
  14676. msgstr ""
  14677. #. type: itemx
  14678. #: guix-git/doc/guix.texi:9292
  14679. #, no-wrap
  14680. msgid "unix"
  14681. msgstr ""
  14682. #. type: table
  14683. #: guix-git/doc/guix.texi:9296
  14684. msgid "These are for Unix-domain sockets. @code{file:///var/guix/daemon-socket/socket} is equivalent to @file{/var/guix/daemon-socket/socket}."
  14685. msgstr ""
  14686. #. type: table
  14687. #: guix-git/doc/guix.texi:9305
  14688. 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):"
  14689. msgstr ""
  14690. #. type: example
  14691. #: guix-git/doc/guix.texi:9308
  14692. #, no-wrap
  14693. msgid "guix://master.guix.example.org:1234\n"
  14694. msgstr ""
  14695. #. type: table
  14696. #: guix-git/doc/guix.texi:9313
  14697. 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}."
  14698. msgstr ""
  14699. #. type: table
  14700. #: guix-git/doc/guix.texi:9317
  14701. 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}})."
  14702. msgstr ""
  14703. #. type: item
  14704. #: guix-git/doc/guix.texi:9318
  14705. #, no-wrap
  14706. msgid "ssh"
  14707. msgstr ""
  14708. #. type: cindex
  14709. #: guix-git/doc/guix.texi:9319
  14710. #, no-wrap
  14711. msgid "SSH access to build daemons"
  14712. msgstr ""
  14713. #. type: table
  14714. #: guix-git/doc/guix.texi:9325
  14715. 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:"
  14716. msgstr ""
  14717. #. type: example
  14718. #: guix-git/doc/guix.texi:9328
  14719. #, no-wrap
  14720. msgid "ssh://charlie@@guix.example.org:22\n"
  14721. msgstr ""
  14722. #. type: table
  14723. #: guix-git/doc/guix.texi:9332
  14724. msgid "As for @command{guix copy}, the usual OpenSSH client configuration files are honored (@pxref{Invoking guix copy})."
  14725. msgstr ""
  14726. #. type: defvr
  14727. #: guix-git/doc/guix.texi:9335
  14728. msgid "Additional URI schemes may be supported in the future."
  14729. msgstr ""
  14730. #. type: quotation
  14731. #: guix-git/doc/guix.texi:9342
  14732. 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})."
  14733. msgstr ""
  14734. #. type: deffn
  14735. #: guix-git/doc/guix.texi:9345
  14736. #, no-wrap
  14737. msgid "{Scheme Procedure} open-connection [@var{uri}] [#:reserve-space? #t]"
  14738. msgstr ""
  14739. #. type: deffn
  14740. #: guix-git/doc/guix.texi:9350
  14741. 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."
  14742. msgstr ""
  14743. #. type: deffn
  14744. #: guix-git/doc/guix.texi:9353
  14745. msgid "@var{file} defaults to @code{%default-socket-path}, which is the normal location given the options that were passed to @command{configure}."
  14746. msgstr ""
  14747. #. type: deffn
  14748. #: guix-git/doc/guix.texi:9355
  14749. #, no-wrap
  14750. msgid "{Scheme Procedure} close-connection @var{server}"
  14751. msgstr ""
  14752. #. type: deffn
  14753. #: guix-git/doc/guix.texi:9357
  14754. msgid "Close the connection to @var{server}."
  14755. msgstr ""
  14756. #. type: defvr
  14757. #: guix-git/doc/guix.texi:9359
  14758. #, no-wrap
  14759. msgid "{Scheme Variable} current-build-output-port"
  14760. msgstr ""
  14761. #. type: defvr
  14762. #: guix-git/doc/guix.texi:9362
  14763. 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."
  14764. msgstr ""
  14765. #. type: Plain text
  14766. #: guix-git/doc/guix.texi:9366
  14767. msgid "Procedures that make RPCs all take a server object as their first argument."
  14768. msgstr ""
  14769. #. type: deffn
  14770. #: guix-git/doc/guix.texi:9367
  14771. #, no-wrap
  14772. msgid "{Scheme Procedure} valid-path? @var{server} @var{path}"
  14773. msgstr ""
  14774. #. type: cindex
  14775. #: guix-git/doc/guix.texi:9368
  14776. #, no-wrap
  14777. msgid "invalid store items"
  14778. msgstr ""
  14779. #. type: deffn
  14780. #: guix-git/doc/guix.texi:9373
  14781. 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)."
  14782. msgstr ""
  14783. #. type: deffn
  14784. #: guix-git/doc/guix.texi:9376
  14785. msgid "A @code{&store-protocol-error} condition is raised if @var{path} is not prefixed by the store directory (@file{/gnu/store})."
  14786. msgstr ""
  14787. #. type: deffn
  14788. #: guix-git/doc/guix.texi:9378
  14789. #, no-wrap
  14790. msgid "{Scheme Procedure} add-text-to-store @var{server} @var{name} @var{text} [@var{references}]"
  14791. msgstr ""
  14792. #. type: deffn
  14793. #: guix-git/doc/guix.texi:9382
  14794. 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."
  14795. msgstr ""
  14796. #. type: deffn
  14797. #: guix-git/doc/guix.texi:9384
  14798. #, no-wrap
  14799. msgid "{Scheme Procedure} build-derivations @var{store} @var{derivations} @"
  14800. msgstr ""
  14801. #. type: deffn
  14802. #: guix-git/doc/guix.texi:9389
  14803. 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."
  14804. msgstr ""
  14805. #. type: Plain text
  14806. #: guix-git/doc/guix.texi:9395
  14807. 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})."
  14808. msgstr ""
  14809. #. type: i{#1}
  14810. #: guix-git/doc/guix.texi:9398
  14811. msgid "This section is currently incomplete."
  14812. msgstr ""
  14813. #. type: cindex
  14814. #: guix-git/doc/guix.texi:9402
  14815. #, no-wrap
  14816. msgid "derivations"
  14817. msgstr ""
  14818. #. type: Plain text
  14819. #: guix-git/doc/guix.texi:9406
  14820. 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:"
  14821. msgstr ""
  14822. #. type: itemize
  14823. #: guix-git/doc/guix.texi:9411
  14824. msgid "The outputs of the derivation---derivations produce at least one file or directory in the store, but may produce more."
  14825. msgstr ""
  14826. #. type: cindex
  14827. #: guix-git/doc/guix.texi:9413
  14828. #, no-wrap
  14829. msgid "build-time dependencies"
  14830. msgstr ""
  14831. #. type: cindex
  14832. #: guix-git/doc/guix.texi:9414
  14833. #, no-wrap
  14834. msgid "dependencies, build-time"
  14835. msgstr ""
  14836. #. type: itemize
  14837. #: guix-git/doc/guix.texi:9418
  14838. 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.)."
  14839. msgstr ""
  14840. #. type: itemize
  14841. #: guix-git/doc/guix.texi:9421
  14842. msgid "The system type targeted by the derivation---e.g., @code{x86_64-linux}."
  14843. msgstr ""
  14844. #. type: itemize
  14845. #: guix-git/doc/guix.texi:9425
  14846. msgid "The file name of a build script in the store, along with the arguments to be passed."
  14847. msgstr ""
  14848. #. type: itemize
  14849. #: guix-git/doc/guix.texi:9428
  14850. msgid "A list of environment variables to be defined."
  14851. msgstr ""
  14852. #. type: cindex
  14853. #: guix-git/doc/guix.texi:9431
  14854. #, no-wrap
  14855. msgid "derivation path"
  14856. msgstr ""
  14857. #. type: Plain text
  14858. #: guix-git/doc/guix.texi:9439
  14859. 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})."
  14860. msgstr ""
  14861. #. type: cindex
  14862. #: guix-git/doc/guix.texi:9440
  14863. #, no-wrap
  14864. msgid "fixed-output derivations"
  14865. msgstr ""
  14866. #. type: Plain text
  14867. #: guix-git/doc/guix.texi:9447
  14868. 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."
  14869. msgstr ""
  14870. #. type: item
  14871. #: guix-git/doc/guix.texi:9448 guix-git/doc/guix.texi:13035
  14872. #, no-wrap
  14873. msgid "references"
  14874. msgstr ""
  14875. #. type: cindex
  14876. #: guix-git/doc/guix.texi:9449
  14877. #, no-wrap
  14878. msgid "run-time dependencies"
  14879. msgstr ""
  14880. #. type: cindex
  14881. #: guix-git/doc/guix.texi:9450
  14882. #, no-wrap
  14883. msgid "dependencies, run-time"
  14884. msgstr ""
  14885. #. type: Plain text
  14886. #: guix-git/doc/guix.texi:9457
  14887. 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."
  14888. msgstr ""
  14889. #. type: Plain text
  14890. #: guix-git/doc/guix.texi:9462
  14891. 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:"
  14892. msgstr ""
  14893. #. type: deffn
  14894. #: guix-git/doc/guix.texi:9463
  14895. #, no-wrap
  14896. msgid "{Scheme Procedure} derivation @var{store} @var{name} @var{builder} @"
  14897. msgstr ""
  14898. #. type: deffn
  14899. #: guix-git/doc/guix.texi:9472
  14900. 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."
  14901. msgstr ""
  14902. #. type: deffn
  14903. #: guix-git/doc/guix.texi:9479
  14904. 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."
  14905. msgstr ""
  14906. #. type: deffn
  14907. #: guix-git/doc/guix.texi:9484
  14908. 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."
  14909. msgstr ""
  14910. #. type: deffn
  14911. #: guix-git/doc/guix.texi:9489
  14912. 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."
  14913. msgstr ""
  14914. #. type: deffn
  14915. #: guix-git/doc/guix.texi:9496
  14916. 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."
  14917. msgstr ""
  14918. #. type: deffn
  14919. #: guix-git/doc/guix.texi:9501
  14920. 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."
  14921. msgstr ""
  14922. #. type: deffn
  14923. #: guix-git/doc/guix.texi:9506
  14924. 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."
  14925. msgstr ""
  14926. #. type: deffn
  14927. #: guix-git/doc/guix.texi:9509
  14928. msgid "@var{properties} must be an association list describing ``properties'' of the derivation. It is kept as-is, uninterpreted, in the derivation."
  14929. msgstr ""
  14930. #. type: Plain text
  14931. #: guix-git/doc/guix.texi:9515
  14932. 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:"
  14933. msgstr ""
  14934. #. type: lisp
  14935. #: guix-git/doc/guix.texi:9520
  14936. #, no-wrap
  14937. msgid ""
  14938. "(use-modules (guix utils)\n"
  14939. " (guix store)\n"
  14940. " (guix derivations))\n"
  14941. "\n"
  14942. msgstr ""
  14943. #. type: lisp
  14944. #: guix-git/doc/guix.texi:9529
  14945. #, no-wrap
  14946. msgid ""
  14947. "(let ((builder ; add the Bash script to the store\n"
  14948. " (add-text-to-store store \"my-builder.sh\"\n"
  14949. " \"echo hello world > $out\\n\" '())))\n"
  14950. " (derivation store \"foo\"\n"
  14951. " bash `(\"-e\" ,builder)\n"
  14952. " #:inputs `((,bash) (,builder))\n"
  14953. " #:env-vars '((\"HOME\" . \"/homeless\"))))\n"
  14954. "@result{} #<derivation /gnu/store/@dots{}-foo.drv => /gnu/store/@dots{}-foo>\n"
  14955. msgstr ""
  14956. #. type: Plain text
  14957. #: guix-git/doc/guix.texi:9536
  14958. 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}."
  14959. msgstr ""
  14960. #. type: Plain text
  14961. #: guix-git/doc/guix.texi:9541
  14962. 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}."
  14963. msgstr ""
  14964. #. type: deffn
  14965. #: guix-git/doc/guix.texi:9542
  14966. #, no-wrap
  14967. msgid "{Scheme Procedure} build-expression->derivation @var{store} @"
  14968. msgstr ""
  14969. #. type: deffn
  14970. #: guix-git/doc/guix.texi:9558
  14971. 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))}."
  14972. msgstr ""
  14973. #. type: deffn
  14974. #: guix-git/doc/guix.texi:9566
  14975. 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."
  14976. msgstr ""
  14977. #. type: deffn
  14978. #: guix-git/doc/guix.texi:9570
  14979. 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."
  14980. msgstr ""
  14981. #. type: deffn
  14982. #: guix-git/doc/guix.texi:9575
  14983. 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?}."
  14984. msgstr ""
  14985. #. type: Plain text
  14986. #: guix-git/doc/guix.texi:9580
  14987. msgid "Here's an example of a single-output derivation that creates a directory containing one file:"
  14988. msgstr ""
  14989. #. type: lisp
  14990. #: guix-git/doc/guix.texi:9588
  14991. #, no-wrap
  14992. msgid ""
  14993. "(let ((builder '(let ((out (assoc-ref %outputs \"out\")))\n"
  14994. " (mkdir out) ; create /gnu/store/@dots{}-goo\n"
  14995. " (call-with-output-file (string-append out \"/test\")\n"
  14996. " (lambda (p)\n"
  14997. " (display '(hello guix) p))))))\n"
  14998. " (build-expression->derivation store \"goo\" builder))\n"
  14999. "\n"
  15000. msgstr ""
  15001. #. type: lisp
  15002. #: guix-git/doc/guix.texi:9590
  15003. #, no-wrap
  15004. msgid "@result{} #<derivation /gnu/store/@dots{}-goo.drv => @dots{}>\n"
  15005. msgstr ""
  15006. #. type: cindex
  15007. #: guix-git/doc/guix.texi:9596
  15008. #, no-wrap
  15009. msgid "monad"
  15010. msgstr ""
  15011. #. type: Plain text
  15012. #: guix-git/doc/guix.texi:9602
  15013. 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."
  15014. msgstr ""
  15015. #. type: Plain text
  15016. #: guix-git/doc/guix.texi:9608
  15017. 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."
  15018. msgstr ""
  15019. #. type: cindex
  15020. #: guix-git/doc/guix.texi:9609
  15021. #, no-wrap
  15022. msgid "monadic values"
  15023. msgstr ""
  15024. #. type: cindex
  15025. #: guix-git/doc/guix.texi:9610
  15026. #, no-wrap
  15027. msgid "monadic functions"
  15028. msgstr ""
  15029. #. type: Plain text
  15030. #: guix-git/doc/guix.texi:9620
  15031. 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}."
  15032. msgstr ""
  15033. #. type: Plain text
  15034. #: guix-git/doc/guix.texi:9622
  15035. msgid "Consider this ``normal'' procedure:"
  15036. msgstr ""
  15037. #. type: lisp
  15038. #: guix-git/doc/guix.texi:9631
  15039. #, no-wrap
  15040. msgid ""
  15041. "(define (sh-symlink store)\n"
  15042. " ;; Return a derivation that symlinks the 'bash' executable.\n"
  15043. " (let* ((drv (package-derivation store bash))\n"
  15044. " (out (derivation->output-path drv))\n"
  15045. " (sh (string-append out \"/bin/bash\")))\n"
  15046. " (build-expression->derivation store \"sh\"\n"
  15047. " `(symlink ,sh %output))))\n"
  15048. msgstr ""
  15049. #. type: Plain text
  15050. #: guix-git/doc/guix.texi:9635
  15051. msgid "Using @code{(guix monads)} and @code{(guix gexp)}, it may be rewritten as a monadic function:"
  15052. msgstr ""
  15053. #. type: lisp
  15054. #: guix-git/doc/guix.texi:9643
  15055. #, no-wrap
  15056. msgid ""
  15057. "(define (sh-symlink)\n"
  15058. " ;; Same, but return a monadic value.\n"
  15059. " (mlet %store-monad ((drv (package->derivation bash)))\n"
  15060. " (gexp->derivation \"sh\"\n"
  15061. " #~(symlink (string-append #$drv \"/bin/bash\")\n"
  15062. " #$output))))\n"
  15063. msgstr ""
  15064. #. type: Plain text
  15065. #: guix-git/doc/guix.texi:9650
  15066. 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}."
  15067. msgstr ""
  15068. #. type: Plain text
  15069. #: guix-git/doc/guix.texi:9654
  15070. 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}):"
  15071. msgstr ""
  15072. #. type: lisp
  15073. #: guix-git/doc/guix.texi:9660
  15074. #, no-wrap
  15075. msgid ""
  15076. "(define (sh-symlink)\n"
  15077. " (gexp->derivation \"sh\"\n"
  15078. " #~(symlink (string-append #$bash \"/bin/bash\")\n"
  15079. " #$output)))\n"
  15080. msgstr ""
  15081. #. type: Plain text
  15082. #: guix-git/doc/guix.texi:9669
  15083. 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}:"
  15084. msgstr ""
  15085. #. type: lisp
  15086. #: guix-git/doc/guix.texi:9673
  15087. #, no-wrap
  15088. msgid ""
  15089. "(run-with-store (open-connection) (sh-symlink))\n"
  15090. "@result{} /gnu/store/...-sh-symlink\n"
  15091. msgstr ""
  15092. #. type: Plain text
  15093. #: guix-git/doc/guix.texi:9679
  15094. 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:"
  15095. msgstr ""
  15096. #. type: example
  15097. #: guix-git/doc/guix.texi:9683
  15098. #, no-wrap
  15099. msgid ""
  15100. "scheme@@(guile-user)> ,run-in-store (package->derivation hello)\n"
  15101. "$1 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  15102. msgstr ""
  15103. #. type: Plain text
  15104. #: guix-git/doc/guix.texi:9687
  15105. msgid "The latter enters a recursive REPL, where all the return values are automatically run through the store:"
  15106. msgstr ""
  15107. #. type: example
  15108. #: guix-git/doc/guix.texi:9696
  15109. #, no-wrap
  15110. msgid ""
  15111. "scheme@@(guile-user)> ,enter-store-monad\n"
  15112. "store-monad@@(guile-user) [1]> (package->derivation hello)\n"
  15113. "$2 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  15114. "store-monad@@(guile-user) [1]> (text-file \"foo\" \"Hello!\")\n"
  15115. "$3 = \"/gnu/store/@dots{}-foo\"\n"
  15116. "store-monad@@(guile-user) [1]> ,q\n"
  15117. "scheme@@(guile-user)>\n"
  15118. msgstr ""
  15119. #. type: Plain text
  15120. #: guix-git/doc/guix.texi:9701
  15121. msgid "Note that non-monadic values cannot be returned in the @code{store-monad} REPL."
  15122. msgstr ""
  15123. #. type: Plain text
  15124. #: guix-git/doc/guix.texi:9704
  15125. msgid "The main syntactic forms to deal with monads in general are provided by the @code{(guix monads)} module and are described below."
  15126. msgstr ""
  15127. #. type: deffn
  15128. #: guix-git/doc/guix.texi:9705
  15129. #, no-wrap
  15130. msgid "{Scheme Syntax} with-monad @var{monad} @var{body} ..."
  15131. msgstr ""
  15132. #. type: deffn
  15133. #: guix-git/doc/guix.texi:9708
  15134. msgid "Evaluate any @code{>>=} or @code{return} forms in @var{body} as being in @var{monad}."
  15135. msgstr ""
  15136. #. type: deffn
  15137. #: guix-git/doc/guix.texi:9710
  15138. #, no-wrap
  15139. msgid "{Scheme Syntax} return @var{val}"
  15140. msgstr ""
  15141. #. type: deffn
  15142. #: guix-git/doc/guix.texi:9712
  15143. msgid "Return a monadic value that encapsulates @var{val}."
  15144. msgstr ""
  15145. #. type: deffn
  15146. #: guix-git/doc/guix.texi:9714
  15147. #, no-wrap
  15148. msgid "{Scheme Syntax} >>= @var{mval} @var{mproc} ..."
  15149. msgstr ""
  15150. #. type: deffn
  15151. #: guix-git/doc/guix.texi:9721
  15152. 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:"
  15153. msgstr ""
  15154. #. type: lisp
  15155. #: guix-git/doc/guix.texi:9729
  15156. #, no-wrap
  15157. msgid ""
  15158. "(run-with-state\n"
  15159. " (with-monad %state-monad\n"
  15160. " (>>= (return 1)\n"
  15161. " (lambda (x) (return (+ 1 x)))\n"
  15162. " (lambda (x) (return (* 2 x)))))\n"
  15163. " 'some-state)\n"
  15164. "\n"
  15165. msgstr ""
  15166. #. type: lisp
  15167. #: guix-git/doc/guix.texi:9732
  15168. #, no-wrap
  15169. msgid ""
  15170. "@result{} 4\n"
  15171. "@result{} some-state\n"
  15172. msgstr ""
  15173. #. type: deffn
  15174. #: guix-git/doc/guix.texi:9735
  15175. #, no-wrap
  15176. msgid "{Scheme Syntax} mlet @var{monad} ((@var{var} @var{mval}) ...) @"
  15177. msgstr ""
  15178. #. type: deffn
  15179. #: guix-git/doc/guix.texi:9737
  15180. msgid "@var{body} ..."
  15181. msgstr ""
  15182. #. type: deffnx
  15183. #: guix-git/doc/guix.texi:9737
  15184. #, no-wrap
  15185. msgid "{Scheme Syntax} mlet* @var{monad} ((@var{var} @var{mval}) ...) @"
  15186. msgstr ""
  15187. #. type: deffn
  15188. #: guix-git/doc/guix.texi:9749
  15189. 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}."
  15190. msgstr ""
  15191. #. type: deffn
  15192. #: guix-git/doc/guix.texi:9752
  15193. msgid "@code{mlet*} is to @code{mlet} what @code{let*} is to @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual})."
  15194. msgstr ""
  15195. #. type: deffn
  15196. #: guix-git/doc/guix.texi:9754
  15197. #, no-wrap
  15198. msgid "{Scheme System} mbegin @var{monad} @var{mexp} ..."
  15199. msgstr ""
  15200. #. type: deffn
  15201. #: guix-git/doc/guix.texi:9758
  15202. 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."
  15203. msgstr ""
  15204. #. type: deffn
  15205. #: guix-git/doc/guix.texi:9762
  15206. 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."
  15207. msgstr ""
  15208. #. type: deffn
  15209. #: guix-git/doc/guix.texi:9764
  15210. #, no-wrap
  15211. msgid "{Scheme System} mwhen @var{condition} @var{mexp0} @var{mexp*} ..."
  15212. msgstr ""
  15213. #. type: deffn
  15214. #: guix-git/doc/guix.texi:9769
  15215. 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."
  15216. msgstr ""
  15217. #. type: deffn
  15218. #: guix-git/doc/guix.texi:9771
  15219. #, no-wrap
  15220. msgid "{Scheme System} munless @var{condition} @var{mexp0} @var{mexp*} ..."
  15221. msgstr ""
  15222. #. type: deffn
  15223. #: guix-git/doc/guix.texi:9776
  15224. 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."
  15225. msgstr ""
  15226. #. type: cindex
  15227. #: guix-git/doc/guix.texi:9778
  15228. #, no-wrap
  15229. msgid "state monad"
  15230. msgstr ""
  15231. #. type: Plain text
  15232. #: guix-git/doc/guix.texi:9782
  15233. 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."
  15234. msgstr ""
  15235. #. type: defvr
  15236. #: guix-git/doc/guix.texi:9783
  15237. #, no-wrap
  15238. msgid "{Scheme Variable} %state-monad"
  15239. msgstr ""
  15240. #. type: defvr
  15241. #: guix-git/doc/guix.texi:9786
  15242. msgid "The state monad. Procedures in the state monad can access and change the state that is threaded."
  15243. msgstr ""
  15244. #. type: defvr
  15245. #: guix-git/doc/guix.texi:9790
  15246. 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:"
  15247. msgstr ""
  15248. #. type: lisp
  15249. #: guix-git/doc/guix.texi:9797
  15250. #, no-wrap
  15251. msgid ""
  15252. "(define (square x)\n"
  15253. " (mlet %state-monad ((count (current-state)))\n"
  15254. " (mbegin %state-monad\n"
  15255. " (set-current-state (+ 1 count))\n"
  15256. " (return (* x x)))))\n"
  15257. "\n"
  15258. msgstr ""
  15259. #. type: lisp
  15260. #: guix-git/doc/guix.texi:9801
  15261. #, no-wrap
  15262. msgid ""
  15263. "(run-with-state (sequence %state-monad (map square (iota 3))) 0)\n"
  15264. "@result{} (0 1 4)\n"
  15265. "@result{} 3\n"
  15266. msgstr ""
  15267. #. type: defvr
  15268. #: guix-git/doc/guix.texi:9805
  15269. msgid "When ``run'' through @code{%state-monad}, we obtain that additional state value, which is the number of @code{square} calls."
  15270. msgstr ""
  15271. #. type: deffn
  15272. #: guix-git/doc/guix.texi:9807
  15273. #, no-wrap
  15274. msgid "{Monadic Procedure} current-state"
  15275. msgstr ""
  15276. #. type: deffn
  15277. #: guix-git/doc/guix.texi:9809
  15278. msgid "Return the current state as a monadic value."
  15279. msgstr ""
  15280. #. type: deffn
  15281. #: guix-git/doc/guix.texi:9811
  15282. #, no-wrap
  15283. msgid "{Monadic Procedure} set-current-state @var{value}"
  15284. msgstr ""
  15285. #. type: deffn
  15286. #: guix-git/doc/guix.texi:9814
  15287. msgid "Set the current state to @var{value} and return the previous state as a monadic value."
  15288. msgstr ""
  15289. #. type: deffn
  15290. #: guix-git/doc/guix.texi:9816
  15291. #, no-wrap
  15292. msgid "{Monadic Procedure} state-push @var{value}"
  15293. msgstr ""
  15294. #. type: deffn
  15295. #: guix-git/doc/guix.texi:9819
  15296. msgid "Push @var{value} to the current state, which is assumed to be a list, and return the previous state as a monadic value."
  15297. msgstr ""
  15298. #. type: deffn
  15299. #: guix-git/doc/guix.texi:9821
  15300. #, no-wrap
  15301. msgid "{Monadic Procedure} state-pop"
  15302. msgstr ""
  15303. #. type: deffn
  15304. #: guix-git/doc/guix.texi:9824
  15305. msgid "Pop a value from the current state and return it as a monadic value. The state is assumed to be a list."
  15306. msgstr ""
  15307. #. type: deffn
  15308. #: guix-git/doc/guix.texi:9826
  15309. #, no-wrap
  15310. msgid "{Scheme Procedure} run-with-state @var{mval} [@var{state}]"
  15311. msgstr ""
  15312. #. type: deffn
  15313. #: guix-git/doc/guix.texi:9829
  15314. msgid "Run monadic value @var{mval} starting with @var{state} as the initial state. Return two values: the resulting value, and the resulting state."
  15315. msgstr ""
  15316. #. type: Plain text
  15317. #: guix-git/doc/guix.texi:9833
  15318. msgid "The main interface to the store monad, provided by the @code{(guix store)} module, is as follows."
  15319. msgstr ""
  15320. #. type: defvr
  15321. #: guix-git/doc/guix.texi:9834
  15322. #, no-wrap
  15323. msgid "{Scheme Variable} %store-monad"
  15324. msgstr ""
  15325. #. type: defvr
  15326. #: guix-git/doc/guix.texi:9836
  15327. msgid "The store monad---an alias for @code{%state-monad}."
  15328. msgstr ""
  15329. #. type: defvr
  15330. #: guix-git/doc/guix.texi:9840
  15331. 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)."
  15332. msgstr ""
  15333. #. type: deffn
  15334. #: guix-git/doc/guix.texi:9842
  15335. #, no-wrap
  15336. msgid "{Scheme Procedure} run-with-store @var{store} @var{mval} [#:guile-for-build] [#:system (%current-system)]"
  15337. msgstr ""
  15338. #. type: deffn
  15339. #: guix-git/doc/guix.texi:9845
  15340. msgid "Run @var{mval}, a monadic value in the store monad, in @var{store}, an open store connection."
  15341. msgstr ""
  15342. #. type: deffn
  15343. #: guix-git/doc/guix.texi:9847
  15344. #, no-wrap
  15345. msgid "{Monadic Procedure} text-file @var{name} @var{text} [@var{references}]"
  15346. msgstr ""
  15347. #. type: deffn
  15348. #: guix-git/doc/guix.texi:9851
  15349. 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."
  15350. msgstr ""
  15351. #. type: deffn
  15352. #: guix-git/doc/guix.texi:9853
  15353. #, no-wrap
  15354. msgid "{Monadic Procedure} binary-file @var{name} @var{data} [@var{references}]"
  15355. msgstr ""
  15356. #. type: deffn
  15357. #: guix-git/doc/guix.texi:9857
  15358. 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."
  15359. msgstr ""
  15360. #. type: deffn
  15361. #: guix-git/doc/guix.texi:9859
  15362. #, no-wrap
  15363. msgid "{Monadic Procedure} interned-file @var{file} [@var{name}] @"
  15364. msgstr ""
  15365. #. type: deffn
  15366. #: guix-git/doc/guix.texi:9864
  15367. 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."
  15368. msgstr ""
  15369. #. type: deffn
  15370. #: guix-git/doc/guix.texi:9868 guix-git/doc/guix.texi:10291
  15371. 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."
  15372. msgstr ""
  15373. #. type: deffn
  15374. #: guix-git/doc/guix.texi:9873 guix-git/doc/guix.texi:10296
  15375. 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."
  15376. msgstr ""
  15377. #. type: deffn
  15378. #: guix-git/doc/guix.texi:9875
  15379. msgid "The example below adds a file to the store, under two different names:"
  15380. msgstr ""
  15381. #. type: lisp
  15382. #: guix-git/doc/guix.texi:9881
  15383. #, no-wrap
  15384. msgid ""
  15385. "(run-with-store (open-connection)\n"
  15386. " (mlet %store-monad ((a (interned-file \"README\"))\n"
  15387. " (b (interned-file \"README\" \"LEGU-MIN\")))\n"
  15388. " (return (list a b))))\n"
  15389. "\n"
  15390. msgstr ""
  15391. #. type: lisp
  15392. #: guix-git/doc/guix.texi:9883
  15393. #, no-wrap
  15394. msgid "@result{} (\"/gnu/store/rwm@dots{}-README\" \"/gnu/store/44i@dots{}-LEGU-MIN\")\n"
  15395. msgstr ""
  15396. #. type: Plain text
  15397. #: guix-git/doc/guix.texi:9889
  15398. msgid "The @code{(guix packages)} module exports the following package-related monadic procedures:"
  15399. msgstr ""
  15400. #. type: deffn
  15401. #: guix-git/doc/guix.texi:9890
  15402. #, no-wrap
  15403. msgid "{Monadic Procedure} package-file @var{package} [@var{file}] @"
  15404. msgstr ""
  15405. #. type: deffn
  15406. #: guix-git/doc/guix.texi:9898
  15407. 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."
  15408. msgstr ""
  15409. #. type: deffn
  15410. #: guix-git/doc/guix.texi:9902
  15411. 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."
  15412. msgstr ""
  15413. #. type: deffn
  15414. #: guix-git/doc/guix.texi:9904
  15415. #, no-wrap
  15416. msgid "{Monadic Procedure} package->derivation @var{package} [@var{system}]"
  15417. msgstr ""
  15418. #. type: deffnx
  15419. #: guix-git/doc/guix.texi:9905
  15420. #, no-wrap
  15421. msgid "{Monadic Procedure} package->cross-derivation @var{package} @"
  15422. msgstr ""
  15423. #. type: deffn
  15424. #: guix-git/doc/guix.texi:9909
  15425. msgid "@var{target} [@var{system}] Monadic version of @code{package-derivation} and @code{package-cross-derivation} (@pxref{Defining Packages})."
  15426. msgstr ""
  15427. #. type: cindex
  15428. #: guix-git/doc/guix.texi:9915
  15429. #, no-wrap
  15430. msgid "G-expression"
  15431. msgstr ""
  15432. #. type: cindex
  15433. #: guix-git/doc/guix.texi:9916
  15434. #, no-wrap
  15435. msgid "build code quoting"
  15436. msgstr ""
  15437. #. type: Plain text
  15438. #: guix-git/doc/guix.texi:9922
  15439. 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})."
  15440. msgstr ""
  15441. #. type: cindex
  15442. #: guix-git/doc/guix.texi:9925
  15443. #, no-wrap
  15444. msgid "strata of code"
  15445. msgstr ""
  15446. #. type: Plain text
  15447. #: guix-git/doc/guix.texi:9937
  15448. 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})."
  15449. msgstr ""
  15450. #. type: Plain text
  15451. #: guix-git/doc/guix.texi:9944
  15452. 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."
  15453. msgstr ""
  15454. #. type: Plain text
  15455. #: guix-git/doc/guix.texi:9953
  15456. 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:"
  15457. msgstr ""
  15458. #. type: itemize
  15459. #: guix-git/doc/guix.texi:9958
  15460. msgid "Gexps are meant to be written to a file and run or manipulated by other processes."
  15461. msgstr ""
  15462. #. type: itemize
  15463. #: guix-git/doc/guix.texi:9963
  15464. 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."
  15465. msgstr ""
  15466. #. type: itemize
  15467. #: guix-git/doc/guix.texi:9968
  15468. 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."
  15469. msgstr ""
  15470. #. type: cindex
  15471. #: guix-git/doc/guix.texi:9970 guix-git/doc/guix.texi:10527
  15472. #, no-wrap
  15473. msgid "lowering, of high-level objects in gexps"
  15474. msgstr ""
  15475. #. type: Plain text
  15476. #: guix-git/doc/guix.texi:9980
  15477. 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)."
  15478. msgstr ""
  15479. #. type: Plain text
  15480. #: guix-git/doc/guix.texi:9982
  15481. msgid "To illustrate the idea, here is an example of a gexp:"
  15482. msgstr ""
  15483. #. type: lisp
  15484. #: guix-git/doc/guix.texi:9990
  15485. #, no-wrap
  15486. msgid ""
  15487. "(define build-exp\n"
  15488. " #~(begin\n"
  15489. " (mkdir #$output)\n"
  15490. " (chdir #$output)\n"
  15491. " (symlink (string-append #$coreutils \"/bin/ls\")\n"
  15492. " \"list-files\")))\n"
  15493. msgstr ""
  15494. #. type: Plain text
  15495. #: guix-git/doc/guix.texi:9995
  15496. 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}:"
  15497. msgstr ""
  15498. #. type: lisp
  15499. #: guix-git/doc/guix.texi:9998
  15500. #, no-wrap
  15501. msgid "(gexp->derivation \"the-thing\" build-exp)\n"
  15502. msgstr ""
  15503. #. type: Plain text
  15504. #: guix-git/doc/guix.texi:10006
  15505. 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."
  15506. msgstr ""
  15507. #. type: cindex
  15508. #: guix-git/doc/guix.texi:10007
  15509. #, no-wrap
  15510. msgid "cross compilation"
  15511. msgstr ""
  15512. #. type: Plain text
  15513. #: guix-git/doc/guix.texi:10013
  15514. 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:"
  15515. msgstr ""
  15516. #. type: lisp
  15517. #: guix-git/doc/guix.texi:10024
  15518. #, no-wrap
  15519. msgid ""
  15520. "(gexp->derivation \"vi\"\n"
  15521. " #~(begin\n"
  15522. " (mkdir #$output)\n"
  15523. " (mkdir (string-append #$output \"/bin\"))\n"
  15524. " (system* (string-append #+coreutils \"/bin/ln\")\n"
  15525. " \"-s\"\n"
  15526. " (string-append #$emacs \"/bin/emacs\")\n"
  15527. " (string-append #$output \"/bin/vi\")))\n"
  15528. " #:target \"aarch64-linux-gnu\")\n"
  15529. msgstr ""
  15530. #. type: Plain text
  15531. #: guix-git/doc/guix.texi:10030
  15532. 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."
  15533. msgstr ""
  15534. #. type: cindex
  15535. #: guix-git/doc/guix.texi:10031
  15536. #, no-wrap
  15537. msgid "imported modules, for gexps"
  15538. msgstr ""
  15539. #. type: findex
  15540. #: guix-git/doc/guix.texi:10032
  15541. #, no-wrap
  15542. msgid "with-imported-modules"
  15543. msgstr ""
  15544. #. type: Plain text
  15545. #: guix-git/doc/guix.texi:10037
  15546. 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:"
  15547. msgstr ""
  15548. #. type: lisp
  15549. #: guix-git/doc/guix.texi:10048
  15550. #, no-wrap
  15551. msgid ""
  15552. "(let ((build (with-imported-modules '((guix build utils))\n"
  15553. " #~(begin\n"
  15554. " (use-modules (guix build utils))\n"
  15555. " (mkdir-p (string-append #$output \"/bin\"))))))\n"
  15556. " (gexp->derivation \"empty-dir\"\n"
  15557. " #~(begin\n"
  15558. " #$build\n"
  15559. " (display \"success!\\n\")\n"
  15560. " #t)))\n"
  15561. msgstr ""
  15562. #. type: Plain text
  15563. #: guix-git/doc/guix.texi:10054
  15564. 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."
  15565. msgstr ""
  15566. #. type: cindex
  15567. #: guix-git/doc/guix.texi:10055
  15568. #, no-wrap
  15569. msgid "module closure"
  15570. msgstr ""
  15571. #. type: findex
  15572. #: guix-git/doc/guix.texi:10056
  15573. #, no-wrap
  15574. msgid "source-module-closure"
  15575. msgstr ""
  15576. #. type: Plain text
  15577. #: guix-git/doc/guix.texi:10063
  15578. 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:"
  15579. msgstr ""
  15580. #. type: lisp
  15581. #: guix-git/doc/guix.texi:10066
  15582. #, no-wrap
  15583. msgid ""
  15584. "(use-modules (guix modules)) ;for 'source-module-closure'\n"
  15585. "\n"
  15586. msgstr ""
  15587. #. type: lisp
  15588. #: guix-git/doc/guix.texi:10075
  15589. #, no-wrap
  15590. msgid ""
  15591. "(with-imported-modules (source-module-closure\n"
  15592. " '((guix build utils)\n"
  15593. " (gnu build vm)))\n"
  15594. " (gexp->derivation \"something-with-vms\"\n"
  15595. " #~(begin\n"
  15596. " (use-modules (guix build utils)\n"
  15597. " (gnu build vm))\n"
  15598. " @dots{})))\n"
  15599. msgstr ""
  15600. #. type: cindex
  15601. #: guix-git/doc/guix.texi:10077
  15602. #, no-wrap
  15603. msgid "extensions, for gexps"
  15604. msgstr ""
  15605. #. type: findex
  15606. #: guix-git/doc/guix.texi:10078
  15607. #, no-wrap
  15608. msgid "with-extensions"
  15609. msgstr ""
  15610. #. type: Plain text
  15611. #: guix-git/doc/guix.texi:10083
  15612. 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:"
  15613. msgstr ""
  15614. #. type: lisp
  15615. #: guix-git/doc/guix.texi:10086
  15616. #, no-wrap
  15617. msgid ""
  15618. "(use-modules (gnu packages guile)) ;for 'guile-json'\n"
  15619. "\n"
  15620. msgstr ""
  15621. #. type: lisp
  15622. #: guix-git/doc/guix.texi:10092
  15623. #, no-wrap
  15624. msgid ""
  15625. "(with-extensions (list guile-json)\n"
  15626. " (gexp->derivation \"something-with-json\"\n"
  15627. " #~(begin\n"
  15628. " (use-modules (json))\n"
  15629. " @dots{})))\n"
  15630. msgstr ""
  15631. #. type: Plain text
  15632. #: guix-git/doc/guix.texi:10095
  15633. msgid "The syntactic form to construct gexps is summarized below."
  15634. msgstr ""
  15635. #. type: deffn
  15636. #: guix-git/doc/guix.texi:10096
  15637. #, no-wrap
  15638. msgid "{Scheme Syntax} #~@var{exp}"
  15639. msgstr ""
  15640. #. type: deffnx
  15641. #: guix-git/doc/guix.texi:10097
  15642. #, no-wrap
  15643. msgid "{Scheme Syntax} (gexp @var{exp})"
  15644. msgstr ""
  15645. #. type: deffn
  15646. #: guix-git/doc/guix.texi:10100
  15647. msgid "Return a G-expression containing @var{exp}. @var{exp} may contain one or more of the following forms:"
  15648. msgstr ""
  15649. #. type: item
  15650. #: guix-git/doc/guix.texi:10102
  15651. #, no-wrap
  15652. msgid "#$@var{obj}"
  15653. msgstr ""
  15654. #. type: itemx
  15655. #: guix-git/doc/guix.texi:10103
  15656. #, no-wrap
  15657. msgid "(ungexp @var{obj})"
  15658. msgstr ""
  15659. #. type: table
  15660. #: guix-git/doc/guix.texi:10108
  15661. 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}."
  15662. msgstr ""
  15663. #. type: table
  15664. #: guix-git/doc/guix.texi:10111
  15665. msgid "If @var{obj} is a list, it is traversed and references to supported objects are substituted similarly."
  15666. msgstr ""
  15667. #. type: table
  15668. #: guix-git/doc/guix.texi:10114
  15669. msgid "If @var{obj} is another gexp, its contents are inserted and its dependencies are added to those of the containing gexp."
  15670. msgstr ""
  15671. #. type: table
  15672. #: guix-git/doc/guix.texi:10116
  15673. msgid "If @var{obj} is another kind of object, it is inserted as is."
  15674. msgstr ""
  15675. #. type: item
  15676. #: guix-git/doc/guix.texi:10117
  15677. #, no-wrap
  15678. msgid "#$@var{obj}:@var{output}"
  15679. msgstr ""
  15680. #. type: itemx
  15681. #: guix-git/doc/guix.texi:10118
  15682. #, no-wrap
  15683. msgid "(ungexp @var{obj} @var{output})"
  15684. msgstr ""
  15685. #. type: table
  15686. #: guix-git/doc/guix.texi:10122
  15687. 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})."
  15688. msgstr ""
  15689. #. type: item
  15690. #: guix-git/doc/guix.texi:10123
  15691. #, no-wrap
  15692. msgid "#+@var{obj}"
  15693. msgstr ""
  15694. #. type: itemx
  15695. #: guix-git/doc/guix.texi:10124
  15696. #, no-wrap
  15697. msgid "#+@var{obj}:output"
  15698. msgstr ""
  15699. #. type: itemx
  15700. #: guix-git/doc/guix.texi:10125
  15701. #, no-wrap
  15702. msgid "(ungexp-native @var{obj})"
  15703. msgstr ""
  15704. #. type: itemx
  15705. #: guix-git/doc/guix.texi:10126
  15706. #, no-wrap
  15707. msgid "(ungexp-native @var{obj} @var{output})"
  15708. msgstr ""
  15709. #. type: table
  15710. #: guix-git/doc/guix.texi:10129
  15711. msgid "Same as @code{ungexp}, but produces a reference to the @emph{native} build of @var{obj} when used in a cross compilation context."
  15712. msgstr ""
  15713. #. type: item
  15714. #: guix-git/doc/guix.texi:10130
  15715. #, no-wrap
  15716. msgid "#$output[:@var{output}]"
  15717. msgstr ""
  15718. #. type: itemx
  15719. #: guix-git/doc/guix.texi:10131
  15720. #, no-wrap
  15721. msgid "(ungexp output [@var{output}])"
  15722. msgstr ""
  15723. #. type: table
  15724. #: guix-git/doc/guix.texi:10134
  15725. msgid "Insert a reference to derivation output @var{output}, or to the main output when @var{output} is omitted."
  15726. msgstr ""
  15727. #. type: table
  15728. #: guix-git/doc/guix.texi:10136
  15729. msgid "This only makes sense for gexps passed to @code{gexp->derivation}."
  15730. msgstr ""
  15731. #. type: item
  15732. #: guix-git/doc/guix.texi:10137
  15733. #, no-wrap
  15734. msgid "#$@@@var{lst}"
  15735. msgstr ""
  15736. #. type: itemx
  15737. #: guix-git/doc/guix.texi:10138
  15738. #, no-wrap
  15739. msgid "(ungexp-splicing @var{lst})"
  15740. msgstr ""
  15741. #. type: table
  15742. #: guix-git/doc/guix.texi:10141
  15743. msgid "Like the above, but splices the contents of @var{lst} inside the containing list."
  15744. msgstr ""
  15745. #. type: item
  15746. #: guix-git/doc/guix.texi:10142
  15747. #, no-wrap
  15748. msgid "#+@@@var{lst}"
  15749. msgstr ""
  15750. #. type: itemx
  15751. #: guix-git/doc/guix.texi:10143
  15752. #, no-wrap
  15753. msgid "(ungexp-native-splicing @var{lst})"
  15754. msgstr ""
  15755. #. type: table
  15756. #: guix-git/doc/guix.texi:10146
  15757. msgid "Like the above, but refers to native builds of the objects listed in @var{lst}."
  15758. msgstr ""
  15759. #. type: deffn
  15760. #: guix-git/doc/guix.texi:10151
  15761. msgid "G-expressions created by @code{gexp} or @code{#~} are run-time objects of the @code{gexp?} type (see below)."
  15762. msgstr ""
  15763. #. type: deffn
  15764. #: guix-git/doc/guix.texi:10153
  15765. #, no-wrap
  15766. msgid "{Scheme Syntax} with-imported-modules @var{modules} @var{body}@dots{}"
  15767. msgstr ""
  15768. #. type: deffn
  15769. #: guix-git/doc/guix.texi:10156
  15770. msgid "Mark the gexps defined in @var{body}@dots{} as requiring @var{modules} in their execution environment."
  15771. msgstr ""
  15772. #. type: deffn
  15773. #: guix-git/doc/guix.texi:10160
  15774. 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:"
  15775. msgstr ""
  15776. #. type: lisp
  15777. #: guix-git/doc/guix.texi:10166
  15778. #, no-wrap
  15779. msgid ""
  15780. "`((guix build utils)\n"
  15781. " (guix gcrypt)\n"
  15782. " ((guix config) => ,(scheme-file \"config.scm\"\n"
  15783. " #~(define-module @dots{}))))\n"
  15784. msgstr ""
  15785. #. type: deffn
  15786. #: guix-git/doc/guix.texi:10171
  15787. 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."
  15788. msgstr ""
  15789. #. type: deffn
  15790. #: guix-git/doc/guix.texi:10175
  15791. 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{}."
  15792. msgstr ""
  15793. #. type: deffn
  15794. #: guix-git/doc/guix.texi:10177
  15795. #, no-wrap
  15796. msgid "{Scheme Syntax} with-extensions @var{extensions} @var{body}@dots{}"
  15797. msgstr ""
  15798. #. type: deffn
  15799. #: guix-git/doc/guix.texi:10182
  15800. 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."
  15801. msgstr ""
  15802. #. type: deffn
  15803. #: guix-git/doc/guix.texi:10187
  15804. 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{}."
  15805. msgstr ""
  15806. #. type: deffn
  15807. #: guix-git/doc/guix.texi:10189
  15808. #, no-wrap
  15809. msgid "{Scheme Procedure} gexp? @var{obj}"
  15810. msgstr ""
  15811. #. type: deffn
  15812. #: guix-git/doc/guix.texi:10191
  15813. msgid "Return @code{#t} if @var{obj} is a G-expression."
  15814. msgstr ""
  15815. #. type: Plain text
  15816. #: guix-git/doc/guix.texi:10197
  15817. 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)."
  15818. msgstr ""
  15819. #. type: deffn
  15820. #: guix-git/doc/guix.texi:10198
  15821. #, no-wrap
  15822. msgid "{Monadic Procedure} gexp->derivation @var{name} @var{exp} @"
  15823. msgstr ""
  15824. #. type: deffn
  15825. #: guix-git/doc/guix.texi:10216
  15826. 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}."
  15827. msgstr ""
  15828. #. type: deffn
  15829. #: guix-git/doc/guix.texi:10224
  15830. 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))}."
  15831. msgstr ""
  15832. #. type: deffn
  15833. #: guix-git/doc/guix.texi:10227
  15834. 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\"}."
  15835. msgstr ""
  15836. #. type: deffn
  15837. #: guix-git/doc/guix.texi:10230
  15838. msgid "@var{graft?} determines whether packages referred to by @var{exp} should be grafted when applicable."
  15839. msgstr ""
  15840. #. type: deffn
  15841. #: guix-git/doc/guix.texi:10233
  15842. msgid "When @var{references-graphs} is true, it must be a list of tuples of one of the following forms:"
  15843. msgstr ""
  15844. #. type: example
  15845. #: guix-git/doc/guix.texi:10240
  15846. #, no-wrap
  15847. msgid ""
  15848. "(@var{file-name} @var{package})\n"
  15849. "(@var{file-name} @var{package} @var{output})\n"
  15850. "(@var{file-name} @var{derivation})\n"
  15851. "(@var{file-name} @var{derivation} @var{output})\n"
  15852. "(@var{file-name} @var{store-item})\n"
  15853. msgstr ""
  15854. #. type: deffn
  15855. #: guix-git/doc/guix.texi:10246
  15856. 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."
  15857. msgstr ""
  15858. #. type: deffn
  15859. #: guix-git/doc/guix.texi:10252
  15860. 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."
  15861. msgstr ""
  15862. #. type: deffn
  15863. #: guix-git/doc/guix.texi:10255
  15864. msgid "@var{deprecation-warnings} determines whether to show deprecation warnings while compiling modules. It can be @code{#f}, @code{#t}, or @code{'detailed}."
  15865. msgstr ""
  15866. #. type: deffn
  15867. #: guix-git/doc/guix.texi:10257
  15868. msgid "The other arguments are as for @code{derivation} (@pxref{Derivations})."
  15869. msgstr ""
  15870. #. type: cindex
  15871. #: guix-git/doc/guix.texi:10259
  15872. #, no-wrap
  15873. msgid "file-like objects"
  15874. msgstr ""
  15875. #. type: Plain text
  15876. #: guix-git/doc/guix.texi:10264
  15877. 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:"
  15878. msgstr ""
  15879. #. type: lisp
  15880. #: guix-git/doc/guix.texi:10268
  15881. #, no-wrap
  15882. msgid ""
  15883. "#~(system* #$(file-append glibc \"/sbin/nscd\") \"-f\"\n"
  15884. " #$(local-file \"/tmp/my-nscd.conf\"))\n"
  15885. msgstr ""
  15886. #. type: Plain text
  15887. #: guix-git/doc/guix.texi:10277
  15888. 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."
  15889. msgstr ""
  15890. #. type: deffn
  15891. #: guix-git/doc/guix.texi:10278
  15892. #, no-wrap
  15893. msgid "{Scheme Procedure} local-file @var{file} [@var{name}] @"
  15894. msgstr ""
  15895. #. type: deffn
  15896. #: guix-git/doc/guix.texi:10287
  15897. 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}."
  15898. msgstr ""
  15899. #. type: deffn
  15900. #: guix-git/doc/guix.texi:10299
  15901. msgid "This is the declarative counterpart of the @code{interned-file} monadic procedure (@pxref{The Store Monad, @code{interned-file}})."
  15902. msgstr ""
  15903. #. type: deffn
  15904. #: guix-git/doc/guix.texi:10301
  15905. #, no-wrap
  15906. msgid "{Scheme Procedure} plain-file @var{name} @var{content}"
  15907. msgstr ""
  15908. #. type: deffn
  15909. #: guix-git/doc/guix.texi:10304
  15910. 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."
  15911. msgstr ""
  15912. #. type: deffn
  15913. #: guix-git/doc/guix.texi:10306
  15914. msgid "This is the declarative counterpart of @code{text-file}."
  15915. msgstr ""
  15916. #. type: deffn
  15917. #: guix-git/doc/guix.texi:10308
  15918. #, no-wrap
  15919. msgid "{Scheme Procedure} computed-file @var{name} @var{gexp} @"
  15920. msgstr ""
  15921. #. type: deffn
  15922. #: guix-git/doc/guix.texi:10315
  15923. 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}."
  15924. msgstr ""
  15925. #. type: deffn
  15926. #: guix-git/doc/guix.texi:10317
  15927. msgid "This is the declarative counterpart of @code{gexp->derivation}."
  15928. msgstr ""
  15929. #. type: deffn
  15930. #: guix-git/doc/guix.texi:10319
  15931. #, no-wrap
  15932. msgid "{Monadic Procedure} gexp->script @var{name} @var{exp} @"
  15933. msgstr ""
  15934. #. type: deffn
  15935. #: guix-git/doc/guix.texi:10325
  15936. 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}."
  15937. msgstr ""
  15938. #. type: deffn
  15939. #: guix-git/doc/guix.texi:10328
  15940. msgid "The example below builds a script that simply invokes the @command{ls} command:"
  15941. msgstr ""
  15942. #. type: lisp
  15943. #: guix-git/doc/guix.texi:10331
  15944. #, no-wrap
  15945. msgid ""
  15946. "(use-modules (guix gexp) (gnu packages base))\n"
  15947. "\n"
  15948. msgstr ""
  15949. #. type: lisp
  15950. #: guix-git/doc/guix.texi:10335
  15951. #, no-wrap
  15952. msgid ""
  15953. "(gexp->script \"list-files\"\n"
  15954. " #~(execl #$(file-append coreutils \"/bin/ls\")\n"
  15955. " \"ls\"))\n"
  15956. msgstr ""
  15957. #. type: deffn
  15958. #: guix-git/doc/guix.texi:10340
  15959. 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:"
  15960. msgstr ""
  15961. #. type: example
  15962. #: guix-git/doc/guix.texi:10345
  15963. #, no-wrap
  15964. msgid ""
  15965. "#!/gnu/store/@dots{}-guile-2.0.11/bin/guile -ds\n"
  15966. "!#\n"
  15967. "(execl \"/gnu/store/@dots{}-coreutils-8.22\"/bin/ls\" \"ls\")\n"
  15968. msgstr ""
  15969. #. type: deffn
  15970. #: guix-git/doc/guix.texi:10348
  15971. #, no-wrap
  15972. msgid "{Scheme Procedure} program-file @var{name} @var{exp} @"
  15973. msgstr ""
  15974. #. type: deffn
  15975. #: guix-git/doc/guix.texi:10353
  15976. 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}."
  15977. msgstr ""
  15978. #. type: deffn
  15979. #: guix-git/doc/guix.texi:10355
  15980. msgid "This is the declarative counterpart of @code{gexp->script}."
  15981. msgstr ""
  15982. #. type: deffn
  15983. #: guix-git/doc/guix.texi:10357
  15984. #, no-wrap
  15985. msgid "{Monadic Procedure} gexp->file @var{name} @var{exp} @"
  15986. msgstr ""
  15987. #. type: deffn
  15988. #: guix-git/doc/guix.texi:10364
  15989. 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."
  15990. msgstr ""
  15991. #. type: deffn
  15992. #: guix-git/doc/guix.texi:10369
  15993. 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}."
  15994. msgstr ""
  15995. #. type: deffn
  15996. #: guix-git/doc/guix.texi:10372
  15997. msgid "The resulting file holds references to all the dependencies of @var{exp} or a subset thereof."
  15998. msgstr ""
  15999. #. type: deffn
  16000. #: guix-git/doc/guix.texi:10374
  16001. #, no-wrap
  16002. msgid "{Scheme Procedure} scheme-file @var{name} @var{exp} @"
  16003. msgstr ""
  16004. #. type: deffn
  16005. #: guix-git/doc/guix.texi:10378
  16006. msgid "[#:splice? #f] [#:set-load-path? #t] Return an object representing the Scheme file @var{name} that contains @var{exp}."
  16007. msgstr ""
  16008. #. type: deffn
  16009. #: guix-git/doc/guix.texi:10380
  16010. msgid "This is the declarative counterpart of @code{gexp->file}."
  16011. msgstr ""
  16012. #. type: deffn
  16013. #: guix-git/doc/guix.texi:10382
  16014. #, no-wrap
  16015. msgid "{Monadic Procedure} text-file* @var{name} @var{text} @dots{}"
  16016. msgstr ""
  16017. #. type: deffn
  16018. #: guix-git/doc/guix.texi:10388
  16019. 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."
  16020. msgstr ""
  16021. #. type: deffn
  16022. #: guix-git/doc/guix.texi:10393
  16023. 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:"
  16024. msgstr ""
  16025. #. type: lisp
  16026. #: guix-git/doc/guix.texi:10401
  16027. #, no-wrap
  16028. msgid ""
  16029. "(define (profile.sh)\n"
  16030. " ;; Return the name of a shell script in the store that\n"
  16031. " ;; initializes the 'PATH' environment variable.\n"
  16032. " (text-file* \"profile.sh\"\n"
  16033. " \"export PATH=\" coreutils \"/bin:\"\n"
  16034. " grep \"/bin:\" sed \"/bin\\n\"))\n"
  16035. msgstr ""
  16036. #. type: deffn
  16037. #: guix-git/doc/guix.texi:10406
  16038. 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."
  16039. msgstr ""
  16040. #. type: deffn
  16041. #: guix-git/doc/guix.texi:10408
  16042. #, no-wrap
  16043. msgid "{Scheme Procedure} mixed-text-file @var{name} @var{text} @dots{}"
  16044. msgstr ""
  16045. #. type: deffn
  16046. #: guix-git/doc/guix.texi:10412
  16047. 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:"
  16048. msgstr ""
  16049. #. type: lisp
  16050. #: guix-git/doc/guix.texi:10416
  16051. #, no-wrap
  16052. msgid ""
  16053. "(mixed-text-file \"profile\"\n"
  16054. " \"export PATH=\" coreutils \"/bin:\" grep \"/bin\")\n"
  16055. msgstr ""
  16056. #. type: deffn
  16057. #: guix-git/doc/guix.texi:10419
  16058. msgid "This is the declarative counterpart of @code{text-file*}."
  16059. msgstr ""
  16060. #. type: deffn
  16061. #: guix-git/doc/guix.texi:10421
  16062. #, no-wrap
  16063. msgid "{Scheme Procedure} file-union @var{name} @var{files}"
  16064. msgstr ""
  16065. #. type: deffn
  16066. #: guix-git/doc/guix.texi:10426
  16067. 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:"
  16068. msgstr ""
  16069. #. type: lisp
  16070. #: guix-git/doc/guix.texi:10433
  16071. #, no-wrap
  16072. msgid ""
  16073. "(file-union \"etc\"\n"
  16074. " `((\"hosts\" ,(plain-file \"hosts\"\n"
  16075. " \"127.0.0.1 localhost\"))\n"
  16076. " (\"bashrc\" ,(plain-file \"bashrc\"\n"
  16077. " \"alias ls='ls --color=auto'\"))))\n"
  16078. msgstr ""
  16079. #. type: deffn
  16080. #: guix-git/doc/guix.texi:10436
  16081. msgid "This yields an @code{etc} directory containing these two files."
  16082. msgstr ""
  16083. #. type: deffn
  16084. #: guix-git/doc/guix.texi:10438
  16085. #, no-wrap
  16086. msgid "{Scheme Procedure} directory-union @var{name} @var{things}"
  16087. msgstr ""
  16088. #. type: deffn
  16089. #: guix-git/doc/guix.texi:10441
  16090. 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:"
  16091. msgstr ""
  16092. #. type: lisp
  16093. #: guix-git/doc/guix.texi:10444
  16094. #, no-wrap
  16095. msgid "(directory-union \"guile+emacs\" (list guile emacs))\n"
  16096. msgstr ""
  16097. #. type: deffn
  16098. #: guix-git/doc/guix.texi:10447
  16099. msgid "yields a directory that is the union of the @code{guile} and @code{emacs} packages."
  16100. msgstr ""
  16101. #. type: deffn
  16102. #: guix-git/doc/guix.texi:10449
  16103. #, no-wrap
  16104. msgid "{Scheme Procedure} file-append @var{obj} @var{suffix} @dots{}"
  16105. msgstr ""
  16106. #. type: deffn
  16107. #: guix-git/doc/guix.texi:10453
  16108. 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."
  16109. msgstr ""
  16110. #. type: deffn
  16111. #: guix-git/doc/guix.texi:10455
  16112. msgid "As an example, consider this gexp:"
  16113. msgstr ""
  16114. #. type: lisp
  16115. #: guix-git/doc/guix.texi:10460
  16116. #, no-wrap
  16117. msgid ""
  16118. "(gexp->script \"run-uname\"\n"
  16119. " #~(system* #$(file-append coreutils\n"
  16120. " \"/bin/uname\")))\n"
  16121. msgstr ""
  16122. #. type: deffn
  16123. #: guix-git/doc/guix.texi:10463
  16124. msgid "The same effect could be achieved with:"
  16125. msgstr ""
  16126. #. type: lisp
  16127. #: guix-git/doc/guix.texi:10468
  16128. #, no-wrap
  16129. msgid ""
  16130. "(gexp->script \"run-uname\"\n"
  16131. " #~(system* (string-append #$coreutils\n"
  16132. " \"/bin/uname\")))\n"
  16133. msgstr ""
  16134. #. type: deffn
  16135. #: guix-git/doc/guix.texi:10474
  16136. 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}."
  16137. msgstr ""
  16138. #. type: deffn
  16139. #: guix-git/doc/guix.texi:10476
  16140. #, no-wrap
  16141. msgid "{Scheme Syntax} let-system @var{system} @var{body}@dots{}"
  16142. msgstr ""
  16143. #. type: deffnx
  16144. #: guix-git/doc/guix.texi:10477
  16145. #, no-wrap
  16146. msgid "{Scheme Syntax} let-system (@var{system} @var{target}) @var{body}@dots{}"
  16147. msgstr ""
  16148. #. type: deffn
  16149. #: guix-git/doc/guix.texi:10480
  16150. #, fuzzy
  16151. msgid "Bind @var{system} to the currently targeted system---e.g., @code{\"x86_64-linux\"}---within @var{body}."
  16152. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  16153. #. type: deffn
  16154. #: guix-git/doc/guix.texi:10485
  16155. 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."
  16156. msgstr ""
  16157. #. type: deffn
  16158. #: guix-git/doc/guix.texi:10488
  16159. 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:"
  16160. msgstr ""
  16161. #. type: lisp
  16162. #: guix-git/doc/guix.texi:10499
  16163. #, no-wrap
  16164. msgid ""
  16165. "#~(system*\n"
  16166. " #+(let-system system\n"
  16167. " (cond ((string-prefix? \"armhf-\" system)\n"
  16168. " (file-append qemu \"/bin/qemu-system-arm\"))\n"
  16169. " ((string-prefix? \"x86_64-\" system)\n"
  16170. " (file-append qemu \"/bin/qemu-system-x86_64\"))\n"
  16171. " (else\n"
  16172. " (error \"dunno!\"))))\n"
  16173. " \"-net\" \"user\" #$image)\n"
  16174. msgstr ""
  16175. #. type: deffn
  16176. #: guix-git/doc/guix.texi:10502
  16177. #, no-wrap
  16178. msgid "{Scheme Syntax} with-parameters ((@var{parameter} @var{value}) @dots{}) @var{exp}"
  16179. msgstr ""
  16180. #. type: deffn
  16181. #: guix-git/doc/guix.texi:10508
  16182. 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."
  16183. msgstr ""
  16184. #. type: deffn
  16185. #: guix-git/doc/guix.texi:10511
  16186. msgid "A typical use of @code{with-parameters} is to force the system in effect for a given object:"
  16187. msgstr ""
  16188. #. type: lisp
  16189. #: guix-git/doc/guix.texi:10515
  16190. #, no-wrap
  16191. msgid ""
  16192. "(with-parameters ((%current-system \"i686-linux\"))\n"
  16193. " coreutils)\n"
  16194. msgstr ""
  16195. #. type: deffn
  16196. #: guix-git/doc/guix.texi:10519
  16197. msgid "The example above returns an object that corresponds to the i686 build of Coreutils, regardless of the current value of @code{%current-system}."
  16198. msgstr ""
  16199. #. type: Plain text
  16200. #: guix-git/doc/guix.texi:10526
  16201. 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."
  16202. msgstr ""
  16203. #. type: Plain text
  16204. #: guix-git/doc/guix.texi:10532
  16205. 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."
  16206. msgstr ""
  16207. #. type: deffn
  16208. #: guix-git/doc/guix.texi:10533
  16209. #, no-wrap
  16210. msgid "{Monadic Procedure} lower-object @var{obj} [@var{system}] @"
  16211. msgstr ""
  16212. #. type: deffn
  16213. #: guix-git/doc/guix.texi:10539
  16214. 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>}."
  16215. msgstr ""
  16216. #. type: deffn
  16217. #: guix-git/doc/guix.texi:10541
  16218. #, no-wrap
  16219. msgid "{Procedure} gexp->approximate-sexp @var{gexp}"
  16220. msgstr ""
  16221. #. type: deffn
  16222. #: guix-git/doc/guix.texi:10549
  16223. 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."
  16224. msgstr ""
  16225. #. type: section
  16226. #: guix-git/doc/guix.texi:10552
  16227. #, no-wrap
  16228. msgid "Invoking @command{guix repl}"
  16229. msgstr ""
  16230. #. type: cindex
  16231. #: guix-git/doc/guix.texi:10554
  16232. #, fuzzy, no-wrap
  16233. msgid "REPL, read-eval-print loop, script"
  16234. msgstr "read-eval-print loop"
  16235. #. type: Plain text
  16236. #: guix-git/doc/guix.texi:10564
  16237. 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."
  16238. msgstr ""
  16239. #. type: example
  16240. #: guix-git/doc/guix.texi:10569
  16241. #, no-wrap
  16242. msgid "guix repl @var{options} [@var{file} @var{args}]\n"
  16243. msgstr ""
  16244. #. type: Plain text
  16245. #: guix-git/doc/guix.texi:10573
  16246. msgid "When a @var{file} argument is provided, @var{file} is executed as a Guile scripts:"
  16247. msgstr ""
  16248. #. type: example
  16249. #: guix-git/doc/guix.texi:10576
  16250. #, no-wrap
  16251. msgid "guix repl my-script.scm\n"
  16252. msgstr ""
  16253. #. type: Plain text
  16254. #: guix-git/doc/guix.texi:10580
  16255. msgid "To pass arguments to the script, use @code{--} to prevent them from being interpreted as arguments to @command{guix repl} itself:"
  16256. msgstr ""
  16257. #. type: example
  16258. #: guix-git/doc/guix.texi:10583
  16259. #, no-wrap
  16260. msgid "guix repl -- my-script.scm --input=foo.txt\n"
  16261. msgstr ""
  16262. #. type: Plain text
  16263. #: guix-git/doc/guix.texi:10588
  16264. 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:"
  16265. msgstr ""
  16266. #. type: example
  16267. #: guix-git/doc/guix.texi:10592
  16268. #, no-wrap
  16269. msgid ""
  16270. "@code{#!/usr/bin/env -S guix repl --}\n"
  16271. "@code{!#}\n"
  16272. msgstr ""
  16273. #. type: Plain text
  16274. #: guix-git/doc/guix.texi:10595
  16275. msgid "Without a file name argument, a Guile REPL is started:"
  16276. msgstr ""
  16277. #. type: example
  16278. #: guix-git/doc/guix.texi:10601
  16279. #, no-wrap
  16280. msgid ""
  16281. "$ guix repl\n"
  16282. "scheme@@(guile-user)> ,use (gnu packages base)\n"
  16283. "scheme@@(guile-user)> coreutils\n"
  16284. "$1 = #<package coreutils@@8.29 gnu/packages/base.scm:327 3e28300>\n"
  16285. msgstr ""
  16286. #. type: Plain text
  16287. #: guix-git/doc/guix.texi:10608
  16288. 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."
  16289. msgstr ""
  16290. #. type: Plain text
  16291. #: guix-git/doc/guix.texi:10610
  16292. msgid "The available options are as follows:"
  16293. msgstr ""
  16294. #. type: item
  16295. #: guix-git/doc/guix.texi:10612 guix-git/doc/guix.texi:13105
  16296. #, no-wrap
  16297. msgid "--type=@var{type}"
  16298. msgstr ""
  16299. #. type: itemx
  16300. #: guix-git/doc/guix.texi:10613 guix-git/doc/guix.texi:13106
  16301. #: guix-git/doc/guix.texi:34729
  16302. #, no-wrap
  16303. msgid "-t @var{type}"
  16304. msgstr ""
  16305. #. type: table
  16306. #: guix-git/doc/guix.texi:10615
  16307. msgid "Start a REPL of the given @var{TYPE}, which can be one of the following:"
  16308. msgstr ""
  16309. #. type: item
  16310. #: guix-git/doc/guix.texi:10617
  16311. #, no-wrap
  16312. msgid "guile"
  16313. msgstr ""
  16314. #. type: table
  16315. #: guix-git/doc/guix.texi:10619
  16316. msgid "This is default, and it spawns a standard full-featured Guile REPL."
  16317. msgstr ""
  16318. #. type: item
  16319. #: guix-git/doc/guix.texi:10619
  16320. #, no-wrap
  16321. msgid "machine"
  16322. msgstr ""
  16323. #. type: table
  16324. #: guix-git/doc/guix.texi:10622
  16325. msgid "Spawn a REPL that uses the machine-readable protocol. This is the protocol that the @code{(guix inferior)} module speaks."
  16326. msgstr ""
  16327. #. type: table
  16328. #: guix-git/doc/guix.texi:10628
  16329. 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:"
  16330. msgstr ""
  16331. #. type: item
  16332. #: guix-git/doc/guix.texi:10630
  16333. #, no-wrap
  16334. msgid "--listen=tcp:37146"
  16335. msgstr ""
  16336. #. type: table
  16337. #: guix-git/doc/guix.texi:10632
  16338. msgid "Accept connections on localhost on port 37146."
  16339. msgstr ""
  16340. #. type: item
  16341. #: guix-git/doc/guix.texi:10633
  16342. #, no-wrap
  16343. msgid "--listen=unix:/tmp/socket"
  16344. msgstr ""
  16345. #. type: table
  16346. #: guix-git/doc/guix.texi:10635
  16347. msgid "Accept connections on the Unix-domain socket @file{/tmp/socket}."
  16348. msgstr ""
  16349. #. type: item
  16350. #: guix-git/doc/guix.texi:10637 guix-git/doc/guix.texi:10741
  16351. #: guix-git/doc/guix.texi:12560 guix-git/doc/guix.texi:12740
  16352. #: guix-git/doc/guix.texi:12885 guix-git/doc/guix.texi:13153
  16353. #, no-wrap
  16354. msgid "--load-path=@var{directory}"
  16355. msgstr ""
  16356. #. type: itemx
  16357. #: guix-git/doc/guix.texi:10638 guix-git/doc/guix.texi:10742
  16358. #: guix-git/doc/guix.texi:12741 guix-git/doc/guix.texi:12886
  16359. #: guix-git/doc/guix.texi:13154
  16360. #, no-wrap
  16361. msgid "-L @var{directory}"
  16362. msgstr ""
  16363. #. type: table
  16364. #: guix-git/doc/guix.texi:10641 guix-git/doc/guix.texi:10745
  16365. #: guix-git/doc/guix.texi:12563 guix-git/doc/guix.texi:12744
  16366. #: guix-git/doc/guix.texi:12889 guix-git/doc/guix.texi:13157
  16367. msgid "Add @var{directory} to the front of the package module search path (@pxref{Package Modules})."
  16368. msgstr ""
  16369. #. type: table
  16370. #: guix-git/doc/guix.texi:10644
  16371. msgid "This allows users to define their own packages and make them visible to the script or REPL."
  16372. msgstr ""
  16373. #. type: itemx
  16374. #: guix-git/doc/guix.texi:10645 guix-git/doc/guix.texi:11205
  16375. #, no-wrap
  16376. msgid "-q"
  16377. msgstr ""
  16378. #. type: table
  16379. #: guix-git/doc/guix.texi:10648
  16380. msgid "Inhibit loading of the @file{~/.guile} file. By default, that configuration file is loaded when spawning a @code{guile} REPL."
  16381. msgstr ""
  16382. #. type: Plain text
  16383. #: guix-git/doc/guix.texi:10658
  16384. 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."
  16385. msgstr ""
  16386. #. type: cindex
  16387. #: guix-git/doc/guix.texi:10680
  16388. #, no-wrap
  16389. msgid "package building"
  16390. msgstr ""
  16391. #. type: command{#1}
  16392. #: guix-git/doc/guix.texi:10681
  16393. #, no-wrap
  16394. msgid "guix build"
  16395. msgstr ""
  16396. #. type: Plain text
  16397. #: guix-git/doc/guix.texi:10687
  16398. 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."
  16399. msgstr ""
  16400. #. type: example
  16401. #: guix-git/doc/guix.texi:10692
  16402. #, no-wrap
  16403. msgid "guix build @var{options} @var{package-or-derivation}@dots{}\n"
  16404. msgstr ""
  16405. #. type: Plain text
  16406. #: guix-git/doc/guix.texi:10697
  16407. 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:"
  16408. msgstr ""
  16409. #. type: example
  16410. #: guix-git/doc/guix.texi:10700
  16411. #, no-wrap
  16412. msgid "guix build emacs guile\n"
  16413. msgstr ""
  16414. #. type: Plain text
  16415. #: guix-git/doc/guix.texi:10703
  16416. msgid "Similarly, the following command builds all the available packages:"
  16417. msgstr ""
  16418. #. type: example
  16419. #: guix-git/doc/guix.texi:10707
  16420. #, no-wrap
  16421. msgid ""
  16422. "guix build --quiet --keep-going \\\n"
  16423. " $(guix package -A | awk '@{ print $1 \"@@\" $2 @}')\n"
  16424. msgstr ""
  16425. #. type: Plain text
  16426. #: guix-git/doc/guix.texi:10715
  16427. 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})."
  16428. msgstr ""
  16429. #. type: Plain text
  16430. #: guix-git/doc/guix.texi:10720
  16431. 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."
  16432. msgstr ""
  16433. #. type: Plain text
  16434. #: guix-git/doc/guix.texi:10723
  16435. msgid "There may be zero or more @var{options}. The available options are described in the subsections below."
  16436. msgstr ""
  16437. #. type: Plain text
  16438. #: guix-git/doc/guix.texi:10738
  16439. 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:"
  16440. msgstr ""
  16441. #. type: table
  16442. #: guix-git/doc/guix.texi:10748 guix-git/doc/guix.texi:12566
  16443. #: guix-git/doc/guix.texi:12747 guix-git/doc/guix.texi:12892
  16444. #: guix-git/doc/guix.texi:13160
  16445. msgid "This allows users to define their own packages and make them visible to the command-line tools."
  16446. msgstr ""
  16447. #. type: item
  16448. #: guix-git/doc/guix.texi:10749
  16449. #, no-wrap
  16450. msgid "--keep-failed"
  16451. msgstr ""
  16452. #. type: itemx
  16453. #: guix-git/doc/guix.texi:10750
  16454. #, no-wrap
  16455. msgid "-K"
  16456. msgstr ""
  16457. #. type: table
  16458. #: guix-git/doc/guix.texi:10756
  16459. 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."
  16460. msgstr ""
  16461. #. type: table
  16462. #: guix-git/doc/guix.texi:10760
  16463. 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})."
  16464. msgstr ""
  16465. #. type: item
  16466. #: guix-git/doc/guix.texi:10761
  16467. #, no-wrap
  16468. msgid "--keep-going"
  16469. msgstr ""
  16470. #. type: itemx
  16471. #: guix-git/doc/guix.texi:10762
  16472. #, no-wrap
  16473. msgid "-k"
  16474. msgstr ""
  16475. #. type: table
  16476. #: guix-git/doc/guix.texi:10765
  16477. msgid "Keep going when some of the derivations fail to build; return only once all the builds have either completed or failed."
  16478. msgstr ""
  16479. #. type: table
  16480. #: guix-git/doc/guix.texi:10768
  16481. msgid "The default behavior is to stop as soon as one of the specified derivations has failed."
  16482. msgstr ""
  16483. #. type: table
  16484. #: guix-git/doc/guix.texi:10772
  16485. msgid "Do not build the derivations."
  16486. msgstr ""
  16487. #. type: anchor{#1}
  16488. #: guix-git/doc/guix.texi:10774
  16489. msgid "fallback-option"
  16490. msgstr ""
  16491. #. type: item
  16492. #: guix-git/doc/guix.texi:10774
  16493. #, no-wrap
  16494. msgid "--fallback"
  16495. msgstr ""
  16496. #. type: table
  16497. #: guix-git/doc/guix.texi:10777
  16498. msgid "When substituting a pre-built binary fails, fall back to building packages locally (@pxref{Substitution Failure})."
  16499. msgstr ""
  16500. #. type: anchor{#1}
  16501. #: guix-git/doc/guix.texi:10783
  16502. msgid "client-substitute-urls"
  16503. msgstr ""
  16504. #. type: table
  16505. #: guix-git/doc/guix.texi:10783
  16506. 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})."
  16507. msgstr ""
  16508. #. type: table
  16509. #: guix-git/doc/guix.texi:10787
  16510. 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})."
  16511. msgstr ""
  16512. #. type: table
  16513. #: guix-git/doc/guix.texi:10790
  16514. msgid "When @var{urls} is the empty string, substitutes are effectively disabled."
  16515. msgstr ""
  16516. #. type: item
  16517. #: guix-git/doc/guix.texi:10796
  16518. #, no-wrap
  16519. msgid "--no-grafts"
  16520. msgstr ""
  16521. #. type: table
  16522. #: guix-git/doc/guix.texi:10800
  16523. 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."
  16524. msgstr ""
  16525. #. type: item
  16526. #: guix-git/doc/guix.texi:10801
  16527. #, no-wrap
  16528. msgid "--rounds=@var{n}"
  16529. msgstr ""
  16530. #. type: table
  16531. #: guix-git/doc/guix.texi:10804
  16532. msgid "Build each derivation @var{n} times in a row, and raise an error if consecutive build results are not bit-for-bit identical."
  16533. msgstr ""
  16534. #. type: table
  16535. #: guix-git/doc/guix.texi:10809
  16536. 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."
  16537. msgstr ""
  16538. #. type: table
  16539. #: guix-git/doc/guix.texi:10825
  16540. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--max-silent-time}})."
  16541. msgstr ""
  16542. #. type: table
  16543. #: guix-git/doc/guix.texi:10832
  16544. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--timeout}})."
  16545. msgstr ""
  16546. #. type: cindex
  16547. #: guix-git/doc/guix.texi:10835
  16548. #, no-wrap
  16549. msgid "verbosity, of the command-line tools"
  16550. msgstr ""
  16551. #. type: cindex
  16552. #: guix-git/doc/guix.texi:10836
  16553. #, no-wrap
  16554. msgid "build logs, verbosity"
  16555. msgstr ""
  16556. #. type: item
  16557. #: guix-git/doc/guix.texi:10837
  16558. #, no-wrap
  16559. msgid "-v @var{level}"
  16560. msgstr ""
  16561. #. type: itemx
  16562. #: guix-git/doc/guix.texi:10838
  16563. #, no-wrap
  16564. msgid "--verbosity=@var{level}"
  16565. msgstr ""
  16566. #. type: table
  16567. #: guix-git/doc/guix.texi:10843
  16568. 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."
  16569. msgstr ""
  16570. #. type: table
  16571. #: guix-git/doc/guix.texi:10848
  16572. 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."
  16573. msgstr ""
  16574. #. type: table
  16575. #: guix-git/doc/guix.texi:10854
  16576. 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."
  16577. msgstr ""
  16578. #. type: item
  16579. #: guix-git/doc/guix.texi:10855
  16580. #, no-wrap
  16581. msgid "--debug=@var{level}"
  16582. msgstr ""
  16583. #. type: table
  16584. #: guix-git/doc/guix.texi:10859
  16585. 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."
  16586. msgstr ""
  16587. #. type: Plain text
  16588. #: guix-git/doc/guix.texi:10866
  16589. 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."
  16590. msgstr ""
  16591. #. type: Plain text
  16592. #: guix-git/doc/guix.texi:10870
  16593. 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."
  16594. msgstr ""
  16595. #. type: defvr
  16596. #: guix-git/doc/guix.texi:10871
  16597. #, no-wrap
  16598. msgid "{Environment Variable} GUIX_BUILD_OPTIONS"
  16599. msgstr ""
  16600. #. type: defvr
  16601. #: guix-git/doc/guix.texi:10876
  16602. 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:"
  16603. msgstr ""
  16604. #. type: example
  16605. #: guix-git/doc/guix.texi:10879
  16606. #, no-wrap
  16607. msgid "$ export GUIX_BUILD_OPTIONS=\"--no-substitutes -c 2 -L /foo/bar\"\n"
  16608. msgstr ""
  16609. #. type: defvr
  16610. #: guix-git/doc/guix.texi:10883
  16611. msgid "These options are parsed independently, and the result is appended to the parsed command-line options."
  16612. msgstr ""
  16613. #. type: cindex
  16614. #: guix-git/doc/guix.texi:10889
  16615. #, no-wrap
  16616. msgid "package variants"
  16617. msgstr ""
  16618. #. type: Plain text
  16619. #: guix-git/doc/guix.texi:10897
  16620. 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})."
  16621. msgstr ""
  16622. #. type: Plain text
  16623. #: guix-git/doc/guix.texi:10901
  16624. 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."
  16625. msgstr ""
  16626. #. type: Plain text
  16627. #: guix-git/doc/guix.texi:10906
  16628. 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)."
  16629. msgstr ""
  16630. #. type: item
  16631. #: guix-git/doc/guix.texi:10909
  16632. #, no-wrap
  16633. msgid "--with-source=@var{source}"
  16634. msgstr ""
  16635. #. type: itemx
  16636. #: guix-git/doc/guix.texi:10910
  16637. #, no-wrap
  16638. msgid "--with-source=@var{package}=@var{source}"
  16639. msgstr ""
  16640. #. type: itemx
  16641. #: guix-git/doc/guix.texi:10911
  16642. #, no-wrap
  16643. msgid "--with-source=@var{package}@@@var{version}=@var{source}"
  16644. msgstr ""
  16645. #. type: table
  16646. #: guix-git/doc/guix.texi:10916
  16647. 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})."
  16648. msgstr ""
  16649. #. type: table
  16650. #: guix-git/doc/guix.texi:10922
  16651. 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}."
  16652. msgstr ""
  16653. #. type: table
  16654. #: guix-git/doc/guix.texi:10925
  16655. 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}."
  16656. msgstr ""
  16657. #. type: table
  16658. #: guix-git/doc/guix.texi:10930
  16659. 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:"
  16660. msgstr ""
  16661. #. type: example
  16662. #: guix-git/doc/guix.texi:10933
  16663. #, no-wrap
  16664. msgid "guix build ed --with-source=mirror://gnu/ed/ed-1.7.tar.gz\n"
  16665. msgstr ""
  16666. #. type: table
  16667. #: guix-git/doc/guix.texi:10937
  16668. msgid "As a developer, @option{--with-source} makes it easy to test release candidates:"
  16669. msgstr ""
  16670. #. type: example
  16671. #: guix-git/doc/guix.texi:10940
  16672. #, no-wrap
  16673. msgid "guix build guile --with-source=../guile-2.0.9.219-e1bb7.tar.xz\n"
  16674. msgstr ""
  16675. #. type: table
  16676. #: guix-git/doc/guix.texi:10943
  16677. msgid "@dots{} or to build from a checkout in a pristine environment:"
  16678. msgstr ""
  16679. #. type: example
  16680. #: guix-git/doc/guix.texi:10947
  16681. #, no-wrap
  16682. msgid ""
  16683. "$ git clone git://git.sv.gnu.org/guix.git\n"
  16684. "$ guix build guix --with-source=guix@@1.0=./guix\n"
  16685. msgstr ""
  16686. #. type: item
  16687. #: guix-git/doc/guix.texi:10949
  16688. #, no-wrap
  16689. msgid "--with-input=@var{package}=@var{replacement}"
  16690. msgstr ""
  16691. #. type: table
  16692. #: guix-git/doc/guix.texi:10954
  16693. 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}."
  16694. msgstr ""
  16695. #. type: table
  16696. #: guix-git/doc/guix.texi:10958
  16697. 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}:"
  16698. msgstr ""
  16699. #. type: example
  16700. #: guix-git/doc/guix.texi:10961
  16701. #, no-wrap
  16702. msgid "guix build --with-input=guile=guile@@2.0 guix\n"
  16703. msgstr ""
  16704. #. type: table
  16705. #: guix-git/doc/guix.texi:10966
  16706. 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}."
  16707. msgstr ""
  16708. #. type: table
  16709. #: guix-git/doc/guix.texi:10969
  16710. msgid "This is implemented using the @code{package-input-rewriting} Scheme procedure (@pxref{Defining Packages, @code{package-input-rewriting}})."
  16711. msgstr ""
  16712. #. type: item
  16713. #: guix-git/doc/guix.texi:10970
  16714. #, no-wrap
  16715. msgid "--with-graft=@var{package}=@var{replacement}"
  16716. msgstr ""
  16717. #. type: table
  16718. #: guix-git/doc/guix.texi:10976
  16719. 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."
  16720. msgstr ""
  16721. #. type: table
  16722. #: guix-git/doc/guix.texi:10980
  16723. 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:"
  16724. msgstr ""
  16725. #. type: example
  16726. #: guix-git/doc/guix.texi:10983
  16727. #, no-wrap
  16728. msgid "guix build --with-graft=gnutls=gnutls@@3.5.4 wget\n"
  16729. msgstr ""
  16730. #. type: table
  16731. #: guix-git/doc/guix.texi:10992
  16732. 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!"
  16733. msgstr ""
  16734. #. type: cindex
  16735. #: guix-git/doc/guix.texi:10993 guix-git/doc/guix.texi:36936
  16736. #, no-wrap
  16737. msgid "debugging info, rebuilding"
  16738. msgstr ""
  16739. #. type: item
  16740. #: guix-git/doc/guix.texi:10994
  16741. #, no-wrap
  16742. msgid "--with-debug-info=@var{package}"
  16743. msgstr ""
  16744. #. type: table
  16745. #: guix-git/doc/guix.texi:10999
  16746. 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})."
  16747. msgstr ""
  16748. #. type: table
  16749. #: guix-git/doc/guix.texi:11005
  16750. 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:"
  16751. msgstr ""
  16752. #. type: example
  16753. #: guix-git/doc/guix.texi:11008 guix-git/doc/guix.texi:36967
  16754. #, no-wrap
  16755. msgid "guix install inkscape --with-debug-info=glib\n"
  16756. msgstr ""
  16757. #. type: table
  16758. #: guix-git/doc/guix.texi:11012
  16759. msgid "Only GLib needs to be recompiled so this takes a reasonable amount of time. @xref{Installing Debugging Files}, for more info."
  16760. msgstr ""
  16761. #. type: quotation
  16762. #: guix-git/doc/guix.texi:11018
  16763. 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."
  16764. msgstr ""
  16765. #. type: quotation
  16766. #: guix-git/doc/guix.texi:11022
  16767. 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."
  16768. msgstr ""
  16769. #. type: cindex
  16770. #: guix-git/doc/guix.texi:11024
  16771. #, no-wrap
  16772. msgid "tool chain, changing the build tool chain of a package"
  16773. msgstr ""
  16774. #. type: item
  16775. #: guix-git/doc/guix.texi:11025
  16776. #, no-wrap
  16777. msgid "--with-c-toolchain=@var{package}=@var{toolchain}"
  16778. msgstr ""
  16779. #. type: table
  16780. #: guix-git/doc/guix.texi:11029
  16781. 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++."
  16782. msgstr ""
  16783. #. type: example
  16784. #: guix-git/doc/guix.texi:11036
  16785. #, no-wrap
  16786. msgid ""
  16787. "guix build octave-cli \\\n"
  16788. " --with-c-toolchain=fftw=gcc-toolchain@@10 \\\n"
  16789. " --with-c-toolchain=fftwf=gcc-toolchain@@10\n"
  16790. msgstr ""
  16791. #. type: table
  16792. #: guix-git/doc/guix.texi:11043
  16793. 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}."
  16794. msgstr ""
  16795. #. type: table
  16796. #: guix-git/doc/guix.texi:11047
  16797. 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:"
  16798. msgstr ""
  16799. #. type: example
  16800. #: guix-git/doc/guix.texi:11051
  16801. #, no-wrap
  16802. msgid ""
  16803. "guix build --with-c-toolchain=hwloc=clang-toolchain \\\n"
  16804. " intel-mpi-benchmarks\n"
  16805. msgstr ""
  16806. #. type: quotation
  16807. #: guix-git/doc/guix.texi:11060
  16808. 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."
  16809. msgstr ""
  16810. #. type: item
  16811. #: guix-git/doc/guix.texi:11062
  16812. #, no-wrap
  16813. msgid "--with-git-url=@var{package}=@var{url}"
  16814. msgstr ""
  16815. #. type: cindex
  16816. #: guix-git/doc/guix.texi:11063
  16817. #, no-wrap
  16818. msgid "Git, using the latest commit"
  16819. msgstr ""
  16820. #. type: cindex
  16821. #: guix-git/doc/guix.texi:11064
  16822. #, no-wrap
  16823. msgid "latest commit, building"
  16824. msgstr ""
  16825. #. type: table
  16826. #: guix-git/doc/guix.texi:11068
  16827. 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."
  16828. msgstr ""
  16829. #. type: table
  16830. #: guix-git/doc/guix.texi:11071
  16831. msgid "For example, the following command builds the NumPy Python library against the latest commit of the master branch of Python itself:"
  16832. msgstr ""
  16833. #. type: example
  16834. #: guix-git/doc/guix.texi:11075
  16835. #, no-wrap
  16836. msgid ""
  16837. "guix build python-numpy \\\n"
  16838. " --with-git-url=python=https://github.com/python/cpython\n"
  16839. msgstr ""
  16840. #. type: table
  16841. #: guix-git/doc/guix.texi:11079
  16842. msgid "This option can also be combined with @option{--with-branch} or @option{--with-commit} (see below)."
  16843. msgstr ""
  16844. #. type: cindex
  16845. #: guix-git/doc/guix.texi:11080 guix-git/doc/guix.texi:28413
  16846. #, no-wrap
  16847. msgid "continuous integration"
  16848. msgstr ""
  16849. #. type: table
  16850. #: guix-git/doc/guix.texi:11086
  16851. 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)."
  16852. msgstr ""
  16853. #. type: table
  16854. #: guix-git/doc/guix.texi:11090
  16855. 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."
  16856. msgstr ""
  16857. #. type: item
  16858. #: guix-git/doc/guix.texi:11091
  16859. #, no-wrap
  16860. msgid "--with-branch=@var{package}=@var{branch}"
  16861. msgstr ""
  16862. #. type: table
  16863. #: guix-git/doc/guix.texi:11097
  16864. 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."
  16865. msgstr ""
  16866. #. type: table
  16867. #: guix-git/doc/guix.texi:11102
  16868. 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:"
  16869. msgstr ""
  16870. #. type: example
  16871. #: guix-git/doc/guix.texi:11105
  16872. #, no-wrap
  16873. msgid "guix build --with-branch=guile-sqlite3=master cuirass\n"
  16874. msgstr ""
  16875. #. type: item
  16876. #: guix-git/doc/guix.texi:11107
  16877. #, no-wrap
  16878. msgid "--with-commit=@var{package}=@var{commit}"
  16879. msgstr ""
  16880. #. type: table
  16881. #: guix-git/doc/guix.texi:11112
  16882. 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}."
  16883. msgstr ""
  16884. #. type: item
  16885. #: guix-git/doc/guix.texi:11113
  16886. #, no-wrap
  16887. msgid "--with-patch=@var{package}=@var{file}"
  16888. msgstr ""
  16889. #. type: table
  16890. #: guix-git/doc/guix.texi:11120
  16891. 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})."
  16892. msgstr ""
  16893. #. type: table
  16894. #: guix-git/doc/guix.texi:11123
  16895. msgid "As an example, the command below rebuilds Coreutils with the GNU C Library (glibc) patched with the given patch:"
  16896. msgstr ""
  16897. #. type: example
  16898. #: guix-git/doc/guix.texi:11126
  16899. #, no-wrap
  16900. msgid "guix build coreutils --with-patch=glibc=./glibc-frob.patch\n"
  16901. msgstr ""
  16902. #. type: table
  16903. #: guix-git/doc/guix.texi:11130
  16904. msgid "In this example, glibc itself as well as everything that leads to Coreutils in the dependency graph is rebuilt."
  16905. msgstr ""
  16906. #. type: cindex
  16907. #: guix-git/doc/guix.texi:11131
  16908. #, fuzzy, no-wrap
  16909. msgid "upstream, latest version"
  16910. msgstr "软件包版本"
  16911. #. type: item
  16912. #: guix-git/doc/guix.texi:11132
  16913. #, fuzzy, no-wrap
  16914. msgid "--with-latest=@var{package}"
  16915. msgstr "--log-compression=@var{type}"
  16916. #. type: table
  16917. #: guix-git/doc/guix.texi:11137
  16918. 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})."
  16919. msgstr ""
  16920. #. type: table
  16921. #: guix-git/doc/guix.texi:11141
  16922. 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."
  16923. msgstr ""
  16924. #. type: table
  16925. #: guix-git/doc/guix.texi:11144
  16926. msgid "As an example, the command below builds Guix against the latest version of Guile-JSON:"
  16927. msgstr ""
  16928. #. type: example
  16929. #: guix-git/doc/guix.texi:11147
  16930. #, no-wrap
  16931. msgid "guix build guix --with-latest=guile-json\n"
  16932. msgstr ""
  16933. #. type: table
  16934. #: guix-git/doc/guix.texi:11156
  16935. 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."
  16936. msgstr ""
  16937. #. type: table
  16938. #: guix-git/doc/guix.texi:11161
  16939. 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})."
  16940. msgstr ""
  16941. #. type: cindex
  16942. #: guix-git/doc/guix.texi:11162
  16943. #, fuzzy, no-wrap
  16944. msgid "test suite, skipping"
  16945. msgstr "测试套件"
  16946. #. type: item
  16947. #: guix-git/doc/guix.texi:11163
  16948. #, no-wrap
  16949. msgid "--without-tests=@var{package}"
  16950. msgstr ""
  16951. #. type: table
  16952. #: guix-git/doc/guix.texi:11169
  16953. 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."
  16954. msgstr ""
  16955. #. type: table
  16956. #: guix-git/doc/guix.texi:11173
  16957. 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:"
  16958. msgstr ""
  16959. #. type: example
  16960. #: guix-git/doc/guix.texi:11176
  16961. #, no-wrap
  16962. msgid "guix install --without-tests=python python-notebook\n"
  16963. msgstr ""
  16964. #. type: table
  16965. #: guix-git/doc/guix.texi:11182
  16966. 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."
  16967. msgstr ""
  16968. #. type: table
  16969. #: guix-git/doc/guix.texi:11188
  16970. 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."
  16971. msgstr ""
  16972. #. type: Plain text
  16973. #: guix-git/doc/guix.texi:11195
  16974. 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."
  16975. msgstr ""
  16976. #. type: Plain text
  16977. #: guix-git/doc/guix.texi:11201
  16978. msgid "The command-line options presented below are specific to @command{guix build}."
  16979. msgstr ""
  16980. #. type: item
  16981. #: guix-git/doc/guix.texi:11204
  16982. #, no-wrap
  16983. msgid "--quiet"
  16984. msgstr ""
  16985. #. type: table
  16986. #: guix-git/doc/guix.texi:11209
  16987. 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."
  16988. msgstr ""
  16989. #. type: table
  16990. #: guix-git/doc/guix.texi:11214
  16991. msgid "Build the package, derivation, or other file-like object that the code within @var{file} evaluates to (@pxref{G-Expressions, file-like objects})."
  16992. msgstr ""
  16993. #. type: table
  16994. #: guix-git/doc/guix.texi:11217
  16995. msgid "As an example, @var{file} might contain a package definition like this (@pxref{Defining Packages}):"
  16996. msgstr ""
  16997. #. type: table
  16998. #: guix-git/doc/guix.texi:11226
  16999. 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}:"
  17000. msgstr ""
  17001. #. type: item
  17002. #: guix-git/doc/guix.texi:11231
  17003. #, fuzzy, no-wrap
  17004. msgid "--manifest=@var{manifest}"
  17005. msgstr "--listen=@var{endpoint}"
  17006. #. type: itemx
  17007. #: guix-git/doc/guix.texi:11232
  17008. #, fuzzy, no-wrap
  17009. msgid "-m @var{manifest}"
  17010. msgstr "-c @var{n}"
  17011. #. type: table
  17012. #: guix-git/doc/guix.texi:11235
  17013. msgid "Build all packages listed in the given @var{manifest} (@pxref{profile-manifest, @option{--manifest}})."
  17014. msgstr ""
  17015. #. type: table
  17016. #: guix-git/doc/guix.texi:11239
  17017. msgid "Build the package or derivation @var{expr} evaluates to."
  17018. msgstr ""
  17019. #. type: table
  17020. #: guix-git/doc/guix.texi:11243
  17021. 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."
  17022. msgstr ""
  17023. #. type: table
  17024. #: guix-git/doc/guix.texi:11247
  17025. 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})."
  17026. msgstr ""
  17027. #. type: table
  17028. #: guix-git/doc/guix.texi:11251
  17029. 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}."
  17030. msgstr ""
  17031. #. type: item
  17032. #: guix-git/doc/guix.texi:11252
  17033. #, no-wrap
  17034. msgid "--source"
  17035. msgstr ""
  17036. #. type: itemx
  17037. #: guix-git/doc/guix.texi:11253
  17038. #, no-wrap
  17039. msgid "-S"
  17040. msgstr ""
  17041. #. type: table
  17042. #: guix-git/doc/guix.texi:11256
  17043. msgid "Build the source derivations of the packages, rather than the packages themselves."
  17044. msgstr ""
  17045. #. type: table
  17046. #: guix-git/doc/guix.texi:11260
  17047. 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."
  17048. msgstr ""
  17049. #. type: table
  17050. #: guix-git/doc/guix.texi:11264
  17051. msgid "The returned source tarball is the result of applying any patches and code snippets specified in the package @code{origin} (@pxref{Defining Packages})."
  17052. msgstr ""
  17053. #. type: cindex
  17054. #: guix-git/doc/guix.texi:11265
  17055. #, no-wrap
  17056. msgid "source, verification"
  17057. msgstr ""
  17058. #. type: table
  17059. #: guix-git/doc/guix.texi:11271
  17060. 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."
  17061. msgstr ""
  17062. #. type: table
  17063. #: guix-git/doc/guix.texi:11276
  17064. 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."
  17065. msgstr ""
  17066. #. type: item
  17067. #: guix-git/doc/guix.texi:11277
  17068. #, no-wrap
  17069. msgid "--sources"
  17070. msgstr ""
  17071. #. type: table
  17072. #: guix-git/doc/guix.texi:11284
  17073. 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:"
  17074. msgstr ""
  17075. #. type: item
  17076. #: guix-git/doc/guix.texi:11286 guix-git/doc/guix.texi:12946
  17077. #, no-wrap
  17078. msgid "package"
  17079. msgstr ""
  17080. #. type: table
  17081. #: guix-git/doc/guix.texi:11289
  17082. msgid "This value causes the @option{--sources} option to behave in the same way as the @option{--source} option."
  17083. msgstr ""
  17084. #. type: item
  17085. #: guix-git/doc/guix.texi:11290 guix-git/doc/guix.texi:19148
  17086. #, no-wrap
  17087. msgid "all"
  17088. msgstr ""
  17089. #. type: table
  17090. #: guix-git/doc/guix.texi:11293
  17091. msgid "Build the source derivations of all packages, including any source that might be listed as @code{inputs}. This is the default value."
  17092. msgstr ""
  17093. #. type: example
  17094. #: guix-git/doc/guix.texi:11299
  17095. #, no-wrap
  17096. msgid ""
  17097. "$ guix build --sources tzdata\n"
  17098. "The following derivations will be built:\n"
  17099. " /gnu/store/@dots{}-tzdata2015b.tar.gz.drv\n"
  17100. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  17101. msgstr ""
  17102. #. type: item
  17103. #: guix-git/doc/guix.texi:11301
  17104. #, no-wrap
  17105. msgid "transitive"
  17106. msgstr ""
  17107. #. type: table
  17108. #: guix-git/doc/guix.texi:11305
  17109. 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."
  17110. msgstr ""
  17111. #. type: example
  17112. #: guix-git/doc/guix.texi:11316
  17113. #, no-wrap
  17114. msgid ""
  17115. "$ guix build --sources=transitive tzdata\n"
  17116. "The following derivations will be built:\n"
  17117. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  17118. " /gnu/store/@dots{}-findutils-4.4.2.tar.xz.drv\n"
  17119. " /gnu/store/@dots{}-grep-2.21.tar.xz.drv\n"
  17120. " /gnu/store/@dots{}-coreutils-8.23.tar.xz.drv\n"
  17121. " /gnu/store/@dots{}-make-4.1.tar.xz.drv\n"
  17122. " /gnu/store/@dots{}-bash-4.3.tar.xz.drv\n"
  17123. "@dots{}\n"
  17124. msgstr ""
  17125. #. type: table
  17126. #: guix-git/doc/guix.texi:11326
  17127. 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."
  17128. msgstr ""
  17129. #. type: quotation
  17130. #: guix-git/doc/guix.texi:11331
  17131. 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."
  17132. msgstr ""
  17133. #. type: table
  17134. #: guix-git/doc/guix.texi:11338
  17135. 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."
  17136. msgstr ""
  17137. #. type: quotation
  17138. #: guix-git/doc/guix.texi:11343
  17139. 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."
  17140. msgstr ""
  17141. #. type: table
  17142. #: guix-git/doc/guix.texi:11349
  17143. 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."
  17144. msgstr ""
  17145. #. type: table
  17146. #: guix-git/doc/guix.texi:11353
  17147. 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."
  17148. msgstr ""
  17149. #. type: table
  17150. #: guix-git/doc/guix.texi:11359
  17151. 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})."
  17152. msgstr ""
  17153. #. type: anchor{#1}
  17154. #: guix-git/doc/guix.texi:11361
  17155. msgid "build-check"
  17156. msgstr ""
  17157. #. type: cindex
  17158. #: guix-git/doc/guix.texi:11362
  17159. #, no-wrap
  17160. msgid "determinism, checking"
  17161. msgstr ""
  17162. #. type: cindex
  17163. #: guix-git/doc/guix.texi:11363
  17164. #, no-wrap
  17165. msgid "reproducibility, checking"
  17166. msgstr ""
  17167. #. type: table
  17168. #: guix-git/doc/guix.texi:11367
  17169. 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."
  17170. msgstr ""
  17171. #. type: table
  17172. #: guix-git/doc/guix.texi:11372
  17173. 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."
  17174. msgstr ""
  17175. #. type: item
  17176. #: guix-git/doc/guix.texi:11377
  17177. #, no-wrap
  17178. msgid "--repair"
  17179. msgstr ""
  17180. #. type: cindex
  17181. #: guix-git/doc/guix.texi:11378
  17182. #, no-wrap
  17183. msgid "repairing store items"
  17184. msgstr ""
  17185. #. type: table
  17186. #: guix-git/doc/guix.texi:11382
  17187. msgid "Attempt to repair the specified store items, if they are corrupt, by re-downloading or rebuilding them."
  17188. msgstr ""
  17189. #. type: table
  17190. #: guix-git/doc/guix.texi:11384
  17191. msgid "This operation is not atomic and thus restricted to @code{root}."
  17192. msgstr ""
  17193. #. type: item
  17194. #: guix-git/doc/guix.texi:11385
  17195. #, no-wrap
  17196. msgid "--derivations"
  17197. msgstr ""
  17198. #. type: table
  17199. #: guix-git/doc/guix.texi:11389
  17200. msgid "Return the derivation paths, not the output paths, of the given packages."
  17201. msgstr ""
  17202. #. type: cindex
  17203. #: guix-git/doc/guix.texi:11392
  17204. #, no-wrap
  17205. msgid "GC roots, adding"
  17206. msgstr ""
  17207. #. type: cindex
  17208. #: guix-git/doc/guix.texi:11393
  17209. #, no-wrap
  17210. msgid "garbage collector roots, adding"
  17211. msgstr ""
  17212. #. type: table
  17213. #: guix-git/doc/guix.texi:11396 guix-git/doc/guix.texi:34760
  17214. msgid "Make @var{file} a symlink to the result, and register it as a garbage collector root."
  17215. msgstr ""
  17216. #. type: table
  17217. #: guix-git/doc/guix.texi:11402
  17218. 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."
  17219. msgstr ""
  17220. #. type: item
  17221. #: guix-git/doc/guix.texi:11403
  17222. #, no-wrap
  17223. msgid "--log-file"
  17224. msgstr ""
  17225. #. type: cindex
  17226. #: guix-git/doc/guix.texi:11404
  17227. #, no-wrap
  17228. msgid "build logs, access"
  17229. msgstr ""
  17230. #. type: table
  17231. #: guix-git/doc/guix.texi:11408
  17232. 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."
  17233. msgstr ""
  17234. #. type: table
  17235. #: guix-git/doc/guix.texi:11411
  17236. msgid "This works regardless of how packages or derivations are specified. For instance, the following invocations are equivalent:"
  17237. msgstr ""
  17238. #. type: example
  17239. #: guix-git/doc/guix.texi:11417
  17240. #, no-wrap
  17241. msgid ""
  17242. "guix build --log-file $(guix build -d guile)\n"
  17243. "guix build --log-file $(guix build guile)\n"
  17244. "guix build --log-file guile\n"
  17245. "guix build --log-file -e '(@@ (gnu packages guile) guile-2.0)'\n"
  17246. msgstr ""
  17247. #. type: table
  17248. #: guix-git/doc/guix.texi:11422
  17249. 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})."
  17250. msgstr ""
  17251. #. type: table
  17252. #: guix-git/doc/guix.texi:11425
  17253. 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:"
  17254. msgstr ""
  17255. #. type: example
  17256. #: guix-git/doc/guix.texi:11429
  17257. #, no-wrap
  17258. msgid ""
  17259. "$ guix build --log-file gdb -s aarch64-linux\n"
  17260. "https://@value{SUBSTITUTE-SERVER-1}/log/@dots{}-gdb-7.10\n"
  17261. msgstr ""
  17262. #. type: table
  17263. #: guix-git/doc/guix.texi:11432
  17264. msgid "You can freely access a huge library of build logs!"
  17265. msgstr ""
  17266. #. type: cindex
  17267. #: guix-git/doc/guix.texi:11437
  17268. #, no-wrap
  17269. msgid "build failures, debugging"
  17270. msgstr ""
  17271. #. type: Plain text
  17272. #: guix-git/doc/guix.texi:11443
  17273. 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."
  17274. msgstr ""
  17275. #. type: Plain text
  17276. #: guix-git/doc/guix.texi:11448
  17277. 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}})."
  17278. msgstr ""
  17279. #. type: Plain text
  17280. #: guix-git/doc/guix.texi:11454
  17281. 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:"
  17282. msgstr ""
  17283. #. type: example
  17284. #: guix-git/doc/guix.texi:11461
  17285. #, no-wrap
  17286. msgid ""
  17287. "$ guix build foo -K\n"
  17288. "@dots{} @i{build fails}\n"
  17289. "$ cd /tmp/guix-build-foo.drv-0\n"
  17290. "$ source ./environment-variables\n"
  17291. "$ cd foo-1.2\n"
  17292. msgstr ""
  17293. #. type: Plain text
  17294. #: guix-git/doc/guix.texi:11465
  17295. msgid "Now, you can invoke commands as if you were the daemon (almost) and troubleshoot your build process."
  17296. msgstr ""
  17297. #. type: Plain text
  17298. #: guix-git/doc/guix.texi:11471
  17299. 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})."
  17300. msgstr ""
  17301. #. type: Plain text
  17302. #: guix-git/doc/guix.texi:11474
  17303. 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:"
  17304. msgstr ""
  17305. #. type: example
  17306. #: guix-git/doc/guix.texi:11482
  17307. #, no-wrap
  17308. msgid ""
  17309. "$ guix build -K foo\n"
  17310. "@dots{}\n"
  17311. "$ cd /tmp/guix-build-foo.drv-0\n"
  17312. "$ guix shell --no-grafts -C -D foo strace gdb\n"
  17313. "[env]# source ./environment-variables\n"
  17314. "[env]# cd foo-1.2\n"
  17315. msgstr ""
  17316. #. type: Plain text
  17317. #: guix-git/doc/guix.texi:11491
  17318. msgid "Here, @command{guix shell -C} creates a container and spawns a new shell in it (@pxref{Invoking guix shell}). The @command{strace gdb} part adds the @command{strace} and @command{gdb} commands to the container, which you may find handy while debugging. The @option{--no-grafts} option makes sure we get the exact same environment, with ungrafted packages (@pxref{Security Updates}, for more info on grafts)."
  17319. msgstr ""
  17320. #. type: Plain text
  17321. #: guix-git/doc/guix.texi:11494
  17322. msgid "To get closer to a container like that used by the build daemon, we can remove @file{/bin/sh}:"
  17323. msgstr ""
  17324. #. type: example
  17325. #: guix-git/doc/guix.texi:11497
  17326. #, no-wrap
  17327. msgid "[env]# rm /bin/sh\n"
  17328. msgstr ""
  17329. #. type: Plain text
  17330. #: guix-git/doc/guix.texi:11501
  17331. msgid "(Don't worry, this is harmless: this is all happening in the throw-away container created by @command{guix shell}.)"
  17332. msgstr ""
  17333. #. type: Plain text
  17334. #: guix-git/doc/guix.texi:11504
  17335. msgid "The @command{strace} command is probably not in the search path, but we can run:"
  17336. msgstr ""
  17337. #. type: example
  17338. #: guix-git/doc/guix.texi:11507
  17339. #, no-wrap
  17340. msgid "[env]# $GUIX_ENVIRONMENT/bin/strace -f -o log make check\n"
  17341. msgstr ""
  17342. #. type: Plain text
  17343. #: guix-git/doc/guix.texi:11512
  17344. 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."
  17345. msgstr ""
  17346. #. type: section
  17347. #: guix-git/doc/guix.texi:11515
  17348. #, no-wrap
  17349. msgid "Invoking @command{guix edit}"
  17350. msgstr ""
  17351. #. type: command{#1}
  17352. #: guix-git/doc/guix.texi:11517
  17353. #, no-wrap
  17354. msgid "guix edit"
  17355. msgstr ""
  17356. #. type: cindex
  17357. #: guix-git/doc/guix.texi:11518
  17358. #, no-wrap
  17359. msgid "package definition, editing"
  17360. msgstr ""
  17361. #. type: Plain text
  17362. #: guix-git/doc/guix.texi:11523
  17363. 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:"
  17364. msgstr ""
  17365. #. type: example
  17366. #: guix-git/doc/guix.texi:11526
  17367. #, no-wrap
  17368. msgid "guix edit gcc@@4.9 vim\n"
  17369. msgstr ""
  17370. #. type: Plain text
  17371. #: guix-git/doc/guix.texi:11532
  17372. 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."
  17373. msgstr ""
  17374. #. type: Plain text
  17375. #: guix-git/doc/guix.texi:11538
  17376. 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."
  17377. msgstr ""
  17378. #. type: Plain text
  17379. #: guix-git/doc/guix.texi:11543
  17380. 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."
  17381. msgstr ""
  17382. #. type: section
  17383. #: guix-git/doc/guix.texi:11545
  17384. #, no-wrap
  17385. msgid "Invoking @command{guix download}"
  17386. msgstr ""
  17387. #. type: command{#1}
  17388. #: guix-git/doc/guix.texi:11547
  17389. #, no-wrap
  17390. msgid "guix download"
  17391. msgstr ""
  17392. #. type: cindex
  17393. #: guix-git/doc/guix.texi:11548
  17394. #, no-wrap
  17395. msgid "downloading package sources"
  17396. msgstr ""
  17397. #. type: Plain text
  17398. #: guix-git/doc/guix.texi:11555
  17399. 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."
  17400. msgstr ""
  17401. #. type: Plain text
  17402. #: guix-git/doc/guix.texi:11562
  17403. 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})."
  17404. msgstr ""
  17405. #. type: Plain text
  17406. #: guix-git/doc/guix.texi:11570
  17407. 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."
  17408. msgstr ""
  17409. #. type: Plain text
  17410. #: guix-git/doc/guix.texi:11575
  17411. 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."
  17412. msgstr ""
  17413. #. type: Plain text
  17414. #: guix-git/doc/guix.texi:11577 guix-git/doc/guix.texi:13259
  17415. msgid "The following options are available:"
  17416. msgstr ""
  17417. #. type: item
  17418. #: guix-git/doc/guix.texi:11579 guix-git/doc/guix.texi:11623
  17419. #, no-wrap
  17420. msgid "--hash=@var{algorithm}"
  17421. msgstr ""
  17422. #. type: itemx
  17423. #: guix-git/doc/guix.texi:11580 guix-git/doc/guix.texi:11624
  17424. #, no-wrap
  17425. msgid "-H @var{algorithm}"
  17426. msgstr ""
  17427. #. type: table
  17428. #: guix-git/doc/guix.texi:11583
  17429. msgid "Compute a hash using the specified @var{algorithm}. @xref{Invoking guix hash}, for more information."
  17430. msgstr ""
  17431. #. type: item
  17432. #: guix-git/doc/guix.texi:11584 guix-git/doc/guix.texi:11633
  17433. #, no-wrap
  17434. msgid "--format=@var{fmt}"
  17435. msgstr ""
  17436. #. type: itemx
  17437. #: guix-git/doc/guix.texi:11585 guix-git/doc/guix.texi:11634
  17438. #, no-wrap
  17439. msgid "-f @var{fmt}"
  17440. msgstr ""
  17441. #. type: table
  17442. #: guix-git/doc/guix.texi:11588
  17443. 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}."
  17444. msgstr ""
  17445. #. type: item
  17446. #: guix-git/doc/guix.texi:11589
  17447. #, no-wrap
  17448. msgid "--no-check-certificate"
  17449. msgstr ""
  17450. #. type: table
  17451. #: guix-git/doc/guix.texi:11591
  17452. msgid "Do not validate the X.509 certificates of HTTPS servers."
  17453. msgstr ""
  17454. #. type: table
  17455. #: guix-git/doc/guix.texi:11595
  17456. 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."
  17457. msgstr ""
  17458. #. type: item
  17459. #: guix-git/doc/guix.texi:11596
  17460. #, no-wrap
  17461. msgid "--output=@var{file}"
  17462. msgstr ""
  17463. #. type: itemx
  17464. #: guix-git/doc/guix.texi:11597
  17465. #, no-wrap
  17466. msgid "-o @var{file}"
  17467. msgstr ""
  17468. #. type: table
  17469. #: guix-git/doc/guix.texi:11600
  17470. msgid "Save the downloaded file to @var{file} instead of adding it to the store."
  17471. msgstr ""
  17472. #. type: section
  17473. #: guix-git/doc/guix.texi:11603
  17474. #, no-wrap
  17475. msgid "Invoking @command{guix hash}"
  17476. msgstr ""
  17477. #. type: command{#1}
  17478. #: guix-git/doc/guix.texi:11605
  17479. #, no-wrap
  17480. msgid "guix hash"
  17481. msgstr ""
  17482. #. type: Plain text
  17483. #: guix-git/doc/guix.texi:11610
  17484. 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})."
  17485. msgstr ""
  17486. #. type: example
  17487. #: guix-git/doc/guix.texi:11615
  17488. #, no-wrap
  17489. msgid "guix hash @var{option} @var{file}\n"
  17490. msgstr ""
  17491. #. type: Plain text
  17492. #: guix-git/doc/guix.texi:11620
  17493. 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:"
  17494. msgstr ""
  17495. #. type: table
  17496. #: guix-git/doc/guix.texi:11627
  17497. msgid "Compute a hash using the specified @var{algorithm}, @code{sha256} by default."
  17498. msgstr ""
  17499. #. type: table
  17500. #: guix-git/doc/guix.texi:11632
  17501. 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})."
  17502. msgstr ""
  17503. #. type: table
  17504. #: guix-git/doc/guix.texi:11636
  17505. msgid "Write the hash in the format specified by @var{fmt}."
  17506. msgstr ""
  17507. #. type: table
  17508. #: guix-git/doc/guix.texi:11639
  17509. msgid "Supported formats: @code{base64}, @code{nix-base32}, @code{base32}, @code{base16} (@code{hex} and @code{hexadecimal} can be used as well)."
  17510. msgstr ""
  17511. #. type: table
  17512. #: guix-git/doc/guix.texi:11643
  17513. 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."
  17514. msgstr ""
  17515. #. type: table
  17516. #: guix-git/doc/guix.texi:11647
  17517. msgid "Compute the hash on @var{file} recursively."
  17518. msgstr ""
  17519. #. type: table
  17520. #: guix-git/doc/guix.texi:11656
  17521. 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})."
  17522. msgstr ""
  17523. #. type: item
  17524. #: guix-git/doc/guix.texi:11657
  17525. #, no-wrap
  17526. msgid "--exclude-vcs"
  17527. msgstr ""
  17528. #. type: itemx
  17529. #: guix-git/doc/guix.texi:11658 guix-git/doc/guix.texi:12732
  17530. #, no-wrap
  17531. msgid "-x"
  17532. msgstr ""
  17533. #. type: table
  17534. #: guix-git/doc/guix.texi:11661
  17535. msgid "When combined with @option{--recursive}, exclude version control system directories (@file{.bzr}, @file{.git}, @file{.hg}, etc.)."
  17536. msgstr ""
  17537. #. type: vindex
  17538. #: guix-git/doc/guix.texi:11662
  17539. #, no-wrap
  17540. msgid "git-fetch"
  17541. msgstr ""
  17542. #. type: table
  17543. #: guix-git/doc/guix.texi:11666
  17544. 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}):"
  17545. msgstr ""
  17546. #. type: example
  17547. #: guix-git/doc/guix.texi:11671
  17548. #, no-wrap
  17549. msgid ""
  17550. "$ git clone http://example.org/foo.git\n"
  17551. "$ cd foo\n"
  17552. "$ guix hash -rx .\n"
  17553. msgstr ""
  17554. #. type: cindex
  17555. #: guix-git/doc/guix.texi:11675 guix-git/doc/guix.texi:11680
  17556. #, no-wrap
  17557. msgid "Invoking @command{guix import}"
  17558. msgstr ""
  17559. #. type: cindex
  17560. #: guix-git/doc/guix.texi:11677
  17561. #, no-wrap
  17562. msgid "importing packages"
  17563. msgstr ""
  17564. #. type: cindex
  17565. #: guix-git/doc/guix.texi:11678
  17566. #, no-wrap
  17567. msgid "package import"
  17568. msgstr ""
  17569. #. type: cindex
  17570. #: guix-git/doc/guix.texi:11679
  17571. #, no-wrap
  17572. msgid "package conversion"
  17573. msgstr ""
  17574. #. type: Plain text
  17575. #: guix-git/doc/guix.texi:11687
  17576. 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})."
  17577. msgstr ""
  17578. #. type: example
  17579. #: guix-git/doc/guix.texi:11692
  17580. #, no-wrap
  17581. msgid "guix import @var{importer} @var{options}@dots{}\n"
  17582. msgstr ""
  17583. #. type: Plain text
  17584. #: guix-git/doc/guix.texi:11697
  17585. 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}."
  17586. msgstr ""
  17587. #. type: Plain text
  17588. #: guix-git/doc/guix.texi:11701
  17589. 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."
  17590. msgstr ""
  17591. #. type: Plain text
  17592. #: guix-git/doc/guix.texi:11703
  17593. msgid "Currently, the available ``importers'' are:"
  17594. msgstr ""
  17595. #. type: item
  17596. #: guix-git/doc/guix.texi:11705 guix-git/doc/guix.texi:12343
  17597. #, no-wrap
  17598. msgid "gnu"
  17599. msgstr ""
  17600. #. type: table
  17601. #: guix-git/doc/guix.texi:11709
  17602. 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."
  17603. msgstr ""
  17604. #. type: table
  17605. #: guix-git/doc/guix.texi:11712
  17606. msgid "Additional information such as the package dependencies and its license needs to be figured out manually."
  17607. msgstr ""
  17608. #. type: table
  17609. #: guix-git/doc/guix.texi:11715
  17610. msgid "For example, the following command returns a package definition for GNU@tie{}Hello:"
  17611. msgstr ""
  17612. #. type: example
  17613. #: guix-git/doc/guix.texi:11718
  17614. #, no-wrap
  17615. msgid "guix import gnu hello\n"
  17616. msgstr ""
  17617. #. type: table
  17618. #: guix-git/doc/guix.texi:11721 guix-git/doc/guix.texi:11962
  17619. #: guix-git/doc/guix.texi:12012 guix-git/doc/guix.texi:12041
  17620. msgid "Specific command-line options are:"
  17621. msgstr ""
  17622. #. type: item
  17623. #: guix-git/doc/guix.texi:11723 guix-git/doc/guix.texi:12540
  17624. #, no-wrap
  17625. msgid "--key-download=@var{policy}"
  17626. msgstr ""
  17627. #. type: table
  17628. #: guix-git/doc/guix.texi:11727
  17629. 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}}."
  17630. msgstr ""
  17631. #. type: item
  17632. #: guix-git/doc/guix.texi:11729 guix-git/doc/guix.texi:11730
  17633. #: guix-git/doc/guix.texi:12367
  17634. #, no-wrap
  17635. msgid "pypi"
  17636. msgstr ""
  17637. #. type: table
  17638. #: guix-git/doc/guix.texi:11737
  17639. 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."
  17640. msgstr ""
  17641. #. type: table
  17642. #: guix-git/doc/guix.texi:11740
  17643. msgid "The command below imports metadata for the latest version of the @code{itsdangerous} Python package:"
  17644. msgstr ""
  17645. #. type: example
  17646. #: guix-git/doc/guix.texi:11743
  17647. #, no-wrap
  17648. msgid "guix import pypi itsdangerous\n"
  17649. msgstr ""
  17650. #. type: table
  17651. #: guix-git/doc/guix.texi:11746 guix-git/doc/guix.texi:11849
  17652. #: guix-git/doc/guix.texi:12190
  17653. msgid "You can also ask for a specific version:"
  17654. msgstr ""
  17655. #. type: example
  17656. #: guix-git/doc/guix.texi:11749
  17657. #, no-wrap
  17658. msgid "guix import pypi itsdangerous@@1.1.0\n"
  17659. msgstr ""
  17660. #. type: table
  17661. #: guix-git/doc/guix.texi:11757 guix-git/doc/guix.texi:11782
  17662. #: guix-git/doc/guix.texi:11814 guix-git/doc/guix.texi:11985
  17663. #: guix-git/doc/guix.texi:12026 guix-git/doc/guix.texi:12077
  17664. #: guix-git/doc/guix.texi:12102 guix-git/doc/guix.texi:12118
  17665. #: guix-git/doc/guix.texi:12166 guix-git/doc/guix.texi:12202
  17666. 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."
  17667. msgstr ""
  17668. #. type: item
  17669. #: guix-git/doc/guix.texi:11759 guix-git/doc/guix.texi:11760
  17670. #: guix-git/doc/guix.texi:12369
  17671. #, no-wrap
  17672. msgid "gem"
  17673. msgstr ""
  17674. #. type: table
  17675. #: guix-git/doc/guix.texi:11769
  17676. 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."
  17677. msgstr ""
  17678. #. type: table
  17679. #: guix-git/doc/guix.texi:11771
  17680. msgid "The command below imports metadata for the @code{rails} Ruby package:"
  17681. msgstr ""
  17682. #. type: example
  17683. #: guix-git/doc/guix.texi:11774
  17684. #, no-wrap
  17685. msgid "guix import gem rails\n"
  17686. msgstr ""
  17687. #. type: cindex
  17688. #: guix-git/doc/guix.texi:11784 guix-git/doc/guix.texi:11785
  17689. #, no-wrap
  17690. msgid "minetest"
  17691. msgstr ""
  17692. #. type: cindex
  17693. #: guix-git/doc/guix.texi:11786
  17694. #, no-wrap
  17695. msgid "ContentDB"
  17696. msgstr ""
  17697. #. type: table
  17698. #: guix-git/doc/guix.texi:11795
  17699. 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."
  17700. msgstr ""
  17701. #. type: table
  17702. #: guix-git/doc/guix.texi:11797
  17703. msgid "The command below imports metadata for the Mesecons mod by Jeija:"
  17704. msgstr ""
  17705. #. type: example
  17706. #: guix-git/doc/guix.texi:11800
  17707. #, no-wrap
  17708. msgid "guix import minetest Jeija/mesecons\n"
  17709. msgstr ""
  17710. #. type: table
  17711. #: guix-git/doc/guix.texi:11803
  17712. msgid "The author name can also be left out:"
  17713. msgstr ""
  17714. #. type: example
  17715. #: guix-git/doc/guix.texi:11806
  17716. #, no-wrap
  17717. msgid "guix import minetest mesecons\n"
  17718. msgstr ""
  17719. #. type: item
  17720. #: guix-git/doc/guix.texi:11816 guix-git/doc/guix.texi:12365
  17721. #, no-wrap
  17722. msgid "cpan"
  17723. msgstr ""
  17724. #. type: cindex
  17725. #: guix-git/doc/guix.texi:11817
  17726. #, no-wrap
  17727. msgid "CPAN"
  17728. msgstr ""
  17729. #. type: table
  17730. #: guix-git/doc/guix.texi:11825
  17731. 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."
  17732. msgstr ""
  17733. #. type: table
  17734. #: guix-git/doc/guix.texi:11828
  17735. msgid "The command command below imports metadata for the Acme::Boolean Perl module:"
  17736. msgstr ""
  17737. #. type: example
  17738. #: guix-git/doc/guix.texi:11831
  17739. #, no-wrap
  17740. msgid "guix import cpan Acme::Boolean\n"
  17741. msgstr ""
  17742. #. type: item
  17743. #: guix-git/doc/guix.texi:11833 guix-git/doc/guix.texi:12361
  17744. #, no-wrap
  17745. msgid "cran"
  17746. msgstr ""
  17747. #. type: cindex
  17748. #: guix-git/doc/guix.texi:11834
  17749. #, no-wrap
  17750. msgid "CRAN"
  17751. msgstr ""
  17752. #. type: cindex
  17753. #: guix-git/doc/guix.texi:11835
  17754. #, no-wrap
  17755. msgid "Bioconductor"
  17756. msgstr ""
  17757. #. type: table
  17758. #: guix-git/doc/guix.texi:11839
  17759. 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}."
  17760. msgstr ""
  17761. #. type: table
  17762. #: guix-git/doc/guix.texi:11841
  17763. msgid "Information is extracted from the @file{DESCRIPTION} file of the package."
  17764. msgstr ""
  17765. #. type: table
  17766. #: guix-git/doc/guix.texi:11843
  17767. msgid "The command command below imports metadata for the Cairo R package:"
  17768. msgstr ""
  17769. #. type: example
  17770. #: guix-git/doc/guix.texi:11846
  17771. #, no-wrap
  17772. msgid "guix import cran Cairo\n"
  17773. msgstr ""
  17774. #. type: example
  17775. #: guix-git/doc/guix.texi:11852
  17776. #, no-wrap
  17777. msgid "guix import cran rasterVis@@0.50.3\n"
  17778. msgstr ""
  17779. #. type: table
  17780. #: guix-git/doc/guix.texi:11857
  17781. 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."
  17782. msgstr ""
  17783. #. type: table
  17784. #: guix-git/doc/guix.texi:11864
  17785. 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}."
  17786. msgstr ""
  17787. #. type: table
  17788. #: guix-git/doc/guix.texi:11869
  17789. 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."
  17790. msgstr ""
  17791. #. type: table
  17792. #: guix-git/doc/guix.texi:11872
  17793. msgid "Information is extracted from the @file{DESCRIPTION} file contained in the package archive."
  17794. msgstr ""
  17795. #. type: table
  17796. #: guix-git/doc/guix.texi:11874
  17797. msgid "The command below imports metadata for the GenomicRanges R package:"
  17798. msgstr ""
  17799. #. type: example
  17800. #: guix-git/doc/guix.texi:11877
  17801. #, no-wrap
  17802. msgid "guix import cran --archive=bioconductor GenomicRanges\n"
  17803. msgstr ""
  17804. #. type: table
  17805. #: guix-git/doc/guix.texi:11882
  17806. 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:"
  17807. msgstr ""
  17808. #. type: example
  17809. #: guix-git/doc/guix.texi:11885
  17810. #, no-wrap
  17811. msgid "guix import cran --archive=git https://github.com/immunogenomics/harmony\n"
  17812. msgstr ""
  17813. #. type: item
  17814. #: guix-git/doc/guix.texi:11887
  17815. #, no-wrap
  17816. msgid "texlive"
  17817. msgstr ""
  17818. #. type: cindex
  17819. #: guix-git/doc/guix.texi:11888
  17820. #, no-wrap
  17821. msgid "TeX Live"
  17822. msgstr ""
  17823. #. type: cindex
  17824. #: guix-git/doc/guix.texi:11889
  17825. #, no-wrap
  17826. msgid "CTAN"
  17827. msgstr ""
  17828. #. type: table
  17829. #: guix-git/doc/guix.texi:11893
  17830. msgid "Import TeX package information from the TeX Live package database for TeX packages that are part of the @uref{https://www.tug.org/texlive/, TeX Live distribution}."
  17831. msgstr ""
  17832. #. type: table
  17833. #: guix-git/doc/guix.texi:11898
  17834. msgid "Information about the package is obtained from the TeX Live package database, a plain text file that is included in the @code{texlive-bin} package. The source code is downloaded from possibly multiple locations in the SVN repository of the Tex Live project."
  17835. msgstr ""
  17836. #. type: table
  17837. #: guix-git/doc/guix.texi:11901
  17838. msgid "The command command below imports metadata for the @code{fontspec} TeX package:"
  17839. msgstr ""
  17840. #. type: example
  17841. #: guix-git/doc/guix.texi:11904
  17842. #, no-wrap
  17843. msgid "guix import texlive fontspec\n"
  17844. msgstr ""
  17845. #. type: cindex
  17846. #: guix-git/doc/guix.texi:11907
  17847. #, no-wrap
  17848. msgid "JSON, import"
  17849. msgstr ""
  17850. #. type: table
  17851. #: guix-git/doc/guix.texi:11910
  17852. msgid "Import package metadata from a local JSON file. Consider the following example package definition in JSON format:"
  17853. msgstr ""
  17854. #. type: example
  17855. #: guix-git/doc/guix.texi:11923
  17856. #, no-wrap
  17857. msgid ""
  17858. "@{\n"
  17859. " \"name\": \"hello\",\n"
  17860. " \"version\": \"2.10\",\n"
  17861. " \"source\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  17862. " \"build-system\": \"gnu\",\n"
  17863. " \"home-page\": \"https://www.gnu.org/software/hello/\",\n"
  17864. " \"synopsis\": \"Hello, GNU world: An example GNU package\",\n"
  17865. " \"description\": \"GNU Hello prints a greeting.\",\n"
  17866. " \"license\": \"GPL-3.0+\",\n"
  17867. " \"native-inputs\": [\"gettext\"]\n"
  17868. "@}\n"
  17869. msgstr ""
  17870. #. type: table
  17871. #: guix-git/doc/guix.texi:11929
  17872. 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}."
  17873. msgstr ""
  17874. #. type: table
  17875. #: guix-git/doc/guix.texi:11932
  17876. msgid "The importer also supports a more explicit source definition using the common fields for @code{<origin>} records:"
  17877. msgstr ""
  17878. #. type: example
  17879. #: guix-git/doc/guix.texi:11945
  17880. #, no-wrap
  17881. msgid ""
  17882. "@{\n"
  17883. " @dots{}\n"
  17884. " \"source\": @{\n"
  17885. " \"method\": \"url-fetch\",\n"
  17886. " \"uri\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  17887. " \"sha256\": @{\n"
  17888. " \"base32\": \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"\n"
  17889. " @}\n"
  17890. " @}\n"
  17891. " @dots{}\n"
  17892. "@}\n"
  17893. msgstr ""
  17894. #. type: table
  17895. #: guix-git/doc/guix.texi:11949
  17896. msgid "The command below reads metadata from the JSON file @code{hello.json} and outputs a package expression:"
  17897. msgstr ""
  17898. #. type: example
  17899. #: guix-git/doc/guix.texi:11952
  17900. #, no-wrap
  17901. msgid "guix import json hello.json\n"
  17902. msgstr ""
  17903. #. type: item
  17904. #: guix-git/doc/guix.texi:11954 guix-git/doc/guix.texi:11955
  17905. #: guix-git/doc/guix.texi:12373
  17906. #, no-wrap
  17907. msgid "hackage"
  17908. msgstr ""
  17909. #. type: table
  17910. #: guix-git/doc/guix.texi:11960
  17911. 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."
  17912. msgstr ""
  17913. #. type: item
  17914. #: guix-git/doc/guix.texi:11964
  17915. #, no-wrap
  17916. msgid "--stdin"
  17917. msgstr ""
  17918. #. type: itemx
  17919. #: guix-git/doc/guix.texi:11965
  17920. #, no-wrap
  17921. msgid "-s"
  17922. msgstr ""
  17923. #. type: table
  17924. #: guix-git/doc/guix.texi:11967
  17925. msgid "Read a Cabal file from standard input."
  17926. msgstr ""
  17927. #. type: item
  17928. #: guix-git/doc/guix.texi:11967 guix-git/doc/guix.texi:12014
  17929. #, no-wrap
  17930. msgid "--no-test-dependencies"
  17931. msgstr ""
  17932. #. type: table
  17933. #: guix-git/doc/guix.texi:11970 guix-git/doc/guix.texi:12017
  17934. msgid "Do not include dependencies required only by the test suites."
  17935. msgstr ""
  17936. #. type: item
  17937. #: guix-git/doc/guix.texi:11970
  17938. #, no-wrap
  17939. msgid "--cabal-environment=@var{alist}"
  17940. msgstr ""
  17941. #. type: itemx
  17942. #: guix-git/doc/guix.texi:11971
  17943. #, no-wrap
  17944. msgid "-e @var{alist}"
  17945. msgstr ""
  17946. #. type: table
  17947. #: guix-git/doc/guix.texi:11980
  17948. 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."
  17949. msgstr ""
  17950. #. type: table
  17951. #: guix-git/doc/guix.texi:11990
  17952. 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}:"
  17953. msgstr ""
  17954. #. type: example
  17955. #: guix-git/doc/guix.texi:11993
  17956. #, no-wrap
  17957. msgid "guix import hackage -t -e \"'((\\\"network-uri\\\" . false))\" HTTP\n"
  17958. msgstr ""
  17959. #. type: table
  17960. #: guix-git/doc/guix.texi:11997
  17961. 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:"
  17962. msgstr ""
  17963. #. type: example
  17964. #: guix-git/doc/guix.texi:12000
  17965. #, no-wrap
  17966. msgid "guix import hackage mtl@@2.1.3.1\n"
  17967. msgstr ""
  17968. #. type: item
  17969. #: guix-git/doc/guix.texi:12002 guix-git/doc/guix.texi:12003
  17970. #: guix-git/doc/guix.texi:12375
  17971. #, no-wrap
  17972. msgid "stackage"
  17973. msgstr ""
  17974. #. type: table
  17975. #: guix-git/doc/guix.texi:12010
  17976. 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."
  17977. msgstr ""
  17978. #. type: item
  17979. #: guix-git/doc/guix.texi:12017
  17980. #, no-wrap
  17981. msgid "--lts-version=@var{version}"
  17982. msgstr ""
  17983. #. type: itemx
  17984. #: guix-git/doc/guix.texi:12018
  17985. #, no-wrap
  17986. msgid "-l @var{version}"
  17987. msgstr ""
  17988. #. type: table
  17989. #: guix-git/doc/guix.texi:12021
  17990. msgid "@var{version} is the desired LTS release version. If omitted the latest release is used."
  17991. msgstr ""
  17992. #. type: table
  17993. #: guix-git/doc/guix.texi:12030
  17994. msgid "The command below imports metadata for the HTTP Haskell package included in the LTS Stackage release version 7.18:"
  17995. msgstr ""
  17996. #. type: example
  17997. #: guix-git/doc/guix.texi:12033
  17998. #, no-wrap
  17999. msgid "guix import stackage --lts-version=7.18 HTTP\n"
  18000. msgstr ""
  18001. #. type: item
  18002. #: guix-git/doc/guix.texi:12035 guix-git/doc/guix.texi:12036
  18003. #: guix-git/doc/guix.texi:12359
  18004. #, no-wrap
  18005. msgid "elpa"
  18006. msgstr ""
  18007. #. type: table
  18008. #: guix-git/doc/guix.texi:12039
  18009. msgid "Import metadata from an Emacs Lisp Package Archive (ELPA) package repository (@pxref{Packages,,, emacs, The GNU Emacs Manual})."
  18010. msgstr ""
  18011. #. type: item
  18012. #: guix-git/doc/guix.texi:12043
  18013. #, no-wrap
  18014. msgid "--archive=@var{repo}"
  18015. msgstr ""
  18016. #. type: itemx
  18017. #: guix-git/doc/guix.texi:12044
  18018. #, no-wrap
  18019. msgid "-a @var{repo}"
  18020. msgstr ""
  18021. #. type: table
  18022. #: guix-git/doc/guix.texi:12048
  18023. msgid "@var{repo} identifies the archive repository from which to retrieve the information. Currently the supported repositories and their identifiers are:"
  18024. msgstr ""
  18025. #. type: itemize
  18026. #: guix-git/doc/guix.texi:12052
  18027. msgid "@uref{https://elpa.gnu.org/packages, GNU}, selected by the @code{gnu} identifier. This is the default."
  18028. msgstr ""
  18029. #. type: itemize
  18030. #: guix-git/doc/guix.texi:12058
  18031. 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})."
  18032. msgstr ""
  18033. #. type: itemize
  18034. #: guix-git/doc/guix.texi:12062
  18035. msgid "@uref{https://elpa.nongnu.org/nongnu/, NonGNU}, selected by the @code{nongnu} identifier."
  18036. msgstr ""
  18037. #. type: itemize
  18038. #: guix-git/doc/guix.texi:12066
  18039. msgid "@uref{https://stable.melpa.org/packages, MELPA-Stable}, selected by the @code{melpa-stable} identifier."
  18040. msgstr ""
  18041. #. type: itemize
  18042. #: guix-git/doc/guix.texi:12070
  18043. msgid "@uref{https://melpa.org/packages, MELPA}, selected by the @code{melpa} identifier."
  18044. msgstr ""
  18045. #. type: item
  18046. #: guix-git/doc/guix.texi:12079 guix-git/doc/guix.texi:12080
  18047. #: guix-git/doc/guix.texi:12377
  18048. #, no-wrap
  18049. msgid "crate"
  18050. msgstr ""
  18051. #. type: table
  18052. #: guix-git/doc/guix.texi:12083
  18053. msgid "Import metadata from the crates.io Rust package repository @uref{https://crates.io, crates.io}, as in this example:"
  18054. msgstr ""
  18055. #. type: example
  18056. #: guix-git/doc/guix.texi:12086
  18057. #, no-wrap
  18058. msgid "guix import crate blake2-rfc\n"
  18059. msgstr ""
  18060. #. type: table
  18061. #: guix-git/doc/guix.texi:12089
  18062. msgid "The crate importer also allows you to specify a version string:"
  18063. msgstr ""
  18064. #. type: example
  18065. #: guix-git/doc/guix.texi:12092
  18066. #, no-wrap
  18067. msgid "guix import crate constant-time-eq@@0.1.0\n"
  18068. msgstr ""
  18069. #. type: table
  18070. #: guix-git/doc/guix.texi:12095 guix-git/doc/guix.texi:12111
  18071. #: guix-git/doc/guix.texi:12159 guix-git/doc/guix.texi:12196
  18072. #, fuzzy
  18073. msgid "Additional options include:"
  18074. msgstr "额外的构建选项"
  18075. #. type: item
  18076. #: guix-git/doc/guix.texi:12104
  18077. #, no-wrap
  18078. msgid "opam"
  18079. msgstr ""
  18080. #. type: cindex
  18081. #: guix-git/doc/guix.texi:12105
  18082. #, no-wrap
  18083. msgid "OPAM"
  18084. msgstr ""
  18085. #. type: cindex
  18086. #: guix-git/doc/guix.texi:12106
  18087. #, no-wrap
  18088. msgid "OCaml"
  18089. msgstr ""
  18090. #. type: table
  18091. #: guix-git/doc/guix.texi:12109
  18092. msgid "Import metadata from the @uref{https://opam.ocaml.org/, OPAM} package repository used by the OCaml community."
  18093. msgstr ""
  18094. #. type: item
  18095. #: guix-git/doc/guix.texi:12118
  18096. #, no-wrap
  18097. msgid "--repo"
  18098. msgstr ""
  18099. #. type: table
  18100. #: guix-git/doc/guix.texi:12122
  18101. 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:"
  18102. msgstr ""
  18103. #. type: item
  18104. #: guix-git/doc/guix.texi:12124
  18105. #, no-wrap
  18106. msgid "the name of a known repository - can be one of @code{opam},"
  18107. msgstr ""
  18108. #. type: itemize
  18109. #: guix-git/doc/guix.texi:12127
  18110. msgid "@code{coq} (equivalent to @code{coq-released}), @code{coq-core-dev}, @code{coq-extra-dev} or @code{grew}."
  18111. msgstr ""
  18112. #. type: item
  18113. #: guix-git/doc/guix.texi:12127
  18114. #, no-wrap
  18115. msgid "the URL of a repository as expected by the"
  18116. msgstr ""
  18117. #. type: itemize
  18118. #: guix-git/doc/guix.texi:12131
  18119. msgid "@code{opam repository add} command (for instance, the URL equivalent of the above @code{opam} name would be @uref{https://opam.ocaml.org})."
  18120. msgstr ""
  18121. #. type: item
  18122. #: guix-git/doc/guix.texi:12131
  18123. #, no-wrap
  18124. msgid "the path to a local copy of a repository (a directory containing a"
  18125. msgstr ""
  18126. #. type: itemize
  18127. #: guix-git/doc/guix.texi:12133
  18128. #, fuzzy
  18129. msgid "@file{packages/} sub-directory)."
  18130. msgstr "软件包模块"
  18131. #. type: table
  18132. #: guix-git/doc/guix.texi:12138
  18133. 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."
  18134. msgstr ""
  18135. #. type: table
  18136. #: guix-git/doc/guix.texi:12143
  18137. 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}."
  18138. msgstr ""
  18139. #. type: cindex
  18140. #: guix-git/doc/guix.texi:12146 guix-git/doc/guix.texi:12147
  18141. #, no-wrap
  18142. msgid "go"
  18143. msgstr ""
  18144. #. type: table
  18145. #: guix-git/doc/guix.texi:12150
  18146. msgid "Import metadata for a Go module using @uref{https://proxy.golang.org, proxy.golang.org}."
  18147. msgstr ""
  18148. #. type: example
  18149. #: guix-git/doc/guix.texi:12153
  18150. #, no-wrap
  18151. msgid "guix import go gopkg.in/yaml.v2\n"
  18152. msgstr ""
  18153. #. type: table
  18154. #: guix-git/doc/guix.texi:12157
  18155. msgid "It is possible to use a package specification with a @code{@@VERSION} suffix to import a specific version."
  18156. msgstr ""
  18157. #. type: item
  18158. #: guix-git/doc/guix.texi:12166
  18159. #, no-wrap
  18160. msgid "--pin-versions"
  18161. msgstr ""
  18162. #. type: table
  18163. #: guix-git/doc/guix.texi:12174
  18164. 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."
  18165. msgstr ""
  18166. #. type: item
  18167. #: guix-git/doc/guix.texi:12176 guix-git/doc/guix.texi:12177
  18168. #: guix-git/doc/guix.texi:12357
  18169. #, no-wrap
  18170. msgid "egg"
  18171. msgstr ""
  18172. #. type: table
  18173. #: guix-git/doc/guix.texi:12184
  18174. msgid "Import metadata for @uref{https://wiki.call-cc.org/eggs, CHICKEN eggs}. The information is taken from @file{PACKAGE.egg} files found in the @uref{git://code.call-cc.org/eggs-5-all, eggs-5-all} Git repository. However, it does not provide all the information that we need, there is no ``description'' field, and the licenses used are not always precise (BSD is often used instead of BSD-N)."
  18175. msgstr ""
  18176. #. type: example
  18177. #: guix-git/doc/guix.texi:12187
  18178. #, no-wrap
  18179. msgid "guix import egg sourcehut\n"
  18180. msgstr ""
  18181. #. type: example
  18182. #: guix-git/doc/guix.texi:12193
  18183. #, no-wrap
  18184. msgid "guix import egg arrays@@1.0\n"
  18185. msgstr ""
  18186. #. type: Plain text
  18187. #: guix-git/doc/guix.texi:12208
  18188. 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})."
  18189. msgstr ""
  18190. #. type: section
  18191. #: guix-git/doc/guix.texi:12210
  18192. #, no-wrap
  18193. msgid "Invoking @command{guix refresh}"
  18194. msgstr ""
  18195. #. type: command{#1}
  18196. #: guix-git/doc/guix.texi:12212
  18197. #, no-wrap
  18198. msgid "guix refresh"
  18199. msgstr ""
  18200. #. type: Plain text
  18201. #: guix-git/doc/guix.texi:12220
  18202. 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:"
  18203. msgstr ""
  18204. #. type: example
  18205. #: guix-git/doc/guix.texi:12225
  18206. #, no-wrap
  18207. msgid ""
  18208. "$ guix refresh\n"
  18209. "gnu/packages/gettext.scm:29:13: gettext would be upgraded from 0.18.1.1 to 0.18.2.1\n"
  18210. "gnu/packages/glib.scm:77:12: glib would be upgraded from 2.34.3 to 2.37.0\n"
  18211. msgstr ""
  18212. #. type: Plain text
  18213. #: guix-git/doc/guix.texi:12229
  18214. msgid "Alternatively, one can specify packages to consider, in which case a warning is emitted for packages that lack an updater:"
  18215. msgstr ""
  18216. #. type: example
  18217. #: guix-git/doc/guix.texi:12234
  18218. #, no-wrap
  18219. msgid ""
  18220. "$ guix refresh coreutils guile guile-ssh\n"
  18221. "gnu/packages/ssh.scm:205:2: warning: no updater for guile-ssh\n"
  18222. "gnu/packages/guile.scm:136:12: guile would be upgraded from 2.0.12 to 2.0.13\n"
  18223. msgstr ""
  18224. #. type: Plain text
  18225. #: guix-git/doc/guix.texi:12243
  18226. 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!"
  18227. msgstr ""
  18228. #. type: table
  18229. #: guix-git/doc/guix.texi:12248
  18230. msgid "Consider the packages specified, and all the packages upon which they depend."
  18231. msgstr ""
  18232. #. type: example
  18233. #: guix-git/doc/guix.texi:12256
  18234. #, no-wrap
  18235. msgid ""
  18236. "$ guix refresh --recursive coreutils\n"
  18237. "gnu/packages/acl.scm:40:13: acl would be upgraded from 2.2.53 to 2.3.1\n"
  18238. "gnu/packages/m4.scm:30:12: 1.4.18 is already the latest version of m4\n"
  18239. "gnu/packages/xml.scm:68:2: warning: no updater for expat\n"
  18240. "gnu/packages/multiprecision.scm:40:12: 6.1.2 is already the latest version of gmp\n"
  18241. "@dots{}\n"
  18242. msgstr ""
  18243. #. type: Plain text
  18244. #: guix-git/doc/guix.texi:12264
  18245. 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:"
  18246. msgstr ""
  18247. #. type: lisp
  18248. #: guix-git/doc/guix.texi:12271
  18249. #, no-wrap
  18250. msgid ""
  18251. "(define-public network-manager\n"
  18252. " (package\n"
  18253. " (name \"network-manager\")\n"
  18254. " ;; @dots{}\n"
  18255. " (properties '((upstream-name . \"NetworkManager\")))))\n"
  18256. msgstr ""
  18257. #. type: Plain text
  18258. #: guix-git/doc/guix.texi:12280
  18259. 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."
  18260. msgstr ""
  18261. #. type: Plain text
  18262. #: guix-git/doc/guix.texi:12286
  18263. 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."
  18264. msgstr ""
  18265. #. type: Plain text
  18266. #: guix-git/doc/guix.texi:12288
  18267. msgid "The following options are supported:"
  18268. msgstr ""
  18269. #. type: table
  18270. #: guix-git/doc/guix.texi:12296 guix-git/doc/guix.texi:13141
  18271. msgid "This is useful to precisely refer to a package, as in this example:"
  18272. msgstr ""
  18273. #. type: example
  18274. #: guix-git/doc/guix.texi:12299
  18275. #, no-wrap
  18276. msgid "guix refresh -l -e '(@@@@ (gnu packages commencement) glibc-final)'\n"
  18277. msgstr ""
  18278. #. type: table
  18279. #: guix-git/doc/guix.texi:12303
  18280. msgid "This command lists the dependents of the ``final'' libc (essentially all the packages)."
  18281. msgstr ""
  18282. #. type: item
  18283. #: guix-git/doc/guix.texi:12304
  18284. #, no-wrap
  18285. msgid "--update"
  18286. msgstr ""
  18287. #. type: itemx
  18288. #: guix-git/doc/guix.texi:12305
  18289. #, no-wrap
  18290. msgid "-u"
  18291. msgstr ""
  18292. #. type: table
  18293. #: guix-git/doc/guix.texi:12309
  18294. 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}):"
  18295. msgstr ""
  18296. #. type: example
  18297. #: guix-git/doc/guix.texi:12312
  18298. #, no-wrap
  18299. msgid "$ ./pre-inst-env guix refresh -s non-core -u\n"
  18300. msgstr ""
  18301. #. type: table
  18302. #: guix-git/doc/guix.texi:12315
  18303. msgid "@xref{Defining Packages}, for more information on package definitions."
  18304. msgstr ""
  18305. #. type: item
  18306. #: guix-git/doc/guix.texi:12316
  18307. #, no-wrap
  18308. msgid "--select=[@var{subset}]"
  18309. msgstr ""
  18310. #. type: itemx
  18311. #: guix-git/doc/guix.texi:12317
  18312. #, no-wrap
  18313. msgid "-s @var{subset}"
  18314. msgstr ""
  18315. #. type: table
  18316. #: guix-git/doc/guix.texi:12320
  18317. msgid "Select all the packages in @var{subset}, one of @code{core} or @code{non-core}."
  18318. msgstr ""
  18319. #. type: table
  18320. #: guix-git/doc/guix.texi:12327
  18321. 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."
  18322. msgstr ""
  18323. #. type: table
  18324. #: guix-git/doc/guix.texi:12331
  18325. 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."
  18326. msgstr ""
  18327. #. type: table
  18328. #: guix-git/doc/guix.texi:12336
  18329. 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."
  18330. msgstr ""
  18331. #. type: item
  18332. #: guix-git/doc/guix.texi:12337
  18333. #, no-wrap
  18334. msgid "--type=@var{updater}"
  18335. msgstr ""
  18336. #. type: itemx
  18337. #: guix-git/doc/guix.texi:12338
  18338. #, no-wrap
  18339. msgid "-t @var{updater}"
  18340. msgstr ""
  18341. #. type: table
  18342. #: guix-git/doc/guix.texi:12341
  18343. msgid "Select only packages handled by @var{updater} (may be a comma-separated list of updaters). Currently, @var{updater} may be one of:"
  18344. msgstr ""
  18345. #. type: table
  18346. #: guix-git/doc/guix.texi:12345
  18347. msgid "the updater for GNU packages;"
  18348. msgstr ""
  18349. #. type: item
  18350. #: guix-git/doc/guix.texi:12345
  18351. #, no-wrap
  18352. msgid "savannah"
  18353. msgstr ""
  18354. #. type: table
  18355. #: guix-git/doc/guix.texi:12347
  18356. msgid "the updater for packages hosted at @uref{https://savannah.gnu.org, Savannah};"
  18357. msgstr ""
  18358. #. type: item
  18359. #: guix-git/doc/guix.texi:12347
  18360. #, no-wrap
  18361. msgid "sourceforge"
  18362. msgstr ""
  18363. #. type: table
  18364. #: guix-git/doc/guix.texi:12349
  18365. msgid "the updater for packages hosted at @uref{https://sourceforge.net, SourceForge};"
  18366. msgstr ""
  18367. #. type: item
  18368. #: guix-git/doc/guix.texi:12349
  18369. #, no-wrap
  18370. msgid "gnome"
  18371. msgstr ""
  18372. #. type: table
  18373. #: guix-git/doc/guix.texi:12351
  18374. msgid "the updater for GNOME packages;"
  18375. msgstr ""
  18376. #. type: item
  18377. #: guix-git/doc/guix.texi:12351
  18378. #, no-wrap
  18379. msgid "kde"
  18380. msgstr ""
  18381. #. type: table
  18382. #: guix-git/doc/guix.texi:12353
  18383. msgid "the updater for KDE packages;"
  18384. msgstr ""
  18385. #. type: item
  18386. #: guix-git/doc/guix.texi:12353
  18387. #, no-wrap
  18388. msgid "xorg"
  18389. msgstr ""
  18390. #. type: table
  18391. #: guix-git/doc/guix.texi:12355
  18392. msgid "the updater for X.org packages;"
  18393. msgstr ""
  18394. #. type: item
  18395. #: guix-git/doc/guix.texi:12355
  18396. #, no-wrap
  18397. msgid "kernel.org"
  18398. msgstr ""
  18399. #. type: table
  18400. #: guix-git/doc/guix.texi:12357
  18401. msgid "the updater for packages hosted on kernel.org;"
  18402. msgstr ""
  18403. #. type: table
  18404. #: guix-git/doc/guix.texi:12359
  18405. msgid "the updater for @uref{https://wiki.call-cc.org/eggs/, Egg} packages;"
  18406. msgstr ""
  18407. #. type: table
  18408. #: guix-git/doc/guix.texi:12361
  18409. msgid "the updater for @uref{https://elpa.gnu.org/, ELPA} packages;"
  18410. msgstr ""
  18411. #. type: table
  18412. #: guix-git/doc/guix.texi:12363
  18413. msgid "the updater for @uref{https://cran.r-project.org/, CRAN} packages;"
  18414. msgstr ""
  18415. #. type: item
  18416. #: guix-git/doc/guix.texi:12363
  18417. #, no-wrap
  18418. msgid "bioconductor"
  18419. msgstr ""
  18420. #. type: table
  18421. #: guix-git/doc/guix.texi:12365
  18422. msgid "the updater for @uref{https://www.bioconductor.org/, Bioconductor} R packages;"
  18423. msgstr ""
  18424. #. type: table
  18425. #: guix-git/doc/guix.texi:12367
  18426. msgid "the updater for @uref{https://www.cpan.org/, CPAN} packages;"
  18427. msgstr ""
  18428. #. type: table
  18429. #: guix-git/doc/guix.texi:12369
  18430. msgid "the updater for @uref{https://pypi.python.org, PyPI} packages."
  18431. msgstr ""
  18432. #. type: table
  18433. #: guix-git/doc/guix.texi:12371
  18434. msgid "the updater for @uref{https://rubygems.org, RubyGems} packages."
  18435. msgstr ""
  18436. #. type: item
  18437. #: guix-git/doc/guix.texi:12371
  18438. #, no-wrap
  18439. msgid "github"
  18440. msgstr ""
  18441. #. type: table
  18442. #: guix-git/doc/guix.texi:12373
  18443. msgid "the updater for @uref{https://github.com, GitHub} packages."
  18444. msgstr ""
  18445. #. type: table
  18446. #: guix-git/doc/guix.texi:12375
  18447. msgid "the updater for @uref{https://hackage.haskell.org, Hackage} packages."
  18448. msgstr ""
  18449. #. type: table
  18450. #: guix-git/doc/guix.texi:12377
  18451. msgid "the updater for @uref{https://www.stackage.org, Stackage} packages."
  18452. msgstr ""
  18453. #. type: table
  18454. #: guix-git/doc/guix.texi:12379
  18455. msgid "the updater for @uref{https://crates.io, Crates} packages."
  18456. msgstr ""
  18457. #. type: item
  18458. #: guix-git/doc/guix.texi:12379
  18459. #, no-wrap
  18460. msgid "launchpad"
  18461. msgstr ""
  18462. #. type: table
  18463. #: guix-git/doc/guix.texi:12381
  18464. msgid "the updater for @uref{https://launchpad.net, Launchpad} packages."
  18465. msgstr ""
  18466. #. type: item
  18467. #: guix-git/doc/guix.texi:12381
  18468. #, no-wrap
  18469. msgid "generic-html"
  18470. msgstr ""
  18471. #. type: table
  18472. #: guix-git/doc/guix.texi:12384
  18473. msgid "a generic updater that crawls the HTML page where the source tarball of the package is hosted, when applicable."
  18474. msgstr ""
  18475. #. type: item
  18476. #: guix-git/doc/guix.texi:12385
  18477. #, no-wrap
  18478. msgid "generic-git"
  18479. msgstr ""
  18480. #. type: table
  18481. #: guix-git/doc/guix.texi:12390
  18482. 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."
  18483. msgstr ""
  18484. #. type: item
  18485. #: guix-git/doc/guix.texi:12392
  18486. #, no-wrap
  18487. msgid "@code{release-tag-prefix}: a regular expression for matching a prefix of"
  18488. msgstr ""
  18489. #. type: itemize
  18490. #: guix-git/doc/guix.texi:12394 guix-git/doc/guix.texi:12397
  18491. #, fuzzy
  18492. msgid "the tag name."
  18493. msgstr "仓库monad"
  18494. #. type: item
  18495. #: guix-git/doc/guix.texi:12395
  18496. #, no-wrap
  18497. msgid "@code{release-tag-suffix}: a regular expression for matching a suffix of"
  18498. msgstr ""
  18499. #. type: item
  18500. #: guix-git/doc/guix.texi:12398
  18501. #, no-wrap
  18502. msgid "@code{release-tag-version-delimiter}: a string used as the delimiter in"
  18503. msgstr ""
  18504. #. type: itemize
  18505. #: guix-git/doc/guix.texi:12400
  18506. msgid "the tag name for separating the numbers of the version."
  18507. msgstr ""
  18508. #. type: item
  18509. #: guix-git/doc/guix.texi:12401
  18510. #, no-wrap
  18511. msgid "@code{accept-pre-releases}: by default, the updater will ignore"
  18512. msgstr ""
  18513. #. type: itemize
  18514. #: guix-git/doc/guix.texi:12404
  18515. msgid "pre-releases; to make it also look for pre-releases, set the this property to @code{#t}."
  18516. msgstr ""
  18517. #. type: lisp
  18518. #: guix-git/doc/guix.texi:12415
  18519. #, no-wrap
  18520. msgid ""
  18521. "(package\n"
  18522. " (name \"foo\")\n"
  18523. " ;; ...\n"
  18524. " (properties\n"
  18525. " '((release-tag-prefix . \"^release0-\")\n"
  18526. " (release-tag-suffix . \"[a-z]?$\")\n"
  18527. " (release-tag-version-delimiter . \":\"))))\n"
  18528. msgstr ""
  18529. #. type: table
  18530. #: guix-git/doc/guix.texi:12422
  18531. 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:"
  18532. msgstr ""
  18533. #. type: example
  18534. #: guix-git/doc/guix.texi:12427
  18535. #, no-wrap
  18536. msgid ""
  18537. "$ guix refresh --type=elpa,cran\n"
  18538. "gnu/packages/statistics.scm:819:13: r-testthat would be upgraded from 0.10.0 to 0.11.0\n"
  18539. "gnu/packages/emacs.scm:856:13: emacs-auctex would be upgraded from 11.88.6 to 11.88.9\n"
  18540. msgstr ""
  18541. #. type: item
  18542. #: guix-git/doc/guix.texi:12429
  18543. #, no-wrap
  18544. msgid "--list-updaters"
  18545. msgstr ""
  18546. #. type: itemx
  18547. #: guix-git/doc/guix.texi:12430
  18548. #, no-wrap
  18549. msgid "-L"
  18550. msgstr ""
  18551. #. type: table
  18552. #: guix-git/doc/guix.texi:12432
  18553. msgid "List available updaters and exit (see @option{--type} above)."
  18554. msgstr ""
  18555. #. type: table
  18556. #: guix-git/doc/guix.texi:12435
  18557. msgid "For each updater, display the fraction of packages it covers; at the end, display the fraction of packages covered by all these updaters."
  18558. msgstr ""
  18559. #. type: Plain text
  18560. #: guix-git/doc/guix.texi:12439
  18561. msgid "In addition, @command{guix refresh} can be passed one or more package names, as in this example:"
  18562. msgstr ""
  18563. #. type: example
  18564. #: guix-git/doc/guix.texi:12442
  18565. #, no-wrap
  18566. msgid "$ ./pre-inst-env guix refresh -u emacs idutils gcc@@4.8\n"
  18567. msgstr ""
  18568. #. type: Plain text
  18569. #: guix-git/doc/guix.texi:12449
  18570. 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:"
  18571. msgstr ""
  18572. #. type: example
  18573. #: guix-git/doc/guix.texi:12453
  18574. #, no-wrap
  18575. msgid ""
  18576. "$ ./pre-inst-env guix refresh -u \\\n"
  18577. " $(guix package --list-installed | cut -f1)\n"
  18578. msgstr ""
  18579. #. type: Plain text
  18580. #: guix-git/doc/guix.texi:12459
  18581. 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:"
  18582. msgstr ""
  18583. #. type: item
  18584. #: guix-git/doc/guix.texi:12462
  18585. #, no-wrap
  18586. msgid "--list-dependent"
  18587. msgstr ""
  18588. #. type: itemx
  18589. #: guix-git/doc/guix.texi:12463 guix-git/doc/guix.texi:12722
  18590. #, no-wrap
  18591. msgid "-l"
  18592. msgstr ""
  18593. #. type: table
  18594. #: guix-git/doc/guix.texi:12466
  18595. msgid "List top-level dependent packages that would need to be rebuilt as a result of upgrading one or more packages."
  18596. msgstr ""
  18597. #. type: table
  18598. #: guix-git/doc/guix.texi:12470
  18599. 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."
  18600. msgstr ""
  18601. #. type: Plain text
  18602. #: guix-git/doc/guix.texi:12476
  18603. 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."
  18604. msgstr ""
  18605. #. type: example
  18606. #: guix-git/doc/guix.texi:12481
  18607. #, no-wrap
  18608. msgid ""
  18609. "$ guix refresh --list-dependent flex\n"
  18610. "Building the following 120 packages would ensure 213 dependent packages are rebuilt:\n"
  18611. "hop@@2.4.0 emacs-geiser@@0.13 notmuch@@0.18 mu@@0.9.9.5 cflow@@1.4 idutils@@4.6 @dots{}\n"
  18612. msgstr ""
  18613. #. type: Plain text
  18614. #: guix-git/doc/guix.texi:12485
  18615. msgid "The command above lists a set of packages that could be built to check for compatibility with an upgraded @code{flex} package."
  18616. msgstr ""
  18617. #. type: item
  18618. #: guix-git/doc/guix.texi:12488
  18619. #, no-wrap
  18620. msgid "--list-transitive"
  18621. msgstr ""
  18622. #. type: table
  18623. #: guix-git/doc/guix.texi:12490
  18624. msgid "List all the packages which one or more packages depend upon."
  18625. msgstr ""
  18626. #. type: example
  18627. #: guix-git/doc/guix.texi:12495
  18628. #, no-wrap
  18629. msgid ""
  18630. "$ guix refresh --list-transitive flex\n"
  18631. "flex@@2.6.4 depends on the following 25 packages: perl@@5.28.0 help2man@@1.47.6\n"
  18632. "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"
  18633. msgstr ""
  18634. #. type: Plain text
  18635. #: guix-git/doc/guix.texi:12501
  18636. msgid "The command above lists a set of packages which, when changed, would cause @code{flex} to be rebuilt."
  18637. msgstr ""
  18638. #. type: Plain text
  18639. #: guix-git/doc/guix.texi:12503
  18640. msgid "The following options can be used to customize GnuPG operation:"
  18641. msgstr ""
  18642. #. type: item
  18643. #: guix-git/doc/guix.texi:12506
  18644. #, no-wrap
  18645. msgid "--gpg=@var{command}"
  18646. msgstr ""
  18647. #. type: table
  18648. #: guix-git/doc/guix.texi:12509
  18649. msgid "Use @var{command} as the GnuPG 2.x command. @var{command} is searched for in @code{$PATH}."
  18650. msgstr ""
  18651. #. type: item
  18652. #: guix-git/doc/guix.texi:12510
  18653. #, no-wrap
  18654. msgid "--keyring=@var{file}"
  18655. msgstr ""
  18656. #. type: table
  18657. #: guix-git/doc/guix.texi:12516
  18658. 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)."
  18659. msgstr ""
  18660. #. type: table
  18661. #: guix-git/doc/guix.texi:12522
  18662. 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)."
  18663. msgstr ""
  18664. #. type: table
  18665. #: guix-git/doc/guix.texi:12525
  18666. msgid "You can export keys from your default GPG keyring into a keybox file using commands like this one:"
  18667. msgstr ""
  18668. #. type: example
  18669. #: guix-git/doc/guix.texi:12528
  18670. #, no-wrap
  18671. msgid "gpg --export rms@@gnu.org | kbxutil --import-openpgp >> mykeyring.kbx\n"
  18672. msgstr ""
  18673. #. type: table
  18674. #: guix-git/doc/guix.texi:12531
  18675. msgid "Likewise, you can fetch keys to a specific keybox file like this:"
  18676. msgstr ""
  18677. #. type: example
  18678. #: guix-git/doc/guix.texi:12535
  18679. #, no-wrap
  18680. msgid ""
  18681. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  18682. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  18683. msgstr ""
  18684. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  18685. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  18686. #. type: table
  18687. #: guix-git/doc/guix.texi:12539
  18688. msgid "@xref{GPG Configuration Options, @option{--keyring},, gnupg, Using the GNU Privacy Guard}, for more information on GPG's @option{--keyring} option."
  18689. msgstr ""
  18690. #. type: table
  18691. #: guix-git/doc/guix.texi:12543
  18692. msgid "Handle missing OpenPGP keys according to @var{policy}, which may be one of:"
  18693. msgstr ""
  18694. #. type: item
  18695. #: guix-git/doc/guix.texi:12545 guix-git/doc/guix.texi:21708
  18696. #, no-wrap
  18697. msgid "always"
  18698. msgstr ""
  18699. #. type: table
  18700. #: guix-git/doc/guix.texi:12548
  18701. msgid "Always download missing OpenPGP keys from the key server, and add them to the user's GnuPG keyring."
  18702. msgstr ""
  18703. #. type: item
  18704. #: guix-git/doc/guix.texi:12549 guix-git/doc/guix.texi:21710
  18705. #, no-wrap
  18706. msgid "never"
  18707. msgstr ""
  18708. #. type: table
  18709. #: guix-git/doc/guix.texi:12551
  18710. msgid "Never try to download missing OpenPGP keys. Instead just bail out."
  18711. msgstr ""
  18712. #. type: item
  18713. #: guix-git/doc/guix.texi:12552
  18714. #, no-wrap
  18715. msgid "interactive"
  18716. msgstr ""
  18717. #. type: table
  18718. #: guix-git/doc/guix.texi:12555
  18719. 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."
  18720. msgstr ""
  18721. #. type: item
  18722. #: guix-git/doc/guix.texi:12557
  18723. #, no-wrap
  18724. msgid "--key-server=@var{host}"
  18725. msgstr ""
  18726. #. type: table
  18727. #: guix-git/doc/guix.texi:12559
  18728. msgid "Use @var{host} as the OpenPGP key server when importing a public key."
  18729. msgstr ""
  18730. #. type: Plain text
  18731. #: guix-git/doc/guix.texi:12579
  18732. 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."
  18733. msgstr ""
  18734. #. type: section
  18735. #: guix-git/doc/guix.texi:12582
  18736. #, no-wrap
  18737. msgid "Invoking @command{guix lint}"
  18738. msgstr ""
  18739. #. type: command{#1}
  18740. #: guix-git/doc/guix.texi:12584
  18741. #, no-wrap
  18742. msgid "guix lint"
  18743. msgstr ""
  18744. #. type: cindex
  18745. #: guix-git/doc/guix.texi:12585
  18746. #, no-wrap
  18747. msgid "package, checking for errors"
  18748. msgstr ""
  18749. #. type: Plain text
  18750. #: guix-git/doc/guix.texi:12591
  18751. 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):"
  18752. msgstr ""
  18753. #. type: table
  18754. #: guix-git/doc/guix.texi:12597
  18755. msgid "Validate certain typographical and stylistic rules about package descriptions and synopses."
  18756. msgstr ""
  18757. #. type: item
  18758. #: guix-git/doc/guix.texi:12598
  18759. #, no-wrap
  18760. msgid "inputs-should-be-native"
  18761. msgstr ""
  18762. #. type: table
  18763. #: guix-git/doc/guix.texi:12600
  18764. msgid "Identify inputs that should most likely be native inputs."
  18765. msgstr ""
  18766. #. type: itemx
  18767. #: guix-git/doc/guix.texi:12603
  18768. #, no-wrap
  18769. msgid "mirror-url"
  18770. msgstr ""
  18771. #. type: itemx
  18772. #: guix-git/doc/guix.texi:12604
  18773. #, no-wrap
  18774. msgid "github-url"
  18775. msgstr ""
  18776. #. type: itemx
  18777. #: guix-git/doc/guix.texi:12605
  18778. #, no-wrap
  18779. msgid "source-file-name"
  18780. msgstr ""
  18781. #. type: table
  18782. #: guix-git/doc/guix.texi:12612
  18783. 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})."
  18784. msgstr ""
  18785. #. type: item
  18786. #: guix-git/doc/guix.texi:12613
  18787. #, no-wrap
  18788. msgid "source-unstable-tarball"
  18789. msgstr ""
  18790. #. type: table
  18791. #: guix-git/doc/guix.texi:12617
  18792. 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."
  18793. msgstr ""
  18794. #. type: table
  18795. #: guix-git/doc/guix.texi:12621
  18796. msgid "Check that the derivation of the given packages can be successfully computed for all the supported systems (@pxref{Derivations})."
  18797. msgstr ""
  18798. #. type: item
  18799. #: guix-git/doc/guix.texi:12622
  18800. #, no-wrap
  18801. msgid "profile-collisions"
  18802. msgstr ""
  18803. #. type: table
  18804. #: guix-git/doc/guix.texi:12628
  18805. 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."
  18806. msgstr ""
  18807. #. type: item
  18808. #: guix-git/doc/guix.texi:12629
  18809. #, no-wrap
  18810. msgid "archival"
  18811. msgstr ""
  18812. #. type: cindex
  18813. #: guix-git/doc/guix.texi:12630
  18814. #, no-wrap
  18815. msgid "Software Heritage, source code archive"
  18816. msgstr ""
  18817. #. type: cindex
  18818. #: guix-git/doc/guix.texi:12631
  18819. #, no-wrap
  18820. msgid "archival of source code, Software Heritage"
  18821. msgstr ""
  18822. #. type: table
  18823. #: guix-git/doc/guix.texi:12634
  18824. msgid "Checks whether the package's source code is archived at @uref{https://www.softwareheritage.org, Software Heritage}."
  18825. msgstr ""
  18826. #. type: table
  18827. #: guix-git/doc/guix.texi:12642
  18828. 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}."
  18829. msgstr ""
  18830. #. type: table
  18831. #: guix-git/doc/guix.texi:12647
  18832. 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."
  18833. msgstr ""
  18834. #. type: table
  18835. #: guix-git/doc/guix.texi:12653
  18836. 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."
  18837. msgstr ""
  18838. #. type: item
  18839. #: guix-git/doc/guix.texi:12654
  18840. #, no-wrap
  18841. msgid "cve"
  18842. msgstr ""
  18843. #. type: cindex
  18844. #: guix-git/doc/guix.texi:12655 guix-git/doc/guix.texi:37000
  18845. #, no-wrap
  18846. msgid "security vulnerabilities"
  18847. msgstr ""
  18848. #. type: cindex
  18849. #: guix-git/doc/guix.texi:12656
  18850. #, no-wrap
  18851. msgid "CVE, Common Vulnerabilities and Exposures"
  18852. msgstr ""
  18853. #. type: table
  18854. #: guix-git/doc/guix.texi:12661
  18855. 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}."
  18856. msgstr ""
  18857. #. type: table
  18858. #: guix-git/doc/guix.texi:12663
  18859. msgid "To view information about a particular vulnerability, visit pages such as:"
  18860. msgstr ""
  18861. #. type: indicateurl{#1}
  18862. #: guix-git/doc/guix.texi:12667
  18863. msgid "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-YYYY-ABCD"
  18864. msgstr ""
  18865. #. type: indicateurl{#1}
  18866. #: guix-git/doc/guix.texi:12669
  18867. msgid "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-YYYY-ABCD"
  18868. msgstr ""
  18869. #. type: table
  18870. #: guix-git/doc/guix.texi:12674
  18871. msgid "where @code{CVE-YYYY-ABCD} is the CVE identifier---e.g., @code{CVE-2015-7554}."
  18872. msgstr ""
  18873. #. type: table
  18874. #: guix-git/doc/guix.texi:12679
  18875. 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:"
  18876. msgstr ""
  18877. #. type: lisp
  18878. #: guix-git/doc/guix.texi:12687
  18879. #, no-wrap
  18880. msgid ""
  18881. "(package\n"
  18882. " (name \"grub\")\n"
  18883. " ;; @dots{}\n"
  18884. " ;; CPE calls this package \"grub2\".\n"
  18885. " (properties '((cpe-name . \"grub2\")\n"
  18886. " (cpe-version . \"2.3\"))))\n"
  18887. msgstr ""
  18888. #. type: table
  18889. #: guix-git/doc/guix.texi:12694
  18890. 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:"
  18891. msgstr ""
  18892. #. type: lisp
  18893. #: guix-git/doc/guix.texi:12704
  18894. #, no-wrap
  18895. msgid ""
  18896. "(package\n"
  18897. " (name \"t1lib\")\n"
  18898. " ;; @dots{}\n"
  18899. " ;; These CVEs no longer apply and can be safely ignored.\n"
  18900. " (properties `((lint-hidden-cve . (\"CVE-2011-0433\"\n"
  18901. " \"CVE-2011-1553\"\n"
  18902. " \"CVE-2011-1554\"\n"
  18903. " \"CVE-2011-5244\")))))\n"
  18904. msgstr ""
  18905. #. type: item
  18906. #: guix-git/doc/guix.texi:12706
  18907. #, no-wrap
  18908. msgid "formatting"
  18909. msgstr ""
  18910. #. type: table
  18911. #: guix-git/doc/guix.texi:12709
  18912. msgid "Warn about obvious source code formatting issues: trailing white space, use of tabulations, etc."
  18913. msgstr ""
  18914. #. type: example
  18915. #: guix-git/doc/guix.texi:12715
  18916. #, no-wrap
  18917. msgid "guix lint @var{options} @var{package}@dots{}\n"
  18918. msgstr ""
  18919. #. type: Plain text
  18920. #: guix-git/doc/guix.texi:12719
  18921. 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:"
  18922. msgstr ""
  18923. #. type: item
  18924. #: guix-git/doc/guix.texi:12721
  18925. #, no-wrap
  18926. msgid "--list-checkers"
  18927. msgstr ""
  18928. #. type: table
  18929. #: guix-git/doc/guix.texi:12725
  18930. msgid "List and describe all the available checkers that will be run on packages and exit."
  18931. msgstr ""
  18932. #. type: item
  18933. #: guix-git/doc/guix.texi:12726
  18934. #, no-wrap
  18935. msgid "--checkers"
  18936. msgstr ""
  18937. #. type: itemx
  18938. #: guix-git/doc/guix.texi:12727
  18939. #, no-wrap
  18940. msgid "-c"
  18941. msgstr ""
  18942. #. type: table
  18943. #: guix-git/doc/guix.texi:12730
  18944. msgid "Only enable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  18945. msgstr ""
  18946. #. type: item
  18947. #: guix-git/doc/guix.texi:12731
  18948. #, no-wrap
  18949. msgid "--exclude"
  18950. msgstr ""
  18951. #. type: table
  18952. #: guix-git/doc/guix.texi:12735
  18953. msgid "Only disable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  18954. msgstr ""
  18955. #. type: item
  18956. #: guix-git/doc/guix.texi:12736
  18957. #, no-wrap
  18958. msgid "--no-network"
  18959. msgstr ""
  18960. #. type: table
  18961. #: guix-git/doc/guix.texi:12739
  18962. msgid "Only enable the checkers that do not depend on Internet access."
  18963. msgstr ""
  18964. #. type: section
  18965. #: guix-git/doc/guix.texi:12751
  18966. #, no-wrap
  18967. msgid "Invoking @command{guix size}"
  18968. msgstr ""
  18969. #. type: code{#1}
  18970. #: guix-git/doc/guix.texi:12753 guix-git/doc/guix.texi:35072
  18971. #, no-wrap
  18972. msgid "size"
  18973. msgstr ""
  18974. #. type: cindex
  18975. #: guix-git/doc/guix.texi:12754
  18976. #, no-wrap
  18977. msgid "package size"
  18978. msgstr ""
  18979. #. type: command{#1}
  18980. #: guix-git/doc/guix.texi:12756
  18981. #, no-wrap
  18982. msgid "guix size"
  18983. msgstr ""
  18984. #. type: Plain text
  18985. #: guix-git/doc/guix.texi:12763
  18986. 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."
  18987. msgstr ""
  18988. #. type: Plain text
  18989. #: guix-git/doc/guix.texi:12768
  18990. 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:"
  18991. msgstr ""
  18992. #. type: example
  18993. #: guix-git/doc/guix.texi:12781
  18994. #, no-wrap
  18995. msgid ""
  18996. "$ guix size coreutils\n"
  18997. "store item total self\n"
  18998. "/gnu/store/@dots{}-gcc-5.5.0-lib 60.4 30.1 38.1%\n"
  18999. "/gnu/store/@dots{}-glibc-2.27 30.3 28.8 36.6%\n"
  19000. "/gnu/store/@dots{}-coreutils-8.28 78.9 15.0 19.0%\n"
  19001. "/gnu/store/@dots{}-gmp-6.1.2 63.1 2.7 3.4%\n"
  19002. "/gnu/store/@dots{}-bash-static-4.4.12 1.5 1.5 1.9%\n"
  19003. "/gnu/store/@dots{}-acl-2.2.52 61.1 0.4 0.5%\n"
  19004. "/gnu/store/@dots{}-attr-2.4.47 60.6 0.2 0.3%\n"
  19005. "/gnu/store/@dots{}-libcap-2.25 60.5 0.2 0.2%\n"
  19006. "total: 78.9 MiB\n"
  19007. msgstr ""
  19008. #. type: Plain text
  19009. #: guix-git/doc/guix.texi:12787
  19010. 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:"
  19011. msgstr ""
  19012. #. type: example
  19013. #: guix-git/doc/guix.texi:12790
  19014. #, no-wrap
  19015. msgid "$ guix gc -R /gnu/store/@dots{}-coreutils-8.23\n"
  19016. msgstr ""
  19017. #. type: Plain text
  19018. #: guix-git/doc/guix.texi:12798
  19019. 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."
  19020. msgstr ""
  19021. #. type: Plain text
  19022. #: guix-git/doc/guix.texi:12804
  19023. 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.)"
  19024. msgstr ""
  19025. #. type: Plain text
  19026. #: guix-git/doc/guix.texi:12807
  19027. msgid "Since the command also accepts store file names, assessing the size of a build result is straightforward:"
  19028. msgstr ""
  19029. #. type: example
  19030. #: guix-git/doc/guix.texi:12810
  19031. #, no-wrap
  19032. msgid "guix size $(guix system build config.scm)\n"
  19033. msgstr ""
  19034. #. type: Plain text
  19035. #: guix-git/doc/guix.texi:12820
  19036. 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})."
  19037. msgstr ""
  19038. #. type: Plain text
  19039. #: guix-git/doc/guix.texi:12825
  19040. 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."
  19041. msgstr ""
  19042. #. type: Plain text
  19043. #: guix-git/doc/guix.texi:12827
  19044. msgid "You can also specify several package names:"
  19045. msgstr ""
  19046. #. type: example
  19047. #: guix-git/doc/guix.texi:12837
  19048. #, no-wrap
  19049. msgid ""
  19050. "$ guix size coreutils grep sed bash\n"
  19051. "store item total self\n"
  19052. "/gnu/store/@dots{}-coreutils-8.24 77.8 13.8 13.4%\n"
  19053. "/gnu/store/@dots{}-grep-2.22 73.1 0.8 0.8%\n"
  19054. "/gnu/store/@dots{}-bash-4.3.42 72.3 4.7 4.6%\n"
  19055. "/gnu/store/@dots{}-readline-6.3 67.6 1.2 1.2%\n"
  19056. "@dots{}\n"
  19057. "total: 102.3 MiB\n"
  19058. msgstr ""
  19059. #. type: Plain text
  19060. #: guix-git/doc/guix.texi:12843
  19061. 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."
  19062. msgstr ""
  19063. #. type: Plain text
  19064. #: guix-git/doc/guix.texi:12849
  19065. 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})."
  19066. msgstr ""
  19067. #. type: Plain text
  19068. #: guix-git/doc/guix.texi:12851
  19069. msgid "The available options are:"
  19070. msgstr ""
  19071. #. type: table
  19072. #: guix-git/doc/guix.texi:12857
  19073. msgid "Use substitute information from @var{urls}. @xref{client-substitute-urls, the same option for @code{guix build}}."
  19074. msgstr ""
  19075. #. type: item
  19076. #: guix-git/doc/guix.texi:12858
  19077. #, no-wrap
  19078. msgid "--sort=@var{key}"
  19079. msgstr ""
  19080. #. type: table
  19081. #: guix-git/doc/guix.texi:12860
  19082. msgid "Sort lines according to @var{key}, one of the following options:"
  19083. msgstr ""
  19084. #. type: item
  19085. #: guix-git/doc/guix.texi:12862
  19086. #, no-wrap
  19087. msgid "self"
  19088. msgstr ""
  19089. #. type: table
  19090. #: guix-git/doc/guix.texi:12864
  19091. msgid "the size of each item (the default);"
  19092. msgstr ""
  19093. #. type: table
  19094. #: guix-git/doc/guix.texi:12866
  19095. msgid "the total size of the item's closure."
  19096. msgstr ""
  19097. #. type: item
  19098. #: guix-git/doc/guix.texi:12868
  19099. #, no-wrap
  19100. msgid "--map-file=@var{file}"
  19101. msgstr ""
  19102. #. type: table
  19103. #: guix-git/doc/guix.texi:12870
  19104. msgid "Write a graphical map of disk usage in PNG format to @var{file}."
  19105. msgstr ""
  19106. #. type: table
  19107. #: guix-git/doc/guix.texi:12872
  19108. msgid "For the example above, the map looks like this:"
  19109. msgstr ""
  19110. #. type: table
  19111. #: guix-git/doc/guix.texi:12875
  19112. msgid "@image{images/coreutils-size-map,5in,, map of Coreutils disk usage produced by @command{guix size}}"
  19113. msgstr ""
  19114. #. type: table
  19115. #: guix-git/doc/guix.texi:12880
  19116. 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."
  19117. msgstr ""
  19118. #. type: table
  19119. #: guix-git/doc/guix.texi:12884
  19120. msgid "Consider packages for @var{system}---e.g., @code{x86_64-linux}."
  19121. msgstr ""
  19122. #. type: section
  19123. #: guix-git/doc/guix.texi:12895
  19124. #, no-wrap
  19125. msgid "Invoking @command{guix graph}"
  19126. msgstr ""
  19127. #. type: cindex
  19128. #: guix-git/doc/guix.texi:12897
  19129. #, no-wrap
  19130. msgid "DAG"
  19131. msgstr ""
  19132. #. type: command{#1}
  19133. #: guix-git/doc/guix.texi:12898
  19134. #, no-wrap
  19135. msgid "guix graph"
  19136. msgstr ""
  19137. #. type: Plain text
  19138. #: guix-git/doc/guix.texi:12913
  19139. 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:"
  19140. msgstr ""
  19141. #. type: example
  19142. #: guix-git/doc/guix.texi:12916
  19143. #, no-wrap
  19144. msgid "guix graph @var{options} @var{package}@dots{}\n"
  19145. msgstr ""
  19146. #. type: Plain text
  19147. #: guix-git/doc/guix.texi:12921
  19148. 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:"
  19149. msgstr ""
  19150. #. type: example
  19151. #: guix-git/doc/guix.texi:12924
  19152. #, no-wrap
  19153. msgid "guix graph coreutils | dot -Tpdf > dag.pdf\n"
  19154. msgstr ""
  19155. #. type: Plain text
  19156. #: guix-git/doc/guix.texi:12927
  19157. msgid "The output looks like this:"
  19158. msgstr ""
  19159. #. type: Plain text
  19160. #: guix-git/doc/guix.texi:12929
  19161. msgid "@image{images/coreutils-graph,2in,,Dependency graph of the GNU Coreutils}"
  19162. msgstr ""
  19163. #. type: Plain text
  19164. #: guix-git/doc/guix.texi:12931
  19165. msgid "Nice little graph, no?"
  19166. msgstr ""
  19167. #. type: Plain text
  19168. #: guix-git/doc/guix.texi:12934
  19169. msgid "You may find it more pleasant to navigate the graph interactively with @command{xdot} (from the @code{xdot} package):"
  19170. msgstr ""
  19171. #. type: example
  19172. #: guix-git/doc/guix.texi:12937
  19173. #, no-wrap
  19174. msgid "guix graph coreutils | xdot -\n"
  19175. msgstr ""
  19176. #. type: Plain text
  19177. #: guix-git/doc/guix.texi:12944
  19178. 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:"
  19179. msgstr ""
  19180. #. type: table
  19181. #: guix-git/doc/guix.texi:12950
  19182. 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."
  19183. msgstr ""
  19184. #. type: item
  19185. #: guix-git/doc/guix.texi:12951
  19186. #, no-wrap
  19187. msgid "reverse-package"
  19188. msgstr ""
  19189. #. type: table
  19190. #: guix-git/doc/guix.texi:12953
  19191. msgid "This shows the @emph{reverse} DAG of packages. For example:"
  19192. msgstr ""
  19193. #. type: example
  19194. #: guix-git/doc/guix.texi:12956
  19195. #, no-wrap
  19196. msgid "guix graph --type=reverse-package ocaml\n"
  19197. msgstr ""
  19198. #. type: table
  19199. #: guix-git/doc/guix.texi:12961
  19200. 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)."
  19201. msgstr ""
  19202. #. type: table
  19203. #: guix-git/doc/guix.texi:12966
  19204. 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}})."
  19205. msgstr ""
  19206. #. type: item
  19207. #: guix-git/doc/guix.texi:12967
  19208. #, no-wrap
  19209. msgid "bag-emerged"
  19210. msgstr ""
  19211. #. type: table
  19212. #: guix-git/doc/guix.texi:12969
  19213. msgid "This is the package DAG, @emph{including} implicit inputs."
  19214. msgstr ""
  19215. #. type: table
  19216. #: guix-git/doc/guix.texi:12971
  19217. msgid "For instance, the following command:"
  19218. msgstr ""
  19219. #. type: example
  19220. #: guix-git/doc/guix.texi:12974
  19221. #, no-wrap
  19222. msgid "guix graph --type=bag-emerged coreutils\n"
  19223. msgstr ""
  19224. #. type: table
  19225. #: guix-git/doc/guix.texi:12977
  19226. msgid "...@: yields this bigger graph:"
  19227. msgstr ""
  19228. #. type: table
  19229. #: guix-git/doc/guix.texi:12979
  19230. msgid "@image{images/coreutils-bag-graph,,5in,Detailed dependency graph of the GNU Coreutils}"
  19231. msgstr ""
  19232. #. type: table
  19233. #: guix-git/doc/guix.texi:12982
  19234. 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}})."
  19235. msgstr ""
  19236. #. type: table
  19237. #: guix-git/doc/guix.texi:12986
  19238. msgid "Now, note that the dependencies of these implicit inputs---that is, the @dfn{bootstrap dependencies} (@pxref{Bootstrapping})---are not shown here, for conciseness."
  19239. msgstr ""
  19240. #. type: item
  19241. #: guix-git/doc/guix.texi:12987
  19242. #, no-wrap
  19243. msgid "bag"
  19244. msgstr ""
  19245. #. type: table
  19246. #: guix-git/doc/guix.texi:12990
  19247. msgid "Similar to @code{bag-emerged}, but this time including all the bootstrap dependencies."
  19248. msgstr ""
  19249. #. type: item
  19250. #: guix-git/doc/guix.texi:12991
  19251. #, no-wrap
  19252. msgid "bag-with-origins"
  19253. msgstr ""
  19254. #. type: table
  19255. #: guix-git/doc/guix.texi:12993
  19256. msgid "Similar to @code{bag}, but also showing origins and their dependencies."
  19257. msgstr ""
  19258. #. type: item
  19259. #: guix-git/doc/guix.texi:12994
  19260. #, no-wrap
  19261. msgid "reverse-bag"
  19262. msgstr ""
  19263. #. type: table
  19264. #: guix-git/doc/guix.texi:12997
  19265. msgid "This shows the @emph{reverse} DAG of packages. Unlike @code{reverse-package}, it also takes implicit dependencies into account. For example:"
  19266. msgstr ""
  19267. #. type: example
  19268. #: guix-git/doc/guix.texi:13000
  19269. #, no-wrap
  19270. msgid "guix graph -t reverse-bag dune\n"
  19271. msgstr ""
  19272. #. type: table
  19273. #: guix-git/doc/guix.texi:13007
  19274. 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."
  19275. msgstr ""
  19276. #. type: table
  19277. #: guix-git/doc/guix.texi:13013
  19278. 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."
  19279. msgstr ""
  19280. #. type: table
  19281. #: guix-git/doc/guix.texi:13016
  19282. msgid "For this type of graph, it is also possible to pass a @file{.drv} file name instead of a package name, as in:"
  19283. msgstr ""
  19284. #. type: example
  19285. #: guix-git/doc/guix.texi:13019
  19286. #, no-wrap
  19287. msgid "guix graph -t derivation $(guix system build -d my-config.scm)\n"
  19288. msgstr ""
  19289. #. type: item
  19290. #: guix-git/doc/guix.texi:13021
  19291. #, no-wrap
  19292. msgid "module"
  19293. msgstr "模块"
  19294. #. type: table
  19295. #: guix-git/doc/guix.texi:13025
  19296. 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:"
  19297. msgstr ""
  19298. #. type: example
  19299. #: guix-git/doc/guix.texi:13028
  19300. #, no-wrap
  19301. msgid "guix graph -t module guile | xdot -\n"
  19302. msgstr ""
  19303. #. type: Plain text
  19304. #: guix-git/doc/guix.texi:13033
  19305. msgid "All the types above correspond to @emph{build-time dependencies}. The following graph type represents the @emph{run-time dependencies}:"
  19306. msgstr ""
  19307. #. type: table
  19308. #: guix-git/doc/guix.texi:13038
  19309. msgid "This is the graph of @dfn{references} of a package output, as returned by @command{guix gc --references} (@pxref{Invoking guix gc})."
  19310. msgstr ""
  19311. #. type: table
  19312. #: guix-git/doc/guix.texi:13041
  19313. msgid "If the given package output is not available in the store, @command{guix graph} attempts to obtain dependency information from substitutes."
  19314. msgstr ""
  19315. #. type: table
  19316. #: guix-git/doc/guix.texi:13045
  19317. 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!):"
  19318. msgstr ""
  19319. #. type: example
  19320. #: guix-git/doc/guix.texi:13048
  19321. #, no-wrap
  19322. msgid "guix graph -t references $(readlink -f ~/.guix-profile)\n"
  19323. msgstr ""
  19324. #. type: item
  19325. #: guix-git/doc/guix.texi:13050
  19326. #, no-wrap
  19327. msgid "referrers"
  19328. msgstr ""
  19329. #. type: table
  19330. #: guix-git/doc/guix.texi:13053
  19331. msgid "This is the graph of the @dfn{referrers} of a store item, as returned by @command{guix gc --referrers} (@pxref{Invoking guix gc})."
  19332. msgstr ""
  19333. #. type: table
  19334. #: guix-git/doc/guix.texi:13059
  19335. 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."
  19336. msgstr ""
  19337. #. type: table
  19338. #: guix-git/doc/guix.texi:13062
  19339. msgid "It can help determine what is preventing a store item from being garbage collected."
  19340. msgstr ""
  19341. #. type: cindex
  19342. #: guix-git/doc/guix.texi:13065
  19343. #, fuzzy, no-wrap
  19344. msgid "shortest path, between packages"
  19345. msgstr "超过1200个受影响的软件包"
  19346. #. type: Plain text
  19347. #: guix-git/doc/guix.texi:13072
  19348. 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.):"
  19349. msgstr ""
  19350. #. type: example
  19351. #: guix-git/doc/guix.texi:13086
  19352. #, no-wrap
  19353. msgid ""
  19354. "$ guix graph --path emacs libunistring\n"
  19355. "emacs@@26.3\n"
  19356. "mailutils@@3.9\n"
  19357. "libunistring@@0.9.10\n"
  19358. "$ guix graph --path -t derivation emacs libunistring\n"
  19359. "/gnu/store/@dots{}-emacs-26.3.drv\n"
  19360. "/gnu/store/@dots{}-mailutils-3.9.drv\n"
  19361. "/gnu/store/@dots{}-libunistring-0.9.10.drv\n"
  19362. "$ guix graph --path -t references emacs libunistring\n"
  19363. "/gnu/store/@dots{}-emacs-26.3\n"
  19364. "/gnu/store/@dots{}-libidn2-2.2.0\n"
  19365. "/gnu/store/@dots{}-libunistring-0.9.10\n"
  19366. msgstr ""
  19367. #. type: Plain text
  19368. #: guix-git/doc/guix.texi:13094
  19369. 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:"
  19370. msgstr ""
  19371. #. type: example
  19372. #: guix-git/doc/guix.texi:13097
  19373. #, no-wrap
  19374. msgid "guix graph -M 2 libreoffice | xdot -f fdp -\n"
  19375. msgstr ""
  19376. #. type: Plain text
  19377. #: guix-git/doc/guix.texi:13101
  19378. 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."
  19379. msgstr ""
  19380. #. type: Plain text
  19381. #: guix-git/doc/guix.texi:13103
  19382. msgid "The available options are the following:"
  19383. msgstr ""
  19384. #. type: table
  19385. #: guix-git/doc/guix.texi:13109
  19386. msgid "Produce a graph output of @var{type}, where @var{type} must be one of the values listed above."
  19387. msgstr ""
  19388. #. type: item
  19389. #: guix-git/doc/guix.texi:13110
  19390. #, no-wrap
  19391. msgid "--list-types"
  19392. msgstr ""
  19393. #. type: table
  19394. #: guix-git/doc/guix.texi:13112
  19395. msgid "List the supported graph types."
  19396. msgstr ""
  19397. #. type: item
  19398. #: guix-git/doc/guix.texi:13113
  19399. #, no-wrap
  19400. msgid "--backend=@var{backend}"
  19401. msgstr ""
  19402. #. type: itemx
  19403. #: guix-git/doc/guix.texi:13114
  19404. #, no-wrap
  19405. msgid "-b @var{backend}"
  19406. msgstr ""
  19407. #. type: table
  19408. #: guix-git/doc/guix.texi:13116
  19409. msgid "Produce a graph using the selected @var{backend}."
  19410. msgstr ""
  19411. #. type: item
  19412. #: guix-git/doc/guix.texi:13117
  19413. #, no-wrap
  19414. msgid "--list-backends"
  19415. msgstr ""
  19416. #. type: table
  19417. #: guix-git/doc/guix.texi:13119
  19418. msgid "List the supported graph backends."
  19419. msgstr ""
  19420. #. type: table
  19421. #: guix-git/doc/guix.texi:13121
  19422. msgid "Currently, the available backends are Graphviz and d3.js."
  19423. msgstr ""
  19424. #. type: item
  19425. #: guix-git/doc/guix.texi:13122
  19426. #, no-wrap
  19427. msgid "--path"
  19428. msgstr ""
  19429. #. type: table
  19430. #: guix-git/doc/guix.texi:13127
  19431. 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}:"
  19432. msgstr ""
  19433. #. type: example
  19434. #: guix-git/doc/guix.texi:13134
  19435. #, no-wrap
  19436. msgid ""
  19437. "$ guix graph --path -t references libreoffice llvm\n"
  19438. "/gnu/store/@dots{}-libreoffice-6.4.2.2\n"
  19439. "/gnu/store/@dots{}-libepoxy-1.5.4\n"
  19440. "/gnu/store/@dots{}-mesa-19.3.4\n"
  19441. "/gnu/store/@dots{}-llvm-9.0.1\n"
  19442. msgstr ""
  19443. #. type: example
  19444. #: guix-git/doc/guix.texi:13144
  19445. #, no-wrap
  19446. msgid "guix graph -e '(@@@@ (gnu packages commencement) gnu-make-final)'\n"
  19447. msgstr ""
  19448. #. type: table
  19449. #: guix-git/doc/guix.texi:13149
  19450. msgid "Display the graph for @var{system}---e.g., @code{i686-linux}."
  19451. msgstr ""
  19452. #. type: table
  19453. #: guix-git/doc/guix.texi:13152
  19454. msgid "The package dependency graph is largely architecture-independent, but there are some architecture-dependent bits that this option allows you to visualize."
  19455. msgstr ""
  19456. #. type: Plain text
  19457. #: guix-git/doc/guix.texi:13168
  19458. 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:"
  19459. msgstr ""
  19460. #. type: example
  19461. #: guix-git/doc/guix.texi:13171
  19462. #, no-wrap
  19463. msgid "guix graph git --with-input=openssl=libressl\n"
  19464. msgstr ""
  19465. #. type: Plain text
  19466. #: guix-git/doc/guix.texi:13174
  19467. msgid "So many possibilities, so much fun!"
  19468. msgstr ""
  19469. #. type: section
  19470. #: guix-git/doc/guix.texi:13176
  19471. #, no-wrap
  19472. msgid "Invoking @command{guix publish}"
  19473. msgstr ""
  19474. #. type: command{#1}
  19475. #: guix-git/doc/guix.texi:13178
  19476. #, no-wrap
  19477. msgid "guix publish"
  19478. msgstr ""
  19479. #. type: Plain text
  19480. #: guix-git/doc/guix.texi:13182
  19481. 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})."
  19482. msgstr ""
  19483. #. type: Plain text
  19484. #: guix-git/doc/guix.texi:13188
  19485. 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."
  19486. msgstr ""
  19487. #. type: Plain text
  19488. #: guix-git/doc/guix.texi:13194
  19489. 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."
  19490. msgstr ""
  19491. #. type: Plain text
  19492. #: guix-git/doc/guix.texi:13198
  19493. msgid "The signing key pair must be generated before @command{guix publish} is launched, using @command{guix archive --generate-key} (@pxref{Invoking guix archive})."
  19494. msgstr ""
  19495. #. type: Plain text
  19496. #: guix-git/doc/guix.texi:13203
  19497. 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})."
  19498. msgstr ""
  19499. #. type: example
  19500. #: guix-git/doc/guix.texi:13208
  19501. #, no-wrap
  19502. msgid "guix publish @var{options}@dots{}\n"
  19503. msgstr ""
  19504. #. type: Plain text
  19505. #: guix-git/doc/guix.texi:13212
  19506. msgid "Running @command{guix publish} without any additional arguments will spawn an HTTP server on port 8080:"
  19507. msgstr ""
  19508. #. type: example
  19509. #: guix-git/doc/guix.texi:13215
  19510. #, no-wrap
  19511. msgid "guix publish\n"
  19512. msgstr ""
  19513. #. type: Plain text
  19514. #: guix-git/doc/guix.texi:13219
  19515. msgid "Once a publishing server has been authorized, the daemon may download substitutes from it. @xref{Getting Substitutes from Other Servers}."
  19516. msgstr ""
  19517. #. type: Plain text
  19518. #: guix-git/doc/guix.texi:13227
  19519. 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})."
  19520. msgstr ""
  19521. #. type: Plain text
  19522. #: guix-git/doc/guix.texi:13234
  19523. 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}):"
  19524. msgstr ""
  19525. #. type: example
  19526. #: guix-git/doc/guix.texi:13237
  19527. #, no-wrap
  19528. msgid "http://example.org/file/hello-2.10.tar.gz/sha256/0ssi1@dots{}ndq1i\n"
  19529. msgstr ""
  19530. #. type: Plain text
  19531. #: guix-git/doc/guix.texi:13241
  19532. msgid "Obviously, these URLs only work for files that are in the store; in other cases, they return 404 (``Not Found'')."
  19533. msgstr ""
  19534. #. type: cindex
  19535. #: guix-git/doc/guix.texi:13242
  19536. #, no-wrap
  19537. msgid "build logs, publication"
  19538. msgstr ""
  19539. #. type: Plain text
  19540. #: guix-git/doc/guix.texi:13244
  19541. msgid "Build logs are available from @code{/log} URLs like:"
  19542. msgstr ""
  19543. #. type: example
  19544. #: guix-git/doc/guix.texi:13247
  19545. #, no-wrap
  19546. msgid "http://example.org/log/gwspk@dots{}-guile-2.2.3\n"
  19547. msgstr ""
  19548. #. type: Plain text
  19549. #: guix-git/doc/guix.texi:13257
  19550. 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."
  19551. msgstr ""
  19552. #. type: item
  19553. #: guix-git/doc/guix.texi:13261
  19554. #, no-wrap
  19555. msgid "--port=@var{port}"
  19556. msgstr ""
  19557. #. type: itemx
  19558. #: guix-git/doc/guix.texi:13262
  19559. #, no-wrap
  19560. msgid "-p @var{port}"
  19561. msgstr ""
  19562. #. type: table
  19563. #: guix-git/doc/guix.texi:13264
  19564. msgid "Listen for HTTP requests on @var{port}."
  19565. msgstr ""
  19566. #. type: item
  19567. #: guix-git/doc/guix.texi:13265
  19568. #, no-wrap
  19569. msgid "--listen=@var{host}"
  19570. msgstr ""
  19571. #. type: table
  19572. #: guix-git/doc/guix.texi:13268
  19573. msgid "Listen on the network interface for @var{host}. The default is to accept connections from any interface."
  19574. msgstr ""
  19575. #. type: table
  19576. #: guix-git/doc/guix.texi:13273
  19577. 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."
  19578. msgstr ""
  19579. #. type: item
  19580. #: guix-git/doc/guix.texi:13274
  19581. #, fuzzy, no-wrap
  19582. msgid "--compression[=@var{method}[:@var{level}]]"
  19583. msgstr "--log-compression=@var{type}"
  19584. #. type: itemx
  19585. #: guix-git/doc/guix.texi:13275
  19586. #, no-wrap
  19587. msgid "-C [@var{method}[:@var{level}]]"
  19588. msgstr ""
  19589. #. type: table
  19590. #: guix-git/doc/guix.texi:13279
  19591. 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."
  19592. msgstr ""
  19593. #. type: table
  19594. #: guix-git/doc/guix.texi:13283
  19595. 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."
  19596. msgstr ""
  19597. #. type: table
  19598. #: guix-git/doc/guix.texi:13290
  19599. 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."
  19600. msgstr ""
  19601. #. type: table
  19602. #: guix-git/doc/guix.texi:13294
  19603. 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}."
  19604. msgstr ""
  19605. #. type: table
  19606. #: guix-git/doc/guix.texi:13303
  19607. 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."
  19608. msgstr ""
  19609. #. type: table
  19610. #: guix-git/doc/guix.texi:13308
  19611. 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."
  19612. msgstr ""
  19613. #. type: item
  19614. #: guix-git/doc/guix.texi:13309
  19615. #, no-wrap
  19616. msgid "--cache=@var{directory}"
  19617. msgstr ""
  19618. #. type: itemx
  19619. #: guix-git/doc/guix.texi:13310
  19620. #, no-wrap
  19621. msgid "-c @var{directory}"
  19622. msgstr ""
  19623. #. type: table
  19624. #: guix-git/doc/guix.texi:13313
  19625. msgid "Cache archives and meta-data (@code{.narinfo} URLs) to @var{directory} and only serve archives that are in cache."
  19626. msgstr ""
  19627. #. type: table
  19628. #: guix-git/doc/guix.texi:13321
  19629. 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."
  19630. msgstr ""
  19631. #. type: table
  19632. #: guix-git/doc/guix.texi:13329
  19633. 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."
  19634. msgstr ""
  19635. #. type: table
  19636. #: guix-git/doc/guix.texi:13336
  19637. 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."
  19638. msgstr ""
  19639. #. type: table
  19640. #: guix-git/doc/guix.texi:13340
  19641. 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."
  19642. msgstr ""
  19643. #. type: table
  19644. #: guix-git/doc/guix.texi:13343
  19645. msgid "When @option{--ttl} is used, cached entries are automatically deleted when they have expired."
  19646. msgstr ""
  19647. #. type: item
  19648. #: guix-git/doc/guix.texi:13344
  19649. #, no-wrap
  19650. msgid "--workers=@var{N}"
  19651. msgstr ""
  19652. #. type: table
  19653. #: guix-git/doc/guix.texi:13347
  19654. msgid "When @option{--cache} is used, request the allocation of @var{N} worker threads to ``bake'' archives."
  19655. msgstr ""
  19656. #. type: item
  19657. #: guix-git/doc/guix.texi:13348
  19658. #, no-wrap
  19659. msgid "--ttl=@var{ttl}"
  19660. msgstr ""
  19661. #. type: table
  19662. #: guix-git/doc/guix.texi:13352
  19663. 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."
  19664. msgstr ""
  19665. #. type: table
  19666. #: guix-git/doc/guix.texi:13357
  19667. 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}."
  19668. msgstr ""
  19669. #. type: table
  19670. #: guix-git/doc/guix.texi:13361
  19671. 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."
  19672. msgstr ""
  19673. #. type: item
  19674. #: guix-git/doc/guix.texi:13362
  19675. #, no-wrap
  19676. msgid "--negative-ttl=@var{ttl}"
  19677. msgstr ""
  19678. #. type: table
  19679. #: guix-git/doc/guix.texi:13367
  19680. 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."
  19681. msgstr ""
  19682. #. type: table
  19683. #: guix-git/doc/guix.texi:13371
  19684. 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."
  19685. msgstr ""
  19686. #. type: item
  19687. #: guix-git/doc/guix.texi:13372
  19688. #, no-wrap
  19689. msgid "--cache-bypass-threshold=@var{size}"
  19690. msgstr ""
  19691. #. type: table
  19692. #: guix-git/doc/guix.texi:13377
  19693. 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}."
  19694. msgstr ""
  19695. #. type: table
  19696. #: guix-git/doc/guix.texi:13382
  19697. 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."
  19698. msgstr ""
  19699. #. type: table
  19700. #: guix-git/doc/guix.texi:13386
  19701. 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."
  19702. msgstr ""
  19703. #. type: item
  19704. #: guix-git/doc/guix.texi:13387
  19705. #, no-wrap
  19706. msgid "--nar-path=@var{path}"
  19707. msgstr ""
  19708. #. type: table
  19709. #: guix-git/doc/guix.texi:13390
  19710. msgid "Use @var{path} as the prefix for the URLs of ``nar'' files (@pxref{Invoking guix archive, normalized archives})."
  19711. msgstr ""
  19712. #. type: table
  19713. #: guix-git/doc/guix.texi:13394
  19714. 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}."
  19715. msgstr ""
  19716. #. type: item
  19717. #: guix-git/doc/guix.texi:13395
  19718. #, no-wrap
  19719. msgid "--public-key=@var{file}"
  19720. msgstr ""
  19721. #. type: itemx
  19722. #: guix-git/doc/guix.texi:13396
  19723. #, no-wrap
  19724. msgid "--private-key=@var{file}"
  19725. msgstr ""
  19726. #. type: table
  19727. #: guix-git/doc/guix.texi:13399 guix-git/doc/guix.texi:28597
  19728. #: guix-git/doc/guix.texi:28634
  19729. msgid "Use the specific @var{file}s as the public/private key pair used to sign the store items being published."
  19730. msgstr ""
  19731. #. type: table
  19732. #: guix-git/doc/guix.texi:13406
  19733. 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."
  19734. msgstr ""
  19735. #. type: item
  19736. #: guix-git/doc/guix.texi:13407
  19737. #, no-wrap
  19738. msgid "--repl[=@var{port}]"
  19739. msgstr ""
  19740. #. type: itemx
  19741. #: guix-git/doc/guix.texi:13408
  19742. #, no-wrap
  19743. msgid "-r [@var{port}]"
  19744. msgstr ""
  19745. #. type: table
  19746. #: guix-git/doc/guix.texi:13412
  19747. 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."
  19748. msgstr ""
  19749. #. type: Plain text
  19750. #: guix-git/doc/guix.texi:13418
  19751. 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}})."
  19752. msgstr ""
  19753. #. type: Plain text
  19754. #: guix-git/doc/guix.texi:13421
  19755. msgid "If you are instead running Guix on a ``foreign distro'', follow these instructions:"
  19756. msgstr ""
  19757. #. type: itemize
  19758. #: guix-git/doc/guix.texi:13425
  19759. msgid "If your host distro uses the systemd init system:"
  19760. msgstr ""
  19761. #. type: example
  19762. #: guix-git/doc/guix.texi:13430
  19763. #, no-wrap
  19764. msgid ""
  19765. "# ln -s ~root/.guix-profile/lib/systemd/system/guix-publish.service \\\n"
  19766. " /etc/systemd/system/\n"
  19767. "# systemctl start guix-publish && systemctl enable guix-publish\n"
  19768. msgstr ""
  19769. #. type: example
  19770. #: guix-git/doc/guix.texi:13438
  19771. #, no-wrap
  19772. msgid ""
  19773. "# ln -s ~root/.guix-profile/lib/upstart/system/guix-publish.conf /etc/init/\n"
  19774. "# start guix-publish\n"
  19775. msgstr ""
  19776. #. type: itemize
  19777. #: guix-git/doc/guix.texi:13442
  19778. msgid "Otherwise, proceed similarly with your distro's init system."
  19779. msgstr ""
  19780. #. type: section
  19781. #: guix-git/doc/guix.texi:13445
  19782. #, no-wrap
  19783. msgid "Invoking @command{guix challenge}"
  19784. msgstr ""
  19785. #. type: cindex
  19786. #: guix-git/doc/guix.texi:13448
  19787. #, no-wrap
  19788. msgid "verifiable builds"
  19789. msgstr ""
  19790. #. type: command{#1}
  19791. #: guix-git/doc/guix.texi:13449
  19792. #, no-wrap
  19793. msgid "guix challenge"
  19794. msgstr ""
  19795. #. type: cindex
  19796. #: guix-git/doc/guix.texi:13450
  19797. #, no-wrap
  19798. msgid "challenge"
  19799. msgstr ""
  19800. #. type: Plain text
  19801. #: guix-git/doc/guix.texi:13455
  19802. 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."
  19803. msgstr ""
  19804. #. type: Plain text
  19805. #: guix-git/doc/guix.texi:13463
  19806. 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."
  19807. msgstr ""
  19808. #. type: Plain text
  19809. #: guix-git/doc/guix.texi:13472
  19810. 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."
  19811. msgstr ""
  19812. #. type: Plain text
  19813. #: guix-git/doc/guix.texi:13474
  19814. msgid "The command output looks like this:"
  19815. msgstr ""
  19816. #. type: smallexample
  19817. #: guix-git/doc/guix.texi:13486
  19818. #, no-wrap
  19819. msgid ""
  19820. "$ guix challenge --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  19821. "updating list of substitutes from 'https://@value{SUBSTITUTE-SERVER-1}'... 100.0%\n"
  19822. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  19823. "/gnu/store/@dots{}-openssl-1.0.2d contents differ:\n"
  19824. " local hash: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  19825. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-openssl-1.0.2d: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  19826. " https://guix.example.org/nar/@dots{}-openssl-1.0.2d: 1zy4fmaaqcnjrzzajkdn3f5gmjk754b43qkq47llbyak9z0qjyim\n"
  19827. " differing files:\n"
  19828. " /lib/libcrypto.so.1.1\n"
  19829. " /lib/libssl.so.1.1\n"
  19830. "\n"
  19831. msgstr ""
  19832. #. type: smallexample
  19833. #: guix-git/doc/guix.texi:13493
  19834. #, no-wrap
  19835. msgid ""
  19836. "/gnu/store/@dots{}-git-2.5.0 contents differ:\n"
  19837. " local hash: 00p3bmryhjxrhpn2gxs2fy0a15lnip05l97205pgbk5ra395hyha\n"
  19838. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-git-2.5.0: 069nb85bv4d4a6slrwjdy8v1cn4cwspm3kdbmyb81d6zckj3nq9f\n"
  19839. " https://guix.example.org/nar/@dots{}-git-2.5.0: 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73\n"
  19840. " differing file:\n"
  19841. " /libexec/git-core/git-fsck\n"
  19842. "\n"
  19843. msgstr ""
  19844. #. type: smallexample
  19845. #: guix-git/doc/guix.texi:13500
  19846. #, no-wrap
  19847. msgid ""
  19848. "/gnu/store/@dots{}-pius-2.1.1 contents differ:\n"
  19849. " local hash: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  19850. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-pius-2.1.1: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  19851. " https://guix.example.org/nar/@dots{}-pius-2.1.1: 1cy25x1a4fzq5rk0pmvc8xhwyffnqz95h2bpvqsz2mpvlbccy0gs\n"
  19852. " differing file:\n"
  19853. " /share/man/man1/pius.1.gz\n"
  19854. "\n"
  19855. msgstr ""
  19856. #. type: smallexample
  19857. #: guix-git/doc/guix.texi:13502
  19858. #, no-wrap
  19859. msgid ""
  19860. "@dots{}\n"
  19861. "\n"
  19862. msgstr ""
  19863. #. type: smallexample
  19864. #: guix-git/doc/guix.texi:13507
  19865. #, no-wrap
  19866. msgid ""
  19867. "6,406 store items were analyzed:\n"
  19868. " - 4,749 (74.1%) were identical\n"
  19869. " - 525 (8.2%) differed\n"
  19870. " - 1,132 (17.7%) were inconclusive\n"
  19871. msgstr ""
  19872. #. type: Plain text
  19873. #: guix-git/doc/guix.texi:13515
  19874. 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."
  19875. msgstr ""
  19876. #. type: cindex
  19877. #: guix-git/doc/guix.texi:13516
  19878. #, no-wrap
  19879. msgid "non-determinism, in package builds"
  19880. msgstr ""
  19881. #. type: Plain text
  19882. #: guix-git/doc/guix.texi:13527
  19883. 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."
  19884. msgstr ""
  19885. #. type: Plain text
  19886. #: guix-git/doc/guix.texi:13530
  19887. msgid "To find out what is wrong with this Git binary, the easiest approach is to run:"
  19888. msgstr ""
  19889. #. type: example
  19890. #: guix-git/doc/guix.texi:13535
  19891. #, no-wrap
  19892. msgid ""
  19893. "guix challenge git \\\n"
  19894. " --diff=diffoscope \\\n"
  19895. " --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  19896. msgstr ""
  19897. #. type: Plain text
  19898. #: guix-git/doc/guix.texi:13539
  19899. msgid "This automatically invokes @command{diffoscope}, which displays detailed information about files that differ."
  19900. msgstr ""
  19901. #. type: Plain text
  19902. #: guix-git/doc/guix.texi:13542
  19903. msgid "Alternatively, we can do something along these lines (@pxref{Invoking guix archive}):"
  19904. msgstr ""
  19905. #. type: example
  19906. #: guix-git/doc/guix.texi:13547
  19907. #, no-wrap
  19908. msgid ""
  19909. "$ wget -q -O - https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-git-2.5.0 \\\n"
  19910. " | lzip -d | guix archive -x /tmp/git\n"
  19911. "$ diff -ur --no-dereference /gnu/store/@dots{}-git.2.5.0 /tmp/git\n"
  19912. msgstr ""
  19913. #. type: Plain text
  19914. #: guix-git/doc/guix.texi:13556
  19915. 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."
  19916. msgstr ""
  19917. #. type: Plain text
  19918. #: guix-git/doc/guix.texi:13564
  19919. 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."
  19920. msgstr ""
  19921. #. type: Plain text
  19922. #: guix-git/doc/guix.texi:13568
  19923. 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:"
  19924. msgstr ""
  19925. #. type: example
  19926. #: guix-git/doc/guix.texi:13571
  19927. #, no-wrap
  19928. msgid "$ guix challenge @var{package}\n"
  19929. msgstr ""
  19930. #. type: Plain text
  19931. #: guix-git/doc/guix.texi:13576
  19932. msgid "where @var{package} is a package specification such as @code{guile@@2.0} or @code{glibc:debug}."
  19933. msgstr ""
  19934. #. type: example
  19935. #: guix-git/doc/guix.texi:13581
  19936. #, no-wrap
  19937. msgid "guix challenge @var{options} [@var{packages}@dots{}]\n"
  19938. msgstr ""
  19939. #. type: Plain text
  19940. #: guix-git/doc/guix.texi:13588
  19941. 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)."
  19942. msgstr ""
  19943. #. type: Plain text
  19944. #: guix-git/doc/guix.texi:13590
  19945. msgid "The one option that matters is:"
  19946. msgstr ""
  19947. #. type: table
  19948. #: guix-git/doc/guix.texi:13596
  19949. msgid "Consider @var{urls} the whitespace-separated list of substitute source URLs to compare to."
  19950. msgstr ""
  19951. #. type: item
  19952. #: guix-git/doc/guix.texi:13597
  19953. #, fuzzy, no-wrap
  19954. msgid "--diff=@var{mode}"
  19955. msgstr "--rounds=@var{N}"
  19956. #. type: table
  19957. #: guix-git/doc/guix.texi:13599
  19958. msgid "Upon mismatches, show differences according to @var{mode}, one of:"
  19959. msgstr ""
  19960. #. type: item
  19961. #: guix-git/doc/guix.texi:13601
  19962. #, fuzzy, no-wrap
  19963. msgid "@code{simple} (the default)"
  19964. msgstr "@code{speed}(默认值:@code{1.0})"
  19965. #. type: table
  19966. #: guix-git/doc/guix.texi:13603
  19967. msgid "Show the list of files that differ."
  19968. msgstr ""
  19969. #. type: code{#1}
  19970. #: guix-git/doc/guix.texi:13604
  19971. #, no-wrap
  19972. msgid "diffoscope"
  19973. msgstr ""
  19974. #. type: var{#1}
  19975. #: guix-git/doc/guix.texi:13605
  19976. #, no-wrap
  19977. msgid "command"
  19978. msgstr ""
  19979. #. type: table
  19980. #: guix-git/doc/guix.texi:13608
  19981. msgid "Invoke @uref{https://diffoscope.org/, Diffoscope}, passing it two directories whose contents do not match."
  19982. msgstr ""
  19983. #. type: table
  19984. #: guix-git/doc/guix.texi:13611
  19985. msgid "When @var{command} is an absolute file name, run @var{command} instead of Diffoscope."
  19986. msgstr ""
  19987. #. type: item
  19988. #: guix-git/doc/guix.texi:13612 guix-git/doc/guix.texi:17050
  19989. #: guix-git/doc/guix.texi:19145
  19990. #, no-wrap
  19991. msgid "none"
  19992. msgstr ""
  19993. #. type: table
  19994. #: guix-git/doc/guix.texi:13614
  19995. msgid "Do not show further details about the differences."
  19996. msgstr ""
  19997. #. type: table
  19998. #: guix-git/doc/guix.texi:13619
  19999. 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."
  20000. msgstr ""
  20001. #. type: item
  20002. #: guix-git/doc/guix.texi:13620
  20003. #, no-wrap
  20004. msgid "--verbose"
  20005. msgstr ""
  20006. #. type: itemx
  20007. #: guix-git/doc/guix.texi:13621
  20008. #, no-wrap
  20009. msgid "-v"
  20010. msgstr ""
  20011. #. type: table
  20012. #: guix-git/doc/guix.texi:13624
  20013. msgid "Show details about matches (identical contents) in addition to information about mismatches."
  20014. msgstr ""
  20015. #. type: section
  20016. #: guix-git/doc/guix.texi:13628
  20017. #, no-wrap
  20018. msgid "Invoking @command{guix copy}"
  20019. msgstr ""
  20020. #. type: cindex
  20021. #: guix-git/doc/guix.texi:13630
  20022. #, no-wrap
  20023. msgid "copy, of store items, over SSH"
  20024. msgstr ""
  20025. #. type: cindex
  20026. #: guix-git/doc/guix.texi:13631
  20027. #, no-wrap
  20028. msgid "SSH, copy of store items"
  20029. msgstr ""
  20030. #. type: cindex
  20031. #: guix-git/doc/guix.texi:13632
  20032. #, no-wrap
  20033. msgid "sharing store items across machines"
  20034. msgstr ""
  20035. #. type: cindex
  20036. #: guix-git/doc/guix.texi:13633
  20037. #, no-wrap
  20038. msgid "transferring store items across machines"
  20039. msgstr ""
  20040. #. type: Plain text
  20041. #: guix-git/doc/guix.texi:13640
  20042. 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}:"
  20043. msgstr ""
  20044. #. type: example
  20045. #: guix-git/doc/guix.texi:13644
  20046. #, no-wrap
  20047. msgid ""
  20048. "guix copy --to=@var{user}@@@var{host} \\\n"
  20049. " coreutils $(readlink -f ~/.guix-profile)\n"
  20050. msgstr ""
  20051. #. type: Plain text
  20052. #: guix-git/doc/guix.texi:13648
  20053. msgid "If some of the items to be copied are already present on @var{host}, they are not actually sent."
  20054. msgstr ""
  20055. #. type: Plain text
  20056. #: guix-git/doc/guix.texi:13651
  20057. msgid "The command below retrieves @code{libreoffice} and @code{gimp} from @var{host}, assuming they are available there:"
  20058. msgstr ""
  20059. #. type: example
  20060. #: guix-git/doc/guix.texi:13654
  20061. #, no-wrap
  20062. msgid "guix copy --from=@var{host} libreoffice gimp\n"
  20063. msgstr ""
  20064. #. type: Plain text
  20065. #: guix-git/doc/guix.texi:13659
  20066. 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."
  20067. msgstr ""
  20068. #. type: Plain text
  20069. #: guix-git/doc/guix.texi:13665
  20070. 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."
  20071. msgstr ""
  20072. #. type: example
  20073. #: guix-git/doc/guix.texi:13670
  20074. #, no-wrap
  20075. msgid "guix copy [--to=@var{spec}|--from=@var{spec}] @var{items}@dots{}\n"
  20076. msgstr ""
  20077. #. type: Plain text
  20078. #: guix-git/doc/guix.texi:13673
  20079. msgid "You must always specify one of the following options:"
  20080. msgstr ""
  20081. #. type: item
  20082. #: guix-git/doc/guix.texi:13675
  20083. #, no-wrap
  20084. msgid "--to=@var{spec}"
  20085. msgstr ""
  20086. #. type: itemx
  20087. #: guix-git/doc/guix.texi:13676
  20088. #, no-wrap
  20089. msgid "--from=@var{spec}"
  20090. msgstr ""
  20091. #. type: table
  20092. #: guix-git/doc/guix.texi:13680
  20093. 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}."
  20094. msgstr ""
  20095. #. type: Plain text
  20096. #: guix-git/doc/guix.texi:13684
  20097. 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}."
  20098. msgstr ""
  20099. #. type: Plain text
  20100. #: guix-git/doc/guix.texi:13688
  20101. 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})."
  20102. msgstr ""
  20103. #. type: section
  20104. #: guix-git/doc/guix.texi:13691
  20105. #, no-wrap
  20106. msgid "Invoking @command{guix container}"
  20107. msgstr ""
  20108. #. type: command{#1}
  20109. #: guix-git/doc/guix.texi:13693
  20110. #, no-wrap
  20111. msgid "guix container"
  20112. msgstr ""
  20113. #. type: quotation
  20114. #: guix-git/doc/guix.texi:13697
  20115. msgid "As of version @value{VERSION}, this tool is experimental. The interface is subject to radical change in the future."
  20116. msgstr ""
  20117. #. type: Plain text
  20118. #: guix-git/doc/guix.texi:13704
  20119. msgid "The purpose of @command{guix container} is to manipulate processes running within an isolated environment, commonly known as a ``container'', typically created by the @command{guix shell} (@pxref{Invoking guix shell}) and @command{guix system container} (@pxref{Invoking guix system}) commands."
  20120. msgstr ""
  20121. #. type: example
  20122. #: guix-git/doc/guix.texi:13709
  20123. #, no-wrap
  20124. msgid "guix container @var{action} @var{options}@dots{}\n"
  20125. msgstr ""
  20126. #. type: Plain text
  20127. #: guix-git/doc/guix.texi:13713
  20128. msgid "@var{action} specifies the operation to perform with a container, and @var{options} specifies the context-specific arguments for the action."
  20129. msgstr ""
  20130. #. type: Plain text
  20131. #: guix-git/doc/guix.texi:13715
  20132. msgid "The following actions are available:"
  20133. msgstr ""
  20134. #. type: item
  20135. #: guix-git/doc/guix.texi:13717
  20136. #, no-wrap
  20137. msgid "exec"
  20138. msgstr ""
  20139. #. type: table
  20140. #: guix-git/doc/guix.texi:13719
  20141. msgid "Execute a command within the context of a running container."
  20142. msgstr ""
  20143. #. type: table
  20144. #: guix-git/doc/guix.texi:13721
  20145. msgid "The syntax is:"
  20146. msgstr ""
  20147. #. type: example
  20148. #: guix-git/doc/guix.texi:13724
  20149. #, no-wrap
  20150. msgid "guix container exec @var{pid} @var{program} @var{arguments}@dots{}\n"
  20151. msgstr ""
  20152. #. type: table
  20153. #: guix-git/doc/guix.texi:13730
  20154. 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}."
  20155. msgstr ""
  20156. #. type: table
  20157. #: guix-git/doc/guix.texi:13734
  20158. 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:"
  20159. msgstr ""
  20160. #. type: example
  20161. #: guix-git/doc/guix.texi:13737
  20162. #, no-wrap
  20163. msgid "guix container exec 9001 /run/current-system/profile/bin/bash --login\n"
  20164. msgstr ""
  20165. #. type: table
  20166. #: guix-git/doc/guix.texi:13741
  20167. 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."
  20168. msgstr ""
  20169. #. type: section
  20170. #: guix-git/doc/guix.texi:13745
  20171. #, no-wrap
  20172. msgid "Invoking @command{guix weather}"
  20173. msgstr ""
  20174. #. type: Plain text
  20175. #: guix-git/doc/guix.texi:13754
  20176. 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})."
  20177. msgstr ""
  20178. #. type: cindex
  20179. #: guix-git/doc/guix.texi:13755
  20180. #, no-wrap
  20181. msgid "statistics, for substitutes"
  20182. msgstr ""
  20183. #. type: cindex
  20184. #: guix-git/doc/guix.texi:13756
  20185. #, no-wrap
  20186. msgid "availability of substitutes"
  20187. msgstr ""
  20188. #. type: cindex
  20189. #: guix-git/doc/guix.texi:13757
  20190. #, no-wrap
  20191. msgid "substitute availability"
  20192. msgstr ""
  20193. #. type: cindex
  20194. #: guix-git/doc/guix.texi:13758
  20195. #, no-wrap
  20196. msgid "weather, substitute availability"
  20197. msgstr ""
  20198. #. type: Plain text
  20199. #: guix-git/doc/guix.texi:13760
  20200. msgid "Here's a sample run:"
  20201. msgstr ""
  20202. #. type: example
  20203. #: guix-git/doc/guix.texi:13772
  20204. #, no-wrap
  20205. msgid ""
  20206. "$ guix weather --substitute-urls=https://guix.example.org\n"
  20207. "computing 5,872 package derivations for x86_64-linux...\n"
  20208. "looking for 6,128 store items on https://guix.example.org..\n"
  20209. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  20210. "https://guix.example.org\n"
  20211. " 43.4% substitutes available (2,658 out of 6,128)\n"
  20212. " 7,032.5 MiB of nars (compressed)\n"
  20213. " 19,824.2 MiB on disk (uncompressed)\n"
  20214. " 0.030 seconds per request (182.9 seconds in total)\n"
  20215. " 33.5 requests per second\n"
  20216. "\n"
  20217. msgstr ""
  20218. #. type: example
  20219. #: guix-git/doc/guix.texi:13782
  20220. #, no-wrap
  20221. msgid ""
  20222. " 9.8% (342 out of 3,470) of the missing items are queued\n"
  20223. " 867 queued builds\n"
  20224. " x86_64-linux: 518 (59.7%)\n"
  20225. " i686-linux: 221 (25.5%)\n"
  20226. " aarch64-linux: 128 (14.8%)\n"
  20227. " build rate: 23.41 builds per hour\n"
  20228. " x86_64-linux: 11.16 builds per hour\n"
  20229. " i686-linux: 6.03 builds per hour\n"
  20230. " aarch64-linux: 6.41 builds per hour\n"
  20231. msgstr ""
  20232. #. type: cindex
  20233. #: guix-git/doc/guix.texi:13784
  20234. #, no-wrap
  20235. msgid "continuous integration, statistics"
  20236. msgstr ""
  20237. #. type: Plain text
  20238. #: guix-git/doc/guix.texi:13795
  20239. 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)."
  20240. msgstr ""
  20241. #. type: Plain text
  20242. #: guix-git/doc/guix.texi:13801
  20243. 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."
  20244. msgstr ""
  20245. #. type: example
  20246. #: guix-git/doc/guix.texi:13806
  20247. #, no-wrap
  20248. msgid "guix weather @var{options}@dots{} [@var{packages}@dots{}]\n"
  20249. msgstr ""
  20250. #. type: Plain text
  20251. #: guix-git/doc/guix.texi:13814
  20252. 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%."
  20253. msgstr ""
  20254. #. type: Plain text
  20255. #: guix-git/doc/guix.texi:13816
  20256. msgid "The available options are listed below."
  20257. msgstr ""
  20258. #. type: table
  20259. #: guix-git/doc/guix.texi:13822
  20260. 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."
  20261. msgstr ""
  20262. #. type: table
  20263. #: guix-git/doc/guix.texi:13828
  20264. 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."
  20265. msgstr ""
  20266. #. type: table
  20267. #: guix-git/doc/guix.texi:13834
  20268. 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})."
  20269. msgstr ""
  20270. #. type: table
  20271. #: guix-git/doc/guix.texi:13837
  20272. msgid "This option can be repeated several times, in which case the manifests are concatenated."
  20273. msgstr ""
  20274. #. type: item
  20275. #: guix-git/doc/guix.texi:13838
  20276. #, no-wrap
  20277. msgid "--coverage[=@var{count}]"
  20278. msgstr ""
  20279. #. type: itemx
  20280. #: guix-git/doc/guix.texi:13839
  20281. #, no-wrap
  20282. msgid "-c [@var{count}]"
  20283. msgstr ""
  20284. #. type: table
  20285. #: guix-git/doc/guix.texi:13845
  20286. 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:"
  20287. msgstr ""
  20288. #. type: example
  20289. #: guix-git/doc/guix.texi:13859
  20290. #, no-wrap
  20291. msgid ""
  20292. "$ guix weather --substitute-urls=@value{SUBSTITUTE-URLS} -c 10\n"
  20293. "computing 8,983 package derivations for x86_64-linux...\n"
  20294. "looking for 9,343 store items on @value{SUBSTITUTE-URLS}...\n"
  20295. "updating substitutes from '@value{SUBSTITUTE-URLS}'... 100.0%\n"
  20296. "@value{SUBSTITUTE-URLS}\n"
  20297. " 64.7% substitutes available (6,047 out of 9,343)\n"
  20298. "@dots{}\n"
  20299. "2502 packages are missing from '@value{SUBSTITUTE-URLS}' for 'x86_64-linux', among which:\n"
  20300. " 58 kcoreaddons@@5.49.0 /gnu/store/@dots{}-kcoreaddons-5.49.0\n"
  20301. " 46 qgpgme@@1.11.1 /gnu/store/@dots{}-qgpgme-1.11.1\n"
  20302. " 37 perl-http-cookiejar@@0.008 /gnu/store/@dots{}-perl-http-cookiejar-0.008\n"
  20303. " @dots{}\n"
  20304. msgstr ""
  20305. #. type: table
  20306. #: guix-git/doc/guix.texi:13865
  20307. 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."
  20308. msgstr ""
  20309. #. type: table
  20310. #: guix-git/doc/guix.texi:13869
  20311. 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."
  20312. msgstr ""
  20313. #. type: item
  20314. #: guix-git/doc/guix.texi:13870
  20315. #, no-wrap
  20316. msgid "--display-missing"
  20317. msgstr ""
  20318. #. type: table
  20319. #: guix-git/doc/guix.texi:13872
  20320. msgid "Display the list of store items for which substitutes are missing."
  20321. msgstr ""
  20322. #. type: section
  20323. #: guix-git/doc/guix.texi:13875
  20324. #, no-wrap
  20325. msgid "Invoking @command{guix processes}"
  20326. msgstr ""
  20327. #. type: Plain text
  20328. #: guix-git/doc/guix.texi:13883
  20329. 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:"
  20330. msgstr ""
  20331. #. type: example
  20332. #: guix-git/doc/guix.texi:13889
  20333. #, no-wrap
  20334. msgid ""
  20335. "$ sudo guix processes\n"
  20336. "SessionPID: 19002\n"
  20337. "ClientPID: 19090\n"
  20338. "ClientCommand: guix shell python\n"
  20339. "\n"
  20340. msgstr ""
  20341. #. type: example
  20342. #: guix-git/doc/guix.texi:13893
  20343. #, no-wrap
  20344. msgid ""
  20345. "SessionPID: 19402\n"
  20346. "ClientPID: 19367\n"
  20347. "ClientCommand: guix publish -u guix-publish -p 3000 -C 9 @dots{}\n"
  20348. "\n"
  20349. msgstr ""
  20350. #. type: example
  20351. #: guix-git/doc/guix.texi:13906
  20352. #, no-wrap
  20353. msgid ""
  20354. "SessionPID: 19444\n"
  20355. "ClientPID: 19419\n"
  20356. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  20357. "LockHeld: /gnu/store/@dots{}-perl-ipc-cmd-0.96.lock\n"
  20358. "LockHeld: /gnu/store/@dots{}-python-six-bootstrap-1.11.0.lock\n"
  20359. "LockHeld: /gnu/store/@dots{}-libjpeg-turbo-2.0.0.lock\n"
  20360. "ChildPID: 20495\n"
  20361. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  20362. "ChildPID: 27733\n"
  20363. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  20364. "ChildPID: 27793\n"
  20365. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  20366. msgstr ""
  20367. #. type: Plain text
  20368. #: guix-git/doc/guix.texi:13913
  20369. 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."
  20370. msgstr ""
  20371. #. type: Plain text
  20372. #: guix-git/doc/guix.texi:13920
  20373. 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})."
  20374. msgstr ""
  20375. #. type: Plain text
  20376. #: guix-git/doc/guix.texi:13925
  20377. 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:"
  20378. msgstr ""
  20379. #. type: example
  20380. #: guix-git/doc/guix.texi:13931
  20381. #, no-wrap
  20382. msgid ""
  20383. "$ sudo guix processes | \\\n"
  20384. " recsel -p ClientPID,ClientCommand -e 'LockHeld ~ \"perl\"'\n"
  20385. "ClientPID: 19419\n"
  20386. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  20387. msgstr ""
  20388. #. type: Plain text
  20389. #: guix-git/doc/guix.texi:13934
  20390. #, fuzzy
  20391. msgid "Additional options are listed below."
  20392. msgstr "额外的构建选项"
  20393. #. type: table
  20394. #: guix-git/doc/guix.texi:13944
  20395. msgid "The default option. It outputs a set of Session recutils records that include each @code{ChildProcess} as a field."
  20396. msgstr ""
  20397. #. type: item
  20398. #: guix-git/doc/guix.texi:13945
  20399. #, no-wrap
  20400. msgid "normalized"
  20401. msgstr ""
  20402. #. type: table
  20403. #: guix-git/doc/guix.texi:13952
  20404. 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}."
  20405. msgstr ""
  20406. #. type: example
  20407. #: guix-git/doc/guix.texi:13962
  20408. #, no-wrap
  20409. msgid ""
  20410. "$ guix processes --format=normalized | \\\n"
  20411. " recsel \\\n"
  20412. " -j Session \\\n"
  20413. " -t ChildProcess \\\n"
  20414. " -p Session.PID,PID \\\n"
  20415. " -e 'Session.ClientCommand ~ \"guix build\"'\n"
  20416. "PID: 4435\n"
  20417. "Session_PID: 4278\n"
  20418. "\n"
  20419. msgstr ""
  20420. #. type: example
  20421. #: guix-git/doc/guix.texi:13965
  20422. #, no-wrap
  20423. msgid ""
  20424. "PID: 4554\n"
  20425. "Session_PID: 4278\n"
  20426. "\n"
  20427. msgstr ""
  20428. #. type: example
  20429. #: guix-git/doc/guix.texi:13968
  20430. #, no-wrap
  20431. msgid ""
  20432. "PID: 4646\n"
  20433. "Session_PID: 4278\n"
  20434. msgstr ""
  20435. #. type: cindex
  20436. #: guix-git/doc/guix.texi:13975
  20437. #, no-wrap
  20438. msgid "system configuration"
  20439. msgstr ""
  20440. #. type: Plain text
  20441. #: guix-git/doc/guix.texi:13981
  20442. 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."
  20443. msgstr ""
  20444. #. type: Plain text
  20445. #: guix-git/doc/guix.texi:13991
  20446. 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."
  20447. msgstr ""
  20448. #. type: Plain text
  20449. #: guix-git/doc/guix.texi:13996
  20450. 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."
  20451. msgstr ""
  20452. #. type: Plain text
  20453. #: guix-git/doc/guix.texi:14026
  20454. 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:"
  20455. msgstr ""
  20456. #. type: code{#1}
  20457. #: guix-git/doc/guix.texi:14027 guix-git/doc/guix.texi:35001
  20458. #, no-wrap
  20459. msgid "operating-system"
  20460. msgstr ""
  20461. #. type: include
  20462. #: guix-git/doc/guix.texi:14029
  20463. #, no-wrap
  20464. msgid "os-config-bare-bones.texi"
  20465. msgstr ""
  20466. #. type: Plain text
  20467. #: guix-git/doc/guix.texi:14036
  20468. 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."
  20469. msgstr ""
  20470. #. type: Plain text
  20471. #: guix-git/doc/guix.texi:14041
  20472. 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}."
  20473. msgstr ""
  20474. #. type: unnumberedsubsec
  20475. #: guix-git/doc/guix.texi:14042
  20476. #, no-wrap
  20477. msgid "Bootloader"
  20478. msgstr ""
  20479. #. type: cindex
  20480. #: guix-git/doc/guix.texi:14044
  20481. #, no-wrap
  20482. msgid "legacy boot, on Intel machines"
  20483. msgstr ""
  20484. #. type: cindex
  20485. #: guix-git/doc/guix.texi:14045
  20486. #, no-wrap
  20487. msgid "BIOS boot, on Intel machines"
  20488. msgstr ""
  20489. #. type: cindex
  20490. #: guix-git/doc/guix.texi:14046
  20491. #, no-wrap
  20492. msgid "UEFI boot"
  20493. msgstr ""
  20494. #. type: cindex
  20495. #: guix-git/doc/guix.texi:14047
  20496. #, no-wrap
  20497. msgid "EFI boot"
  20498. msgstr ""
  20499. #. type: Plain text
  20500. #: guix-git/doc/guix.texi:14053
  20501. 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:"
  20502. msgstr ""
  20503. #. type: lisp
  20504. #: guix-git/doc/guix.texi:14058
  20505. #, no-wrap
  20506. msgid ""
  20507. "(bootloader-configuration\n"
  20508. " (bootloader grub-efi-bootloader)\n"
  20509. " (targets '(\"/boot/efi\")))\n"
  20510. msgstr ""
  20511. #. type: Plain text
  20512. #: guix-git/doc/guix.texi:14062
  20513. msgid "@xref{Bootloader Configuration}, for more information on the available configuration options."
  20514. msgstr ""
  20515. #. type: unnumberedsubsec
  20516. #: guix-git/doc/guix.texi:14063
  20517. #, no-wrap
  20518. msgid "Globally-Visible Packages"
  20519. msgstr ""
  20520. #. type: vindex
  20521. #: guix-git/doc/guix.texi:14065
  20522. #, no-wrap
  20523. msgid "%base-packages"
  20524. msgstr ""
  20525. #. type: Plain text
  20526. #: guix-git/doc/guix.texi:14078
  20527. 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:"
  20528. msgstr ""
  20529. #. type: lisp
  20530. #: guix-git/doc/guix.texi:14082
  20531. #, no-wrap
  20532. msgid ""
  20533. "(use-modules (gnu packages))\n"
  20534. "(use-modules (gnu packages dns))\n"
  20535. "\n"
  20536. msgstr ""
  20537. #. type: lisp
  20538. #: guix-git/doc/guix.texi:14087
  20539. #, no-wrap
  20540. msgid ""
  20541. "(operating-system\n"
  20542. " ;; ...\n"
  20543. " (packages (cons (list isc-bind \"utils\")\n"
  20544. " %base-packages)))\n"
  20545. msgstr ""
  20546. #. type: findex
  20547. #: guix-git/doc/guix.texi:14089
  20548. #, no-wrap
  20549. msgid "specification->package"
  20550. msgstr ""
  20551. #. type: Plain text
  20552. #: guix-git/doc/guix.texi:14098
  20553. 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:"
  20554. msgstr ""
  20555. #. type: lisp
  20556. #: guix-git/doc/guix.texi:14101
  20557. #, no-wrap
  20558. msgid ""
  20559. "(use-modules (gnu packages))\n"
  20560. "\n"
  20561. msgstr ""
  20562. #. type: lisp
  20563. #: guix-git/doc/guix.texi:14107
  20564. #, no-wrap
  20565. msgid ""
  20566. "(operating-system\n"
  20567. " ;; ...\n"
  20568. " (packages (append (map specification->package\n"
  20569. " '(\"tcpdump\" \"htop\" \"gnupg@@2.0\"))\n"
  20570. " %base-packages)))\n"
  20571. msgstr ""
  20572. #. type: unnumberedsubsec
  20573. #: guix-git/doc/guix.texi:14109
  20574. #, no-wrap
  20575. msgid "System Services"
  20576. msgstr ""
  20577. #. type: cindex
  20578. #: guix-git/doc/guix.texi:14111 guix-git/doc/guix.texi:33746
  20579. #: guix-git/doc/guix.texi:35230
  20580. #, no-wrap
  20581. msgid "services"
  20582. msgstr ""
  20583. #. type: vindex
  20584. #: guix-git/doc/guix.texi:14112
  20585. #, no-wrap
  20586. msgid "%base-services"
  20587. msgstr ""
  20588. #. type: Plain text
  20589. #: guix-git/doc/guix.texi:14122
  20590. 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})."
  20591. msgstr ""
  20592. #. type: cindex
  20593. #: guix-git/doc/guix.texi:14123
  20594. #, no-wrap
  20595. msgid "customization, of services"
  20596. msgstr ""
  20597. #. type: findex
  20598. #: guix-git/doc/guix.texi:14124
  20599. #, no-wrap
  20600. msgid "modify-services"
  20601. msgstr ""
  20602. #. type: Plain text
  20603. #: guix-git/doc/guix.texi:14128
  20604. 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."
  20605. msgstr ""
  20606. #. type: anchor{#1}
  20607. #: guix-git/doc/guix.texi:14134
  20608. msgid "auto-login to TTY"
  20609. msgstr ""
  20610. #. type: Plain text
  20611. #: guix-git/doc/guix.texi:14134
  20612. 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:"
  20613. msgstr ""
  20614. #. type: lisp
  20615. #: guix-git/doc/guix.texi:14151
  20616. #, no-wrap
  20617. msgid ""
  20618. "(define %my-services\n"
  20619. " ;; My very own list of services.\n"
  20620. " (modify-services %base-services\n"
  20621. " (guix-service-type config =>\n"
  20622. " (guix-configuration\n"
  20623. " (inherit config)\n"
  20624. " ;; Fetch substitutes from example.org.\n"
  20625. " (substitute-urls\n"
  20626. " (list \"https://example.org/guix\"\n"
  20627. " \"https://ci.guix.gnu.org\"))))\n"
  20628. " (mingetty-service-type config =>\n"
  20629. " (mingetty-configuration\n"
  20630. " (inherit config)\n"
  20631. " ;; Automatially log in as \"guest\".\n"
  20632. " (auto-login \"guest\")))))\n"
  20633. "\n"
  20634. msgstr ""
  20635. #. type: lisp
  20636. #: guix-git/doc/guix.texi:14155
  20637. #, no-wrap
  20638. msgid ""
  20639. "(operating-system\n"
  20640. " ;; @dots{}\n"
  20641. " (services %my-services))\n"
  20642. msgstr ""
  20643. #. type: Plain text
  20644. #: guix-git/doc/guix.texi:14168
  20645. 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."
  20646. msgstr ""
  20647. #. type: Plain text
  20648. #: guix-git/doc/guix.texi:14175
  20649. msgid "The configuration for a typical ``desktop'' usage, with an encrypted root partition, a swap file on the root partition, the X11 display server, GNOME and Xfce (users can choose which of these desktop environments to use at the log-in screen by pressing @kbd{F1}), network management, power management, and more, would look like this:"
  20650. msgstr ""
  20651. #. type: include
  20652. #: guix-git/doc/guix.texi:14177
  20653. #, no-wrap
  20654. msgid "os-config-desktop.texi"
  20655. msgstr ""
  20656. #. type: Plain text
  20657. #: guix-git/doc/guix.texi:14182
  20658. msgid "A graphical system with a choice of lightweight window managers instead of full-blown desktop environments would look like this:"
  20659. msgstr ""
  20660. #. type: include
  20661. #: guix-git/doc/guix.texi:14184
  20662. #, no-wrap
  20663. msgid "os-config-lightweight-desktop.texi"
  20664. msgstr ""
  20665. #. type: Plain text
  20666. #: guix-git/doc/guix.texi:14190
  20667. 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."
  20668. msgstr ""
  20669. #. type: Plain text
  20670. #: guix-git/doc/guix.texi:14194
  20671. 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."
  20672. msgstr ""
  20673. #. type: Plain text
  20674. #: guix-git/doc/guix.texi:14201
  20675. 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:"
  20676. msgstr ""
  20677. #. type: lisp
  20678. #: guix-git/doc/guix.texi:14206
  20679. #, no-wrap
  20680. msgid ""
  20681. "(remove (lambda (service)\n"
  20682. " (eq? (service-kind service) avahi-service-type))\n"
  20683. " %desktop-services)\n"
  20684. msgstr ""
  20685. #. type: Plain text
  20686. #: guix-git/doc/guix.texi:14209
  20687. msgid "Alternatively, the @code{modify-services} macro can be used:"
  20688. msgstr ""
  20689. #. type: lisp
  20690. #: guix-git/doc/guix.texi:14213
  20691. #, no-wrap
  20692. msgid ""
  20693. "(modify-services %desktop-services\n"
  20694. " (delete avahi-service-type))\n"
  20695. msgstr ""
  20696. #. type: unnumberedsubsec
  20697. #: guix-git/doc/guix.texi:14216
  20698. #, no-wrap
  20699. msgid "Instantiating the System"
  20700. msgstr ""
  20701. #. type: Plain text
  20702. #: guix-git/doc/guix.texi:14223
  20703. 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})."
  20704. msgstr ""
  20705. #. type: Plain text
  20706. #: guix-git/doc/guix.texi:14231
  20707. 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."
  20708. msgstr ""
  20709. #. type: cindex
  20710. #: guix-git/doc/guix.texi:14232
  20711. #, no-wrap
  20712. msgid "roll-back, of the operating system"
  20713. msgstr ""
  20714. #. type: Plain text
  20715. #: guix-git/doc/guix.texi:14242
  20716. 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}."
  20717. msgstr ""
  20718. #. type: Plain text
  20719. #: guix-git/doc/guix.texi:14248
  20720. 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})."
  20721. msgstr ""
  20722. #. type: unnumberedsubsec
  20723. #: guix-git/doc/guix.texi:14249
  20724. #, no-wrap
  20725. msgid "The Programming Interface"
  20726. msgstr ""
  20727. #. type: Plain text
  20728. #: guix-git/doc/guix.texi:14254
  20729. msgid "At the Scheme level, the bulk of an @code{operating-system} declaration is instantiated with the following monadic procedure (@pxref{The Store Monad}):"
  20730. msgstr ""
  20731. #. type: deffn
  20732. #: guix-git/doc/guix.texi:14255
  20733. #, no-wrap
  20734. msgid "{Monadic Procedure} operating-system-derivation os"
  20735. msgstr ""
  20736. #. type: deffn
  20737. #: guix-git/doc/guix.texi:14258
  20738. msgid "Return a derivation that builds @var{os}, an @code{operating-system} object (@pxref{Derivations})."
  20739. msgstr ""
  20740. #. type: deffn
  20741. #: guix-git/doc/guix.texi:14262
  20742. 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}."
  20743. msgstr ""
  20744. #. type: Plain text
  20745. #: guix-git/doc/guix.texi:14267
  20746. 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!"
  20747. msgstr ""
  20748. #. type: section
  20749. #: guix-git/doc/guix.texi:14270
  20750. #, no-wrap
  20751. msgid "@code{operating-system} Reference"
  20752. msgstr ""
  20753. #. type: Plain text
  20754. #: guix-git/doc/guix.texi:14275
  20755. msgid "This section summarizes all the options available in @code{operating-system} declarations (@pxref{Using the Configuration System})."
  20756. msgstr ""
  20757. #. type: deftp
  20758. #: guix-git/doc/guix.texi:14276
  20759. #, no-wrap
  20760. msgid "{Data Type} operating-system"
  20761. msgstr ""
  20762. #. type: deftp
  20763. #: guix-git/doc/guix.texi:14280
  20764. 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})."
  20765. msgstr ""
  20766. #. type: item
  20767. #: guix-git/doc/guix.texi:14282
  20768. #, fuzzy, no-wrap
  20769. msgid "@code{kernel} (default: @code{linux-libre})"
  20770. msgstr "@code{gnome}(默认值:@code{gnome})"
  20771. #. type: table
  20772. #: guix-git/doc/guix.texi:14287
  20773. 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.}."
  20774. msgstr ""
  20775. #. type: code{#1}
  20776. #: guix-git/doc/guix.texi:14288 guix-git/doc/guix.texi:30189
  20777. #, no-wrap
  20778. msgid "hurd"
  20779. msgstr ""
  20780. #. type: item
  20781. #: guix-git/doc/guix.texi:14289
  20782. #, fuzzy, no-wrap
  20783. msgid "@code{hurd} (default: @code{#f})"
  20784. msgstr "@code{port}(默认值:@code{22})"
  20785. #. type: table
  20786. #: guix-git/doc/guix.texi:14294
  20787. 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."
  20788. msgstr ""
  20789. #. type: quotation
  20790. #: guix-git/doc/guix.texi:14297
  20791. msgid "This feature is experimental and only supported for disk images."
  20792. msgstr ""
  20793. #. type: item
  20794. #: guix-git/doc/guix.texi:14299
  20795. #, fuzzy, no-wrap
  20796. msgid "@code{kernel-loadable-modules} (default: '())"
  20797. msgstr "@code{features} (@code{'()})"
  20798. #. type: table
  20799. #: guix-git/doc/guix.texi:14302
  20800. msgid "A list of objects (usually packages) to collect loadable kernel modules from--e.g. @code{(list ddcci-driver-linux)}."
  20801. msgstr ""
  20802. #. type: item
  20803. #: guix-git/doc/guix.texi:14303
  20804. #, fuzzy, no-wrap
  20805. msgid "@code{kernel-arguments} (default: @code{%default-kernel-arguments})"
  20806. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  20807. #. type: table
  20808. #: guix-git/doc/guix.texi:14306
  20809. msgid "List of strings or gexps representing additional arguments to pass on the command-line of the kernel---e.g., @code{(\"console=ttyS0\")}."
  20810. msgstr ""
  20811. #. type: code{#1}
  20812. #: guix-git/doc/guix.texi:14307 guix-git/doc/guix.texi:33978
  20813. #: guix-git/doc/guix.texi:33997
  20814. #, no-wrap
  20815. msgid "bootloader"
  20816. msgstr ""
  20817. #. type: table
  20818. #: guix-git/doc/guix.texi:14309
  20819. msgid "The system bootloader configuration object. @xref{Bootloader Configuration}."
  20820. msgstr ""
  20821. #. type: code{#1}
  20822. #: guix-git/doc/guix.texi:14310 guix-git/doc/guix.texi:34171
  20823. #, no-wrap
  20824. msgid "label"
  20825. msgstr ""
  20826. #. type: table
  20827. #: guix-git/doc/guix.texi:14313
  20828. 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."
  20829. msgstr ""
  20830. #. type: item
  20831. #: guix-git/doc/guix.texi:14314 guix-git/doc/guix.texi:16006
  20832. #: guix-git/doc/guix.texi:18969 guix-git/doc/guix.texi:34101
  20833. #, no-wrap
  20834. msgid "@code{keyboard-layout} (default: @code{#f})"
  20835. msgstr ""
  20836. #. type: table
  20837. #: guix-git/doc/guix.texi:14319
  20838. 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."
  20839. msgstr ""
  20840. #. type: table
  20841. #: guix-git/doc/guix.texi:14324
  20842. 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})."
  20843. msgstr ""
  20844. #. type: quotation
  20845. #: guix-git/doc/guix.texi:14331
  20846. 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."
  20847. msgstr ""
  20848. #. type: item
  20849. #: guix-git/doc/guix.texi:14333
  20850. #, no-wrap
  20851. msgid "@code{initrd-modules} (default: @code{%base-initrd-modules})"
  20852. msgstr ""
  20853. #. type: cindex
  20854. #: guix-git/doc/guix.texi:14334 guix-git/doc/guix.texi:33783
  20855. #: guix-git/doc/guix.texi:33906
  20856. #, no-wrap
  20857. msgid "initrd"
  20858. msgstr ""
  20859. #. type: cindex
  20860. #: guix-git/doc/guix.texi:14335 guix-git/doc/guix.texi:33784
  20861. #: guix-git/doc/guix.texi:33907
  20862. #, no-wrap
  20863. msgid "initial RAM disk"
  20864. msgstr ""
  20865. #. type: table
  20866. #: guix-git/doc/guix.texi:14338
  20867. msgid "The list of Linux kernel modules that need to be available in the initial RAM disk. @xref{Initial RAM Disk}."
  20868. msgstr ""
  20869. #. type: item
  20870. #: guix-git/doc/guix.texi:14339
  20871. #, no-wrap
  20872. msgid "@code{initrd} (default: @code{base-initrd})"
  20873. msgstr ""
  20874. #. type: table
  20875. #: guix-git/doc/guix.texi:14343
  20876. 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}."
  20877. msgstr ""
  20878. #. type: item
  20879. #: guix-git/doc/guix.texi:14344
  20880. #, fuzzy, no-wrap
  20881. msgid "@code{firmware} (default: @code{%base-firmware})"
  20882. msgstr "@code{mate}(默认值:@code{mate})"
  20883. #. type: cindex
  20884. #: guix-git/doc/guix.texi:14345
  20885. #, no-wrap
  20886. msgid "firmware"
  20887. msgstr ""
  20888. #. type: table
  20889. #: guix-git/doc/guix.texi:14347
  20890. msgid "List of firmware packages loadable by the operating system kernel."
  20891. msgstr ""
  20892. #. type: table
  20893. #: guix-git/doc/guix.texi:14352
  20894. 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."
  20895. msgstr ""
  20896. #. type: code{#1}
  20897. #: guix-git/doc/guix.texi:14353 guix-git/doc/guix.texi:35020
  20898. #, no-wrap
  20899. msgid "host-name"
  20900. msgstr ""
  20901. #. type: table
  20902. #: guix-git/doc/guix.texi:14355
  20903. msgid "The host name."
  20904. msgstr ""
  20905. #. type: code{#1}
  20906. #: guix-git/doc/guix.texi:14356
  20907. #, no-wrap
  20908. msgid "hosts-file"
  20909. msgstr ""
  20910. #. type: cindex
  20911. #: guix-git/doc/guix.texi:14357
  20912. #, no-wrap
  20913. msgid "hosts file"
  20914. msgstr ""
  20915. #. type: table
  20916. #: guix-git/doc/guix.texi:14362
  20917. 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}."
  20918. msgstr ""
  20919. #. type: item
  20920. #: guix-git/doc/guix.texi:14363
  20921. #, no-wrap
  20922. msgid "@code{mapped-devices} (default: @code{'()})"
  20923. msgstr ""
  20924. #. type: table
  20925. #: guix-git/doc/guix.texi:14365
  20926. msgid "A list of mapped devices. @xref{Mapped Devices}."
  20927. msgstr ""
  20928. #. type: code{#1}
  20929. #: guix-git/doc/guix.texi:14366
  20930. #, no-wrap
  20931. msgid "file-systems"
  20932. msgstr ""
  20933. #. type: table
  20934. #: guix-git/doc/guix.texi:14368
  20935. msgid "A list of file systems. @xref{File Systems}."
  20936. msgstr ""
  20937. #. type: item
  20938. #: guix-git/doc/guix.texi:14369
  20939. #, no-wrap
  20940. msgid "@code{swap-devices} (default: @code{'()})"
  20941. msgstr ""
  20942. #. type: cindex
  20943. #: guix-git/doc/guix.texi:14370
  20944. #, no-wrap
  20945. msgid "swap devices"
  20946. msgstr ""
  20947. #. type: table
  20948. #: guix-git/doc/guix.texi:14372
  20949. msgid "A list of swap spaces. @xref{Swap Space}."
  20950. msgstr ""
  20951. #. type: item
  20952. #: guix-git/doc/guix.texi:14373
  20953. #, no-wrap
  20954. msgid "@code{users} (default: @code{%base-user-accounts})"
  20955. msgstr ""
  20956. #. type: itemx
  20957. #: guix-git/doc/guix.texi:14374
  20958. #, fuzzy, no-wrap
  20959. msgid "@code{groups} (default: @code{%base-groups})"
  20960. msgstr "@code{gnome}(默认值:@code{gnome})"
  20961. #. type: table
  20962. #: guix-git/doc/guix.texi:14376
  20963. msgid "List of user accounts and groups. @xref{User Accounts}."
  20964. msgstr ""
  20965. #. type: table
  20966. #: guix-git/doc/guix.texi:14379
  20967. msgid "If the @code{users} list lacks a user account with UID@tie{}0, a ``root'' account with UID@tie{}0 is automatically added."
  20968. msgstr ""
  20969. #. type: item
  20970. #: guix-git/doc/guix.texi:14380
  20971. #, no-wrap
  20972. msgid "@code{skeletons} (default: @code{(default-skeletons)})"
  20973. msgstr ""
  20974. #. type: table
  20975. #: guix-git/doc/guix.texi:14384
  20976. 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."
  20977. msgstr ""
  20978. #. type: table
  20979. #: guix-git/doc/guix.texi:14386
  20980. msgid "For instance, a valid value may look like this:"
  20981. msgstr ""
  20982. #. type: lisp
  20983. #: guix-git/doc/guix.texi:14392
  20984. #, no-wrap
  20985. msgid ""
  20986. "`((\".bashrc\" ,(plain-file \"bashrc\" \"echo Hello\\n\"))\n"
  20987. " (\".guile\" ,(plain-file \"guile\"\n"
  20988. " \"(use-modules (ice-9 readline))\n"
  20989. " (activate-readline)\")))\n"
  20990. msgstr ""
  20991. #. type: item
  20992. #: guix-git/doc/guix.texi:14394
  20993. #, fuzzy, no-wrap
  20994. msgid "@code{issue} (default: @code{%default-issue})"
  20995. msgstr "@code{mate}(默认值:@code{mate})"
  20996. #. type: table
  20997. #: guix-git/doc/guix.texi:14397
  20998. msgid "A string denoting the contents of the @file{/etc/issue} file, which is displayed when users log in on a text console."
  20999. msgstr ""
  21000. #. type: item
  21001. #: guix-git/doc/guix.texi:14398
  21002. #, fuzzy, no-wrap
  21003. msgid "@code{packages} (default: @code{%base-packages})"
  21004. msgstr "@code{xfce}(默认值:@code{xfce})"
  21005. #. type: table
  21006. #: guix-git/doc/guix.texi:14402
  21007. 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:"
  21008. msgstr ""
  21009. #. type: lisp
  21010. #: guix-git/doc/guix.texi:14407
  21011. #, no-wrap
  21012. msgid ""
  21013. "(cons* git ; the default \"out\" output\n"
  21014. " (list git \"send-email\") ; another output of git\n"
  21015. " %base-packages) ; the default set\n"
  21016. msgstr ""
  21017. #. type: table
  21018. #: guix-git/doc/guix.texi:14412
  21019. msgid "The default set includes core utilities and it is good practice to install non-core utilities in user profiles (@pxref{Invoking guix package})."
  21020. msgstr ""
  21021. #. type: code{#1}
  21022. #: guix-git/doc/guix.texi:14413
  21023. #, no-wrap
  21024. msgid "timezone"
  21025. msgstr ""
  21026. #. type: table
  21027. #: guix-git/doc/guix.texi:14415
  21028. msgid "A timezone identifying string---e.g., @code{\"Europe/Paris\"}."
  21029. msgstr ""
  21030. #. type: table
  21031. #: guix-git/doc/guix.texi:14419
  21032. 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."
  21033. msgstr ""
  21034. #. type: item
  21035. #: guix-git/doc/guix.texi:14420 guix-git/doc/guix.texi:20574
  21036. #, no-wrap
  21037. msgid "@code{locale} (default: @code{\"en_US.utf8\"})"
  21038. msgstr ""
  21039. #. type: table
  21040. #: guix-git/doc/guix.texi:14423
  21041. msgid "The name of the default locale (@pxref{Locale Names,,, libc, The GNU C Library Reference Manual}). @xref{Locales}, for more information."
  21042. msgstr ""
  21043. #. type: item
  21044. #: guix-git/doc/guix.texi:14424
  21045. #, fuzzy, no-wrap
  21046. msgid "@code{locale-definitions} (default: @code{%default-locale-definitions})"
  21047. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  21048. #. type: table
  21049. #: guix-git/doc/guix.texi:14427
  21050. msgid "The list of locale definitions to be compiled and that may be used at run time. @xref{Locales}."
  21051. msgstr ""
  21052. #. type: item
  21053. #: guix-git/doc/guix.texi:14428
  21054. #, no-wrap
  21055. msgid "@code{locale-libcs} (default: @code{(list @var{glibc})})"
  21056. msgstr ""
  21057. #. type: table
  21058. #: guix-git/doc/guix.texi:14432
  21059. 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."
  21060. msgstr ""
  21061. #. type: item
  21062. #: guix-git/doc/guix.texi:14433
  21063. #, fuzzy, no-wrap
  21064. msgid "@code{name-service-switch} (default: @code{%default-nss})"
  21065. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  21066. #. type: table
  21067. #: guix-git/doc/guix.texi:14437
  21068. msgid "Configuration of the libc name service switch (NSS)---a @code{<name-service-switch>} object. @xref{Name Service Switch}, for details."
  21069. msgstr ""
  21070. #. type: item
  21071. #: guix-git/doc/guix.texi:14438
  21072. #, fuzzy, no-wrap
  21073. msgid "@code{services} (default: @code{%base-services})"
  21074. msgstr "@code{xfce}(默认值:@code{xfce})"
  21075. #. type: table
  21076. #: guix-git/doc/guix.texi:14440
  21077. msgid "A list of service objects denoting system services. @xref{Services}."
  21078. msgstr ""
  21079. #. type: cindex
  21080. #: guix-git/doc/guix.texi:14441
  21081. #, no-wrap
  21082. msgid "essential services"
  21083. msgstr ""
  21084. #. type: item
  21085. #: guix-git/doc/guix.texi:14442
  21086. #, no-wrap
  21087. msgid "@code{essential-services} (default: ...)"
  21088. msgstr ""
  21089. #. type: table
  21090. #: guix-git/doc/guix.texi:14447
  21091. 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."
  21092. msgstr ""
  21093. #. type: item
  21094. #: guix-git/doc/guix.texi:14448
  21095. #, no-wrap
  21096. msgid "@code{pam-services} (default: @code{(base-pam-services)})"
  21097. msgstr ""
  21098. #. type: cindex
  21099. #: guix-git/doc/guix.texi:14449
  21100. #, no-wrap
  21101. msgid "PAM"
  21102. msgstr ""
  21103. #. type: cindex
  21104. #: guix-git/doc/guix.texi:14450
  21105. #, no-wrap
  21106. msgid "pluggable authentication modules"
  21107. msgstr ""
  21108. #. type: table
  21109. #: guix-git/doc/guix.texi:14453
  21110. msgid "Linux @dfn{pluggable authentication module} (PAM) services."
  21111. msgstr ""
  21112. #. type: item
  21113. #: guix-git/doc/guix.texi:14454
  21114. #, fuzzy, no-wrap
  21115. msgid "@code{setuid-programs} (default: @code{%setuid-programs})"
  21116. msgstr "@code{features} (@code{'()})"
  21117. #. type: table
  21118. #: guix-git/doc/guix.texi:14457
  21119. msgid "List of @code{<setuid-program>}. @xref{Setuid Programs}, for more information."
  21120. msgstr ""
  21121. #. type: item
  21122. #: guix-git/doc/guix.texi:14458
  21123. #, fuzzy, no-wrap
  21124. msgid "@code{sudoers-file} (default: @code{%sudoers-specification})"
  21125. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  21126. #. type: cindex
  21127. #: guix-git/doc/guix.texi:14459
  21128. #, no-wrap
  21129. msgid "sudoers file"
  21130. msgstr ""
  21131. #. type: table
  21132. #: guix-git/doc/guix.texi:14462
  21133. msgid "The contents of the @file{/etc/sudoers} file as a file-like object (@pxref{G-Expressions, @code{local-file} and @code{plain-file}})."
  21134. msgstr ""
  21135. #. type: table
  21136. #: guix-git/doc/guix.texi:14467
  21137. 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}."
  21138. msgstr ""
  21139. #. type: deffn
  21140. #: guix-git/doc/guix.texi:14470
  21141. #, no-wrap
  21142. msgid "{Scheme Syntax} this-operating-system"
  21143. msgstr ""
  21144. #. type: deffn
  21145. #: guix-git/doc/guix.texi:14473
  21146. msgid "When used in the @emph{lexical scope} of an operating system field definition, this identifier resolves to the operating system being defined."
  21147. msgstr ""
  21148. #. type: deffn
  21149. #: guix-git/doc/guix.texi:14476
  21150. msgid "The example below shows how to refer to the operating system being defined in the definition of the @code{label} field:"
  21151. msgstr ""
  21152. #. type: lisp
  21153. #: guix-git/doc/guix.texi:14479 guix-git/doc/guix.texi:18191
  21154. #, no-wrap
  21155. msgid ""
  21156. "(use-modules (gnu) (guix))\n"
  21157. "\n"
  21158. msgstr ""
  21159. #. type: lisp
  21160. #: guix-git/doc/guix.texi:14484
  21161. #, no-wrap
  21162. msgid ""
  21163. "(operating-system\n"
  21164. " ;; ...\n"
  21165. " (label (package-full-name\n"
  21166. " (operating-system-kernel this-operating-system))))\n"
  21167. msgstr ""
  21168. #. type: deffn
  21169. #: guix-git/doc/guix.texi:14488
  21170. msgid "It is an error to refer to @code{this-operating-system} outside an operating system definition."
  21171. msgstr ""
  21172. #. type: Plain text
  21173. #: guix-git/doc/guix.texi:14499
  21174. 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:"
  21175. msgstr ""
  21176. #. type: lisp
  21177. #: guix-git/doc/guix.texi:14505
  21178. #, no-wrap
  21179. msgid ""
  21180. "(file-system\n"
  21181. " (mount-point \"/home\")\n"
  21182. " (device \"/dev/sda3\")\n"
  21183. " (type \"ext4\"))\n"
  21184. msgstr ""
  21185. #. type: Plain text
  21186. #: guix-git/doc/guix.texi:14509
  21187. msgid "As usual, some of the fields are mandatory---those shown in the example above---while others can be omitted. These are described below."
  21188. msgstr ""
  21189. #. type: deftp
  21190. #: guix-git/doc/guix.texi:14510
  21191. #, no-wrap
  21192. msgid "{Data Type} file-system"
  21193. msgstr ""
  21194. #. type: deftp
  21195. #: guix-git/doc/guix.texi:14513
  21196. msgid "Objects of this type represent file systems to be mounted. They contain the following members:"
  21197. msgstr ""
  21198. #. type: item
  21199. #: guix-git/doc/guix.texi:14515 guix-git/doc/guix.texi:14895
  21200. #, no-wrap
  21201. msgid "type"
  21202. msgstr ""
  21203. #. type: table
  21204. #: guix-git/doc/guix.texi:14518
  21205. msgid "This is a string specifying the type of the file system---e.g., @code{\"ext4\"}."
  21206. msgstr ""
  21207. #. type: code{#1}
  21208. #: guix-git/doc/guix.texi:14519
  21209. #, no-wrap
  21210. msgid "mount-point"
  21211. msgstr ""
  21212. #. type: table
  21213. #: guix-git/doc/guix.texi:14521
  21214. msgid "This designates the place where the file system is to be mounted."
  21215. msgstr ""
  21216. #. type: code{#1}
  21217. #: guix-git/doc/guix.texi:14522
  21218. #, no-wrap
  21219. msgid "device"
  21220. msgstr ""
  21221. #. type: table
  21222. #: guix-git/doc/guix.texi:14532
  21223. 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.}."
  21224. msgstr ""
  21225. #. type: findex
  21226. #: guix-git/doc/guix.texi:14533
  21227. #, no-wrap
  21228. msgid "file-system-label"
  21229. msgstr ""
  21230. #. type: table
  21231. #: guix-git/doc/guix.texi:14538
  21232. 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:"
  21233. msgstr ""
  21234. #. type: lisp
  21235. #: guix-git/doc/guix.texi:14544
  21236. #, no-wrap
  21237. msgid ""
  21238. "(file-system\n"
  21239. " (mount-point \"/home\")\n"
  21240. " (type \"ext4\")\n"
  21241. " (device (file-system-label \"my-home\")))\n"
  21242. msgstr ""
  21243. #. type: code{#1}
  21244. #: guix-git/doc/guix.texi:14546 guix-git/doc/guix.texi:32579
  21245. #: guix-git/doc/guix.texi:32595
  21246. #, no-wrap
  21247. msgid "uuid"
  21248. msgstr ""
  21249. #. type: table
  21250. #: guix-git/doc/guix.texi:14554
  21251. 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:"
  21252. msgstr ""
  21253. #. type: lisp
  21254. #: guix-git/doc/guix.texi:14560
  21255. #, no-wrap
  21256. msgid ""
  21257. "(file-system\n"
  21258. " (mount-point \"/home\")\n"
  21259. " (type \"ext4\")\n"
  21260. " (device (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  21261. msgstr ""
  21262. #. type: table
  21263. #: guix-git/doc/guix.texi:14568
  21264. 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."
  21265. msgstr ""
  21266. #. type: item
  21267. #: guix-git/doc/guix.texi:14569
  21268. #, no-wrap
  21269. msgid "@code{flags} (default: @code{'()})"
  21270. msgstr ""
  21271. #. type: table
  21272. #: guix-git/doc/guix.texi:14579
  21273. 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."
  21274. msgstr ""
  21275. #. type: item
  21276. #: guix-git/doc/guix.texi:14580
  21277. #, no-wrap
  21278. msgid "@code{options} (default: @code{#f})"
  21279. msgstr ""
  21280. #. type: table
  21281. #: guix-git/doc/guix.texi:14589
  21282. 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."
  21283. msgstr ""
  21284. #. type: item
  21285. #: guix-git/doc/guix.texi:14590
  21286. #, no-wrap
  21287. msgid "@code{mount?} (default: @code{#t})"
  21288. msgstr ""
  21289. #. type: table
  21290. #: guix-git/doc/guix.texi:14595
  21291. 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."
  21292. msgstr ""
  21293. #. type: item
  21294. #: guix-git/doc/guix.texi:14596
  21295. #, no-wrap
  21296. msgid "@code{needed-for-boot?} (default: @code{#f})"
  21297. msgstr ""
  21298. #. type: table
  21299. #: guix-git/doc/guix.texi:14601
  21300. 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."
  21301. msgstr ""
  21302. #. type: item
  21303. #: guix-git/doc/guix.texi:14602
  21304. #, no-wrap
  21305. msgid "@code{check?} (default: @code{#t})"
  21306. msgstr ""
  21307. #. type: table
  21308. #: guix-git/doc/guix.texi:14606
  21309. 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."
  21310. msgstr ""
  21311. #. type: item
  21312. #: guix-git/doc/guix.texi:14607
  21313. #, fuzzy, no-wrap
  21314. msgid "@code{skip-check-if-clean?} (default: @code{#t})"
  21315. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  21316. #. type: table
  21317. #: guix-git/doc/guix.texi:14612
  21318. 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."
  21319. msgstr ""
  21320. #. type: table
  21321. #: guix-git/doc/guix.texi:14616
  21322. 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!"
  21323. msgstr ""
  21324. #. type: table
  21325. #: guix-git/doc/guix.texi:14620
  21326. 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."
  21327. msgstr ""
  21328. #. type: item
  21329. #: guix-git/doc/guix.texi:14621
  21330. #, fuzzy, no-wrap
  21331. msgid "@code{repair} (default: @code{'preen})"
  21332. msgstr "@code{features} (@code{'()})"
  21333. #. type: table
  21334. #: guix-git/doc/guix.texi:14624
  21335. msgid "When @code{check?} finds errors, it can (try to) repair them and continue booting. This option controls when and how to do so."
  21336. msgstr ""
  21337. #. type: table
  21338. #: guix-git/doc/guix.texi:14628
  21339. 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."
  21340. msgstr ""
  21341. #. type: table
  21342. #: guix-git/doc/guix.texi:14631
  21343. 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."
  21344. msgstr ""
  21345. #. type: table
  21346. #: guix-git/doc/guix.texi:14635
  21347. 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''."
  21348. msgstr ""
  21349. #. type: item
  21350. #: guix-git/doc/guix.texi:14636
  21351. #, no-wrap
  21352. msgid "@code{create-mount-point?} (default: @code{#f})"
  21353. msgstr ""
  21354. #. type: table
  21355. #: guix-git/doc/guix.texi:14638
  21356. msgid "When true, the mount point is created if it does not exist yet."
  21357. msgstr ""
  21358. #. type: item
  21359. #: guix-git/doc/guix.texi:14639
  21360. #, fuzzy, no-wrap
  21361. msgid "@code{mount-may-fail?} (default: @code{#f})"
  21362. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  21363. #. type: table
  21364. #: guix-git/doc/guix.texi:14644
  21365. 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."
  21366. msgstr ""
  21367. #. type: item
  21368. #: guix-git/doc/guix.texi:14645 guix-git/doc/guix.texi:15041
  21369. #, no-wrap
  21370. msgid "@code{dependencies} (default: @code{'()})"
  21371. msgstr ""
  21372. #. type: table
  21373. #: guix-git/doc/guix.texi:14649
  21374. 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."
  21375. msgstr ""
  21376. #. type: table
  21377. #: guix-git/doc/guix.texi:14653
  21378. 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}."
  21379. msgstr ""
  21380. #. type: table
  21381. #: guix-git/doc/guix.texi:14656
  21382. msgid "Another example is a file system that depends on a mapped device, for example for an encrypted partition (@pxref{Mapped Devices})."
  21383. msgstr ""
  21384. #. type: deffn
  21385. #: guix-git/doc/guix.texi:14659
  21386. #, no-wrap
  21387. msgid "{Scheme Procedure} file-system-label @var{str}"
  21388. msgstr ""
  21389. #. type: deffn
  21390. #: guix-git/doc/guix.texi:14662
  21391. msgid "This procedure returns an opaque file system label from @var{str}, a string:"
  21392. msgstr ""
  21393. #. type: lisp
  21394. #: guix-git/doc/guix.texi:14666
  21395. #, no-wrap
  21396. msgid ""
  21397. "(file-system-label \"home\")\n"
  21398. "@result{} #<file-system-label \"home\">\n"
  21399. msgstr ""
  21400. #. type: deffn
  21401. #: guix-git/doc/guix.texi:14670
  21402. msgid "File system labels are used to refer to file systems by label rather than by device name. See above for examples."
  21403. msgstr ""
  21404. #. type: Plain text
  21405. #: guix-git/doc/guix.texi:14674
  21406. msgid "The @code{(gnu system file-systems)} exports the following useful variables."
  21407. msgstr ""
  21408. #. type: defvr
  21409. #: guix-git/doc/guix.texi:14675
  21410. #, no-wrap
  21411. msgid "{Scheme Variable} %base-file-systems"
  21412. msgstr ""
  21413. #. type: defvr
  21414. #: guix-git/doc/guix.texi:14680
  21415. 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."
  21416. msgstr ""
  21417. #. type: defvr
  21418. #: guix-git/doc/guix.texi:14682
  21419. #, no-wrap
  21420. msgid "{Scheme Variable} %pseudo-terminal-file-system"
  21421. msgstr ""
  21422. #. type: defvr
  21423. #: guix-git/doc/guix.texi:14688
  21424. 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}."
  21425. msgstr ""
  21426. #. type: defvr
  21427. #: guix-git/doc/guix.texi:14690
  21428. #, no-wrap
  21429. msgid "{Scheme Variable} %shared-memory-file-system"
  21430. msgstr ""
  21431. #. type: defvr
  21432. #: guix-git/doc/guix.texi:14694
  21433. 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})."
  21434. msgstr ""
  21435. #. type: defvr
  21436. #: guix-git/doc/guix.texi:14696
  21437. #, no-wrap
  21438. msgid "{Scheme Variable} %immutable-store"
  21439. msgstr ""
  21440. #. type: defvr
  21441. #: guix-git/doc/guix.texi:14701
  21442. 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."
  21443. msgstr ""
  21444. #. type: defvr
  21445. #: guix-git/doc/guix.texi:14704
  21446. msgid "The daemon itself is still able to write to the store: it remounts it read-write in its own ``name space.''"
  21447. msgstr ""
  21448. #. type: defvr
  21449. #: guix-git/doc/guix.texi:14706
  21450. #, no-wrap
  21451. msgid "{Scheme Variable} %binary-format-file-system"
  21452. msgstr ""
  21453. #. type: defvr
  21454. #: guix-git/doc/guix.texi:14710
  21455. 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."
  21456. msgstr ""
  21457. #. type: defvr
  21458. #: guix-git/doc/guix.texi:14712
  21459. #, no-wrap
  21460. msgid "{Scheme Variable} %fuse-control-file-system"
  21461. msgstr ""
  21462. #. type: defvr
  21463. #: guix-git/doc/guix.texi:14716
  21464. 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."
  21465. msgstr ""
  21466. #. type: Plain text
  21467. #: guix-git/doc/guix.texi:14720
  21468. msgid "The @code{(gnu system uuid)} module provides tools to deal with file system ``unique identifiers'' (UUIDs)."
  21469. msgstr ""
  21470. #. type: deffn
  21471. #: guix-git/doc/guix.texi:14721
  21472. #, no-wrap
  21473. msgid "{Scheme Procedure} uuid @var{str} [@var{type}]"
  21474. msgstr ""
  21475. #. type: deffn
  21476. #: guix-git/doc/guix.texi:14724
  21477. msgid "Return an opaque UUID (unique identifier) object of the given @var{type} (a symbol) by parsing @var{str} (a string):"
  21478. msgstr ""
  21479. #. type: lisp
  21480. #: guix-git/doc/guix.texi:14728
  21481. #, no-wrap
  21482. msgid ""
  21483. "(uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")\n"
  21484. "@result{} #<<uuid> type: dce bv: @dots{}>\n"
  21485. "\n"
  21486. msgstr ""
  21487. #. type: lisp
  21488. #: guix-git/doc/guix.texi:14731
  21489. #, no-wrap
  21490. msgid ""
  21491. "(uuid \"1234-ABCD\" 'fat)\n"
  21492. "@result{} #<<uuid> type: fat bv: @dots{}>\n"
  21493. msgstr ""
  21494. #. type: deffn
  21495. #: guix-git/doc/guix.texi:14735
  21496. msgid "@var{type} may be one of @code{dce}, @code{iso9660}, @code{fat}, @code{ntfs}, or one of the commonly found synonyms for these."
  21497. msgstr ""
  21498. #. type: deffn
  21499. #: guix-git/doc/guix.texi:14738
  21500. msgid "UUIDs are another way to unambiguously refer to file systems in operating system configuration. See the examples above."
  21501. msgstr ""
  21502. #. type: subsection
  21503. #: guix-git/doc/guix.texi:14741 guix-git/doc/guix.texi:14742
  21504. #, fuzzy, no-wrap
  21505. msgid "Btrfs file system"
  21506. msgstr "网络文件系统"
  21507. #. type: Plain text
  21508. #: guix-git/doc/guix.texi:14748
  21509. 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."
  21510. msgstr ""
  21511. #. type: Plain text
  21512. #: guix-git/doc/guix.texi:14751
  21513. msgid "In its simplest usage, a Btrfs file system can be described, for example, by:"
  21514. msgstr ""
  21515. #. type: lisp
  21516. #: guix-git/doc/guix.texi:14757
  21517. #, no-wrap
  21518. msgid ""
  21519. "(file-system\n"
  21520. " (mount-point \"/home\")\n"
  21521. " (type \"btrfs\")\n"
  21522. " (device (file-system-label \"my-home\")))\n"
  21523. msgstr ""
  21524. #. type: Plain text
  21525. #: guix-git/doc/guix.texi:14763
  21526. 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}):"
  21527. msgstr ""
  21528. #. type: lisp
  21529. #: guix-git/doc/guix.texi:14771
  21530. #, no-wrap
  21531. msgid ""
  21532. "(file-system\n"
  21533. " (device (file-system-label \"my-btrfs-pool\"))\n"
  21534. " (mount-point \"/\")\n"
  21535. " (type \"btrfs\")\n"
  21536. " (options \"subvol=rootfs\")\n"
  21537. " (dependencies mapped-devices))\n"
  21538. msgstr ""
  21539. #. type: Plain text
  21540. #: guix-git/doc/guix.texi:14782
  21541. 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."
  21542. msgstr ""
  21543. #. type: Plain text
  21544. #: guix-git/doc/guix.texi:14790
  21545. 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.:"
  21546. msgstr ""
  21547. #. type: example
  21548. #: guix-git/doc/guix.texi:14797
  21549. #, no-wrap
  21550. msgid ""
  21551. "/ (top level)\n"
  21552. "├── rootfs (subvolume directory)\n"
  21553. " ├── gnu (normal directory)\n"
  21554. " ├── store (normal directory)\n"
  21555. "[...]\n"
  21556. msgstr ""
  21557. #. type: Plain text
  21558. #: guix-git/doc/guix.texi:14802
  21559. 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."
  21560. msgstr ""
  21561. #. type: Plain text
  21562. #: guix-git/doc/guix.texi:14805
  21563. msgid "The next example shows a nested hierarchy of subvolumes and directories:"
  21564. msgstr ""
  21565. #. type: example
  21566. #: guix-git/doc/guix.texi:14812
  21567. #, no-wrap
  21568. msgid ""
  21569. "/ (top level)\n"
  21570. "├── rootfs (subvolume)\n"
  21571. " ├── gnu (normal directory)\n"
  21572. " ├── store (subvolume)\n"
  21573. "[...]\n"
  21574. msgstr ""
  21575. #. type: Plain text
  21576. #: guix-git/doc/guix.texi:14819
  21577. 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}."
  21578. msgstr ""
  21579. #. type: Plain text
  21580. #: guix-git/doc/guix.texi:14821
  21581. msgid "Finally, a more contrived example of nested subvolumes:"
  21582. msgstr ""
  21583. #. type: example
  21584. #: guix-git/doc/guix.texi:14828
  21585. #, no-wrap
  21586. msgid ""
  21587. "/ (top level)\n"
  21588. "├── root-snapshots (subvolume)\n"
  21589. " ├── root-current (subvolume)\n"
  21590. " ├── guix-store (subvolume)\n"
  21591. "[...]\n"
  21592. msgstr ""
  21593. #. type: Plain text
  21594. #: guix-git/doc/guix.texi:14835
  21595. 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:"
  21596. msgstr ""
  21597. #. type: lisp
  21598. #: guix-git/doc/guix.texi:14843
  21599. #, no-wrap
  21600. msgid ""
  21601. "(file-system\n"
  21602. " (device (file-system-label \"btrfs-pool-1\"))\n"
  21603. " (mount-point \"/gnu/store\")\n"
  21604. " (type \"btrfs\")\n"
  21605. " (options \"subvol=root-snapshots/root-current/guix-store,\\\n"
  21606. "compress-force=zstd,space_cache=v2\"))\n"
  21607. msgstr ""
  21608. #. type: cindex
  21609. #: guix-git/doc/guix.texi:14848
  21610. #, no-wrap
  21611. msgid "device mapping"
  21612. msgstr ""
  21613. #. type: cindex
  21614. #: guix-git/doc/guix.texi:14849
  21615. #, no-wrap
  21616. msgid "mapped devices"
  21617. msgstr ""
  21618. #. type: Plain text
  21619. #: guix-git/doc/guix.texi:14866
  21620. 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."
  21621. msgstr ""
  21622. #. type: Plain text
  21623. #: guix-git/doc/guix.texi:14869
  21624. msgid "Mapped devices are declared using the @code{mapped-device} form, defined as follows; for examples, see below."
  21625. msgstr ""
  21626. #. type: deftp
  21627. #: guix-git/doc/guix.texi:14870
  21628. #, no-wrap
  21629. msgid "{Data Type} mapped-device"
  21630. msgstr ""
  21631. #. type: deftp
  21632. #: guix-git/doc/guix.texi:14873
  21633. msgid "Objects of this type represent device mappings that will be made when the system boots up."
  21634. msgstr ""
  21635. #. type: table
  21636. #: guix-git/doc/guix.texi:14880
  21637. 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."
  21638. msgstr ""
  21639. #. type: code{#1}
  21640. #: guix-git/doc/guix.texi:14881 guix-git/doc/guix.texi:15036
  21641. #, no-wrap
  21642. msgid "target"
  21643. msgstr ""
  21644. #. type: table
  21645. #: guix-git/doc/guix.texi:14890
  21646. 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\"}."
  21647. msgstr ""
  21648. #. type: code{#1}
  21649. #: guix-git/doc/guix.texi:14891 guix-git/doc/guix.texi:34073
  21650. #, no-wrap
  21651. msgid "targets"
  21652. msgstr ""
  21653. #. type: table
  21654. #: guix-git/doc/guix.texi:14894
  21655. msgid "This list of strings specifies names of the resulting mapped devices in case there are several. The format is identical to @var{target}."
  21656. msgstr ""
  21657. #. type: table
  21658. #: guix-git/doc/guix.texi:14898
  21659. msgid "This must be a @code{mapped-device-kind} object, which specifies how @var{source} is mapped to @var{target}."
  21660. msgstr ""
  21661. #. type: defvr
  21662. #: guix-git/doc/guix.texi:14901
  21663. #, no-wrap
  21664. msgid "{Scheme Variable} luks-device-mapping"
  21665. msgstr ""
  21666. #. type: defvr
  21667. #: guix-git/doc/guix.texi:14905
  21668. 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."
  21669. msgstr ""
  21670. #. type: defvr
  21671. #: guix-git/doc/guix.texi:14907
  21672. #, no-wrap
  21673. msgid "{Scheme Variable} raid-device-mapping"
  21674. msgstr ""
  21675. #. type: defvr
  21676. #: guix-git/doc/guix.texi:14912
  21677. 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."
  21678. msgstr ""
  21679. #. type: cindex
  21680. #: guix-git/doc/guix.texi:14914
  21681. #, no-wrap
  21682. msgid "LVM, logical volume manager"
  21683. msgstr ""
  21684. #. type: defvr
  21685. #: guix-git/doc/guix.texi:14915
  21686. #, no-wrap
  21687. msgid "{Scheme Variable} lvm-device-mapping"
  21688. msgstr ""
  21689. #. type: defvr
  21690. #: guix-git/doc/guix.texi:14920
  21691. 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."
  21692. msgstr ""
  21693. #. type: cindex
  21694. #: guix-git/doc/guix.texi:14922
  21695. #, no-wrap
  21696. msgid "disk encryption"
  21697. msgstr ""
  21698. #. type: cindex
  21699. #: guix-git/doc/guix.texi:14923
  21700. #, no-wrap
  21701. msgid "LUKS"
  21702. msgstr ""
  21703. #. type: Plain text
  21704. #: guix-git/doc/guix.texi:14931
  21705. 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})."
  21706. msgstr ""
  21707. #. type: lisp
  21708. #: guix-git/doc/guix.texi:14937
  21709. #, no-wrap
  21710. msgid ""
  21711. "(mapped-device\n"
  21712. " (source \"/dev/sda3\")\n"
  21713. " (target \"home\")\n"
  21714. " (type luks-device-mapping))\n"
  21715. msgstr ""
  21716. #. type: Plain text
  21717. #: guix-git/doc/guix.texi:14942
  21718. 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:"
  21719. msgstr ""
  21720. #. type: example
  21721. #: guix-git/doc/guix.texi:14945
  21722. #, no-wrap
  21723. msgid "cryptsetup luksUUID /dev/sda3\n"
  21724. msgstr ""
  21725. #. type: Plain text
  21726. #: guix-git/doc/guix.texi:14948
  21727. msgid "and use it as follows:"
  21728. msgstr ""
  21729. #. type: lisp
  21730. #: guix-git/doc/guix.texi:14954
  21731. #, no-wrap
  21732. msgid ""
  21733. "(mapped-device\n"
  21734. " (source (uuid \"cb67fc72-0d54-4c88-9d4b-b225f30b0f44\"))\n"
  21735. " (target \"home\")\n"
  21736. " (type luks-device-mapping))\n"
  21737. msgstr ""
  21738. #. type: cindex
  21739. #: guix-git/doc/guix.texi:14956
  21740. #, no-wrap
  21741. msgid "swap encryption"
  21742. msgstr ""
  21743. #. type: Plain text
  21744. #: guix-git/doc/guix.texi:14963
  21745. msgid "It is also desirable to encrypt swap space, since swap space may contain sensitive data. One way to accomplish that is to use a swap file in a file system on a device mapped via LUKS encryption. In this way, the swap file is encrypted because the entire device is encrypted. @xref{Swap Space}, or @xref{Preparing for Installation,,Disk Partitioning}, for an example."
  21746. msgstr ""
  21747. #. type: Plain text
  21748. #: guix-git/doc/guix.texi:14966
  21749. msgid "A RAID device formed of the partitions @file{/dev/sda1} and @file{/dev/sdb1} may be declared as follows:"
  21750. msgstr ""
  21751. #. type: lisp
  21752. #: guix-git/doc/guix.texi:14972
  21753. #, no-wrap
  21754. msgid ""
  21755. "(mapped-device\n"
  21756. " (source (list \"/dev/sda1\" \"/dev/sdb1\"))\n"
  21757. " (target \"/dev/md0\")\n"
  21758. " (type raid-device-mapping))\n"
  21759. msgstr ""
  21760. #. type: Plain text
  21761. #: guix-git/doc/guix.texi:14979
  21762. 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."
  21763. msgstr ""
  21764. #. type: Plain text
  21765. #: guix-git/doc/guix.texi:14982
  21766. msgid "LVM logical volumes ``alpha'' and ``beta'' from volume group ``vg0'' can be declared as follows:"
  21767. msgstr ""
  21768. #. type: lisp
  21769. #: guix-git/doc/guix.texi:14988
  21770. #, no-wrap
  21771. msgid ""
  21772. "(mapped-device\n"
  21773. " (source \"vg0\")\n"
  21774. " (targets (list \"vg0-alpha\" \"vg0-beta\"))\n"
  21775. " (type lvm-device-mapping))\n"
  21776. msgstr ""
  21777. #. type: Plain text
  21778. #: guix-git/doc/guix.texi:14993
  21779. 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})."
  21780. msgstr ""
  21781. #. type: cindex
  21782. #: guix-git/doc/guix.texi:14996
  21783. #, no-wrap
  21784. msgid "swap space"
  21785. msgstr ""
  21786. #. type: Plain text
  21787. #: guix-git/doc/guix.texi:15006
  21788. msgid "Swap space, as it is commonly called, is a disk area specifically designated for paging: the process in charge of memory management (the Linux kernel or Hurd's default pager) can decide that some memory pages stored in RAM which belong to a running program but are unused should be stored on disk instead. It unloads those from the RAM, freeing up precious fast memory, and writes them to the swap space. If the program tries to access that very page, the memory management process loads it back into memory for the program to use."
  21789. msgstr ""
  21790. #. type: Plain text
  21791. #: guix-git/doc/guix.texi:15012
  21792. msgid "A common misconception about swap is that it is only useful when small amounts of RAM are available to the system. However, it should be noted that kernels often use all available RAM for disk access caching to make I/O faster, and thus paging out unused portions of program memory will expand the RAM available for such caching."
  21793. msgstr ""
  21794. #. type: Plain text
  21795. #: guix-git/doc/guix.texi:15016
  21796. msgid "For a more detailed description of how memory is managed from the viewpoint of a monolithic kernel, @xref{Memory Concepts,,, libc, The GNU C Library Reference Manual}."
  21797. msgstr ""
  21798. #. type: Plain text
  21799. #: guix-git/doc/guix.texi:15025
  21800. msgid "The Linux kernel has support for swap partitions and swap files: the former uses a whole disk partition for paging, whereas the second uses a file on a file system for that (the file system driver needs to support it). On a comparable setup, both have the same performance, so one should consider ease of use when deciding between them. Partitions are ``simpler'' and do not need file system support, but need to be allocated at disk formatting time (logical volumes notwithstanding), whereas files can be allocated and deallocated at any time."
  21801. msgstr ""
  21802. #. type: Plain text
  21803. #: guix-git/doc/guix.texi:15030
  21804. msgid "Note that swap space is not zeroed on shutdown, so sensitive data (such as passwords) may linger on it if it was paged out. As such, you should consider having your swap reside on an encrypted device (@pxref{Mapped Devices})."
  21805. msgstr ""
  21806. #. type: deftp
  21807. #: guix-git/doc/guix.texi:15031
  21808. #, fuzzy, no-wrap
  21809. msgid "{Data Type} swap-space"
  21810. msgstr "{数据类型} build-machine"
  21811. #. type: deftp
  21812. #: guix-git/doc/guix.texi:15034
  21813. msgid "Objects of this type represent swap spaces. They contain the following members:"
  21814. msgstr ""
  21815. #. type: table
  21816. #: guix-git/doc/guix.texi:15040
  21817. msgid "The device or file to use, either a UUID, a @code{file-system-label} or a string, as in the definition of a @code{file-system} (@pxref{File Systems})."
  21818. msgstr ""
  21819. #. type: table
  21820. #: guix-git/doc/guix.texi:15047
  21821. msgid "A list of @code{file-system} or @code{mapped-device} objects, upon which the availability of the space depends. Note that just like for @code{file-system} objects, dependencies which are needed for boot and mounted in early userspace are not managed by the Shepherd, and so automatically filtered out for you."
  21822. msgstr ""
  21823. #. type: item
  21824. #: guix-git/doc/guix.texi:15048
  21825. #, fuzzy, no-wrap
  21826. msgid "@code{priority} (default: @code{#f})"
  21827. msgstr "@code{port}(默认值:@code{22})"
  21828. #. type: table
  21829. #: guix-git/doc/guix.texi:15055
  21830. msgid "Only supported by the Linux kernel. Either @code{#f} to disable swap priority, or an integer between 0 and 32767. The kernel will first use swap spaces of higher priority when paging, and use same priority spaces on a round-robin basis. The kernel will use swap spaces without a set priority after prioritized spaces, and in the order that they appeared in (not round-robin)."
  21831. msgstr ""
  21832. #. type: item
  21833. #: guix-git/doc/guix.texi:15056
  21834. #, fuzzy, no-wrap
  21835. msgid "@code{discard?} (default: @code{#f})"
  21836. msgstr "@code{speed}(默认值:@code{1.0})"
  21837. #. type: table
  21838. #: guix-git/doc/guix.texi:15060
  21839. msgid "Only supported by the Linux kernel. When true, the kernel will notify the disk controller of discarded pages, for example with the TRIM operation on Solid State Drives."
  21840. msgstr ""
  21841. #. type: Plain text
  21842. #: guix-git/doc/guix.texi:15065
  21843. msgid "Here are some examples:"
  21844. msgstr ""
  21845. #. type: lisp
  21846. #: guix-git/doc/guix.texi:15068
  21847. #, no-wrap
  21848. msgid "(swap-space (target (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  21849. msgstr ""
  21850. #. type: Plain text
  21851. #: guix-git/doc/guix.texi:15073
  21852. 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."
  21853. msgstr ""
  21854. #. type: lisp
  21855. #: guix-git/doc/guix.texi:15078
  21856. #, no-wrap
  21857. msgid ""
  21858. "(swap-space\n"
  21859. " (target (file-system-label \"swap\"))\n"
  21860. " (dependencies (list lvm-device)))\n"
  21861. msgstr ""
  21862. #. type: Plain text
  21863. #: guix-git/doc/guix.texi:15084
  21864. msgid "Use the partition with label @code{swap}, which can be found after the @var{lvm-device} mapped device has been opened. Again, the @command{swaplabel} command allows you to view and change the label of a Linux swap partition."
  21865. msgstr ""
  21866. #. type: lisp
  21867. #: guix-git/doc/guix.texi:15089
  21868. #, no-wrap
  21869. msgid ""
  21870. "(swap-space\n"
  21871. " (target \"/btrfs/swapfile\")\n"
  21872. " (dependencies (list btrfs-fs)))\n"
  21873. msgstr ""
  21874. #. type: Plain text
  21875. #: guix-git/doc/guix.texi:15093
  21876. msgid "Use the file @file{/btrfs/swapfile} as swap space, which is present on the @var{btrfs-fs} filesystem."
  21877. msgstr ""
  21878. #. type: cindex
  21879. #: guix-git/doc/guix.texi:15097
  21880. #, no-wrap
  21881. msgid "users"
  21882. msgstr ""
  21883. #. type: cindex
  21884. #: guix-git/doc/guix.texi:15098
  21885. #, no-wrap
  21886. msgid "accounts"
  21887. msgstr ""
  21888. #. type: cindex
  21889. #: guix-git/doc/guix.texi:15099
  21890. #, no-wrap
  21891. msgid "user accounts"
  21892. msgstr ""
  21893. #. type: Plain text
  21894. #: guix-git/doc/guix.texi:15103
  21895. 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:"
  21896. msgstr ""
  21897. #. type: lisp
  21898. #: guix-git/doc/guix.texi:15113
  21899. #, no-wrap
  21900. msgid ""
  21901. "(user-account\n"
  21902. " (name \"alice\")\n"
  21903. " (group \"users\")\n"
  21904. " (supplementary-groups '(\"wheel\" ;allow use of sudo, etc.\n"
  21905. " \"audio\" ;sound card\n"
  21906. " \"video\" ;video devices such as webcams\n"
  21907. " \"cdrom\")) ;the good ol' CD-ROM\n"
  21908. " (comment \"Bob's sister\"))\n"
  21909. msgstr ""
  21910. #. type: Plain text
  21911. #: guix-git/doc/guix.texi:15117
  21912. msgid "Here's a user account that uses a different shell and a custom home directory (the default would be @file{\"/home/bob\"}):"
  21913. msgstr ""
  21914. #. type: lisp
  21915. #: guix-git/doc/guix.texi:15125
  21916. #, no-wrap
  21917. msgid ""
  21918. "(user-account\n"
  21919. " (name \"bob\")\n"
  21920. " (group \"users\")\n"
  21921. " (comment \"Alice's bro\")\n"
  21922. " (shell (file-append zsh \"/bin/zsh\"))\n"
  21923. " (home-directory \"/home/robert\"))\n"
  21924. msgstr ""
  21925. #. type: Plain text
  21926. #: guix-git/doc/guix.texi:15134
  21927. 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."
  21928. msgstr ""
  21929. #. type: deftp
  21930. #: guix-git/doc/guix.texi:15135
  21931. #, no-wrap
  21932. msgid "{Data Type} user-account"
  21933. msgstr ""
  21934. #. type: deftp
  21935. #: guix-git/doc/guix.texi:15138
  21936. msgid "Objects of this type represent user accounts. The following members may be specified:"
  21937. msgstr ""
  21938. #. type: table
  21939. #: guix-git/doc/guix.texi:15142
  21940. msgid "The name of the user account."
  21941. msgstr ""
  21942. #. type: itemx
  21943. #: guix-git/doc/guix.texi:15143 guix-git/doc/guix.texi:33737
  21944. #, no-wrap
  21945. msgid "group"
  21946. msgstr ""
  21947. #. type: cindex
  21948. #: guix-git/doc/guix.texi:15144 guix-git/doc/guix.texi:15223
  21949. #, no-wrap
  21950. msgid "groups"
  21951. msgstr ""
  21952. #. type: table
  21953. #: guix-git/doc/guix.texi:15147
  21954. msgid "This is the name (a string) or identifier (a number) of the user group this account belongs to."
  21955. msgstr ""
  21956. #. type: item
  21957. #: guix-git/doc/guix.texi:15148
  21958. #, no-wrap
  21959. msgid "@code{supplementary-groups} (default: @code{'()})"
  21960. msgstr ""
  21961. #. type: table
  21962. #: guix-git/doc/guix.texi:15151
  21963. msgid "Optionally, this can be defined as a list of group names that this account belongs to."
  21964. msgstr ""
  21965. #. type: item
  21966. #: guix-git/doc/guix.texi:15152
  21967. #, no-wrap
  21968. msgid "@code{uid} (default: @code{#f})"
  21969. msgstr ""
  21970. #. type: table
  21971. #: guix-git/doc/guix.texi:15156
  21972. 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."
  21973. msgstr ""
  21974. #. type: item
  21975. #: guix-git/doc/guix.texi:15157
  21976. #, no-wrap
  21977. msgid "@code{comment} (default: @code{\"\"})"
  21978. msgstr ""
  21979. #. type: table
  21980. #: guix-git/doc/guix.texi:15159
  21981. msgid "A comment about the account, such as the account owner's full name."
  21982. msgstr ""
  21983. #. type: code{#1}
  21984. #: guix-git/doc/guix.texi:15160
  21985. #, no-wrap
  21986. msgid "home-directory"
  21987. msgstr ""
  21988. #. type: table
  21989. #: guix-git/doc/guix.texi:15162
  21990. msgid "This is the name of the home directory for the account."
  21991. msgstr ""
  21992. #. type: item
  21993. #: guix-git/doc/guix.texi:15163
  21994. #, no-wrap
  21995. msgid "@code{create-home-directory?} (default: @code{#t})"
  21996. msgstr ""
  21997. #. type: table
  21998. #: guix-git/doc/guix.texi:15166
  21999. msgid "Indicates whether the home directory of this account should be created if it does not exist yet."
  22000. msgstr ""
  22001. #. type: item
  22002. #: guix-git/doc/guix.texi:15167
  22003. #, no-wrap
  22004. msgid "@code{shell} (default: Bash)"
  22005. msgstr ""
  22006. #. type: table
  22007. #: guix-git/doc/guix.texi:15171
  22008. 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:"
  22009. msgstr ""
  22010. #. type: lisp
  22011. #: guix-git/doc/guix.texi:15174
  22012. #, no-wrap
  22013. msgid "(file-append bash \"/bin/bash\")\n"
  22014. msgstr ""
  22015. #. type: table
  22016. #: guix-git/doc/guix.texi:15178
  22017. msgid "... and to the Zsh executable like that:"
  22018. msgstr ""
  22019. #. type: lisp
  22020. #: guix-git/doc/guix.texi:15181
  22021. #, no-wrap
  22022. msgid "(file-append zsh \"/bin/zsh\")\n"
  22023. msgstr ""
  22024. #. type: item
  22025. #: guix-git/doc/guix.texi:15183 guix-git/doc/guix.texi:15241
  22026. #, no-wrap
  22027. msgid "@code{system?} (default: @code{#f})"
  22028. msgstr ""
  22029. #. type: table
  22030. #: guix-git/doc/guix.texi:15187
  22031. 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."
  22032. msgstr ""
  22033. #. type: anchor{#1}
  22034. #: guix-git/doc/guix.texi:15189
  22035. msgid "user-account-password"
  22036. msgstr ""
  22037. #. type: cindex
  22038. #: guix-git/doc/guix.texi:15189
  22039. #, no-wrap
  22040. msgid "password, for user accounts"
  22041. msgstr ""
  22042. #. type: item
  22043. #: guix-git/doc/guix.texi:15190 guix-git/doc/guix.texi:15245
  22044. #, no-wrap
  22045. msgid "@code{password} (default: @code{#f})"
  22046. msgstr ""
  22047. #. type: table
  22048. #: guix-git/doc/guix.texi:15196
  22049. 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."
  22050. msgstr ""
  22051. #. type: table
  22052. #: guix-git/doc/guix.texi:15200
  22053. 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:"
  22054. msgstr ""
  22055. #. type: lisp
  22056. #: guix-git/doc/guix.texi:15205
  22057. #, no-wrap
  22058. msgid ""
  22059. "(user-account\n"
  22060. " (name \"charlie\")\n"
  22061. " (group \"users\")\n"
  22062. "\n"
  22063. msgstr ""
  22064. #. type: lisp
  22065. #: guix-git/doc/guix.texi:15208
  22066. #, no-wrap
  22067. msgid ""
  22068. " ;; Specify a SHA-512-hashed initial password.\n"
  22069. " (password (crypt \"InitialPassword!\" \"$6$abc\")))\n"
  22070. msgstr ""
  22071. #. type: quotation
  22072. #: guix-git/doc/guix.texi:15214
  22073. 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."
  22074. msgstr ""
  22075. #. type: table
  22076. #: guix-git/doc/guix.texi:15219
  22077. 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."
  22078. msgstr ""
  22079. #. type: Plain text
  22080. #: guix-git/doc/guix.texi:15225
  22081. msgid "User group declarations are even simpler:"
  22082. msgstr ""
  22083. #. type: lisp
  22084. #: guix-git/doc/guix.texi:15228
  22085. #, no-wrap
  22086. msgid "(user-group (name \"students\"))\n"
  22087. msgstr ""
  22088. #. type: deftp
  22089. #: guix-git/doc/guix.texi:15230
  22090. #, no-wrap
  22091. msgid "{Data Type} user-group"
  22092. msgstr ""
  22093. #. type: deftp
  22094. #: guix-git/doc/guix.texi:15232
  22095. msgid "This type is for, well, user groups. There are just a few fields:"
  22096. msgstr ""
  22097. #. type: table
  22098. #: guix-git/doc/guix.texi:15236
  22099. msgid "The name of the group."
  22100. msgstr ""
  22101. #. type: item
  22102. #: guix-git/doc/guix.texi:15237 guix-git/doc/guix.texi:30275
  22103. #, no-wrap
  22104. msgid "@code{id} (default: @code{#f})"
  22105. msgstr ""
  22106. #. type: table
  22107. #: guix-git/doc/guix.texi:15240
  22108. msgid "The group identifier (a number). If @code{#f}, a new number is automatically allocated when the group is created."
  22109. msgstr ""
  22110. #. type: table
  22111. #: guix-git/doc/guix.texi:15244
  22112. msgid "This Boolean value indicates whether the group is a ``system'' group. System groups have low numerical IDs."
  22113. msgstr ""
  22114. #. type: table
  22115. #: guix-git/doc/guix.texi:15248
  22116. msgid "What, user groups can have a password? Well, apparently yes. Unless @code{#f}, this field specifies the password of the group."
  22117. msgstr ""
  22118. #. type: Plain text
  22119. #: guix-git/doc/guix.texi:15254
  22120. msgid "For convenience, a variable lists all the basic user groups one may expect:"
  22121. msgstr ""
  22122. #. type: defvr
  22123. #: guix-git/doc/guix.texi:15255
  22124. #, no-wrap
  22125. msgid "{Scheme Variable} %base-groups"
  22126. msgstr ""
  22127. #. type: defvr
  22128. #: guix-git/doc/guix.texi:15260
  22129. 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''."
  22130. msgstr ""
  22131. #. type: defvr
  22132. #: guix-git/doc/guix.texi:15262
  22133. #, no-wrap
  22134. msgid "{Scheme Variable} %base-user-accounts"
  22135. msgstr ""
  22136. #. type: defvr
  22137. #: guix-git/doc/guix.texi:15265
  22138. 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."
  22139. msgstr ""
  22140. #. type: defvr
  22141. #: guix-git/doc/guix.texi:15268
  22142. 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."
  22143. msgstr ""
  22144. #. type: cindex
  22145. #: guix-git/doc/guix.texi:15274
  22146. #, no-wrap
  22147. msgid "keymap"
  22148. msgstr ""
  22149. #. type: Plain text
  22150. #: guix-git/doc/guix.texi:15282
  22151. 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."
  22152. msgstr ""
  22153. #. type: cindex
  22154. #: guix-git/doc/guix.texi:15283
  22155. #, no-wrap
  22156. msgid "keyboard layout, definition"
  22157. msgstr ""
  22158. #. type: Plain text
  22159. #: guix-git/doc/guix.texi:15285
  22160. msgid "There are three components that will want to know about your keyboard layout:"
  22161. msgstr ""
  22162. #. type: itemize
  22163. #: guix-git/doc/guix.texi:15292
  22164. 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."
  22165. msgstr ""
  22166. #. type: itemize
  22167. #: guix-git/doc/guix.texi:15297
  22168. msgid "The @emph{operating system kernel}, Linux, will need that so that the console is properly configured (@pxref{operating-system Reference, @code{keyboard-layout}})."
  22169. msgstr ""
  22170. #. type: itemize
  22171. #: guix-git/doc/guix.texi:15301
  22172. msgid "The @emph{graphical display server}, usually Xorg, also has its own idea of the keyboard layout (@pxref{X Window, @code{keyboard-layout}})."
  22173. msgstr ""
  22174. #. type: Plain text
  22175. #: guix-git/doc/guix.texi:15305
  22176. msgid "Guix allows you to configure all three separately but, fortunately, it allows you to share the same keyboard layout for all three components."
  22177. msgstr ""
  22178. #. type: cindex
  22179. #: guix-git/doc/guix.texi:15306
  22180. #, no-wrap
  22181. msgid "XKB, keyboard layouts"
  22182. msgstr ""
  22183. #. type: Plain text
  22184. #: guix-git/doc/guix.texi:15314
  22185. 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."
  22186. msgstr ""
  22187. #. type: deffn
  22188. #: guix-git/doc/guix.texi:15315
  22189. #, no-wrap
  22190. msgid "{Scheme Procedure} keyboard-layout @var{name} [@var{variant}] @"
  22191. msgstr ""
  22192. #. type: deffn
  22193. #: guix-git/doc/guix.texi:15318
  22194. msgid "[#:model] [#:options '()] Return a new keyboard layout with the given @var{name} and @var{variant}."
  22195. msgstr ""
  22196. #. type: deffn
  22197. #: guix-git/doc/guix.texi:15322
  22198. 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."
  22199. msgstr ""
  22200. #. type: Plain text
  22201. #: guix-git/doc/guix.texi:15325
  22202. msgid "Here are a few examples:"
  22203. msgstr ""
  22204. #. type: lisp
  22205. #: guix-git/doc/guix.texi:15330
  22206. #, no-wrap
  22207. msgid ""
  22208. ";; The German QWERTZ layout. Here we assume a standard\n"
  22209. ";; \"pc105\" keyboard model.\n"
  22210. "(keyboard-layout \"de\")\n"
  22211. "\n"
  22212. msgstr ""
  22213. #. type: lisp
  22214. #: guix-git/doc/guix.texi:15333
  22215. #, no-wrap
  22216. msgid ""
  22217. ";; The bépo variant of the French layout.\n"
  22218. "(keyboard-layout \"fr\" \"bepo\")\n"
  22219. "\n"
  22220. msgstr ""
  22221. #. type: lisp
  22222. #: guix-git/doc/guix.texi:15336
  22223. #, no-wrap
  22224. msgid ""
  22225. ";; The Catalan layout.\n"
  22226. "(keyboard-layout \"es\" \"cat\")\n"
  22227. "\n"
  22228. msgstr ""
  22229. #. type: lisp
  22230. #: guix-git/doc/guix.texi:15339
  22231. #, no-wrap
  22232. msgid ""
  22233. ";; Arabic layout with \"Alt-Shift\" to switch to US layout.\n"
  22234. "(keyboard-layout \"ar,us\" #:options '(\"grp:alt_shift_toggle\"))\n"
  22235. "\n"
  22236. msgstr ""
  22237. #. type: lisp
  22238. #: guix-git/doc/guix.texi:15346
  22239. #, no-wrap
  22240. msgid ""
  22241. ";; The Latin American Spanish layout. In addition, the\n"
  22242. ";; \"Caps Lock\" key is used as an additional \"Ctrl\" key,\n"
  22243. ";; and the \"Menu\" key is used as a \"Compose\" key to enter\n"
  22244. ";; accented letters.\n"
  22245. "(keyboard-layout \"latam\"\n"
  22246. " #:options '(\"ctrl:nocaps\" \"compose:menu\"))\n"
  22247. "\n"
  22248. msgstr ""
  22249. #. type: lisp
  22250. #: guix-git/doc/guix.texi:15349
  22251. #, no-wrap
  22252. msgid ""
  22253. ";; The Russian layout for a ThinkPad keyboard.\n"
  22254. "(keyboard-layout \"ru\" #:model \"thinkpad\")\n"
  22255. "\n"
  22256. msgstr ""
  22257. #. type: lisp
  22258. #: guix-git/doc/guix.texi:15354
  22259. #, no-wrap
  22260. msgid ""
  22261. ";; The \"US international\" layout, which is the US layout plus\n"
  22262. ";; dead keys to enter accented characters. This is for an\n"
  22263. ";; Apple MacBook keyboard.\n"
  22264. "(keyboard-layout \"us\" \"intl\" #:model \"macbook78\")\n"
  22265. msgstr ""
  22266. #. type: Plain text
  22267. #: guix-git/doc/guix.texi:15358
  22268. msgid "See the @file{share/X11/xkb} directory of the @code{xkeyboard-config} package for a complete list of supported layouts, variants, and models."
  22269. msgstr ""
  22270. #. type: cindex
  22271. #: guix-git/doc/guix.texi:15359
  22272. #, no-wrap
  22273. msgid "keyboard layout, configuration"
  22274. msgstr ""
  22275. #. type: Plain text
  22276. #: guix-git/doc/guix.texi:15363
  22277. 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:"
  22278. msgstr ""
  22279. #. type: findex
  22280. #: guix-git/doc/guix.texi:15364
  22281. #, no-wrap
  22282. msgid "set-xorg-configuration"
  22283. msgstr ""
  22284. #. type: lisp
  22285. #: guix-git/doc/guix.texi:15368
  22286. #, no-wrap
  22287. msgid ""
  22288. ";; Using the Turkish layout for the bootloader, the console,\n"
  22289. ";; and for Xorg.\n"
  22290. "\n"
  22291. msgstr ""
  22292. #. type: lisp
  22293. #: guix-git/doc/guix.texi:15380
  22294. #, no-wrap
  22295. msgid ""
  22296. "(operating-system\n"
  22297. " ;; ...\n"
  22298. " (keyboard-layout (keyboard-layout \"tr\")) ;for the console\n"
  22299. " (bootloader (bootloader-configuration\n"
  22300. " (bootloader grub-efi-bootloader)\n"
  22301. " (targets '(\"/boot/efi\"))\n"
  22302. " (keyboard-layout keyboard-layout))) ;for GRUB\n"
  22303. " (services (cons (set-xorg-configuration\n"
  22304. " (xorg-configuration ;for Xorg\n"
  22305. " (keyboard-layout keyboard-layout)))\n"
  22306. " %desktop-services)))\n"
  22307. msgstr ""
  22308. #. type: Plain text
  22309. #: guix-git/doc/guix.texi:15387
  22310. 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."
  22311. msgstr ""
  22312. #. type: Plain text
  22313. #: guix-git/doc/guix.texi:15390
  22314. 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:"
  22315. msgstr ""
  22316. #. type: itemize
  22317. #: guix-git/doc/guix.texi:15395
  22318. msgid "If you're using GNOME, its settings panel has a ``Region & Language'' entry where you can select one or more keyboard layouts."
  22319. msgstr ""
  22320. #. type: itemize
  22321. #: guix-git/doc/guix.texi:15400
  22322. 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:"
  22323. msgstr ""
  22324. #. type: example
  22325. #: guix-git/doc/guix.texi:15403
  22326. #, no-wrap
  22327. msgid "setxkbmap us dvorak\n"
  22328. msgstr ""
  22329. #. type: itemize
  22330. #: guix-git/doc/guix.texi:15410
  22331. 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:"
  22332. msgstr ""
  22333. #. type: example
  22334. #: guix-git/doc/guix.texi:15413
  22335. #, no-wrap
  22336. msgid "loadkeys fr-bepo\n"
  22337. msgstr ""
  22338. #. type: cindex
  22339. #: guix-git/doc/guix.texi:15419
  22340. #, no-wrap
  22341. msgid "locale"
  22342. msgstr ""
  22343. #. type: Plain text
  22344. #: guix-git/doc/guix.texi:15426
  22345. 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."
  22346. msgstr ""
  22347. #. type: cindex
  22348. #: guix-git/doc/guix.texi:15427
  22349. #, no-wrap
  22350. msgid "locale definition"
  22351. msgstr ""
  22352. #. type: Plain text
  22353. #: guix-git/doc/guix.texi:15431
  22354. 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}})."
  22355. msgstr ""
  22356. #. type: Plain text
  22357. #: guix-git/doc/guix.texi:15440
  22358. 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."
  22359. msgstr ""
  22360. #. type: Plain text
  22361. #: guix-git/doc/guix.texi:15443
  22362. msgid "For instance, to add the North Frisian locale for Germany, the value of that field may be:"
  22363. msgstr ""
  22364. #. type: lisp
  22365. #: guix-git/doc/guix.texi:15448
  22366. #, no-wrap
  22367. msgid ""
  22368. "(cons (locale-definition\n"
  22369. " (name \"fy_DE.utf8\") (source \"fy_DE\"))\n"
  22370. " %default-locale-definitions)\n"
  22371. msgstr ""
  22372. #. type: Plain text
  22373. #: guix-git/doc/guix.texi:15452
  22374. msgid "Likewise, to save space, one might want @code{locale-definitions} to list only the locales that are actually used, as in:"
  22375. msgstr ""
  22376. #. type: lisp
  22377. #: guix-git/doc/guix.texi:15457
  22378. #, no-wrap
  22379. msgid ""
  22380. "(list (locale-definition\n"
  22381. " (name \"ja_JP.eucjp\") (source \"ja_JP\")\n"
  22382. " (charset \"EUC-JP\")))\n"
  22383. msgstr ""
  22384. #. type: Plain text
  22385. #: guix-git/doc/guix.texi:15466
  22386. 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})."
  22387. msgstr ""
  22388. #. type: Plain text
  22389. #: guix-git/doc/guix.texi:15469
  22390. msgid "The @code{locale-definition} form is provided by the @code{(gnu system locale)} module. Details are given below."
  22391. msgstr ""
  22392. #. type: deftp
  22393. #: guix-git/doc/guix.texi:15470
  22394. #, no-wrap
  22395. msgid "{Data Type} locale-definition"
  22396. msgstr ""
  22397. #. type: deftp
  22398. #: guix-git/doc/guix.texi:15472
  22399. msgid "This is the data type of a locale definition."
  22400. msgstr ""
  22401. #. type: table
  22402. #: guix-git/doc/guix.texi:15478
  22403. msgid "The name of the locale. @xref{Locale Names,,, libc, The GNU C Library Reference Manual}, for more information on locale names."
  22404. msgstr ""
  22405. #. type: table
  22406. #: guix-git/doc/guix.texi:15482
  22407. msgid "The name of the source for that locale. This is typically the @code{@var{language}_@var{territory}} part of the locale name."
  22408. msgstr ""
  22409. #. type: item
  22410. #: guix-git/doc/guix.texi:15483
  22411. #, no-wrap
  22412. msgid "@code{charset} (default: @code{\"UTF-8\"})"
  22413. msgstr ""
  22414. #. type: table
  22415. #: guix-git/doc/guix.texi:15487
  22416. msgid "The ``character set'' or ``code set'' for that locale, @uref{https://www.iana.org/assignments/character-sets, as defined by IANA}."
  22417. msgstr ""
  22418. #. type: defvr
  22419. #: guix-git/doc/guix.texi:15491
  22420. #, no-wrap
  22421. msgid "{Scheme Variable} %default-locale-definitions"
  22422. msgstr ""
  22423. #. type: defvr
  22424. #: guix-git/doc/guix.texi:15495
  22425. 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."
  22426. msgstr ""
  22427. #. type: cindex
  22428. #: guix-git/doc/guix.texi:15496
  22429. #, no-wrap
  22430. msgid "locale name"
  22431. msgstr ""
  22432. #. type: cindex
  22433. #: guix-git/doc/guix.texi:15497
  22434. #, no-wrap
  22435. msgid "normalized codeset in locale names"
  22436. msgstr ""
  22437. #. type: defvr
  22438. #: guix-git/doc/guix.texi:15503
  22439. 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}."
  22440. msgstr ""
  22441. #. type: subsection
  22442. #: guix-git/doc/guix.texi:15505
  22443. #, no-wrap
  22444. msgid "Locale Data Compatibility Considerations"
  22445. msgstr ""
  22446. #. type: cindex
  22447. #: guix-git/doc/guix.texi:15507
  22448. #, no-wrap
  22449. msgid "incompatibility, of locale data"
  22450. msgstr ""
  22451. #. type: Plain text
  22452. #: guix-git/doc/guix.texi:15514
  22453. 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."
  22454. msgstr ""
  22455. #. type: Plain text
  22456. #: guix-git/doc/guix.texi:15526
  22457. 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."
  22458. msgstr ""
  22459. #. type: Plain text
  22460. #: guix-git/doc/guix.texi:15531
  22461. 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."
  22462. msgstr ""
  22463. #. type: Plain text
  22464. #: guix-git/doc/guix.texi:15535
  22465. 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})."
  22466. msgstr ""
  22467. #. type: Plain text
  22468. #: guix-git/doc/guix.texi:15542
  22469. 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}:"
  22470. msgstr ""
  22471. #. type: lisp
  22472. #: guix-git/doc/guix.texi:15545
  22473. #, no-wrap
  22474. msgid ""
  22475. "(use-package-modules base)\n"
  22476. "\n"
  22477. msgstr ""
  22478. #. type: lisp
  22479. #: guix-git/doc/guix.texi:15549
  22480. #, no-wrap
  22481. msgid ""
  22482. "(operating-system\n"
  22483. " ;; @dots{}\n"
  22484. " (locale-libcs (list glibc-2.21 (canonical-package glibc))))\n"
  22485. msgstr ""
  22486. #. type: Plain text
  22487. #: guix-git/doc/guix.texi:15554
  22488. 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}."
  22489. msgstr ""
  22490. #. type: cindex
  22491. #: guix-git/doc/guix.texi:15559
  22492. #, no-wrap
  22493. msgid "system services"
  22494. msgstr ""
  22495. #. type: Plain text
  22496. #: guix-git/doc/guix.texi:15565
  22497. 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."
  22498. msgstr ""
  22499. #. type: Plain text
  22500. #: guix-git/doc/guix.texi:15572
  22501. 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:"
  22502. msgstr ""
  22503. #. type: example
  22504. #: guix-git/doc/guix.texi:15575
  22505. #, no-wrap
  22506. msgid "# herd status\n"
  22507. msgstr ""
  22508. #. type: Plain text
  22509. #: guix-git/doc/guix.texi:15580
  22510. 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:"
  22511. msgstr ""
  22512. #. type: example
  22513. #: guix-git/doc/guix.texi:15584
  22514. #, no-wrap
  22515. msgid ""
  22516. "# herd doc nscd\n"
  22517. "Run libc's name service cache daemon (nscd).\n"
  22518. "\n"
  22519. msgstr ""
  22520. #. type: example
  22521. #: guix-git/doc/guix.texi:15587
  22522. #, no-wrap
  22523. msgid ""
  22524. "# herd doc nscd action invalidate\n"
  22525. "invalidate: Invalidate the given cache--e.g., 'hosts' for host name lookups.\n"
  22526. msgstr ""
  22527. #. type: Plain text
  22528. #: guix-git/doc/guix.texi:15592
  22529. 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:"
  22530. msgstr ""
  22531. #. type: example
  22532. #: guix-git/doc/guix.texi:15599
  22533. #, no-wrap
  22534. msgid ""
  22535. "# herd stop nscd\n"
  22536. "Service nscd has been stopped.\n"
  22537. "# herd restart xorg-server\n"
  22538. "Service xorg-server has been stopped.\n"
  22539. "Service xorg-server has been started.\n"
  22540. msgstr ""
  22541. #. type: Plain text
  22542. #: guix-git/doc/guix.texi:15604
  22543. msgid "The following sections document the available services, starting with the core services, that may be used in an @code{operating-system} declaration."
  22544. msgstr ""
  22545. #. type: subsection
  22546. #: guix-git/doc/guix.texi:15639 guix-git/doc/guix.texi:23657
  22547. #: guix-git/doc/guix.texi:23658
  22548. #, fuzzy, no-wrap
  22549. msgid "File-Sharing Services"
  22550. msgstr "消息服务"
  22551. #. type: menuentry
  22552. #: guix-git/doc/guix.texi:15639
  22553. #, fuzzy
  22554. msgid "File-sharing services."
  22555. msgstr "消息服务。"
  22556. #. type: Plain text
  22557. #: guix-git/doc/guix.texi:15647
  22558. 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."
  22559. msgstr ""
  22560. #. type: defvr
  22561. #: guix-git/doc/guix.texi:15648
  22562. #, no-wrap
  22563. msgid "{Scheme Variable} %base-services"
  22564. msgstr ""
  22565. #. type: defvr
  22566. #: guix-git/doc/guix.texi:15654
  22567. 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."
  22568. msgstr ""
  22569. #. type: defvr
  22570. #: guix-git/doc/guix.texi:15659
  22571. 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:"
  22572. msgstr ""
  22573. #. type: lisp
  22574. #: guix-git/doc/guix.texi:15664
  22575. #, no-wrap
  22576. msgid ""
  22577. "(append (list (service avahi-service-type)\n"
  22578. " (service openssh-service-type))\n"
  22579. " %base-services)\n"
  22580. msgstr ""
  22581. #. type: defvr
  22582. #: guix-git/doc/guix.texi:15667
  22583. #, no-wrap
  22584. msgid "{Scheme Variable} special-files-service-type"
  22585. msgstr ""
  22586. #. type: defvr
  22587. #: guix-git/doc/guix.texi:15670
  22588. 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}."
  22589. msgstr ""
  22590. #. type: defvr
  22591. #: guix-git/doc/guix.texi:15674
  22592. 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:"
  22593. msgstr ""
  22594. #. type: file{#1}
  22595. #: guix-git/doc/guix.texi:15675
  22596. #, no-wrap
  22597. msgid "/bin/sh"
  22598. msgstr ""
  22599. #. type: cindex
  22600. #: guix-git/doc/guix.texi:15676
  22601. #, no-wrap
  22602. msgid "@file{sh}, in @file{/bin}"
  22603. msgstr ""
  22604. #. type: lisp
  22605. #: guix-git/doc/guix.texi:15679
  22606. #, no-wrap
  22607. msgid "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\")))\n"
  22608. msgstr ""
  22609. #. type: file{#1}
  22610. #: guix-git/doc/guix.texi:15681
  22611. #, no-wrap
  22612. msgid "/usr/bin/env"
  22613. msgstr ""
  22614. #. type: cindex
  22615. #: guix-git/doc/guix.texi:15682
  22616. #, no-wrap
  22617. msgid "@file{env}, in @file{/usr/bin}"
  22618. msgstr ""
  22619. #. type: defvr
  22620. #: guix-git/doc/guix.texi:15685
  22621. msgid "If you want to add, say, @code{/usr/bin/env} to your system, you can change it to:"
  22622. msgstr ""
  22623. #. type: lisp
  22624. #: guix-git/doc/guix.texi:15689
  22625. #, no-wrap
  22626. msgid ""
  22627. "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\"))\n"
  22628. " (\"/usr/bin/env\" ,(file-append coreutils \"/bin/env\")))\n"
  22629. msgstr ""
  22630. #. type: defvr
  22631. #: guix-git/doc/guix.texi:15696
  22632. 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)."
  22633. msgstr ""
  22634. #. type: deffn
  22635. #: guix-git/doc/guix.texi:15698
  22636. #, no-wrap
  22637. msgid "{Scheme Procedure} extra-special-file @var{file} @var{target}"
  22638. msgstr ""
  22639. #. type: deffn
  22640. #: guix-git/doc/guix.texi:15700
  22641. msgid "Use @var{target} as the ``special file'' @var{file}."
  22642. msgstr ""
  22643. #. type: deffn
  22644. #: guix-git/doc/guix.texi:15704
  22645. 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:"
  22646. msgstr ""
  22647. #. type: lisp
  22648. #: guix-git/doc/guix.texi:15708
  22649. #, no-wrap
  22650. msgid ""
  22651. "(extra-special-file \"/usr/bin/env\"\n"
  22652. " (file-append coreutils \"/bin/env\"))\n"
  22653. msgstr ""
  22654. #. type: deffn
  22655. #: guix-git/doc/guix.texi:15711
  22656. #, no-wrap
  22657. msgid "{Scheme Procedure} host-name-service @var{name}"
  22658. msgstr ""
  22659. #. type: deffn
  22660. #: guix-git/doc/guix.texi:15713
  22661. msgid "Return a service that sets the host name to @var{name}."
  22662. msgstr ""
  22663. #. type: defvr
  22664. #: guix-git/doc/guix.texi:15715
  22665. #, no-wrap
  22666. msgid "{Scheme Variable} console-font-service-type"
  22667. msgstr ""
  22668. #. type: defvr
  22669. #: guix-git/doc/guix.texi:15720
  22670. 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:"
  22671. msgstr ""
  22672. #. type: lisp
  22673. #: guix-git/doc/guix.texi:15729
  22674. #, no-wrap
  22675. msgid ""
  22676. "`((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  22677. " (\"tty2\" . ,(file-append\n"
  22678. " font-tamzen\n"
  22679. " \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  22680. " (\"tty3\" . ,(file-append\n"
  22681. " font-terminus\n"
  22682. " \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  22683. msgstr ""
  22684. #. type: deffn
  22685. #: guix-git/doc/guix.texi:15732
  22686. #, no-wrap
  22687. msgid "{Scheme Procedure} login-service @var{config}"
  22688. msgstr ""
  22689. #. type: deffn
  22690. #: guix-git/doc/guix.texi:15736
  22691. 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."
  22692. msgstr ""
  22693. #. type: deftp
  22694. #: guix-git/doc/guix.texi:15738
  22695. #, no-wrap
  22696. msgid "{Data Type} login-configuration"
  22697. msgstr ""
  22698. #. type: deftp
  22699. #: guix-git/doc/guix.texi:15740
  22700. msgid "This is the data type representing the configuration of login."
  22701. msgstr ""
  22702. #. type: code{#1}
  22703. #: guix-git/doc/guix.texi:15743
  22704. #, no-wrap
  22705. msgid "motd"
  22706. msgstr ""
  22707. #. type: cindex
  22708. #: guix-git/doc/guix.texi:15744
  22709. #, no-wrap
  22710. msgid "message of the day"
  22711. msgstr ""
  22712. #. type: table
  22713. #: guix-git/doc/guix.texi:15746
  22714. msgid "A file-like object containing the ``message of the day''."
  22715. msgstr ""
  22716. #. type: item
  22717. #: guix-git/doc/guix.texi:15747 guix-git/doc/guix.texi:18746
  22718. #, no-wrap
  22719. msgid "@code{allow-empty-passwords?} (default: @code{#t})"
  22720. msgstr ""
  22721. #. type: table
  22722. #: guix-git/doc/guix.texi:15750
  22723. msgid "Allow empty passwords by default so that first-time users can log in when the 'root' account has just been created."
  22724. msgstr ""
  22725. #. type: deffn
  22726. #: guix-git/doc/guix.texi:15754
  22727. #, no-wrap
  22728. msgid "{Scheme Procedure} mingetty-service @var{config}"
  22729. msgstr ""
  22730. #. type: deffn
  22731. #: guix-git/doc/guix.texi:15758
  22732. 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."
  22733. msgstr ""
  22734. #. type: deftp
  22735. #: guix-git/doc/guix.texi:15760
  22736. #, no-wrap
  22737. msgid "{Data Type} mingetty-configuration"
  22738. msgstr ""
  22739. #. type: deftp
  22740. #: guix-git/doc/guix.texi:15763
  22741. msgid "This is the data type representing the configuration of Mingetty, which provides the default implementation of virtual console log-in."
  22742. msgstr ""
  22743. #. type: code{#1}
  22744. #: guix-git/doc/guix.texi:15766 guix-git/doc/guix.texi:15805
  22745. #: guix-git/doc/guix.texi:32999
  22746. #, no-wrap
  22747. msgid "tty"
  22748. msgstr ""
  22749. #. type: table
  22750. #: guix-git/doc/guix.texi:15768
  22751. msgid "The name of the console this Mingetty runs on---e.g., @code{\"tty1\"}."
  22752. msgstr ""
  22753. #. type: item
  22754. #: guix-git/doc/guix.texi:15769 guix-git/doc/guix.texi:15834
  22755. #: guix-git/doc/guix.texi:15993
  22756. #, no-wrap
  22757. msgid "@code{auto-login} (default: @code{#f})"
  22758. msgstr ""
  22759. #. type: table
  22760. #: guix-git/doc/guix.texi:15773
  22761. 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."
  22762. msgstr ""
  22763. #. type: item
  22764. #: guix-git/doc/guix.texi:15774
  22765. #, no-wrap
  22766. msgid "@code{login-program} (default: @code{#f})"
  22767. msgstr ""
  22768. #. type: table
  22769. #: guix-git/doc/guix.texi:15778
  22770. 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."
  22771. msgstr ""
  22772. #. type: item
  22773. #: guix-git/doc/guix.texi:15779
  22774. #, no-wrap
  22775. msgid "@code{login-pause?} (default: @code{#f})"
  22776. msgstr ""
  22777. #. type: table
  22778. #: guix-git/doc/guix.texi:15782
  22779. 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."
  22780. msgstr ""
  22781. #. type: item
  22782. #: guix-git/doc/guix.texi:15783
  22783. #, fuzzy, no-wrap
  22784. msgid "@code{clear-on-logout?} (default: @code{#t})"
  22785. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  22786. #. type: table
  22787. #: guix-git/doc/guix.texi:15785
  22788. msgid "When set to @code{#t}, the screen will be cleared after logout."
  22789. msgstr ""
  22790. #. type: item
  22791. #: guix-git/doc/guix.texi:15786
  22792. #, no-wrap
  22793. msgid "@code{mingetty} (default: @var{mingetty})"
  22794. msgstr ""
  22795. #. type: table
  22796. #: guix-git/doc/guix.texi:15788
  22797. msgid "The Mingetty package to use."
  22798. msgstr ""
  22799. #. type: deffn
  22800. #: guix-git/doc/guix.texi:15792
  22801. #, no-wrap
  22802. msgid "{Scheme Procedure} agetty-service @var{config}"
  22803. msgstr ""
  22804. #. type: deffn
  22805. #: guix-git/doc/guix.texi:15796
  22806. 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."
  22807. msgstr ""
  22808. #. type: deftp
  22809. #: guix-git/doc/guix.texi:15798
  22810. #, no-wrap
  22811. msgid "{Data Type} agetty-configuration"
  22812. msgstr ""
  22813. #. type: deftp
  22814. #: guix-git/doc/guix.texi:15802
  22815. 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."
  22816. msgstr ""
  22817. #. type: table
  22818. #: guix-git/doc/guix.texi:15809
  22819. 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."
  22820. msgstr ""
  22821. #. type: table
  22822. #: guix-git/doc/guix.texi:15813
  22823. 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."
  22824. msgstr ""
  22825. #. type: table
  22826. #: guix-git/doc/guix.texi:15817
  22827. 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."
  22828. msgstr ""
  22829. #. type: table
  22830. #: guix-git/doc/guix.texi:15821
  22831. 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."
  22832. msgstr ""
  22833. #. type: item
  22834. #: guix-git/doc/guix.texi:15822 guix-git/doc/guix.texi:33160
  22835. #, no-wrap
  22836. msgid "@code{baud-rate} (default: @code{#f})"
  22837. msgstr ""
  22838. #. type: table
  22839. #: guix-git/doc/guix.texi:15825
  22840. msgid "A string containing a comma-separated list of one or more baud rates, in descending order."
  22841. msgstr ""
  22842. #. type: item
  22843. #: guix-git/doc/guix.texi:15826
  22844. #, no-wrap
  22845. msgid "@code{term} (default: @code{#f})"
  22846. msgstr ""
  22847. #. type: table
  22848. #: guix-git/doc/guix.texi:15829
  22849. msgid "A string containing the value used for the @env{TERM} environment variable."
  22850. msgstr ""
  22851. #. type: item
  22852. #: guix-git/doc/guix.texi:15830
  22853. #, no-wrap
  22854. msgid "@code{eight-bits?} (default: @code{#f})"
  22855. msgstr ""
  22856. #. type: table
  22857. #: guix-git/doc/guix.texi:15833
  22858. msgid "When @code{#t}, the tty is assumed to be 8-bit clean, and parity detection is disabled."
  22859. msgstr ""
  22860. #. type: table
  22861. #: guix-git/doc/guix.texi:15837 guix-git/doc/guix.texi:15996
  22862. 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."
  22863. msgstr ""
  22864. #. type: item
  22865. #: guix-git/doc/guix.texi:15838
  22866. #, no-wrap
  22867. msgid "@code{no-reset?} (default: @code{#f})"
  22868. msgstr ""
  22869. #. type: table
  22870. #: guix-git/doc/guix.texi:15840
  22871. msgid "When @code{#t}, don't reset terminal cflags (control modes)."
  22872. msgstr ""
  22873. #. type: item
  22874. #: guix-git/doc/guix.texi:15841
  22875. #, no-wrap
  22876. msgid "@code{host} (default: @code{#f})"
  22877. msgstr ""
  22878. #. type: table
  22879. #: guix-git/doc/guix.texi:15844
  22880. msgid "This accepts a string containing the ``login_host'', which will be written into the @file{/var/run/utmpx} file."
  22881. msgstr ""
  22882. #. type: item
  22883. #: guix-git/doc/guix.texi:15845
  22884. #, no-wrap
  22885. msgid "@code{remote?} (default: @code{#f})"
  22886. msgstr ""
  22887. #. type: table
  22888. #: guix-git/doc/guix.texi:15849
  22889. 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}."
  22890. msgstr ""
  22891. #. type: item
  22892. #: guix-git/doc/guix.texi:15850
  22893. #, no-wrap
  22894. msgid "@code{flow-control?} (default: @code{#f})"
  22895. msgstr ""
  22896. #. type: table
  22897. #: guix-git/doc/guix.texi:15852
  22898. msgid "When set to @code{#t}, enable hardware (RTS/CTS) flow control."
  22899. msgstr ""
  22900. #. type: item
  22901. #: guix-git/doc/guix.texi:15853
  22902. #, no-wrap
  22903. msgid "@code{no-issue?} (default: @code{#f})"
  22904. msgstr ""
  22905. #. type: table
  22906. #: guix-git/doc/guix.texi:15856
  22907. msgid "When set to @code{#t}, the contents of the @file{/etc/issue} file will not be displayed before presenting the login prompt."
  22908. msgstr ""
  22909. #. type: item
  22910. #: guix-git/doc/guix.texi:15857
  22911. #, no-wrap
  22912. msgid "@code{init-string} (default: @code{#f})"
  22913. msgstr ""
  22914. #. type: table
  22915. #: guix-git/doc/guix.texi:15860
  22916. 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."
  22917. msgstr ""
  22918. #. type: item
  22919. #: guix-git/doc/guix.texi:15861
  22920. #, no-wrap
  22921. msgid "@code{no-clear?} (default: @code{#f})"
  22922. msgstr ""
  22923. #. type: table
  22924. #: guix-git/doc/guix.texi:15864
  22925. msgid "When set to @code{#t}, agetty will not clear the screen before showing the login prompt."
  22926. msgstr ""
  22927. #. type: item
  22928. #: guix-git/doc/guix.texi:15865
  22929. #, no-wrap
  22930. msgid "@code{login-program} (default: (file-append shadow \"/bin/login\"))"
  22931. msgstr ""
  22932. #. type: table
  22933. #: guix-git/doc/guix.texi:15869
  22934. 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."
  22935. msgstr ""
  22936. #. type: item
  22937. #: guix-git/doc/guix.texi:15870
  22938. #, no-wrap
  22939. msgid "@code{local-line} (default: @code{#f})"
  22940. msgstr ""
  22941. #. type: table
  22942. #: guix-git/doc/guix.texi:15874
  22943. 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}."
  22944. msgstr ""
  22945. #. type: item
  22946. #: guix-git/doc/guix.texi:15875
  22947. #, no-wrap
  22948. msgid "@code{extract-baud?} (default: @code{#f})"
  22949. msgstr ""
  22950. #. type: table
  22951. #: guix-git/doc/guix.texi:15878
  22952. 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."
  22953. msgstr ""
  22954. #. type: item
  22955. #: guix-git/doc/guix.texi:15879
  22956. #, no-wrap
  22957. msgid "@code{skip-login?} (default: @code{#f})"
  22958. msgstr ""
  22959. #. type: table
  22960. #: guix-git/doc/guix.texi:15883
  22961. 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."
  22962. msgstr ""
  22963. #. type: item
  22964. #: guix-git/doc/guix.texi:15884
  22965. #, no-wrap
  22966. msgid "@code{no-newline?} (default: @code{#f})"
  22967. msgstr ""
  22968. #. type: table
  22969. #: guix-git/doc/guix.texi:15887
  22970. msgid "When set to @code{#t}, do not print a newline before printing the @file{/etc/issue} file."
  22971. msgstr ""
  22972. #. type: item
  22973. #: guix-git/doc/guix.texi:15889
  22974. #, no-wrap
  22975. msgid "@code{login-options} (default: @code{#f})"
  22976. msgstr ""
  22977. #. type: table
  22978. #: guix-git/doc/guix.texi:15894
  22979. 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."
  22980. msgstr ""
  22981. #. type: item
  22982. #: guix-git/doc/guix.texi:15895
  22983. #, no-wrap
  22984. msgid "@code{login-pause} (default: @code{#f})"
  22985. msgstr ""
  22986. #. type: table
  22987. #: guix-git/doc/guix.texi:15899
  22988. 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."
  22989. msgstr ""
  22990. #. type: item
  22991. #: guix-git/doc/guix.texi:15900
  22992. #, no-wrap
  22993. msgid "@code{chroot} (default: @code{#f})"
  22994. msgstr ""
  22995. #. type: table
  22996. #: guix-git/doc/guix.texi:15903
  22997. msgid "Change root to the specified directory. This option accepts a directory path as a string."
  22998. msgstr ""
  22999. #. type: item
  23000. #: guix-git/doc/guix.texi:15904
  23001. #, no-wrap
  23002. msgid "@code{hangup?} (default: @code{#f})"
  23003. msgstr ""
  23004. #. type: table
  23005. #: guix-git/doc/guix.texi:15907
  23006. msgid "Use the Linux system call @code{vhangup} to do a virtual hangup of the specified terminal."
  23007. msgstr ""
  23008. #. type: item
  23009. #: guix-git/doc/guix.texi:15908
  23010. #, no-wrap
  23011. msgid "@code{keep-baud?} (default: @code{#f})"
  23012. msgstr ""
  23013. #. type: table
  23014. #: guix-git/doc/guix.texi:15912
  23015. 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."
  23016. msgstr ""
  23017. #. type: item
  23018. #: guix-git/doc/guix.texi:15913
  23019. #, no-wrap
  23020. msgid "@code{timeout} (default: @code{#f})"
  23021. msgstr ""
  23022. #. type: table
  23023. #: guix-git/doc/guix.texi:15916
  23024. msgid "When set to an integer value, terminate if no user name could be read within @var{timeout} seconds."
  23025. msgstr ""
  23026. #. type: item
  23027. #: guix-git/doc/guix.texi:15917
  23028. #, no-wrap
  23029. msgid "@code{detect-case?} (default: @code{#f})"
  23030. msgstr ""
  23031. #. type: table
  23032. #: guix-git/doc/guix.texi:15923
  23033. 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."
  23034. msgstr ""
  23035. #. type: item
  23036. #: guix-git/doc/guix.texi:15924
  23037. #, no-wrap
  23038. msgid "@code{wait-cr?} (default: @code{#f})"
  23039. msgstr ""
  23040. #. type: table
  23041. #: guix-git/doc/guix.texi:15929
  23042. 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."
  23043. msgstr ""
  23044. #. type: item
  23045. #: guix-git/doc/guix.texi:15930
  23046. #, no-wrap
  23047. msgid "@code{no-hints?} (default: @code{#f})"
  23048. msgstr ""
  23049. #. type: table
  23050. #: guix-git/doc/guix.texi:15933
  23051. msgid "When set to @code{#t}, do not print hints about Num, Caps, and Scroll locks."
  23052. msgstr ""
  23053. #. type: item
  23054. #: guix-git/doc/guix.texi:15934
  23055. #, no-wrap
  23056. msgid "@code{no-hostname?} (default: @code{#f})"
  23057. msgstr ""
  23058. #. type: table
  23059. #: guix-git/doc/guix.texi:15937
  23060. msgid "By default, the hostname is printed. When this option is set to @code{#t}, no hostname will be shown at all."
  23061. msgstr ""
  23062. #. type: item
  23063. #: guix-git/doc/guix.texi:15938
  23064. #, no-wrap
  23065. msgid "@code{long-hostname?} (default: @code{#f})"
  23066. msgstr ""
  23067. #. type: table
  23068. #: guix-git/doc/guix.texi:15942
  23069. 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."
  23070. msgstr ""
  23071. #. type: item
  23072. #: guix-git/doc/guix.texi:15943
  23073. #, no-wrap
  23074. msgid "@code{erase-characters} (default: @code{#f})"
  23075. msgstr ""
  23076. #. type: table
  23077. #: guix-git/doc/guix.texi:15946
  23078. msgid "This option accepts a string of additional characters that should be interpreted as backspace when the user types their login name."
  23079. msgstr ""
  23080. #. type: item
  23081. #: guix-git/doc/guix.texi:15947
  23082. #, no-wrap
  23083. msgid "@code{kill-characters} (default: @code{#f})"
  23084. msgstr ""
  23085. #. type: table
  23086. #: guix-git/doc/guix.texi:15951
  23087. 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."
  23088. msgstr ""
  23089. #. type: item
  23090. #: guix-git/doc/guix.texi:15952
  23091. #, no-wrap
  23092. msgid "@code{chdir} (default: @code{#f})"
  23093. msgstr ""
  23094. #. type: table
  23095. #: guix-git/doc/guix.texi:15955
  23096. msgid "This option accepts, as a string, a directory path that will be changed to before login."
  23097. msgstr ""
  23098. #. type: item
  23099. #: guix-git/doc/guix.texi:15956
  23100. #, no-wrap
  23101. msgid "@code{delay} (default: @code{#f})"
  23102. msgstr ""
  23103. #. type: table
  23104. #: guix-git/doc/guix.texi:15959
  23105. msgid "This options accepts, as an integer, the number of seconds to sleep before opening the tty and displaying the login prompt."
  23106. msgstr ""
  23107. #. type: item
  23108. #: guix-git/doc/guix.texi:15960
  23109. #, no-wrap
  23110. msgid "@code{nice} (default: @code{#f})"
  23111. msgstr ""
  23112. #. type: table
  23113. #: guix-git/doc/guix.texi:15963
  23114. msgid "This option accepts, as an integer, the nice value with which to run the @command{login} program."
  23115. msgstr ""
  23116. #. type: item
  23117. #: guix-git/doc/guix.texi:15964 guix-git/doc/guix.texi:16252
  23118. #: guix-git/doc/guix.texi:17123 guix-git/doc/guix.texi:24640
  23119. #: guix-git/doc/guix.texi:26117 guix-git/doc/guix.texi:28530
  23120. #: guix-git/doc/guix.texi:29325 guix-git/doc/guix.texi:31071
  23121. #: guix-git/doc/guix.texi:33501
  23122. #, no-wrap
  23123. msgid "@code{extra-options} (default: @code{'()})"
  23124. msgstr ""
  23125. #. type: table
  23126. #: guix-git/doc/guix.texi:15967
  23127. msgid "This option provides an ``escape hatch'' for the user to provide arbitrary command-line arguments to @command{agetty} as a list of strings."
  23128. msgstr ""
  23129. #. type: deffn
  23130. #: guix-git/doc/guix.texi:15971
  23131. #, no-wrap
  23132. msgid "{Scheme Procedure} kmscon-service-type @var{config}"
  23133. msgstr ""
  23134. #. type: deffn
  23135. #: guix-git/doc/guix.texi:15975
  23136. 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."
  23137. msgstr ""
  23138. #. type: deftp
  23139. #: guix-git/doc/guix.texi:15977
  23140. #, no-wrap
  23141. msgid "{Data Type} kmscon-configuration"
  23142. msgstr ""
  23143. #. type: deftp
  23144. #: guix-git/doc/guix.texi:15980
  23145. msgid "This is the data type representing the configuration of Kmscon, which implements virtual console log-in."
  23146. msgstr ""
  23147. #. type: code{#1}
  23148. #: guix-git/doc/guix.texi:15983
  23149. #, no-wrap
  23150. msgid "virtual-terminal"
  23151. msgstr ""
  23152. #. type: table
  23153. #: guix-git/doc/guix.texi:15985
  23154. msgid "The name of the console this Kmscon runs on---e.g., @code{\"tty1\"}."
  23155. msgstr ""
  23156. #. type: item
  23157. #: guix-git/doc/guix.texi:15986
  23158. #, no-wrap
  23159. msgid "@code{login-program} (default: @code{#~(string-append #$shadow \"/bin/login\")})"
  23160. msgstr ""
  23161. #. type: table
  23162. #: guix-git/doc/guix.texi:15989
  23163. msgid "A gexp denoting the name of the log-in program. The default log-in program is @command{login} from the Shadow tool suite."
  23164. msgstr ""
  23165. #. type: item
  23166. #: guix-git/doc/guix.texi:15990
  23167. #, no-wrap
  23168. msgid "@code{login-arguments} (default: @code{'(\"-p\")})"
  23169. msgstr ""
  23170. #. type: table
  23171. #: guix-git/doc/guix.texi:15992
  23172. msgid "A list of arguments to pass to @command{login}."
  23173. msgstr ""
  23174. #. type: item
  23175. #: guix-git/doc/guix.texi:15997
  23176. #, no-wrap
  23177. msgid "@code{hardware-acceleration?} (default: #f)"
  23178. msgstr ""
  23179. #. type: table
  23180. #: guix-git/doc/guix.texi:15999
  23181. msgid "Whether to use hardware acceleration."
  23182. msgstr ""
  23183. #. type: item
  23184. #: guix-git/doc/guix.texi:16000
  23185. #, fuzzy, no-wrap
  23186. msgid "@code{font-engine} (default: @code{\"pango\"})"
  23187. msgstr "@code{journal-content}(默认值:@code{#f})"
  23188. #. type: table
  23189. #: guix-git/doc/guix.texi:16002
  23190. msgid "Font engine used in Kmscon."
  23191. msgstr ""
  23192. #. type: item
  23193. #: guix-git/doc/guix.texi:16003
  23194. #, fuzzy, no-wrap
  23195. msgid "@code{font-size} (default: @code{12})"
  23196. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  23197. #. type: table
  23198. #: guix-git/doc/guix.texi:16005
  23199. msgid "Font size used in Kmscon."
  23200. msgstr ""
  23201. #. type: table
  23202. #: guix-git/doc/guix.texi:16009
  23203. msgid "If this is @code{#f}, Kmscon uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  23204. msgstr ""
  23205. #. type: table
  23206. #: guix-git/doc/guix.texi:16013
  23207. 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."
  23208. msgstr ""
  23209. #. type: item
  23210. #: guix-git/doc/guix.texi:16014
  23211. #, no-wrap
  23212. msgid "@code{kmscon} (default: @var{kmscon})"
  23213. msgstr ""
  23214. #. type: table
  23215. #: guix-git/doc/guix.texi:16016
  23216. msgid "The Kmscon package to use."
  23217. msgstr ""
  23218. #. type: cindex
  23219. #: guix-git/doc/guix.texi:16020
  23220. #, no-wrap
  23221. msgid "name service cache daemon"
  23222. msgstr ""
  23223. #. type: cindex
  23224. #: guix-git/doc/guix.texi:16021
  23225. #, no-wrap
  23226. msgid "nscd"
  23227. msgstr ""
  23228. #. type: deffn
  23229. #: guix-git/doc/guix.texi:16022
  23230. #, no-wrap
  23231. msgid "{Scheme Procedure} nscd-service [@var{config}] [#:glibc glibc] @"
  23232. msgstr ""
  23233. #. type: deffn
  23234. #: guix-git/doc/guix.texi:16027
  23235. 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."
  23236. msgstr ""
  23237. #. type: deffn
  23238. #: guix-git/doc/guix.texi:16029
  23239. msgid "For convenience, the Shepherd service for nscd provides the following actions:"
  23240. msgstr ""
  23241. #. type: item
  23242. #: guix-git/doc/guix.texi:16031
  23243. #, no-wrap
  23244. msgid "invalidate"
  23245. msgstr ""
  23246. #. type: cindex
  23247. #: guix-git/doc/guix.texi:16032
  23248. #, no-wrap
  23249. msgid "cache invalidation, nscd"
  23250. msgstr ""
  23251. #. type: cindex
  23252. #: guix-git/doc/guix.texi:16033
  23253. #, no-wrap
  23254. msgid "nscd, cache invalidation"
  23255. msgstr ""
  23256. #. type: table
  23257. #: guix-git/doc/guix.texi:16035
  23258. msgid "This invalidate the given cache. For instance, running:"
  23259. msgstr ""
  23260. #. type: example
  23261. #: guix-git/doc/guix.texi:16038
  23262. #, no-wrap
  23263. msgid "herd invalidate nscd hosts\n"
  23264. msgstr ""
  23265. #. type: table
  23266. #: guix-git/doc/guix.texi:16042
  23267. msgid "invalidates the host name lookup cache of nscd."
  23268. msgstr ""
  23269. #. type: item
  23270. #: guix-git/doc/guix.texi:16043
  23271. #, no-wrap
  23272. msgid "statistics"
  23273. msgstr ""
  23274. #. type: table
  23275. #: guix-git/doc/guix.texi:16046
  23276. msgid "Running @command{herd statistics nscd} displays information about nscd usage and caches."
  23277. msgstr ""
  23278. #. type: defvr
  23279. #: guix-git/doc/guix.texi:16050
  23280. #, no-wrap
  23281. msgid "{Scheme Variable} %nscd-default-configuration"
  23282. msgstr ""
  23283. #. type: defvr
  23284. #: guix-git/doc/guix.texi:16054
  23285. 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."
  23286. msgstr ""
  23287. #. type: deftp
  23288. #: guix-git/doc/guix.texi:16056
  23289. #, no-wrap
  23290. msgid "{Data Type} nscd-configuration"
  23291. msgstr ""
  23292. #. type: deftp
  23293. #: guix-git/doc/guix.texi:16059
  23294. msgid "This is the data type representing the name service cache daemon (nscd) configuration."
  23295. msgstr ""
  23296. #. type: item
  23297. #: guix-git/doc/guix.texi:16062
  23298. #, no-wrap
  23299. msgid "@code{name-services} (default: @code{'()})"
  23300. msgstr ""
  23301. #. type: table
  23302. #: guix-git/doc/guix.texi:16065
  23303. msgid "List of packages denoting @dfn{name services} that must be visible to the nscd---e.g., @code{(list @var{nss-mdns})}."
  23304. msgstr ""
  23305. #. type: item
  23306. #: guix-git/doc/guix.texi:16066
  23307. #, no-wrap
  23308. msgid "@code{glibc} (default: @var{glibc})"
  23309. msgstr ""
  23310. #. type: table
  23311. #: guix-git/doc/guix.texi:16069
  23312. msgid "Package object denoting the GNU C Library providing the @command{nscd} command."
  23313. msgstr ""
  23314. #. type: item
  23315. #: guix-git/doc/guix.texi:16070
  23316. #, no-wrap
  23317. msgid "@code{log-file} (default: @code{\"/var/log/nscd.log\"})"
  23318. msgstr ""
  23319. #. type: table
  23320. #: guix-git/doc/guix.texi:16073
  23321. msgid "Name of the nscd log file. This is where debugging output goes when @code{debug-level} is strictly positive."
  23322. msgstr ""
  23323. #. type: item
  23324. #: guix-git/doc/guix.texi:16074
  23325. #, no-wrap
  23326. msgid "@code{debug-level} (default: @code{0})"
  23327. msgstr ""
  23328. #. type: table
  23329. #: guix-git/doc/guix.texi:16077
  23330. msgid "Integer denoting the debugging levels. Higher numbers mean that more debugging output is logged."
  23331. msgstr ""
  23332. #. type: item
  23333. #: guix-git/doc/guix.texi:16078
  23334. #, fuzzy, no-wrap
  23335. msgid "@code{caches} (default: @code{%nscd-default-caches})"
  23336. msgstr "@code{xfce}(默认值:@code{xfce})"
  23337. #. type: table
  23338. #: guix-git/doc/guix.texi:16081
  23339. msgid "List of @code{<nscd-cache>} objects denoting things to be cached; see below."
  23340. msgstr ""
  23341. #. type: deftp
  23342. #: guix-git/doc/guix.texi:16085
  23343. #, no-wrap
  23344. msgid "{Data Type} nscd-cache"
  23345. msgstr ""
  23346. #. type: deftp
  23347. #: guix-git/doc/guix.texi:16087
  23348. msgid "Data type representing a cache database of nscd and its parameters."
  23349. msgstr ""
  23350. #. type: cindex
  23351. #: guix-git/doc/guix.texi:16090 guix-git/doc/guix.texi:20530
  23352. #, no-wrap
  23353. msgid "database"
  23354. msgstr ""
  23355. #. type: table
  23356. #: guix-git/doc/guix.texi:16095
  23357. 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})."
  23358. msgstr ""
  23359. #. type: code{#1}
  23360. #: guix-git/doc/guix.texi:16096
  23361. #, no-wrap
  23362. msgid "positive-time-to-live"
  23363. msgstr ""
  23364. #. type: itemx
  23365. #: guix-git/doc/guix.texi:16097
  23366. #, no-wrap
  23367. msgid "@code{negative-time-to-live} (default: @code{20})"
  23368. msgstr ""
  23369. #. type: table
  23370. #: guix-git/doc/guix.texi:16100
  23371. msgid "A number representing the number of seconds during which a positive or negative lookup result remains in cache."
  23372. msgstr ""
  23373. #. type: item
  23374. #: guix-git/doc/guix.texi:16101
  23375. #, no-wrap
  23376. msgid "@code{check-files?} (default: @code{#t})"
  23377. msgstr ""
  23378. #. type: table
  23379. #: guix-git/doc/guix.texi:16104
  23380. msgid "Whether to check for updates of the files corresponding to @var{database}."
  23381. msgstr ""
  23382. #. type: table
  23383. #: guix-git/doc/guix.texi:16108
  23384. 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."
  23385. msgstr ""
  23386. #. type: item
  23387. #: guix-git/doc/guix.texi:16109
  23388. #, no-wrap
  23389. msgid "@code{persistent?} (default: @code{#t})"
  23390. msgstr ""
  23391. #. type: table
  23392. #: guix-git/doc/guix.texi:16111
  23393. msgid "Whether the cache should be stored persistently on disk."
  23394. msgstr ""
  23395. #. type: item
  23396. #: guix-git/doc/guix.texi:16112
  23397. #, no-wrap
  23398. msgid "@code{shared?} (default: @code{#t})"
  23399. msgstr ""
  23400. #. type: table
  23401. #: guix-git/doc/guix.texi:16114
  23402. msgid "Whether the cache should be shared among users."
  23403. msgstr ""
  23404. #. type: item
  23405. #: guix-git/doc/guix.texi:16115
  23406. #, no-wrap
  23407. msgid "@code{max-database-size} (default: 32@tie{}MiB)"
  23408. msgstr ""
  23409. #. type: table
  23410. #: guix-git/doc/guix.texi:16117
  23411. msgid "Maximum size in bytes of the database cache."
  23412. msgstr ""
  23413. #. type: defvr
  23414. #: guix-git/doc/guix.texi:16124
  23415. #, no-wrap
  23416. msgid "{Scheme Variable} %nscd-default-caches"
  23417. msgstr ""
  23418. #. type: defvr
  23419. #: guix-git/doc/guix.texi:16127
  23420. msgid "List of @code{<nscd-cache>} objects used by default by @code{nscd-configuration} (see above)."
  23421. msgstr ""
  23422. #. type: defvr
  23423. #: guix-git/doc/guix.texi:16133
  23424. 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."
  23425. msgstr ""
  23426. #. type: anchor{#1}
  23427. #: guix-git/doc/guix.texi:16136
  23428. msgid "syslog-configuration-type"
  23429. msgstr ""
  23430. #. type: cindex
  23431. #: guix-git/doc/guix.texi:16136 guix-git/doc/guix.texi:16152
  23432. #, no-wrap
  23433. msgid "syslog"
  23434. msgstr ""
  23435. #. type: cindex
  23436. #: guix-git/doc/guix.texi:16137 guix-git/doc/guix.texi:16723
  23437. #, no-wrap
  23438. msgid "logging"
  23439. msgstr ""
  23440. #. type: deftp
  23441. #: guix-git/doc/guix.texi:16138
  23442. #, no-wrap
  23443. msgid "{Data Type} syslog-configuration"
  23444. msgstr ""
  23445. #. type: deftp
  23446. #: guix-git/doc/guix.texi:16140
  23447. msgid "This data type represents the configuration of the syslog daemon."
  23448. msgstr ""
  23449. #. type: item
  23450. #: guix-git/doc/guix.texi:16142
  23451. #, no-wrap
  23452. msgid "@code{syslogd} (default: @code{#~(string-append #$inetutils \"/libexec/syslogd\")})"
  23453. msgstr ""
  23454. #. type: table
  23455. #: guix-git/doc/guix.texi:16144
  23456. msgid "The syslog daemon to use."
  23457. msgstr ""
  23458. #. type: item
  23459. #: guix-git/doc/guix.texi:16145
  23460. #, no-wrap
  23461. msgid "@code{config-file} (default: @code{%default-syslog.conf})"
  23462. msgstr ""
  23463. #. type: table
  23464. #: guix-git/doc/guix.texi:16147
  23465. msgid "The syslog configuration file to use."
  23466. msgstr ""
  23467. #. type: anchor{#1}
  23468. #: guix-git/doc/guix.texi:16152
  23469. msgid "syslog-service"
  23470. msgstr ""
  23471. #. type: deffn
  23472. #: guix-git/doc/guix.texi:16153
  23473. #, no-wrap
  23474. msgid "{Scheme Procedure} syslog-service @var{config}"
  23475. msgstr ""
  23476. #. type: deffn
  23477. #: guix-git/doc/guix.texi:16155
  23478. msgid "Return a service that runs a syslog daemon according to @var{config}."
  23479. msgstr ""
  23480. #. type: deffn
  23481. #: guix-git/doc/guix.texi:16158
  23482. msgid "@xref{syslogd invocation,,, inetutils, GNU Inetutils}, for more information on the configuration file syntax."
  23483. msgstr ""
  23484. #. type: defvr
  23485. #: guix-git/doc/guix.texi:16160
  23486. #, no-wrap
  23487. msgid "{Scheme Variable} guix-service-type"
  23488. msgstr ""
  23489. #. type: defvr
  23490. #: guix-git/doc/guix.texi:16164
  23491. 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."
  23492. msgstr ""
  23493. #. type: anchor{#1}
  23494. #: guix-git/doc/guix.texi:16167
  23495. msgid "guix-configuration-type"
  23496. msgstr ""
  23497. #. type: deftp
  23498. #: guix-git/doc/guix.texi:16167
  23499. #, no-wrap
  23500. msgid "{Data Type} guix-configuration"
  23501. msgstr ""
  23502. #. type: deftp
  23503. #: guix-git/doc/guix.texi:16170
  23504. msgid "This data type represents the configuration of the Guix build daemon. @xref{Invoking guix-daemon}, for more information."
  23505. msgstr ""
  23506. #. type: item
  23507. #: guix-git/doc/guix.texi:16172
  23508. #, no-wrap
  23509. msgid "@code{guix} (default: @var{guix})"
  23510. msgstr ""
  23511. #. type: table
  23512. #: guix-git/doc/guix.texi:16174 guix-git/doc/guix.texi:16451
  23513. msgid "The Guix package to use."
  23514. msgstr ""
  23515. #. type: item
  23516. #: guix-git/doc/guix.texi:16175
  23517. #, no-wrap
  23518. msgid "@code{build-group} (default: @code{\"guixbuild\"})"
  23519. msgstr ""
  23520. #. type: table
  23521. #: guix-git/doc/guix.texi:16177
  23522. msgid "Name of the group for build user accounts."
  23523. msgstr ""
  23524. #. type: item
  23525. #: guix-git/doc/guix.texi:16178
  23526. #, no-wrap
  23527. msgid "@code{build-accounts} (default: @code{10})"
  23528. msgstr ""
  23529. #. type: table
  23530. #: guix-git/doc/guix.texi:16180
  23531. msgid "Number of build user accounts to create."
  23532. msgstr ""
  23533. #. type: item
  23534. #: guix-git/doc/guix.texi:16181
  23535. #, no-wrap
  23536. msgid "@code{authorize-key?} (default: @code{#t})"
  23537. msgstr ""
  23538. #. type: table
  23539. #: guix-git/doc/guix.texi:16188
  23540. 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})."
  23541. msgstr ""
  23542. #. type: table
  23543. #: guix-git/doc/guix.texi:16194
  23544. 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."
  23545. msgstr ""
  23546. #. type: quotation
  23547. #: guix-git/doc/guix.texi:16201
  23548. 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}."
  23549. msgstr ""
  23550. #. type: vindex
  23551. #: guix-git/doc/guix.texi:16203
  23552. #, no-wrap
  23553. msgid "%default-authorized-guix-keys"
  23554. msgstr ""
  23555. #. type: item
  23556. #: guix-git/doc/guix.texi:16204
  23557. #, fuzzy, no-wrap
  23558. msgid "@code{authorized-keys} (default: @code{%default-authorized-guix-keys})"
  23559. msgstr "@code{mate}(默认值:@code{mate})"
  23560. #. type: table
  23561. #: guix-git/doc/guix.texi:16210
  23562. 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."
  23563. msgstr ""
  23564. #. type: item
  23565. #: guix-git/doc/guix.texi:16211
  23566. #, no-wrap
  23567. msgid "@code{use-substitutes?} (default: @code{#t})"
  23568. msgstr ""
  23569. #. type: table
  23570. #: guix-git/doc/guix.texi:16213
  23571. msgid "Whether to use substitutes."
  23572. msgstr ""
  23573. #. type: item
  23574. #: guix-git/doc/guix.texi:16214 guix-git/doc/guix.texi:28627
  23575. #, fuzzy, no-wrap
  23576. msgid "@code{substitute-urls} (default: @code{%default-substitute-urls})"
  23577. msgstr "@code{mate}(默认值:@code{mate})"
  23578. #. type: table
  23579. #: guix-git/doc/guix.texi:16216 guix-git/doc/guix.texi:28629
  23580. msgid "The list of URLs where to look for substitutes by default."
  23581. msgstr ""
  23582. #. type: table
  23583. #: guix-git/doc/guix.texi:16223
  23584. 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:"
  23585. msgstr ""
  23586. #. type: lisp
  23587. #: guix-git/doc/guix.texi:16232
  23588. #, no-wrap
  23589. msgid ""
  23590. "(guix-configuration\n"
  23591. " (substitute-urls\n"
  23592. " (append (list \"https://guix.example.org\")\n"
  23593. " %default-substitute-urls))\n"
  23594. " (authorized-keys\n"
  23595. " (append (list (local-file \"./guix.example.org-key.pub\"))\n"
  23596. " %default-authorized-guix-keys)))\n"
  23597. msgstr ""
  23598. #. type: table
  23599. #: guix-git/doc/guix.texi:16237
  23600. 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."
  23601. msgstr ""
  23602. #. type: item
  23603. #: guix-git/doc/guix.texi:16238
  23604. #, no-wrap
  23605. msgid "@code{max-silent-time} (default: @code{0})"
  23606. msgstr ""
  23607. #. type: itemx
  23608. #: guix-git/doc/guix.texi:16239
  23609. #, no-wrap
  23610. msgid "@code{timeout} (default: @code{0})"
  23611. msgstr ""
  23612. #. type: table
  23613. #: guix-git/doc/guix.texi:16243
  23614. 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."
  23615. msgstr ""
  23616. #. type: item
  23617. #: guix-git/doc/guix.texi:16244
  23618. #, no-wrap
  23619. msgid "@code{log-compression} (default: @code{'bzip2})"
  23620. msgstr ""
  23621. #. type: table
  23622. #: guix-git/doc/guix.texi:16247
  23623. msgid "The type of compression used for build logs---one of @code{gzip}, @code{bzip2}, or @code{none}."
  23624. msgstr ""
  23625. #. type: item
  23626. #: guix-git/doc/guix.texi:16248
  23627. #, fuzzy, no-wrap
  23628. msgid "@code{discover?} (default: @code{#f})"
  23629. msgstr "@code{speed}(默认值:@code{1.0})"
  23630. #. type: table
  23631. #: guix-git/doc/guix.texi:16254
  23632. msgid "List of extra command-line options for @command{guix-daemon}."
  23633. msgstr ""
  23634. #. type: item
  23635. #: guix-git/doc/guix.texi:16255
  23636. #, no-wrap
  23637. msgid "@code{log-file} (default: @code{\"/var/log/guix-daemon.log\"})"
  23638. msgstr ""
  23639. #. type: table
  23640. #: guix-git/doc/guix.texi:16258
  23641. msgid "File where @command{guix-daemon}'s standard output and standard error are written."
  23642. msgstr ""
  23643. #. type: cindex
  23644. #: guix-git/doc/guix.texi:16259
  23645. #, no-wrap
  23646. msgid "HTTP proxy, for @code{guix-daemon}"
  23647. msgstr ""
  23648. #. type: cindex
  23649. #: guix-git/doc/guix.texi:16260
  23650. #, no-wrap
  23651. msgid "proxy, for @code{guix-daemon} HTTP access"
  23652. msgstr ""
  23653. #. type: item
  23654. #: guix-git/doc/guix.texi:16261
  23655. #, no-wrap
  23656. msgid "@code{http-proxy} (default: @code{#f})"
  23657. msgstr ""
  23658. #. type: table
  23659. #: guix-git/doc/guix.texi:16264
  23660. msgid "The URL of the HTTP and HTTPS proxy used for downloading fixed-output derivations and substitutes."
  23661. msgstr ""
  23662. #. type: table
  23663. #: guix-git/doc/guix.texi:16267
  23664. msgid "It is also possible to change the daemon's proxy at run time through the @code{set-http-proxy} action, which restarts it:"
  23665. msgstr ""
  23666. #. type: example
  23667. #: guix-git/doc/guix.texi:16270
  23668. #, no-wrap
  23669. msgid "herd set-http-proxy guix-daemon http://localhost:8118\n"
  23670. msgstr ""
  23671. #. type: table
  23672. #: guix-git/doc/guix.texi:16273
  23673. msgid "To clear the proxy settings, run:"
  23674. msgstr ""
  23675. #. type: example
  23676. #: guix-git/doc/guix.texi:16276
  23677. #, fuzzy, no-wrap
  23678. msgid "herd set-http-proxy guix-daemon\n"
  23679. msgstr "安全,guix-daemon"
  23680. #. type: item
  23681. #: guix-git/doc/guix.texi:16278
  23682. #, no-wrap
  23683. msgid "@code{tmpdir} (default: @code{#f})"
  23684. msgstr ""
  23685. #. type: table
  23686. #: guix-git/doc/guix.texi:16280
  23687. msgid "A directory path where the @command{guix-daemon} will perform builds."
  23688. msgstr ""
  23689. #. type: deffn
  23690. #: guix-git/doc/guix.texi:16284
  23691. #, no-wrap
  23692. msgid "{Scheme Procedure} udev-service [#:udev @var{eudev} #:rules @code{'()}]"
  23693. msgstr ""
  23694. #. type: deffn
  23695. #: guix-git/doc/guix.texi:16290
  23696. 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."
  23697. msgstr ""
  23698. #. type: deffn
  23699. #: guix-git/doc/guix.texi:16293
  23700. msgid "The @command{herd rules udev} command, as root, returns the name of the directory containing all the active udev rules."
  23701. msgstr ""
  23702. #. type: deffn
  23703. #: guix-git/doc/guix.texi:16295
  23704. #, no-wrap
  23705. msgid "{Scheme Procedure} udev-rule [@var{file-name} @var{contents}]"
  23706. msgstr ""
  23707. #. type: deffn
  23708. #: guix-git/doc/guix.texi:16298
  23709. msgid "Return a udev-rule file named @var{file-name} containing the rules defined by the @var{contents} literal."
  23710. msgstr ""
  23711. #. type: deffn
  23712. #: guix-git/doc/guix.texi:16302
  23713. 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."
  23714. msgstr ""
  23715. #. type: lisp
  23716. #: guix-git/doc/guix.texi:16310
  23717. #, no-wrap
  23718. msgid ""
  23719. "(define %example-udev-rule\n"
  23720. " (udev-rule\n"
  23721. " \"90-usb-thing.rules\"\n"
  23722. " (string-append \"ACTION==\\\"add\\\", SUBSYSTEM==\\\"usb\\\", \"\n"
  23723. " \"ATTR@{product@}==\\\"Example\\\", \"\n"
  23724. " \"RUN+=\\\"/path/to/script\\\"\")))\n"
  23725. msgstr ""
  23726. #. type: deffn
  23727. #: guix-git/doc/guix.texi:16313
  23728. #, no-wrap
  23729. msgid "{Scheme Procedure} udev-rules-service [@var{name} @var{rules}] @"
  23730. msgstr ""
  23731. #. type: deffn
  23732. #: guix-git/doc/guix.texi:16320
  23733. 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."
  23734. msgstr ""
  23735. #. type: deffn
  23736. #: guix-git/doc/guix.texi:16323
  23737. msgid "Here we show how it can be used to extend @code{udev-service-type} with the previously defined rule @code{%example-udev-rule}."
  23738. msgstr ""
  23739. #. type: lisp
  23740. #: guix-git/doc/guix.texi:16330
  23741. #, no-wrap
  23742. msgid ""
  23743. "(operating-system\n"
  23744. " ;; @dots{}\n"
  23745. " (services\n"
  23746. " (cons (udev-rules-service 'usb-thing %example-udev-rule)\n"
  23747. " %desktop-services)))\n"
  23748. msgstr ""
  23749. #. type: deffn
  23750. #: guix-git/doc/guix.texi:16333
  23751. #, no-wrap
  23752. msgid "{Scheme Procedure} file->udev-rule [@var{file-name} @var{file}]"
  23753. msgstr ""
  23754. #. type: deffn
  23755. #: guix-git/doc/guix.texi:16336
  23756. msgid "Return a udev file named @var{file-name} containing the rules defined within @var{file}, a file-like object."
  23757. msgstr ""
  23758. #. type: deffn
  23759. #: guix-git/doc/guix.texi:16338
  23760. msgid "The following example showcases how we can use an existing rule file."
  23761. msgstr ""
  23762. #. type: lisp
  23763. #: guix-git/doc/guix.texi:16343
  23764. #, no-wrap
  23765. msgid ""
  23766. "(use-modules (guix download) ;for url-fetch\n"
  23767. " (guix packages) ;for origin\n"
  23768. " @dots{})\n"
  23769. "\n"
  23770. msgstr ""
  23771. #. type: lisp
  23772. #: guix-git/doc/guix.texi:16354
  23773. #, no-wrap
  23774. msgid ""
  23775. "(define %android-udev-rules\n"
  23776. " (file->udev-rule\n"
  23777. " \"51-android-udev.rules\"\n"
  23778. " (let ((version \"20170910\"))\n"
  23779. " (origin\n"
  23780. " (method url-fetch)\n"
  23781. " (uri (string-append \"https://raw.githubusercontent.com/M0Rf30/\"\n"
  23782. " \"android-udev-rules/\" version \"/51-android.rules\"))\n"
  23783. " (sha256\n"
  23784. " (base32 \"0lmmagpyb6xsq6zcr2w1cyx9qmjqmajkvrdbhjx32gqf1d9is003\"))))))\n"
  23785. msgstr ""
  23786. #. type: Plain text
  23787. #: guix-git/doc/guix.texi:16363
  23788. 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."
  23789. msgstr ""
  23790. #. type: Plain text
  23791. #: guix-git/doc/guix.texi:16372
  23792. 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."
  23793. msgstr ""
  23794. #. type: lisp
  23795. #: guix-git/doc/guix.texi:16377
  23796. #, no-wrap
  23797. msgid ""
  23798. "(use-modules (gnu packages android) ;for android-udev-rules\n"
  23799. " (gnu system shadow) ;for user-group\n"
  23800. " @dots{})\n"
  23801. "\n"
  23802. msgstr ""
  23803. #. type: lisp
  23804. #: guix-git/doc/guix.texi:16390
  23805. #, no-wrap
  23806. msgid ""
  23807. "(operating-system\n"
  23808. " ;; @dots{}\n"
  23809. " (users (cons (user-account\n"
  23810. " ;; @dots{}\n"
  23811. " (supplementary-groups\n"
  23812. " '(\"adbusers\" ;for adb\n"
  23813. " \"wheel\" \"netdev\" \"audio\" \"video\")))))\n"
  23814. " ;; @dots{}\n"
  23815. " (services\n"
  23816. " (cons (udev-rules-service 'android android-udev-rules\n"
  23817. " #:groups '(\"adbusers\"))\n"
  23818. " %desktop-services)))\n"
  23819. msgstr ""
  23820. #. type: defvr
  23821. #: guix-git/doc/guix.texi:16392
  23822. #, no-wrap
  23823. msgid "{Scheme Variable} urandom-seed-service-type"
  23824. msgstr ""
  23825. #. type: defvr
  23826. #: guix-git/doc/guix.texi:16397
  23827. 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."
  23828. msgstr ""
  23829. #. type: defvr
  23830. #: guix-git/doc/guix.texi:16399
  23831. #, no-wrap
  23832. msgid "{Scheme Variable} %random-seed-file"
  23833. msgstr ""
  23834. #. type: defvr
  23835. #: guix-git/doc/guix.texi:16403
  23836. 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}."
  23837. msgstr ""
  23838. #. type: cindex
  23839. #: guix-git/doc/guix.texi:16405
  23840. #, no-wrap
  23841. msgid "mouse"
  23842. msgstr ""
  23843. #. type: cindex
  23844. #: guix-git/doc/guix.texi:16406
  23845. #, no-wrap
  23846. msgid "gpm"
  23847. msgstr ""
  23848. #. type: defvr
  23849. #: guix-git/doc/guix.texi:16407
  23850. #, no-wrap
  23851. msgid "{Scheme Variable} gpm-service-type"
  23852. msgstr ""
  23853. #. type: defvr
  23854. #: guix-git/doc/guix.texi:16412
  23855. 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."
  23856. msgstr ""
  23857. #. type: defvr
  23858. #: guix-git/doc/guix.texi:16415
  23859. 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}."
  23860. msgstr ""
  23861. #. type: deftp
  23862. #: guix-git/doc/guix.texi:16417
  23863. #, no-wrap
  23864. msgid "{Data Type} gpm-configuration"
  23865. msgstr ""
  23866. #. type: deftp
  23867. #: guix-git/doc/guix.texi:16419
  23868. msgid "Data type representing the configuration of GPM."
  23869. msgstr ""
  23870. #. type: item
  23871. #: guix-git/doc/guix.texi:16421
  23872. #, no-wrap
  23873. msgid "@code{options} (default: @code{%default-gpm-options})"
  23874. msgstr ""
  23875. #. type: table
  23876. #: guix-git/doc/guix.texi:16426
  23877. 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."
  23878. msgstr ""
  23879. #. type: item
  23880. #: guix-git/doc/guix.texi:16427
  23881. #, no-wrap
  23882. msgid "@code{gpm} (default: @code{gpm})"
  23883. msgstr ""
  23884. #. type: table
  23885. #: guix-git/doc/guix.texi:16429
  23886. msgid "The GPM package to use."
  23887. msgstr ""
  23888. #. type: anchor{#1}
  23889. #: guix-git/doc/guix.texi:16434
  23890. msgid "guix-publish-service-type"
  23891. msgstr ""
  23892. #. type: deffn
  23893. #: guix-git/doc/guix.texi:16434
  23894. #, no-wrap
  23895. msgid "{Scheme Variable} guix-publish-service-type"
  23896. msgstr ""
  23897. #. type: deffn
  23898. #: guix-git/doc/guix.texi:16438
  23899. 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."
  23900. msgstr ""
  23901. #. type: deffn
  23902. #: guix-git/doc/guix.texi:16442
  23903. 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."
  23904. msgstr ""
  23905. #. type: deftp
  23906. #: guix-git/doc/guix.texi:16444
  23907. #, no-wrap
  23908. msgid "{Data Type} guix-publish-configuration"
  23909. msgstr ""
  23910. #. type: deftp
  23911. #: guix-git/doc/guix.texi:16447
  23912. msgid "Data type representing the configuration of the @code{guix publish} service."
  23913. msgstr ""
  23914. #. type: item
  23915. #: guix-git/doc/guix.texi:16449
  23916. #, no-wrap
  23917. msgid "@code{guix} (default: @code{guix})"
  23918. msgstr ""
  23919. #. type: item
  23920. #: guix-git/doc/guix.texi:16452 guix-git/doc/guix.texi:30926
  23921. #, no-wrap
  23922. msgid "@code{port} (default: @code{80})"
  23923. msgstr ""
  23924. #. type: table
  23925. #: guix-git/doc/guix.texi:16454
  23926. msgid "The TCP port to listen for connections."
  23927. msgstr ""
  23928. #. type: item
  23929. #: guix-git/doc/guix.texi:16455 guix-git/doc/guix.texi:28510
  23930. #: guix-git/doc/guix.texi:32307
  23931. #, no-wrap
  23932. msgid "@code{host} (default: @code{\"localhost\"})"
  23933. msgstr ""
  23934. #. type: table
  23935. #: guix-git/doc/guix.texi:16458
  23936. msgid "The host (and thus, network interface) to listen to. Use @code{\"0.0.0.0\"} to listen on all the network interfaces."
  23937. msgstr ""
  23938. #. type: item
  23939. #: guix-git/doc/guix.texi:16459
  23940. #, fuzzy, no-wrap
  23941. msgid "@code{advertise?} (default: @code{#f})"
  23942. msgstr "@code{challenge}(默认值:@code{#f})"
  23943. #. type: table
  23944. #: guix-git/doc/guix.texi:16462
  23945. msgid "When true, advertise the service on the local network @i{via} the DNS-SD protocol, using Avahi."
  23946. msgstr ""
  23947. #. type: table
  23948. #: guix-git/doc/guix.texi:16466
  23949. 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."
  23950. msgstr ""
  23951. #. type: item
  23952. #: guix-git/doc/guix.texi:16467
  23953. #, fuzzy, no-wrap
  23954. msgid "@code{compression} (default: @code{'((\"gzip\" 3) (\"zstd\" 3))})"
  23955. msgstr "@code{compression-level}(默认值:@code{3})"
  23956. #. type: table
  23957. #: guix-git/doc/guix.texi:16471
  23958. 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:"
  23959. msgstr ""
  23960. #. type: lisp
  23961. #: guix-git/doc/guix.texi:16474
  23962. #, no-wrap
  23963. msgid "'((\"lzip\" 7) (\"gzip\" 9))\n"
  23964. msgstr ""
  23965. #. type: table
  23966. #: guix-git/doc/guix.texi:16480
  23967. 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."
  23968. msgstr ""
  23969. #. type: table
  23970. #: guix-git/doc/guix.texi:16482
  23971. msgid "An empty list disables compression altogether."
  23972. msgstr ""
  23973. #. type: item
  23974. #: guix-git/doc/guix.texi:16483
  23975. #, no-wrap
  23976. msgid "@code{nar-path} (default: @code{\"nar\"})"
  23977. msgstr ""
  23978. #. type: table
  23979. #: guix-git/doc/guix.texi:16486
  23980. msgid "The URL path at which ``nars'' can be fetched. @xref{Invoking guix publish, @option{--nar-path}}, for details."
  23981. msgstr ""
  23982. #. type: item
  23983. #: guix-git/doc/guix.texi:16487
  23984. #, no-wrap
  23985. msgid "@code{cache} (default: @code{#f})"
  23986. msgstr ""
  23987. #. type: table
  23988. #: guix-git/doc/guix.texi:16493
  23989. 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."
  23990. msgstr ""
  23991. #. type: item
  23992. #: guix-git/doc/guix.texi:16494
  23993. #, no-wrap
  23994. msgid "@code{workers} (default: @code{#f})"
  23995. msgstr ""
  23996. #. type: table
  23997. #: guix-git/doc/guix.texi:16498
  23998. 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."
  23999. msgstr ""
  24000. #. type: item
  24001. #: guix-git/doc/guix.texi:16499
  24002. #, no-wrap
  24003. msgid "@code{cache-bypass-threshold} (default: 10 MiB)"
  24004. msgstr ""
  24005. #. type: table
  24006. #: guix-git/doc/guix.texi:16504
  24007. 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."
  24008. msgstr ""
  24009. #. type: item
  24010. #: guix-git/doc/guix.texi:16505
  24011. #, no-wrap
  24012. msgid "@code{ttl} (default: @code{#f})"
  24013. msgstr ""
  24014. #. type: table
  24015. #: guix-git/doc/guix.texi:16509
  24016. 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."
  24017. msgstr ""
  24018. #. type: anchor{#1}
  24019. #: guix-git/doc/guix.texi:16513
  24020. msgid "rngd-service"
  24021. msgstr ""
  24022. #. type: deffn
  24023. #: guix-git/doc/guix.texi:16513
  24024. #, no-wrap
  24025. msgid "{Scheme Procedure} rngd-service [#:rng-tools @var{rng-tools}] @"
  24026. msgstr ""
  24027. #. type: deffn
  24028. #: guix-git/doc/guix.texi:16518
  24029. 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."
  24030. msgstr ""
  24031. #. type: anchor{#1}
  24032. #: guix-git/doc/guix.texi:16521
  24033. msgid "pam-limits-service"
  24034. msgstr ""
  24035. #. type: cindex
  24036. #: guix-git/doc/guix.texi:16521
  24037. #, no-wrap
  24038. msgid "session limits"
  24039. msgstr ""
  24040. #. type: cindex
  24041. #: guix-git/doc/guix.texi:16522
  24042. #, no-wrap
  24043. msgid "ulimit"
  24044. msgstr ""
  24045. #. type: cindex
  24046. #: guix-git/doc/guix.texi:16523
  24047. #, no-wrap
  24048. msgid "priority"
  24049. msgstr ""
  24050. #. type: cindex
  24051. #: guix-git/doc/guix.texi:16524
  24052. #, no-wrap
  24053. msgid "realtime"
  24054. msgstr ""
  24055. #. type: cindex
  24056. #: guix-git/doc/guix.texi:16525
  24057. #, no-wrap
  24058. msgid "jackd"
  24059. msgstr ""
  24060. #. type: cindex
  24061. #: guix-git/doc/guix.texi:16526
  24062. #, no-wrap
  24063. msgid "nofile"
  24064. msgstr ""
  24065. #. type: cindex
  24066. #: guix-git/doc/guix.texi:16527
  24067. #, fuzzy, no-wrap
  24068. msgid "open file descriptors"
  24069. msgstr "简介和描述"
  24070. #. type: deffn
  24071. #: guix-git/doc/guix.texi:16528
  24072. #, no-wrap
  24073. msgid "{Scheme Procedure} pam-limits-service [#:limits @code{'()}]"
  24074. msgstr ""
  24075. #. type: deffn
  24076. #: guix-git/doc/guix.texi:16535
  24077. 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."
  24078. msgstr ""
  24079. #. type: deffn
  24080. #: guix-git/doc/guix.texi:16538
  24081. msgid "The following limits definition sets two hard and soft limits for all login sessions of users in the @code{realtime} group:"
  24082. msgstr ""
  24083. #. type: lisp
  24084. #: guix-git/doc/guix.texi:16544
  24085. #, no-wrap
  24086. msgid ""
  24087. "(pam-limits-service\n"
  24088. " (list\n"
  24089. " (pam-limits-entry \"@@realtime\" 'both 'rtprio 99)\n"
  24090. " (pam-limits-entry \"@@realtime\" 'both 'memlock 'unlimited)))\n"
  24091. msgstr ""
  24092. #. type: deffn
  24093. #: guix-git/doc/guix.texi:16550
  24094. 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."
  24095. msgstr ""
  24096. #. type: deffn
  24097. #: guix-git/doc/guix.texi:16553
  24098. msgid "Another useful example is raising the maximum number of open file descriptors that can be used:"
  24099. msgstr ""
  24100. #. type: lisp
  24101. #: guix-git/doc/guix.texi:16558
  24102. #, no-wrap
  24103. msgid ""
  24104. "(pam-limits-service\n"
  24105. " (list\n"
  24106. " (pam-limits-entry \"*\" 'both 'nofile 100000)))\n"
  24107. msgstr ""
  24108. #. type: deffn
  24109. #: guix-git/doc/guix.texi:16566
  24110. 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."
  24111. msgstr ""
  24112. #. type: cindex
  24113. #: guix-git/doc/guix.texi:16571 guix-git/doc/guix.texi:36475
  24114. #, no-wrap
  24115. msgid "cron"
  24116. msgstr ""
  24117. #. type: cindex
  24118. #: guix-git/doc/guix.texi:16572 guix-git/doc/guix.texi:36476
  24119. #, no-wrap
  24120. msgid "mcron"
  24121. msgstr ""
  24122. #. type: cindex
  24123. #: guix-git/doc/guix.texi:16573 guix-git/doc/guix.texi:36477
  24124. #, no-wrap
  24125. msgid "scheduling jobs"
  24126. msgstr ""
  24127. #. type: Plain text
  24128. #: guix-git/doc/guix.texi:16580
  24129. 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."
  24130. msgstr ""
  24131. #. type: Plain text
  24132. #: guix-git/doc/guix.texi:16588
  24133. 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})."
  24134. msgstr ""
  24135. #. type: lisp
  24136. #: guix-git/doc/guix.texi:16592
  24137. #, no-wrap
  24138. msgid ""
  24139. "(use-modules (guix) (gnu) (gnu services mcron))\n"
  24140. "(use-package-modules base idutils)\n"
  24141. "\n"
  24142. msgstr ""
  24143. #. type: lisp
  24144. #: guix-git/doc/guix.texi:16602
  24145. #, no-wrap
  24146. msgid ""
  24147. "(define updatedb-job\n"
  24148. " ;; Run 'updatedb' at 3AM every day. Here we write the\n"
  24149. " ;; job's action as a Scheme procedure.\n"
  24150. " #~(job '(next-hour '(3))\n"
  24151. " (lambda ()\n"
  24152. " (execl (string-append #$findutils \"/bin/updatedb\")\n"
  24153. " \"updatedb\"\n"
  24154. " \"--prunepaths=/tmp /var/tmp /gnu/store\"))\n"
  24155. " \"updatedb\"))\n"
  24156. "\n"
  24157. msgstr ""
  24158. #. type: lisp
  24159. #: guix-git/doc/guix.texi:16608
  24160. #, no-wrap
  24161. msgid ""
  24162. "(define garbage-collector-job\n"
  24163. " ;; Collect garbage 5 minutes after midnight every day.\n"
  24164. " ;; The job's action is a shell command.\n"
  24165. " #~(job \"5 0 * * *\" ;Vixie cron syntax\n"
  24166. " \"guix gc -F 1G\"))\n"
  24167. "\n"
  24168. msgstr ""
  24169. #. type: lisp
  24170. #: guix-git/doc/guix.texi:16615
  24171. #, no-wrap
  24172. msgid ""
  24173. "(define idutils-job\n"
  24174. " ;; Update the index database as user \"charlie\" at 12:15PM\n"
  24175. " ;; and 19:15PM. This runs from the user's home directory.\n"
  24176. " #~(job '(next-minute-from (next-hour '(12 19)) '(15))\n"
  24177. " (string-append #$idutils \"/bin/mkid src\")\n"
  24178. " #:user \"charlie\"))\n"
  24179. "\n"
  24180. msgstr ""
  24181. #. type: lisp
  24182. #: guix-git/doc/guix.texi:16618
  24183. #, no-wrap
  24184. msgid ""
  24185. "(operating-system\n"
  24186. " ;; @dots{}\n"
  24187. "\n"
  24188. msgstr ""
  24189. #. type: lisp
  24190. #: guix-git/doc/guix.texi:16628
  24191. #, no-wrap
  24192. msgid ""
  24193. " ;; %BASE-SERVICES already includes an instance of\n"
  24194. " ;; 'mcron-service-type', which we extend with additional\n"
  24195. " ;; jobs using 'simple-service'.\n"
  24196. " (services (cons (simple-service 'my-cron-jobs\n"
  24197. " mcron-service-type\n"
  24198. " (list garbage-collector-job\n"
  24199. " updatedb-job\n"
  24200. " idutils-job))\n"
  24201. " %base-services)))\n"
  24202. msgstr ""
  24203. #. type: quotation
  24204. #: guix-git/doc/guix.texi:16630
  24205. #, fuzzy, no-wrap
  24206. #| msgid "Top"
  24207. msgid "Tip"
  24208. msgstr "Top"
  24209. #. type: quotation
  24210. #: guix-git/doc/guix.texi:16636
  24211. 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!"
  24212. msgstr ""
  24213. #. type: Plain text
  24214. #: guix-git/doc/guix.texi:16643
  24215. 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."
  24216. msgstr ""
  24217. #. type: lisp
  24218. #: guix-git/doc/guix.texi:16659
  24219. #, no-wrap
  24220. msgid ""
  24221. "(define %battery-alert-job\n"
  24222. " ;; Beep when the battery percentage falls below %MIN-LEVEL.\n"
  24223. " #~(job\n"
  24224. " '(next-minute (range 0 60 1))\n"
  24225. " #$(program-file\n"
  24226. " \"battery-alert.scm\"\n"
  24227. " (with-imported-modules (source-module-closure\n"
  24228. " '((guix build utils)))\n"
  24229. " #~(begin\n"
  24230. " (use-modules (guix build utils)\n"
  24231. " (ice-9 popen)\n"
  24232. " (ice-9 regex)\n"
  24233. " (ice-9 textual-ports)\n"
  24234. " (srfi srfi-2))\n"
  24235. "\n"
  24236. msgstr ""
  24237. #. type: lisp
  24238. #: guix-git/doc/guix.texi:16661
  24239. #, no-wrap
  24240. msgid ""
  24241. " (define %min-level 20)\n"
  24242. "\n"
  24243. msgstr ""
  24244. #. type: lisp
  24245. #: guix-git/doc/guix.texi:16672
  24246. #, no-wrap
  24247. msgid ""
  24248. " (setenv \"LC_ALL\" \"C\") ;ensure English output\n"
  24249. " (and-let* ((input-pipe (open-pipe*\n"
  24250. " OPEN_READ\n"
  24251. " #$(file-append acpi \"/bin/acpi\")))\n"
  24252. " (output (get-string-all input-pipe))\n"
  24253. " (m (string-match \"Discharging, ([0-9]+)%\" output))\n"
  24254. " (level (string->number (match:substring m 1)))\n"
  24255. " ((< level %min-level)))\n"
  24256. " (format #t \"warning: Battery level is low (~a%)~%\" level)\n"
  24257. " (invoke #$(file-append beep \"/bin/beep\") \"-r5\")))))))\n"
  24258. msgstr ""
  24259. #. type: Plain text
  24260. #: guix-git/doc/guix.texi:16677
  24261. 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."
  24262. msgstr ""
  24263. #. type: Plain text
  24264. #: guix-git/doc/guix.texi:16680
  24265. 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:"
  24266. msgstr ""
  24267. #. type: example
  24268. #: guix-git/doc/guix.texi:16683
  24269. #, no-wrap
  24270. msgid "# herd schedule mcron\n"
  24271. msgstr ""
  24272. #. type: Plain text
  24273. #: guix-git/doc/guix.texi:16688
  24274. msgid "The example above lists the next five tasks that will be executed, but you can also specify the number of tasks to display:"
  24275. msgstr ""
  24276. #. type: example
  24277. #: guix-git/doc/guix.texi:16691
  24278. #, no-wrap
  24279. msgid "# herd schedule mcron 10\n"
  24280. msgstr ""
  24281. #. type: defvr
  24282. #: guix-git/doc/guix.texi:16693
  24283. #, no-wrap
  24284. msgid "{Scheme Variable} mcron-service-type"
  24285. msgstr ""
  24286. #. type: defvr
  24287. #: guix-git/doc/guix.texi:16696
  24288. msgid "This is the type of the @code{mcron} service, whose value is an @code{mcron-configuration} object."
  24289. msgstr ""
  24290. #. type: defvr
  24291. #: guix-git/doc/guix.texi:16701 guix-git/doc/guix.texi:36496
  24292. 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."
  24293. msgstr ""
  24294. #. type: deftp
  24295. #: guix-git/doc/guix.texi:16703
  24296. #, no-wrap
  24297. msgid "{Data Type} mcron-configuration"
  24298. msgstr ""
  24299. #. type: deftp
  24300. #: guix-git/doc/guix.texi:16705 guix-git/doc/guix.texi:36500
  24301. msgid "Data type representing the configuration of mcron."
  24302. msgstr ""
  24303. #. type: item
  24304. #: guix-git/doc/guix.texi:16707 guix-git/doc/guix.texi:36502
  24305. #, no-wrap
  24306. msgid "@code{mcron} (default: @var{mcron})"
  24307. msgstr ""
  24308. #. type: table
  24309. #: guix-git/doc/guix.texi:16709 guix-git/doc/guix.texi:36504
  24310. msgid "The mcron package to use."
  24311. msgstr ""
  24312. #. type: code{#1}
  24313. #: guix-git/doc/guix.texi:16710 guix-git/doc/guix.texi:16779
  24314. #: guix-git/doc/guix.texi:36505
  24315. #, no-wrap
  24316. msgid "jobs"
  24317. msgstr ""
  24318. #. type: table
  24319. #: guix-git/doc/guix.texi:16714 guix-git/doc/guix.texi:36509
  24320. 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})."
  24321. msgstr ""
  24322. #. type: cindex
  24323. #: guix-git/doc/guix.texi:16721
  24324. #, no-wrap
  24325. msgid "rottlog"
  24326. msgstr ""
  24327. #. type: cindex
  24328. #: guix-git/doc/guix.texi:16722
  24329. #, no-wrap
  24330. msgid "log rotation"
  24331. msgstr ""
  24332. #. type: Plain text
  24333. #: guix-git/doc/guix.texi:16729
  24334. 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})."
  24335. msgstr ""
  24336. #. type: Plain text
  24337. #: guix-git/doc/guix.texi:16735
  24338. 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):"
  24339. msgstr ""
  24340. #. type: lisp
  24341. #: guix-git/doc/guix.texi:16739
  24342. #, no-wrap
  24343. msgid ""
  24344. "(use-modules (guix) (gnu))\n"
  24345. "(use-service-modules admin)\n"
  24346. "\n"
  24347. msgstr ""
  24348. #. type: lisp
  24349. #: guix-git/doc/guix.texi:16743
  24350. #, no-wrap
  24351. msgid ""
  24352. "(define my-log-files\n"
  24353. " ;; Log files that I want to rotate.\n"
  24354. " '(\"/var/log/something.log\" \"/var/log/another.log\"))\n"
  24355. "\n"
  24356. msgstr ""
  24357. #. type: lisp
  24358. #: guix-git/doc/guix.texi:16752
  24359. #, no-wrap
  24360. msgid ""
  24361. "(operating-system\n"
  24362. " ;; @dots{}\n"
  24363. " (services (cons (simple-service 'rotate-my-stuff\n"
  24364. " rottlog-service-type\n"
  24365. " (list (log-rotation\n"
  24366. " (frequency 'daily)\n"
  24367. " (files my-log-files))))\n"
  24368. " %base-services)))\n"
  24369. msgstr ""
  24370. #. type: defvr
  24371. #: guix-git/doc/guix.texi:16754
  24372. #, no-wrap
  24373. msgid "{Scheme Variable} rottlog-service-type"
  24374. msgstr ""
  24375. #. type: defvr
  24376. #: guix-git/doc/guix.texi:16757
  24377. msgid "This is the type of the Rottlog service, whose value is a @code{rottlog-configuration} object."
  24378. msgstr ""
  24379. #. type: defvr
  24380. #: guix-git/doc/guix.texi:16760
  24381. msgid "Other services can extend this one with new @code{log-rotation} objects (see below), thereby augmenting the set of files to be rotated."
  24382. msgstr ""
  24383. #. type: defvr
  24384. #: guix-git/doc/guix.texi:16763
  24385. msgid "This service type can define mcron jobs (@pxref{Scheduled Job Execution}) to run the rottlog service."
  24386. msgstr ""
  24387. #. type: deftp
  24388. #: guix-git/doc/guix.texi:16765
  24389. #, no-wrap
  24390. msgid "{Data Type} rottlog-configuration"
  24391. msgstr ""
  24392. #. type: deftp
  24393. #: guix-git/doc/guix.texi:16767
  24394. msgid "Data type representing the configuration of rottlog."
  24395. msgstr ""
  24396. #. type: item
  24397. #: guix-git/doc/guix.texi:16769
  24398. #, no-wrap
  24399. msgid "@code{rottlog} (default: @code{rottlog})"
  24400. msgstr ""
  24401. #. type: table
  24402. #: guix-git/doc/guix.texi:16771
  24403. msgid "The Rottlog package to use."
  24404. msgstr ""
  24405. #. type: item
  24406. #: guix-git/doc/guix.texi:16772
  24407. #, no-wrap
  24408. msgid "@code{rc-file} (default: @code{(file-append rottlog \"/etc/rc\")})"
  24409. msgstr ""
  24410. #. type: table
  24411. #: guix-git/doc/guix.texi:16775
  24412. msgid "The Rottlog configuration file to use (@pxref{Mandatory RC Variables,,, rottlog, GNU Rot[t]log Manual})."
  24413. msgstr ""
  24414. #. type: item
  24415. #: guix-git/doc/guix.texi:16776
  24416. #, no-wrap
  24417. msgid "@code{rotations} (default: @code{%default-rotations})"
  24418. msgstr ""
  24419. #. type: table
  24420. #: guix-git/doc/guix.texi:16778
  24421. msgid "A list of @code{log-rotation} objects as defined below."
  24422. msgstr ""
  24423. #. type: table
  24424. #: guix-git/doc/guix.texi:16782
  24425. msgid "This is a list of gexps where each gexp corresponds to an mcron job specification (@pxref{Scheduled Job Execution})."
  24426. msgstr ""
  24427. #. type: deftp
  24428. #: guix-git/doc/guix.texi:16785
  24429. #, no-wrap
  24430. msgid "{Data Type} log-rotation"
  24431. msgstr ""
  24432. #. type: deftp
  24433. #: guix-git/doc/guix.texi:16787
  24434. msgid "Data type representing the rotation of a group of log files."
  24435. msgstr ""
  24436. #. type: deftp
  24437. #: guix-git/doc/guix.texi:16791
  24438. 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:"
  24439. msgstr ""
  24440. #. type: lisp
  24441. #: guix-git/doc/guix.texi:16800
  24442. #, no-wrap
  24443. msgid ""
  24444. "(log-rotation\n"
  24445. " (frequency 'daily)\n"
  24446. " (files '(\"/var/log/apache/*\"))\n"
  24447. " (options '(\"storedir apache-archives\"\n"
  24448. " \"rotate 6\"\n"
  24449. " \"notifempty\"\n"
  24450. " \"nocompress\")))\n"
  24451. msgstr ""
  24452. #. type: deftp
  24453. #: guix-git/doc/guix.texi:16803
  24454. msgid "The list of fields is as follows:"
  24455. msgstr ""
  24456. #. type: item
  24457. #: guix-git/doc/guix.texi:16805
  24458. #, no-wrap
  24459. msgid "@code{frequency} (default: @code{'weekly})"
  24460. msgstr ""
  24461. #. type: table
  24462. #: guix-git/doc/guix.texi:16807
  24463. msgid "The log rotation frequency, a symbol."
  24464. msgstr ""
  24465. #. type: code{#1}
  24466. #: guix-git/doc/guix.texi:16808
  24467. #, no-wrap
  24468. msgid "files"
  24469. msgstr ""
  24470. #. type: table
  24471. #: guix-git/doc/guix.texi:16810
  24472. msgid "The list of files or file glob patterns to rotate."
  24473. msgstr ""
  24474. #. type: item
  24475. #: guix-git/doc/guix.texi:16811
  24476. #, no-wrap
  24477. msgid "@code{options} (default: @code{'()})"
  24478. msgstr ""
  24479. #. type: table
  24480. #: guix-git/doc/guix.texi:16814
  24481. msgid "The list of rottlog options for this rotation (@pxref{Configuration parameters,,, rottlog, GNU Rot[t]lg Manual})."
  24482. msgstr ""
  24483. #. type: item
  24484. #: guix-git/doc/guix.texi:16815
  24485. #, no-wrap
  24486. msgid "@code{post-rotate} (default: @code{#f})"
  24487. msgstr ""
  24488. #. type: table
  24489. #: guix-git/doc/guix.texi:16817
  24490. msgid "Either @code{#f} or a gexp to execute once the rotation has completed."
  24491. msgstr ""
  24492. #. type: defvr
  24493. #: guix-git/doc/guix.texi:16820
  24494. #, no-wrap
  24495. msgid "{Scheme Variable} %default-rotations"
  24496. msgstr ""
  24497. #. type: defvr
  24498. #: guix-git/doc/guix.texi:16823
  24499. msgid "Specifies weekly rotation of @code{%rotated-files} and of @file{/var/log/guix-daemon.log}."
  24500. msgstr ""
  24501. #. type: defvr
  24502. #: guix-git/doc/guix.texi:16825
  24503. #, no-wrap
  24504. msgid "{Scheme Variable} %rotated-files"
  24505. msgstr ""
  24506. #. type: defvr
  24507. #: guix-git/doc/guix.texi:16829
  24508. 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\")}."
  24509. msgstr ""
  24510. #. type: Plain text
  24511. #: guix-git/doc/guix.texi:16836
  24512. msgid "The @code{(gnu services networking)} module provides services to configure the network interface."
  24513. msgstr ""
  24514. #. type: cindex
  24515. #: guix-git/doc/guix.texi:16837
  24516. #, no-wrap
  24517. msgid "DHCP, networking service"
  24518. msgstr ""
  24519. #. type: defvr
  24520. #: guix-git/doc/guix.texi:16838
  24521. #, no-wrap
  24522. msgid "{Scheme Variable} dhcp-client-service-type"
  24523. msgstr ""
  24524. #. type: defvr
  24525. #: guix-git/doc/guix.texi:16842
  24526. 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."
  24527. msgstr ""
  24528. #. type: deffn
  24529. #: guix-git/doc/guix.texi:16844
  24530. #, no-wrap
  24531. msgid "{Scheme Procedure} dhcpd-service-type"
  24532. msgstr ""
  24533. #. type: deffn
  24534. #: guix-git/doc/guix.texi:16848
  24535. 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:"
  24536. msgstr ""
  24537. #. type: lisp
  24538. #: guix-git/doc/guix.texi:16854
  24539. #, no-wrap
  24540. msgid ""
  24541. "(service dhcpd-service-type\n"
  24542. " (dhcpd-configuration\n"
  24543. " (config-file (local-file \"my-dhcpd.conf\"))\n"
  24544. " (interfaces '(\"enp0s25\"))))\n"
  24545. msgstr ""
  24546. #. type: deftp
  24547. #: guix-git/doc/guix.texi:16857
  24548. #, no-wrap
  24549. msgid "{Data Type} dhcpd-configuration"
  24550. msgstr ""
  24551. #. type: item
  24552. #: guix-git/doc/guix.texi:16859
  24553. #, no-wrap
  24554. msgid "@code{package} (default: @code{isc-dhcp})"
  24555. msgstr ""
  24556. #. type: table
  24557. #: guix-git/doc/guix.texi:16864
  24558. 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}."
  24559. msgstr ""
  24560. #. type: item
  24561. #: guix-git/doc/guix.texi:16864 guix-git/doc/guix.texi:17120
  24562. #: guix-git/doc/guix.texi:22338
  24563. #, no-wrap
  24564. msgid "@code{config-file} (default: @code{#f})"
  24565. msgstr ""
  24566. #. type: table
  24567. #: guix-git/doc/guix.texi:16869
  24568. 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."
  24569. msgstr ""
  24570. #. type: item
  24571. #: guix-git/doc/guix.texi:16869
  24572. #, no-wrap
  24573. msgid "@code{version} (default: @code{\"4\"})"
  24574. msgstr ""
  24575. #. type: table
  24576. #: guix-git/doc/guix.texi:16874
  24577. 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."
  24578. msgstr ""
  24579. #. type: item
  24580. #: guix-git/doc/guix.texi:16874
  24581. #, no-wrap
  24582. msgid "@code{run-directory} (default: @code{\"/run/dhcpd\"})"
  24583. msgstr ""
  24584. #. type: table
  24585. #: guix-git/doc/guix.texi:16877
  24586. msgid "The run directory to use. At service activation time, this directory will be created if it does not exist."
  24587. msgstr ""
  24588. #. type: item
  24589. #: guix-git/doc/guix.texi:16877
  24590. #, no-wrap
  24591. msgid "@code{pid-file} (default: @code{\"/run/dhcpd/dhcpd.pid\"})"
  24592. msgstr ""
  24593. #. type: table
  24594. #: guix-git/doc/guix.texi:16880
  24595. msgid "The PID file to use. This corresponds to the @code{-pf} option of @code{dhcpd}. See @code{man dhcpd} for details."
  24596. msgstr ""
  24597. #. type: item
  24598. #: guix-git/doc/guix.texi:16880
  24599. #, no-wrap
  24600. msgid "@code{interfaces} (default: @code{'()})"
  24601. msgstr ""
  24602. #. type: table
  24603. #: guix-git/doc/guix.texi:16886
  24604. 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."
  24605. msgstr ""
  24606. #. type: defvr
  24607. #: guix-git/doc/guix.texi:16889
  24608. #, no-wrap
  24609. msgid "{Scheme Variable} static-networking-service-type"
  24610. msgstr ""
  24611. #. type: defvr
  24612. #: guix-git/doc/guix.texi:16892
  24613. msgid "This is the type for statically-configured network interfaces."
  24614. msgstr ""
  24615. #. type: deffn
  24616. #: guix-git/doc/guix.texi:16894
  24617. #, no-wrap
  24618. msgid "{Scheme Procedure} static-networking-service @var{interface} @var{ip} @"
  24619. msgstr ""
  24620. #. type: deffn
  24621. #: guix-git/doc/guix.texi:16902
  24622. 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."
  24623. msgstr ""
  24624. #. type: deffn
  24625. #: guix-git/doc/guix.texi:16907
  24626. 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."
  24627. msgstr ""
  24628. #. type: defvr
  24629. #: guix-git/doc/guix.texi:16909 guix-git/doc/guix.texi:30237
  24630. msgid "For example:"
  24631. msgstr ""
  24632. #. type: lisp
  24633. #: guix-git/doc/guix.texi:16914
  24634. #, no-wrap
  24635. msgid ""
  24636. "(static-networking-service \"eno1\" \"192.168.1.82\"\n"
  24637. " #:gateway \"192.168.1.2\"\n"
  24638. " #:name-servers '(\"192.168.1.2\"))\n"
  24639. msgstr ""
  24640. #. type: cindex
  24641. #: guix-git/doc/guix.texi:16917
  24642. #, no-wrap
  24643. msgid "wicd"
  24644. msgstr ""
  24645. #. type: cindex
  24646. #: guix-git/doc/guix.texi:16920
  24647. #, no-wrap
  24648. msgid "network management"
  24649. msgstr ""
  24650. #. type: deffn
  24651. #: guix-git/doc/guix.texi:16921
  24652. #, no-wrap
  24653. msgid "{Scheme Procedure} wicd-service [#:wicd @var{wicd}]"
  24654. msgstr ""
  24655. #. type: deffn
  24656. #: guix-git/doc/guix.texi:16924
  24657. msgid "Return a service that runs @url{https://launchpad.net/wicd,Wicd}, a network management daemon that aims to simplify wired and wireless networking."
  24658. msgstr ""
  24659. #. type: deffn
  24660. #: guix-git/doc/guix.texi:16929
  24661. 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."
  24662. msgstr ""
  24663. #. type: cindex
  24664. #: guix-git/doc/guix.texi:16931
  24665. #, no-wrap
  24666. msgid "ModemManager"
  24667. msgstr ""
  24668. #. type: defvr
  24669. #: guix-git/doc/guix.texi:16933
  24670. #, no-wrap
  24671. msgid "{Scheme Variable} modem-manager-service-type"
  24672. msgstr ""
  24673. #. type: defvr
  24674. #: guix-git/doc/guix.texi:16938
  24675. 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."
  24676. msgstr ""
  24677. #. type: defvr
  24678. #: guix-git/doc/guix.texi:16941 guix-git/doc/guix.texi:16970
  24679. #: guix-git/doc/guix.texi:17002
  24680. msgid "This service is part of @code{%desktop-services} (@pxref{Desktop Services})."
  24681. msgstr ""
  24682. #. type: deftp
  24683. #: guix-git/doc/guix.texi:16943
  24684. #, no-wrap
  24685. msgid "{Data Type} modem-manager-configuration"
  24686. msgstr ""
  24687. #. type: deftp
  24688. #: guix-git/doc/guix.texi:16945
  24689. msgid "Data type representing the configuration of ModemManager."
  24690. msgstr ""
  24691. #. type: item
  24692. #: guix-git/doc/guix.texi:16947
  24693. #, no-wrap
  24694. msgid "@code{modem-manager} (default: @code{modem-manager})"
  24695. msgstr ""
  24696. #. type: table
  24697. #: guix-git/doc/guix.texi:16949
  24698. msgid "The ModemManager package to use."
  24699. msgstr ""
  24700. #. type: cindex
  24701. #: guix-git/doc/guix.texi:16953
  24702. #, no-wrap
  24703. msgid "USB_ModeSwitch"
  24704. msgstr ""
  24705. #. type: cindex
  24706. #: guix-git/doc/guix.texi:16954
  24707. #, no-wrap
  24708. msgid "Modeswitching"
  24709. msgstr ""
  24710. #. type: defvr
  24711. #: guix-git/doc/guix.texi:16956
  24712. #, no-wrap
  24713. msgid "{Scheme Variable} usb-modeswitch-service-type"
  24714. msgstr ""
  24715. #. type: defvr
  24716. #: guix-git/doc/guix.texi:16961
  24717. 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."
  24718. msgstr ""
  24719. #. type: defvr
  24720. #: guix-git/doc/guix.texi:16967
  24721. 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."
  24722. msgstr ""
  24723. #. type: deftp
  24724. #: guix-git/doc/guix.texi:16972
  24725. #, no-wrap
  24726. msgid "{Data Type} usb-modeswitch-configuration"
  24727. msgstr ""
  24728. #. type: deftp
  24729. #: guix-git/doc/guix.texi:16974
  24730. msgid "Data type representing the configuration of USB_ModeSwitch."
  24731. msgstr ""
  24732. #. type: item
  24733. #: guix-git/doc/guix.texi:16976
  24734. #, fuzzy, no-wrap
  24735. msgid "@code{usb-modeswitch} (default: @code{usb-modeswitch})"
  24736. msgstr "@code{mate}(默认值:@code{mate})"
  24737. #. type: table
  24738. #: guix-git/doc/guix.texi:16978
  24739. msgid "The USB_ModeSwitch package providing the binaries for modeswitching."
  24740. msgstr ""
  24741. #. type: item
  24742. #: guix-git/doc/guix.texi:16979
  24743. #, fuzzy, no-wrap
  24744. msgid "@code{usb-modeswitch-data} (default: @code{usb-modeswitch-data})"
  24745. msgstr "@code{mate}(默认值:@code{mate})"
  24746. #. type: table
  24747. #: guix-git/doc/guix.texi:16982
  24748. msgid "The package providing the device data and udev rules file used by USB_ModeSwitch."
  24749. msgstr ""
  24750. #. type: item
  24751. #: guix-git/doc/guix.texi:16983
  24752. #, no-wrap
  24753. msgid "@code{config-file} (default: @code{#~(string-append #$usb-modeswitch:dispatcher \"/etc/usb_modeswitch.conf\")})"
  24754. msgstr ""
  24755. #. type: table
  24756. #: guix-git/doc/guix.texi:16988
  24757. 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."
  24758. msgstr ""
  24759. #. type: cindex
  24760. #: guix-git/doc/guix.texi:16992
  24761. #, no-wrap
  24762. msgid "NetworkManager"
  24763. msgstr ""
  24764. #. type: defvr
  24765. #: guix-git/doc/guix.texi:16994
  24766. #, no-wrap
  24767. msgid "{Scheme Variable} network-manager-service-type"
  24768. msgstr ""
  24769. #. type: defvr
  24770. #: guix-git/doc/guix.texi:16999
  24771. 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."
  24772. msgstr ""
  24773. #. type: deftp
  24774. #: guix-git/doc/guix.texi:17004
  24775. #, no-wrap
  24776. msgid "{Data Type} network-manager-configuration"
  24777. msgstr ""
  24778. #. type: deftp
  24779. #: guix-git/doc/guix.texi:17006
  24780. msgid "Data type representing the configuration of NetworkManager."
  24781. msgstr ""
  24782. #. type: item
  24783. #: guix-git/doc/guix.texi:17008
  24784. #, no-wrap
  24785. msgid "@code{network-manager} (default: @code{network-manager})"
  24786. msgstr ""
  24787. #. type: table
  24788. #: guix-git/doc/guix.texi:17010
  24789. msgid "The NetworkManager package to use."
  24790. msgstr ""
  24791. #. type: item
  24792. #: guix-git/doc/guix.texi:17011
  24793. #, no-wrap
  24794. msgid "@code{dns} (default: @code{\"default\"})"
  24795. msgstr ""
  24796. #. type: table
  24797. #: guix-git/doc/guix.texi:17014
  24798. msgid "Processing mode for DNS, which affects how NetworkManager uses the @code{resolv.conf} configuration file."
  24799. msgstr ""
  24800. #. type: table
  24801. #: guix-git/doc/guix.texi:17019
  24802. msgid "NetworkManager will update @code{resolv.conf} to reflect the nameservers provided by currently active connections."
  24803. msgstr ""
  24804. #. type: item
  24805. #: guix-git/doc/guix.texi:17020
  24806. #, no-wrap
  24807. msgid "dnsmasq"
  24808. msgstr ""
  24809. #. type: table
  24810. #: guix-git/doc/guix.texi:17024
  24811. 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."
  24812. msgstr ""
  24813. #. type: table
  24814. #: guix-git/doc/guix.texi:17030
  24815. 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)."
  24816. msgstr ""
  24817. #. type: table
  24818. #: guix-git/doc/guix.texi:17037
  24819. 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:"
  24820. msgstr ""
  24821. #. type: example
  24822. #: guix-git/doc/guix.texi:17044
  24823. #, no-wrap
  24824. msgid ""
  24825. "nmcli connection add type tun \\\n"
  24826. " connection.interface-name tap0 \\\n"
  24827. " tun.mode tap tun.owner $(id -u) \\\n"
  24828. " ipv4.method shared \\\n"
  24829. " ipv4.addresses 172.28.112.1/24\n"
  24830. msgstr ""
  24831. #. type: table
  24832. #: guix-git/doc/guix.texi:17049
  24833. 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-...}."
  24834. msgstr ""
  24835. #. type: table
  24836. #: guix-git/doc/guix.texi:17052
  24837. msgid "NetworkManager will not modify @code{resolv.conf}."
  24838. msgstr ""
  24839. #. type: item
  24840. #: guix-git/doc/guix.texi:17054
  24841. #, no-wrap
  24842. msgid "@code{vpn-plugins} (default: @code{'()})"
  24843. msgstr ""
  24844. #. type: table
  24845. #: guix-git/doc/guix.texi:17058
  24846. 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."
  24847. msgstr ""
  24848. #. type: cindex
  24849. #: guix-git/doc/guix.texi:17062
  24850. #, no-wrap
  24851. msgid "Connman"
  24852. msgstr ""
  24853. #. type: deffn
  24854. #: guix-git/doc/guix.texi:17063
  24855. #, no-wrap
  24856. msgid "{Scheme Variable} connman-service-type"
  24857. msgstr ""
  24858. #. type: deffn
  24859. #: guix-git/doc/guix.texi:17066
  24860. msgid "This is the service type to run @url{https://01.org/connman,Connman}, a network connection manager."
  24861. msgstr ""
  24862. #. type: deffn
  24863. #: guix-git/doc/guix.texi:17069
  24864. msgid "Its value must be an @code{connman-configuration} record as in this example:"
  24865. msgstr ""
  24866. #. type: lisp
  24867. #: guix-git/doc/guix.texi:17074
  24868. #, no-wrap
  24869. msgid ""
  24870. "(service connman-service-type\n"
  24871. " (connman-configuration\n"
  24872. " (disable-vpn? #t)))\n"
  24873. msgstr ""
  24874. #. type: deffn
  24875. #: guix-git/doc/guix.texi:17077
  24876. msgid "See below for details about @code{connman-configuration}."
  24877. msgstr ""
  24878. #. type: deftp
  24879. #: guix-git/doc/guix.texi:17079
  24880. #, no-wrap
  24881. msgid "{Data Type} connman-configuration"
  24882. msgstr ""
  24883. #. type: deftp
  24884. #: guix-git/doc/guix.texi:17081
  24885. msgid "Data Type representing the configuration of connman."
  24886. msgstr ""
  24887. #. type: item
  24888. #: guix-git/doc/guix.texi:17083
  24889. #, no-wrap
  24890. msgid "@code{connman} (default: @var{connman})"
  24891. msgstr ""
  24892. #. type: table
  24893. #: guix-git/doc/guix.texi:17085
  24894. msgid "The connman package to use."
  24895. msgstr ""
  24896. #. type: item
  24897. #: guix-git/doc/guix.texi:17086
  24898. #, no-wrap
  24899. msgid "@code{disable-vpn?} (default: @code{#f})"
  24900. msgstr ""
  24901. #. type: table
  24902. #: guix-git/doc/guix.texi:17088
  24903. msgid "When true, disable connman's vpn plugin."
  24904. msgstr ""
  24905. #. type: cindex
  24906. #: guix-git/doc/guix.texi:17091
  24907. #, no-wrap
  24908. msgid "WPA Supplicant"
  24909. msgstr ""
  24910. #. type: defvr
  24911. #: guix-git/doc/guix.texi:17092
  24912. #, no-wrap
  24913. msgid "{Scheme Variable} wpa-supplicant-service-type"
  24914. msgstr ""
  24915. #. type: defvr
  24916. #: guix-git/doc/guix.texi:17096
  24917. 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."
  24918. msgstr ""
  24919. #. type: deftp
  24920. #: guix-git/doc/guix.texi:17098
  24921. #, no-wrap
  24922. msgid "{Data Type} wpa-supplicant-configuration"
  24923. msgstr ""
  24924. #. type: deftp
  24925. #: guix-git/doc/guix.texi:17100
  24926. msgid "Data type representing the configuration of WPA Supplicant."
  24927. msgstr ""
  24928. #. type: deftp
  24929. #: guix-git/doc/guix.texi:17102 guix-git/doc/guix.texi:32394
  24930. msgid "It takes the following parameters:"
  24931. msgstr ""
  24932. #. type: item
  24933. #: guix-git/doc/guix.texi:17104
  24934. #, no-wrap
  24935. msgid "@code{wpa-supplicant} (default: @code{wpa-supplicant})"
  24936. msgstr ""
  24937. #. type: table
  24938. #: guix-git/doc/guix.texi:17106
  24939. msgid "The WPA Supplicant package to use."
  24940. msgstr ""
  24941. #. type: item
  24942. #: guix-git/doc/guix.texi:17107
  24943. #, no-wrap
  24944. msgid "@code{requirement} (default: @code{'(user-processes loopback syslogd)}"
  24945. msgstr ""
  24946. #. type: table
  24947. #: guix-git/doc/guix.texi:17109
  24948. msgid "List of services that should be started before WPA Supplicant starts."
  24949. msgstr ""
  24950. #. type: item
  24951. #: guix-git/doc/guix.texi:17110
  24952. #, no-wrap
  24953. msgid "@code{dbus?} (default: @code{#t})"
  24954. msgstr ""
  24955. #. type: table
  24956. #: guix-git/doc/guix.texi:17112
  24957. msgid "Whether to listen for requests on D-Bus."
  24958. msgstr ""
  24959. #. type: item
  24960. #: guix-git/doc/guix.texi:17113
  24961. #, no-wrap
  24962. msgid "@code{pid-file} (default: @code{\"/var/run/wpa_supplicant.pid\"})"
  24963. msgstr ""
  24964. #. type: table
  24965. #: guix-git/doc/guix.texi:17115
  24966. msgid "Where to store the PID file."
  24967. msgstr ""
  24968. #. type: item
  24969. #: guix-git/doc/guix.texi:17116 guix-git/doc/guix.texi:30695
  24970. #: guix-git/doc/guix.texi:30837
  24971. #, no-wrap
  24972. msgid "@code{interface} (default: @code{#f})"
  24973. msgstr ""
  24974. #. type: table
  24975. #: guix-git/doc/guix.texi:17119
  24976. msgid "If this is set, it must specify the name of a network interface that WPA supplicant will control."
  24977. msgstr ""
  24978. #. type: table
  24979. #: guix-git/doc/guix.texi:17122
  24980. msgid "Optional configuration file to use."
  24981. msgstr ""
  24982. #. type: table
  24983. #: guix-git/doc/guix.texi:17125
  24984. msgid "List of additional command-line arguments to pass to the daemon."
  24985. msgstr ""
  24986. #. type: cindex
  24987. #: guix-git/doc/guix.texi:17128
  24988. #, no-wrap
  24989. msgid "hostapd service, for Wi-Fi access points"
  24990. msgstr ""
  24991. #. type: cindex
  24992. #: guix-git/doc/guix.texi:17129
  24993. #, no-wrap
  24994. msgid "Wi-Fi access points, hostapd service"
  24995. msgstr ""
  24996. #. type: defvr
  24997. #: guix-git/doc/guix.texi:17130
  24998. #, no-wrap
  24999. msgid "{Scheme Variable} hostapd-service-type"
  25000. msgstr ""
  25001. #. type: defvr
  25002. #: guix-git/doc/guix.texi:17135
  25003. 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:"
  25004. msgstr ""
  25005. #. type: lisp
  25006. #: guix-git/doc/guix.texi:17143
  25007. #, no-wrap
  25008. msgid ""
  25009. ";; Use wlan1 to run the access point for \"My Network\".\n"
  25010. "(service hostapd-service-type\n"
  25011. " (hostapd-configuration\n"
  25012. " (interface \"wlan1\")\n"
  25013. " (ssid \"My Network\")\n"
  25014. " (channel 12)))\n"
  25015. msgstr ""
  25016. #. type: deftp
  25017. #: guix-git/doc/guix.texi:17146
  25018. #, no-wrap
  25019. msgid "{Data Type} hostapd-configuration"
  25020. msgstr ""
  25021. #. type: deftp
  25022. #: guix-git/doc/guix.texi:17149
  25023. msgid "This data type represents the configuration of the hostapd service, with the following fields:"
  25024. msgstr ""
  25025. #. type: item
  25026. #: guix-git/doc/guix.texi:17151
  25027. #, fuzzy, no-wrap
  25028. msgid "@code{package} (default: @code{hostapd})"
  25029. msgstr "@code{mate}(默认值:@code{mate})"
  25030. #. type: table
  25031. #: guix-git/doc/guix.texi:17153
  25032. #, fuzzy
  25033. msgid "The hostapd package to use."
  25034. msgstr "软件包数据类型。"
  25035. #. type: item
  25036. #: guix-git/doc/guix.texi:17154
  25037. #, fuzzy, no-wrap
  25038. msgid "@code{interface} (default: @code{\"wlan0\"})"
  25039. msgstr "@code{display}(默认值:@code{\":0\"})"
  25040. #. type: table
  25041. #: guix-git/doc/guix.texi:17156
  25042. msgid "The network interface to run the WiFi access point."
  25043. msgstr ""
  25044. #. type: code{#1}
  25045. #: guix-git/doc/guix.texi:17157
  25046. #, no-wrap
  25047. msgid "ssid"
  25048. msgstr ""
  25049. #. type: table
  25050. #: guix-git/doc/guix.texi:17160
  25051. msgid "The SSID (@dfn{service set identifier}), a string that identifies this network."
  25052. msgstr ""
  25053. #. type: item
  25054. #: guix-git/doc/guix.texi:17161
  25055. #, fuzzy, no-wrap
  25056. msgid "@code{broadcast-ssid?} (default: @code{#t})"
  25057. msgstr "@code{mate}(默认值:@code{mate})"
  25058. #. type: table
  25059. #: guix-git/doc/guix.texi:17163
  25060. msgid "Whether to broadcast this SSID."
  25061. msgstr ""
  25062. #. type: item
  25063. #: guix-git/doc/guix.texi:17164
  25064. #, fuzzy, no-wrap
  25065. msgid "@code{channel} (default: @code{1})"
  25066. msgstr "@code{challenge}(默认值:@code{#f})"
  25067. #. type: table
  25068. #: guix-git/doc/guix.texi:17166
  25069. msgid "The WiFi channel to use."
  25070. msgstr ""
  25071. #. type: item
  25072. #: guix-git/doc/guix.texi:17167
  25073. #, fuzzy, no-wrap
  25074. msgid "@code{driver} (default: @code{\"nl80211\"})"
  25075. msgstr "@code{display}(默认值:@code{\":0\"})"
  25076. #. type: table
  25077. #: guix-git/doc/guix.texi:17171
  25078. 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."
  25079. msgstr ""
  25080. #. type: item
  25081. #: guix-git/doc/guix.texi:17172 guix-git/doc/guix.texi:23187
  25082. #: guix-git/doc/guix.texi:26266
  25083. #, no-wrap
  25084. msgid "@code{extra-settings} (default: @code{\"\"})"
  25085. msgstr ""
  25086. #. type: table
  25087. #: guix-git/doc/guix.texi:17176
  25088. 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."
  25089. msgstr ""
  25090. #. type: defvr
  25091. #: guix-git/doc/guix.texi:17179
  25092. #, no-wrap
  25093. msgid "{Scheme Variable} simulated-wifi-service-type"
  25094. msgstr ""
  25095. #. type: defvr
  25096. #: guix-git/doc/guix.texi:17186
  25097. 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."
  25098. msgstr ""
  25099. #. type: defvr
  25100. #: guix-git/doc/guix.texi:17188
  25101. msgid "The service's value is a @code{hostapd-configuration} record."
  25102. msgstr ""
  25103. #. type: cindex
  25104. #: guix-git/doc/guix.texi:17190
  25105. #, no-wrap
  25106. msgid "iptables"
  25107. msgstr ""
  25108. #. type: defvr
  25109. #: guix-git/doc/guix.texi:17191
  25110. #, no-wrap
  25111. msgid "{Scheme Variable} iptables-service-type"
  25112. msgstr ""
  25113. #. type: defvr
  25114. #: guix-git/doc/guix.texi:17197
  25115. 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."
  25116. msgstr ""
  25117. #. type: lisp
  25118. #: guix-git/doc/guix.texi:17219
  25119. #, no-wrap
  25120. msgid ""
  25121. "(service iptables-service-type\n"
  25122. " (iptables-configuration\n"
  25123. " (ipv4-rules (plain-file \"iptables.rules\" \"*filter\n"
  25124. ":INPUT ACCEPT\n"
  25125. ":FORWARD ACCEPT\n"
  25126. ":OUTPUT ACCEPT\n"
  25127. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  25128. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  25129. "-A INPUT -j REJECT --reject-with icmp-port-unreachable\n"
  25130. "COMMIT\n"
  25131. "\"))\n"
  25132. " (ipv6-rules (plain-file \"ip6tables.rules\" \"*filter\n"
  25133. ":INPUT ACCEPT\n"
  25134. ":FORWARD ACCEPT\n"
  25135. ":OUTPUT ACCEPT\n"
  25136. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  25137. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  25138. "-A INPUT -j REJECT --reject-with icmp6-port-unreachable\n"
  25139. "COMMIT\n"
  25140. "\"))))\n"
  25141. msgstr ""
  25142. #. type: deftp
  25143. #: guix-git/doc/guix.texi:17222
  25144. #, no-wrap
  25145. msgid "{Data Type} iptables-configuration"
  25146. msgstr ""
  25147. #. type: deftp
  25148. #: guix-git/doc/guix.texi:17224
  25149. msgid "The data type representing the configuration of iptables."
  25150. msgstr ""
  25151. #. type: item
  25152. #: guix-git/doc/guix.texi:17226
  25153. #, no-wrap
  25154. msgid "@code{iptables} (default: @code{iptables})"
  25155. msgstr ""
  25156. #. type: table
  25157. #: guix-git/doc/guix.texi:17229
  25158. msgid "The iptables package that provides @code{iptables-restore} and @code{ip6tables-restore}."
  25159. msgstr ""
  25160. #. type: item
  25161. #: guix-git/doc/guix.texi:17229
  25162. #, no-wrap
  25163. msgid "@code{ipv4-rules} (default: @code{%iptables-accept-all-rules})"
  25164. msgstr ""
  25165. #. type: table
  25166. #: guix-git/doc/guix.texi:17233
  25167. 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})."
  25168. msgstr ""
  25169. #. type: item
  25170. #: guix-git/doc/guix.texi:17233
  25171. #, no-wrap
  25172. msgid "@code{ipv6-rules} (default: @code{%iptables-accept-all-rules})"
  25173. msgstr ""
  25174. #. type: table
  25175. #: guix-git/doc/guix.texi:17237
  25176. 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})."
  25177. msgstr ""
  25178. #. type: cindex
  25179. #: guix-git/doc/guix.texi:17240
  25180. #, no-wrap
  25181. msgid "nftables"
  25182. msgstr ""
  25183. #. type: defvr
  25184. #: guix-git/doc/guix.texi:17241
  25185. #, no-wrap
  25186. msgid "{Scheme Variable} nftables-service-type"
  25187. msgstr ""
  25188. #. type: defvr
  25189. #: guix-git/doc/guix.texi:17249
  25190. 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:"
  25191. msgstr ""
  25192. #. type: lisp
  25193. #: guix-git/doc/guix.texi:17252
  25194. #, no-wrap
  25195. msgid "(service nftables-service-type)\n"
  25196. msgstr ""
  25197. #. type: deftp
  25198. #: guix-git/doc/guix.texi:17255
  25199. #, fuzzy, no-wrap
  25200. msgid "{Data Type} nftables-configuration"
  25201. msgstr "{数据类型} build-machine"
  25202. #. type: deftp
  25203. #: guix-git/doc/guix.texi:17257
  25204. #, fuzzy
  25205. msgid "The data type representing the configuration of nftables."
  25206. msgstr "管理操作系统配置。"
  25207. #. type: item
  25208. #: guix-git/doc/guix.texi:17259
  25209. #, fuzzy, no-wrap
  25210. msgid "@code{package} (default: @code{nftables})"
  25211. msgstr "@code{xfce}(默认值:@code{xfce})"
  25212. #. type: table
  25213. #: guix-git/doc/guix.texi:17261
  25214. msgid "The nftables package that provides @command{nft}."
  25215. msgstr ""
  25216. #. type: item
  25217. #: guix-git/doc/guix.texi:17261
  25218. #, fuzzy, no-wrap
  25219. msgid "@code{ruleset} (default: @code{%default-nftables-ruleset})"
  25220. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  25221. #. type: table
  25222. #: guix-git/doc/guix.texi:17264
  25223. msgid "The nftables ruleset to use. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects})."
  25224. msgstr ""
  25225. #. type: cindex
  25226. #: guix-git/doc/guix.texi:17267
  25227. #, no-wrap
  25228. msgid "NTP (Network Time Protocol), service"
  25229. msgstr ""
  25230. #. type: cindex
  25231. #: guix-git/doc/guix.texi:17268
  25232. #, no-wrap
  25233. msgid "ntpd, service for the Network Time Protocol daemon"
  25234. msgstr ""
  25235. #. type: cindex
  25236. #: guix-git/doc/guix.texi:17269
  25237. #, no-wrap
  25238. msgid "real time clock"
  25239. msgstr ""
  25240. #. type: defvr
  25241. #: guix-git/doc/guix.texi:17270
  25242. #, no-wrap
  25243. msgid "{Scheme Variable} ntp-service-type"
  25244. msgstr ""
  25245. #. type: defvr
  25246. #: guix-git/doc/guix.texi:17274
  25247. 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."
  25248. msgstr ""
  25249. #. type: defvr
  25250. #: guix-git/doc/guix.texi:17277
  25251. msgid "The value of this service is an @code{ntpd-configuration} object, as described below."
  25252. msgstr ""
  25253. #. type: deftp
  25254. #: guix-git/doc/guix.texi:17279
  25255. #, no-wrap
  25256. msgid "{Data Type} ntp-configuration"
  25257. msgstr ""
  25258. #. type: deftp
  25259. #: guix-git/doc/guix.texi:17281
  25260. msgid "This is the data type for the NTP service configuration."
  25261. msgstr ""
  25262. #. type: item
  25263. #: guix-git/doc/guix.texi:17283
  25264. #, no-wrap
  25265. msgid "@code{servers} (default: @code{%ntp-servers})"
  25266. msgstr ""
  25267. #. type: table
  25268. #: guix-git/doc/guix.texi:17287
  25269. 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."
  25270. msgstr ""
  25271. #. type: item
  25272. #: guix-git/doc/guix.texi:17288
  25273. #, fuzzy, no-wrap
  25274. msgid "@code{allow-large-adjustment?} (default: @code{#t})"
  25275. msgstr "@code{challenge}(默认值:@code{#f})"
  25276. #. type: table
  25277. #: guix-git/doc/guix.texi:17291
  25278. msgid "This determines whether @command{ntpd} is allowed to make an initial adjustment of more than 1,000 seconds."
  25279. msgstr ""
  25280. #. type: item
  25281. #: guix-git/doc/guix.texi:17292
  25282. #, no-wrap
  25283. msgid "@code{ntp} (default: @code{ntp})"
  25284. msgstr ""
  25285. #. type: table
  25286. #: guix-git/doc/guix.texi:17294
  25287. msgid "The NTP package to use."
  25288. msgstr ""
  25289. #. type: defvr
  25290. #: guix-git/doc/guix.texi:17297
  25291. #, no-wrap
  25292. msgid "{Scheme Variable} %ntp-servers"
  25293. msgstr ""
  25294. #. type: defvr
  25295. #: guix-git/doc/guix.texi:17300
  25296. 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}."
  25297. msgstr ""
  25298. #. type: deftp
  25299. #: guix-git/doc/guix.texi:17302
  25300. #, no-wrap
  25301. msgid "{Data Type} ntp-server"
  25302. msgstr ""
  25303. #. type: deftp
  25304. #: guix-git/doc/guix.texi:17304
  25305. msgid "The data type representing the configuration of a NTP server."
  25306. msgstr ""
  25307. #. type: item
  25308. #: guix-git/doc/guix.texi:17306
  25309. #, fuzzy, no-wrap
  25310. msgid "@code{type} (default: @code{'server})"
  25311. msgstr "@code{mate}(默认值:@code{mate})"
  25312. #. type: table
  25313. #: guix-git/doc/guix.texi:17309
  25314. msgid "The type of the NTP server, given as a symbol. One of @code{'pool}, @code{'server}, @code{'peer}, @code{'broadcast} or @code{'manycastclient}."
  25315. msgstr ""
  25316. #. type: code{#1}
  25317. #: guix-git/doc/guix.texi:17310
  25318. #, no-wrap
  25319. msgid "address"
  25320. msgstr ""
  25321. #. type: table
  25322. #: guix-git/doc/guix.texi:17312
  25323. msgid "The address of the server, as a string."
  25324. msgstr ""
  25325. #. type: code{#1}
  25326. #: guix-git/doc/guix.texi:17313 guix-git/doc/guix.texi:33223
  25327. #: guix-git/doc/guix.texi:33243
  25328. #, no-wrap
  25329. msgid "options"
  25330. msgstr ""
  25331. #. type: table
  25332. #: guix-git/doc/guix.texi:17318
  25333. 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."
  25334. msgstr ""
  25335. #. type: example
  25336. #: guix-git/doc/guix.texi:17324
  25337. #, no-wrap
  25338. msgid ""
  25339. "(ntp-server\n"
  25340. " (type 'server)\n"
  25341. " (address \"some.ntp.server.org\")\n"
  25342. " (options `(iburst (version 3) (maxpoll 16) prefer))))\n"
  25343. msgstr ""
  25344. #. type: cindex
  25345. #: guix-git/doc/guix.texi:17328
  25346. #, no-wrap
  25347. msgid "OpenNTPD"
  25348. msgstr ""
  25349. #. type: deffn
  25350. #: guix-git/doc/guix.texi:17329
  25351. #, no-wrap
  25352. msgid "{Scheme Procedure} openntpd-service-type"
  25353. msgstr ""
  25354. #. type: deffn
  25355. #: guix-git/doc/guix.texi:17333
  25356. 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."
  25357. msgstr ""
  25358. #. type: lisp
  25359. #: guix-git/doc/guix.texi:17342
  25360. #, no-wrap
  25361. msgid ""
  25362. "(service\n"
  25363. " openntpd-service-type\n"
  25364. " (openntpd-configuration\n"
  25365. " (listen-on '(\"127.0.0.1\" \"::1\"))\n"
  25366. " (sensor '(\"udcf0 correction 70000\"))\n"
  25367. " (constraint-from '(\"www.gnu.org\"))\n"
  25368. " (constraints-from '(\"https://www.google.com/\"))))\n"
  25369. "\n"
  25370. msgstr ""
  25371. #. type: defvr
  25372. #: guix-git/doc/guix.texi:17346
  25373. #, no-wrap
  25374. msgid "{Scheme Variable} %openntpd-servers"
  25375. msgstr ""
  25376. #. type: defvr
  25377. #: guix-git/doc/guix.texi:17349
  25378. msgid "This variable is a list of the server addresses defined in @code{%ntp-servers}."
  25379. msgstr ""
  25380. #. type: deftp
  25381. #: guix-git/doc/guix.texi:17351
  25382. #, no-wrap
  25383. msgid "{Data Type} openntpd-configuration"
  25384. msgstr ""
  25385. #. type: item
  25386. #: guix-git/doc/guix.texi:17353
  25387. #, no-wrap
  25388. msgid "@code{openntpd} (default: @code{(file-append openntpd \"/sbin/ntpd\")})"
  25389. msgstr ""
  25390. #. type: table
  25391. #: guix-git/doc/guix.texi:17355
  25392. msgid "The openntpd executable to use."
  25393. msgstr ""
  25394. #. type: item
  25395. #: guix-git/doc/guix.texi:17355
  25396. #, no-wrap
  25397. msgid "@code{listen-on} (default: @code{'(\"127.0.0.1\" \"::1\")})"
  25398. msgstr ""
  25399. #. type: table
  25400. #: guix-git/doc/guix.texi:17357
  25401. msgid "A list of local IP addresses or hostnames the ntpd daemon should listen on."
  25402. msgstr ""
  25403. #. type: item
  25404. #: guix-git/doc/guix.texi:17357
  25405. #, no-wrap
  25406. msgid "@code{query-from} (default: @code{'()})"
  25407. msgstr ""
  25408. #. type: table
  25409. #: guix-git/doc/guix.texi:17359
  25410. msgid "A list of local IP address the ntpd daemon should use for outgoing queries."
  25411. msgstr ""
  25412. #. type: item
  25413. #: guix-git/doc/guix.texi:17359
  25414. #, no-wrap
  25415. msgid "@code{sensor} (default: @code{'()})"
  25416. msgstr ""
  25417. #. type: table
  25418. #: guix-git/doc/guix.texi:17364
  25419. 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."
  25420. msgstr ""
  25421. #. type: item
  25422. #: guix-git/doc/guix.texi:17364
  25423. #, fuzzy, no-wrap
  25424. msgid "@code{server} (default: @code{'()})"
  25425. msgstr "@code{features} (@code{'()})"
  25426. #. type: table
  25427. #: guix-git/doc/guix.texi:17366
  25428. msgid "Specify a list of IP addresses or hostnames of NTP servers to synchronize to."
  25429. msgstr ""
  25430. #. type: item
  25431. #: guix-git/doc/guix.texi:17366
  25432. #, fuzzy, no-wrap
  25433. msgid "@code{servers} (default: @code{%openntp-servers})"
  25434. msgstr "@code{speed}(默认值:@code{1.0})"
  25435. #. type: table
  25436. #: guix-git/doc/guix.texi:17368
  25437. msgid "Specify a list of IP addresses or hostnames of NTP pools to synchronize to."
  25438. msgstr ""
  25439. #. type: item
  25440. #: guix-git/doc/guix.texi:17368
  25441. #, no-wrap
  25442. msgid "@code{constraint-from} (default: @code{'()})"
  25443. msgstr ""
  25444. #. type: table
  25445. #: guix-git/doc/guix.texi:17375
  25446. 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."
  25447. msgstr ""
  25448. #. type: item
  25449. #: guix-git/doc/guix.texi:17375
  25450. #, no-wrap
  25451. msgid "@code{constraints-from} (default: @code{'()})"
  25452. msgstr ""
  25453. #. type: table
  25454. #: guix-git/doc/guix.texi:17379
  25455. 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."
  25456. msgstr ""
  25457. #. type: cindex
  25458. #: guix-git/doc/guix.texi:17382
  25459. #, no-wrap
  25460. msgid "inetd"
  25461. msgstr ""
  25462. #. type: deffn
  25463. #: guix-git/doc/guix.texi:17383
  25464. #, no-wrap
  25465. msgid "{Scheme variable} inetd-service-type"
  25466. msgstr ""
  25467. #. type: deffn
  25468. #: guix-git/doc/guix.texi:17388
  25469. 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."
  25470. msgstr ""
  25471. #. type: deffn
  25472. #: guix-git/doc/guix.texi:17394
  25473. 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}:"
  25474. msgstr ""
  25475. #. type: lisp
  25476. #: guix-git/doc/guix.texi:17417
  25477. #, no-wrap
  25478. msgid ""
  25479. "(service\n"
  25480. " inetd-service-type\n"
  25481. " (inetd-configuration\n"
  25482. " (entries (list\n"
  25483. " (inetd-entry\n"
  25484. " (name \"echo\")\n"
  25485. " (socket-type 'stream)\n"
  25486. " (protocol \"tcp\")\n"
  25487. " (wait? #f)\n"
  25488. " (user \"root\"))\n"
  25489. " (inetd-entry\n"
  25490. " (node \"127.0.0.1\")\n"
  25491. " (name \"smtp\")\n"
  25492. " (socket-type 'stream)\n"
  25493. " (protocol \"tcp\")\n"
  25494. " (wait? #f)\n"
  25495. " (user \"root\")\n"
  25496. " (program (file-append openssh \"/bin/ssh\"))\n"
  25497. " (arguments\n"
  25498. " '(\"ssh\" \"-qT\" \"-i\" \"/path/to/ssh_key\"\n"
  25499. " \"-W\" \"smtp-server:25\" \"user@@hostname\")))))))\n"
  25500. msgstr ""
  25501. #. type: deffn
  25502. #: guix-git/doc/guix.texi:17420
  25503. msgid "See below for more details about @code{inetd-configuration}."
  25504. msgstr ""
  25505. #. type: deftp
  25506. #: guix-git/doc/guix.texi:17422
  25507. #, no-wrap
  25508. msgid "{Data Type} inetd-configuration"
  25509. msgstr ""
  25510. #. type: deftp
  25511. #: guix-git/doc/guix.texi:17424
  25512. msgid "Data type representing the configuration of @command{inetd}."
  25513. msgstr ""
  25514. #. type: item
  25515. #: guix-git/doc/guix.texi:17426
  25516. #, no-wrap
  25517. msgid "@code{program} (default: @code{(file-append inetutils \"/libexec/inetd\")})"
  25518. msgstr ""
  25519. #. type: table
  25520. #: guix-git/doc/guix.texi:17428
  25521. msgid "The @command{inetd} executable to use."
  25522. msgstr ""
  25523. #. type: item
  25524. #: guix-git/doc/guix.texi:17429 guix-git/doc/guix.texi:27114
  25525. #, no-wrap
  25526. msgid "@code{entries} (default: @code{'()})"
  25527. msgstr ""
  25528. #. type: table
  25529. #: guix-git/doc/guix.texi:17432
  25530. msgid "A list of @command{inetd} service entries. Each entry should be created by the @code{inetd-entry} constructor."
  25531. msgstr ""
  25532. #. type: deftp
  25533. #: guix-git/doc/guix.texi:17435
  25534. #, no-wrap
  25535. msgid "{Data Type} inetd-entry"
  25536. msgstr ""
  25537. #. type: deftp
  25538. #: guix-git/doc/guix.texi:17439
  25539. msgid "Data type representing an entry in the @command{inetd} configuration. Each entry corresponds to a socket where @command{inetd} will listen for requests."
  25540. msgstr ""
  25541. #. type: item
  25542. #: guix-git/doc/guix.texi:17441
  25543. #, no-wrap
  25544. msgid "@code{node} (default: @code{#f})"
  25545. msgstr ""
  25546. #. type: table
  25547. #: guix-git/doc/guix.texi:17446
  25548. 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."
  25549. msgstr ""
  25550. #. type: table
  25551. #: guix-git/doc/guix.texi:17448
  25552. msgid "A string, the name must correspond to an entry in @code{/etc/services}."
  25553. msgstr ""
  25554. #. type: code{#1}
  25555. #: guix-git/doc/guix.texi:17448
  25556. #, no-wrap
  25557. msgid "socket-type"
  25558. msgstr ""
  25559. #. type: table
  25560. #: guix-git/doc/guix.texi:17451
  25561. msgid "One of @code{'stream}, @code{'dgram}, @code{'raw}, @code{'rdm} or @code{'seqpacket}."
  25562. msgstr ""
  25563. #. type: code{#1}
  25564. #: guix-git/doc/guix.texi:17451
  25565. #, no-wrap
  25566. msgid "protocol"
  25567. msgstr ""
  25568. #. type: table
  25569. #: guix-git/doc/guix.texi:17453
  25570. msgid "A string, must correspond to an entry in @code{/etc/protocols}."
  25571. msgstr ""
  25572. #. type: item
  25573. #: guix-git/doc/guix.texi:17453
  25574. #, no-wrap
  25575. msgid "@code{wait?} (default: @code{#t})"
  25576. msgstr ""
  25577. #. type: table
  25578. #: guix-git/doc/guix.texi:17456
  25579. msgid "Whether @command{inetd} should wait for the server to exit before listening to new service requests."
  25580. msgstr ""
  25581. #. type: table
  25582. #: guix-git/doc/guix.texi:17461
  25583. 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\"}."
  25584. msgstr ""
  25585. #. type: item
  25586. #: guix-git/doc/guix.texi:17461
  25587. #, no-wrap
  25588. msgid "@code{program} (default: @code{\"internal\"})"
  25589. msgstr ""
  25590. #. type: table
  25591. #: guix-git/doc/guix.texi:17464
  25592. msgid "The server program which will serve the requests, or @code{\"internal\"} if @command{inetd} should use a built-in service."
  25593. msgstr ""
  25594. #. type: table
  25595. #: guix-git/doc/guix.texi:17469
  25596. 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\")}."
  25597. msgstr ""
  25598. #. type: deftp
  25599. #: guix-git/doc/guix.texi:17473
  25600. msgid "@xref{Configuration file,,, inetutils, GNU Inetutils} for a more detailed discussion of each configuration field."
  25601. msgstr ""
  25602. #. type: cindex
  25603. #: guix-git/doc/guix.texi:17475
  25604. #, no-wrap
  25605. msgid "opendht, distributed hash table network service"
  25606. msgstr ""
  25607. #. type: cindex
  25608. #: guix-git/doc/guix.texi:17476
  25609. #, no-wrap
  25610. msgid "dhtproxy, for use with jami"
  25611. msgstr ""
  25612. #. type: defvr
  25613. #: guix-git/doc/guix.texi:17477
  25614. #, no-wrap
  25615. msgid "{Scheme Variable} opendht-service-type"
  25616. msgstr ""
  25617. #. type: defvr
  25618. #: guix-git/doc/guix.texi:17482
  25619. 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."
  25620. msgstr ""
  25621. #. type: quotation
  25622. #: guix-git/doc/guix.texi:17492
  25623. 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."
  25624. msgstr ""
  25625. #. type: defvr
  25626. #: guix-git/doc/guix.texi:17496
  25627. msgid "The value of this service is a @code{opendht-configuration} object, as described below."
  25628. msgstr ""
  25629. #. type: deftp
  25630. #: guix-git/doc/guix.texi:17498
  25631. #, fuzzy, no-wrap
  25632. msgid "{Data Type} opendht-configuration"
  25633. msgstr "系统配置"
  25634. #. type: deftp
  25635. #: guix-git/doc/guix.texi:17500
  25636. #, fuzzy
  25637. msgid "This is the data type for the OpenDHT service configuration."
  25638. msgstr "管理操作系统配置。"
  25639. #. type: deftp
  25640. #: guix-git/doc/guix.texi:17505
  25641. msgid "Available @code{opendht-configuration} fields are:"
  25642. msgstr ""
  25643. #. type: deftypevr
  25644. #: guix-git/doc/guix.texi:17506
  25645. #, no-wrap
  25646. msgid "{@code{opendht-configuration} parameter} package opendht"
  25647. msgstr ""
  25648. #. type: deftypevr
  25649. #: guix-git/doc/guix.texi:17508
  25650. #, fuzzy
  25651. msgid "The @code{opendht} package to use."
  25652. msgstr "软件包数据类型。"
  25653. #. type: deftypevr
  25654. #: guix-git/doc/guix.texi:17511
  25655. #, no-wrap
  25656. msgid "{@code{opendht-configuration} parameter} boolean peer-discovery?"
  25657. msgstr ""
  25658. #. type: deftypevr
  25659. #: guix-git/doc/guix.texi:17513
  25660. msgid "Whether to enable the multicast local peer discovery mechanism."
  25661. msgstr ""
  25662. #. type: deftypevr
  25663. #: guix-git/doc/guix.texi:17515 guix-git/doc/guix.texi:17523
  25664. #: guix-git/doc/guix.texi:17531 guix-git/doc/guix.texi:19178
  25665. #: guix-git/doc/guix.texi:19248 guix-git/doc/guix.texi:19290
  25666. #: guix-git/doc/guix.texi:19310 guix-git/doc/guix.texi:19316
  25667. #: guix-git/doc/guix.texi:19332 guix-git/doc/guix.texi:19420
  25668. #: guix-git/doc/guix.texi:19508 guix-git/doc/guix.texi:19821
  25669. #: guix-git/doc/guix.texi:19834 guix-git/doc/guix.texi:20951
  25670. #: guix-git/doc/guix.texi:22429 guix-git/doc/guix.texi:22535
  25671. #: guix-git/doc/guix.texi:22600 guix-git/doc/guix.texi:22609
  25672. #: guix-git/doc/guix.texi:23842 guix-git/doc/guix.texi:23886
  25673. #: guix-git/doc/guix.texi:23903 guix-git/doc/guix.texi:23911
  25674. #: guix-git/doc/guix.texi:23926 guix-git/doc/guix.texi:23944
  25675. #: guix-git/doc/guix.texi:23968 guix-git/doc/guix.texi:24021
  25676. #: guix-git/doc/guix.texi:24154 guix-git/doc/guix.texi:24188
  25677. #: guix-git/doc/guix.texi:24224 guix-git/doc/guix.texi:24240
  25678. #: guix-git/doc/guix.texi:24268 guix-git/doc/guix.texi:24329
  25679. #: guix-git/doc/guix.texi:24412 guix-git/doc/guix.texi:27826
  25680. #: guix-git/doc/guix.texi:27840 guix-git/doc/guix.texi:27862
  25681. #: guix-git/doc/guix.texi:27981 guix-git/doc/guix.texi:27995
  25682. #: guix-git/doc/guix.texi:28016 guix-git/doc/guix.texi:28037
  25683. #: guix-git/doc/guix.texi:28044 guix-git/doc/guix.texi:28089
  25684. #: guix-git/doc/guix.texi:28096 guix-git/doc/guix.texi:28882
  25685. #: guix-git/doc/guix.texi:28896 guix-git/doc/guix.texi:29068
  25686. #: guix-git/doc/guix.texi:29113 guix-git/doc/guix.texi:29200
  25687. #: guix-git/doc/guix.texi:29402 guix-git/doc/guix.texi:29435
  25688. #: guix-git/doc/guix.texi:29575 guix-git/doc/guix.texi:29586
  25689. #: guix-git/doc/guix.texi:29837 guix-git/doc/guix.texi:31349
  25690. #: guix-git/doc/guix.texi:31358 guix-git/doc/guix.texi:31366
  25691. #: guix-git/doc/guix.texi:31374 guix-git/doc/guix.texi:31390
  25692. #: guix-git/doc/guix.texi:31406 guix-git/doc/guix.texi:31414
  25693. #: guix-git/doc/guix.texi:31422 guix-git/doc/guix.texi:31431
  25694. #: guix-git/doc/guix.texi:31440 guix-git/doc/guix.texi:31456
  25695. #: guix-git/doc/guix.texi:31520 guix-git/doc/guix.texi:31626
  25696. #: guix-git/doc/guix.texi:31634 guix-git/doc/guix.texi:31642
  25697. #: guix-git/doc/guix.texi:31667 guix-git/doc/guix.texi:31721
  25698. #: guix-git/doc/guix.texi:31769 guix-git/doc/guix.texi:31970
  25699. #: guix-git/doc/guix.texi:31977
  25700. msgid "Defaults to @samp{#f}."
  25701. msgstr ""
  25702. #. type: deftypevr
  25703. #: guix-git/doc/guix.texi:17518
  25704. #, no-wrap
  25705. msgid "{@code{opendht-configuration} parameter} boolean enable-logging?"
  25706. msgstr ""
  25707. #. type: deftypevr
  25708. #: guix-git/doc/guix.texi:17521
  25709. msgid "Whether to enable logging messages to syslog. It is disabled by default as it is rather verbose."
  25710. msgstr ""
  25711. #. type: deftypevr
  25712. #: guix-git/doc/guix.texi:17526
  25713. #, no-wrap
  25714. msgid "{@code{opendht-configuration} parameter} boolean debug?"
  25715. msgstr ""
  25716. #. type: deftypevr
  25717. #: guix-git/doc/guix.texi:17529
  25718. msgid "Whether to enable debug-level logging messages. This has no effect if logging is disabled."
  25719. msgstr ""
  25720. #. type: deftypevr
  25721. #: guix-git/doc/guix.texi:17534
  25722. #, no-wrap
  25723. msgid "{@code{opendht-configuration} parameter} maybe-string bootstrap-host"
  25724. msgstr ""
  25725. #. type: deftypevr
  25726. #: guix-git/doc/guix.texi:17540
  25727. 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."
  25728. msgstr ""
  25729. #. type: deftypevr
  25730. #: guix-git/doc/guix.texi:17542
  25731. msgid "Defaults to @samp{\"bootstrap.jami.net:4222\"}."
  25732. msgstr ""
  25733. #. type: deftypevr
  25734. #: guix-git/doc/guix.texi:17545
  25735. #, no-wrap
  25736. msgid "{@code{opendht-configuration} parameter} maybe-number port"
  25737. msgstr ""
  25738. #. type: deftypevr
  25739. #: guix-git/doc/guix.texi:17548
  25740. msgid "The UDP port to bind to. When set to @code{'disabled}, an available port is automatically selected."
  25741. msgstr ""
  25742. #. type: deftypevr
  25743. #: guix-git/doc/guix.texi:17550
  25744. msgid "Defaults to @samp{4222}."
  25745. msgstr ""
  25746. #. type: deftypevr
  25747. #: guix-git/doc/guix.texi:17553
  25748. #, no-wrap
  25749. msgid "{@code{opendht-configuration} parameter} maybe-number proxy-server-port"
  25750. msgstr ""
  25751. #. type: deftypevr
  25752. #: guix-git/doc/guix.texi:17555
  25753. msgid "Spawn a proxy server listening on the specified port."
  25754. msgstr ""
  25755. #. type: deftypevr
  25756. #: guix-git/doc/guix.texi:17557 guix-git/doc/guix.texi:17564
  25757. #: guix-git/doc/guix.texi:23850 guix-git/doc/guix.texi:23894
  25758. #: guix-git/doc/guix.texi:24107 guix-git/doc/guix.texi:24163
  25759. #: guix-git/doc/guix.texi:24337 guix-git/doc/guix.texi:24348
  25760. #: guix-git/doc/guix.texi:24421 guix-git/doc/guix.texi:25146
  25761. #: guix-git/doc/guix.texi:25189 guix-git/doc/guix.texi:25197
  25762. #: guix-git/doc/guix.texi:25205 guix-git/doc/guix.texi:25213
  25763. #: guix-git/doc/guix.texi:25222 guix-git/doc/guix.texi:25230
  25764. #: guix-git/doc/guix.texi:25237 guix-git/doc/guix.texi:25245
  25765. #: guix-git/doc/guix.texi:25253 guix-git/doc/guix.texi:25263
  25766. #: guix-git/doc/guix.texi:25270 guix-git/doc/guix.texi:25294
  25767. #: guix-git/doc/guix.texi:25302 guix-git/doc/guix.texi:25328
  25768. #: guix-git/doc/guix.texi:25337 guix-git/doc/guix.texi:25346
  25769. #: guix-git/doc/guix.texi:25355 guix-git/doc/guix.texi:25364
  25770. #: guix-git/doc/guix.texi:25373 guix-git/doc/guix.texi:25381
  25771. #: guix-git/doc/guix.texi:25389 guix-git/doc/guix.texi:25396
  25772. #: guix-git/doc/guix.texi:25404 guix-git/doc/guix.texi:25411
  25773. #: guix-git/doc/guix.texi:25419 guix-git/doc/guix.texi:25427
  25774. #: guix-git/doc/guix.texi:25436 guix-git/doc/guix.texi:25445
  25775. #: guix-git/doc/guix.texi:25453 guix-git/doc/guix.texi:25461
  25776. #: guix-git/doc/guix.texi:25469 guix-git/doc/guix.texi:25480
  25777. #: guix-git/doc/guix.texi:25490 guix-git/doc/guix.texi:25501
  25778. #: guix-git/doc/guix.texi:25510 guix-git/doc/guix.texi:25520
  25779. #: guix-git/doc/guix.texi:25528 guix-git/doc/guix.texi:25539
  25780. #: guix-git/doc/guix.texi:25548 guix-git/doc/guix.texi:25558
  25781. #: guix-git/doc/guix.texi:28795 guix-git/doc/guix.texi:28802
  25782. #: guix-git/doc/guix.texi:28809 guix-git/doc/guix.texi:28816
  25783. #: guix-git/doc/guix.texi:28823 guix-git/doc/guix.texi:28830
  25784. #: guix-git/doc/guix.texi:28838 guix-git/doc/guix.texi:28846
  25785. #: guix-git/doc/guix.texi:28853 guix-git/doc/guix.texi:28860
  25786. #: guix-git/doc/guix.texi:28867 guix-git/doc/guix.texi:28874
  25787. #: guix-git/doc/guix.texi:28904 guix-git/doc/guix.texi:28942
  25788. #: guix-git/doc/guix.texi:28949 guix-git/doc/guix.texi:28958
  25789. #: guix-git/doc/guix.texi:28980 guix-git/doc/guix.texi:28988
  25790. #: guix-git/doc/guix.texi:28995 guix-git/doc/guix.texi:29150
  25791. #: guix-git/doc/guix.texi:29170 guix-git/doc/guix.texi:29185
  25792. #: guix-git/doc/guix.texi:29192 guix-git/doc/guix.texi:31922
  25793. #: guix-git/doc/guix.texi:31930 guix-git/doc/guix.texi:31938
  25794. #: guix-git/doc/guix.texi:31946 guix-git/doc/guix.texi:31954
  25795. #: guix-git/doc/guix.texi:31962
  25796. msgid "Defaults to @samp{disabled}."
  25797. msgstr ""
  25798. #. type: deftypevr
  25799. #: guix-git/doc/guix.texi:17560
  25800. #, no-wrap
  25801. msgid "{@code{opendht-configuration} parameter} maybe-number proxy-server-port-tls"
  25802. msgstr ""
  25803. #. type: deftypevr
  25804. #: guix-git/doc/guix.texi:17562
  25805. msgid "Spawn a proxy server listening to TLS connections on the specified port."
  25806. msgstr ""
  25807. #. type: cindex
  25808. #: guix-git/doc/guix.texi:17568
  25809. #, no-wrap
  25810. msgid "Tor"
  25811. msgstr ""
  25812. #. type: defvr
  25813. #: guix-git/doc/guix.texi:17569
  25814. #, no-wrap
  25815. msgid "{Scheme Variable} tor-service-type"
  25816. msgstr ""
  25817. #. type: defvr
  25818. #: guix-git/doc/guix.texi:17574
  25819. 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."
  25820. msgstr ""
  25821. #. type: deftp
  25822. #: guix-git/doc/guix.texi:17577
  25823. #, no-wrap
  25824. msgid "{Data Type} tor-configuration"
  25825. msgstr ""
  25826. #. type: item
  25827. #: guix-git/doc/guix.texi:17579
  25828. #, no-wrap
  25829. msgid "@code{tor} (default: @code{tor})"
  25830. msgstr ""
  25831. #. type: table
  25832. #: guix-git/doc/guix.texi:17584
  25833. 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."
  25834. msgstr ""
  25835. #. type: item
  25836. #: guix-git/doc/guix.texi:17585
  25837. #, no-wrap
  25838. msgid "@code{config-file} (default: @code{(plain-file \"empty\" \"\")})"
  25839. msgstr ""
  25840. #. type: table
  25841. #: guix-git/doc/guix.texi:17591
  25842. 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."
  25843. msgstr ""
  25844. #. type: item
  25845. #: guix-git/doc/guix.texi:17592
  25846. #, no-wrap
  25847. msgid "@code{hidden-services} (default: @code{'()})"
  25848. msgstr ""
  25849. #. type: table
  25850. #: guix-git/doc/guix.texi:17598
  25851. 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."
  25852. msgstr ""
  25853. #. type: item
  25854. #: guix-git/doc/guix.texi:17599
  25855. #, no-wrap
  25856. msgid "@code{socks-socket-type} (default: @code{'tcp})"
  25857. msgstr ""
  25858. #. type: table
  25859. #: guix-git/doc/guix.texi:17606
  25860. 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."
  25861. msgstr ""
  25862. #. type: table
  25863. #: guix-git/doc/guix.texi:17611
  25864. 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."
  25865. msgstr ""
  25866. #. type: item
  25867. #: guix-git/doc/guix.texi:17612
  25868. #, fuzzy, no-wrap
  25869. msgid "@code{control-socket?} (default: @code{#f})"
  25870. msgstr "@code{journal-content}(默认值:@code{#f})"
  25871. #. type: table
  25872. #: guix-git/doc/guix.texi:17618
  25873. 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."
  25874. msgstr ""
  25875. #. type: cindex
  25876. #: guix-git/doc/guix.texi:17622
  25877. #, no-wrap
  25878. msgid "hidden service"
  25879. msgstr ""
  25880. #. type: deffn
  25881. #: guix-git/doc/guix.texi:17623
  25882. #, no-wrap
  25883. msgid "{Scheme Procedure} tor-hidden-service @var{name} @var{mapping}"
  25884. msgstr ""
  25885. #. type: deffn
  25886. #: guix-git/doc/guix.texi:17626
  25887. 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:"
  25888. msgstr ""
  25889. #. type: example
  25890. #: guix-git/doc/guix.texi:17630
  25891. #, no-wrap
  25892. msgid ""
  25893. " '((22 \"127.0.0.1:22\")\n"
  25894. " (80 \"127.0.0.1:8080\"))\n"
  25895. msgstr ""
  25896. #. type: deffn
  25897. #: guix-git/doc/guix.texi:17634
  25898. 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."
  25899. msgstr ""
  25900. #. type: deffn
  25901. #: guix-git/doc/guix.texi:17638
  25902. 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."
  25903. msgstr ""
  25904. #. type: deffn
  25905. #: guix-git/doc/guix.texi:17641
  25906. msgid "See @uref{https://www.torproject.org/docs/tor-hidden-service.html.en, the Tor project's documentation} for more information."
  25907. msgstr ""
  25908. #. type: Plain text
  25909. #: guix-git/doc/guix.texi:17644
  25910. msgid "The @code{(gnu services rsync)} module provides the following services:"
  25911. msgstr ""
  25912. #. type: Plain text
  25913. #: guix-git/doc/guix.texi:17648
  25914. 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."
  25915. msgstr ""
  25916. #. type: deffn
  25917. #: guix-git/doc/guix.texi:17649
  25918. #, no-wrap
  25919. msgid "{Scheme Variable} rsync-service-type"
  25920. msgstr ""
  25921. #. type: deffn
  25922. #: guix-git/doc/guix.texi:17653
  25923. 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:"
  25924. msgstr ""
  25925. #. type: lisp
  25926. #: guix-git/doc/guix.texi:17656
  25927. #, no-wrap
  25928. msgid "(service rsync-service-type)\n"
  25929. msgstr ""
  25930. #. type: deffn
  25931. #: guix-git/doc/guix.texi:17659
  25932. msgid "See below for details about @code{rsync-configuration}."
  25933. msgstr ""
  25934. #. type: deftp
  25935. #: guix-git/doc/guix.texi:17661
  25936. #, no-wrap
  25937. msgid "{Data Type} rsync-configuration"
  25938. msgstr ""
  25939. #. type: deftp
  25940. #: guix-git/doc/guix.texi:17663
  25941. msgid "Data type representing the configuration for @code{rsync-service}."
  25942. msgstr ""
  25943. #. type: item
  25944. #: guix-git/doc/guix.texi:17665
  25945. #, no-wrap
  25946. msgid "@code{package} (default: @var{rsync})"
  25947. msgstr ""
  25948. #. type: table
  25949. #: guix-git/doc/guix.texi:17667
  25950. msgid "@code{rsync} package to use."
  25951. msgstr ""
  25952. #. type: item
  25953. #: guix-git/doc/guix.texi:17668 guix-git/doc/guix.texi:30929
  25954. #, fuzzy, no-wrap
  25955. msgid "@code{address} (default: @code{#f})"
  25956. msgstr "@code{challenge}(默认值:@code{#f})"
  25957. #. type: table
  25958. #: guix-git/doc/guix.texi:17671
  25959. msgid "IP address on which @command{rsync} listens for incoming connections. If unspecified, it defaults to listening on all available addresses."
  25960. msgstr ""
  25961. #. type: item
  25962. #: guix-git/doc/guix.texi:17672
  25963. #, no-wrap
  25964. msgid "@code{port-number} (default: @code{873})"
  25965. msgstr ""
  25966. #. type: table
  25967. #: guix-git/doc/guix.texi:17676
  25968. 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."
  25969. msgstr ""
  25970. #. type: item
  25971. #: guix-git/doc/guix.texi:17677
  25972. #, no-wrap
  25973. msgid "@code{pid-file} (default: @code{\"/var/run/rsyncd/rsyncd.pid\"})"
  25974. msgstr ""
  25975. #. type: table
  25976. #: guix-git/doc/guix.texi:17679
  25977. msgid "Name of the file where @command{rsync} writes its PID."
  25978. msgstr ""
  25979. #. type: item
  25980. #: guix-git/doc/guix.texi:17680
  25981. #, no-wrap
  25982. msgid "@code{lock-file} (default: @code{\"/var/run/rsyncd/rsyncd.lock\"})"
  25983. msgstr ""
  25984. #. type: table
  25985. #: guix-git/doc/guix.texi:17682
  25986. msgid "Name of the file where @command{rsync} writes its lock file."
  25987. msgstr ""
  25988. #. type: item
  25989. #: guix-git/doc/guix.texi:17683
  25990. #, no-wrap
  25991. msgid "@code{log-file} (default: @code{\"/var/log/rsyncd.log\"})"
  25992. msgstr ""
  25993. #. type: table
  25994. #: guix-git/doc/guix.texi:17685
  25995. msgid "Name of the file where @command{rsync} writes its log file."
  25996. msgstr ""
  25997. #. type: item
  25998. #: guix-git/doc/guix.texi:17686
  25999. #, no-wrap
  26000. msgid "@code{use-chroot?} (default: @var{#t})"
  26001. msgstr ""
  26002. #. type: table
  26003. #: guix-git/doc/guix.texi:17688
  26004. msgid "Whether to use chroot for @command{rsync} shared directory."
  26005. msgstr ""
  26006. #. type: item
  26007. #: guix-git/doc/guix.texi:17689
  26008. #, no-wrap
  26009. msgid "@code{share-path} (default: @file{/srv/rsync})"
  26010. msgstr ""
  26011. #. type: table
  26012. #: guix-git/doc/guix.texi:17691
  26013. msgid "Location of the @command{rsync} shared directory."
  26014. msgstr ""
  26015. #. type: item
  26016. #: guix-git/doc/guix.texi:17692
  26017. #, no-wrap
  26018. msgid "@code{share-comment} (default: @code{\"Rsync share\"})"
  26019. msgstr ""
  26020. #. type: table
  26021. #: guix-git/doc/guix.texi:17694
  26022. msgid "Comment of the @command{rsync} shared directory."
  26023. msgstr ""
  26024. #. type: item
  26025. #: guix-git/doc/guix.texi:17695
  26026. #, no-wrap
  26027. msgid "@code{read-only?} (default: @var{#f})"
  26028. msgstr ""
  26029. #. type: table
  26030. #: guix-git/doc/guix.texi:17697
  26031. msgid "Read-write permissions to shared directory."
  26032. msgstr ""
  26033. #. type: item
  26034. #: guix-git/doc/guix.texi:17698
  26035. #, no-wrap
  26036. msgid "@code{timeout} (default: @code{300})"
  26037. msgstr ""
  26038. #. type: table
  26039. #: guix-git/doc/guix.texi:17700
  26040. msgid "I/O timeout in seconds."
  26041. msgstr ""
  26042. #. type: item
  26043. #: guix-git/doc/guix.texi:17701
  26044. #, no-wrap
  26045. msgid "@code{user} (default: @var{\"root\"})"
  26046. msgstr ""
  26047. #. type: table
  26048. #: guix-git/doc/guix.texi:17703
  26049. msgid "Owner of the @code{rsync} process."
  26050. msgstr ""
  26051. #. type: item
  26052. #: guix-git/doc/guix.texi:17704
  26053. #, no-wrap
  26054. msgid "@code{group} (default: @var{\"root\"})"
  26055. msgstr ""
  26056. #. type: table
  26057. #: guix-git/doc/guix.texi:17706
  26058. msgid "Group of the @code{rsync} process."
  26059. msgstr ""
  26060. #. type: item
  26061. #: guix-git/doc/guix.texi:17707
  26062. #, no-wrap
  26063. msgid "@code{uid} (default: @var{\"rsyncd\"})"
  26064. msgstr ""
  26065. #. type: table
  26066. #: guix-git/doc/guix.texi:17710
  26067. 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}."
  26068. msgstr ""
  26069. #. type: item
  26070. #: guix-git/doc/guix.texi:17711
  26071. #, no-wrap
  26072. msgid "@code{gid} (default: @var{\"rsyncd\"})"
  26073. msgstr ""
  26074. #. type: table
  26075. #: guix-git/doc/guix.texi:17713 guix-git/doc/guix.texi:18156
  26076. msgid "Group name or group ID that will be used when accessing the module."
  26077. msgstr ""
  26078. #. type: Plain text
  26079. #: guix-git/doc/guix.texi:17718
  26080. msgid "The @code{(gnu services syncthing)} module provides the following services:"
  26081. msgstr ""
  26082. #. type: cindex
  26083. #: guix-git/doc/guix.texi:17718
  26084. #, no-wrap
  26085. msgid "syncthing"
  26086. msgstr ""
  26087. #. type: Plain text
  26088. #: guix-git/doc/guix.texi:17723
  26089. 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."
  26090. msgstr ""
  26091. #. type: deffn
  26092. #: guix-git/doc/guix.texi:17724
  26093. #, no-wrap
  26094. msgid "{Scheme Variable} syncthing-service-type"
  26095. msgstr ""
  26096. #. type: deffn
  26097. #: guix-git/doc/guix.texi:17728
  26098. 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:"
  26099. msgstr ""
  26100. #. type: lisp
  26101. #: guix-git/doc/guix.texi:17732
  26102. #, no-wrap
  26103. msgid ""
  26104. "(service syncthing-service-type\n"
  26105. " (syncthing-configuration (user \"alice\")))\n"
  26106. msgstr ""
  26107. #. type: deffn
  26108. #: guix-git/doc/guix.texi:17735
  26109. msgid "See below for details about @code{syncthing-configuration}."
  26110. msgstr ""
  26111. #. type: deftp
  26112. #: guix-git/doc/guix.texi:17736
  26113. #, fuzzy, no-wrap
  26114. msgid "{Data Type} syncthing-configuration"
  26115. msgstr "{数据类型} build-machine"
  26116. #. type: deftp
  26117. #: guix-git/doc/guix.texi:17738
  26118. #, fuzzy
  26119. msgid "Data type representing the configuration for @code{syncthing-service-type}."
  26120. msgstr "管理操作系统配置。"
  26121. #. type: item
  26122. #: guix-git/doc/guix.texi:17740
  26123. #, fuzzy, no-wrap
  26124. msgid "@code{syncthing} (default: @var{syncthing})"
  26125. msgstr "@code{xfce}(默认值:@code{xfce})"
  26126. #. type: table
  26127. #: guix-git/doc/guix.texi:17742
  26128. #, fuzzy
  26129. msgid "@code{syncthing} package to use."
  26130. msgstr "软件包数据类型。"
  26131. #. type: item
  26132. #: guix-git/doc/guix.texi:17743
  26133. #, fuzzy, no-wrap
  26134. msgid "@code{arguments} (default: @var{'()})"
  26135. msgstr "@code{features} (@code{'()})"
  26136. #. type: table
  26137. #: guix-git/doc/guix.texi:17745
  26138. msgid "List of command-line arguments passing to @code{syncthing} binary."
  26139. msgstr ""
  26140. #. type: item
  26141. #: guix-git/doc/guix.texi:17746
  26142. #, fuzzy, no-wrap
  26143. msgid "@code{logflags} (default: @var{0})"
  26144. msgstr "@code{challenge}(默认值:@code{#f})"
  26145. #. type: table
  26146. #: guix-git/doc/guix.texi:17749
  26147. msgid "Sum of logging flags, see @uref{https://docs.syncthing.net/users/syncthing.html#cmdoption-logflags, Syncthing documentation logflags}."
  26148. msgstr ""
  26149. #. type: item
  26150. #: guix-git/doc/guix.texi:17750
  26151. #, fuzzy, no-wrap
  26152. msgid "@code{user} (default: @var{#f})"
  26153. msgstr "@code{challenge}(默认值:@code{#f})"
  26154. #. type: table
  26155. #: guix-git/doc/guix.texi:17753
  26156. msgid "The user as which the Syncthing service is to be run. This assumes that the specified user exists."
  26157. msgstr ""
  26158. #. type: item
  26159. #: guix-git/doc/guix.texi:17754
  26160. #, fuzzy, no-wrap
  26161. msgid "@code{group} (default: @var{\"users\"})"
  26162. msgstr "@code{gnome}(默认值:@code{gnome})"
  26163. #. type: table
  26164. #: guix-git/doc/guix.texi:17757
  26165. msgid "The group as which the Syncthing service is to be run. This assumes that the specified group exists."
  26166. msgstr ""
  26167. #. type: item
  26168. #: guix-git/doc/guix.texi:17758
  26169. #, fuzzy, no-wrap
  26170. msgid "@code{home} (default: @var{#f})"
  26171. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  26172. #. type: table
  26173. #: guix-git/doc/guix.texi:17761
  26174. msgid "Common configuration and data directory. The default configuration directory is @file{$HOME} of the specified Syncthing @code{user}."
  26175. msgstr ""
  26176. #. type: Plain text
  26177. #: guix-git/doc/guix.texi:17767
  26178. msgid "Furthermore, @code{(gnu services ssh)} provides the following services."
  26179. msgstr ""
  26180. #. type: cindex
  26181. #: guix-git/doc/guix.texi:17767 guix-git/doc/guix.texi:17806
  26182. #: guix-git/doc/guix.texi:35163
  26183. #, no-wrap
  26184. msgid "SSH"
  26185. msgstr ""
  26186. #. type: cindex
  26187. #: guix-git/doc/guix.texi:17768 guix-git/doc/guix.texi:17807
  26188. #: guix-git/doc/guix.texi:35164
  26189. #, no-wrap
  26190. msgid "SSH server"
  26191. msgstr ""
  26192. #. type: deffn
  26193. #: guix-git/doc/guix.texi:17770
  26194. #, no-wrap
  26195. msgid "{Scheme Procedure} lsh-service [#:host-key \"/etc/lsh/host-key\"] @"
  26196. msgstr ""
  26197. #. type: deffn
  26198. #: guix-git/doc/guix.texi:17779
  26199. 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."
  26200. msgstr ""
  26201. #. type: deffn
  26202. #: guix-git/doc/guix.texi:17785
  26203. 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}."
  26204. msgstr ""
  26205. #. type: deffn
  26206. #: guix-git/doc/guix.texi:17789
  26207. 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."
  26208. msgstr ""
  26209. #. type: deffn
  26210. #: guix-git/doc/guix.texi:17794
  26211. 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})."
  26212. msgstr ""
  26213. #. type: deffn
  26214. #: guix-git/doc/guix.texi:17798
  26215. 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."
  26216. msgstr ""
  26217. #. type: deffn
  26218. #: guix-git/doc/guix.texi:17802
  26219. 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."
  26220. msgstr ""
  26221. #. type: deffn
  26222. #: guix-git/doc/guix.texi:17804
  26223. msgid "The other options should be self-descriptive."
  26224. msgstr ""
  26225. #. type: deffn
  26226. #: guix-git/doc/guix.texi:17808
  26227. #, no-wrap
  26228. msgid "{Scheme Variable} openssh-service-type"
  26229. msgstr ""
  26230. #. type: deffn
  26231. #: guix-git/doc/guix.texi:17812
  26232. 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:"
  26233. msgstr ""
  26234. #. type: lisp
  26235. #: guix-git/doc/guix.texi:17821
  26236. #, no-wrap
  26237. msgid ""
  26238. "(service openssh-service-type\n"
  26239. " (openssh-configuration\n"
  26240. " (x11-forwarding? #t)\n"
  26241. " (permit-root-login 'prohibit-password)\n"
  26242. " (authorized-keys\n"
  26243. " `((\"alice\" ,(local-file \"alice.pub\"))\n"
  26244. " (\"bob\" ,(local-file \"bob.pub\"))))))\n"
  26245. msgstr ""
  26246. #. type: deffn
  26247. #: guix-git/doc/guix.texi:17824
  26248. msgid "See below for details about @code{openssh-configuration}."
  26249. msgstr ""
  26250. #. type: deffn
  26251. #: guix-git/doc/guix.texi:17827
  26252. msgid "This service can be extended with extra authorized keys, as in this example:"
  26253. msgstr ""
  26254. #. type: lisp
  26255. #: guix-git/doc/guix.texi:17832
  26256. #, no-wrap
  26257. msgid ""
  26258. "(service-extension openssh-service-type\n"
  26259. " (const `((\"charlie\"\n"
  26260. " ,(local-file \"charlie.pub\")))))\n"
  26261. msgstr ""
  26262. #. type: deftp
  26263. #: guix-git/doc/guix.texi:17835
  26264. #, no-wrap
  26265. msgid "{Data Type} openssh-configuration"
  26266. msgstr ""
  26267. #. type: deftp
  26268. #: guix-git/doc/guix.texi:17837
  26269. msgid "This is the configuration record for OpenSSH's @command{sshd}."
  26270. msgstr ""
  26271. #. type: item
  26272. #: guix-git/doc/guix.texi:17839
  26273. #, fuzzy, no-wrap
  26274. msgid "@code{openssh} (default @var{openssh})"
  26275. msgstr "@code{gnome}(默认值:@code{gnome})"
  26276. #. type: table
  26277. #: guix-git/doc/guix.texi:17841
  26278. #, fuzzy
  26279. msgid "The Openssh package to use."
  26280. msgstr "软件包数据类型。"
  26281. #. type: item
  26282. #: guix-git/doc/guix.texi:17842
  26283. #, no-wrap
  26284. msgid "@code{pid-file} (default: @code{\"/var/run/sshd.pid\"})"
  26285. msgstr ""
  26286. #. type: table
  26287. #: guix-git/doc/guix.texi:17844
  26288. msgid "Name of the file where @command{sshd} writes its PID."
  26289. msgstr ""
  26290. #. type: item
  26291. #: guix-git/doc/guix.texi:17845
  26292. #, no-wrap
  26293. msgid "@code{port-number} (default: @code{22})"
  26294. msgstr ""
  26295. #. type: table
  26296. #: guix-git/doc/guix.texi:17847
  26297. msgid "TCP port on which @command{sshd} listens for incoming connections."
  26298. msgstr ""
  26299. #. type: item
  26300. #: guix-git/doc/guix.texi:17848
  26301. #, no-wrap
  26302. msgid "@code{permit-root-login} (default: @code{#f})"
  26303. msgstr ""
  26304. #. type: table
  26305. #: guix-git/doc/guix.texi:17853
  26306. 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."
  26307. msgstr ""
  26308. #. type: item
  26309. #: guix-git/doc/guix.texi:17854 guix-git/doc/guix.texi:18015
  26310. #, no-wrap
  26311. msgid "@code{allow-empty-passwords?} (default: @code{#f})"
  26312. msgstr ""
  26313. #. type: table
  26314. #: guix-git/doc/guix.texi:17857
  26315. msgid "When true, users with empty passwords may log in. When false, they may not."
  26316. msgstr ""
  26317. #. type: item
  26318. #: guix-git/doc/guix.texi:17858 guix-git/doc/guix.texi:18018
  26319. #, no-wrap
  26320. msgid "@code{password-authentication?} (default: @code{#t})"
  26321. msgstr ""
  26322. #. type: table
  26323. #: guix-git/doc/guix.texi:17861
  26324. msgid "When true, users may log in with their password. When false, they have other authentication methods."
  26325. msgstr ""
  26326. #. type: item
  26327. #: guix-git/doc/guix.texi:17862
  26328. #, no-wrap
  26329. msgid "@code{public-key-authentication?} (default: @code{#t})"
  26330. msgstr ""
  26331. #. type: table
  26332. #: guix-git/doc/guix.texi:17865
  26333. msgid "When true, users may log in using public key authentication. When false, users have to use other authentication method."
  26334. msgstr ""
  26335. #. type: table
  26336. #: guix-git/doc/guix.texi:17868
  26337. msgid "Authorized public keys are stored in @file{~/.ssh/authorized_keys}. This is used only by protocol version 2."
  26338. msgstr ""
  26339. #. type: item
  26340. #: guix-git/doc/guix.texi:17869
  26341. #, no-wrap
  26342. msgid "@code{x11-forwarding?} (default: @code{#f})"
  26343. msgstr ""
  26344. #. type: table
  26345. #: guix-git/doc/guix.texi:17873
  26346. msgid "When true, forwarding of X11 graphical client connections is enabled---in other words, @command{ssh} options @option{-X} and @option{-Y} will work."
  26347. msgstr ""
  26348. #. type: item
  26349. #: guix-git/doc/guix.texi:17874
  26350. #, no-wrap
  26351. msgid "@code{allow-agent-forwarding?} (default: @code{#t})"
  26352. msgstr ""
  26353. #. type: table
  26354. #: guix-git/doc/guix.texi:17876
  26355. msgid "Whether to allow agent forwarding."
  26356. msgstr ""
  26357. #. type: item
  26358. #: guix-git/doc/guix.texi:17877
  26359. #, no-wrap
  26360. msgid "@code{allow-tcp-forwarding?} (default: @code{#t})"
  26361. msgstr ""
  26362. #. type: table
  26363. #: guix-git/doc/guix.texi:17879
  26364. msgid "Whether to allow TCP forwarding."
  26365. msgstr ""
  26366. #. type: item
  26367. #: guix-git/doc/guix.texi:17880
  26368. #, no-wrap
  26369. msgid "@code{gateway-ports?} (default: @code{#f})"
  26370. msgstr ""
  26371. #. type: table
  26372. #: guix-git/doc/guix.texi:17882
  26373. msgid "Whether to allow gateway ports."
  26374. msgstr ""
  26375. #. type: item
  26376. #: guix-git/doc/guix.texi:17883
  26377. #, no-wrap
  26378. msgid "@code{challenge-response-authentication?} (default: @code{#f})"
  26379. msgstr ""
  26380. #. type: table
  26381. #: guix-git/doc/guix.texi:17886
  26382. msgid "Specifies whether challenge response authentication is allowed (e.g.@: via PAM)."
  26383. msgstr ""
  26384. #. type: item
  26385. #: guix-git/doc/guix.texi:17887
  26386. #, no-wrap
  26387. msgid "@code{use-pam?} (default: @code{#t})"
  26388. msgstr ""
  26389. #. type: table
  26390. #: guix-git/doc/guix.texi:17893
  26391. 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."
  26392. msgstr ""
  26393. #. type: table
  26394. #: guix-git/doc/guix.texi:17898
  26395. 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?}."
  26396. msgstr ""
  26397. #. type: item
  26398. #: guix-git/doc/guix.texi:17899
  26399. #, no-wrap
  26400. msgid "@code{print-last-log?} (default: @code{#t})"
  26401. msgstr ""
  26402. #. type: table
  26403. #: guix-git/doc/guix.texi:17902
  26404. msgid "Specifies whether @command{sshd} should print the date and time of the last user login when a user logs in interactively."
  26405. msgstr ""
  26406. #. type: item
  26407. #: guix-git/doc/guix.texi:17903
  26408. #, no-wrap
  26409. msgid "@code{subsystems} (default: @code{'((\"sftp\" \"internal-sftp\"))})"
  26410. msgstr ""
  26411. #. type: table
  26412. #: guix-git/doc/guix.texi:17905
  26413. msgid "Configures external subsystems (e.g.@: file transfer daemon)."
  26414. msgstr ""
  26415. #. type: table
  26416. #: guix-git/doc/guix.texi:17909
  26417. 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."
  26418. msgstr ""
  26419. #. type: table
  26420. #: guix-git/doc/guix.texi:17912
  26421. msgid "The command @command{internal-sftp} implements an in-process SFTP server. Alternatively, one can specify the @command{sftp-server} command:"
  26422. msgstr ""
  26423. #. type: lisp
  26424. #: guix-git/doc/guix.texi:17917
  26425. #, no-wrap
  26426. msgid ""
  26427. "(service openssh-service-type\n"
  26428. " (openssh-configuration\n"
  26429. " (subsystems\n"
  26430. " `((\"sftp\" ,(file-append openssh \"/libexec/sftp-server\"))))))\n"
  26431. msgstr ""
  26432. #. type: item
  26433. #: guix-git/doc/guix.texi:17919
  26434. #, no-wrap
  26435. msgid "@code{accepted-environment} (default: @code{'()})"
  26436. msgstr ""
  26437. #. type: table
  26438. #: guix-git/doc/guix.texi:17921
  26439. msgid "List of strings describing which environment variables may be exported."
  26440. msgstr ""
  26441. #. type: table
  26442. #: guix-git/doc/guix.texi:17924
  26443. msgid "Each string gets on its own line. See the @code{AcceptEnv} option in @code{man sshd_config}."
  26444. msgstr ""
  26445. #. type: table
  26446. #: guix-git/doc/guix.texi:17929
  26447. 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."
  26448. msgstr ""
  26449. #. type: lisp
  26450. #: guix-git/doc/guix.texi:17934
  26451. #, no-wrap
  26452. msgid ""
  26453. "(service openssh-service-type\n"
  26454. " (openssh-configuration\n"
  26455. " (accepted-environment '(\"COLORTERM\"))))\n"
  26456. msgstr ""
  26457. #. type: item
  26458. #: guix-git/doc/guix.texi:17936
  26459. #, no-wrap
  26460. msgid "@code{authorized-keys} (default: @code{'()})"
  26461. msgstr ""
  26462. #. type: cindex
  26463. #: guix-git/doc/guix.texi:17937
  26464. #, no-wrap
  26465. msgid "authorized keys, SSH"
  26466. msgstr ""
  26467. #. type: cindex
  26468. #: guix-git/doc/guix.texi:17938
  26469. #, no-wrap
  26470. msgid "SSH authorized keys"
  26471. msgstr ""
  26472. #. type: table
  26473. #: guix-git/doc/guix.texi:17942
  26474. 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:"
  26475. msgstr ""
  26476. #. type: lisp
  26477. #: guix-git/doc/guix.texi:17949
  26478. #, no-wrap
  26479. msgid ""
  26480. "(openssh-configuration\n"
  26481. " (authorized-keys\n"
  26482. " `((\"rekado\" ,(local-file \"rekado.pub\"))\n"
  26483. " (\"chris\" ,(local-file \"chris.pub\"))\n"
  26484. " (\"root\" ,(local-file \"rekado.pub\") ,(local-file \"chris.pub\")))))\n"
  26485. msgstr ""
  26486. #. type: table
  26487. #: guix-git/doc/guix.texi:17954
  26488. msgid "registers the specified public keys for user accounts @code{rekado}, @code{chris}, and @code{root}."
  26489. msgstr ""
  26490. #. type: table
  26491. #: guix-git/doc/guix.texi:17957
  26492. msgid "Additional authorized keys can be specified @i{via} @code{service-extension}."
  26493. msgstr ""
  26494. #. type: table
  26495. #: guix-git/doc/guix.texi:17960
  26496. msgid "Note that this does @emph{not} interfere with the use of @file{~/.ssh/authorized_keys}."
  26497. msgstr ""
  26498. #. type: item
  26499. #: guix-git/doc/guix.texi:17961 guix-git/doc/guix.texi:18392
  26500. #, no-wrap
  26501. msgid "@code{log-level} (default: @code{'info})"
  26502. msgstr ""
  26503. #. type: table
  26504. #: guix-git/doc/guix.texi:17965
  26505. 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."
  26506. msgstr ""
  26507. #. type: item
  26508. #: guix-git/doc/guix.texi:17966 guix-git/doc/guix.texi:20787
  26509. #: guix-git/doc/guix.texi:25928
  26510. #, no-wrap
  26511. msgid "@code{extra-content} (default: @code{\"\"})"
  26512. msgstr ""
  26513. #. type: table
  26514. #: guix-git/doc/guix.texi:17971
  26515. 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:"
  26516. msgstr ""
  26517. #. type: lisp
  26518. #: guix-git/doc/guix.texi:17977
  26519. #, no-wrap
  26520. msgid ""
  26521. "(openssh-configuration\n"
  26522. " (extra-content \"\\\n"
  26523. "Match Address 192.168.0.1\n"
  26524. " PermitRootLogin yes\"))\n"
  26525. msgstr ""
  26526. #. type: deffn
  26527. #: guix-git/doc/guix.texi:17982
  26528. #, no-wrap
  26529. msgid "{Scheme Procedure} dropbear-service [@var{config}]"
  26530. msgstr ""
  26531. #. type: deffn
  26532. #: guix-git/doc/guix.texi:17986
  26533. 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."
  26534. msgstr ""
  26535. #. type: deffn
  26536. #: guix-git/doc/guix.texi:17989
  26537. msgid "For example, to specify a Dropbear service listening on port 1234, add this call to the operating system's @code{services} field:"
  26538. msgstr ""
  26539. #. type: lisp
  26540. #: guix-git/doc/guix.texi:17993
  26541. #, no-wrap
  26542. msgid ""
  26543. "(dropbear-service (dropbear-configuration\n"
  26544. " (port-number 1234)))\n"
  26545. msgstr ""
  26546. #. type: deftp
  26547. #: guix-git/doc/guix.texi:17996
  26548. #, no-wrap
  26549. msgid "{Data Type} dropbear-configuration"
  26550. msgstr ""
  26551. #. type: deftp
  26552. #: guix-git/doc/guix.texi:17998
  26553. msgid "This data type represents the configuration of a Dropbear SSH daemon."
  26554. msgstr ""
  26555. #. type: item
  26556. #: guix-git/doc/guix.texi:18000
  26557. #, no-wrap
  26558. msgid "@code{dropbear} (default: @var{dropbear})"
  26559. msgstr ""
  26560. #. type: table
  26561. #: guix-git/doc/guix.texi:18002
  26562. msgid "The Dropbear package to use."
  26563. msgstr ""
  26564. #. type: item
  26565. #: guix-git/doc/guix.texi:18003
  26566. #, no-wrap
  26567. msgid "@code{port-number} (default: 22)"
  26568. msgstr ""
  26569. #. type: table
  26570. #: guix-git/doc/guix.texi:18005
  26571. msgid "The TCP port where the daemon waits for incoming connections."
  26572. msgstr ""
  26573. #. type: item
  26574. #: guix-git/doc/guix.texi:18006
  26575. #, no-wrap
  26576. msgid "@code{syslog-output?} (default: @code{#t})"
  26577. msgstr ""
  26578. #. type: table
  26579. #: guix-git/doc/guix.texi:18008
  26580. msgid "Whether to enable syslog output."
  26581. msgstr ""
  26582. #. type: item
  26583. #: guix-git/doc/guix.texi:18009
  26584. #, no-wrap
  26585. msgid "@code{pid-file} (default: @code{\"/var/run/dropbear.pid\"})"
  26586. msgstr ""
  26587. #. type: table
  26588. #: guix-git/doc/guix.texi:18011
  26589. msgid "File name of the daemon's PID file."
  26590. msgstr ""
  26591. #. type: item
  26592. #: guix-git/doc/guix.texi:18012
  26593. #, no-wrap
  26594. msgid "@code{root-login?} (default: @code{#f})"
  26595. msgstr ""
  26596. #. type: table
  26597. #: guix-git/doc/guix.texi:18014
  26598. msgid "Whether to allow @code{root} logins."
  26599. msgstr ""
  26600. #. type: table
  26601. #: guix-git/doc/guix.texi:18017
  26602. msgid "Whether to allow empty passwords."
  26603. msgstr ""
  26604. #. type: table
  26605. #: guix-git/doc/guix.texi:18020
  26606. msgid "Whether to enable password-based authentication."
  26607. msgstr ""
  26608. #. type: cindex
  26609. #: guix-git/doc/guix.texi:18023
  26610. #, no-wrap
  26611. msgid "AutoSSH"
  26612. msgstr ""
  26613. #. type: deffn
  26614. #: guix-git/doc/guix.texi:18024
  26615. #, no-wrap
  26616. msgid "{Scheme Variable} autossh-service-type"
  26617. msgstr ""
  26618. #. type: deffn
  26619. #: guix-git/doc/guix.texi:18032
  26620. 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."
  26621. msgstr ""
  26622. #. type: deffn
  26623. #: guix-git/doc/guix.texi:18036
  26624. 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."
  26625. msgstr ""
  26626. #. type: deffn
  26627. #: guix-git/doc/guix.texi:18041
  26628. 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:"
  26629. msgstr ""
  26630. #. type: lisp
  26631. #: guix-git/doc/guix.texi:18047
  26632. #, no-wrap
  26633. msgid ""
  26634. "(service autossh-service-type\n"
  26635. " (autossh-configuration\n"
  26636. " (user \"pino\")\n"
  26637. " (ssh-options (list \"-T\" \"-N\" \"-L\" \"8081:localhost:8081\" \"remote.net\"))))\n"
  26638. msgstr ""
  26639. #. type: deftp
  26640. #: guix-git/doc/guix.texi:18050
  26641. #, no-wrap
  26642. msgid "{Data Type} autossh-configuration"
  26643. msgstr ""
  26644. #. type: deftp
  26645. #: guix-git/doc/guix.texi:18052
  26646. msgid "This data type represents the configuration of an AutoSSH service."
  26647. msgstr ""
  26648. #. type: item
  26649. #: guix-git/doc/guix.texi:18055
  26650. #, fuzzy, no-wrap
  26651. msgid "@code{user} (default @code{\"autossh\"})"
  26652. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  26653. #. type: table
  26654. #: guix-git/doc/guix.texi:18058
  26655. msgid "The user as which the AutoSSH service is to be run. This assumes that the specified user exists."
  26656. msgstr ""
  26657. #. type: item
  26658. #: guix-git/doc/guix.texi:18059
  26659. #, fuzzy, no-wrap
  26660. msgid "@code{poll} (default @code{600})"
  26661. msgstr "@code{port}(默认值:@code{22})"
  26662. #. type: table
  26663. #: guix-git/doc/guix.texi:18061
  26664. msgid "Specifies the connection poll time in seconds."
  26665. msgstr ""
  26666. #. type: item
  26667. #: guix-git/doc/guix.texi:18062
  26668. #, fuzzy, no-wrap
  26669. msgid "@code{first-poll} (default @code{#f})"
  26670. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  26671. #. type: table
  26672. #: guix-git/doc/guix.texi:18068
  26673. 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}."
  26674. msgstr ""
  26675. #. type: item
  26676. #: guix-git/doc/guix.texi:18069
  26677. #, fuzzy, no-wrap
  26678. msgid "@code{gate-time} (default @code{30})"
  26679. msgstr "@code{mate}(默认值:@code{mate})"
  26680. #. type: table
  26681. #: guix-git/doc/guix.texi:18072
  26682. msgid "Specifies how many seconds an SSH connection must be active before it is considered successful."
  26683. msgstr ""
  26684. #. type: item
  26685. #: guix-git/doc/guix.texi:18073
  26686. #, fuzzy, no-wrap
  26687. msgid "@code{log-level} (default @code{1})"
  26688. msgstr "@code{speed}(默认值:@code{1.0})"
  26689. #. type: table
  26690. #: guix-git/doc/guix.texi:18076
  26691. msgid "The log level, corresponding to the levels used by syslog---so @code{0} is the most silent while @code{7} is the chattiest."
  26692. msgstr ""
  26693. #. type: item
  26694. #: guix-git/doc/guix.texi:18077
  26695. #, fuzzy, no-wrap
  26696. msgid "@code{max-start} (default @code{#f})"
  26697. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  26698. #. type: table
  26699. #: guix-git/doc/guix.texi:18080
  26700. 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."
  26701. msgstr ""
  26702. #. type: item
  26703. #: guix-git/doc/guix.texi:18081
  26704. #, fuzzy, no-wrap
  26705. msgid "@code{message} (default @code{\"\"})"
  26706. msgstr "@code{display}(默认值:@code{\":0\"})"
  26707. #. type: table
  26708. #: guix-git/doc/guix.texi:18083
  26709. msgid "The message to append to the echo message sent when testing connections."
  26710. msgstr ""
  26711. #. type: item
  26712. #: guix-git/doc/guix.texi:18084
  26713. #, fuzzy, no-wrap
  26714. msgid "@code{port} (default @code{\"0\"})"
  26715. msgstr "@code{port}(默认值:@code{22})"
  26716. #. type: table
  26717. #: guix-git/doc/guix.texi:18094
  26718. 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."
  26719. msgstr ""
  26720. #. type: item
  26721. #: guix-git/doc/guix.texi:18095
  26722. #, fuzzy, no-wrap
  26723. msgid "@code{ssh-options} (default @code{'()})"
  26724. msgstr "@code{includes}(默认值:@code{'()})"
  26725. #. type: table
  26726. #: guix-git/doc/guix.texi:18099
  26727. 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."
  26728. msgstr ""
  26729. #. type: cindex
  26730. #: guix-git/doc/guix.texi:18103
  26731. #, no-wrap
  26732. msgid "WebSSH"
  26733. msgstr ""
  26734. #. type: deffn
  26735. #: guix-git/doc/guix.texi:18104
  26736. #, no-wrap
  26737. msgid "{Scheme Variable} webssh-service-type"
  26738. msgstr ""
  26739. #. type: deffn
  26740. #: guix-git/doc/guix.texi:18110
  26741. 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."
  26742. msgstr ""
  26743. #. type: deffn
  26744. #: guix-git/doc/guix.texi:18116
  26745. 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:"
  26746. msgstr ""
  26747. #. type: lisp
  26748. #: guix-git/doc/guix.texi:18124
  26749. #, no-wrap
  26750. msgid ""
  26751. "(service webssh-service-type\n"
  26752. " (webssh-configuration (address \"127.0.0.1\")\n"
  26753. " (port 8888)\n"
  26754. " (policy 'reject)\n"
  26755. " (known-hosts '(\"localhost ecdsa-sha2-nistp256 AAAA…\"\n"
  26756. " \"127.0.0.1 ecdsa-sha2-nistp256 AAAA…\"))))\n"
  26757. "\n"
  26758. msgstr ""
  26759. #. type: lisp
  26760. #: guix-git/doc/guix.texi:18140
  26761. #, no-wrap
  26762. msgid ""
  26763. "(service nginx-service-type\n"
  26764. " (nginx-configuration\n"
  26765. " (server-blocks\n"
  26766. " (list\n"
  26767. " (nginx-server-configuration\n"
  26768. " (inherit %webssh-configuration-nginx)\n"
  26769. " (server-name '(\"webssh.example.com\"))\n"
  26770. " (listen '(\"443 ssl\"))\n"
  26771. " (ssl-certificate (letsencrypt-certificate \"webssh.example.com\"))\n"
  26772. " (ssl-certificate-key (letsencrypt-key \"webssh.example.com\"))\n"
  26773. " (locations\n"
  26774. " (cons (nginx-location-configuration\n"
  26775. " (uri \"/.well-known\")\n"
  26776. " (body '(\"root /var/www;\")))\n"
  26777. " (nginx-server-configuration-locations %webssh-configuration-nginx))))))))\n"
  26778. msgstr ""
  26779. #. type: deftp
  26780. #: guix-git/doc/guix.texi:18143
  26781. #, no-wrap
  26782. msgid "{Data Type} webssh-configuration"
  26783. msgstr ""
  26784. #. type: deftp
  26785. #: guix-git/doc/guix.texi:18145
  26786. msgid "Data type representing the configuration for @code{webssh-service}."
  26787. msgstr ""
  26788. #. type: item
  26789. #: guix-git/doc/guix.texi:18147
  26790. #, fuzzy, no-wrap
  26791. msgid "@code{package} (default: @var{webssh})"
  26792. msgstr "@code{xfce}(默认值:@code{xfce})"
  26793. #. type: table
  26794. #: guix-git/doc/guix.texi:18149
  26795. msgid "@code{webssh} package to use."
  26796. msgstr ""
  26797. #. type: item
  26798. #: guix-git/doc/guix.texi:18150
  26799. #, fuzzy, no-wrap
  26800. msgid "@code{user-name} (default: @var{\"webssh\"})"
  26801. msgstr "@code{gnome}(默认值:@code{gnome})"
  26802. #. type: table
  26803. #: guix-git/doc/guix.texi:18153
  26804. msgid "User name or user ID that file transfers to and from that module should take place."
  26805. msgstr ""
  26806. #. type: item
  26807. #: guix-git/doc/guix.texi:18154
  26808. #, fuzzy, no-wrap
  26809. msgid "@code{group-name} (default: @var{\"webssh\"})"
  26810. msgstr "@code{gnome}(默认值:@code{gnome})"
  26811. #. type: item
  26812. #: guix-git/doc/guix.texi:18157
  26813. #, fuzzy, no-wrap
  26814. msgid "@code{address} (default: @var{#f})"
  26815. msgstr "@code{challenge}(默认值:@code{#f})"
  26816. #. type: table
  26817. #: guix-git/doc/guix.texi:18159
  26818. msgid "IP address on which @command{webssh} listens for incoming connections."
  26819. msgstr ""
  26820. #. type: item
  26821. #: guix-git/doc/guix.texi:18160
  26822. #, fuzzy, no-wrap
  26823. msgid "@code{port} (default: @var{8888})"
  26824. msgstr "@code{port}(默认值:@code{22})"
  26825. #. type: table
  26826. #: guix-git/doc/guix.texi:18162
  26827. msgid "TCP port on which @command{webssh} listens for incoming connections."
  26828. msgstr ""
  26829. #. type: item
  26830. #: guix-git/doc/guix.texi:18163
  26831. #, fuzzy, no-wrap
  26832. msgid "@code{policy} (default: @var{#f})"
  26833. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  26834. #. type: table
  26835. #: guix-git/doc/guix.texi:18165
  26836. msgid "Connection policy. @var{reject} policy requires to specify @var{known-hosts}."
  26837. msgstr ""
  26838. #. type: item
  26839. #: guix-git/doc/guix.texi:18166
  26840. #, fuzzy, no-wrap
  26841. msgid "@code{known-hosts} (default: @var{'()})"
  26842. msgstr "@code{features} (@code{'()})"
  26843. #. type: table
  26844. #: guix-git/doc/guix.texi:18168
  26845. msgid "List of hosts which allowed for SSH connection from @command{webssh}."
  26846. msgstr ""
  26847. #. type: item
  26848. #: guix-git/doc/guix.texi:18169
  26849. #, fuzzy, no-wrap
  26850. msgid "@code{log-file} (default: @file{\"/var/log/webssh.log\"})"
  26851. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  26852. #. type: table
  26853. #: guix-git/doc/guix.texi:18171
  26854. msgid "Name of the file where @command{webssh} writes its log file."
  26855. msgstr ""
  26856. #. type: item
  26857. #: guix-git/doc/guix.texi:18172
  26858. #, fuzzy, no-wrap
  26859. msgid "@code{log-level} (default: @var{#f})"
  26860. msgstr "@code{challenge}(默认值:@code{#f})"
  26861. #. type: table
  26862. #: guix-git/doc/guix.texi:18174
  26863. msgid "Logging level."
  26864. msgstr ""
  26865. #. type: defvr
  26866. #: guix-git/doc/guix.texi:18178
  26867. #, no-wrap
  26868. msgid "{Scheme Variable} %facebook-host-aliases"
  26869. msgstr ""
  26870. #. type: defvr
  26871. #: guix-git/doc/guix.texi:18184
  26872. 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}."
  26873. msgstr ""
  26874. #. type: defvr
  26875. #: guix-git/doc/guix.texi:18188
  26876. 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}}):"
  26877. msgstr ""
  26878. #. type: lisp
  26879. #: guix-git/doc/guix.texi:18201
  26880. #, no-wrap
  26881. msgid ""
  26882. "(operating-system\n"
  26883. " (host-name \"mymachine\")\n"
  26884. " ;; ...\n"
  26885. " (hosts-file\n"
  26886. " ;; Create a /etc/hosts file with aliases for \"localhost\"\n"
  26887. " ;; and \"mymachine\", as well as for Facebook servers.\n"
  26888. " (plain-file \"hosts\"\n"
  26889. " (string-append (local-host-aliases host-name)\n"
  26890. " %facebook-host-aliases))))\n"
  26891. msgstr ""
  26892. #. type: defvr
  26893. #: guix-git/doc/guix.texi:18205
  26894. msgid "This mechanism can prevent programs running locally, such as Web browsers, from accessing Facebook."
  26895. msgstr ""
  26896. #. type: Plain text
  26897. #: guix-git/doc/guix.texi:18208
  26898. msgid "The @code{(gnu services avahi)} provides the following definition."
  26899. msgstr ""
  26900. #. type: defvr
  26901. #: guix-git/doc/guix.texi:18209
  26902. #, no-wrap
  26903. msgid "{Scheme Variable} avahi-service-type"
  26904. msgstr ""
  26905. #. type: defvr
  26906. #: guix-git/doc/guix.texi:18214
  26907. 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."
  26908. msgstr ""
  26909. #. type: defvr
  26910. #: guix-git/doc/guix.texi:18219
  26911. 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."
  26912. msgstr ""
  26913. #. type: defvr
  26914. #: guix-git/doc/guix.texi:18222
  26915. msgid "Additionally, add the @var{avahi} package to the system profile so that commands such as @command{avahi-browse} are directly usable."
  26916. msgstr ""
  26917. #. type: deftp
  26918. #: guix-git/doc/guix.texi:18224
  26919. #, no-wrap
  26920. msgid "{Data Type} avahi-configuration"
  26921. msgstr ""
  26922. #. type: deftp
  26923. #: guix-git/doc/guix.texi:18226
  26924. msgid "Data type representation the configuration for Avahi."
  26925. msgstr ""
  26926. #. type: item
  26927. #: guix-git/doc/guix.texi:18229
  26928. #, no-wrap
  26929. msgid "@code{host-name} (default: @code{#f})"
  26930. msgstr ""
  26931. #. type: table
  26932. #: guix-git/doc/guix.texi:18232
  26933. 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."
  26934. msgstr ""
  26935. #. type: item
  26936. #: guix-git/doc/guix.texi:18233 guix-git/doc/guix.texi:28588
  26937. #, no-wrap
  26938. msgid "@code{publish?} (default: @code{#t})"
  26939. msgstr ""
  26940. #. type: table
  26941. #: guix-git/doc/guix.texi:18236
  26942. msgid "When true, allow host names and services to be published (broadcast) over the network."
  26943. msgstr ""
  26944. #. type: item
  26945. #: guix-git/doc/guix.texi:18237
  26946. #, no-wrap
  26947. msgid "@code{publish-workstation?} (default: @code{#t})"
  26948. msgstr ""
  26949. #. type: table
  26950. #: guix-git/doc/guix.texi:18241
  26951. 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:"
  26952. msgstr ""
  26953. #. type: example
  26954. #: guix-git/doc/guix.texi:18244
  26955. #, no-wrap
  26956. msgid "avahi-browse _workstation._tcp\n"
  26957. msgstr ""
  26958. #. type: item
  26959. #: guix-git/doc/guix.texi:18246
  26960. #, no-wrap
  26961. msgid "@code{wide-area?} (default: @code{#f})"
  26962. msgstr ""
  26963. #. type: table
  26964. #: guix-git/doc/guix.texi:18248
  26965. msgid "When true, DNS-SD over unicast DNS is enabled."
  26966. msgstr ""
  26967. #. type: item
  26968. #: guix-git/doc/guix.texi:18249
  26969. #, no-wrap
  26970. msgid "@code{ipv4?} (default: @code{#t})"
  26971. msgstr ""
  26972. #. type: itemx
  26973. #: guix-git/doc/guix.texi:18250
  26974. #, no-wrap
  26975. msgid "@code{ipv6?} (default: @code{#t})"
  26976. msgstr ""
  26977. #. type: table
  26978. #: guix-git/doc/guix.texi:18252
  26979. msgid "These fields determine whether to use IPv4/IPv6 sockets."
  26980. msgstr ""
  26981. #. type: item
  26982. #: guix-git/doc/guix.texi:18253
  26983. #, no-wrap
  26984. msgid "@code{domains-to-browse} (default: @code{'()})"
  26985. msgstr ""
  26986. #. type: table
  26987. #: guix-git/doc/guix.texi:18255
  26988. msgid "This is a list of domains to browse."
  26989. msgstr ""
  26990. #. type: deffn
  26991. #: guix-git/doc/guix.texi:18258
  26992. #, no-wrap
  26993. msgid "{Scheme Variable} openvswitch-service-type"
  26994. msgstr ""
  26995. #. type: deffn
  26996. #: guix-git/doc/guix.texi:18262
  26997. msgid "This is the type of the @uref{https://www.openvswitch.org, Open vSwitch} service, whose value should be an @code{openvswitch-configuration} object."
  26998. msgstr ""
  26999. #. type: deftp
  27000. #: guix-git/doc/guix.texi:18264
  27001. #, no-wrap
  27002. msgid "{Data Type} openvswitch-configuration"
  27003. msgstr ""
  27004. #. type: deftp
  27005. #: guix-git/doc/guix.texi:18268
  27006. msgid "Data type representing the configuration of Open vSwitch, a multilayer virtual switch which is designed to enable massive network automation through programmatic extension."
  27007. msgstr ""
  27008. #. type: item
  27009. #: guix-git/doc/guix.texi:18270
  27010. #, no-wrap
  27011. msgid "@code{package} (default: @var{openvswitch})"
  27012. msgstr ""
  27013. #. type: table
  27014. #: guix-git/doc/guix.texi:18272
  27015. msgid "Package object of the Open vSwitch."
  27016. msgstr ""
  27017. #. type: defvr
  27018. #: guix-git/doc/guix.texi:18276
  27019. #, no-wrap
  27020. msgid "{Scheme Variable} pagekite-service-type"
  27021. msgstr ""
  27022. #. type: defvr
  27023. #: guix-git/doc/guix.texi:18281
  27024. 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."
  27025. msgstr ""
  27026. #. type: defvr
  27027. #: guix-git/doc/guix.texi:18283
  27028. msgid "Here's an example exposing the local HTTP and SSH daemons:"
  27029. msgstr ""
  27030. #. type: lisp
  27031. #: guix-git/doc/guix.texi:18290
  27032. #, no-wrap
  27033. msgid ""
  27034. "(service pagekite-service-type\n"
  27035. " (pagekite-configuration\n"
  27036. " (kites '(\"http:@@kitename:localhost:80:@@kitesecret\"\n"
  27037. " \"raw/22:@@kitename:localhost:22:@@kitesecret\"))\n"
  27038. " (extra-file \"/etc/pagekite.rc\")))\n"
  27039. msgstr ""
  27040. #. type: deftp
  27041. #: guix-git/doc/guix.texi:18293
  27042. #, fuzzy, no-wrap
  27043. msgid "{Data Type} pagekite-configuration"
  27044. msgstr "管理操作系统配置。"
  27045. #. type: deftp
  27046. #: guix-git/doc/guix.texi:18295
  27047. #, fuzzy
  27048. msgid "Data type representing the configuration of PageKite."
  27049. msgstr "管理操作系统配置。"
  27050. #. type: item
  27051. #: guix-git/doc/guix.texi:18297
  27052. #, fuzzy, no-wrap
  27053. msgid "@code{package} (default: @var{pagekite})"
  27054. msgstr "@code{mate}(默认值:@code{mate})"
  27055. #. type: table
  27056. #: guix-git/doc/guix.texi:18299
  27057. msgid "Package object of PageKite."
  27058. msgstr ""
  27059. #. type: item
  27060. #: guix-git/doc/guix.texi:18300
  27061. #, fuzzy, no-wrap
  27062. msgid "@code{kitename} (default: @code{#f})"
  27063. msgstr "@code{challenge}(默认值:@code{#f})"
  27064. #. type: table
  27065. #: guix-git/doc/guix.texi:18302
  27066. msgid "PageKite name for authenticating to the frontend server."
  27067. msgstr ""
  27068. #. type: item
  27069. #: guix-git/doc/guix.texi:18303
  27070. #, fuzzy, no-wrap
  27071. msgid "@code{kitesecret} (default: @code{#f})"
  27072. msgstr "@code{speed}(默认值:@code{1.0})"
  27073. #. type: table
  27074. #: guix-git/doc/guix.texi:18306
  27075. msgid "Shared secret for authenticating to the frontend server. You should probably put this inside @code{extra-file} instead."
  27076. msgstr ""
  27077. #. type: item
  27078. #: guix-git/doc/guix.texi:18307
  27079. #, fuzzy, no-wrap
  27080. msgid "@code{frontend} (default: @code{#f})"
  27081. msgstr "@code{journal-content}(默认值:@code{#f})"
  27082. #. type: table
  27083. #: guix-git/doc/guix.texi:18310
  27084. msgid "Connect to the named PageKite frontend server instead of the @uref{https://pagekite.net,,pagekite.net} service."
  27085. msgstr ""
  27086. #. type: item
  27087. #: guix-git/doc/guix.texi:18311
  27088. #, no-wrap
  27089. msgid "@code{kites} (default: @code{'(\"http:@@kitename:localhost:80:@@kitesecret\")})"
  27090. msgstr ""
  27091. #. type: table
  27092. #: guix-git/doc/guix.texi:18314
  27093. msgid "List of service kites to use. Exposes HTTP on port 80 by default. The format is @code{proto:kitename:host:port:secret}."
  27094. msgstr ""
  27095. #. type: item
  27096. #: guix-git/doc/guix.texi:18315
  27097. #, fuzzy, no-wrap
  27098. msgid "@code{extra-file} (default: @code{#f})"
  27099. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  27100. #. type: table
  27101. #: guix-git/doc/guix.texi:18318
  27102. 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."
  27103. msgstr ""
  27104. #. type: defvr
  27105. #: guix-git/doc/guix.texi:18322
  27106. #, no-wrap
  27107. msgid "{Scheme Variable} yggdrasil-service-type"
  27108. msgstr ""
  27109. #. type: defvr
  27110. #: guix-git/doc/guix.texi:18326
  27111. 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."
  27112. msgstr ""
  27113. #. type: quotation
  27114. #: guix-git/doc/guix.texi:18333
  27115. 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}"
  27116. msgstr ""
  27117. #. type: defvr
  27118. #: guix-git/doc/guix.texi:18337
  27119. msgid "Pass it a value of @code{yggdrasil-configuration} to connect it to public peers and/or local peers."
  27120. msgstr ""
  27121. #. type: defvr
  27122. #: guix-git/doc/guix.texi:18341
  27123. 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})."
  27124. msgstr ""
  27125. #. type: lisp
  27126. #: guix-git/doc/guix.texi:18353
  27127. #, no-wrap
  27128. msgid ""
  27129. ";; part of the operating-system declaration\n"
  27130. "(service yggdrasil-service-type\n"
  27131. " (yggdrasil-configuration\n"
  27132. " (autoconf? #f) ;; use only the public peers\n"
  27133. " (json-config\n"
  27134. " ;; choose one from\n"
  27135. " ;; https://github.com/yggdrasil-network/public-peers\n"
  27136. " '((peers . #(\"tcp://1.2.3.4:1337\"))))\n"
  27137. " ;; /etc/yggdrasil-private.conf is the default value for config-file\n"
  27138. " ))\n"
  27139. msgstr ""
  27140. #. type: example
  27141. #: guix-git/doc/guix.texi:18360
  27142. #, no-wrap
  27143. msgid ""
  27144. "# sample content for /etc/yggdrasil-private.conf\n"
  27145. "@{\n"
  27146. " # Your public encryption key. Your peers may ask you for this to put\n"
  27147. " # into their AllowedEncryptionPublicKeys configuration.\n"
  27148. " EncryptionPublicKey: 378dc5...\n"
  27149. "\n"
  27150. msgstr ""
  27151. #. type: example
  27152. #: guix-git/doc/guix.texi:18363
  27153. #, no-wrap
  27154. msgid ""
  27155. " # Your private encryption key. DO NOT share this with anyone!\n"
  27156. " EncryptionPrivateKey: 0777...\n"
  27157. "\n"
  27158. msgstr ""
  27159. #. type: example
  27160. #: guix-git/doc/guix.texi:18367
  27161. #, no-wrap
  27162. msgid ""
  27163. " # Your public signing key. You should not ordinarily need to share\n"
  27164. " # this with anyone.\n"
  27165. " SigningPublicKey: e1664...\n"
  27166. "\n"
  27167. msgstr ""
  27168. #. type: example
  27169. #: guix-git/doc/guix.texi:18371
  27170. #, no-wrap
  27171. msgid ""
  27172. " # Your private signing key. DO NOT share this with anyone!\n"
  27173. " SigningPrivateKey: 0589d...\n"
  27174. "@}\n"
  27175. msgstr ""
  27176. #. type: deftp
  27177. #: guix-git/doc/guix.texi:18374
  27178. #, fuzzy, no-wrap
  27179. msgid "{Data Type} yggdrasil-configuration"
  27180. msgstr "{数据类型} build-machine"
  27181. #. type: deftp
  27182. #: guix-git/doc/guix.texi:18376
  27183. #, fuzzy
  27184. msgid "Data type representing the configuration of Yggdrasil."
  27185. msgstr "管理操作系统配置。"
  27186. #. type: item
  27187. #: guix-git/doc/guix.texi:18378
  27188. #, fuzzy, no-wrap
  27189. msgid "@code{package} (default: @code{yggdrasil})"
  27190. msgstr "@code{mate}(默认值:@code{mate})"
  27191. #. type: table
  27192. #: guix-git/doc/guix.texi:18380
  27193. msgid "Package object of Yggdrasil."
  27194. msgstr ""
  27195. #. type: item
  27196. #: guix-git/doc/guix.texi:18381
  27197. #, fuzzy, no-wrap
  27198. msgid "@code{json-config} (default: @code{'()})"
  27199. msgstr "@code{includes}(默认值:@code{'()})"
  27200. #. type: table
  27201. #: guix-git/doc/guix.texi:18387
  27202. 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."
  27203. msgstr ""
  27204. #. type: item
  27205. #: guix-git/doc/guix.texi:18388
  27206. #, fuzzy, no-wrap
  27207. msgid "@code{autoconf?} (default: @code{#f})"
  27208. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  27209. #. type: table
  27210. #: guix-git/doc/guix.texi:18391
  27211. msgid "Whether to use automatic mode. Enabling it makes Yggdrasil use adynamic IP and peer with IPv6 neighbors."
  27212. msgstr ""
  27213. #. type: table
  27214. #: guix-git/doc/guix.texi:18394
  27215. msgid "How much detail to include in logs. Use @code{'debug} for more detail."
  27216. msgstr ""
  27217. #. type: item
  27218. #: guix-git/doc/guix.texi:18395
  27219. #, fuzzy, no-wrap
  27220. msgid "@code{log-to} (default: @code{'stdout})"
  27221. msgstr "@code{port}(默认值:@code{22})"
  27222. #. type: table
  27223. #: guix-git/doc/guix.texi:18399
  27224. 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."
  27225. msgstr ""
  27226. #. type: item
  27227. #: guix-git/doc/guix.texi:18400
  27228. #, fuzzy, no-wrap
  27229. msgid "@code{config-file} (default: @code{\"/etc/yggdrasil-private.conf\"})"
  27230. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  27231. #. type: table
  27232. #: guix-git/doc/guix.texi:18407
  27233. 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:"
  27234. msgstr ""
  27235. #. type: code{#1}
  27236. #: guix-git/doc/guix.texi:18409
  27237. #, no-wrap
  27238. msgid "EncryptionPublicKey"
  27239. msgstr ""
  27240. #. type: code{#1}
  27241. #: guix-git/doc/guix.texi:18410
  27242. #, no-wrap
  27243. msgid "EncryptionPrivateKey"
  27244. msgstr ""
  27245. #. type: code{#1}
  27246. #: guix-git/doc/guix.texi:18411
  27247. #, no-wrap
  27248. msgid "SigningPublicKey"
  27249. msgstr ""
  27250. #. type: code{#1}
  27251. #: guix-git/doc/guix.texi:18412
  27252. #, no-wrap
  27253. msgid "SigningPrivateKey"
  27254. msgstr ""
  27255. #. type: cindex
  27256. #: guix-git/doc/guix.texi:18417
  27257. #, no-wrap
  27258. msgid "IPFS"
  27259. msgstr ""
  27260. #. type: defvr
  27261. #: guix-git/doc/guix.texi:18418
  27262. #, no-wrap
  27263. msgid "{Scheme Variable} ipfs-service-type"
  27264. msgstr ""
  27265. #. type: defvr
  27266. #: guix-git/doc/guix.texi:18422
  27267. 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."
  27268. msgstr ""
  27269. #. type: defvr
  27270. #: guix-git/doc/guix.texi:18424
  27271. msgid "Here's an example configuration, using some non-standard ports:"
  27272. msgstr ""
  27273. #. type: lisp
  27274. #: guix-git/doc/guix.texi:18430
  27275. #, no-wrap
  27276. msgid ""
  27277. "(service ipfs-service-type\n"
  27278. " (ipfs-configuration\n"
  27279. " (gateway \"/ip4/127.0.0.1/tcp/8880\")\n"
  27280. " (api \"/ip4/127.0.0.1/tcp/8881\")))\n"
  27281. msgstr ""
  27282. #. type: deftp
  27283. #: guix-git/doc/guix.texi:18433
  27284. #, fuzzy, no-wrap
  27285. msgid "{Data Type} ipfs-configuration"
  27286. msgstr "系统配置"
  27287. #. type: deftp
  27288. #: guix-git/doc/guix.texi:18435
  27289. #, fuzzy
  27290. msgid "Data type representing the configuration of IPFS."
  27291. msgstr "管理操作系统配置。"
  27292. #. type: item
  27293. #: guix-git/doc/guix.texi:18437
  27294. #, fuzzy, no-wrap
  27295. msgid "@code{package} (default: @code{go-ipfs})"
  27296. msgstr "@code{mate}(默认值:@code{mate})"
  27297. #. type: table
  27298. #: guix-git/doc/guix.texi:18439
  27299. msgid "Package object of IPFS."
  27300. msgstr ""
  27301. #. type: item
  27302. #: guix-git/doc/guix.texi:18440
  27303. #, fuzzy, no-wrap
  27304. msgid "@code{gateway} (default: @code{\"/ip4/127.0.0.1/tcp/8082\"})"
  27305. msgstr "@code{speed}(默认值:@code{1.0})"
  27306. #. type: table
  27307. #: guix-git/doc/guix.texi:18442
  27308. msgid "Address of the gateway, in ‘multiaddress’ format."
  27309. msgstr ""
  27310. #. type: item
  27311. #: guix-git/doc/guix.texi:18443
  27312. #, fuzzy, no-wrap
  27313. msgid "@code{api} (default: @code{\"/ip4/127.0.0.1/tcp/5001\"})"
  27314. msgstr "@code{speed}(默认值:@code{1.0})"
  27315. #. type: table
  27316. #: guix-git/doc/guix.texi:18445
  27317. msgid "Address of the API endpoint, in ‘multiaddress’ format."
  27318. msgstr ""
  27319. #. type: cindex
  27320. #: guix-git/doc/guix.texi:18448
  27321. #, no-wrap
  27322. msgid "keepalived"
  27323. msgstr ""
  27324. #. type: deffn
  27325. #: guix-git/doc/guix.texi:18449
  27326. #, no-wrap
  27327. msgid "{Scheme Variable} keepalived-service-type"
  27328. msgstr ""
  27329. #. type: deffn
  27330. #: guix-git/doc/guix.texi:18454
  27331. 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:"
  27332. msgstr ""
  27333. #. type: lisp
  27334. #: guix-git/doc/guix.texi:18459
  27335. #, fuzzy, no-wrap
  27336. msgid ""
  27337. "(service keepalived-service-type\n"
  27338. " (keepalived-configuration\n"
  27339. " (config-file (local-file \"keepalived-master.conf\"))))\n"
  27340. msgstr ""
  27341. "(service qemu-binfmt-service-type\n"
  27342. " (qemu-binfmt-configuration\n"
  27343. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  27344. " (guix-support? #t)))\n"
  27345. #. type: deffn
  27346. #: guix-git/doc/guix.texi:18462
  27347. msgid "where @file{keepalived-master.conf}:"
  27348. msgstr ""
  27349. #. type: example
  27350. #: guix-git/doc/guix.texi:18474
  27351. #, no-wrap
  27352. msgid ""
  27353. "vrrp_instance my-group @{\n"
  27354. " state MASTER\n"
  27355. " interface enp9s0\n"
  27356. " virtual_router_id 100\n"
  27357. " priority 100\n"
  27358. " unicast_peer @{ 10.0.0.2 @}\n"
  27359. " virtual_ipaddress @{\n"
  27360. " 10.0.0.4/24\n"
  27361. " @}\n"
  27362. "@}\n"
  27363. msgstr ""
  27364. #. type: deffn
  27365. #: guix-git/doc/guix.texi:18477
  27366. msgid "and for backup machine:"
  27367. msgstr ""
  27368. #. type: lisp
  27369. #: guix-git/doc/guix.texi:18482
  27370. #, fuzzy, no-wrap
  27371. msgid ""
  27372. "(service keepalived-service-type\n"
  27373. " (keepalived-configuration\n"
  27374. " (config-file (local-file \"keepalived-backup.conf\"))))\n"
  27375. msgstr ""
  27376. "(service qemu-binfmt-service-type\n"
  27377. " (qemu-binfmt-configuration\n"
  27378. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  27379. " (guix-support? #t)))\n"
  27380. #. type: deffn
  27381. #: guix-git/doc/guix.texi:18485
  27382. msgid "where @file{keepalived-backup.conf}:"
  27383. msgstr ""
  27384. #. type: example
  27385. #: guix-git/doc/guix.texi:18497
  27386. #, no-wrap
  27387. msgid ""
  27388. "vrrp_instance my-group @{\n"
  27389. " state BACKUP\n"
  27390. " interface enp9s0\n"
  27391. " virtual_router_id 100\n"
  27392. " priority 99\n"
  27393. " unicast_peer @{ 10.0.0.3 @}\n"
  27394. " virtual_ipaddress @{\n"
  27395. " 10.0.0.4/24\n"
  27396. " @}\n"
  27397. "@}\n"
  27398. msgstr ""
  27399. #. type: cindex
  27400. #: guix-git/doc/guix.texi:18503
  27401. #, no-wrap
  27402. msgid "unattended upgrades"
  27403. msgstr ""
  27404. #. type: cindex
  27405. #: guix-git/doc/guix.texi:18504
  27406. #, no-wrap
  27407. msgid "upgrades, unattended"
  27408. msgstr ""
  27409. #. type: Plain text
  27410. #: guix-git/doc/guix.texi:18509
  27411. 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:"
  27412. msgstr ""
  27413. #. type: itemize
  27414. #: guix-git/doc/guix.texi:18514
  27415. msgid "upgrades are transactional (either the upgrade succeeds or it fails, but you cannot end up with an ``in-between'' system state);"
  27416. msgstr ""
  27417. #. type: itemize
  27418. #: guix-git/doc/guix.texi:18518
  27419. 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;"
  27420. msgstr ""
  27421. #. type: itemize
  27422. #: guix-git/doc/guix.texi:18521
  27423. msgid "channel code is authenticated so you know you can only run genuine code (@pxref{Channels});"
  27424. msgstr ""
  27425. #. type: itemize
  27426. #: guix-git/doc/guix.texi:18524
  27427. msgid "@command{guix system reconfigure} prevents downgrades, which makes it immune to @dfn{downgrade attacks}."
  27428. msgstr ""
  27429. #. type: Plain text
  27430. #: guix-git/doc/guix.texi:18529
  27431. 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:"
  27432. msgstr ""
  27433. #. type: lisp
  27434. #: guix-git/doc/guix.texi:18532
  27435. #, no-wrap
  27436. msgid "(service unattended-upgrade-service-type)\n"
  27437. msgstr ""
  27438. #. type: Plain text
  27439. #: guix-git/doc/guix.texi:18539
  27440. 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."
  27441. msgstr ""
  27442. #. type: Plain text
  27443. #: guix-git/doc/guix.texi:18545
  27444. 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."
  27445. msgstr ""
  27446. #. type: Plain text
  27447. #: guix-git/doc/guix.texi:18549
  27448. 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)."
  27449. msgstr ""
  27450. #. type: defvr
  27451. #: guix-git/doc/guix.texi:18550
  27452. #, no-wrap
  27453. msgid "{Scheme Variable} unattended-upgrade-service-type"
  27454. msgstr ""
  27455. #. type: defvr
  27456. #: guix-git/doc/guix.texi:18554
  27457. 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."
  27458. msgstr ""
  27459. #. type: defvr
  27460. #: guix-git/doc/guix.texi:18557
  27461. msgid "Its value must be a @code{unattended-upgrade-configuration} record (see below)."
  27462. msgstr ""
  27463. #. type: deftp
  27464. #: guix-git/doc/guix.texi:18559
  27465. #, no-wrap
  27466. msgid "{Data Type} unattended-upgrade-configuration"
  27467. msgstr ""
  27468. #. type: deftp
  27469. #: guix-git/doc/guix.texi:18562
  27470. msgid "This data type represents the configuration of the unattended upgrade service. The following fields are available:"
  27471. msgstr ""
  27472. #. type: item
  27473. #: guix-git/doc/guix.texi:18564
  27474. #, fuzzy, no-wrap
  27475. msgid "@code{schedule} (default: @code{\"30 01 * * 0\"})"
  27476. msgstr "@code{speed}(默认值:@code{1.0})"
  27477. #. type: table
  27478. #: guix-git/doc/guix.texi:18568
  27479. 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})."
  27480. msgstr ""
  27481. #. type: item
  27482. #: guix-git/doc/guix.texi:18569
  27483. #, fuzzy, no-wrap
  27484. msgid "@code{channels} (default: @code{#~%default-channels})"
  27485. msgstr "@code{challenge}(默认值:@code{#f})"
  27486. #. type: table
  27487. #: guix-git/doc/guix.texi:18573
  27488. 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."
  27489. msgstr ""
  27490. #. type: item
  27491. #: guix-git/doc/guix.texi:18574
  27492. #, no-wrap
  27493. msgid "@code{operating-system-file} (default: @code{\"/run/current-system/configuration.scm\"})"
  27494. msgstr ""
  27495. #. type: table
  27496. #: guix-git/doc/guix.texi:18577
  27497. msgid "This field specifies the operating system configuration file to use. The default is to reuse the config file of the current configuration."
  27498. msgstr ""
  27499. #. type: table
  27500. #: guix-git/doc/guix.texi:18583
  27501. 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:"
  27502. msgstr ""
  27503. #. type: lisp
  27504. #: guix-git/doc/guix.texi:18589
  27505. #, no-wrap
  27506. msgid ""
  27507. "(unattended-upgrade-configuration\n"
  27508. " (operating-system-file\n"
  27509. " (file-append (local-file \".\" \"config-dir\" #:recursive? #t)\n"
  27510. " \"/config.scm\")))\n"
  27511. msgstr ""
  27512. #. type: table
  27513. #: guix-git/doc/guix.texi:18596
  27514. 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}."
  27515. msgstr ""
  27516. #. type: item
  27517. #: guix-git/doc/guix.texi:18597
  27518. #, fuzzy, no-wrap
  27519. msgid "@code{services-to-restart} (default: @code{'(mcron)})"
  27520. msgstr "@code{features} (@code{'()})"
  27521. #. type: table
  27522. #: guix-git/doc/guix.texi:18600
  27523. msgid "This field specifies the Shepherd services to restart when the upgrade completes."
  27524. msgstr ""
  27525. #. type: table
  27526. #: guix-git/doc/guix.texi:18607
  27527. 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."
  27528. msgstr ""
  27529. #. type: table
  27530. #: guix-git/doc/guix.texi:18611
  27531. 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}."
  27532. msgstr ""
  27533. #. type: table
  27534. #: guix-git/doc/guix.texi:18614
  27535. 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."
  27536. msgstr ""
  27537. #. type: item
  27538. #: guix-git/doc/guix.texi:18615
  27539. #, fuzzy, no-wrap
  27540. msgid "@code{system-expiration} (default: @code{(* 3 30 24 3600)})"
  27541. msgstr "@code{port}(默认值:@code{22})"
  27542. #. type: table
  27543. #: guix-git/doc/guix.texi:18619
  27544. 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."
  27545. msgstr ""
  27546. #. type: quotation
  27547. #: guix-git/doc/guix.texi:18624
  27548. 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."
  27549. msgstr ""
  27550. #. type: item
  27551. #: guix-git/doc/guix.texi:18626
  27552. #, fuzzy, no-wrap
  27553. msgid "@code{maximum-duration} (default: @code{3600})"
  27554. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  27555. #. type: table
  27556. #: guix-git/doc/guix.texi:18629
  27557. msgid "Maximum duration in seconds for the upgrade; past that time, the upgrade aborts."
  27558. msgstr ""
  27559. #. type: table
  27560. #: guix-git/doc/guix.texi:18632
  27561. msgid "This is primarily useful to ensure the upgrade does not end up rebuilding or re-downloading ``the world''."
  27562. msgstr ""
  27563. #. type: item
  27564. #: guix-git/doc/guix.texi:18633
  27565. #, fuzzy, no-wrap
  27566. msgid "@code{log-file} (default: @code{\"/var/log/unattended-upgrade.log\"})"
  27567. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  27568. #. type: table
  27569. #: guix-git/doc/guix.texi:18635
  27570. msgid "File where unattended upgrades are logged."
  27571. msgstr ""
  27572. #. type: cindex
  27573. #: guix-git/doc/guix.texi:18641
  27574. #, no-wrap
  27575. msgid "X11"
  27576. msgstr ""
  27577. #. type: cindex
  27578. #: guix-git/doc/guix.texi:18642
  27579. #, no-wrap
  27580. msgid "X Window System"
  27581. msgstr ""
  27582. #. type: cindex
  27583. #: guix-git/doc/guix.texi:18643 guix-git/doc/guix.texi:18902
  27584. #, no-wrap
  27585. msgid "login manager"
  27586. msgstr ""
  27587. #. type: Plain text
  27588. #: guix-git/doc/guix.texi:18648
  27589. 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)."
  27590. msgstr ""
  27591. #. type: cindex
  27592. #: guix-git/doc/guix.texi:18649
  27593. #, no-wrap
  27594. msgid "GDM"
  27595. msgstr ""
  27596. #. type: cindex
  27597. #: guix-git/doc/guix.texi:18650
  27598. #, no-wrap
  27599. msgid "GNOME, login manager"
  27600. msgstr ""
  27601. #. type: Plain text
  27602. #: guix-git/doc/guix.texi:18654
  27603. 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."
  27604. msgstr ""
  27605. #. type: cindex
  27606. #: guix-git/doc/guix.texi:18655
  27607. #, no-wrap
  27608. msgid "window manager"
  27609. msgstr ""
  27610. #. type: Plain text
  27611. #: guix-git/doc/guix.texi:18660
  27612. 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})."
  27613. msgstr ""
  27614. #. type: defvr
  27615. #: guix-git/doc/guix.texi:18661
  27616. #, no-wrap
  27617. msgid "{Scheme Variable} gdm-service-type"
  27618. msgstr ""
  27619. #. type: defvr
  27620. #: guix-git/doc/guix.texi:18666
  27621. 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)."
  27622. msgstr ""
  27623. #. type: cindex
  27624. #: guix-git/doc/guix.texi:18667
  27625. #, no-wrap
  27626. msgid "session types (X11)"
  27627. msgstr ""
  27628. #. type: cindex
  27629. #: guix-git/doc/guix.texi:18668
  27630. #, no-wrap
  27631. msgid "X11 session types"
  27632. msgstr ""
  27633. #. type: defvr
  27634. #: guix-git/doc/guix.texi:18674
  27635. 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."
  27636. msgstr ""
  27637. #. type: defvr
  27638. #: guix-git/doc/guix.texi:18678
  27639. 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."
  27640. msgstr ""
  27641. #. type: deftp
  27642. #: guix-git/doc/guix.texi:18680
  27643. #, no-wrap
  27644. msgid "{Data Type} gdm-configuration"
  27645. msgstr ""
  27646. #. type: item
  27647. #: guix-git/doc/guix.texi:18682 guix-git/doc/guix.texi:18757
  27648. #, no-wrap
  27649. msgid "@code{auto-login?} (default: @code{#f})"
  27650. msgstr ""
  27651. #. type: itemx
  27652. #: guix-git/doc/guix.texi:18683
  27653. #, no-wrap
  27654. msgid "@code{default-user} (default: @code{#f})"
  27655. msgstr ""
  27656. #. type: table
  27657. #: guix-git/doc/guix.texi:18685
  27658. msgid "When @code{auto-login?} is false, GDM presents a log-in screen."
  27659. msgstr ""
  27660. #. type: table
  27661. #: guix-git/doc/guix.texi:18688
  27662. msgid "When @code{auto-login?} is true, GDM logs in directly as @code{default-user}."
  27663. msgstr ""
  27664. #. type: item
  27665. #: guix-git/doc/guix.texi:18689 guix-git/doc/guix.texi:24536
  27666. #: guix-git/doc/guix.texi:26245 guix-git/doc/guix.texi:30715
  27667. #: guix-git/doc/guix.texi:30744 guix-git/doc/guix.texi:30773
  27668. #: guix-git/doc/guix.texi:30800 guix-git/doc/guix.texi:30855
  27669. #: guix-git/doc/guix.texi:30880 guix-git/doc/guix.texi:30907
  27670. #: guix-git/doc/guix.texi:30933 guix-git/doc/guix.texi:30975
  27671. #, no-wrap
  27672. msgid "@code{debug?} (default: @code{#f})"
  27673. msgstr ""
  27674. #. type: table
  27675. #: guix-git/doc/guix.texi:18691
  27676. msgid "When true, GDM writes debug messages to its log."
  27677. msgstr ""
  27678. #. type: item
  27679. #: guix-git/doc/guix.texi:18692
  27680. #, no-wrap
  27681. msgid "@code{gnome-shell-assets} (default: ...)"
  27682. msgstr ""
  27683. #. type: table
  27684. #: guix-git/doc/guix.texi:18694
  27685. msgid "List of GNOME Shell assets needed by GDM: icon theme, fonts, etc."
  27686. msgstr ""
  27687. #. type: item
  27688. #: guix-git/doc/guix.texi:18695
  27689. #, no-wrap
  27690. msgid "@code{xorg-configuration} (default: @code{(xorg-configuration)})"
  27691. msgstr ""
  27692. #. type: table
  27693. #: guix-git/doc/guix.texi:18697 guix-git/doc/guix.texi:18784
  27694. #: guix-git/doc/guix.texi:18868
  27695. msgid "Configuration of the Xorg graphical server."
  27696. msgstr ""
  27697. #. type: item
  27698. #: guix-git/doc/guix.texi:18698
  27699. #, no-wrap
  27700. msgid "@code{xsession} (default: @code{(xinitrc)})"
  27701. msgstr ""
  27702. #. type: table
  27703. #: guix-git/doc/guix.texi:18700 guix-git/doc/guix.texi:18883
  27704. msgid "Script to run before starting a X session."
  27705. msgstr ""
  27706. #. type: item
  27707. #: guix-git/doc/guix.texi:18701
  27708. #, no-wrap
  27709. msgid "@code{dbus-daemon} (default: @code{dbus-daemon-wrapper})"
  27710. msgstr ""
  27711. #. type: table
  27712. #: guix-git/doc/guix.texi:18703
  27713. msgid "File name of the @code{dbus-daemon} executable."
  27714. msgstr ""
  27715. #. type: item
  27716. #: guix-git/doc/guix.texi:18704
  27717. #, no-wrap
  27718. msgid "@code{gdm} (default: @code{gdm})"
  27719. msgstr ""
  27720. #. type: table
  27721. #: guix-git/doc/guix.texi:18706
  27722. msgid "The GDM package to use."
  27723. msgstr ""
  27724. #. type: defvr
  27725. #: guix-git/doc/guix.texi:18709
  27726. #, no-wrap
  27727. msgid "{Scheme Variable} slim-service-type"
  27728. msgstr ""
  27729. #. type: defvr
  27730. #: guix-git/doc/guix.texi:18711
  27731. msgid "This is the type for the SLiM graphical login manager for X11."
  27732. msgstr ""
  27733. #. type: defvr
  27734. #: guix-git/doc/guix.texi:18715
  27735. 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."
  27736. msgstr ""
  27737. #. type: defvr
  27738. #: guix-git/doc/guix.texi:18722
  27739. 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."
  27740. msgstr ""
  27741. #. type: lisp
  27742. #: guix-git/doc/guix.texi:18727
  27743. #, no-wrap
  27744. msgid ""
  27745. "(use-modules (gnu services)\n"
  27746. " (gnu services desktop)\n"
  27747. " (gnu services xorg))\n"
  27748. "\n"
  27749. msgstr ""
  27750. #. type: lisp
  27751. #: guix-git/doc/guix.texi:18738
  27752. #, no-wrap
  27753. msgid ""
  27754. "(operating-system\n"
  27755. " ;; ...\n"
  27756. " (services (cons* (service slim-service-type (slim-configuration\n"
  27757. " (display \":0\")\n"
  27758. " (vt \"vt7\")))\n"
  27759. " (service slim-service-type (slim-configuration\n"
  27760. " (display \":1\")\n"
  27761. " (vt \"vt8\")))\n"
  27762. " (modify-services %desktop-services\n"
  27763. " (delete gdm-service-type)))))\n"
  27764. msgstr ""
  27765. #. type: deftp
  27766. #: guix-git/doc/guix.texi:18742
  27767. #, no-wrap
  27768. msgid "{Data Type} slim-configuration"
  27769. msgstr ""
  27770. #. type: deftp
  27771. #: guix-git/doc/guix.texi:18744
  27772. msgid "Data type representing the configuration of @code{slim-service-type}."
  27773. msgstr ""
  27774. #. type: table
  27775. #: guix-git/doc/guix.texi:18748
  27776. msgid "Whether to allow logins with empty passwords."
  27777. msgstr ""
  27778. #. type: item
  27779. #: guix-git/doc/guix.texi:18749
  27780. #, fuzzy, no-wrap
  27781. msgid "@code{gnupg?} (default: @code{#f})"
  27782. msgstr "@code{challenge}(默认值:@code{#f})"
  27783. #. type: table
  27784. #: guix-git/doc/guix.texi:18756
  27785. 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}."
  27786. msgstr ""
  27787. #. type: itemx
  27788. #: guix-git/doc/guix.texi:18758
  27789. #, no-wrap
  27790. msgid "@code{default-user} (default: @code{\"\"})"
  27791. msgstr ""
  27792. #. type: table
  27793. #: guix-git/doc/guix.texi:18760
  27794. msgid "When @code{auto-login?} is false, SLiM presents a log-in screen."
  27795. msgstr ""
  27796. #. type: table
  27797. #: guix-git/doc/guix.texi:18763
  27798. msgid "When @code{auto-login?} is true, SLiM logs in directly as @code{default-user}."
  27799. msgstr ""
  27800. #. type: item
  27801. #: guix-git/doc/guix.texi:18764
  27802. #, no-wrap
  27803. msgid "@code{theme} (default: @code{%default-slim-theme})"
  27804. msgstr ""
  27805. #. type: itemx
  27806. #: guix-git/doc/guix.texi:18765
  27807. #, no-wrap
  27808. msgid "@code{theme-name} (default: @code{%default-slim-theme-name})"
  27809. msgstr ""
  27810. #. type: table
  27811. #: guix-git/doc/guix.texi:18767
  27812. msgid "The graphical theme to use and its name."
  27813. msgstr ""
  27814. #. type: item
  27815. #: guix-git/doc/guix.texi:18768
  27816. #, no-wrap
  27817. msgid "@code{auto-login-session} (default: @code{#f})"
  27818. msgstr ""
  27819. #. type: table
  27820. #: guix-git/doc/guix.texi:18771
  27821. 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\")}."
  27822. msgstr ""
  27823. #. type: table
  27824. #: guix-git/doc/guix.texi:18775
  27825. 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."
  27826. msgstr ""
  27827. #. type: quotation
  27828. #: guix-git/doc/guix.texi:18780
  27829. 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."
  27830. msgstr ""
  27831. #. type: item
  27832. #: guix-git/doc/guix.texi:18782 guix-git/doc/guix.texi:18866
  27833. #, no-wrap
  27834. msgid "@code{xorg-configuration} (default @code{(xorg-configuration)})"
  27835. msgstr ""
  27836. #. type: item
  27837. #: guix-git/doc/guix.texi:18785
  27838. #, no-wrap
  27839. msgid "@code{display} (default @code{\":0\"})"
  27840. msgstr "@code{display}(默认值:@code{\":0\"})"
  27841. #. type: table
  27842. #: guix-git/doc/guix.texi:18787
  27843. msgid "The display on which to start the Xorg graphical server."
  27844. msgstr ""
  27845. #. type: item
  27846. #: guix-git/doc/guix.texi:18788
  27847. #, no-wrap
  27848. msgid "@code{vt} (default @code{\"vt7\"})"
  27849. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  27850. #. type: table
  27851. #: guix-git/doc/guix.texi:18790
  27852. msgid "The VT on which to start the Xorg graphical server."
  27853. msgstr ""
  27854. #. type: item
  27855. #: guix-git/doc/guix.texi:18791
  27856. #, no-wrap
  27857. msgid "@code{xauth} (default: @code{xauth})"
  27858. msgstr ""
  27859. #. type: table
  27860. #: guix-git/doc/guix.texi:18793
  27861. msgid "The XAuth package to use."
  27862. msgstr ""
  27863. #. type: item
  27864. #: guix-git/doc/guix.texi:18794
  27865. #, no-wrap
  27866. msgid "@code{shepherd} (default: @code{shepherd})"
  27867. msgstr ""
  27868. #. type: table
  27869. #: guix-git/doc/guix.texi:18797
  27870. msgid "The Shepherd package used when invoking @command{halt} and @command{reboot}."
  27871. msgstr ""
  27872. #. type: item
  27873. #: guix-git/doc/guix.texi:18798
  27874. #, no-wrap
  27875. msgid "@code{sessreg} (default: @code{sessreg})"
  27876. msgstr ""
  27877. #. type: table
  27878. #: guix-git/doc/guix.texi:18800
  27879. msgid "The sessreg package used in order to register the session."
  27880. msgstr ""
  27881. #. type: item
  27882. #: guix-git/doc/guix.texi:18801
  27883. #, no-wrap
  27884. msgid "@code{slim} (default: @code{slim})"
  27885. msgstr ""
  27886. #. type: table
  27887. #: guix-git/doc/guix.texi:18803
  27888. msgid "The SLiM package to use."
  27889. msgstr ""
  27890. #. type: defvr
  27891. #: guix-git/doc/guix.texi:18806
  27892. #, no-wrap
  27893. msgid "{Scheme Variable} %default-theme"
  27894. msgstr ""
  27895. #. type: defvrx
  27896. #: guix-git/doc/guix.texi:18807
  27897. #, no-wrap
  27898. msgid "{Scheme Variable} %default-theme-name"
  27899. msgstr ""
  27900. #. type: defvr
  27901. #: guix-git/doc/guix.texi:18809
  27902. msgid "The default SLiM theme and its name."
  27903. msgstr ""
  27904. #. type: deftp
  27905. #: guix-git/doc/guix.texi:18812 guix-git/doc/guix.texi:18919
  27906. #, no-wrap
  27907. msgid "{Data Type} sddm-configuration"
  27908. msgstr ""
  27909. #. type: deftp
  27910. #: guix-git/doc/guix.texi:18814
  27911. msgid "This is the data type representing the SDDM service configuration."
  27912. msgstr ""
  27913. #. type: item
  27914. #: guix-git/doc/guix.texi:18816
  27915. #, no-wrap
  27916. msgid "@code{display-server} (default: \"x11\")"
  27917. msgstr ""
  27918. #. type: table
  27919. #: guix-git/doc/guix.texi:18819
  27920. msgid "Select display server to use for the greeter. Valid values are @samp{\"x11\"} or @samp{\"wayland\"}."
  27921. msgstr ""
  27922. #. type: item
  27923. #: guix-git/doc/guix.texi:18820
  27924. #, no-wrap
  27925. msgid "@code{numlock} (default: \"on\")"
  27926. msgstr ""
  27927. #. type: table
  27928. #: guix-git/doc/guix.texi:18822
  27929. msgid "Valid values are @samp{\"on\"}, @samp{\"off\"} or @samp{\"none\"}."
  27930. msgstr ""
  27931. #. type: item
  27932. #: guix-git/doc/guix.texi:18823
  27933. #, no-wrap
  27934. msgid "@code{halt-command} (default @code{#~(string-apppend #$shepherd \"/sbin/halt\")})"
  27935. msgstr ""
  27936. #. type: table
  27937. #: guix-git/doc/guix.texi:18825
  27938. msgid "Command to run when halting."
  27939. msgstr ""
  27940. #. type: item
  27941. #: guix-git/doc/guix.texi:18826
  27942. #, no-wrap
  27943. msgid "@code{reboot-command} (default @code{#~(string-append #$shepherd \"/sbin/reboot\")})"
  27944. msgstr ""
  27945. #. type: table
  27946. #: guix-git/doc/guix.texi:18828
  27947. msgid "Command to run when rebooting."
  27948. msgstr ""
  27949. #. type: item
  27950. #: guix-git/doc/guix.texi:18829
  27951. #, no-wrap
  27952. msgid "@code{theme} (default \"maldives\")"
  27953. msgstr ""
  27954. #. type: table
  27955. #: guix-git/doc/guix.texi:18832
  27956. msgid "Theme to use. Default themes provided by SDDM are @samp{\"elarun\"}, @samp{\"maldives\"} or @samp{\"maya\"}."
  27957. msgstr ""
  27958. #. type: item
  27959. #: guix-git/doc/guix.texi:18833
  27960. #, no-wrap
  27961. msgid "@code{themes-directory} (default \"/run/current-system/profile/share/sddm/themes\")"
  27962. msgstr ""
  27963. #. type: table
  27964. #: guix-git/doc/guix.texi:18835
  27965. msgid "Directory to look for themes."
  27966. msgstr ""
  27967. #. type: item
  27968. #: guix-git/doc/guix.texi:18836
  27969. #, no-wrap
  27970. msgid "@code{faces-directory} (default \"/run/current-system/profile/share/sddm/faces\")"
  27971. msgstr ""
  27972. #. type: table
  27973. #: guix-git/doc/guix.texi:18838
  27974. msgid "Directory to look for faces."
  27975. msgstr ""
  27976. #. type: item
  27977. #: guix-git/doc/guix.texi:18839
  27978. #, no-wrap
  27979. msgid "@code{default-path} (default \"/run/current-system/profile/bin\")"
  27980. msgstr ""
  27981. #. type: table
  27982. #: guix-git/doc/guix.texi:18841
  27983. msgid "Default PATH to use."
  27984. msgstr ""
  27985. #. type: item
  27986. #: guix-git/doc/guix.texi:18842
  27987. #, fuzzy, no-wrap
  27988. msgid "@code{minimum-uid} (default: 1000)"
  27989. msgstr "@code{includes}(默认值:@code{'()})"
  27990. #. type: table
  27991. #: guix-git/doc/guix.texi:18844
  27992. msgid "Minimum UID displayed in SDDM and allowed for log-in."
  27993. msgstr ""
  27994. #. type: item
  27995. #: guix-git/doc/guix.texi:18845
  27996. #, fuzzy, no-wrap
  27997. msgid "@code{maximum-uid} (default: 2000)"
  27998. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  27999. #. type: table
  28000. #: guix-git/doc/guix.texi:18847
  28001. msgid "Maximum UID to display in SDDM."
  28002. msgstr ""
  28003. #. type: item
  28004. #: guix-git/doc/guix.texi:18848
  28005. #, no-wrap
  28006. msgid "@code{remember-last-user?} (default #t)"
  28007. msgstr ""
  28008. #. type: table
  28009. #: guix-git/doc/guix.texi:18850
  28010. msgid "Remember last user."
  28011. msgstr ""
  28012. #. type: item
  28013. #: guix-git/doc/guix.texi:18851
  28014. #, no-wrap
  28015. msgid "@code{remember-last-session?} (default #t)"
  28016. msgstr ""
  28017. #. type: table
  28018. #: guix-git/doc/guix.texi:18853
  28019. msgid "Remember last session."
  28020. msgstr ""
  28021. #. type: item
  28022. #: guix-git/doc/guix.texi:18854
  28023. #, no-wrap
  28024. msgid "@code{hide-users} (default \"\")"
  28025. msgstr ""
  28026. #. type: table
  28027. #: guix-git/doc/guix.texi:18856
  28028. msgid "Usernames to hide from SDDM greeter."
  28029. msgstr ""
  28030. #. type: item
  28031. #: guix-git/doc/guix.texi:18857
  28032. #, no-wrap
  28033. msgid "@code{hide-shells} (default @code{#~(string-append #$shadow \"/sbin/nologin\")})"
  28034. msgstr ""
  28035. #. type: table
  28036. #: guix-git/doc/guix.texi:18859
  28037. msgid "Users with shells listed will be hidden from the SDDM greeter."
  28038. msgstr ""
  28039. #. type: item
  28040. #: guix-git/doc/guix.texi:18860
  28041. #, no-wrap
  28042. msgid "@code{session-command} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/wayland-session\")})"
  28043. msgstr ""
  28044. #. type: table
  28045. #: guix-git/doc/guix.texi:18862
  28046. msgid "Script to run before starting a wayland session."
  28047. msgstr ""
  28048. #. type: item
  28049. #: guix-git/doc/guix.texi:18863
  28050. #, no-wrap
  28051. msgid "@code{sessions-directory} (default \"/run/current-system/profile/share/wayland-sessions\")"
  28052. msgstr ""
  28053. #. type: table
  28054. #: guix-git/doc/guix.texi:18865
  28055. msgid "Directory to look for desktop files starting wayland sessions."
  28056. msgstr ""
  28057. #. type: item
  28058. #: guix-git/doc/guix.texi:18869
  28059. #, no-wrap
  28060. msgid "@code{xauth-path} (default @code{#~(string-append #$xauth \"/bin/xauth\")})"
  28061. msgstr ""
  28062. #. type: table
  28063. #: guix-git/doc/guix.texi:18871
  28064. msgid "Path to xauth."
  28065. msgstr ""
  28066. #. type: item
  28067. #: guix-git/doc/guix.texi:18872
  28068. #, no-wrap
  28069. msgid "@code{xephyr-path} (default @code{#~(string-append #$xorg-server \"/bin/Xephyr\")})"
  28070. msgstr ""
  28071. #. type: table
  28072. #: guix-git/doc/guix.texi:18874
  28073. msgid "Path to Xephyr."
  28074. msgstr ""
  28075. #. type: item
  28076. #: guix-git/doc/guix.texi:18875
  28077. #, no-wrap
  28078. msgid "@code{xdisplay-start} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xsetup\")})"
  28079. msgstr ""
  28080. #. type: table
  28081. #: guix-git/doc/guix.texi:18877
  28082. msgid "Script to run after starting xorg-server."
  28083. msgstr ""
  28084. #. type: item
  28085. #: guix-git/doc/guix.texi:18878
  28086. #, no-wrap
  28087. msgid "@code{xdisplay-stop} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xstop\")})"
  28088. msgstr ""
  28089. #. type: table
  28090. #: guix-git/doc/guix.texi:18880
  28091. msgid "Script to run before stopping xorg-server."
  28092. msgstr ""
  28093. #. type: item
  28094. #: guix-git/doc/guix.texi:18881
  28095. #, no-wrap
  28096. msgid "@code{xsession-command} (default: @code{xinitrc})"
  28097. msgstr ""
  28098. #. type: item
  28099. #: guix-git/doc/guix.texi:18884
  28100. #, no-wrap
  28101. msgid "@code{xsessions-directory} (default: \"/run/current-system/profile/share/xsessions\")"
  28102. msgstr ""
  28103. #. type: table
  28104. #: guix-git/doc/guix.texi:18886
  28105. msgid "Directory to look for desktop files starting X sessions."
  28106. msgstr ""
  28107. #. type: item
  28108. #: guix-git/doc/guix.texi:18887
  28109. #, no-wrap
  28110. msgid "@code{minimum-vt} (default: 7)"
  28111. msgstr ""
  28112. #. type: table
  28113. #: guix-git/doc/guix.texi:18889
  28114. msgid "Minimum VT to use."
  28115. msgstr ""
  28116. #. type: item
  28117. #: guix-git/doc/guix.texi:18890
  28118. #, no-wrap
  28119. msgid "@code{auto-login-user} (default \"\")"
  28120. msgstr ""
  28121. #. type: table
  28122. #: guix-git/doc/guix.texi:18892
  28123. msgid "User to use for auto-login."
  28124. msgstr ""
  28125. #. type: item
  28126. #: guix-git/doc/guix.texi:18893
  28127. #, no-wrap
  28128. msgid "@code{auto-login-session} (default \"\")"
  28129. msgstr ""
  28130. #. type: table
  28131. #: guix-git/doc/guix.texi:18895
  28132. msgid "Desktop file to use for auto-login."
  28133. msgstr ""
  28134. #. type: item
  28135. #: guix-git/doc/guix.texi:18896
  28136. #, no-wrap
  28137. msgid "@code{relogin?} (default #f)"
  28138. msgstr ""
  28139. #. type: table
  28140. #: guix-git/doc/guix.texi:18898
  28141. msgid "Relogin after logout."
  28142. msgstr ""
  28143. #. type: cindex
  28144. #: guix-git/doc/guix.texi:18903
  28145. #, no-wrap
  28146. msgid "X11 login"
  28147. msgstr ""
  28148. #. type: defvr
  28149. #: guix-git/doc/guix.texi:18904
  28150. #, no-wrap
  28151. msgid "{Scheme Variable} sddm-service-type"
  28152. msgstr ""
  28153. #. type: defvr
  28154. #: guix-git/doc/guix.texi:18908
  28155. 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)."
  28156. msgstr ""
  28157. #. type: defvr
  28158. #: guix-git/doc/guix.texi:18910
  28159. msgid "Here's an example use:"
  28160. msgstr ""
  28161. #. type: lisp
  28162. #: guix-git/doc/guix.texi:18916
  28163. #, no-wrap
  28164. msgid ""
  28165. "(service sddm-service-type\n"
  28166. " (sddm-configuration\n"
  28167. " (auto-login-user \"alice\")\n"
  28168. " (auto-login-session \"xfce.desktop\")))\n"
  28169. msgstr ""
  28170. #. type: deftp
  28171. #: guix-git/doc/guix.texi:18922
  28172. #, fuzzy
  28173. msgid "This data type represents the configuration of the SDDM login manager. The available fields are:"
  28174. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  28175. #. type: item
  28176. #: guix-git/doc/guix.texi:18924
  28177. #, fuzzy, no-wrap
  28178. msgid "@code{sddm} (default: @code{sddm})"
  28179. msgstr "@code{speed}(默认值:@code{1.0})"
  28180. #. type: table
  28181. #: guix-git/doc/guix.texi:18926
  28182. #, fuzzy
  28183. msgid "The SDDM package to use."
  28184. msgstr "软件包数据类型。"
  28185. #. type: item
  28186. #: guix-git/doc/guix.texi:18927
  28187. #, fuzzy, no-wrap
  28188. msgid "@code{display-server} (default: @code{\"x11\"})"
  28189. msgstr "@code{display}(默认值:@code{\":0\"})"
  28190. #. type: table
  28191. #: guix-git/doc/guix.texi:18929
  28192. msgid "This must be either @code{\"x11\"} or @code{\"wayland\"}."
  28193. msgstr ""
  28194. #. type: item
  28195. #: guix-git/doc/guix.texi:18932
  28196. #, fuzzy, no-wrap
  28197. msgid "@code{auto-login-user} (default: @code{\"\"})"
  28198. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  28199. #. type: table
  28200. #: guix-git/doc/guix.texi:18935
  28201. msgid "If non-empty, this is the user account under which to log in automatically."
  28202. msgstr ""
  28203. #. type: item
  28204. #: guix-git/doc/guix.texi:18936
  28205. #, fuzzy, no-wrap
  28206. msgid "@code{auto-login-session} (default: @code{\"\"})"
  28207. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  28208. #. type: table
  28209. #: guix-git/doc/guix.texi:18939
  28210. msgid "If non-empty, this is the @file{.desktop} file name to use as the auto-login session."
  28211. msgstr ""
  28212. #. type: cindex
  28213. #: guix-git/doc/guix.texi:18942
  28214. #, no-wrap
  28215. msgid "Xorg, configuration"
  28216. msgstr ""
  28217. #. type: deftp
  28218. #: guix-git/doc/guix.texi:18943
  28219. #, no-wrap
  28220. msgid "{Data Type} xorg-configuration"
  28221. msgstr ""
  28222. #. type: deftp
  28223. #: guix-git/doc/guix.texi:18948
  28224. 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."
  28225. msgstr ""
  28226. #. type: item
  28227. #: guix-git/doc/guix.texi:18950
  28228. #, no-wrap
  28229. msgid "@code{modules} (default: @code{%default-xorg-modules})"
  28230. msgstr ""
  28231. #. type: table
  28232. #: guix-git/doc/guix.texi:18953
  28233. 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."
  28234. msgstr ""
  28235. #. type: item
  28236. #: guix-git/doc/guix.texi:18954
  28237. #, no-wrap
  28238. msgid "@code{fonts} (default: @code{%default-xorg-fonts})"
  28239. msgstr ""
  28240. #. type: table
  28241. #: guix-git/doc/guix.texi:18956
  28242. msgid "This is a list of font directories to add to the server's @dfn{font path}."
  28243. msgstr ""
  28244. #. type: item
  28245. #: guix-git/doc/guix.texi:18957
  28246. #, no-wrap
  28247. msgid "@code{drivers} (default: @code{'()})"
  28248. msgstr ""
  28249. #. type: table
  28250. #: guix-git/doc/guix.texi:18961
  28251. 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\")}."
  28252. msgstr ""
  28253. #. type: item
  28254. #: guix-git/doc/guix.texi:18962
  28255. #, no-wrap
  28256. msgid "@code{resolutions} (default: @code{'()})"
  28257. msgstr ""
  28258. #. type: table
  28259. #: guix-git/doc/guix.texi:18966
  28260. 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))}."
  28261. msgstr ""
  28262. #. type: cindex
  28263. #: guix-git/doc/guix.texi:18967
  28264. #, no-wrap
  28265. msgid "keyboard layout, for Xorg"
  28266. msgstr ""
  28267. #. type: cindex
  28268. #: guix-git/doc/guix.texi:18968
  28269. #, no-wrap
  28270. msgid "keymap, for Xorg"
  28271. msgstr ""
  28272. #. type: table
  28273. #: guix-git/doc/guix.texi:18972
  28274. msgid "If this is @code{#f}, Xorg uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  28275. msgstr ""
  28276. #. type: table
  28277. #: guix-git/doc/guix.texi:18976
  28278. 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."
  28279. msgstr ""
  28280. #. type: item
  28281. #: guix-git/doc/guix.texi:18977 guix-git/doc/guix.texi:20682
  28282. #: guix-git/doc/guix.texi:33496
  28283. #, no-wrap
  28284. msgid "@code{extra-config} (default: @code{'()})"
  28285. msgstr ""
  28286. #. type: table
  28287. #: guix-git/doc/guix.texi:18980 guix-git/doc/guix.texi:33500
  28288. 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."
  28289. msgstr ""
  28290. #. type: item
  28291. #: guix-git/doc/guix.texi:18981
  28292. #, no-wrap
  28293. msgid "@code{server} (default: @code{xorg-server})"
  28294. msgstr ""
  28295. #. type: table
  28296. #: guix-git/doc/guix.texi:18983
  28297. msgid "This is the package providing the Xorg server."
  28298. msgstr ""
  28299. #. type: item
  28300. #: guix-git/doc/guix.texi:18984
  28301. #, no-wrap
  28302. msgid "@code{server-arguments} (default: @code{%default-xorg-server-arguments})"
  28303. msgstr ""
  28304. #. type: table
  28305. #: guix-git/doc/guix.texi:18987
  28306. msgid "This is the list of command-line arguments to pass to the X server. The default is @code{-nolisten tcp}."
  28307. msgstr ""
  28308. #. type: deffn
  28309. #: guix-git/doc/guix.texi:18990
  28310. #, no-wrap
  28311. msgid "{Scheme Procedure} set-xorg-configuration @var{config} @"
  28312. msgstr ""
  28313. #. type: deffn
  28314. #: guix-git/doc/guix.texi:18994
  28315. 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."
  28316. msgstr ""
  28317. #. type: deffn
  28318. #: guix-git/doc/guix.texi:18998
  28319. 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."
  28320. msgstr ""
  28321. #. type: deffn
  28322. #: guix-git/doc/guix.texi:19000
  28323. #, no-wrap
  28324. msgid "{Scheme Procedure} xorg-start-command [@var{config}]"
  28325. msgstr ""
  28326. #. type: deffn
  28327. #: guix-git/doc/guix.texi:19004
  28328. 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}."
  28329. msgstr ""
  28330. #. type: deffn
  28331. #: guix-git/doc/guix.texi:19006
  28332. msgid "Usually the X server is started by a login manager."
  28333. msgstr ""
  28334. #. type: deffn
  28335. #: guix-git/doc/guix.texi:19009
  28336. #, no-wrap
  28337. msgid "{Scheme Procedure} screen-locker-service @var{package} [@var{program}]"
  28338. msgstr ""
  28339. #. type: deffn
  28340. #: guix-git/doc/guix.texi:19013
  28341. 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:"
  28342. msgstr ""
  28343. #. type: lisp
  28344. #: guix-git/doc/guix.texi:19016
  28345. #, no-wrap
  28346. msgid "(screen-locker-service xlockmore \"xlock\")\n"
  28347. msgstr ""
  28348. #. type: deffn
  28349. #: guix-git/doc/guix.texi:19019
  28350. msgid "makes the good ol' XlockMore usable."
  28351. msgstr ""
  28352. #. type: cindex
  28353. #: guix-git/doc/guix.texi:19025
  28354. #, no-wrap
  28355. msgid "printer support with CUPS"
  28356. msgstr ""
  28357. #. type: Plain text
  28358. #: guix-git/doc/guix.texi:19029
  28359. 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:"
  28360. msgstr ""
  28361. #. type: deffn
  28362. #: guix-git/doc/guix.texi:19030
  28363. #, no-wrap
  28364. msgid "{Scheme Variable} cups-service-type"
  28365. msgstr ""
  28366. #. type: deffn
  28367. #: guix-git/doc/guix.texi:19034
  28368. 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:"
  28369. msgstr ""
  28370. #. type: lisp
  28371. #: guix-git/doc/guix.texi:19036
  28372. #, no-wrap
  28373. msgid "(service cups-service-type)\n"
  28374. msgstr ""
  28375. #. type: Plain text
  28376. #: guix-git/doc/guix.texi:19046
  28377. 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."
  28378. msgstr ""
  28379. #. type: Plain text
  28380. #: guix-git/doc/guix.texi:19052
  28381. 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):"
  28382. msgstr ""
  28383. #. type: lisp
  28384. #: guix-git/doc/guix.texi:19059
  28385. #, no-wrap
  28386. msgid ""
  28387. "(service cups-service-type\n"
  28388. " (cups-configuration\n"
  28389. " (web-interface? #t)\n"
  28390. " (extensions\n"
  28391. " (list cups-filters epson-inkjet-printer-escpr hplip-minimal))))\n"
  28392. msgstr ""
  28393. #. type: Plain text
  28394. #: guix-git/doc/guix.texi:19064
  28395. 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."
  28396. msgstr ""
  28397. #. type: Plain text
  28398. #: guix-git/doc/guix.texi:19071
  28399. 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."
  28400. msgstr ""
  28401. #. type: Plain text
  28402. #: guix-git/doc/guix.texi:19082
  28403. msgid "Available @code{cups-configuration} fields are:"
  28404. msgstr ""
  28405. #. type: deftypevr
  28406. #: guix-git/doc/guix.texi:19083
  28407. #, no-wrap
  28408. msgid "{@code{cups-configuration} parameter} package cups"
  28409. msgstr ""
  28410. #. type: deftypevr
  28411. #: guix-git/doc/guix.texi:19085 guix-git/doc/guix.texi:19847
  28412. msgid "The CUPS package."
  28413. msgstr ""
  28414. #. type: deftypevr
  28415. #: guix-git/doc/guix.texi:19087
  28416. #, no-wrap
  28417. msgid "{@code{cups-configuration} parameter} package-list extensions (default: @code{(list brlaser cups-filters epson-inkjet-printer-escpr foomatic-filters hplip-minimal splix)})"
  28418. msgstr ""
  28419. #. type: deftypevr
  28420. #: guix-git/doc/guix.texi:19089
  28421. msgid "Drivers and other extensions to the CUPS package."
  28422. msgstr ""
  28423. #. type: deftypevr
  28424. #: guix-git/doc/guix.texi:19091
  28425. #, no-wrap
  28426. msgid "{@code{cups-configuration} parameter} files-configuration files-configuration"
  28427. msgstr ""
  28428. #. type: deftypevr
  28429. #: guix-git/doc/guix.texi:19094
  28430. msgid "Configuration of where to write logs, what directories to use for print spools, and related privileged configuration parameters."
  28431. msgstr ""
  28432. #. type: deftypevr
  28433. #: guix-git/doc/guix.texi:19096
  28434. msgid "Available @code{files-configuration} fields are:"
  28435. msgstr ""
  28436. #. type: deftypevr
  28437. #: guix-git/doc/guix.texi:19097
  28438. #, no-wrap
  28439. msgid "{@code{files-configuration} parameter} log-location access-log"
  28440. msgstr ""
  28441. #. type: deftypevr
  28442. #: guix-git/doc/guix.texi:19105
  28443. 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}."
  28444. msgstr ""
  28445. #. type: deftypevr
  28446. #: guix-git/doc/guix.texi:19107
  28447. msgid "Defaults to @samp{\"/var/log/cups/access_log\"}."
  28448. msgstr ""
  28449. #. type: deftypevr
  28450. #: guix-git/doc/guix.texi:19109
  28451. #, no-wrap
  28452. msgid "{@code{files-configuration} parameter} file-name cache-dir"
  28453. msgstr ""
  28454. #. type: deftypevr
  28455. #: guix-git/doc/guix.texi:19111
  28456. msgid "Where CUPS should cache data."
  28457. msgstr ""
  28458. #. type: deftypevr
  28459. #: guix-git/doc/guix.texi:19113
  28460. msgid "Defaults to @samp{\"/var/cache/cups\"}."
  28461. msgstr ""
  28462. #. type: deftypevr
  28463. #: guix-git/doc/guix.texi:19115
  28464. #, no-wrap
  28465. msgid "{@code{files-configuration} parameter} string config-file-perm"
  28466. msgstr ""
  28467. #. type: deftypevr
  28468. #: guix-git/doc/guix.texi:19118
  28469. msgid "Specifies the permissions for all configuration files that the scheduler writes."
  28470. msgstr ""
  28471. #. type: deftypevr
  28472. #: guix-git/doc/guix.texi:19124
  28473. 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."
  28474. msgstr ""
  28475. #. type: deftypevr
  28476. #: guix-git/doc/guix.texi:19126
  28477. msgid "Defaults to @samp{\"0640\"}."
  28478. msgstr ""
  28479. #. type: deftypevr
  28480. #: guix-git/doc/guix.texi:19128
  28481. #, no-wrap
  28482. msgid "{@code{files-configuration} parameter} log-location error-log"
  28483. msgstr ""
  28484. #. type: deftypevr
  28485. #: guix-git/doc/guix.texi:19136
  28486. 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}."
  28487. msgstr ""
  28488. #. type: deftypevr
  28489. #: guix-git/doc/guix.texi:19138
  28490. msgid "Defaults to @samp{\"/var/log/cups/error_log\"}."
  28491. msgstr ""
  28492. #. type: deftypevr
  28493. #: guix-git/doc/guix.texi:19140
  28494. #, no-wrap
  28495. msgid "{@code{files-configuration} parameter} string fatal-errors"
  28496. msgstr ""
  28497. #. type: deftypevr
  28498. #: guix-git/doc/guix.texi:19143
  28499. msgid "Specifies which errors are fatal, causing the scheduler to exit. The kind strings are:"
  28500. msgstr ""
  28501. #. type: table
  28502. #: guix-git/doc/guix.texi:19147
  28503. msgid "No errors are fatal."
  28504. msgstr ""
  28505. #. type: table
  28506. #: guix-git/doc/guix.texi:19150
  28507. msgid "All of the errors below are fatal."
  28508. msgstr ""
  28509. #. type: item
  28510. #: guix-git/doc/guix.texi:19151
  28511. #, no-wrap
  28512. msgid "browse"
  28513. msgstr ""
  28514. #. type: table
  28515. #: guix-git/doc/guix.texi:19154
  28516. msgid "Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon."
  28517. msgstr ""
  28518. #. type: item
  28519. #: guix-git/doc/guix.texi:19155
  28520. #, no-wrap
  28521. msgid "config"
  28522. msgstr ""
  28523. #. type: table
  28524. #: guix-git/doc/guix.texi:19157
  28525. msgid "Configuration file syntax errors are fatal."
  28526. msgstr ""
  28527. #. type: item
  28528. #: guix-git/doc/guix.texi:19158
  28529. #, no-wrap
  28530. msgid "listen"
  28531. msgstr ""
  28532. #. type: table
  28533. #: guix-git/doc/guix.texi:19161
  28534. msgid "Listen or Port errors are fatal, except for IPv6 failures on the loopback or @code{any} addresses."
  28535. msgstr ""
  28536. #. type: item
  28537. #: guix-git/doc/guix.texi:19162
  28538. #, no-wrap
  28539. msgid "log"
  28540. msgstr ""
  28541. #. type: table
  28542. #: guix-git/doc/guix.texi:19164
  28543. msgid "Log file creation or write errors are fatal."
  28544. msgstr ""
  28545. #. type: item
  28546. #: guix-git/doc/guix.texi:19165
  28547. #, no-wrap
  28548. msgid "permissions"
  28549. msgstr ""
  28550. #. type: table
  28551. #: guix-git/doc/guix.texi:19168
  28552. msgid "Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions."
  28553. msgstr ""
  28554. #. type: deftypevr
  28555. #: guix-git/doc/guix.texi:19171
  28556. msgid "Defaults to @samp{\"all -browse\"}."
  28557. msgstr ""
  28558. #. type: deftypevr
  28559. #: guix-git/doc/guix.texi:19173
  28560. #, no-wrap
  28561. msgid "{@code{files-configuration} parameter} boolean file-device?"
  28562. msgstr ""
  28563. #. type: deftypevr
  28564. #: guix-git/doc/guix.texi:19176
  28565. msgid "Specifies whether the file pseudo-device can be used for new printer queues. The URI @uref{file:///dev/null} is always allowed."
  28566. msgstr ""
  28567. #. type: deftypevr
  28568. #: guix-git/doc/guix.texi:19180
  28569. #, no-wrap
  28570. msgid "{@code{files-configuration} parameter} string group"
  28571. msgstr ""
  28572. #. type: deftypevr
  28573. #: guix-git/doc/guix.texi:19183
  28574. msgid "Specifies the group name or ID that will be used when executing external programs."
  28575. msgstr ""
  28576. #. type: deftypevr
  28577. #: guix-git/doc/guix.texi:19185 guix-git/doc/guix.texi:19265
  28578. msgid "Defaults to @samp{\"lp\"}."
  28579. msgstr ""
  28580. #. type: deftypevr
  28581. #: guix-git/doc/guix.texi:19187
  28582. #, no-wrap
  28583. msgid "{@code{files-configuration} parameter} string log-file-perm"
  28584. msgstr ""
  28585. #. type: deftypevr
  28586. #: guix-git/doc/guix.texi:19189
  28587. msgid "Specifies the permissions for all log files that the scheduler writes."
  28588. msgstr ""
  28589. #. type: deftypevr
  28590. #: guix-git/doc/guix.texi:19191
  28591. msgid "Defaults to @samp{\"0644\"}."
  28592. msgstr ""
  28593. #. type: deftypevr
  28594. #: guix-git/doc/guix.texi:19193
  28595. #, no-wrap
  28596. msgid "{@code{files-configuration} parameter} log-location page-log"
  28597. msgstr ""
  28598. #. type: deftypevr
  28599. #: guix-git/doc/guix.texi:19201
  28600. 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}."
  28601. msgstr ""
  28602. #. type: deftypevr
  28603. #: guix-git/doc/guix.texi:19203
  28604. msgid "Defaults to @samp{\"/var/log/cups/page_log\"}."
  28605. msgstr ""
  28606. #. type: deftypevr
  28607. #: guix-git/doc/guix.texi:19205
  28608. #, no-wrap
  28609. msgid "{@code{files-configuration} parameter} string remote-root"
  28610. msgstr ""
  28611. #. type: deftypevr
  28612. #: guix-git/doc/guix.texi:19208
  28613. msgid "Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user. The default is @code{remroot}."
  28614. msgstr ""
  28615. #. type: deftypevr
  28616. #: guix-git/doc/guix.texi:19210
  28617. msgid "Defaults to @samp{\"remroot\"}."
  28618. msgstr ""
  28619. #. type: deftypevr
  28620. #: guix-git/doc/guix.texi:19212
  28621. #, no-wrap
  28622. msgid "{@code{files-configuration} parameter} file-name request-root"
  28623. msgstr ""
  28624. #. type: deftypevr
  28625. #: guix-git/doc/guix.texi:19215
  28626. msgid "Specifies the directory that contains print jobs and other HTTP request data."
  28627. msgstr ""
  28628. #. type: deftypevr
  28629. #: guix-git/doc/guix.texi:19217
  28630. msgid "Defaults to @samp{\"/var/spool/cups\"}."
  28631. msgstr ""
  28632. #. type: deftypevr
  28633. #: guix-git/doc/guix.texi:19219
  28634. #, no-wrap
  28635. msgid "{@code{files-configuration} parameter} sandboxing sandboxing"
  28636. msgstr ""
  28637. #. type: deftypevr
  28638. #: guix-git/doc/guix.texi:19224
  28639. 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."
  28640. msgstr ""
  28641. #. type: deftypevr
  28642. #: guix-git/doc/guix.texi:19226
  28643. msgid "Defaults to @samp{strict}."
  28644. msgstr ""
  28645. #. type: deftypevr
  28646. #: guix-git/doc/guix.texi:19228
  28647. #, no-wrap
  28648. msgid "{@code{files-configuration} parameter} file-name server-keychain"
  28649. msgstr ""
  28650. #. type: deftypevr
  28651. #: guix-git/doc/guix.texi:19233
  28652. 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."
  28653. msgstr ""
  28654. #. type: deftypevr
  28655. #: guix-git/doc/guix.texi:19235
  28656. msgid "Defaults to @samp{\"/etc/cups/ssl\"}."
  28657. msgstr ""
  28658. #. type: deftypevr
  28659. #: guix-git/doc/guix.texi:19237
  28660. #, no-wrap
  28661. msgid "{@code{files-configuration} parameter} file-name server-root"
  28662. msgstr ""
  28663. #. type: deftypevr
  28664. #: guix-git/doc/guix.texi:19239
  28665. msgid "Specifies the directory containing the server configuration files."
  28666. msgstr ""
  28667. #. type: deftypevr
  28668. #: guix-git/doc/guix.texi:19241
  28669. msgid "Defaults to @samp{\"/etc/cups\"}."
  28670. msgstr ""
  28671. #. type: deftypevr
  28672. #: guix-git/doc/guix.texi:19243
  28673. #, no-wrap
  28674. msgid "{@code{files-configuration} parameter} boolean sync-on-close?"
  28675. msgstr ""
  28676. #. type: deftypevr
  28677. #: guix-git/doc/guix.texi:19246
  28678. msgid "Specifies whether the scheduler calls fsync(2) after writing configuration or state files."
  28679. msgstr ""
  28680. #. type: deftypevr
  28681. #: guix-git/doc/guix.texi:19250
  28682. #, no-wrap
  28683. msgid "{@code{files-configuration} parameter} space-separated-string-list system-group"
  28684. msgstr ""
  28685. #. type: deftypevr
  28686. #: guix-git/doc/guix.texi:19252
  28687. msgid "Specifies the group(s) to use for @code{@@SYSTEM} group authentication."
  28688. msgstr ""
  28689. #. type: deftypevr
  28690. #: guix-git/doc/guix.texi:19254
  28691. #, no-wrap
  28692. msgid "{@code{files-configuration} parameter} file-name temp-dir"
  28693. msgstr ""
  28694. #. type: deftypevr
  28695. #: guix-git/doc/guix.texi:19256
  28696. msgid "Specifies the directory where temporary files are stored."
  28697. msgstr ""
  28698. #. type: deftypevr
  28699. #: guix-git/doc/guix.texi:19258
  28700. msgid "Defaults to @samp{\"/var/spool/cups/tmp\"}."
  28701. msgstr ""
  28702. #. type: deftypevr
  28703. #: guix-git/doc/guix.texi:19260
  28704. #, no-wrap
  28705. msgid "{@code{files-configuration} parameter} string user"
  28706. msgstr ""
  28707. #. type: deftypevr
  28708. #: guix-git/doc/guix.texi:19263
  28709. msgid "Specifies the user name or ID that is used when running external programs."
  28710. msgstr ""
  28711. #. type: deftypevr
  28712. #: guix-git/doc/guix.texi:19267
  28713. #, no-wrap
  28714. msgid "{@code{files-configuration} parameter} string set-env"
  28715. msgstr ""
  28716. #. type: deftypevr
  28717. #: guix-git/doc/guix.texi:19269
  28718. msgid "Set the specified environment variable to be passed to child processes."
  28719. msgstr ""
  28720. #. type: deftypevr
  28721. #: guix-git/doc/guix.texi:19271
  28722. msgid "Defaults to @samp{\"variable value\"}."
  28723. msgstr ""
  28724. #. type: deftypevr
  28725. #: guix-git/doc/guix.texi:19274
  28726. #, no-wrap
  28727. msgid "{@code{cups-configuration} parameter} access-log-level access-log-level"
  28728. msgstr ""
  28729. #. type: deftypevr
  28730. #: guix-git/doc/guix.texi:19281
  28731. 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."
  28732. msgstr ""
  28733. #. type: deftypevr
  28734. #: guix-git/doc/guix.texi:19283
  28735. msgid "Defaults to @samp{actions}."
  28736. msgstr ""
  28737. #. type: deftypevr
  28738. #: guix-git/doc/guix.texi:19285
  28739. #, no-wrap
  28740. msgid "{@code{cups-configuration} parameter} boolean auto-purge-jobs?"
  28741. msgstr ""
  28742. #. type: deftypevr
  28743. #: guix-git/doc/guix.texi:19288
  28744. msgid "Specifies whether to purge job history data automatically when it is no longer required for quotas."
  28745. msgstr ""
  28746. #. type: deftypevr
  28747. #: guix-git/doc/guix.texi:19292
  28748. #, no-wrap
  28749. msgid "{@code{cups-configuration} parameter} comma-separated-string-list browse-dns-sd-sub-types"
  28750. msgstr ""
  28751. #. type: deftypevr
  28752. #: guix-git/doc/guix.texi:19296
  28753. 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."
  28754. msgstr ""
  28755. #. type: deftypevr
  28756. #: guix-git/doc/guix.texi:19298
  28757. msgid "Defaults to @samp{\"_cups\"}."
  28758. msgstr ""
  28759. #. type: deftypevr
  28760. #: guix-git/doc/guix.texi:19300
  28761. #, no-wrap
  28762. msgid "{@code{cups-configuration} parameter} browse-local-protocols browse-local-protocols"
  28763. msgstr ""
  28764. #. type: deftypevr
  28765. #: guix-git/doc/guix.texi:19302
  28766. msgid "Specifies which protocols to use for local printer sharing."
  28767. msgstr ""
  28768. #. type: deftypevr
  28769. #: guix-git/doc/guix.texi:19304
  28770. msgid "Defaults to @samp{dnssd}."
  28771. msgstr ""
  28772. #. type: deftypevr
  28773. #: guix-git/doc/guix.texi:19306
  28774. #, no-wrap
  28775. msgid "{@code{cups-configuration} parameter} boolean browse-web-if?"
  28776. msgstr ""
  28777. #. type: deftypevr
  28778. #: guix-git/doc/guix.texi:19308
  28779. msgid "Specifies whether the CUPS web interface is advertised."
  28780. msgstr ""
  28781. #. type: deftypevr
  28782. #: guix-git/doc/guix.texi:19312
  28783. #, no-wrap
  28784. msgid "{@code{cups-configuration} parameter} boolean browsing?"
  28785. msgstr ""
  28786. #. type: deftypevr
  28787. #: guix-git/doc/guix.texi:19314
  28788. msgid "Specifies whether shared printers are advertised."
  28789. msgstr ""
  28790. #. type: deftypevr
  28791. #: guix-git/doc/guix.texi:19318
  28792. #, no-wrap
  28793. msgid "{@code{cups-configuration} parameter} string classification"
  28794. msgstr ""
  28795. #. type: deftypevr
  28796. #: guix-git/doc/guix.texi:19323
  28797. 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."
  28798. msgstr ""
  28799. #. type: deftypevr
  28800. #: guix-git/doc/guix.texi:19325 guix-git/doc/guix.texi:19656
  28801. #: guix-git/doc/guix.texi:21639 guix-git/doc/guix.texi:21651
  28802. #: guix-git/doc/guix.texi:21679 guix-git/doc/guix.texi:22436
  28803. #: guix-git/doc/guix.texi:22450 guix-git/doc/guix.texi:22457
  28804. #: guix-git/doc/guix.texi:22464 guix-git/doc/guix.texi:22494
  28805. #: guix-git/doc/guix.texi:22592 guix-git/doc/guix.texi:24711
  28806. #: guix-git/doc/guix.texi:24737 guix-git/doc/guix.texi:24773
  28807. #: guix-git/doc/guix.texi:24819 guix-git/doc/guix.texi:24838
  28808. #: guix-git/doc/guix.texi:24877 guix-git/doc/guix.texi:24936
  28809. #: guix-git/doc/guix.texi:24946 guix-git/doc/guix.texi:29541
  28810. #: guix-git/doc/guix.texi:29549 guix-git/doc/guix.texi:29557
  28811. #: guix-git/doc/guix.texi:29565 guix-git/doc/guix.texi:29844
  28812. #: guix-git/doc/guix.texi:31192 guix-git/doc/guix.texi:31200
  28813. #: guix-git/doc/guix.texi:31208 guix-git/doc/guix.texi:31316
  28814. #: guix-git/doc/guix.texi:31341 guix-git/doc/guix.texi:31472
  28815. #: guix-git/doc/guix.texi:31480 guix-git/doc/guix.texi:31488
  28816. #: guix-git/doc/guix.texi:31496 guix-git/doc/guix.texi:31504
  28817. #: guix-git/doc/guix.texi:31512 guix-git/doc/guix.texi:31535
  28818. #: guix-git/doc/guix.texi:31543 guix-git/doc/guix.texi:31595
  28819. #: guix-git/doc/guix.texi:31611 guix-git/doc/guix.texi:31619
  28820. #: guix-git/doc/guix.texi:31658 guix-git/doc/guix.texi:31681
  28821. #: guix-git/doc/guix.texi:31703 guix-git/doc/guix.texi:31710
  28822. #: guix-git/doc/guix.texi:31745 guix-git/doc/guix.texi:31753
  28823. #: guix-git/doc/guix.texi:31777 guix-git/doc/guix.texi:31809
  28824. #: guix-git/doc/guix.texi:31838 guix-git/doc/guix.texi:31845
  28825. #: guix-git/doc/guix.texi:31852 guix-git/doc/guix.texi:31860
  28826. #: guix-git/doc/guix.texi:31874 guix-git/doc/guix.texi:31883
  28827. #: guix-git/doc/guix.texi:31893 guix-git/doc/guix.texi:31900
  28828. #: guix-git/doc/guix.texi:31907 guix-git/doc/guix.texi:31914
  28829. #: guix-git/doc/guix.texi:31985 guix-git/doc/guix.texi:31992
  28830. #: guix-git/doc/guix.texi:31999 guix-git/doc/guix.texi:32008
  28831. #: guix-git/doc/guix.texi:32024 guix-git/doc/guix.texi:32031
  28832. #: guix-git/doc/guix.texi:32038 guix-git/doc/guix.texi:32045
  28833. #: guix-git/doc/guix.texi:32053 guix-git/doc/guix.texi:32061
  28834. msgid "Defaults to @samp{\"\"}."
  28835. msgstr ""
  28836. #. type: deftypevr
  28837. #: guix-git/doc/guix.texi:19327
  28838. #, no-wrap
  28839. msgid "{@code{cups-configuration} parameter} boolean classify-override?"
  28840. msgstr ""
  28841. #. type: deftypevr
  28842. #: guix-git/doc/guix.texi:19330
  28843. msgid "Specifies whether users may override the classification (cover page) of individual print jobs using the @code{job-sheets} option."
  28844. msgstr ""
  28845. #. type: deftypevr
  28846. #: guix-git/doc/guix.texi:19334
  28847. #, no-wrap
  28848. msgid "{@code{cups-configuration} parameter} default-auth-type default-auth-type"
  28849. msgstr ""
  28850. #. type: deftypevr
  28851. #: guix-git/doc/guix.texi:19336
  28852. msgid "Specifies the default type of authentication to use."
  28853. msgstr ""
  28854. #. type: deftypevr
  28855. #: guix-git/doc/guix.texi:19338
  28856. msgid "Defaults to @samp{Basic}."
  28857. msgstr ""
  28858. #. type: deftypevr
  28859. #: guix-git/doc/guix.texi:19340
  28860. #, no-wrap
  28861. msgid "{@code{cups-configuration} parameter} default-encryption default-encryption"
  28862. msgstr ""
  28863. #. type: deftypevr
  28864. #: guix-git/doc/guix.texi:19342
  28865. msgid "Specifies whether encryption will be used for authenticated requests."
  28866. msgstr ""
  28867. #. type: deftypevr
  28868. #: guix-git/doc/guix.texi:19344
  28869. msgid "Defaults to @samp{Required}."
  28870. msgstr ""
  28871. #. type: deftypevr
  28872. #: guix-git/doc/guix.texi:19346
  28873. #, no-wrap
  28874. msgid "{@code{cups-configuration} parameter} string default-language"
  28875. msgstr ""
  28876. #. type: deftypevr
  28877. #: guix-git/doc/guix.texi:19348
  28878. msgid "Specifies the default language to use for text and web content."
  28879. msgstr ""
  28880. #. type: deftypevr
  28881. #: guix-git/doc/guix.texi:19350
  28882. msgid "Defaults to @samp{\"en\"}."
  28883. msgstr ""
  28884. #. type: deftypevr
  28885. #: guix-git/doc/guix.texi:19352
  28886. #, no-wrap
  28887. msgid "{@code{cups-configuration} parameter} string default-paper-size"
  28888. msgstr ""
  28889. #. type: deftypevr
  28890. #: guix-git/doc/guix.texi:19357
  28891. 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\"}."
  28892. msgstr ""
  28893. #. type: deftypevr
  28894. #: guix-git/doc/guix.texi:19359
  28895. msgid "Defaults to @samp{\"Auto\"}."
  28896. msgstr ""
  28897. #. type: deftypevr
  28898. #: guix-git/doc/guix.texi:19361
  28899. #, no-wrap
  28900. msgid "{@code{cups-configuration} parameter} string default-policy"
  28901. msgstr ""
  28902. #. type: deftypevr
  28903. #: guix-git/doc/guix.texi:19363
  28904. msgid "Specifies the default access policy to use."
  28905. msgstr ""
  28906. #. type: deftypevr
  28907. #: guix-git/doc/guix.texi:19365
  28908. msgid "Defaults to @samp{\"default\"}."
  28909. msgstr ""
  28910. #. type: deftypevr
  28911. #: guix-git/doc/guix.texi:19367
  28912. #, no-wrap
  28913. msgid "{@code{cups-configuration} parameter} boolean default-shared?"
  28914. msgstr ""
  28915. #. type: deftypevr
  28916. #: guix-git/doc/guix.texi:19369
  28917. msgid "Specifies whether local printers are shared by default."
  28918. msgstr ""
  28919. #. type: deftypevr
  28920. #: guix-git/doc/guix.texi:19371 guix-git/doc/guix.texi:19451
  28921. #: guix-git/doc/guix.texi:19741 guix-git/doc/guix.texi:22526
  28922. #: guix-git/doc/guix.texi:22577 guix-git/doc/guix.texi:22584
  28923. #: guix-git/doc/guix.texi:23866 guix-git/doc/guix.texi:24054
  28924. #: guix-git/doc/guix.texi:24171 guix-git/doc/guix.texi:24207
  28925. #: guix-git/doc/guix.texi:24258 guix-git/doc/guix.texi:24277
  28926. #: guix-git/doc/guix.texi:24287 guix-git/doc/guix.texi:24297
  28927. #: guix-git/doc/guix.texi:24356 guix-git/doc/guix.texi:24378
  28928. #: guix-git/doc/guix.texi:24403 guix-git/doc/guix.texi:24429
  28929. #: guix-git/doc/guix.texi:24447 guix-git/doc/guix.texi:27639
  28930. #: guix-git/doc/guix.texi:27667 guix-git/doc/guix.texi:27803
  28931. #: guix-git/doc/guix.texi:27810 guix-git/doc/guix.texi:27818
  28932. #: guix-git/doc/guix.texi:27855 guix-git/doc/guix.texi:27869
  28933. #: guix-git/doc/guix.texi:27958 guix-git/doc/guix.texi:27965
  28934. #: guix-git/doc/guix.texi:27973 guix-git/doc/guix.texi:28749
  28935. #: guix-git/doc/guix.texi:28889 guix-git/doc/guix.texi:29075
  28936. #: guix-git/doc/guix.texi:29082 guix-git/doc/guix.texi:29104
  28937. #: guix-git/doc/guix.texi:29143 guix-git/doc/guix.texi:29163
  28938. #: guix-git/doc/guix.texi:29177 guix-git/doc/guix.texi:29390
  28939. #: guix-git/doc/guix.texi:31294 guix-git/doc/guix.texi:31382
  28940. #: guix-git/doc/guix.texi:31398 guix-git/doc/guix.texi:31448
  28941. msgid "Defaults to @samp{#t}."
  28942. msgstr ""
  28943. #. type: deftypevr
  28944. #: guix-git/doc/guix.texi:19373
  28945. #, no-wrap
  28946. msgid "{@code{cups-configuration} parameter} non-negative-integer dirty-clean-interval"
  28947. msgstr ""
  28948. #. type: deftypevr
  28949. #: guix-git/doc/guix.texi:19377
  28950. 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."
  28951. msgstr ""
  28952. #. type: deftypevr
  28953. #: guix-git/doc/guix.texi:19379 guix-git/doc/guix.texi:19427
  28954. #: guix-git/doc/guix.texi:19436 guix-git/doc/guix.texi:19748
  28955. #: guix-git/doc/guix.texi:24216 guix-git/doc/guix.texi:24249
  28956. msgid "Defaults to @samp{30}."
  28957. msgstr ""
  28958. #. type: deftypevr
  28959. #: guix-git/doc/guix.texi:19381
  28960. #, no-wrap
  28961. msgid "{@code{cups-configuration} parameter} error-policy error-policy"
  28962. msgstr ""
  28963. #. type: deftypevr
  28964. #: guix-git/doc/guix.texi:19387
  28965. 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."
  28966. msgstr ""
  28967. #. type: deftypevr
  28968. #: guix-git/doc/guix.texi:19389
  28969. msgid "Defaults to @samp{stop-printer}."
  28970. msgstr ""
  28971. #. type: deftypevr
  28972. #: guix-git/doc/guix.texi:19391
  28973. #, no-wrap
  28974. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-limit"
  28975. msgstr ""
  28976. #. type: deftypevr
  28977. #: guix-git/doc/guix.texi:19399
  28978. 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."
  28979. msgstr ""
  28980. #. type: deftypevr
  28981. #: guix-git/doc/guix.texi:19401 guix-git/doc/guix.texi:19409
  28982. #: guix-git/doc/guix.texi:19458 guix-git/doc/guix.texi:19574
  28983. #: guix-git/doc/guix.texi:19588 guix-git/doc/guix.texi:19595
  28984. #: guix-git/doc/guix.texi:21081 guix-git/doc/guix.texi:21097
  28985. #: guix-git/doc/guix.texi:21754 guix-git/doc/guix.texi:21766
  28986. #: guix-git/doc/guix.texi:22545 guix-git/doc/guix.texi:22554
  28987. #: guix-git/doc/guix.texi:22562 guix-git/doc/guix.texi:22570
  28988. #: guix-git/doc/guix.texi:28765 guix-git/doc/guix.texi:29090
  28989. #: guix-git/doc/guix.texi:31287 guix-git/doc/guix.texi:31587
  28990. #: guix-git/doc/guix.texi:31761
  28991. msgid "Defaults to @samp{0}."
  28992. msgstr ""
  28993. #. type: deftypevr
  28994. #: guix-git/doc/guix.texi:19403
  28995. #, no-wrap
  28996. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-nice"
  28997. msgstr ""
  28998. #. type: deftypevr
  28999. #: guix-git/doc/guix.texi:19407
  29000. 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."
  29001. msgstr ""
  29002. #. type: deftypevr
  29003. #: guix-git/doc/guix.texi:19411
  29004. #, no-wrap
  29005. msgid "{@code{cups-configuration} parameter} host-name-lookups host-name-lookups"
  29006. msgstr ""
  29007. #. type: deftypevr
  29008. #: guix-git/doc/guix.texi:19418
  29009. 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."
  29010. msgstr ""
  29011. #. type: deftypevr
  29012. #: guix-git/doc/guix.texi:19422
  29013. #, no-wrap
  29014. msgid "{@code{cups-configuration} parameter} non-negative-integer job-kill-delay"
  29015. msgstr ""
  29016. #. type: deftypevr
  29017. #: guix-git/doc/guix.texi:19425
  29018. msgid "Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job."
  29019. msgstr ""
  29020. #. type: deftypevr
  29021. #: guix-git/doc/guix.texi:19429
  29022. #, no-wrap
  29023. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-interval"
  29024. msgstr ""
  29025. #. type: deftypevr
  29026. #: guix-git/doc/guix.texi:19434
  29027. 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}."
  29028. msgstr ""
  29029. #. type: deftypevr
  29030. #: guix-git/doc/guix.texi:19438
  29031. #, no-wrap
  29032. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-limit"
  29033. msgstr ""
  29034. #. type: deftypevr
  29035. #: guix-git/doc/guix.texi:19443
  29036. 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}."
  29037. msgstr ""
  29038. #. type: deftypevr
  29039. #: guix-git/doc/guix.texi:19445 guix-git/doc/guix.texi:24180
  29040. #: guix-git/doc/guix.texi:29642 guix-git/doc/guix.texi:29662
  29041. #: guix-git/doc/guix.texi:29678 guix-git/doc/guix.texi:29692
  29042. #: guix-git/doc/guix.texi:29699 guix-git/doc/guix.texi:29706
  29043. #: guix-git/doc/guix.texi:29713 guix-git/doc/guix.texi:29873
  29044. #: guix-git/doc/guix.texi:29889 guix-git/doc/guix.texi:29896
  29045. #: guix-git/doc/guix.texi:29903 guix-git/doc/guix.texi:29914
  29046. #: guix-git/doc/guix.texi:31239 guix-git/doc/guix.texi:31247
  29047. #: guix-git/doc/guix.texi:31255 guix-git/doc/guix.texi:31279
  29048. msgid "Defaults to @samp{5}."
  29049. msgstr ""
  29050. #. type: deftypevr
  29051. #: guix-git/doc/guix.texi:19447
  29052. #, no-wrap
  29053. msgid "{@code{cups-configuration} parameter} boolean keep-alive?"
  29054. msgstr ""
  29055. #. type: deftypevr
  29056. #: guix-git/doc/guix.texi:19449
  29057. msgid "Specifies whether to support HTTP keep-alive connections."
  29058. msgstr ""
  29059. #. type: deftypevr
  29060. #: guix-git/doc/guix.texi:19453
  29061. #, no-wrap
  29062. msgid "{@code{cups-configuration} parameter} non-negative-integer limit-request-body"
  29063. msgstr ""
  29064. #. type: deftypevr
  29065. #: guix-git/doc/guix.texi:19456
  29066. msgid "Specifies the maximum size of print files, IPP requests, and HTML form data. A limit of 0 disables the limit check."
  29067. msgstr ""
  29068. #. type: deftypevr
  29069. #: guix-git/doc/guix.texi:19460
  29070. #, no-wrap
  29071. msgid "{@code{cups-configuration} parameter} multiline-string-list listen"
  29072. msgstr ""
  29073. #. type: deftypevr
  29074. #: guix-git/doc/guix.texi:19467
  29075. 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."
  29076. msgstr ""
  29077. #. type: deftypevr
  29078. #: guix-git/doc/guix.texi:19469
  29079. #, no-wrap
  29080. msgid "{@code{cups-configuration} parameter} non-negative-integer listen-back-log"
  29081. msgstr ""
  29082. #. type: deftypevr
  29083. #: guix-git/doc/guix.texi:19476
  29084. 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."
  29085. msgstr ""
  29086. #. type: deftypevr
  29087. #: guix-git/doc/guix.texi:19478
  29088. msgid "Defaults to @samp{128}."
  29089. msgstr ""
  29090. #. type: deftypevr
  29091. #: guix-git/doc/guix.texi:19480
  29092. #, no-wrap
  29093. msgid "{@code{cups-configuration} parameter} location-access-control-list location-access-controls"
  29094. msgstr ""
  29095. #. type: deftypevr
  29096. #: guix-git/doc/guix.texi:19482
  29097. msgid "Specifies a set of additional access controls."
  29098. msgstr ""
  29099. #. type: deftypevr
  29100. #: guix-git/doc/guix.texi:19484
  29101. msgid "Available @code{location-access-controls} fields are:"
  29102. msgstr ""
  29103. #. type: deftypevr
  29104. #: guix-git/doc/guix.texi:19485
  29105. #, no-wrap
  29106. msgid "{@code{location-access-controls} parameter} file-name path"
  29107. msgstr ""
  29108. #. type: deftypevr
  29109. #: guix-git/doc/guix.texi:19487
  29110. msgid "Specifies the URI path to which the access control applies."
  29111. msgstr ""
  29112. #. type: deftypevr
  29113. #: guix-git/doc/guix.texi:19489
  29114. #, no-wrap
  29115. msgid "{@code{location-access-controls} parameter} access-control-list access-controls"
  29116. msgstr ""
  29117. #. type: deftypevr
  29118. #: guix-git/doc/guix.texi:19492
  29119. msgid "Access controls for all access to this path, in the same format as the @code{access-controls} of @code{operation-access-control}."
  29120. msgstr ""
  29121. #. type: deftypevr
  29122. #: guix-git/doc/guix.texi:19494 guix-git/doc/guix.texi:19500
  29123. #: guix-git/doc/guix.texi:19514 guix-git/doc/guix.texi:19521
  29124. #: guix-git/doc/guix.texi:19663 guix-git/doc/guix.texi:19722
  29125. #: guix-git/doc/guix.texi:19800 guix-git/doc/guix.texi:19814
  29126. #: guix-git/doc/guix.texi:20961 guix-git/doc/guix.texi:20970
  29127. #: guix-git/doc/guix.texi:22240 guix-git/doc/guix.texi:22443
  29128. #: guix-git/doc/guix.texi:22471 guix-git/doc/guix.texi:22501
  29129. #: guix-git/doc/guix.texi:22616 guix-git/doc/guix.texi:22629
  29130. #: guix-git/doc/guix.texi:22636 guix-git/doc/guix.texi:24386
  29131. #: guix-git/doc/guix.texi:24781 guix-git/doc/guix.texi:24885
  29132. #: guix-git/doc/guix.texi:25312 guix-git/doc/guix.texi:25320
  29133. #: guix-git/doc/guix.texi:25565 guix-git/doc/guix.texi:27698
  29134. #: guix-git/doc/guix.texi:27876 guix-git/doc/guix.texi:28075
  29135. #: guix-git/doc/guix.texi:29533 guix-git/doc/guix.texi:29593
  29136. #: guix-git/doc/guix.texi:29601 guix-git/doc/guix.texi:31302
  29137. #: guix-git/doc/guix.texi:31309 guix-git/doc/guix.texi:31651
  29138. #: guix-git/doc/guix.texi:31729 guix-git/doc/guix.texi:31823
  29139. #: guix-git/doc/guix.texi:31831 guix-git/doc/guix.texi:31867
  29140. #: guix-git/doc/guix.texi:32017 guix-git/doc/guix.texi:32068
  29141. #: guix-git/doc/guix.texi:32077
  29142. msgid "Defaults to @samp{()}."
  29143. msgstr ""
  29144. #. type: deftypevr
  29145. #: guix-git/doc/guix.texi:19496
  29146. #, no-wrap
  29147. msgid "{@code{location-access-controls} parameter} method-access-control-list method-access-controls"
  29148. msgstr ""
  29149. #. type: deftypevr
  29150. #: guix-git/doc/guix.texi:19498
  29151. msgid "Access controls for method-specific access to this path."
  29152. msgstr ""
  29153. #. type: deftypevr
  29154. #: guix-git/doc/guix.texi:19502
  29155. msgid "Available @code{method-access-controls} fields are:"
  29156. msgstr ""
  29157. #. type: deftypevr
  29158. #: guix-git/doc/guix.texi:19503
  29159. #, no-wrap
  29160. msgid "{@code{method-access-controls} parameter} boolean reverse?"
  29161. msgstr ""
  29162. #. type: deftypevr
  29163. #: guix-git/doc/guix.texi:19506
  29164. msgid "If @code{#t}, apply access controls to all methods except the listed methods. Otherwise apply to only the listed methods."
  29165. msgstr ""
  29166. #. type: deftypevr
  29167. #: guix-git/doc/guix.texi:19510
  29168. #, no-wrap
  29169. msgid "{@code{method-access-controls} parameter} method-list methods"
  29170. msgstr ""
  29171. #. type: deftypevr
  29172. #: guix-git/doc/guix.texi:19512
  29173. msgid "Methods to which this access control applies."
  29174. msgstr ""
  29175. #. type: deftypevr
  29176. #: guix-git/doc/guix.texi:19516
  29177. #, no-wrap
  29178. msgid "{@code{method-access-controls} parameter} access-control-list access-controls"
  29179. msgstr ""
  29180. #. type: deftypevr
  29181. #: guix-git/doc/guix.texi:19519
  29182. msgid "Access control directives, as a list of strings. Each string should be one directive, such as @samp{\"Order allow,deny\"}."
  29183. msgstr ""
  29184. #. type: deftypevr
  29185. #: guix-git/doc/guix.texi:19525
  29186. #, no-wrap
  29187. msgid "{@code{cups-configuration} parameter} non-negative-integer log-debug-history"
  29188. msgstr ""
  29189. #. type: deftypevr
  29190. #: guix-git/doc/guix.texi:19529
  29191. 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."
  29192. msgstr ""
  29193. #. type: deftypevr
  29194. #: guix-git/doc/guix.texi:19531 guix-git/doc/guix.texi:19552
  29195. #: guix-git/doc/guix.texi:19559 guix-git/doc/guix.texi:22000
  29196. #: guix-git/doc/guix.texi:23918 guix-git/doc/guix.texi:23933
  29197. #: guix-git/doc/guix.texi:28060
  29198. msgid "Defaults to @samp{100}."
  29199. msgstr ""
  29200. #. type: deftypevr
  29201. #: guix-git/doc/guix.texi:19533
  29202. #, no-wrap
  29203. msgid "{@code{cups-configuration} parameter} log-level log-level"
  29204. msgstr ""
  29205. #. type: deftypevr
  29206. #: guix-git/doc/guix.texi:19536
  29207. msgid "Specifies the level of logging for the ErrorLog file. The value @code{none} stops all logging while @code{debug2} logs everything."
  29208. msgstr ""
  29209. #. type: deftypevr
  29210. #: guix-git/doc/guix.texi:19538 guix-git/doc/guix.texi:24395
  29211. msgid "Defaults to @samp{info}."
  29212. msgstr ""
  29213. #. type: deftypevr
  29214. #: guix-git/doc/guix.texi:19540
  29215. #, no-wrap
  29216. msgid "{@code{cups-configuration} parameter} log-time-format log-time-format"
  29217. msgstr ""
  29218. #. type: deftypevr
  29219. #: guix-git/doc/guix.texi:19543
  29220. 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."
  29221. msgstr ""
  29222. #. type: deftypevr
  29223. #: guix-git/doc/guix.texi:19545
  29224. msgid "Defaults to @samp{standard}."
  29225. msgstr ""
  29226. #. type: deftypevr
  29227. #: guix-git/doc/guix.texi:19547
  29228. #, no-wrap
  29229. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients"
  29230. msgstr ""
  29231. #. type: deftypevr
  29232. #: guix-git/doc/guix.texi:19550
  29233. msgid "Specifies the maximum number of simultaneous clients that are allowed by the scheduler."
  29234. msgstr ""
  29235. #. type: deftypevr
  29236. #: guix-git/doc/guix.texi:19554
  29237. #, no-wrap
  29238. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients-per-host"
  29239. msgstr ""
  29240. #. type: deftypevr
  29241. #: guix-git/doc/guix.texi:19557
  29242. msgid "Specifies the maximum number of simultaneous clients that are allowed from a single address."
  29243. msgstr ""
  29244. #. type: deftypevr
  29245. #: guix-git/doc/guix.texi:19561
  29246. #, no-wrap
  29247. msgid "{@code{cups-configuration} parameter} non-negative-integer max-copies"
  29248. msgstr ""
  29249. #. type: deftypevr
  29250. #: guix-git/doc/guix.texi:19564
  29251. msgid "Specifies the maximum number of copies that a user can print of each job."
  29252. msgstr ""
  29253. #. type: deftypevr
  29254. #: guix-git/doc/guix.texi:19566
  29255. msgid "Defaults to @samp{9999}."
  29256. msgstr ""
  29257. #. type: deftypevr
  29258. #: guix-git/doc/guix.texi:19568
  29259. #, no-wrap
  29260. msgid "{@code{cups-configuration} parameter} non-negative-integer max-hold-time"
  29261. msgstr ""
  29262. #. type: deftypevr
  29263. #: guix-git/doc/guix.texi:19572
  29264. 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."
  29265. msgstr ""
  29266. #. type: deftypevr
  29267. #: guix-git/doc/guix.texi:19576
  29268. #, no-wrap
  29269. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs"
  29270. msgstr ""
  29271. #. type: deftypevr
  29272. #: guix-git/doc/guix.texi:19579
  29273. msgid "Specifies the maximum number of simultaneous jobs that are allowed. Set to 0 to allow an unlimited number of jobs."
  29274. msgstr ""
  29275. #. type: deftypevr
  29276. #: guix-git/doc/guix.texi:19581
  29277. msgid "Defaults to @samp{500}."
  29278. msgstr ""
  29279. #. type: deftypevr
  29280. #: guix-git/doc/guix.texi:19583
  29281. #, no-wrap
  29282. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-printer"
  29283. msgstr ""
  29284. #. type: deftypevr
  29285. #: guix-git/doc/guix.texi:19586
  29286. msgid "Specifies the maximum number of simultaneous jobs that are allowed per printer. A value of 0 allows up to MaxJobs jobs per printer."
  29287. msgstr ""
  29288. #. type: deftypevr
  29289. #: guix-git/doc/guix.texi:19590
  29290. #, no-wrap
  29291. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-user"
  29292. msgstr ""
  29293. #. type: deftypevr
  29294. #: guix-git/doc/guix.texi:19593
  29295. msgid "Specifies the maximum number of simultaneous jobs that are allowed per user. A value of 0 allows up to MaxJobs jobs per user."
  29296. msgstr ""
  29297. #. type: deftypevr
  29298. #: guix-git/doc/guix.texi:19597
  29299. #, no-wrap
  29300. msgid "{@code{cups-configuration} parameter} non-negative-integer max-job-time"
  29301. msgstr ""
  29302. #. type: deftypevr
  29303. #: guix-git/doc/guix.texi:19600
  29304. 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."
  29305. msgstr ""
  29306. #. type: deftypevr
  29307. #: guix-git/doc/guix.texi:19602
  29308. msgid "Defaults to @samp{10800}."
  29309. msgstr ""
  29310. #. type: deftypevr
  29311. #: guix-git/doc/guix.texi:19604
  29312. #, no-wrap
  29313. msgid "{@code{cups-configuration} parameter} non-negative-integer max-log-size"
  29314. msgstr ""
  29315. #. type: deftypevr
  29316. #: guix-git/doc/guix.texi:19607
  29317. msgid "Specifies the maximum size of the log files before they are rotated, in bytes. The value 0 disables log rotation."
  29318. msgstr ""
  29319. #. type: deftypevr
  29320. #: guix-git/doc/guix.texi:19609
  29321. msgid "Defaults to @samp{1048576}."
  29322. msgstr ""
  29323. #. type: deftypevr
  29324. #: guix-git/doc/guix.texi:19611
  29325. #, no-wrap
  29326. msgid "{@code{cups-configuration} parameter} non-negative-integer multiple-operation-timeout"
  29327. msgstr ""
  29328. #. type: deftypevr
  29329. #: guix-git/doc/guix.texi:19614
  29330. msgid "Specifies the maximum amount of time to allow between files in a multiple file print job, in seconds."
  29331. msgstr ""
  29332. #. type: deftypevr
  29333. #: guix-git/doc/guix.texi:19616 guix-git/doc/guix.texi:19827
  29334. msgid "Defaults to @samp{900}."
  29335. msgstr ""
  29336. #. type: deftypevr
  29337. #: guix-git/doc/guix.texi:19618
  29338. #, no-wrap
  29339. msgid "{@code{cups-configuration} parameter} string page-log-format"
  29340. msgstr ""
  29341. #. type: deftypevr
  29342. #: guix-git/doc/guix.texi:19623
  29343. 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:"
  29344. msgstr ""
  29345. #. type: item
  29346. #: guix-git/doc/guix.texi:19625
  29347. #, no-wrap
  29348. msgid "%%"
  29349. msgstr ""
  29350. #. type: table
  29351. #: guix-git/doc/guix.texi:19627
  29352. msgid "insert a single percent character"
  29353. msgstr ""
  29354. #. type: item
  29355. #: guix-git/doc/guix.texi:19628
  29356. #, no-wrap
  29357. msgid "%@{name@}"
  29358. msgstr ""
  29359. #. type: table
  29360. #: guix-git/doc/guix.texi:19630
  29361. msgid "insert the value of the specified IPP attribute"
  29362. msgstr ""
  29363. #. type: item
  29364. #: guix-git/doc/guix.texi:19631
  29365. #, no-wrap
  29366. msgid "%C"
  29367. msgstr ""
  29368. #. type: table
  29369. #: guix-git/doc/guix.texi:19633
  29370. msgid "insert the number of copies for the current page"
  29371. msgstr ""
  29372. #. type: item
  29373. #: guix-git/doc/guix.texi:19634
  29374. #, no-wrap
  29375. msgid "%P"
  29376. msgstr ""
  29377. #. type: table
  29378. #: guix-git/doc/guix.texi:19636
  29379. msgid "insert the current page number"
  29380. msgstr ""
  29381. #. type: item
  29382. #: guix-git/doc/guix.texi:19637
  29383. #, no-wrap
  29384. msgid "%T"
  29385. msgstr ""
  29386. #. type: table
  29387. #: guix-git/doc/guix.texi:19639
  29388. msgid "insert the current date and time in common log format"
  29389. msgstr ""
  29390. #. type: item
  29391. #: guix-git/doc/guix.texi:19640
  29392. #, no-wrap
  29393. msgid "%j"
  29394. msgstr ""
  29395. #. type: table
  29396. #: guix-git/doc/guix.texi:19642
  29397. msgid "insert the job ID"
  29398. msgstr ""
  29399. #. type: item
  29400. #: guix-git/doc/guix.texi:19643 guix-git/doc/guix.texi:21599
  29401. #, no-wrap
  29402. msgid "%p"
  29403. msgstr ""
  29404. #. type: table
  29405. #: guix-git/doc/guix.texi:19645
  29406. msgid "insert the printer name"
  29407. msgstr ""
  29408. #. type: item
  29409. #: guix-git/doc/guix.texi:19646 guix-git/doc/guix.texi:21622
  29410. #, no-wrap
  29411. msgid "%u"
  29412. msgstr ""
  29413. #. type: table
  29414. #: guix-git/doc/guix.texi:19648
  29415. msgid "insert the username"
  29416. msgstr ""
  29417. #. type: deftypevr
  29418. #: guix-git/doc/guix.texi:19654
  29419. 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."
  29420. msgstr ""
  29421. #. type: deftypevr
  29422. #: guix-git/doc/guix.texi:19658
  29423. #, no-wrap
  29424. msgid "{@code{cups-configuration} parameter} environment-variables environment-variables"
  29425. msgstr ""
  29426. #. type: deftypevr
  29427. #: guix-git/doc/guix.texi:19661
  29428. msgid "Passes the specified environment variable(s) to child processes; a list of strings."
  29429. msgstr ""
  29430. #. type: deftypevr
  29431. #: guix-git/doc/guix.texi:19665
  29432. #, no-wrap
  29433. msgid "{@code{cups-configuration} parameter} policy-configuration-list policies"
  29434. msgstr ""
  29435. #. type: deftypevr
  29436. #: guix-git/doc/guix.texi:19667
  29437. msgid "Specifies named access control policies."
  29438. msgstr ""
  29439. #. type: deftypevr
  29440. #: guix-git/doc/guix.texi:19669
  29441. msgid "Available @code{policy-configuration} fields are:"
  29442. msgstr ""
  29443. #. type: deftypevr
  29444. #: guix-git/doc/guix.texi:19670
  29445. #, no-wrap
  29446. msgid "{@code{policy-configuration} parameter} string name"
  29447. msgstr ""
  29448. #. type: deftypevr
  29449. #: guix-git/doc/guix.texi:19672
  29450. msgid "Name of the policy."
  29451. msgstr ""
  29452. #. type: deftypevr
  29453. #: guix-git/doc/guix.texi:19674
  29454. #, no-wrap
  29455. msgid "{@code{policy-configuration} parameter} string job-private-access"
  29456. msgstr ""
  29457. #. type: deftypevr
  29458. #: guix-git/doc/guix.texi:19684
  29459. 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}."
  29460. msgstr ""
  29461. #. type: deftypevr
  29462. #: guix-git/doc/guix.texi:19686 guix-git/doc/guix.texi:19708
  29463. msgid "Defaults to @samp{\"@@OWNER @@SYSTEM\"}."
  29464. msgstr ""
  29465. #. type: deftypevr
  29466. #: guix-git/doc/guix.texi:19688
  29467. #, no-wrap
  29468. msgid "{@code{policy-configuration} parameter} string job-private-values"
  29469. msgstr ""
  29470. #. type: deftypevr
  29471. #: guix-git/doc/guix.texi:19691 guix-git/doc/guix.texi:19713
  29472. msgid "Specifies the list of job values to make private, or @code{all}, @code{default}, or @code{none}."
  29473. msgstr ""
  29474. #. type: deftypevr
  29475. #: guix-git/doc/guix.texi:19694
  29476. msgid "Defaults to @samp{\"job-name job-originating-host-name job-originating-user-name phone\"}."
  29477. msgstr ""
  29478. #. type: deftypevr
  29479. #: guix-git/doc/guix.texi:19696
  29480. #, no-wrap
  29481. msgid "{@code{policy-configuration} parameter} string subscription-private-access"
  29482. msgstr ""
  29483. #. type: deftypevr
  29484. #: guix-git/doc/guix.texi:19706
  29485. 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}."
  29486. msgstr ""
  29487. #. type: deftypevr
  29488. #: guix-git/doc/guix.texi:19710
  29489. #, no-wrap
  29490. msgid "{@code{policy-configuration} parameter} string subscription-private-values"
  29491. msgstr ""
  29492. #. type: deftypevr
  29493. #: guix-git/doc/guix.texi:19716
  29494. msgid "Defaults to @samp{\"notify-events notify-pull-method notify-recipient-uri notify-subscriber-user-name notify-user-data\"}."
  29495. msgstr ""
  29496. #. type: deftypevr
  29497. #: guix-git/doc/guix.texi:19718
  29498. #, no-wrap
  29499. msgid "{@code{policy-configuration} parameter} operation-access-control-list access-controls"
  29500. msgstr ""
  29501. #. type: deftypevr
  29502. #: guix-git/doc/guix.texi:19720
  29503. msgid "Access control by IPP operation."
  29504. msgstr ""
  29505. #. type: deftypevr
  29506. #: guix-git/doc/guix.texi:19725
  29507. #, no-wrap
  29508. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-files"
  29509. msgstr ""
  29510. #. type: deftypevr
  29511. #: guix-git/doc/guix.texi:19730
  29512. 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."
  29513. msgstr ""
  29514. #. type: deftypevr
  29515. #: guix-git/doc/guix.texi:19732
  29516. msgid "Defaults to @samp{86400}."
  29517. msgstr ""
  29518. #. type: deftypevr
  29519. #: guix-git/doc/guix.texi:19734
  29520. #, no-wrap
  29521. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-history"
  29522. msgstr ""
  29523. #. type: deftypevr
  29524. #: guix-git/doc/guix.texi:19739
  29525. 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."
  29526. msgstr ""
  29527. #. type: deftypevr
  29528. #: guix-git/doc/guix.texi:19743
  29529. #, no-wrap
  29530. msgid "{@code{cups-configuration} parameter} non-negative-integer reload-timeout"
  29531. msgstr ""
  29532. #. type: deftypevr
  29533. #: guix-git/doc/guix.texi:19746
  29534. msgid "Specifies the amount of time to wait for job completion before restarting the scheduler."
  29535. msgstr ""
  29536. #. type: deftypevr
  29537. #: guix-git/doc/guix.texi:19750
  29538. #, no-wrap
  29539. msgid "{@code{cups-configuration} parameter} string rip-cache"
  29540. msgstr ""
  29541. #. type: deftypevr
  29542. #: guix-git/doc/guix.texi:19753
  29543. msgid "Specifies the maximum amount of memory to use when converting documents into bitmaps for a printer."
  29544. msgstr ""
  29545. #. type: deftypevr
  29546. #: guix-git/doc/guix.texi:19755
  29547. msgid "Defaults to @samp{\"128m\"}."
  29548. msgstr ""
  29549. #. type: deftypevr
  29550. #: guix-git/doc/guix.texi:19757
  29551. #, no-wrap
  29552. msgid "{@code{cups-configuration} parameter} string server-admin"
  29553. msgstr ""
  29554. #. type: deftypevr
  29555. #: guix-git/doc/guix.texi:19759
  29556. msgid "Specifies the email address of the server administrator."
  29557. msgstr ""
  29558. #. type: deftypevr
  29559. #: guix-git/doc/guix.texi:19761
  29560. msgid "Defaults to @samp{\"root@@localhost.localdomain\"}."
  29561. msgstr ""
  29562. #. type: deftypevr
  29563. #: guix-git/doc/guix.texi:19763
  29564. #, no-wrap
  29565. msgid "{@code{cups-configuration} parameter} host-name-list-or-* server-alias"
  29566. msgstr ""
  29567. #. type: deftypevr
  29568. #: guix-git/doc/guix.texi:19771
  29569. 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{*}."
  29570. msgstr ""
  29571. #. type: deftypevr
  29572. #: guix-git/doc/guix.texi:19773
  29573. msgid "Defaults to @samp{*}."
  29574. msgstr ""
  29575. #. type: deftypevr
  29576. #: guix-git/doc/guix.texi:19775
  29577. #, no-wrap
  29578. msgid "{@code{cups-configuration} parameter} string server-name"
  29579. msgstr ""
  29580. #. type: deftypevr
  29581. #: guix-git/doc/guix.texi:19777
  29582. msgid "Specifies the fully-qualified host name of the server."
  29583. msgstr ""
  29584. #. type: deftypevr
  29585. #: guix-git/doc/guix.texi:19779 guix-git/doc/guix.texi:24908
  29586. #: guix-git/doc/guix.texi:24953
  29587. msgid "Defaults to @samp{\"localhost\"}."
  29588. msgstr ""
  29589. #. type: deftypevr
  29590. #: guix-git/doc/guix.texi:19781
  29591. #, no-wrap
  29592. msgid "{@code{cups-configuration} parameter} server-tokens server-tokens"
  29593. msgstr ""
  29594. #. type: deftypevr
  29595. #: guix-git/doc/guix.texi:19789
  29596. 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}."
  29597. msgstr ""
  29598. #. type: deftypevr
  29599. #: guix-git/doc/guix.texi:19791
  29600. msgid "Defaults to @samp{Minimal}."
  29601. msgstr ""
  29602. #. type: deftypevr
  29603. #: guix-git/doc/guix.texi:19793
  29604. #, no-wrap
  29605. msgid "{@code{cups-configuration} parameter} multiline-string-list ssl-listen"
  29606. msgstr ""
  29607. #. type: deftypevr
  29608. #: guix-git/doc/guix.texi:19798
  29609. 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."
  29610. msgstr ""
  29611. #. type: deftypevr
  29612. #: guix-git/doc/guix.texi:19802
  29613. #, no-wrap
  29614. msgid "{@code{cups-configuration} parameter} ssl-options ssl-options"
  29615. msgstr ""
  29616. #. type: deftypevr
  29617. #: guix-git/doc/guix.texi:19812
  29618. 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."
  29619. msgstr ""
  29620. #. type: deftypevr
  29621. #: guix-git/doc/guix.texi:19816
  29622. #, no-wrap
  29623. msgid "{@code{cups-configuration} parameter} boolean strict-conformance?"
  29624. msgstr ""
  29625. #. type: deftypevr
  29626. #: guix-git/doc/guix.texi:19819
  29627. msgid "Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications."
  29628. msgstr ""
  29629. #. type: deftypevr
  29630. #: guix-git/doc/guix.texi:19823
  29631. #, no-wrap
  29632. msgid "{@code{cups-configuration} parameter} non-negative-integer timeout"
  29633. msgstr ""
  29634. #. type: deftypevr
  29635. #: guix-git/doc/guix.texi:19825
  29636. msgid "Specifies the HTTP request timeout, in seconds."
  29637. msgstr ""
  29638. #. type: deftypevr
  29639. #: guix-git/doc/guix.texi:19830
  29640. #, no-wrap
  29641. msgid "{@code{cups-configuration} parameter} boolean web-interface?"
  29642. msgstr ""
  29643. #. type: deftypevr
  29644. #: guix-git/doc/guix.texi:19832
  29645. msgid "Specifies whether the web interface is enabled."
  29646. msgstr ""
  29647. #. type: Plain text
  29648. #: guix-git/doc/guix.texi:19842
  29649. 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}."
  29650. msgstr ""
  29651. #. type: Plain text
  29652. #: guix-git/doc/guix.texi:19844
  29653. msgid "Available @code{opaque-cups-configuration} fields are:"
  29654. msgstr ""
  29655. #. type: deftypevr
  29656. #: guix-git/doc/guix.texi:19845
  29657. #, no-wrap
  29658. msgid "{@code{opaque-cups-configuration} parameter} package cups"
  29659. msgstr ""
  29660. #. type: deftypevr
  29661. #: guix-git/doc/guix.texi:19849
  29662. #, no-wrap
  29663. msgid "{@code{opaque-cups-configuration} parameter} string cupsd.conf"
  29664. msgstr ""
  29665. #. type: deftypevr
  29666. #: guix-git/doc/guix.texi:19851
  29667. msgid "The contents of the @code{cupsd.conf}, as a string."
  29668. msgstr ""
  29669. #. type: deftypevr
  29670. #: guix-git/doc/guix.texi:19853
  29671. #, no-wrap
  29672. msgid "{@code{opaque-cups-configuration} parameter} string cups-files.conf"
  29673. msgstr ""
  29674. #. type: deftypevr
  29675. #: guix-git/doc/guix.texi:19855
  29676. msgid "The contents of the @code{cups-files.conf} file, as a string."
  29677. msgstr ""
  29678. #. type: Plain text
  29679. #: guix-git/doc/guix.texi:19860
  29680. 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:"
  29681. msgstr ""
  29682. #. type: lisp
  29683. #: guix-git/doc/guix.texi:19866
  29684. #, no-wrap
  29685. msgid ""
  29686. "(service cups-service-type\n"
  29687. " (opaque-cups-configuration\n"
  29688. " (cupsd.conf cupsd.conf)\n"
  29689. " (cups-files.conf cups-files.conf)))\n"
  29690. msgstr ""
  29691. #. type: Plain text
  29692. #: guix-git/doc/guix.texi:19877
  29693. 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."
  29694. msgstr ""
  29695. #. type: Plain text
  29696. #: guix-git/doc/guix.texi:19881
  29697. 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:"
  29698. msgstr ""
  29699. #. type: defvr
  29700. #: guix-git/doc/guix.texi:19882
  29701. #, no-wrap
  29702. msgid "{Scheme Variable} %desktop-services"
  29703. msgstr ""
  29704. #. type: defvr
  29705. #: guix-git/doc/guix.texi:19885
  29706. msgid "This is a list of services that builds upon @code{%base-services} and adds or adjusts services for a typical ``desktop'' setup."
  29707. msgstr ""
  29708. #. type: defvr
  29709. #: guix-git/doc/guix.texi:19896
  29710. 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})."
  29711. msgstr ""
  29712. #. type: Plain text
  29713. #: guix-git/doc/guix.texi:19901
  29714. 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}})."
  29715. msgstr ""
  29716. #. type: Plain text
  29717. #: guix-git/doc/guix.texi:19924
  29718. 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."
  29719. msgstr ""
  29720. #. type: Plain text
  29721. #: guix-git/doc/guix.texi:19933
  29722. 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."
  29723. msgstr ""
  29724. #. type: defvr
  29725. #: guix-git/doc/guix.texi:19934
  29726. #, no-wrap
  29727. msgid "{Scheme Variable} gnome-desktop-service-type"
  29728. msgstr ""
  29729. #. type: defvr
  29730. #: guix-git/doc/guix.texi:19938
  29731. 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)."
  29732. msgstr ""
  29733. #. type: defvr
  29734. #: guix-git/doc/guix.texi:19941
  29735. msgid "This service adds the @code{gnome} package to the system profile, and extends polkit with the actions from @code{gnome-settings-daemon}."
  29736. msgstr ""
  29737. #. type: deftp
  29738. #: guix-git/doc/guix.texi:19943
  29739. #, no-wrap
  29740. msgid "{Data Type} gnome-desktop-configuration"
  29741. msgstr ""
  29742. #. type: deftp
  29743. #: guix-git/doc/guix.texi:19945
  29744. msgid "Configuration record for the GNOME desktop environment."
  29745. msgstr ""
  29746. #. type: item
  29747. #: guix-git/doc/guix.texi:19947
  29748. #, no-wrap
  29749. msgid "@code{gnome} (default: @code{gnome})"
  29750. msgstr "@code{gnome}(默认值:@code{gnome})"
  29751. #. type: table
  29752. #: guix-git/doc/guix.texi:19949
  29753. msgid "The GNOME package to use."
  29754. msgstr ""
  29755. #. type: defvr
  29756. #: guix-git/doc/guix.texi:19952
  29757. #, no-wrap
  29758. msgid "{Scheme Variable} xfce-desktop-service-type"
  29759. msgstr ""
  29760. #. type: defvr
  29761. #: guix-git/doc/guix.texi:19956
  29762. 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)."
  29763. msgstr ""
  29764. #. type: defvr
  29765. #: guix-git/doc/guix.texi:19961
  29766. 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."
  29767. msgstr ""
  29768. #. type: defvr
  29769. #: guix-git/doc/guix.texi:19967
  29770. 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}."
  29771. msgstr ""
  29772. #. type: deftp
  29773. #: guix-git/doc/guix.texi:19969
  29774. #, no-wrap
  29775. msgid "{Data Type} xfce-desktop-configuration"
  29776. msgstr ""
  29777. #. type: deftp
  29778. #: guix-git/doc/guix.texi:19971
  29779. msgid "Configuration record for the Xfce desktop environment."
  29780. msgstr ""
  29781. #. type: item
  29782. #: guix-git/doc/guix.texi:19973
  29783. #, no-wrap
  29784. msgid "@code{xfce} (default: @code{xfce})"
  29785. msgstr "@code{xfce}(默认值:@code{xfce})"
  29786. #. type: table
  29787. #: guix-git/doc/guix.texi:19975
  29788. msgid "The Xfce package to use."
  29789. msgstr ""
  29790. #. type: deffn
  29791. #: guix-git/doc/guix.texi:19978
  29792. #, no-wrap
  29793. msgid "{Scheme Variable} mate-desktop-service-type"
  29794. msgstr ""
  29795. #. type: deffn
  29796. #: guix-git/doc/guix.texi:19982
  29797. 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)."
  29798. msgstr ""
  29799. #. type: deffn
  29800. #: guix-git/doc/guix.texi:19986
  29801. msgid "This service adds the @code{mate} package to the system profile, and extends polkit with the actions from @code{mate-settings-daemon}."
  29802. msgstr ""
  29803. #. type: deftp
  29804. #: guix-git/doc/guix.texi:19988
  29805. #, no-wrap
  29806. msgid "{Data Type} mate-desktop-configuration"
  29807. msgstr ""
  29808. #. type: deftp
  29809. #: guix-git/doc/guix.texi:19990
  29810. msgid "Configuration record for the MATE desktop environment."
  29811. msgstr ""
  29812. #. type: item
  29813. #: guix-git/doc/guix.texi:19992
  29814. #, no-wrap
  29815. msgid "@code{mate} (default: @code{mate})"
  29816. msgstr "@code{mate}(默认值:@code{mate})"
  29817. #. type: table
  29818. #: guix-git/doc/guix.texi:19994
  29819. msgid "The MATE package to use."
  29820. msgstr ""
  29821. #. type: deffn
  29822. #: guix-git/doc/guix.texi:19997
  29823. #, no-wrap
  29824. msgid "{Scheme Variable} lxqt-desktop-service-type"
  29825. msgstr ""
  29826. #. type: deffn
  29827. #: guix-git/doc/guix.texi:20001
  29828. 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)."
  29829. msgstr ""
  29830. #. type: deffn
  29831. #: guix-git/doc/guix.texi:20004
  29832. msgid "This service adds the @code{lxqt} package to the system profile."
  29833. msgstr ""
  29834. #. type: deftp
  29835. #: guix-git/doc/guix.texi:20006
  29836. #, no-wrap
  29837. msgid "{Data Type} lxqt-desktop-configuration"
  29838. msgstr ""
  29839. #. type: deftp
  29840. #: guix-git/doc/guix.texi:20008
  29841. msgid "Configuration record for the LXQt desktop environment."
  29842. msgstr ""
  29843. #. type: item
  29844. #: guix-git/doc/guix.texi:20010
  29845. #, fuzzy, no-wrap
  29846. msgid "@code{lxqt} (default: @code{lxqt})"
  29847. msgstr "@code{xfce}(默认值:@code{xfce})"
  29848. #. type: table
  29849. #: guix-git/doc/guix.texi:20012
  29850. #, fuzzy
  29851. msgid "The LXQT package to use."
  29852. msgstr "软件包数据类型。"
  29853. #. type: deffn
  29854. #: guix-git/doc/guix.texi:20015
  29855. #, no-wrap
  29856. msgid "{Scheme Variable} enlightenment-desktop-service-type"
  29857. msgstr ""
  29858. #. type: deffn
  29859. #: guix-git/doc/guix.texi:20018
  29860. msgid "Return a service that adds the @code{enlightenment} package to the system profile, and extends dbus with actions from @code{efl}."
  29861. msgstr ""
  29862. #. type: deftp
  29863. #: guix-git/doc/guix.texi:20020
  29864. #, no-wrap
  29865. msgid "{Data Type} enlightenment-desktop-service-configuration"
  29866. msgstr ""
  29867. #. type: item
  29868. #: guix-git/doc/guix.texi:20022
  29869. #, no-wrap
  29870. msgid "@code{enlightenment} (default: @code{enlightenment})"
  29871. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  29872. #. type: table
  29873. #: guix-git/doc/guix.texi:20024
  29874. msgid "The enlightenment package to use."
  29875. msgstr ""
  29876. #. type: Plain text
  29877. #: guix-git/doc/guix.texi:20032
  29878. 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}:"
  29879. msgstr ""
  29880. #. type: lisp
  29881. #: guix-git/doc/guix.texi:20043
  29882. #, no-wrap
  29883. msgid ""
  29884. "(use-modules (gnu))\n"
  29885. "(use-service-modules desktop)\n"
  29886. "(operating-system\n"
  29887. " ...\n"
  29888. " ;; cons* adds items to the list given as its last argument.\n"
  29889. " (services (cons* (service gnome-desktop-service-type)\n"
  29890. " (service xfce-desktop-service)\n"
  29891. " %desktop-services))\n"
  29892. " ...)\n"
  29893. msgstr ""
  29894. #. type: Plain text
  29895. #: guix-git/doc/guix.texi:20047
  29896. msgid "These desktop environments will then be available as options in the graphical login window."
  29897. msgstr ""
  29898. #. type: Plain text
  29899. #: guix-git/doc/guix.texi:20051
  29900. 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."
  29901. msgstr ""
  29902. #. type: deffn
  29903. #: guix-git/doc/guix.texi:20052
  29904. #, no-wrap
  29905. msgid "{Scheme Procedure} dbus-service [#:dbus @var{dbus}] [#:services '()]"
  29906. msgstr ""
  29907. #. type: deffn
  29908. #: guix-git/doc/guix.texi:20055
  29909. msgid "Return a service that runs the ``system bus'', using @var{dbus}, with support for @var{services}."
  29910. msgstr ""
  29911. #. type: deffn
  29912. #: guix-git/doc/guix.texi:20059
  29913. 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."
  29914. msgstr ""
  29915. #. type: deffn
  29916. #: guix-git/doc/guix.texi:20064
  29917. 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)}."
  29918. msgstr ""
  29919. #. type: deffn
  29920. #: guix-git/doc/guix.texi:20066
  29921. #, no-wrap
  29922. msgid "{Scheme Procedure} elogind-service [#:config @var{config}]"
  29923. msgstr ""
  29924. #. type: deffn
  29925. #: guix-git/doc/guix.texi:20072
  29926. 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."
  29927. msgstr ""
  29928. #. type: deffn
  29929. #: guix-git/doc/guix.texi:20076
  29930. 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."
  29931. msgstr ""
  29932. #. type: deffn
  29933. #: guix-git/doc/guix.texi:20081
  29934. 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:"
  29935. msgstr ""
  29936. #. type: item
  29937. #: guix-git/doc/guix.texi:20083
  29938. #, no-wrap
  29939. msgid "kill-user-processes?"
  29940. msgstr ""
  29941. #. type: code{#1}
  29942. #: guix-git/doc/guix.texi:20085 guix-git/doc/guix.texi:20105
  29943. #: guix-git/doc/guix.texi:20107 guix-git/doc/guix.texi:20109
  29944. #: guix-git/doc/guix.texi:20121
  29945. msgid "#f"
  29946. msgstr ""
  29947. #. type: item
  29948. #: guix-git/doc/guix.texi:20085
  29949. #, no-wrap
  29950. msgid "kill-only-users"
  29951. msgstr ""
  29952. #. type: code{#1}
  29953. #: guix-git/doc/guix.texi:20087 guix-git/doc/guix.texi:20127
  29954. msgid "()"
  29955. msgstr ""
  29956. #. type: item
  29957. #: guix-git/doc/guix.texi:20087
  29958. #, no-wrap
  29959. msgid "kill-exclude-users"
  29960. msgstr ""
  29961. #. type: code{#1}
  29962. #: guix-git/doc/guix.texi:20089
  29963. msgid "(\"root\")"
  29964. msgstr ""
  29965. #. type: item
  29966. #: guix-git/doc/guix.texi:20089
  29967. #, no-wrap
  29968. msgid "inhibit-delay-max-seconds"
  29969. msgstr ""
  29970. #. type: code{#1}
  29971. #: guix-git/doc/guix.texi:20091
  29972. msgid "5"
  29973. msgstr ""
  29974. #. type: item
  29975. #: guix-git/doc/guix.texi:20091
  29976. #, no-wrap
  29977. msgid "handle-power-key"
  29978. msgstr ""
  29979. #. type: code{#1}
  29980. #: guix-git/doc/guix.texi:20093
  29981. msgid "poweroff"
  29982. msgstr ""
  29983. #. type: item
  29984. #: guix-git/doc/guix.texi:20093
  29985. #, no-wrap
  29986. msgid "handle-suspend-key"
  29987. msgstr ""
  29988. #. type: code{#1}
  29989. #: guix-git/doc/guix.texi:20095 guix-git/doc/guix.texi:20099
  29990. msgid "suspend"
  29991. msgstr ""
  29992. #. type: item
  29993. #: guix-git/doc/guix.texi:20095
  29994. #, no-wrap
  29995. msgid "handle-hibernate-key"
  29996. msgstr ""
  29997. #. type: code{#1}
  29998. #: guix-git/doc/guix.texi:20097
  29999. msgid "hibernate"
  30000. msgstr ""
  30001. #. type: item
  30002. #: guix-git/doc/guix.texi:20097
  30003. #, no-wrap
  30004. msgid "handle-lid-switch"
  30005. msgstr ""
  30006. #. type: item
  30007. #: guix-git/doc/guix.texi:20099
  30008. #, no-wrap
  30009. msgid "handle-lid-switch-docked"
  30010. msgstr ""
  30011. #. type: code{#1}
  30012. #: guix-git/doc/guix.texi:20101 guix-git/doc/guix.texi:20103
  30013. #: guix-git/doc/guix.texi:20115
  30014. msgid "ignore"
  30015. msgstr ""
  30016. #. type: item
  30017. #: guix-git/doc/guix.texi:20101
  30018. #, no-wrap
  30019. msgid "handle-lid-switch-external-power"
  30020. msgstr ""
  30021. #. type: item
  30022. #: guix-git/doc/guix.texi:20103
  30023. #, no-wrap
  30024. msgid "power-key-ignore-inhibited?"
  30025. msgstr ""
  30026. #. type: item
  30027. #: guix-git/doc/guix.texi:20105
  30028. #, no-wrap
  30029. msgid "suspend-key-ignore-inhibited?"
  30030. msgstr ""
  30031. #. type: item
  30032. #: guix-git/doc/guix.texi:20107
  30033. #, no-wrap
  30034. msgid "hibernate-key-ignore-inhibited?"
  30035. msgstr ""
  30036. #. type: item
  30037. #: guix-git/doc/guix.texi:20109
  30038. #, no-wrap
  30039. msgid "lid-switch-ignore-inhibited?"
  30040. msgstr ""
  30041. #. type: code{#1}
  30042. #: guix-git/doc/guix.texi:20111 guix-git/doc/guix.texi:20123
  30043. msgid "#t"
  30044. msgstr ""
  30045. #. type: item
  30046. #: guix-git/doc/guix.texi:20111
  30047. #, no-wrap
  30048. msgid "holdoff-timeout-seconds"
  30049. msgstr ""
  30050. #. type: code{#1}
  30051. #: guix-git/doc/guix.texi:20113
  30052. msgid "30"
  30053. msgstr ""
  30054. #. type: item
  30055. #: guix-git/doc/guix.texi:20113
  30056. #, no-wrap
  30057. msgid "idle-action"
  30058. msgstr ""
  30059. #. type: item
  30060. #: guix-git/doc/guix.texi:20115
  30061. #, no-wrap
  30062. msgid "idle-action-seconds"
  30063. msgstr ""
  30064. #. type: code{#1}
  30065. #: guix-git/doc/guix.texi:20117
  30066. msgid "(* 30 60)"
  30067. msgstr ""
  30068. #. type: item
  30069. #: guix-git/doc/guix.texi:20117
  30070. #, no-wrap
  30071. msgid "runtime-directory-size-percent"
  30072. msgstr ""
  30073. #. type: code{#1}
  30074. #: guix-git/doc/guix.texi:20119
  30075. msgid "10"
  30076. msgstr ""
  30077. #. type: item
  30078. #: guix-git/doc/guix.texi:20119
  30079. #, no-wrap
  30080. msgid "runtime-directory-size"
  30081. msgstr ""
  30082. #. type: item
  30083. #: guix-git/doc/guix.texi:20121
  30084. #, no-wrap
  30085. msgid "remove-ipc?"
  30086. msgstr ""
  30087. #. type: item
  30088. #: guix-git/doc/guix.texi:20123
  30089. #, no-wrap
  30090. msgid "suspend-state"
  30091. msgstr ""
  30092. #. type: code{#1}
  30093. #: guix-git/doc/guix.texi:20125
  30094. msgid "(\"mem\" \"standby\" \"freeze\")"
  30095. msgstr ""
  30096. #. type: item
  30097. #: guix-git/doc/guix.texi:20125
  30098. #, no-wrap
  30099. msgid "suspend-mode"
  30100. msgstr ""
  30101. #. type: item
  30102. #: guix-git/doc/guix.texi:20127
  30103. #, no-wrap
  30104. msgid "hibernate-state"
  30105. msgstr ""
  30106. #. type: code{#1}
  30107. #: guix-git/doc/guix.texi:20129 guix-git/doc/guix.texi:20133
  30108. msgid "(\"disk\")"
  30109. msgstr ""
  30110. #. type: item
  30111. #: guix-git/doc/guix.texi:20129
  30112. #, no-wrap
  30113. msgid "hibernate-mode"
  30114. msgstr ""
  30115. #. type: code{#1}
  30116. #: guix-git/doc/guix.texi:20131
  30117. msgid "(\"platform\" \"shutdown\")"
  30118. msgstr ""
  30119. #. type: item
  30120. #: guix-git/doc/guix.texi:20131
  30121. #, no-wrap
  30122. msgid "hybrid-sleep-state"
  30123. msgstr ""
  30124. #. type: item
  30125. #: guix-git/doc/guix.texi:20133
  30126. #, no-wrap
  30127. msgid "hybrid-sleep-mode"
  30128. msgstr ""
  30129. #. type: code{#1}
  30130. #: guix-git/doc/guix.texi:20135
  30131. msgid "(\"suspend\" \"platform\" \"shutdown\")"
  30132. msgstr ""
  30133. #. type: deffn
  30134. #: guix-git/doc/guix.texi:20138
  30135. #, no-wrap
  30136. msgid "{Scheme Procedure} accountsservice-service @"
  30137. msgstr ""
  30138. #. type: deffn
  30139. #: guix-git/doc/guix.texi:20146
  30140. 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."
  30141. msgstr ""
  30142. #. type: deffn
  30143. #: guix-git/doc/guix.texi:20149
  30144. msgid "The @var{accountsservice} keyword argument is the @code{accountsservice} package to expose as a service."
  30145. msgstr ""
  30146. #. type: deffn
  30147. #: guix-git/doc/guix.texi:20151
  30148. #, no-wrap
  30149. msgid "{Scheme Procedure} polkit-service @"
  30150. msgstr ""
  30151. #. type: deffn
  30152. #: guix-git/doc/guix.texi:20160
  30153. 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."
  30154. msgstr ""
  30155. #. type: defvr
  30156. #: guix-git/doc/guix.texi:20162
  30157. #, no-wrap
  30158. msgid "{Scheme Variable} polkit-wheel-service"
  30159. msgstr ""
  30160. #. type: defvr
  30161. #: guix-git/doc/guix.texi:20167
  30162. 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}."
  30163. msgstr ""
  30164. #. type: defvr
  30165. #: guix-git/doc/guix.texi:20169
  30166. #, no-wrap
  30167. msgid "{Scheme Variable} upower-service-type"
  30168. msgstr ""
  30169. #. type: defvr
  30170. #: guix-git/doc/guix.texi:20173
  30171. 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."
  30172. msgstr ""
  30173. #. type: defvr
  30174. #: guix-git/doc/guix.texi:20176
  30175. msgid "It implements the @code{org.freedesktop.UPower} D-Bus interface, and is notably used by GNOME."
  30176. msgstr ""
  30177. #. type: deftp
  30178. #: guix-git/doc/guix.texi:20178
  30179. #, no-wrap
  30180. msgid "{Data Type} upower-configuration"
  30181. msgstr ""
  30182. #. type: deftp
  30183. #: guix-git/doc/guix.texi:20180
  30184. msgid "Data type representation the configuration for UPower."
  30185. msgstr ""
  30186. #. type: item
  30187. #: guix-git/doc/guix.texi:20183
  30188. #, no-wrap
  30189. msgid "@code{upower} (default: @var{upower})"
  30190. msgstr ""
  30191. #. type: table
  30192. #: guix-git/doc/guix.texi:20185
  30193. msgid "Package to use for @code{upower}."
  30194. msgstr ""
  30195. #. type: item
  30196. #: guix-git/doc/guix.texi:20186
  30197. #, no-wrap
  30198. msgid "@code{watts-up-pro?} (default: @code{#f})"
  30199. msgstr ""
  30200. #. type: table
  30201. #: guix-git/doc/guix.texi:20188
  30202. msgid "Enable the Watts Up Pro device."
  30203. msgstr ""
  30204. #. type: item
  30205. #: guix-git/doc/guix.texi:20189
  30206. #, no-wrap
  30207. msgid "@code{poll-batteries?} (default: @code{#t})"
  30208. msgstr ""
  30209. #. type: table
  30210. #: guix-git/doc/guix.texi:20191
  30211. msgid "Enable polling the kernel for battery level changes."
  30212. msgstr ""
  30213. #. type: item
  30214. #: guix-git/doc/guix.texi:20192
  30215. #, no-wrap
  30216. msgid "@code{ignore-lid?} (default: @code{#f})"
  30217. msgstr ""
  30218. #. type: table
  30219. #: guix-git/doc/guix.texi:20194
  30220. msgid "Ignore the lid state, this can be useful if it's incorrect on a device."
  30221. msgstr ""
  30222. #. type: item
  30223. #: guix-git/doc/guix.texi:20195
  30224. #, no-wrap
  30225. msgid "@code{use-percentage-for-policy?} (default: @code{#f})"
  30226. msgstr ""
  30227. #. type: table
  30228. #: guix-git/doc/guix.texi:20198
  30229. 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."
  30230. msgstr ""
  30231. #. type: item
  30232. #: guix-git/doc/guix.texi:20199
  30233. #, no-wrap
  30234. msgid "@code{percentage-low} (default: @code{10})"
  30235. msgstr ""
  30236. #. type: table
  30237. #: guix-git/doc/guix.texi:20202
  30238. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered low."
  30239. msgstr ""
  30240. #. type: item
  30241. #: guix-git/doc/guix.texi:20203
  30242. #, no-wrap
  30243. msgid "@code{percentage-critical} (default: @code{3})"
  30244. msgstr ""
  30245. #. type: table
  30246. #: guix-git/doc/guix.texi:20206
  30247. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered critical."
  30248. msgstr ""
  30249. #. type: item
  30250. #: guix-git/doc/guix.texi:20207
  30251. #, no-wrap
  30252. msgid "@code{percentage-action} (default: @code{2})"
  30253. msgstr ""
  30254. #. type: table
  30255. #: guix-git/doc/guix.texi:20210
  30256. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which action will be taken."
  30257. msgstr ""
  30258. #. type: item
  30259. #: guix-git/doc/guix.texi:20211
  30260. #, no-wrap
  30261. msgid "@code{time-low} (default: @code{1200})"
  30262. msgstr ""
  30263. #. type: table
  30264. #: guix-git/doc/guix.texi:20214
  30265. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered low."
  30266. msgstr ""
  30267. #. type: item
  30268. #: guix-git/doc/guix.texi:20215
  30269. #, no-wrap
  30270. msgid "@code{time-critical} (default: @code{300})"
  30271. msgstr ""
  30272. #. type: table
  30273. #: guix-git/doc/guix.texi:20218
  30274. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered critical."
  30275. msgstr ""
  30276. #. type: item
  30277. #: guix-git/doc/guix.texi:20219
  30278. #, no-wrap
  30279. msgid "@code{time-action} (default: @code{120})"
  30280. msgstr ""
  30281. #. type: table
  30282. #: guix-git/doc/guix.texi:20222
  30283. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which action will be taken."
  30284. msgstr ""
  30285. #. type: item
  30286. #: guix-git/doc/guix.texi:20223
  30287. #, no-wrap
  30288. msgid "@code{critical-power-action} (default: @code{'hybrid-sleep})"
  30289. msgstr ""
  30290. #. type: table
  30291. #: guix-git/doc/guix.texi:20226
  30292. msgid "The action taken when @code{percentage-action} or @code{time-action} is reached (depending on the configuration of @code{use-percentage-for-policy?})."
  30293. msgstr ""
  30294. #. type: table
  30295. #: guix-git/doc/guix.texi:20228
  30296. msgid "Possible values are:"
  30297. msgstr ""
  30298. #. type: code{#1}
  30299. #: guix-git/doc/guix.texi:20232
  30300. msgid "'power-off"
  30301. msgstr ""
  30302. #. type: code{#1}
  30303. #: guix-git/doc/guix.texi:20235
  30304. msgid "'hibernate"
  30305. msgstr ""
  30306. #. type: itemize
  30307. #: guix-git/doc/guix.texi:20238
  30308. msgid "@code{'hybrid-sleep}."
  30309. msgstr ""
  30310. #. type: deffn
  30311. #: guix-git/doc/guix.texi:20243
  30312. #, no-wrap
  30313. msgid "{Scheme Procedure} udisks-service [#:udisks @var{udisks}]"
  30314. msgstr ""
  30315. #. type: deffn
  30316. #: guix-git/doc/guix.texi:20253
  30317. 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."
  30318. msgstr ""
  30319. #. type: deffn
  30320. #: guix-git/doc/guix.texi:20255
  30321. #, no-wrap
  30322. msgid "{Scheme Variable} colord-service-type"
  30323. msgstr ""
  30324. #. type: deffn
  30325. #: guix-git/doc/guix.texi:20262
  30326. 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."
  30327. msgstr ""
  30328. #. type: cindex
  30329. #: guix-git/doc/guix.texi:20264
  30330. #, no-wrap
  30331. msgid "scanner access"
  30332. msgstr ""
  30333. #. type: defvr
  30334. #: guix-git/doc/guix.texi:20265
  30335. #, no-wrap
  30336. msgid "{Scheme Variable} sane-service-type"
  30337. msgstr ""
  30338. #. type: defvr
  30339. #: guix-git/doc/guix.texi:20271
  30340. 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."
  30341. msgstr ""
  30342. #. type: defvr
  30343. #: guix-git/doc/guix.texi:20273
  30344. #, no-wrap
  30345. msgid "{Scheme Variable} sane-backends-minimal"
  30346. msgstr ""
  30347. #. type: defvr
  30348. #: guix-git/doc/guix.texi:20276
  30349. msgid "The default package which the @code{sane-service-type} installs. It supports many recent scanners."
  30350. msgstr ""
  30351. #. type: defvr
  30352. #: guix-git/doc/guix.texi:20278
  30353. #, no-wrap
  30354. msgid "{Scheme Variable} sane-backends"
  30355. msgstr ""
  30356. #. type: defvr
  30357. #: guix-git/doc/guix.texi:20285
  30358. 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:"
  30359. msgstr ""
  30360. #. type: lisp
  30361. #: guix-git/doc/guix.texi:20294
  30362. #, no-wrap
  30363. msgid ""
  30364. "(use-modules (gnu))\n"
  30365. "(use-service-modules\n"
  30366. " @dots{}\n"
  30367. " desktop)\n"
  30368. "(use-package-modules\n"
  30369. " @dots{}\n"
  30370. " scanner)\n"
  30371. "\n"
  30372. msgstr ""
  30373. #. type: lisp
  30374. #: guix-git/doc/guix.texi:20299
  30375. #, no-wrap
  30376. msgid ""
  30377. "(define %my-desktop-services\n"
  30378. " ;; List of desktop services that supports a broader range of scanners.\n"
  30379. " (modify-services %desktop-services\n"
  30380. " (sane-service-type _ => sane-backends)))\n"
  30381. "\n"
  30382. msgstr ""
  30383. #. type: lisp
  30384. #: guix-git/doc/guix.texi:20303
  30385. #, no-wrap
  30386. msgid ""
  30387. "(operating-system\n"
  30388. " @dots{}\n"
  30389. " (services %my-desktop-services)\n"
  30390. msgstr ""
  30391. #. type: deffn
  30392. #: guix-git/doc/guix.texi:20306
  30393. #, no-wrap
  30394. msgid "{Scheme Procedure} geoclue-application name [#:allowed? #t] [#:system? #f] [#:users '()]"
  30395. msgstr ""
  30396. #. type: deffn
  30397. #: guix-git/doc/guix.texi:20315
  30398. 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."
  30399. msgstr ""
  30400. #. type: defvr
  30401. #: guix-git/doc/guix.texi:20317
  30402. #, no-wrap
  30403. msgid "{Scheme Variable} %standard-geoclue-applications"
  30404. msgstr ""
  30405. #. type: defvr
  30406. #: guix-git/doc/guix.texi:20324
  30407. 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."
  30408. msgstr ""
  30409. #. type: deffn
  30410. #: guix-git/doc/guix.texi:20326
  30411. #, no-wrap
  30412. msgid "{Scheme Procedure} geoclue-service [#:colord @var{colord}] @"
  30413. msgstr ""
  30414. #. type: deffn
  30415. #: guix-git/doc/guix.texi:20339
  30416. 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."
  30417. msgstr ""
  30418. #. type: deffn
  30419. #: guix-git/doc/guix.texi:20341
  30420. #, no-wrap
  30421. msgid "{Scheme Procedure} bluetooth-service [#:bluez @var{bluez}] @"
  30422. msgstr ""
  30423. #. type: deffn
  30424. #: guix-git/doc/guix.texi:20348
  30425. 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."
  30426. msgstr ""
  30427. #. type: deffn
  30428. #: guix-git/doc/guix.texi:20350
  30429. msgid "Users need to be in the @code{lp} group to access the D-Bus service."
  30430. msgstr ""
  30431. #. type: defvr
  30432. #: guix-git/doc/guix.texi:20352
  30433. #, no-wrap
  30434. msgid "{Scheme Variable} gnome-keyring-service-type"
  30435. msgstr ""
  30436. #. type: defvr
  30437. #: guix-git/doc/guix.texi:20356
  30438. 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)."
  30439. msgstr ""
  30440. #. type: defvr
  30441. #: guix-git/doc/guix.texi:20360
  30442. 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."
  30443. msgstr ""
  30444. #. type: deftp
  30445. #: guix-git/doc/guix.texi:20362
  30446. #, no-wrap
  30447. msgid "{Data Type} gnome-keyring-configuration"
  30448. msgstr ""
  30449. #. type: deftp
  30450. #: guix-git/doc/guix.texi:20364
  30451. msgid "Configuration record for the GNOME Keyring service."
  30452. msgstr ""
  30453. #. type: item
  30454. #: guix-git/doc/guix.texi:20366
  30455. #, fuzzy, no-wrap
  30456. msgid "@code{keyring} (default: @code{gnome-keyring})"
  30457. msgstr "@code{gnome}(默认值:@code{gnome})"
  30458. #. type: table
  30459. #: guix-git/doc/guix.texi:20368
  30460. msgid "The GNOME keyring package to use."
  30461. msgstr ""
  30462. #. type: code{#1}
  30463. #: guix-git/doc/guix.texi:20369
  30464. #, fuzzy, no-wrap
  30465. msgid "pam-services"
  30466. msgstr "基础服务"
  30467. #. type: table
  30468. #: guix-git/doc/guix.texi:20374
  30469. 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}."
  30470. msgstr ""
  30471. #. type: table
  30472. #: guix-git/doc/guix.texi:20380
  30473. 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."
  30474. msgstr ""
  30475. #. type: table
  30476. #: guix-git/doc/guix.texi:20383
  30477. msgid "By default, this field contains ``gdm-password'' with the value @code{login} and ``passwd'' is with the value @code{passwd}."
  30478. msgstr ""
  30479. #. type: cindex
  30480. #: guix-git/doc/guix.texi:20390
  30481. #, no-wrap
  30482. msgid "sound support"
  30483. msgstr ""
  30484. #. type: cindex
  30485. #: guix-git/doc/guix.texi:20391
  30486. #, no-wrap
  30487. msgid "ALSA"
  30488. msgstr ""
  30489. #. type: cindex
  30490. #: guix-git/doc/guix.texi:20392
  30491. #, no-wrap
  30492. msgid "PulseAudio, sound support"
  30493. msgstr ""
  30494. #. type: Plain text
  30495. #: guix-git/doc/guix.texi:20397
  30496. 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."
  30497. msgstr ""
  30498. #. type: deffn
  30499. #: guix-git/doc/guix.texi:20398
  30500. #, no-wrap
  30501. msgid "{Scheme Variable} alsa-service-type"
  30502. msgstr ""
  30503. #. type: deffn
  30504. #: guix-git/doc/guix.texi:20403
  30505. 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:"
  30506. msgstr ""
  30507. #. type: lisp
  30508. #: guix-git/doc/guix.texi:20406
  30509. #, no-wrap
  30510. msgid "(service alsa-service-type)\n"
  30511. msgstr ""
  30512. #. type: deffn
  30513. #: guix-git/doc/guix.texi:20409
  30514. msgid "See below for details about @code{alsa-configuration}."
  30515. msgstr ""
  30516. #. type: deftp
  30517. #: guix-git/doc/guix.texi:20411
  30518. #, no-wrap
  30519. msgid "{Data Type} alsa-configuration"
  30520. msgstr ""
  30521. #. type: deftp
  30522. #: guix-git/doc/guix.texi:20413
  30523. msgid "Data type representing the configuration for @code{alsa-service}."
  30524. msgstr ""
  30525. #. type: item
  30526. #: guix-git/doc/guix.texi:20415
  30527. #, no-wrap
  30528. msgid "@code{alsa-plugins} (default: @var{alsa-plugins})"
  30529. msgstr ""
  30530. #. type: table
  30531. #: guix-git/doc/guix.texi:20417
  30532. msgid "@code{alsa-plugins} package to use."
  30533. msgstr ""
  30534. #. type: item
  30535. #: guix-git/doc/guix.texi:20418
  30536. #, no-wrap
  30537. msgid "@code{pulseaudio?} (default: @var{#t})"
  30538. msgstr ""
  30539. #. type: table
  30540. #: guix-git/doc/guix.texi:20421
  30541. msgid "Whether ALSA applications should transparently be made to use the @uref{https://www.pulseaudio.org/, PulseAudio} sound server."
  30542. msgstr ""
  30543. #. type: table
  30544. #: guix-git/doc/guix.texi:20425
  30545. 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."
  30546. msgstr ""
  30547. #. type: item
  30548. #: guix-git/doc/guix.texi:20426
  30549. #, no-wrap
  30550. msgid "@code{extra-options} (default: @var{\"\"})"
  30551. msgstr ""
  30552. #. type: table
  30553. #: guix-git/doc/guix.texi:20428
  30554. msgid "String to append to the @file{/etc/asound.conf} file."
  30555. msgstr ""
  30556. #. type: Plain text
  30557. #: guix-git/doc/guix.texi:20434
  30558. msgid "Individual users who want to override the system configuration of ALSA can do it with the @file{~/.asoundrc} file:"
  30559. msgstr ""
  30560. #. type: example
  30561. #: guix-git/doc/guix.texi:20440
  30562. #, no-wrap
  30563. msgid ""
  30564. "# In guix, we have to specify the absolute path for plugins.\n"
  30565. "pcm_type.jack @{\n"
  30566. " lib \"/home/alice/.guix-profile/lib/alsa-lib/libasound_module_pcm_jack.so\"\n"
  30567. "@}\n"
  30568. "\n"
  30569. msgstr ""
  30570. #. type: example
  30571. #: guix-git/doc/guix.texi:20449
  30572. #, no-wrap
  30573. msgid ""
  30574. "# Routing ALSA to jack:\n"
  30575. "# <http://jackaudio.org/faq/routing_alsa.html>.\n"
  30576. "pcm.rawjack @{\n"
  30577. " type jack\n"
  30578. " playback_ports @{\n"
  30579. " 0 system:playback_1\n"
  30580. " 1 system:playback_2\n"
  30581. " @}\n"
  30582. "\n"
  30583. msgstr ""
  30584. #. type: example
  30585. #: guix-git/doc/guix.texi:20455
  30586. #, no-wrap
  30587. msgid ""
  30588. " capture_ports @{\n"
  30589. " 0 system:capture_1\n"
  30590. " 1 system:capture_2\n"
  30591. " @}\n"
  30592. "@}\n"
  30593. "\n"
  30594. msgstr ""
  30595. #. type: example
  30596. #: guix-git/doc/guix.texi:20462
  30597. #, no-wrap
  30598. msgid ""
  30599. "pcm.!default @{\n"
  30600. " type plug\n"
  30601. " slave @{\n"
  30602. " pcm \"rawjack\"\n"
  30603. " @}\n"
  30604. "@}\n"
  30605. msgstr ""
  30606. #. type: Plain text
  30607. #: guix-git/doc/guix.texi:20466
  30608. msgid "See @uref{https://www.alsa-project.org/main/index.php/Asoundrc} for the details."
  30609. msgstr ""
  30610. #. type: deffn
  30611. #: guix-git/doc/guix.texi:20467
  30612. #, no-wrap
  30613. msgid "{Scheme Variable} pulseaudio-service-type"
  30614. msgstr ""
  30615. #. type: deffn
  30616. #: guix-git/doc/guix.texi:20471
  30617. 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."
  30618. msgstr ""
  30619. #. type: quotation
  30620. #: guix-git/doc/guix.texi:20477
  30621. 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}."
  30622. msgstr ""
  30623. #. type: quotation
  30624. #: guix-git/doc/guix.texi:20485
  30625. 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."
  30626. msgstr ""
  30627. #. type: deftp
  30628. #: guix-git/doc/guix.texi:20488
  30629. #, fuzzy, no-wrap
  30630. msgid "{Data Type} pulseaudio-configuration"
  30631. msgstr "{数据类型} build-machine"
  30632. #. type: deftp
  30633. #: guix-git/doc/guix.texi:20490
  30634. msgid "Data type representing the configuration for @code{pulseaudio-service}."
  30635. msgstr ""
  30636. #. type: item
  30637. #: guix-git/doc/guix.texi:20492
  30638. #, fuzzy, no-wrap
  30639. msgid "@code{client-conf} (default: @code{'()})"
  30640. msgstr "@code{includes}(默认值:@code{'()})"
  30641. #. type: table
  30642. #: guix-git/doc/guix.texi:20497
  30643. 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."
  30644. msgstr ""
  30645. #. type: item
  30646. #: guix-git/doc/guix.texi:20498
  30647. #, fuzzy, no-wrap
  30648. msgid "@code{daemon-conf} (default: @code{'((flat-volumes . no))})"
  30649. msgstr "@code{mate}(默认值:@code{mate})"
  30650. #. type: table
  30651. #: guix-git/doc/guix.texi:20501
  30652. msgid "List of settings to set in @file{daemon.conf}, formatted just like @var{client-conf}."
  30653. msgstr ""
  30654. #. type: item
  30655. #: guix-git/doc/guix.texi:20502
  30656. #, no-wrap
  30657. msgid "@code{script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/default.pa\")})"
  30658. msgstr ""
  30659. #. type: table
  30660. #: guix-git/doc/guix.texi:20504
  30661. msgid "Script file to use as @file{default.pa}."
  30662. msgstr ""
  30663. #. type: item
  30664. #: guix-git/doc/guix.texi:20505
  30665. #, no-wrap
  30666. msgid "@code{system-script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/system.pa\")})"
  30667. msgstr ""
  30668. #. type: table
  30669. #: guix-git/doc/guix.texi:20507
  30670. msgid "Script file to use as @file{system.pa}."
  30671. msgstr ""
  30672. #. type: deffn
  30673. #: guix-git/doc/guix.texi:20510
  30674. #, no-wrap
  30675. msgid "{Scheme Variable} ladspa-service-type"
  30676. msgstr ""
  30677. #. type: deffn
  30678. #: guix-git/doc/guix.texi:20513
  30679. msgid "This service sets the @var{LADSPA_PATH} variable, so that programs, which respect it, e.g. PulseAudio, can load LADSPA plugins."
  30680. msgstr ""
  30681. #. type: deffn
  30682. #: guix-git/doc/guix.texi:20516
  30683. msgid "The following example will setup the service to enable modules from the @code{swh-plugins} package:"
  30684. msgstr ""
  30685. #. type: lisp
  30686. #: guix-git/doc/guix.texi:20520
  30687. #, no-wrap
  30688. msgid ""
  30689. "(service ladspa-service-type\n"
  30690. " (ladspa-configuration (plugins (list swh-plugins))))\n"
  30691. msgstr ""
  30692. #. type: deffn
  30693. #: guix-git/doc/guix.texi:20524
  30694. msgid "See @uref{http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html} for the details."
  30695. msgstr ""
  30696. #. type: cindex
  30697. #: guix-git/doc/guix.texi:20531
  30698. #, no-wrap
  30699. msgid "SQL"
  30700. msgstr ""
  30701. #. type: Plain text
  30702. #: guix-git/doc/guix.texi:20533
  30703. msgid "The @code{(gnu services databases)} module provides the following services."
  30704. msgstr ""
  30705. #. type: subsubheading
  30706. #: guix-git/doc/guix.texi:20534
  30707. #, no-wrap
  30708. msgid "PostgreSQL"
  30709. msgstr ""
  30710. #. type: Plain text
  30711. #: guix-git/doc/guix.texi:20538
  30712. msgid "The following example describes a PostgreSQL service with the default configuration."
  30713. msgstr ""
  30714. #. type: lisp
  30715. #: guix-git/doc/guix.texi:20543
  30716. #, no-wrap
  30717. msgid ""
  30718. "(service postgresql-service-type\n"
  30719. " (postgresql-configuration\n"
  30720. " (postgresql postgresql-10)))\n"
  30721. msgstr ""
  30722. #. type: Plain text
  30723. #: guix-git/doc/guix.texi:20549
  30724. 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."
  30725. msgstr ""
  30726. #. type: Plain text
  30727. #: guix-git/doc/guix.texi:20556
  30728. 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."
  30729. msgstr ""
  30730. #. type: example
  30731. #: guix-git/doc/guix.texi:20561
  30732. #, no-wrap
  30733. msgid ""
  30734. "sudo -u postgres -s /bin/sh\n"
  30735. "createuser --interactive\n"
  30736. "createdb $MY_USER_LOGIN # Replace appropriately.\n"
  30737. msgstr ""
  30738. #. type: deftp
  30739. #: guix-git/doc/guix.texi:20563
  30740. #, no-wrap
  30741. msgid "{Data Type} postgresql-configuration"
  30742. msgstr ""
  30743. #. type: deftp
  30744. #: guix-git/doc/guix.texi:20566
  30745. msgid "Data type representing the configuration for the @code{postgresql-service-type}."
  30746. msgstr ""
  30747. #. type: code{#1}
  30748. #: guix-git/doc/guix.texi:20568
  30749. #, no-wrap
  30750. msgid "postgresql"
  30751. msgstr ""
  30752. #. type: table
  30753. #: guix-git/doc/guix.texi:20570
  30754. msgid "PostgreSQL package to use for the service."
  30755. msgstr ""
  30756. #. type: item
  30757. #: guix-git/doc/guix.texi:20571
  30758. #, fuzzy, no-wrap
  30759. msgid "@code{port} (default: @code{5432})"
  30760. msgstr "@code{port}(默认值:@code{22})"
  30761. #. type: table
  30762. #: guix-git/doc/guix.texi:20573
  30763. msgid "Port on which PostgreSQL should listen."
  30764. msgstr ""
  30765. #. type: table
  30766. #: guix-git/doc/guix.texi:20576
  30767. msgid "Locale to use as the default when creating the database cluster."
  30768. msgstr ""
  30769. #. type: item
  30770. #: guix-git/doc/guix.texi:20577
  30771. #, fuzzy, no-wrap
  30772. msgid "@code{config-file} (default: @code{(postgresql-config-file)})"
  30773. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  30774. #. type: table
  30775. #: guix-git/doc/guix.texi:20581
  30776. 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."
  30777. msgstr ""
  30778. #. type: item
  30779. #: guix-git/doc/guix.texi:20582
  30780. #, fuzzy, no-wrap
  30781. msgid "@code{log-directory} (default: @code{\"/var/log/postgresql\"})"
  30782. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30783. #. type: table
  30784. #: guix-git/doc/guix.texi:20586
  30785. 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."
  30786. msgstr ""
  30787. #. type: item
  30788. #: guix-git/doc/guix.texi:20587
  30789. #, fuzzy, no-wrap
  30790. msgid "@code{data-directory} (default: @code{\"/var/lib/postgresql/data\"})"
  30791. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30792. #. type: table
  30793. #: guix-git/doc/guix.texi:20589
  30794. msgid "Directory in which to store the data."
  30795. msgstr ""
  30796. #. type: item
  30797. #: guix-git/doc/guix.texi:20590
  30798. #, fuzzy, no-wrap
  30799. msgid "@code{extension-packages} (default: @code{'()})"
  30800. msgstr "@code{includes}(默认值:@code{'()})"
  30801. #. type: cindex
  30802. #: guix-git/doc/guix.texi:20591
  30803. #, no-wrap
  30804. msgid "postgresql extension-packages"
  30805. msgstr ""
  30806. #. type: table
  30807. #: guix-git/doc/guix.texi:20596
  30808. 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:"
  30809. msgstr ""
  30810. #. type: cindex
  30811. #: guix-git/doc/guix.texi:20597
  30812. #, no-wrap
  30813. msgid "postgis"
  30814. msgstr ""
  30815. #. type: lisp
  30816. #: guix-git/doc/guix.texi:20600
  30817. #, no-wrap
  30818. msgid ""
  30819. "(use-package-modules databases geo)\n"
  30820. "\n"
  30821. msgstr ""
  30822. #. type: lisp
  30823. #: guix-git/doc/guix.texi:20613
  30824. #, no-wrap
  30825. msgid ""
  30826. "(operating-system\n"
  30827. " ...\n"
  30828. " ;; postgresql is required to run `psql' but postgis is not required for\n"
  30829. " ;; proper operation.\n"
  30830. " (packages (cons* postgresql %base-packages))\n"
  30831. " (services\n"
  30832. " (cons*\n"
  30833. " (service postgresql-service-type\n"
  30834. " (postgresql-configuration\n"
  30835. " (postgresql postgresql-10)\n"
  30836. " (extension-packages (list postgis))))\n"
  30837. " %base-services)))\n"
  30838. msgstr ""
  30839. #. type: table
  30840. #: guix-git/doc/guix.texi:20617
  30841. msgid "Then the extension becomes visible and you can initialise an empty geographic database in this way:"
  30842. msgstr ""
  30843. #. type: example
  30844. #: guix-git/doc/guix.texi:20624
  30845. #, no-wrap
  30846. msgid ""
  30847. "psql -U postgres\n"
  30848. "> create database postgistest;\n"
  30849. "> \\connect postgistest;\n"
  30850. "> create extension postgis;\n"
  30851. "> create extension postgis_topology;\n"
  30852. msgstr ""
  30853. #. type: table
  30854. #: guix-git/doc/guix.texi:20629
  30855. 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."
  30856. msgstr ""
  30857. #. type: deftp
  30858. #: guix-git/doc/guix.texi:20633
  30859. #, no-wrap
  30860. msgid "{Data Type} postgresql-config-file"
  30861. msgstr ""
  30862. #. type: deftp
  30863. #: guix-git/doc/guix.texi:20639
  30864. 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."
  30865. msgstr ""
  30866. #. type: lisp
  30867. #: guix-git/doc/guix.texi:20659
  30868. #, no-wrap
  30869. msgid ""
  30870. "(service postgresql-service-type\n"
  30871. " (postgresql-configuration\n"
  30872. " (config-file\n"
  30873. " (postgresql-config-file\n"
  30874. " (log-destination \"stderr\")\n"
  30875. " (hba-file\n"
  30876. " (plain-file \"pg_hba.conf\"\n"
  30877. " \"\n"
  30878. "local\tall\tall\t\t\ttrust\n"
  30879. "host\tall\tall\t127.0.0.1/32 \tmd5\n"
  30880. "host\tall\tall\t::1/128 \tmd5\"))\n"
  30881. " (extra-config\n"
  30882. " '((\"session_preload_libraries\" \"auto_explain\")\n"
  30883. " (\"random_page_cost\" 2)\n"
  30884. " (\"auto_explain.log_min_duration\" \"100 ms\")\n"
  30885. " (\"work_mem\" \"500 MB\")\n"
  30886. " (\"logging_collector\" #t)\n"
  30887. " (\"log_directory\" \"/var/log/postgresql\")))))))\n"
  30888. msgstr ""
  30889. #. type: item
  30890. #: guix-git/doc/guix.texi:20662
  30891. #, fuzzy, no-wrap
  30892. msgid "@code{log-destination} (default: @code{\"syslog\"})"
  30893. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  30894. #. type: table
  30895. #: guix-git/doc/guix.texi:20665
  30896. msgid "The logging method to use for PostgreSQL@. Multiple values are accepted, separated by commas."
  30897. msgstr ""
  30898. #. type: item
  30899. #: guix-git/doc/guix.texi:20666
  30900. #, fuzzy, no-wrap
  30901. msgid "@code{hba-file} (default: @code{%default-postgres-hba})"
  30902. msgstr "@code{mate}(默认值:@code{mate})"
  30903. #. type: table
  30904. #: guix-git/doc/guix.texi:20669
  30905. msgid "Filename or G-expression for the host-based authentication configuration."
  30906. msgstr ""
  30907. #. type: item
  30908. #: guix-git/doc/guix.texi:20670
  30909. #, fuzzy, no-wrap
  30910. msgid "@code{ident-file} (default: @code{%default-postgres-ident})"
  30911. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  30912. #. type: table
  30913. #: guix-git/doc/guix.texi:20672
  30914. msgid "Filename or G-expression for the user name mapping configuration."
  30915. msgstr ""
  30916. #. type: item
  30917. #: guix-git/doc/guix.texi:20673
  30918. #, fuzzy, no-wrap
  30919. msgid "@code{socket-directory} (default: @code{#false})"
  30920. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30921. #. type: table
  30922. #: guix-git/doc/guix.texi:20678
  30923. 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."
  30924. msgstr ""
  30925. #. type: table
  30926. #: guix-git/doc/guix.texi:20681
  30927. msgid "By default, the @code{#false} value means the PostgreSQL default value will be used, which is currently @samp{/tmp}."
  30928. msgstr ""
  30929. #. type: table
  30930. #: guix-git/doc/guix.texi:20686
  30931. 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."
  30932. msgstr ""
  30933. #. type: table
  30934. #: guix-git/doc/guix.texi:20692
  30935. 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}."
  30936. msgstr ""
  30937. #. type: deffn
  30938. #: guix-git/doc/guix.texi:20696
  30939. #, no-wrap
  30940. msgid "{Scheme Variable} postgresql-role-service-type"
  30941. msgstr ""
  30942. #. type: deffn
  30943. #: guix-git/doc/guix.texi:20699
  30944. msgid "This service allows to create PostgreSQL roles and databases after PostgreSQL service start. Here is an example of its use."
  30945. msgstr ""
  30946. #. type: lisp
  30947. #: guix-git/doc/guix.texi:20707
  30948. #, no-wrap
  30949. msgid ""
  30950. "(service postgresql-role-service-type\n"
  30951. " (postgresql-role-configuration\n"
  30952. " (roles\n"
  30953. " (list (postgresql-role\n"
  30954. " (name \"test\")\n"
  30955. " (create-database? #t))))))\n"
  30956. msgstr ""
  30957. #. type: deffn
  30958. #: guix-git/doc/guix.texi:20711
  30959. msgid "This service can be extended with extra roles, as in this example:"
  30960. msgstr ""
  30961. #. type: lisp
  30962. #: guix-git/doc/guix.texi:20717
  30963. #, no-wrap
  30964. msgid ""
  30965. "(service-extension postgresql-role-service-type\n"
  30966. " (const (postgresql-role\n"
  30967. " (name \"alice\")\n"
  30968. " (create-database? #t))))\n"
  30969. msgstr ""
  30970. #. type: deftp
  30971. #: guix-git/doc/guix.texi:20720
  30972. #, fuzzy, no-wrap
  30973. msgid "{Data Type} postgresql-role"
  30974. msgstr "{数据类型} build-machine"
  30975. #. type: deftp
  30976. #: guix-git/doc/guix.texi:20726
  30977. 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."
  30978. msgstr ""
  30979. #. type: table
  30980. #: guix-git/doc/guix.texi:20730
  30981. #, fuzzy
  30982. msgid "The role name."
  30983. msgstr "仓库monad"
  30984. #. type: item
  30985. #: guix-git/doc/guix.texi:20731
  30986. #, fuzzy, no-wrap
  30987. msgid "@code{permissions} (default: @code{'(createdb login)})"
  30988. msgstr "@code{includes}(默认值:@code{'()})"
  30989. #. type: table
  30990. #: guix-git/doc/guix.texi:20735
  30991. msgid "The role permissions list. Supported permissions are @code{bypassrls}, @code{createdb}, @code{createrole}, @code{login}, @code{replication} and @code{superuser}."
  30992. msgstr ""
  30993. #. type: item
  30994. #: guix-git/doc/guix.texi:20736
  30995. #, fuzzy, no-wrap
  30996. msgid "@code{create-database?} (default: @code{#f})"
  30997. msgstr "@code{challenge}(默认值:@code{#f})"
  30998. #. type: table
  30999. #: guix-git/doc/guix.texi:20738
  31000. msgid "Whether to create a database with the same name as the role."
  31001. msgstr ""
  31002. #. type: deftp
  31003. #: guix-git/doc/guix.texi:20742
  31004. #, fuzzy, no-wrap
  31005. msgid "{Data Type} postgresql-role-configuration"
  31006. msgstr "管理操作系统配置。"
  31007. #. type: deftp
  31008. #: guix-git/doc/guix.texi:20745
  31009. #, fuzzy
  31010. msgid "Data type representing the configuration of @var{postgresql-role-service-type}."
  31011. msgstr "管理操作系统配置。"
  31012. #. type: item
  31013. #: guix-git/doc/guix.texi:20747
  31014. #, fuzzy, no-wrap
  31015. msgid "@code{host} (default: @code{\"/var/run/postgresql\"})"
  31016. msgstr "@code{port}(默认值:@code{22})"
  31017. #. type: table
  31018. #: guix-git/doc/guix.texi:20749
  31019. msgid "The PostgreSQL host to connect to."
  31020. msgstr ""
  31021. #. type: item
  31022. #: guix-git/doc/guix.texi:20750
  31023. #, fuzzy, no-wrap
  31024. msgid "@code{log} (default: @code{\"/var/log/postgresql_roles.log\"})"
  31025. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  31026. #. type: table
  31027. #: guix-git/doc/guix.texi:20752
  31028. #, fuzzy
  31029. msgid "File name of the log file."
  31030. msgstr "远程机器的主机名。"
  31031. #. type: item
  31032. #: guix-git/doc/guix.texi:20753
  31033. #, fuzzy, no-wrap
  31034. msgid "@code{roles} (default: @code{'()})"
  31035. msgstr "@code{features} (@code{'()})"
  31036. #. type: table
  31037. #: guix-git/doc/guix.texi:20755
  31038. msgid "The initial PostgreSQL roles to create."
  31039. msgstr ""
  31040. #. type: subsubheading
  31041. #: guix-git/doc/guix.texi:20758
  31042. #, no-wrap
  31043. msgid "MariaDB/MySQL"
  31044. msgstr ""
  31045. #. type: defvr
  31046. #: guix-git/doc/guix.texi:20760
  31047. #, no-wrap
  31048. msgid "{Scheme Variable} mysql-service-type"
  31049. msgstr ""
  31050. #. type: defvr
  31051. #: guix-git/doc/guix.texi:20764
  31052. 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."
  31053. msgstr ""
  31054. #. type: deftp
  31055. #: guix-git/doc/guix.texi:20766
  31056. #, no-wrap
  31057. msgid "{Data Type} mysql-configuration"
  31058. msgstr ""
  31059. #. type: deftp
  31060. #: guix-git/doc/guix.texi:20768
  31061. #, fuzzy
  31062. msgid "Data type representing the configuration of @var{mysql-service-type}."
  31063. msgstr "管理操作系统配置。"
  31064. #. type: item
  31065. #: guix-git/doc/guix.texi:20770
  31066. #, no-wrap
  31067. msgid "@code{mysql} (default: @var{mariadb})"
  31068. msgstr ""
  31069. #. type: table
  31070. #: guix-git/doc/guix.texi:20773
  31071. msgid "Package object of the MySQL database server, can be either @var{mariadb} or @var{mysql}."
  31072. msgstr ""
  31073. #. type: table
  31074. #: guix-git/doc/guix.texi:20776
  31075. msgid "For MySQL, a temporary root password will be displayed at activation time. For MariaDB, the root password is empty."
  31076. msgstr ""
  31077. #. type: item
  31078. #: guix-git/doc/guix.texi:20777 guix-git/doc/guix.texi:24597
  31079. #, no-wrap
  31080. msgid "@code{bind-address} (default: @code{\"127.0.0.1\"})"
  31081. msgstr ""
  31082. #. type: table
  31083. #: guix-git/doc/guix.texi:20780
  31084. msgid "The IP on which to listen for network connections. Use @code{\"0.0.0.0\"} to bind to all available network interfaces."
  31085. msgstr ""
  31086. #. type: item
  31087. #: guix-git/doc/guix.texi:20781
  31088. #, no-wrap
  31089. msgid "@code{port} (default: @code{3306})"
  31090. msgstr ""
  31091. #. type: table
  31092. #: guix-git/doc/guix.texi:20783
  31093. msgid "TCP port on which the database server listens for incoming connections."
  31094. msgstr ""
  31095. #. type: item
  31096. #: guix-git/doc/guix.texi:20784
  31097. #, fuzzy, no-wrap
  31098. msgid "@code{socket} (default: @code{\"/run/mysqld/mysqld.sock\"})"
  31099. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  31100. #. type: table
  31101. #: guix-git/doc/guix.texi:20786
  31102. msgid "Socket file to use for local (non-network) connections."
  31103. msgstr ""
  31104. #. type: table
  31105. #: guix-git/doc/guix.texi:20789
  31106. msgid "Additional settings for the @file{my.cnf} configuration file."
  31107. msgstr ""
  31108. #. type: item
  31109. #: guix-git/doc/guix.texi:20790
  31110. #, fuzzy, no-wrap
  31111. msgid "@code{extra-environment} (default: @code{#~'()})"
  31112. msgstr "@code{features} (@code{'()})"
  31113. #. type: table
  31114. #: guix-git/doc/guix.texi:20792
  31115. msgid "List of environment variables passed to the @command{mysqld} process."
  31116. msgstr ""
  31117. #. type: item
  31118. #: guix-git/doc/guix.texi:20793
  31119. #, fuzzy, no-wrap
  31120. msgid "@code{auto-upgrade?} (default: @code{#t})"
  31121. msgstr "@code{mate}(默认值:@code{mate})"
  31122. #. type: table
  31123. #: guix-git/doc/guix.texi:20798
  31124. 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."
  31125. msgstr ""
  31126. #. type: subsubheading
  31127. #: guix-git/doc/guix.texi:20802
  31128. #, no-wrap
  31129. msgid "Memcached"
  31130. msgstr ""
  31131. #. type: defvr
  31132. #: guix-git/doc/guix.texi:20804
  31133. #, no-wrap
  31134. msgid "{Scheme Variable} memcached-service-type"
  31135. msgstr ""
  31136. #. type: defvr
  31137. #: guix-git/doc/guix.texi:20808
  31138. 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."
  31139. msgstr ""
  31140. #. type: lisp
  31141. #: guix-git/doc/guix.texi:20812
  31142. #, no-wrap
  31143. msgid "(service memcached-service-type)\n"
  31144. msgstr ""
  31145. #. type: deftp
  31146. #: guix-git/doc/guix.texi:20814
  31147. #, no-wrap
  31148. msgid "{Data Type} memcached-configuration"
  31149. msgstr ""
  31150. #. type: deftp
  31151. #: guix-git/doc/guix.texi:20816
  31152. msgid "Data type representing the configuration of memcached."
  31153. msgstr ""
  31154. #. type: item
  31155. #: guix-git/doc/guix.texi:20818
  31156. #, no-wrap
  31157. msgid "@code{memcached} (default: @code{memcached})"
  31158. msgstr ""
  31159. #. type: table
  31160. #: guix-git/doc/guix.texi:20820
  31161. msgid "The Memcached package to use."
  31162. msgstr ""
  31163. #. type: item
  31164. #: guix-git/doc/guix.texi:20821
  31165. #, no-wrap
  31166. msgid "@code{interfaces} (default: @code{'(\"0.0.0.0\")})"
  31167. msgstr ""
  31168. #. type: table
  31169. #: guix-git/doc/guix.texi:20823
  31170. msgid "Network interfaces on which to listen."
  31171. msgstr ""
  31172. #. type: item
  31173. #: guix-git/doc/guix.texi:20824
  31174. #, no-wrap
  31175. msgid "@code{tcp-port} (default: @code{11211})"
  31176. msgstr ""
  31177. #. type: table
  31178. #: guix-git/doc/guix.texi:20826
  31179. msgid "Port on which to accept connections."
  31180. msgstr ""
  31181. #. type: item
  31182. #: guix-git/doc/guix.texi:20827
  31183. #, no-wrap
  31184. msgid "@code{udp-port} (default: @code{11211})"
  31185. msgstr ""
  31186. #. type: table
  31187. #: guix-git/doc/guix.texi:20830
  31188. msgid "Port on which to accept UDP connections on, a value of 0 will disable listening on a UDP socket."
  31189. msgstr ""
  31190. #. type: item
  31191. #: guix-git/doc/guix.texi:20831
  31192. #, no-wrap
  31193. msgid "@code{additional-options} (default: @code{'()})"
  31194. msgstr ""
  31195. #. type: table
  31196. #: guix-git/doc/guix.texi:20833
  31197. msgid "Additional command line options to pass to @code{memcached}."
  31198. msgstr ""
  31199. #. type: subsubheading
  31200. #: guix-git/doc/guix.texi:20836
  31201. #, no-wrap
  31202. msgid "Redis"
  31203. msgstr ""
  31204. #. type: defvr
  31205. #: guix-git/doc/guix.texi:20838
  31206. #, no-wrap
  31207. msgid "{Scheme Variable} redis-service-type"
  31208. msgstr ""
  31209. #. type: defvr
  31210. #: guix-git/doc/guix.texi:20841
  31211. msgid "This is the service type for the @uref{https://redis.io/, Redis} key/value store, whose value is a @code{redis-configuration} object."
  31212. msgstr ""
  31213. #. type: deftp
  31214. #: guix-git/doc/guix.texi:20843
  31215. #, no-wrap
  31216. msgid "{Data Type} redis-configuration"
  31217. msgstr ""
  31218. #. type: deftp
  31219. #: guix-git/doc/guix.texi:20845
  31220. msgid "Data type representing the configuration of redis."
  31221. msgstr ""
  31222. #. type: item
  31223. #: guix-git/doc/guix.texi:20847
  31224. #, no-wrap
  31225. msgid "@code{redis} (default: @code{redis})"
  31226. msgstr ""
  31227. #. type: table
  31228. #: guix-git/doc/guix.texi:20849
  31229. msgid "The Redis package to use."
  31230. msgstr ""
  31231. #. type: item
  31232. #: guix-git/doc/guix.texi:20850
  31233. #, no-wrap
  31234. msgid "@code{bind} (default: @code{\"127.0.0.1\"})"
  31235. msgstr ""
  31236. #. type: table
  31237. #: guix-git/doc/guix.texi:20852
  31238. msgid "Network interface on which to listen."
  31239. msgstr ""
  31240. #. type: item
  31241. #: guix-git/doc/guix.texi:20853
  31242. #, no-wrap
  31243. msgid "@code{port} (default: @code{6379})"
  31244. msgstr ""
  31245. #. type: table
  31246. #: guix-git/doc/guix.texi:20856
  31247. msgid "Port on which to accept connections on, a value of 0 will disable listening on a TCP socket."
  31248. msgstr ""
  31249. #. type: item
  31250. #: guix-git/doc/guix.texi:20857
  31251. #, no-wrap
  31252. msgid "@code{working-directory} (default: @code{\"/var/lib/redis\"})"
  31253. msgstr ""
  31254. #. type: table
  31255. #: guix-git/doc/guix.texi:20859
  31256. msgid "Directory in which to store the database and related files."
  31257. msgstr ""
  31258. #. type: cindex
  31259. #: guix-git/doc/guix.texi:20865
  31260. #, no-wrap
  31261. msgid "mail"
  31262. msgstr ""
  31263. #. type: cindex
  31264. #: guix-git/doc/guix.texi:20866
  31265. #, no-wrap
  31266. msgid "email"
  31267. msgstr ""
  31268. #. type: Plain text
  31269. #: guix-git/doc/guix.texi:20871
  31270. 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."
  31271. msgstr ""
  31272. #. type: subsubheading
  31273. #: guix-git/doc/guix.texi:20872
  31274. #, no-wrap
  31275. msgid "Dovecot Service"
  31276. msgstr ""
  31277. #. type: deffn
  31278. #: guix-git/doc/guix.texi:20874
  31279. #, no-wrap
  31280. msgid "{Scheme Procedure} dovecot-service [#:config (dovecot-configuration)]"
  31281. msgstr ""
  31282. #. type: deffn
  31283. #: guix-git/doc/guix.texi:20876
  31284. msgid "Return a service that runs the Dovecot IMAP/POP3/LMTP mail server."
  31285. msgstr ""
  31286. #. type: Plain text
  31287. #: guix-git/doc/guix.texi:20886
  31288. 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."
  31289. msgstr ""
  31290. #. type: Plain text
  31291. #: guix-git/doc/guix.texi:20889
  31292. msgid "For example, to specify that mail is located at @code{maildir~/.mail}, one would instantiate the Dovecot service like this:"
  31293. msgstr ""
  31294. #. type: lisp
  31295. #: guix-git/doc/guix.texi:20894
  31296. #, no-wrap
  31297. msgid ""
  31298. "(dovecot-service #:config\n"
  31299. " (dovecot-configuration\n"
  31300. " (mail-location \"maildir:~/.mail\")))\n"
  31301. msgstr ""
  31302. #. type: Plain text
  31303. #: guix-git/doc/guix.texi:20902
  31304. 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."
  31305. msgstr ""
  31306. #. type: Plain text
  31307. #: guix-git/doc/guix.texi:20912
  31308. msgid "Available @code{dovecot-configuration} fields are:"
  31309. msgstr ""
  31310. #. type: deftypevr
  31311. #: guix-git/doc/guix.texi:20913
  31312. #, no-wrap
  31313. msgid "{@code{dovecot-configuration} parameter} package dovecot"
  31314. msgstr ""
  31315. #. type: deftypevr
  31316. #: guix-git/doc/guix.texi:20915 guix-git/doc/guix.texi:22264
  31317. msgid "The dovecot package."
  31318. msgstr ""
  31319. #. type: deftypevr
  31320. #: guix-git/doc/guix.texi:20917
  31321. #, no-wrap
  31322. msgid "{@code{dovecot-configuration} parameter} comma-separated-string-list listen"
  31323. msgstr ""
  31324. #. type: deftypevr
  31325. #: guix-git/doc/guix.texi:20923
  31326. 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."
  31327. msgstr ""
  31328. #. type: deftypevr
  31329. #: guix-git/doc/guix.texi:20925
  31330. #, no-wrap
  31331. msgid "{@code{dovecot-configuration} parameter} protocol-configuration-list protocols"
  31332. msgstr ""
  31333. #. type: deftypevr
  31334. #: guix-git/doc/guix.texi:20928
  31335. msgid "List of protocols we want to serve. Available protocols include @samp{imap}, @samp{pop3}, and @samp{lmtp}."
  31336. msgstr ""
  31337. #. type: deftypevr
  31338. #: guix-git/doc/guix.texi:20930
  31339. msgid "Available @code{protocol-configuration} fields are:"
  31340. msgstr ""
  31341. #. type: deftypevr
  31342. #: guix-git/doc/guix.texi:20931
  31343. #, no-wrap
  31344. msgid "{@code{protocol-configuration} parameter} string name"
  31345. msgstr ""
  31346. #. type: deftypevr
  31347. #: guix-git/doc/guix.texi:20933
  31348. msgid "The name of the protocol."
  31349. msgstr ""
  31350. #. type: deftypevr
  31351. #: guix-git/doc/guix.texi:20935
  31352. #, no-wrap
  31353. msgid "{@code{protocol-configuration} parameter} string auth-socket-path"
  31354. msgstr ""
  31355. #. type: deftypevr
  31356. #: guix-git/doc/guix.texi:20939
  31357. 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\"}."
  31358. msgstr ""
  31359. #. type: deftypevr
  31360. #: guix-git/doc/guix.texi:20941
  31361. #, no-wrap
  31362. msgid "{@code{protocol-configuration} parameter} boolean imap-metadata?"
  31363. msgstr ""
  31364. #. type: deftypevr
  31365. #: guix-git/doc/guix.texi:20946
  31366. 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."
  31367. msgstr ""
  31368. #. type: deftypevr
  31369. #: guix-git/doc/guix.texi:20949
  31370. msgid "If this is @samp{#t}, you must also specify a dictionary @i{via} the @code{mail-attribute-dict} setting."
  31371. msgstr ""
  31372. #. type: deftypevr
  31373. #: guix-git/doc/guix.texi:20954
  31374. #, no-wrap
  31375. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-notify-capabilities"
  31376. msgstr ""
  31377. #. type: deftypevr
  31378. #: guix-git/doc/guix.texi:20959
  31379. 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."
  31380. msgstr ""
  31381. #. type: deftypevr
  31382. #: guix-git/doc/guix.texi:20963
  31383. #, no-wrap
  31384. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-sieve-capability"
  31385. msgstr ""
  31386. #. type: deftypevr
  31387. #: guix-git/doc/guix.texi:20968
  31388. 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."
  31389. msgstr ""
  31390. #. type: deftypevr
  31391. #: guix-git/doc/guix.texi:20973
  31392. #, no-wrap
  31393. msgid "{@code{protocol-configuration} parameter} space-separated-string-list mail-plugins"
  31394. msgstr ""
  31395. #. type: deftypevr
  31396. #: guix-git/doc/guix.texi:20975
  31397. msgid "Space separated list of plugins to load."
  31398. msgstr ""
  31399. #. type: deftypevr
  31400. #: guix-git/doc/guix.texi:20977
  31401. #, no-wrap
  31402. msgid "{@code{protocol-configuration} parameter} non-negative-integer mail-max-userip-connections"
  31403. msgstr ""
  31404. #. type: deftypevr
  31405. #: guix-git/doc/guix.texi:20981
  31406. 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}."
  31407. msgstr ""
  31408. #. type: deftypevr
  31409. #: guix-git/doc/guix.texi:20985
  31410. #, no-wrap
  31411. msgid "{@code{dovecot-configuration} parameter} service-configuration-list services"
  31412. msgstr ""
  31413. #. type: deftypevr
  31414. #: guix-git/doc/guix.texi:20989
  31415. msgid "List of services to enable. Available services include @samp{imap}, @samp{imap-login}, @samp{pop3}, @samp{pop3-login}, @samp{auth}, and @samp{lmtp}."
  31416. msgstr ""
  31417. #. type: deftypevr
  31418. #: guix-git/doc/guix.texi:20991
  31419. msgid "Available @code{service-configuration} fields are:"
  31420. msgstr ""
  31421. #. type: deftypevr
  31422. #: guix-git/doc/guix.texi:20992
  31423. #, no-wrap
  31424. msgid "{@code{service-configuration} parameter} string kind"
  31425. msgstr ""
  31426. #. type: deftypevr
  31427. #: guix-git/doc/guix.texi:20997
  31428. 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."
  31429. msgstr ""
  31430. #. type: deftypevr
  31431. #: guix-git/doc/guix.texi:20999
  31432. #, no-wrap
  31433. msgid "{@code{service-configuration} parameter} listener-configuration-list listeners"
  31434. msgstr ""
  31435. #. type: deftypevr
  31436. #: guix-git/doc/guix.texi:21004
  31437. 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{()}."
  31438. msgstr ""
  31439. #. type: deftypevr
  31440. #: guix-git/doc/guix.texi:21006
  31441. msgid "Available @code{unix-listener-configuration} fields are:"
  31442. msgstr ""
  31443. #. type: deftypevr
  31444. #: guix-git/doc/guix.texi:21007
  31445. #, no-wrap
  31446. msgid "{@code{unix-listener-configuration} parameter} string path"
  31447. msgstr ""
  31448. #. type: deftypevr
  31449. #: guix-git/doc/guix.texi:21010 guix-git/doc/guix.texi:21033
  31450. msgid "Path to the file, relative to @code{base-dir} field. This is also used as the section name."
  31451. msgstr ""
  31452. #. type: deftypevr
  31453. #: guix-git/doc/guix.texi:21012
  31454. #, no-wrap
  31455. msgid "{@code{unix-listener-configuration} parameter} string mode"
  31456. msgstr ""
  31457. #. type: deftypevr
  31458. #: guix-git/doc/guix.texi:21015 guix-git/doc/guix.texi:21038
  31459. msgid "The access mode for the socket. Defaults to @samp{\"0600\"}."
  31460. msgstr ""
  31461. #. type: deftypevr
  31462. #: guix-git/doc/guix.texi:21017
  31463. #, no-wrap
  31464. msgid "{@code{unix-listener-configuration} parameter} string user"
  31465. msgstr ""
  31466. #. type: deftypevr
  31467. #: guix-git/doc/guix.texi:21020 guix-git/doc/guix.texi:21043
  31468. msgid "The user to own the socket. Defaults to @samp{\"\"}."
  31469. msgstr ""
  31470. #. type: deftypevr
  31471. #: guix-git/doc/guix.texi:21022
  31472. #, no-wrap
  31473. msgid "{@code{unix-listener-configuration} parameter} string group"
  31474. msgstr ""
  31475. #. type: deftypevr
  31476. #: guix-git/doc/guix.texi:21025 guix-git/doc/guix.texi:21048
  31477. msgid "The group to own the socket. Defaults to @samp{\"\"}."
  31478. msgstr ""
  31479. #. type: deftypevr
  31480. #: guix-git/doc/guix.texi:21029
  31481. msgid "Available @code{fifo-listener-configuration} fields are:"
  31482. msgstr ""
  31483. #. type: deftypevr
  31484. #: guix-git/doc/guix.texi:21030
  31485. #, no-wrap
  31486. msgid "{@code{fifo-listener-configuration} parameter} string path"
  31487. msgstr ""
  31488. #. type: deftypevr
  31489. #: guix-git/doc/guix.texi:21035
  31490. #, no-wrap
  31491. msgid "{@code{fifo-listener-configuration} parameter} string mode"
  31492. msgstr ""
  31493. #. type: deftypevr
  31494. #: guix-git/doc/guix.texi:21040
  31495. #, no-wrap
  31496. msgid "{@code{fifo-listener-configuration} parameter} string user"
  31497. msgstr ""
  31498. #. type: deftypevr
  31499. #: guix-git/doc/guix.texi:21045
  31500. #, no-wrap
  31501. msgid "{@code{fifo-listener-configuration} parameter} string group"
  31502. msgstr ""
  31503. #. type: deftypevr
  31504. #: guix-git/doc/guix.texi:21052
  31505. msgid "Available @code{inet-listener-configuration} fields are:"
  31506. msgstr ""
  31507. #. type: deftypevr
  31508. #: guix-git/doc/guix.texi:21053
  31509. #, no-wrap
  31510. msgid "{@code{inet-listener-configuration} parameter} string protocol"
  31511. msgstr ""
  31512. #. type: deftypevr
  31513. #: guix-git/doc/guix.texi:21055
  31514. msgid "The protocol to listen for."
  31515. msgstr ""
  31516. #. type: deftypevr
  31517. #: guix-git/doc/guix.texi:21057
  31518. #, no-wrap
  31519. msgid "{@code{inet-listener-configuration} parameter} string address"
  31520. msgstr ""
  31521. #. type: deftypevr
  31522. #: guix-git/doc/guix.texi:21060
  31523. msgid "The address on which to listen, or empty for all addresses. Defaults to @samp{\"\"}."
  31524. msgstr ""
  31525. #. type: deftypevr
  31526. #: guix-git/doc/guix.texi:21062
  31527. #, no-wrap
  31528. msgid "{@code{inet-listener-configuration} parameter} non-negative-integer port"
  31529. msgstr ""
  31530. #. type: deftypevr
  31531. #: guix-git/doc/guix.texi:21064
  31532. msgid "The port on which to listen."
  31533. msgstr ""
  31534. #. type: deftypevr
  31535. #: guix-git/doc/guix.texi:21066
  31536. #, no-wrap
  31537. msgid "{@code{inet-listener-configuration} parameter} boolean ssl?"
  31538. msgstr ""
  31539. #. type: deftypevr
  31540. #: guix-git/doc/guix.texi:21070
  31541. msgid "Whether to use SSL for this service; @samp{yes}, @samp{no}, or @samp{required}. Defaults to @samp{#t}."
  31542. msgstr ""
  31543. #. type: deftypevr
  31544. #: guix-git/doc/guix.texi:21074
  31545. #, no-wrap
  31546. msgid "{@code{service-configuration} parameter} non-negative-integer client-limit"
  31547. msgstr ""
  31548. #. type: deftypevr
  31549. #: guix-git/doc/guix.texi:21079
  31550. 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."
  31551. msgstr ""
  31552. #. type: deftypevr
  31553. #: guix-git/doc/guix.texi:21084
  31554. #, no-wrap
  31555. msgid "{@code{service-configuration} parameter} non-negative-integer service-count"
  31556. msgstr ""
  31557. #. type: deftypevr
  31558. #: guix-git/doc/guix.texi:21089
  31559. 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}."
  31560. msgstr ""
  31561. #. type: deftypevr
  31562. #: guix-git/doc/guix.texi:21092
  31563. #, no-wrap
  31564. msgid "{@code{service-configuration} parameter} non-negative-integer process-limit"
  31565. msgstr ""
  31566. #. type: deftypevr
  31567. #: guix-git/doc/guix.texi:21095
  31568. msgid "Maximum number of processes that can exist for this service. If set to 0, @code{default-process-limit} is used instead."
  31569. msgstr ""
  31570. #. type: deftypevr
  31571. #: guix-git/doc/guix.texi:21100
  31572. #, no-wrap
  31573. msgid "{@code{service-configuration} parameter} non-negative-integer process-min-avail"
  31574. msgstr ""
  31575. #. type: deftypevr
  31576. #: guix-git/doc/guix.texi:21103
  31577. msgid "Number of processes to always keep waiting for more connections. Defaults to @samp{0}."
  31578. msgstr ""
  31579. #. type: deftypevr
  31580. #: guix-git/doc/guix.texi:21105
  31581. #, no-wrap
  31582. msgid "{@code{service-configuration} parameter} non-negative-integer vsz-limit"
  31583. msgstr ""
  31584. #. type: deftypevr
  31585. #: guix-git/doc/guix.texi:21109
  31586. msgid "If you set @samp{service-count 0}, you probably need to grow this. Defaults to @samp{256000000}."
  31587. msgstr ""
  31588. #. type: deftypevr
  31589. #: guix-git/doc/guix.texi:21113
  31590. #, no-wrap
  31591. msgid "{@code{dovecot-configuration} parameter} dict-configuration dict"
  31592. msgstr ""
  31593. #. type: deftypevr
  31594. #: guix-git/doc/guix.texi:21116
  31595. msgid "Dict configuration, as created by the @code{dict-configuration} constructor."
  31596. msgstr ""
  31597. #. type: deftypevr
  31598. #: guix-git/doc/guix.texi:21118
  31599. msgid "Available @code{dict-configuration} fields are:"
  31600. msgstr ""
  31601. #. type: deftypevr
  31602. #: guix-git/doc/guix.texi:21119
  31603. #, no-wrap
  31604. msgid "{@code{dict-configuration} parameter} free-form-fields entries"
  31605. msgstr ""
  31606. #. type: deftypevr
  31607. #: guix-git/doc/guix.texi:21122
  31608. msgid "A list of key-value pairs that this dict should hold. Defaults to @samp{()}."
  31609. msgstr ""
  31610. #. type: deftypevr
  31611. #: guix-git/doc/guix.texi:21126
  31612. #, no-wrap
  31613. msgid "{@code{dovecot-configuration} parameter} passdb-configuration-list passdbs"
  31614. msgstr ""
  31615. #. type: deftypevr
  31616. #: guix-git/doc/guix.texi:21129
  31617. msgid "A list of passdb configurations, each one created by the @code{passdb-configuration} constructor."
  31618. msgstr ""
  31619. #. type: deftypevr
  31620. #: guix-git/doc/guix.texi:21131
  31621. msgid "Available @code{passdb-configuration} fields are:"
  31622. msgstr ""
  31623. #. type: deftypevr
  31624. #: guix-git/doc/guix.texi:21132
  31625. #, no-wrap
  31626. msgid "{@code{passdb-configuration} parameter} string driver"
  31627. msgstr ""
  31628. #. type: deftypevr
  31629. #: guix-git/doc/guix.texi:21137
  31630. 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\"}."
  31631. msgstr ""
  31632. #. type: deftypevr
  31633. #: guix-git/doc/guix.texi:21139
  31634. #, no-wrap
  31635. msgid "{@code{passdb-configuration} parameter} space-separated-string-list args"
  31636. msgstr ""
  31637. #. type: deftypevr
  31638. #: guix-git/doc/guix.texi:21142
  31639. msgid "Space separated list of arguments to the passdb driver. Defaults to @samp{\"\"}."
  31640. msgstr ""
  31641. #. type: deftypevr
  31642. #: guix-git/doc/guix.texi:21146
  31643. #, no-wrap
  31644. msgid "{@code{dovecot-configuration} parameter} userdb-configuration-list userdbs"
  31645. msgstr ""
  31646. #. type: deftypevr
  31647. #: guix-git/doc/guix.texi:21149
  31648. msgid "List of userdb configurations, each one created by the @code{userdb-configuration} constructor."
  31649. msgstr ""
  31650. #. type: deftypevr
  31651. #: guix-git/doc/guix.texi:21151
  31652. msgid "Available @code{userdb-configuration} fields are:"
  31653. msgstr ""
  31654. #. type: deftypevr
  31655. #: guix-git/doc/guix.texi:21152
  31656. #, no-wrap
  31657. msgid "{@code{userdb-configuration} parameter} string driver"
  31658. msgstr ""
  31659. #. type: deftypevr
  31660. #: guix-git/doc/guix.texi:21156
  31661. msgid "The driver that the userdb should use. Valid values include @samp{passwd} and @samp{static}. Defaults to @samp{\"passwd\"}."
  31662. msgstr ""
  31663. #. type: deftypevr
  31664. #: guix-git/doc/guix.texi:21158
  31665. #, no-wrap
  31666. msgid "{@code{userdb-configuration} parameter} space-separated-string-list args"
  31667. msgstr ""
  31668. #. type: deftypevr
  31669. #: guix-git/doc/guix.texi:21161
  31670. msgid "Space separated list of arguments to the userdb driver. Defaults to @samp{\"\"}."
  31671. msgstr ""
  31672. #. type: deftypevr
  31673. #: guix-git/doc/guix.texi:21163
  31674. #, no-wrap
  31675. msgid "{@code{userdb-configuration} parameter} free-form-args override-fields"
  31676. msgstr ""
  31677. #. type: deftypevr
  31678. #: guix-git/doc/guix.texi:21166
  31679. msgid "Override fields from passwd. Defaults to @samp{()}."
  31680. msgstr ""
  31681. #. type: deftypevr
  31682. #: guix-git/doc/guix.texi:21170
  31683. #, no-wrap
  31684. msgid "{@code{dovecot-configuration} parameter} plugin-configuration plugin-configuration"
  31685. msgstr ""
  31686. #. type: deftypevr
  31687. #: guix-git/doc/guix.texi:21173
  31688. msgid "Plug-in configuration, created by the @code{plugin-configuration} constructor."
  31689. msgstr ""
  31690. #. type: deftypevr
  31691. #: guix-git/doc/guix.texi:21175
  31692. #, no-wrap
  31693. msgid "{@code{dovecot-configuration} parameter} list-of-namespace-configuration namespaces"
  31694. msgstr ""
  31695. #. type: deftypevr
  31696. #: guix-git/doc/guix.texi:21178
  31697. msgid "List of namespaces. Each item in the list is created by the @code{namespace-configuration} constructor."
  31698. msgstr ""
  31699. #. type: deftypevr
  31700. #: guix-git/doc/guix.texi:21180
  31701. msgid "Available @code{namespace-configuration} fields are:"
  31702. msgstr ""
  31703. #. type: deftypevr
  31704. #: guix-git/doc/guix.texi:21181
  31705. #, no-wrap
  31706. msgid "{@code{namespace-configuration} parameter} string name"
  31707. msgstr ""
  31708. #. type: deftypevr
  31709. #: guix-git/doc/guix.texi:21183
  31710. msgid "Name for this namespace."
  31711. msgstr ""
  31712. #. type: deftypevr
  31713. #: guix-git/doc/guix.texi:21185
  31714. #, no-wrap
  31715. msgid "{@code{namespace-configuration} parameter} string type"
  31716. msgstr ""
  31717. #. type: deftypevr
  31718. #: guix-git/doc/guix.texi:21188
  31719. msgid "Namespace type: @samp{private}, @samp{shared} or @samp{public}. Defaults to @samp{\"private\"}."
  31720. msgstr ""
  31721. #. type: deftypevr
  31722. #: guix-git/doc/guix.texi:21190
  31723. #, no-wrap
  31724. msgid "{@code{namespace-configuration} parameter} string separator"
  31725. msgstr ""
  31726. #. type: deftypevr
  31727. #: guix-git/doc/guix.texi:21196
  31728. 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{\"\"}."
  31729. msgstr ""
  31730. #. type: deftypevr
  31731. #: guix-git/doc/guix.texi:21198
  31732. #, no-wrap
  31733. msgid "{@code{namespace-configuration} parameter} string prefix"
  31734. msgstr ""
  31735. #. type: deftypevr
  31736. #: guix-git/doc/guix.texi:21202
  31737. msgid "Prefix required to access this namespace. This needs to be different for all namespaces. For example @samp{Public/}. Defaults to @samp{\"\"}."
  31738. msgstr ""
  31739. #. type: deftypevr
  31740. #: guix-git/doc/guix.texi:21204
  31741. #, no-wrap
  31742. msgid "{@code{namespace-configuration} parameter} string location"
  31743. msgstr ""
  31744. #. type: deftypevr
  31745. #: guix-git/doc/guix.texi:21208
  31746. 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{\"\"}."
  31747. msgstr ""
  31748. #. type: deftypevr
  31749. #: guix-git/doc/guix.texi:21210
  31750. #, no-wrap
  31751. msgid "{@code{namespace-configuration} parameter} boolean inbox?"
  31752. msgstr ""
  31753. #. type: deftypevr
  31754. #: guix-git/doc/guix.texi:21214
  31755. msgid "There can be only one INBOX, and this setting defines which namespace has it. Defaults to @samp{#f}."
  31756. msgstr ""
  31757. #. type: deftypevr
  31758. #: guix-git/doc/guix.texi:21216
  31759. #, no-wrap
  31760. msgid "{@code{namespace-configuration} parameter} boolean hidden?"
  31761. msgstr ""
  31762. #. type: deftypevr
  31763. #: guix-git/doc/guix.texi:21224
  31764. 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}."
  31765. msgstr ""
  31766. #. type: deftypevr
  31767. #: guix-git/doc/guix.texi:21226
  31768. #, no-wrap
  31769. msgid "{@code{namespace-configuration} parameter} boolean list?"
  31770. msgstr ""
  31771. #. type: deftypevr
  31772. #: guix-git/doc/guix.texi:21232
  31773. 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}."
  31774. msgstr ""
  31775. #. type: deftypevr
  31776. #: guix-git/doc/guix.texi:21234
  31777. #, no-wrap
  31778. msgid "{@code{namespace-configuration} parameter} boolean subscriptions?"
  31779. msgstr ""
  31780. #. type: deftypevr
  31781. #: guix-git/doc/guix.texi:21239
  31782. 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}."
  31783. msgstr ""
  31784. #. type: deftypevr
  31785. #: guix-git/doc/guix.texi:21241
  31786. #, no-wrap
  31787. msgid "{@code{namespace-configuration} parameter} mailbox-configuration-list mailboxes"
  31788. msgstr ""
  31789. #. type: deftypevr
  31790. #: guix-git/doc/guix.texi:21244
  31791. msgid "List of predefined mailboxes in this namespace. Defaults to @samp{()}."
  31792. msgstr ""
  31793. #. type: deftypevr
  31794. #: guix-git/doc/guix.texi:21246
  31795. msgid "Available @code{mailbox-configuration} fields are:"
  31796. msgstr ""
  31797. #. type: deftypevr
  31798. #: guix-git/doc/guix.texi:21247
  31799. #, no-wrap
  31800. msgid "{@code{mailbox-configuration} parameter} string name"
  31801. msgstr ""
  31802. #. type: deftypevr
  31803. #: guix-git/doc/guix.texi:21249
  31804. msgid "Name for this mailbox."
  31805. msgstr ""
  31806. #. type: deftypevr
  31807. #: guix-git/doc/guix.texi:21251
  31808. #, no-wrap
  31809. msgid "{@code{mailbox-configuration} parameter} string auto"
  31810. msgstr ""
  31811. #. type: deftypevr
  31812. #: guix-git/doc/guix.texi:21255
  31813. msgid "@samp{create} will automatically create this mailbox. @samp{subscribe} will both create and subscribe to the mailbox. Defaults to @samp{\"no\"}."
  31814. msgstr ""
  31815. #. type: deftypevr
  31816. #: guix-git/doc/guix.texi:21257
  31817. #, no-wrap
  31818. msgid "{@code{mailbox-configuration} parameter} space-separated-string-list special-use"
  31819. msgstr ""
  31820. #. type: deftypevr
  31821. #: guix-git/doc/guix.texi:21262
  31822. 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{()}."
  31823. msgstr ""
  31824. #. type: deftypevr
  31825. #: guix-git/doc/guix.texi:21268
  31826. #, no-wrap
  31827. msgid "{@code{dovecot-configuration} parameter} file-name base-dir"
  31828. msgstr ""
  31829. #. type: deftypevr
  31830. #: guix-git/doc/guix.texi:21271
  31831. msgid "Base directory where to store runtime data. Defaults to @samp{\"/var/run/dovecot/\"}."
  31832. msgstr ""
  31833. #. type: deftypevr
  31834. #: guix-git/doc/guix.texi:21273
  31835. #, no-wrap
  31836. msgid "{@code{dovecot-configuration} parameter} string login-greeting"
  31837. msgstr ""
  31838. #. type: deftypevr
  31839. #: guix-git/doc/guix.texi:21276
  31840. msgid "Greeting message for clients. Defaults to @samp{\"Dovecot ready.\"}."
  31841. msgstr ""
  31842. #. type: deftypevr
  31843. #: guix-git/doc/guix.texi:21278
  31844. #, no-wrap
  31845. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-trusted-networks"
  31846. msgstr ""
  31847. #. type: deftypevr
  31848. #: guix-git/doc/guix.texi:21285
  31849. 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{()}."
  31850. msgstr ""
  31851. #. type: deftypevr
  31852. #: guix-git/doc/guix.texi:21287
  31853. #, no-wrap
  31854. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-access-sockets"
  31855. msgstr ""
  31856. #. type: deftypevr
  31857. #: guix-git/doc/guix.texi:21290
  31858. msgid "List of login access check sockets (e.g.@: tcpwrap). Defaults to @samp{()}."
  31859. msgstr ""
  31860. #. type: deftypevr
  31861. #: guix-git/doc/guix.texi:21292
  31862. #, no-wrap
  31863. msgid "{@code{dovecot-configuration} parameter} boolean verbose-proctitle?"
  31864. msgstr ""
  31865. #. type: deftypevr
  31866. #: guix-git/doc/guix.texi:21298
  31867. 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}."
  31868. msgstr ""
  31869. #. type: deftypevr
  31870. #: guix-git/doc/guix.texi:21300
  31871. #, no-wrap
  31872. msgid "{@code{dovecot-configuration} parameter} boolean shutdown-clients?"
  31873. msgstr ""
  31874. #. type: deftypevr
  31875. #: guix-git/doc/guix.texi:21306
  31876. 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}."
  31877. msgstr ""
  31878. #. type: deftypevr
  31879. #: guix-git/doc/guix.texi:21308
  31880. #, no-wrap
  31881. msgid "{@code{dovecot-configuration} parameter} non-negative-integer doveadm-worker-count"
  31882. msgstr ""
  31883. #. type: deftypevr
  31884. #: guix-git/doc/guix.texi:21312
  31885. 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}."
  31886. msgstr ""
  31887. #. type: deftypevr
  31888. #: guix-git/doc/guix.texi:21314
  31889. #, no-wrap
  31890. msgid "{@code{dovecot-configuration} parameter} string doveadm-socket-path"
  31891. msgstr ""
  31892. #. type: deftypevr
  31893. #: guix-git/doc/guix.texi:21317
  31894. msgid "UNIX socket or host:port used for connecting to doveadm server. Defaults to @samp{\"doveadm-server\"}."
  31895. msgstr ""
  31896. #. type: deftypevr
  31897. #: guix-git/doc/guix.texi:21319
  31898. #, no-wrap
  31899. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list import-environment"
  31900. msgstr ""
  31901. #. type: deftypevr
  31902. #: guix-git/doc/guix.texi:21323
  31903. 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."
  31904. msgstr ""
  31905. #. type: deftypevr
  31906. #: guix-git/doc/guix.texi:21325
  31907. #, no-wrap
  31908. msgid "{@code{dovecot-configuration} parameter} boolean disable-plaintext-auth?"
  31909. msgstr ""
  31910. #. type: deftypevr
  31911. #: guix-git/doc/guix.texi:21332
  31912. 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}."
  31913. msgstr ""
  31914. #. type: deftypevr
  31915. #: guix-git/doc/guix.texi:21334
  31916. #, no-wrap
  31917. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-cache-size"
  31918. msgstr ""
  31919. #. type: deftypevr
  31920. #: guix-git/doc/guix.texi:21339
  31921. 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}."
  31922. msgstr ""
  31923. #. type: deftypevr
  31924. #: guix-git/doc/guix.texi:21341
  31925. #, no-wrap
  31926. msgid "{@code{dovecot-configuration} parameter} string auth-cache-ttl"
  31927. msgstr ""
  31928. #. type: deftypevr
  31929. #: guix-git/doc/guix.texi:21349
  31930. 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\"}."
  31931. msgstr ""
  31932. #. type: deftypevr
  31933. #: guix-git/doc/guix.texi:21351
  31934. #, no-wrap
  31935. msgid "{@code{dovecot-configuration} parameter} string auth-cache-negative-ttl"
  31936. msgstr ""
  31937. #. type: deftypevr
  31938. #: guix-git/doc/guix.texi:21355
  31939. msgid "TTL for negative hits (user not found, password mismatch). 0 disables caching them completely. Defaults to @samp{\"1 hour\"}."
  31940. msgstr ""
  31941. #. type: deftypevr
  31942. #: guix-git/doc/guix.texi:21357
  31943. #, no-wrap
  31944. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-realms"
  31945. msgstr ""
  31946. #. type: deftypevr
  31947. #: guix-git/doc/guix.texi:21363
  31948. 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{()}."
  31949. msgstr ""
  31950. #. type: deftypevr
  31951. #: guix-git/doc/guix.texi:21365
  31952. #, no-wrap
  31953. msgid "{@code{dovecot-configuration} parameter} string auth-default-realm"
  31954. msgstr ""
  31955. #. type: deftypevr
  31956. #: guix-git/doc/guix.texi:21370
  31957. 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{\"\"}."
  31958. msgstr ""
  31959. #. type: deftypevr
  31960. #: guix-git/doc/guix.texi:21372
  31961. #, no-wrap
  31962. msgid "{@code{dovecot-configuration} parameter} string auth-username-chars"
  31963. msgstr ""
  31964. #. type: deftypevr
  31965. #: guix-git/doc/guix.texi:21379
  31966. 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.-_@@\"}."
  31967. msgstr ""
  31968. #. type: deftypevr
  31969. #: guix-git/doc/guix.texi:21381
  31970. #, no-wrap
  31971. msgid "{@code{dovecot-configuration} parameter} string auth-username-translation"
  31972. msgstr ""
  31973. #. type: deftypevr
  31974. #: guix-git/doc/guix.texi:21387
  31975. 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{\"\"}."
  31976. msgstr ""
  31977. #. type: deftypevr
  31978. #: guix-git/doc/guix.texi:21389
  31979. #, no-wrap
  31980. msgid "{@code{dovecot-configuration} parameter} string auth-username-format"
  31981. msgstr ""
  31982. #. type: deftypevr
  31983. #: guix-git/doc/guix.texi:21396
  31984. 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\"}."
  31985. msgstr ""
  31986. #. type: deftypevr
  31987. #: guix-git/doc/guix.texi:21398
  31988. #, no-wrap
  31989. msgid "{@code{dovecot-configuration} parameter} string auth-master-user-separator"
  31990. msgstr ""
  31991. #. type: deftypevr
  31992. #: guix-git/doc/guix.texi:21406
  31993. 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{\"\"}."
  31994. msgstr ""
  31995. #. type: deftypevr
  31996. #: guix-git/doc/guix.texi:21408
  31997. #, no-wrap
  31998. msgid "{@code{dovecot-configuration} parameter} string auth-anonymous-username"
  31999. msgstr ""
  32000. #. type: deftypevr
  32001. #: guix-git/doc/guix.texi:21412
  32002. msgid "Username to use for users logging in with ANONYMOUS SASL mechanism. Defaults to @samp{\"anonymous\"}."
  32003. msgstr ""
  32004. #. type: deftypevr
  32005. #: guix-git/doc/guix.texi:21414
  32006. #, no-wrap
  32007. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-worker-max-count"
  32008. msgstr ""
  32009. #. type: deftypevr
  32010. #: guix-git/doc/guix.texi:21419
  32011. 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}."
  32012. msgstr ""
  32013. #. type: deftypevr
  32014. #: guix-git/doc/guix.texi:21421
  32015. #, no-wrap
  32016. msgid "{@code{dovecot-configuration} parameter} string auth-gssapi-hostname"
  32017. msgstr ""
  32018. #. type: deftypevr
  32019. #: guix-git/doc/guix.texi:21426
  32020. 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{\"\"}."
  32021. msgstr ""
  32022. #. type: deftypevr
  32023. #: guix-git/doc/guix.texi:21428
  32024. #, no-wrap
  32025. msgid "{@code{dovecot-configuration} parameter} string auth-krb5-keytab"
  32026. msgstr ""
  32027. #. type: deftypevr
  32028. #: guix-git/doc/guix.texi:21434
  32029. 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{\"\"}."
  32030. msgstr ""
  32031. #. type: deftypevr
  32032. #: guix-git/doc/guix.texi:21436
  32033. #, no-wrap
  32034. msgid "{@code{dovecot-configuration} parameter} boolean auth-use-winbind?"
  32035. msgstr ""
  32036. #. type: deftypevr
  32037. #: guix-git/doc/guix.texi:21441
  32038. 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}."
  32039. msgstr ""
  32040. #. type: deftypevr
  32041. #: guix-git/doc/guix.texi:21443
  32042. #, no-wrap
  32043. msgid "{@code{dovecot-configuration} parameter} file-name auth-winbind-helper-path"
  32044. msgstr ""
  32045. #. type: deftypevr
  32046. #: guix-git/doc/guix.texi:21446
  32047. msgid "Path for Samba's @samp{ntlm-auth} helper binary. Defaults to @samp{\"/usr/bin/ntlm_auth\"}."
  32048. msgstr ""
  32049. #. type: deftypevr
  32050. #: guix-git/doc/guix.texi:21448
  32051. #, no-wrap
  32052. msgid "{@code{dovecot-configuration} parameter} string auth-failure-delay"
  32053. msgstr ""
  32054. #. type: deftypevr
  32055. #: guix-git/doc/guix.texi:21451
  32056. msgid "Time to delay before replying to failed authentications. Defaults to @samp{\"2 secs\"}."
  32057. msgstr ""
  32058. #. type: deftypevr
  32059. #: guix-git/doc/guix.texi:21453
  32060. #, no-wrap
  32061. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-require-client-cert?"
  32062. msgstr ""
  32063. #. type: deftypevr
  32064. #: guix-git/doc/guix.texi:21457
  32065. msgid "Require a valid SSL client certificate or the authentication fails. Defaults to @samp{#f}."
  32066. msgstr ""
  32067. #. type: deftypevr
  32068. #: guix-git/doc/guix.texi:21459
  32069. #, no-wrap
  32070. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-username-from-cert?"
  32071. msgstr ""
  32072. #. type: deftypevr
  32073. #: guix-git/doc/guix.texi:21464
  32074. 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}."
  32075. msgstr ""
  32076. #. type: deftypevr
  32077. #: guix-git/doc/guix.texi:21466
  32078. #, no-wrap
  32079. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-mechanisms"
  32080. msgstr ""
  32081. #. type: deftypevr
  32082. #: guix-git/doc/guix.texi:21472
  32083. 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."
  32084. msgstr ""
  32085. #. type: deftypevr
  32086. #: guix-git/doc/guix.texi:21474
  32087. #, no-wrap
  32088. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-servers"
  32089. msgstr ""
  32090. #. type: deftypevr
  32091. #: guix-git/doc/guix.texi:21479
  32092. 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{()}."
  32093. msgstr ""
  32094. #. type: deftypevr
  32095. #: guix-git/doc/guix.texi:21481
  32096. #, no-wrap
  32097. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-mail-servers"
  32098. msgstr ""
  32099. #. type: deftypevr
  32100. #: guix-git/doc/guix.texi:21485
  32101. 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{()}."
  32102. msgstr ""
  32103. #. type: deftypevr
  32104. #: guix-git/doc/guix.texi:21487
  32105. #, no-wrap
  32106. msgid "{@code{dovecot-configuration} parameter} string director-user-expire"
  32107. msgstr ""
  32108. #. type: deftypevr
  32109. #: guix-git/doc/guix.texi:21491
  32110. msgid "How long to redirect users to a specific server after it no longer has any connections. Defaults to @samp{\"15 min\"}."
  32111. msgstr ""
  32112. #. type: deftypevr
  32113. #: guix-git/doc/guix.texi:21493
  32114. #, no-wrap
  32115. msgid "{@code{dovecot-configuration} parameter} string director-username-hash"
  32116. msgstr ""
  32117. #. type: deftypevr
  32118. #: guix-git/doc/guix.texi:21498
  32119. 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\"}."
  32120. msgstr ""
  32121. #. type: deftypevr
  32122. #: guix-git/doc/guix.texi:21500
  32123. #, no-wrap
  32124. msgid "{@code{dovecot-configuration} parameter} string log-path"
  32125. msgstr ""
  32126. #. type: deftypevr
  32127. #: guix-git/doc/guix.texi:21504
  32128. msgid "Log file to use for error messages. @samp{syslog} logs to syslog, @samp{/dev/stderr} logs to stderr. Defaults to @samp{\"syslog\"}."
  32129. msgstr ""
  32130. #. type: deftypevr
  32131. #: guix-git/doc/guix.texi:21506
  32132. #, no-wrap
  32133. msgid "{@code{dovecot-configuration} parameter} string info-log-path"
  32134. msgstr ""
  32135. #. type: deftypevr
  32136. #: guix-git/doc/guix.texi:21510
  32137. msgid "Log file to use for informational messages. Defaults to @samp{log-path}. Defaults to @samp{\"\"}."
  32138. msgstr ""
  32139. #. type: deftypevr
  32140. #: guix-git/doc/guix.texi:21512
  32141. #, no-wrap
  32142. msgid "{@code{dovecot-configuration} parameter} string debug-log-path"
  32143. msgstr ""
  32144. #. type: deftypevr
  32145. #: guix-git/doc/guix.texi:21516
  32146. msgid "Log file to use for debug messages. Defaults to @samp{info-log-path}. Defaults to @samp{\"\"}."
  32147. msgstr ""
  32148. #. type: deftypevr
  32149. #: guix-git/doc/guix.texi:21518
  32150. #, no-wrap
  32151. msgid "{@code{dovecot-configuration} parameter} string syslog-facility"
  32152. msgstr ""
  32153. #. type: deftypevr
  32154. #: guix-git/doc/guix.texi:21523
  32155. 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\"}."
  32156. msgstr ""
  32157. #. type: deftypevr
  32158. #: guix-git/doc/guix.texi:21525
  32159. #, no-wrap
  32160. msgid "{@code{dovecot-configuration} parameter} boolean auth-verbose?"
  32161. msgstr ""
  32162. #. type: deftypevr
  32163. #: guix-git/doc/guix.texi:21529
  32164. msgid "Log unsuccessful authentication attempts and the reasons why they failed. Defaults to @samp{#f}."
  32165. msgstr ""
  32166. #. type: deftypevr
  32167. #: guix-git/doc/guix.texi:21531
  32168. #, no-wrap
  32169. msgid "{@code{dovecot-configuration} parameter} string auth-verbose-passwords"
  32170. msgstr ""
  32171. #. type: deftypevr
  32172. #: guix-git/doc/guix.texi:21538
  32173. 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\"}."
  32174. msgstr ""
  32175. #. type: deftypevr
  32176. #: guix-git/doc/guix.texi:21540
  32177. #, no-wrap
  32178. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug?"
  32179. msgstr ""
  32180. #. type: deftypevr
  32181. #: guix-git/doc/guix.texi:21544
  32182. msgid "Even more verbose logging for debugging purposes. Shows for example SQL queries. Defaults to @samp{#f}."
  32183. msgstr ""
  32184. #. type: deftypevr
  32185. #: guix-git/doc/guix.texi:21546
  32186. #, no-wrap
  32187. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug-passwords?"
  32188. msgstr ""
  32189. #. type: deftypevr
  32190. #: guix-git/doc/guix.texi:21551
  32191. 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}."
  32192. msgstr ""
  32193. #. type: deftypevr
  32194. #: guix-git/doc/guix.texi:21553
  32195. #, no-wrap
  32196. msgid "{@code{dovecot-configuration} parameter} boolean mail-debug?"
  32197. msgstr ""
  32198. #. type: deftypevr
  32199. #: guix-git/doc/guix.texi:21557
  32200. msgid "Enable mail process debugging. This can help you figure out why Dovecot isn't finding your mails. Defaults to @samp{#f}."
  32201. msgstr ""
  32202. #. type: deftypevr
  32203. #: guix-git/doc/guix.texi:21559
  32204. #, no-wrap
  32205. msgid "{@code{dovecot-configuration} parameter} boolean verbose-ssl?"
  32206. msgstr ""
  32207. #. type: deftypevr
  32208. #: guix-git/doc/guix.texi:21562
  32209. msgid "Show protocol level SSL errors. Defaults to @samp{#f}."
  32210. msgstr ""
  32211. #. type: deftypevr
  32212. #: guix-git/doc/guix.texi:21564
  32213. #, no-wrap
  32214. msgid "{@code{dovecot-configuration} parameter} string log-timestamp"
  32215. msgstr ""
  32216. #. type: deftypevr
  32217. #: guix-git/doc/guix.texi:21568
  32218. msgid "Prefix for each line written to log file. % codes are in strftime(3) format. Defaults to @samp{\"\\\"%b %d %H:%M:%S \\\"\"}."
  32219. msgstr ""
  32220. #. type: deftypevr
  32221. #: guix-git/doc/guix.texi:21570
  32222. #, no-wrap
  32223. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-log-format-elements"
  32224. msgstr ""
  32225. #. type: deftypevr
  32226. #: guix-git/doc/guix.texi:21574
  32227. 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."
  32228. msgstr ""
  32229. #. type: deftypevr
  32230. #: guix-git/doc/guix.texi:21576
  32231. #, no-wrap
  32232. msgid "{@code{dovecot-configuration} parameter} string login-log-format"
  32233. msgstr ""
  32234. #. type: deftypevr
  32235. #: guix-git/doc/guix.texi:21580
  32236. msgid "Login log format. %s contains @samp{login-log-format-elements} string, %$ contains the data we want to log. Defaults to @samp{\"%$: %s\"}."
  32237. msgstr ""
  32238. #. type: deftypevr
  32239. #: guix-git/doc/guix.texi:21582
  32240. #, no-wrap
  32241. msgid "{@code{dovecot-configuration} parameter} string mail-log-prefix"
  32242. msgstr ""
  32243. #. type: deftypevr
  32244. #: guix-git/doc/guix.texi:21586
  32245. 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@}>: \\\"\"}."
  32246. msgstr ""
  32247. #. type: deftypevr
  32248. #: guix-git/doc/guix.texi:21588
  32249. #, no-wrap
  32250. msgid "{@code{dovecot-configuration} parameter} string deliver-log-format"
  32251. msgstr ""
  32252. #. type: deftypevr
  32253. #: guix-git/doc/guix.texi:21590
  32254. msgid "Format to use for logging mail deliveries. You can use variables:"
  32255. msgstr ""
  32256. #. type: item
  32257. #: guix-git/doc/guix.texi:21591
  32258. #, no-wrap
  32259. msgid "%$"
  32260. msgstr ""
  32261. #. type: table
  32262. #: guix-git/doc/guix.texi:21593
  32263. msgid "Delivery status message (e.g.@: @samp{saved to INBOX})"
  32264. msgstr ""
  32265. #. type: item
  32266. #: guix-git/doc/guix.texi:21593
  32267. #, no-wrap
  32268. msgid "%m"
  32269. msgstr ""
  32270. #. type: table
  32271. #: guix-git/doc/guix.texi:21595
  32272. msgid "Message-ID"
  32273. msgstr ""
  32274. #. type: item
  32275. #: guix-git/doc/guix.texi:21595 guix-git/doc/guix.texi:22138
  32276. #, no-wrap
  32277. msgid "%s"
  32278. msgstr ""
  32279. #. type: table
  32280. #: guix-git/doc/guix.texi:21597
  32281. msgid "Subject"
  32282. msgstr ""
  32283. #. type: item
  32284. #: guix-git/doc/guix.texi:21597
  32285. #, no-wrap
  32286. msgid "%f"
  32287. msgstr ""
  32288. #. type: table
  32289. #: guix-git/doc/guix.texi:21599
  32290. msgid "From address"
  32291. msgstr ""
  32292. #. type: table
  32293. #: guix-git/doc/guix.texi:21601
  32294. msgid "Physical size"
  32295. msgstr ""
  32296. #. type: item
  32297. #: guix-git/doc/guix.texi:21601
  32298. #, no-wrap
  32299. msgid "%w"
  32300. msgstr ""
  32301. #. type: table
  32302. #: guix-git/doc/guix.texi:21603
  32303. msgid "Virtual size."
  32304. msgstr ""
  32305. #. type: deftypevr
  32306. #: guix-git/doc/guix.texi:21605
  32307. msgid "Defaults to @samp{\"msgid=%m: %$\"}."
  32308. msgstr ""
  32309. #. type: deftypevr
  32310. #: guix-git/doc/guix.texi:21607
  32311. #, no-wrap
  32312. msgid "{@code{dovecot-configuration} parameter} string mail-location"
  32313. msgstr ""
  32314. #. type: deftypevr
  32315. #: guix-git/doc/guix.texi:21612
  32316. 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."
  32317. msgstr ""
  32318. #. type: deftypevr
  32319. #: guix-git/doc/guix.texi:21618
  32320. 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."
  32321. msgstr ""
  32322. #. type: deftypevr
  32323. #: guix-git/doc/guix.texi:21620
  32324. msgid "There are a few special variables you can use, e.g.:"
  32325. msgstr ""
  32326. #. type: table
  32327. #: guix-git/doc/guix.texi:21624
  32328. msgid "username"
  32329. msgstr ""
  32330. #. type: item
  32331. #: guix-git/doc/guix.texi:21624 guix-git/doc/guix.texi:22134
  32332. #, no-wrap
  32333. msgid "%n"
  32334. msgstr ""
  32335. #. type: table
  32336. #: guix-git/doc/guix.texi:21626
  32337. msgid "user part in user@@domain, same as %u if there's no domain"
  32338. msgstr ""
  32339. #. type: item
  32340. #: guix-git/doc/guix.texi:21626
  32341. #, no-wrap
  32342. msgid "%d"
  32343. msgstr ""
  32344. #. type: table
  32345. #: guix-git/doc/guix.texi:21628
  32346. msgid "domain part in user@@domain, empty if there's no domain"
  32347. msgstr ""
  32348. #. type: item
  32349. #: guix-git/doc/guix.texi:21628
  32350. #, no-wrap
  32351. msgid "%h"
  32352. msgstr ""
  32353. #. type: table
  32354. #: guix-git/doc/guix.texi:21630
  32355. msgid "home director"
  32356. msgstr ""
  32357. #. type: deftypevr
  32358. #: guix-git/doc/guix.texi:21633
  32359. msgid "See doc/wiki/Variables.txt for full list. Some examples:"
  32360. msgstr ""
  32361. #. type: item
  32362. #: guix-git/doc/guix.texi:21634
  32363. #, no-wrap
  32364. msgid "maildir:~/Maildir"
  32365. msgstr ""
  32366. #. type: item
  32367. #: guix-git/doc/guix.texi:21635
  32368. #, no-wrap
  32369. msgid "mbox:~/mail:INBOX=/var/mail/%u"
  32370. msgstr ""
  32371. #. type: item
  32372. #: guix-git/doc/guix.texi:21636
  32373. #, no-wrap
  32374. msgid "mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%"
  32375. msgstr ""
  32376. #. type: deftypevr
  32377. #: guix-git/doc/guix.texi:21641
  32378. #, no-wrap
  32379. msgid "{@code{dovecot-configuration} parameter} string mail-uid"
  32380. msgstr ""
  32381. #. type: deftypevr
  32382. #: guix-git/doc/guix.texi:21646
  32383. 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{\"\"}."
  32384. msgstr ""
  32385. #. type: deftypevr
  32386. #: guix-git/doc/guix.texi:21648
  32387. #, no-wrap
  32388. msgid "{@code{dovecot-configuration} parameter} string mail-gid"
  32389. msgstr ""
  32390. #. type: deftypevr
  32391. #: guix-git/doc/guix.texi:21653
  32392. #, no-wrap
  32393. msgid "{@code{dovecot-configuration} parameter} string mail-privileged-group"
  32394. msgstr ""
  32395. #. type: deftypevr
  32396. #: guix-git/doc/guix.texi:21659
  32397. 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{\"\"}."
  32398. msgstr ""
  32399. #. type: deftypevr
  32400. #: guix-git/doc/guix.texi:21661
  32401. #, no-wrap
  32402. msgid "{@code{dovecot-configuration} parameter} string mail-access-groups"
  32403. msgstr ""
  32404. #. type: deftypevr
  32405. #: guix-git/doc/guix.texi:21669
  32406. 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{\"\"}."
  32407. msgstr ""
  32408. #. type: deftypevr
  32409. #: guix-git/doc/guix.texi:21671
  32410. #, no-wrap
  32411. msgid "{@code{dovecot-configuration} parameter} string mail-attribute-dict"
  32412. msgstr ""
  32413. #. type: deftypevr
  32414. #: guix-git/doc/guix.texi:21674
  32415. 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}."
  32416. msgstr ""
  32417. #. type: deftypevr
  32418. #: guix-git/doc/guix.texi:21677
  32419. msgid "The IMAP METADATA commands are available only if the ``imap'' protocol configuration's @code{imap-metadata?} field is @samp{#t}."
  32420. msgstr ""
  32421. #. type: deftypevr
  32422. #: guix-git/doc/guix.texi:21682
  32423. #, no-wrap
  32424. msgid "{@code{dovecot-configuration} parameter} boolean mail-full-filesystem-access?"
  32425. msgstr ""
  32426. #. type: deftypevr
  32427. #: guix-git/doc/guix.texi:21688
  32428. 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}."
  32429. msgstr ""
  32430. #. type: deftypevr
  32431. #: guix-git/doc/guix.texi:21690
  32432. #, no-wrap
  32433. msgid "{@code{dovecot-configuration} parameter} boolean mmap-disable?"
  32434. msgstr ""
  32435. #. type: deftypevr
  32436. #: guix-git/doc/guix.texi:21694
  32437. 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}."
  32438. msgstr ""
  32439. #. type: deftypevr
  32440. #: guix-git/doc/guix.texi:21696
  32441. #, no-wrap
  32442. msgid "{@code{dovecot-configuration} parameter} boolean dotlock-use-excl?"
  32443. msgstr ""
  32444. #. type: deftypevr
  32445. #: guix-git/doc/guix.texi:21701
  32446. 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}."
  32447. msgstr ""
  32448. #. type: deftypevr
  32449. #: guix-git/doc/guix.texi:21703
  32450. #, no-wrap
  32451. msgid "{@code{dovecot-configuration} parameter} string mail-fsync"
  32452. msgstr ""
  32453. #. type: deftypevr
  32454. #: guix-git/doc/guix.texi:21705
  32455. msgid "When to use fsync() or fdatasync() calls:"
  32456. msgstr ""
  32457. #. type: item
  32458. #: guix-git/doc/guix.texi:21706
  32459. #, no-wrap
  32460. msgid "optimized"
  32461. msgstr ""
  32462. #. type: table
  32463. #: guix-git/doc/guix.texi:21708
  32464. msgid "Whenever necessary to avoid losing important data"
  32465. msgstr ""
  32466. #. type: table
  32467. #: guix-git/doc/guix.texi:21710
  32468. msgid "Useful with e.g.@: NFS when @code{write()}s are delayed"
  32469. msgstr ""
  32470. #. type: table
  32471. #: guix-git/doc/guix.texi:21712
  32472. msgid "Never use it (best performance, but crashes can lose data)."
  32473. msgstr ""
  32474. #. type: deftypevr
  32475. #: guix-git/doc/guix.texi:21714
  32476. msgid "Defaults to @samp{\"optimized\"}."
  32477. msgstr ""
  32478. #. type: deftypevr
  32479. #: guix-git/doc/guix.texi:21716
  32480. #, no-wrap
  32481. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-storage?"
  32482. msgstr ""
  32483. #. type: deftypevr
  32484. #: guix-git/doc/guix.texi:21721
  32485. 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}."
  32486. msgstr ""
  32487. #. type: deftypevr
  32488. #: guix-git/doc/guix.texi:21723
  32489. #, no-wrap
  32490. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-index?"
  32491. msgstr ""
  32492. #. type: deftypevr
  32493. #: guix-git/doc/guix.texi:21727
  32494. 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}."
  32495. msgstr ""
  32496. #. type: deftypevr
  32497. #: guix-git/doc/guix.texi:21729
  32498. #, no-wrap
  32499. msgid "{@code{dovecot-configuration} parameter} string lock-method"
  32500. msgstr ""
  32501. #. type: deftypevr
  32502. #: guix-git/doc/guix.texi:21735
  32503. 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\"}."
  32504. msgstr ""
  32505. #. type: deftypevr
  32506. #: guix-git/doc/guix.texi:21737
  32507. #, no-wrap
  32508. msgid "{@code{dovecot-configuration} parameter} file-name mail-temp-dir"
  32509. msgstr ""
  32510. #. type: deftypevr
  32511. #: guix-git/doc/guix.texi:21741
  32512. msgid "Directory in which LDA/LMTP temporarily stores incoming mails >128 kB. Defaults to @samp{\"/tmp\"}."
  32513. msgstr ""
  32514. #. type: deftypevr
  32515. #: guix-git/doc/guix.texi:21743
  32516. #, no-wrap
  32517. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-uid"
  32518. msgstr ""
  32519. #. type: deftypevr
  32520. #: guix-git/doc/guix.texi:21749
  32521. 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}."
  32522. msgstr ""
  32523. #. type: deftypevr
  32524. #: guix-git/doc/guix.texi:21751
  32525. #, no-wrap
  32526. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-uid"
  32527. msgstr ""
  32528. #. type: deftypevr
  32529. #: guix-git/doc/guix.texi:21756
  32530. #, no-wrap
  32531. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-gid"
  32532. msgstr ""
  32533. #. type: deftypevr
  32534. #: guix-git/doc/guix.texi:21761
  32535. 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}."
  32536. msgstr ""
  32537. #. type: deftypevr
  32538. #: guix-git/doc/guix.texi:21763
  32539. #, no-wrap
  32540. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-gid"
  32541. msgstr ""
  32542. #. type: deftypevr
  32543. #: guix-git/doc/guix.texi:21768
  32544. #, no-wrap
  32545. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-max-keyword-length"
  32546. msgstr ""
  32547. #. type: deftypevr
  32548. #: guix-git/doc/guix.texi:21772
  32549. msgid "Maximum allowed length for mail keyword name. It's only forced when trying to create new keywords. Defaults to @samp{50}."
  32550. msgstr ""
  32551. #. type: deftypevr
  32552. #: guix-git/doc/guix.texi:21774
  32553. #, no-wrap
  32554. msgid "{@code{dovecot-configuration} parameter} colon-separated-file-name-list valid-chroot-dirs"
  32555. msgstr ""
  32556. #. type: deftypevr
  32557. #: guix-git/doc/guix.texi:21784
  32558. 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{()}."
  32559. msgstr ""
  32560. #. type: deftypevr
  32561. #: guix-git/doc/guix.texi:21786
  32562. #, no-wrap
  32563. msgid "{@code{dovecot-configuration} parameter} string mail-chroot"
  32564. msgstr ""
  32565. #. type: deftypevr
  32566. #: guix-git/doc/guix.texi:21795
  32567. 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{\"\"}."
  32568. msgstr ""
  32569. #. type: deftypevr
  32570. #: guix-git/doc/guix.texi:21797
  32571. #, no-wrap
  32572. msgid "{@code{dovecot-configuration} parameter} file-name auth-socket-path"
  32573. msgstr ""
  32574. #. type: deftypevr
  32575. #: guix-git/doc/guix.texi:21801
  32576. 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\"}."
  32577. msgstr ""
  32578. #. type: deftypevr
  32579. #: guix-git/doc/guix.texi:21803
  32580. #, no-wrap
  32581. msgid "{@code{dovecot-configuration} parameter} file-name mail-plugin-dir"
  32582. msgstr ""
  32583. #. type: deftypevr
  32584. #: guix-git/doc/guix.texi:21806
  32585. msgid "Directory where to look up mail plugins. Defaults to @samp{\"/usr/lib/dovecot\"}."
  32586. msgstr ""
  32587. #. type: deftypevr
  32588. #: guix-git/doc/guix.texi:21808
  32589. #, no-wrap
  32590. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mail-plugins"
  32591. msgstr ""
  32592. #. type: deftypevr
  32593. #: guix-git/doc/guix.texi:21812
  32594. 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{()}."
  32595. msgstr ""
  32596. #. type: deftypevr
  32597. #: guix-git/doc/guix.texi:21814
  32598. #, no-wrap
  32599. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-cache-min-mail-count"
  32600. msgstr ""
  32601. #. type: deftypevr
  32602. #: guix-git/doc/guix.texi:21819
  32603. 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}."
  32604. msgstr ""
  32605. #. type: deftypevr
  32606. #: guix-git/doc/guix.texi:21821
  32607. #, no-wrap
  32608. msgid "{@code{dovecot-configuration} parameter} string mailbox-idle-check-interval"
  32609. msgstr ""
  32610. #. type: deftypevr
  32611. #: guix-git/doc/guix.texi:21828
  32612. 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\"}."
  32613. msgstr ""
  32614. #. type: deftypevr
  32615. #: guix-git/doc/guix.texi:21830
  32616. #, no-wrap
  32617. msgid "{@code{dovecot-configuration} parameter} boolean mail-save-crlf?"
  32618. msgstr ""
  32619. #. type: deftypevr
  32620. #: guix-git/doc/guix.texi:21837
  32621. 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}."
  32622. msgstr ""
  32623. #. type: deftypevr
  32624. #: guix-git/doc/guix.texi:21839
  32625. #, no-wrap
  32626. msgid "{@code{dovecot-configuration} parameter} boolean maildir-stat-dirs?"
  32627. msgstr ""
  32628. #. type: deftypevr
  32629. #: guix-git/doc/guix.texi:21847
  32630. 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}."
  32631. msgstr ""
  32632. #. type: deftypevr
  32633. #: guix-git/doc/guix.texi:21849
  32634. #, no-wrap
  32635. msgid "{@code{dovecot-configuration} parameter} boolean maildir-copy-with-hardlinks?"
  32636. msgstr ""
  32637. #. type: deftypevr
  32638. #: guix-git/doc/guix.texi:21854
  32639. 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}."
  32640. msgstr ""
  32641. #. type: deftypevr
  32642. #: guix-git/doc/guix.texi:21856
  32643. #, no-wrap
  32644. msgid "{@code{dovecot-configuration} parameter} boolean maildir-very-dirty-syncs?"
  32645. msgstr ""
  32646. #. type: deftypevr
  32647. #: guix-git/doc/guix.texi:21861
  32648. 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}."
  32649. msgstr ""
  32650. #. type: deftypevr
  32651. #: guix-git/doc/guix.texi:21863
  32652. #, no-wrap
  32653. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-read-locks"
  32654. msgstr ""
  32655. #. type: deftypevr
  32656. #: guix-git/doc/guix.texi:21866
  32657. msgid "Which locking methods to use for locking mbox. There are four available:"
  32658. msgstr ""
  32659. #. type: item
  32660. #: guix-git/doc/guix.texi:21868
  32661. #, no-wrap
  32662. msgid "dotlock"
  32663. msgstr ""
  32664. #. type: table
  32665. #: guix-git/doc/guix.texi:21872
  32666. 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."
  32667. msgstr ""
  32668. #. type: item
  32669. #: guix-git/doc/guix.texi:21872
  32670. #, no-wrap
  32671. msgid "dotlock-try"
  32672. msgstr ""
  32673. #. type: table
  32674. #: guix-git/doc/guix.texi:21875
  32675. msgid "Same as dotlock, but if it fails because of permissions or because there isn't enough disk space, just skip it."
  32676. msgstr ""
  32677. #. type: item
  32678. #: guix-git/doc/guix.texi:21875
  32679. #, no-wrap
  32680. msgid "fcntl"
  32681. msgstr ""
  32682. #. type: table
  32683. #: guix-git/doc/guix.texi:21877
  32684. msgid "Use this if possible. Works with NFS too if lockd is used."
  32685. msgstr ""
  32686. #. type: item
  32687. #: guix-git/doc/guix.texi:21877
  32688. #, no-wrap
  32689. msgid "flock"
  32690. msgstr ""
  32691. #. type: table
  32692. #: guix-git/doc/guix.texi:21879 guix-git/doc/guix.texi:21881
  32693. msgid "May not exist in all systems. Doesn't work with NFS."
  32694. msgstr ""
  32695. #. type: item
  32696. #: guix-git/doc/guix.texi:21879
  32697. #, no-wrap
  32698. msgid "lockf"
  32699. msgstr ""
  32700. #. type: deftypevr
  32701. #: guix-git/doc/guix.texi:21887
  32702. 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."
  32703. msgstr ""
  32704. #. type: deftypevr
  32705. #: guix-git/doc/guix.texi:21889
  32706. #, no-wrap
  32707. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-write-locks"
  32708. msgstr ""
  32709. #. type: deftypevr
  32710. #: guix-git/doc/guix.texi:21893
  32711. #, no-wrap
  32712. msgid "{@code{dovecot-configuration} parameter} string mbox-lock-timeout"
  32713. msgstr ""
  32714. #. type: deftypevr
  32715. #: guix-git/doc/guix.texi:21896
  32716. msgid "Maximum time to wait for lock (all of them) before aborting. Defaults to @samp{\"5 mins\"}."
  32717. msgstr ""
  32718. #. type: deftypevr
  32719. #: guix-git/doc/guix.texi:21898
  32720. #, no-wrap
  32721. msgid "{@code{dovecot-configuration} parameter} string mbox-dotlock-change-timeout"
  32722. msgstr ""
  32723. #. type: deftypevr
  32724. #: guix-git/doc/guix.texi:21902
  32725. 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\"}."
  32726. msgstr ""
  32727. #. type: deftypevr
  32728. #: guix-git/doc/guix.texi:21904
  32729. #, no-wrap
  32730. msgid "{@code{dovecot-configuration} parameter} boolean mbox-dirty-syncs?"
  32731. msgstr ""
  32732. #. type: deftypevr
  32733. #: guix-git/doc/guix.texi:21915
  32734. 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}."
  32735. msgstr ""
  32736. #. type: deftypevr
  32737. #: guix-git/doc/guix.texi:21917
  32738. #, no-wrap
  32739. msgid "{@code{dovecot-configuration} parameter} boolean mbox-very-dirty-syncs?"
  32740. msgstr ""
  32741. #. type: deftypevr
  32742. #: guix-git/doc/guix.texi:21922
  32743. 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}."
  32744. msgstr ""
  32745. #. type: deftypevr
  32746. #: guix-git/doc/guix.texi:21924
  32747. #, no-wrap
  32748. msgid "{@code{dovecot-configuration} parameter} boolean mbox-lazy-writes?"
  32749. msgstr ""
  32750. #. type: deftypevr
  32751. #: guix-git/doc/guix.texi:21930
  32752. 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}."
  32753. msgstr ""
  32754. #. type: deftypevr
  32755. #: guix-git/doc/guix.texi:21932
  32756. #, no-wrap
  32757. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mbox-min-index-size"
  32758. msgstr ""
  32759. #. type: deftypevr
  32760. #: guix-git/doc/guix.texi:21937
  32761. 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}."
  32762. msgstr ""
  32763. #. type: deftypevr
  32764. #: guix-git/doc/guix.texi:21939
  32765. #, no-wrap
  32766. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mdbox-rotate-size"
  32767. msgstr ""
  32768. #. type: deftypevr
  32769. #: guix-git/doc/guix.texi:21942
  32770. msgid "Maximum dbox file size until it's rotated. Defaults to @samp{10000000}."
  32771. msgstr ""
  32772. #. type: deftypevr
  32773. #: guix-git/doc/guix.texi:21944
  32774. #, no-wrap
  32775. msgid "{@code{dovecot-configuration} parameter} string mdbox-rotate-interval"
  32776. msgstr ""
  32777. #. type: deftypevr
  32778. #: guix-git/doc/guix.texi:21949
  32779. 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\"}."
  32780. msgstr ""
  32781. #. type: deftypevr
  32782. #: guix-git/doc/guix.texi:21951
  32783. #, no-wrap
  32784. msgid "{@code{dovecot-configuration} parameter} boolean mdbox-preallocate-space?"
  32785. msgstr ""
  32786. #. type: deftypevr
  32787. #: guix-git/doc/guix.texi:21956
  32788. 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}."
  32789. msgstr ""
  32790. #. type: deftypevr
  32791. #: guix-git/doc/guix.texi:21958
  32792. #, no-wrap
  32793. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-dir"
  32794. msgstr ""
  32795. #. type: deftypevr
  32796. #: guix-git/doc/guix.texi:21962
  32797. 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."
  32798. msgstr ""
  32799. #. type: deftypevr
  32800. #: guix-git/doc/guix.texi:21964
  32801. msgid "WARNING: This feature hasn't been tested much yet. Use at your own risk."
  32802. msgstr ""
  32803. #. type: deftypevr
  32804. #: guix-git/doc/guix.texi:21967
  32805. msgid "Directory root where to store mail attachments. Disabled, if empty. Defaults to @samp{\"\"}."
  32806. msgstr ""
  32807. #. type: deftypevr
  32808. #: guix-git/doc/guix.texi:21969
  32809. #, no-wrap
  32810. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-attachment-min-size"
  32811. msgstr ""
  32812. #. type: deftypevr
  32813. #: guix-git/doc/guix.texi:21974
  32814. 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}."
  32815. msgstr ""
  32816. #. type: deftypevr
  32817. #: guix-git/doc/guix.texi:21976
  32818. #, no-wrap
  32819. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-fs"
  32820. msgstr ""
  32821. #. type: deftypevr
  32822. #: guix-git/doc/guix.texi:21978
  32823. msgid "File system backend to use for saving attachments:"
  32824. msgstr ""
  32825. #. type: item
  32826. #: guix-git/doc/guix.texi:21979
  32827. #, no-wrap
  32828. msgid "posix"
  32829. msgstr ""
  32830. #. type: table
  32831. #: guix-git/doc/guix.texi:21981
  32832. msgid "No SiS done by Dovecot (but this might help FS's own deduplication)"
  32833. msgstr ""
  32834. #. type: item
  32835. #: guix-git/doc/guix.texi:21981
  32836. #, no-wrap
  32837. msgid "sis posix"
  32838. msgstr ""
  32839. #. type: table
  32840. #: guix-git/doc/guix.texi:21983
  32841. msgid "SiS with immediate byte-by-byte comparison during saving"
  32842. msgstr ""
  32843. #. type: item
  32844. #: guix-git/doc/guix.texi:21983
  32845. #, no-wrap
  32846. msgid "sis-queue posix"
  32847. msgstr ""
  32848. #. type: table
  32849. #: guix-git/doc/guix.texi:21985
  32850. msgid "SiS with delayed comparison and deduplication."
  32851. msgstr ""
  32852. #. type: deftypevr
  32853. #: guix-git/doc/guix.texi:21987
  32854. msgid "Defaults to @samp{\"sis posix\"}."
  32855. msgstr ""
  32856. #. type: deftypevr
  32857. #: guix-git/doc/guix.texi:21989
  32858. #, no-wrap
  32859. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-hash"
  32860. msgstr ""
  32861. #. type: deftypevr
  32862. #: guix-git/doc/guix.texi:21995
  32863. 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@}\"}."
  32864. msgstr ""
  32865. #. type: deftypevr
  32866. #: guix-git/doc/guix.texi:21997
  32867. #, no-wrap
  32868. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-process-limit"
  32869. msgstr ""
  32870. #. type: deftypevr
  32871. #: guix-git/doc/guix.texi:22002
  32872. #, no-wrap
  32873. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-client-limit"
  32874. msgstr ""
  32875. #. type: deftypevr
  32876. #: guix-git/doc/guix.texi:22005 guix-git/doc/guix.texi:29627
  32877. msgid "Defaults to @samp{1000}."
  32878. msgstr ""
  32879. #. type: deftypevr
  32880. #: guix-git/doc/guix.texi:22007
  32881. #, no-wrap
  32882. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-vsz-limit"
  32883. msgstr ""
  32884. #. type: deftypevr
  32885. #: guix-git/doc/guix.texi:22012
  32886. 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}."
  32887. msgstr ""
  32888. #. type: deftypevr
  32889. #: guix-git/doc/guix.texi:22014
  32890. #, no-wrap
  32891. msgid "{@code{dovecot-configuration} parameter} string default-login-user"
  32892. msgstr ""
  32893. #. type: deftypevr
  32894. #: guix-git/doc/guix.texi:22019
  32895. 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\"}."
  32896. msgstr ""
  32897. #. type: deftypevr
  32898. #: guix-git/doc/guix.texi:22021
  32899. #, no-wrap
  32900. msgid "{@code{dovecot-configuration} parameter} string default-internal-user"
  32901. msgstr ""
  32902. #. type: deftypevr
  32903. #: guix-git/doc/guix.texi:22026
  32904. 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\"}."
  32905. msgstr ""
  32906. #. type: deftypevr
  32907. #: guix-git/doc/guix.texi:22028
  32908. #, no-wrap
  32909. msgid "{@code{dovecot-configuration} parameter} string ssl?"
  32910. msgstr ""
  32911. #. type: deftypevr
  32912. #: guix-git/doc/guix.texi:22031
  32913. msgid "SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>. Defaults to @samp{\"required\"}."
  32914. msgstr ""
  32915. #. type: deftypevr
  32916. #: guix-git/doc/guix.texi:22033
  32917. #, no-wrap
  32918. msgid "{@code{dovecot-configuration} parameter} string ssl-cert"
  32919. msgstr ""
  32920. #. type: deftypevr
  32921. #: guix-git/doc/guix.texi:22036
  32922. msgid "PEM encoded X.509 SSL/TLS certificate (public key). Defaults to @samp{\"</etc/dovecot/default.pem\"}."
  32923. msgstr ""
  32924. #. type: deftypevr
  32925. #: guix-git/doc/guix.texi:22038
  32926. #, no-wrap
  32927. msgid "{@code{dovecot-configuration} parameter} string ssl-key"
  32928. msgstr ""
  32929. #. type: deftypevr
  32930. #: guix-git/doc/guix.texi:22043
  32931. 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\"}."
  32932. msgstr ""
  32933. #. type: deftypevr
  32934. #: guix-git/doc/guix.texi:22045
  32935. #, no-wrap
  32936. msgid "{@code{dovecot-configuration} parameter} string ssl-key-password"
  32937. msgstr ""
  32938. #. type: deftypevr
  32939. #: guix-git/doc/guix.texi:22051
  32940. 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{\"\"}."
  32941. msgstr ""
  32942. #. type: deftypevr
  32943. #: guix-git/doc/guix.texi:22053
  32944. #, no-wrap
  32945. msgid "{@code{dovecot-configuration} parameter} string ssl-ca"
  32946. msgstr ""
  32947. #. type: deftypevr
  32948. #: guix-git/doc/guix.texi:22059
  32949. 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{\"\"}."
  32950. msgstr ""
  32951. #. type: deftypevr
  32952. #: guix-git/doc/guix.texi:22061
  32953. #, no-wrap
  32954. msgid "{@code{dovecot-configuration} parameter} boolean ssl-require-crl?"
  32955. msgstr ""
  32956. #. type: deftypevr
  32957. #: guix-git/doc/guix.texi:22064
  32958. msgid "Require that CRL check succeeds for client certificates. Defaults to @samp{#t}."
  32959. msgstr ""
  32960. #. type: deftypevr
  32961. #: guix-git/doc/guix.texi:22066
  32962. #, no-wrap
  32963. msgid "{@code{dovecot-configuration} parameter} boolean ssl-verify-client-cert?"
  32964. msgstr ""
  32965. #. type: deftypevr
  32966. #: guix-git/doc/guix.texi:22070
  32967. 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}."
  32968. msgstr ""
  32969. #. type: deftypevr
  32970. #: guix-git/doc/guix.texi:22072
  32971. #, no-wrap
  32972. msgid "{@code{dovecot-configuration} parameter} string ssl-cert-username-field"
  32973. msgstr ""
  32974. #. type: deftypevr
  32975. #: guix-git/doc/guix.texi:22077
  32976. 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\"}."
  32977. msgstr ""
  32978. #. type: deftypevr
  32979. #: guix-git/doc/guix.texi:22079
  32980. #, no-wrap
  32981. msgid "{@code{dovecot-configuration} parameter} string ssl-min-protocol"
  32982. msgstr ""
  32983. #. type: deftypevr
  32984. #: guix-git/doc/guix.texi:22082
  32985. msgid "Minimum SSL protocol version to accept. Defaults to @samp{\"TLSv1\"}."
  32986. msgstr ""
  32987. #. type: deftypevr
  32988. #: guix-git/doc/guix.texi:22084
  32989. #, no-wrap
  32990. msgid "{@code{dovecot-configuration} parameter} string ssl-cipher-list"
  32991. msgstr ""
  32992. #. type: deftypevr
  32993. #: guix-git/doc/guix.texi:22087
  32994. msgid "SSL ciphers to use. Defaults to @samp{\"ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@@STRENGTH\"}."
  32995. msgstr ""
  32996. #. type: deftypevr
  32997. #: guix-git/doc/guix.texi:22089
  32998. #, no-wrap
  32999. msgid "{@code{dovecot-configuration} parameter} string ssl-crypto-device"
  33000. msgstr ""
  33001. #. type: deftypevr
  33002. #: guix-git/doc/guix.texi:22092
  33003. msgid "SSL crypto device to use, for valid values run \"openssl engine\". Defaults to @samp{\"\"}."
  33004. msgstr ""
  33005. #. type: deftypevr
  33006. #: guix-git/doc/guix.texi:22094
  33007. #, no-wrap
  33008. msgid "{@code{dovecot-configuration} parameter} string postmaster-address"
  33009. msgstr ""
  33010. #. type: deftypevr
  33011. #: guix-git/doc/guix.texi:22098
  33012. msgid "Address to use when sending rejection mails. %d expands to recipient domain. Defaults to @samp{\"postmaster@@%d\"}."
  33013. msgstr ""
  33014. #. type: deftypevr
  33015. #: guix-git/doc/guix.texi:22100
  33016. #, no-wrap
  33017. msgid "{@code{dovecot-configuration} parameter} string hostname"
  33018. msgstr ""
  33019. #. type: deftypevr
  33020. #: guix-git/doc/guix.texi:22104
  33021. 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{\"\"}."
  33022. msgstr ""
  33023. #. type: deftypevr
  33024. #: guix-git/doc/guix.texi:22106
  33025. #, no-wrap
  33026. msgid "{@code{dovecot-configuration} parameter} boolean quota-full-tempfail?"
  33027. msgstr ""
  33028. #. type: deftypevr
  33029. #: guix-git/doc/guix.texi:22110
  33030. msgid "If user is over quota, return with temporary failure instead of bouncing the mail. Defaults to @samp{#f}."
  33031. msgstr ""
  33032. #. type: deftypevr
  33033. #: guix-git/doc/guix.texi:22112
  33034. #, no-wrap
  33035. msgid "{@code{dovecot-configuration} parameter} file-name sendmail-path"
  33036. msgstr ""
  33037. #. type: deftypevr
  33038. #: guix-git/doc/guix.texi:22115
  33039. msgid "Binary to use for sending mails. Defaults to @samp{\"/usr/sbin/sendmail\"}."
  33040. msgstr ""
  33041. #. type: deftypevr
  33042. #: guix-git/doc/guix.texi:22117
  33043. #, no-wrap
  33044. msgid "{@code{dovecot-configuration} parameter} string submission-host"
  33045. msgstr ""
  33046. #. type: deftypevr
  33047. #: guix-git/doc/guix.texi:22121
  33048. msgid "If non-empty, send mails via this SMTP host[:port] instead of sendmail. Defaults to @samp{\"\"}."
  33049. msgstr ""
  33050. #. type: deftypevr
  33051. #: guix-git/doc/guix.texi:22123
  33052. #, no-wrap
  33053. msgid "{@code{dovecot-configuration} parameter} string rejection-subject"
  33054. msgstr ""
  33055. #. type: deftypevr
  33056. #: guix-git/doc/guix.texi:22127
  33057. 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\"}."
  33058. msgstr ""
  33059. #. type: deftypevr
  33060. #: guix-git/doc/guix.texi:22129
  33061. #, no-wrap
  33062. msgid "{@code{dovecot-configuration} parameter} string rejection-reason"
  33063. msgstr ""
  33064. #. type: deftypevr
  33065. #: guix-git/doc/guix.texi:22132
  33066. msgid "Human readable error message for rejection mails. You can use variables:"
  33067. msgstr ""
  33068. #. type: table
  33069. #: guix-git/doc/guix.texi:22136
  33070. msgid "CRLF"
  33071. msgstr ""
  33072. #. type: item
  33073. #: guix-git/doc/guix.texi:22136
  33074. #, no-wrap
  33075. msgid "%r"
  33076. msgstr ""
  33077. #. type: table
  33078. #: guix-git/doc/guix.texi:22138
  33079. msgid "reason"
  33080. msgstr ""
  33081. #. type: table
  33082. #: guix-git/doc/guix.texi:22140
  33083. msgid "original subject"
  33084. msgstr ""
  33085. #. type: item
  33086. #: guix-git/doc/guix.texi:22140
  33087. #, no-wrap
  33088. msgid "%t"
  33089. msgstr ""
  33090. #. type: table
  33091. #: guix-git/doc/guix.texi:22142
  33092. msgid "recipient"
  33093. msgstr ""
  33094. #. type: deftypevr
  33095. #: guix-git/doc/guix.texi:22144
  33096. msgid "Defaults to @samp{\"Your message to <%t> was automatically rejected:%n%r\"}."
  33097. msgstr ""
  33098. #. type: deftypevr
  33099. #: guix-git/doc/guix.texi:22146
  33100. #, no-wrap
  33101. msgid "{@code{dovecot-configuration} parameter} string recipient-delimiter"
  33102. msgstr ""
  33103. #. type: deftypevr
  33104. #: guix-git/doc/guix.texi:22150
  33105. msgid "Delimiter character between local-part and detail in email address. Defaults to @samp{\"+\"}."
  33106. msgstr ""
  33107. #. type: deftypevr
  33108. #: guix-git/doc/guix.texi:22152
  33109. #, no-wrap
  33110. msgid "{@code{dovecot-configuration} parameter} string lda-original-recipient-header"
  33111. msgstr ""
  33112. #. type: deftypevr
  33113. #: guix-git/doc/guix.texi:22158
  33114. 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{\"\"}."
  33115. msgstr ""
  33116. #. type: deftypevr
  33117. #: guix-git/doc/guix.texi:22160
  33118. #, no-wrap
  33119. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autocreate?"
  33120. msgstr ""
  33121. #. type: deftypevr
  33122. #: guix-git/doc/guix.texi:22164
  33123. msgid "Should saving a mail to a nonexistent mailbox automatically create it?. Defaults to @samp{#f}."
  33124. msgstr ""
  33125. #. type: deftypevr
  33126. #: guix-git/doc/guix.texi:22166
  33127. #, no-wrap
  33128. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autosubscribe?"
  33129. msgstr ""
  33130. #. type: deftypevr
  33131. #: guix-git/doc/guix.texi:22170
  33132. msgid "Should automatically created mailboxes be also automatically subscribed?. Defaults to @samp{#f}."
  33133. msgstr ""
  33134. #. type: deftypevr
  33135. #: guix-git/doc/guix.texi:22172
  33136. #, no-wrap
  33137. msgid "{@code{dovecot-configuration} parameter} non-negative-integer imap-max-line-length"
  33138. msgstr ""
  33139. #. type: deftypevr
  33140. #: guix-git/doc/guix.texi:22178
  33141. 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}."
  33142. msgstr ""
  33143. #. type: deftypevr
  33144. #: guix-git/doc/guix.texi:22180
  33145. #, no-wrap
  33146. msgid "{@code{dovecot-configuration} parameter} string imap-logout-format"
  33147. msgstr ""
  33148. #. type: deftypevr
  33149. #: guix-git/doc/guix.texi:22182
  33150. msgid "IMAP logout format string:"
  33151. msgstr ""
  33152. #. type: item
  33153. #: guix-git/doc/guix.texi:22183
  33154. #, no-wrap
  33155. msgid "%i"
  33156. msgstr ""
  33157. #. type: table
  33158. #: guix-git/doc/guix.texi:22185
  33159. msgid "total number of bytes read from client"
  33160. msgstr ""
  33161. #. type: item
  33162. #: guix-git/doc/guix.texi:22185
  33163. #, no-wrap
  33164. msgid "%o"
  33165. msgstr ""
  33166. #. type: table
  33167. #: guix-git/doc/guix.texi:22187
  33168. msgid "total number of bytes sent to client."
  33169. msgstr ""
  33170. #. type: deftypevr
  33171. #: guix-git/doc/guix.texi:22190
  33172. 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@}\"}."
  33173. msgstr ""
  33174. #. type: deftypevr
  33175. #: guix-git/doc/guix.texi:22192
  33176. #, no-wrap
  33177. msgid "{@code{dovecot-configuration} parameter} string imap-capability"
  33178. msgstr ""
  33179. #. type: deftypevr
  33180. #: guix-git/doc/guix.texi:22196
  33181. 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{\"\"}."
  33182. msgstr ""
  33183. #. type: deftypevr
  33184. #: guix-git/doc/guix.texi:22198
  33185. #, no-wrap
  33186. msgid "{@code{dovecot-configuration} parameter} string imap-idle-notify-interval"
  33187. msgstr ""
  33188. #. type: deftypevr
  33189. #: guix-git/doc/guix.texi:22202
  33190. msgid "How long to wait between \"OK Still here\" notifications when client is IDLEing. Defaults to @samp{\"2 mins\"}."
  33191. msgstr ""
  33192. #. type: deftypevr
  33193. #: guix-git/doc/guix.texi:22204
  33194. #, no-wrap
  33195. msgid "{@code{dovecot-configuration} parameter} string imap-id-send"
  33196. msgstr ""
  33197. #. type: deftypevr
  33198. #: guix-git/doc/guix.texi:22210
  33199. 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{\"\"}."
  33200. msgstr ""
  33201. #. type: deftypevr
  33202. #: guix-git/doc/guix.texi:22212
  33203. #, no-wrap
  33204. msgid "{@code{dovecot-configuration} parameter} string imap-id-log"
  33205. msgstr ""
  33206. #. type: deftypevr
  33207. #: guix-git/doc/guix.texi:22215
  33208. msgid "ID fields sent by client to log. * means everything. Defaults to @samp{\"\"}."
  33209. msgstr ""
  33210. #. type: deftypevr
  33211. #: guix-git/doc/guix.texi:22217
  33212. #, no-wrap
  33213. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list imap-client-workarounds"
  33214. msgstr ""
  33215. #. type: deftypevr
  33216. #: guix-git/doc/guix.texi:22219
  33217. msgid "Workarounds for various client bugs:"
  33218. msgstr ""
  33219. #. type: item
  33220. #: guix-git/doc/guix.texi:22221
  33221. #, no-wrap
  33222. msgid "delay-newmail"
  33223. msgstr ""
  33224. #. type: table
  33225. #: guix-git/doc/guix.texi:22228
  33226. 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\"."
  33227. msgstr ""
  33228. #. type: item
  33229. #: guix-git/doc/guix.texi:22229
  33230. #, no-wrap
  33231. msgid "tb-extra-mailbox-sep"
  33232. msgstr ""
  33233. #. type: table
  33234. #: guix-git/doc/guix.texi:22233
  33235. 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."
  33236. msgstr ""
  33237. #. type: item
  33238. #: guix-git/doc/guix.texi:22234
  33239. #, no-wrap
  33240. msgid "tb-lsub-flags"
  33241. msgstr ""
  33242. #. type: table
  33243. #: guix-git/doc/guix.texi:22238
  33244. 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."
  33245. msgstr ""
  33246. #. type: deftypevr
  33247. #: guix-git/doc/guix.texi:22242
  33248. #, no-wrap
  33249. msgid "{@code{dovecot-configuration} parameter} string imap-urlauth-host"
  33250. msgstr ""
  33251. #. type: deftypevr
  33252. #: guix-git/doc/guix.texi:22245
  33253. msgid "Host allowed in URLAUTH URLs sent by client. \"*\" allows all. Defaults to @samp{\"\"}."
  33254. msgstr ""
  33255. #. type: Plain text
  33256. #: guix-git/doc/guix.texi:22253
  33257. 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."
  33258. msgstr ""
  33259. #. type: Plain text
  33260. #: guix-git/doc/guix.texi:22259
  33261. 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."
  33262. msgstr ""
  33263. #. type: Plain text
  33264. #: guix-git/doc/guix.texi:22261
  33265. msgid "Available @code{opaque-dovecot-configuration} fields are:"
  33266. msgstr ""
  33267. #. type: deftypevr
  33268. #: guix-git/doc/guix.texi:22262
  33269. #, no-wrap
  33270. msgid "{@code{opaque-dovecot-configuration} parameter} package dovecot"
  33271. msgstr ""
  33272. #. type: deftypevr
  33273. #: guix-git/doc/guix.texi:22266
  33274. #, no-wrap
  33275. msgid "{@code{opaque-dovecot-configuration} parameter} string string"
  33276. msgstr ""
  33277. #. type: deftypevr
  33278. #: guix-git/doc/guix.texi:22268
  33279. msgid "The contents of the @code{dovecot.conf}, as a string."
  33280. msgstr ""
  33281. #. type: Plain text
  33282. #: guix-git/doc/guix.texi:22272
  33283. msgid "For example, if your @code{dovecot.conf} is just the empty string, you could instantiate a dovecot service like this:"
  33284. msgstr ""
  33285. #. type: lisp
  33286. #: guix-git/doc/guix.texi:22277
  33287. #, no-wrap
  33288. msgid ""
  33289. "(dovecot-service #:config\n"
  33290. " (opaque-dovecot-configuration\n"
  33291. " (string \"\")))\n"
  33292. msgstr ""
  33293. #. type: subsubheading
  33294. #: guix-git/doc/guix.texi:22279
  33295. #, no-wrap
  33296. msgid "OpenSMTPD Service"
  33297. msgstr ""
  33298. #. type: deffn
  33299. #: guix-git/doc/guix.texi:22281
  33300. #, no-wrap
  33301. msgid "{Scheme Variable} opensmtpd-service-type"
  33302. msgstr ""
  33303. #. type: deffn
  33304. #: guix-git/doc/guix.texi:22285
  33305. 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:"
  33306. msgstr ""
  33307. #. type: lisp
  33308. #: guix-git/doc/guix.texi:22290
  33309. #, no-wrap
  33310. msgid ""
  33311. "(service opensmtpd-service-type\n"
  33312. " (opensmtpd-configuration\n"
  33313. " (config-file (local-file \"./my-smtpd.conf\"))))\n"
  33314. msgstr ""
  33315. #. type: deftp
  33316. #: guix-git/doc/guix.texi:22293
  33317. #, no-wrap
  33318. msgid "{Data Type} opensmtpd-configuration"
  33319. msgstr ""
  33320. #. type: deftp
  33321. #: guix-git/doc/guix.texi:22295
  33322. msgid "Data type representing the configuration of opensmtpd."
  33323. msgstr ""
  33324. #. type: item
  33325. #: guix-git/doc/guix.texi:22297
  33326. #, no-wrap
  33327. msgid "@code{package} (default: @var{opensmtpd})"
  33328. msgstr ""
  33329. #. type: table
  33330. #: guix-git/doc/guix.texi:22299
  33331. msgid "Package object of the OpenSMTPD SMTP server."
  33332. msgstr ""
  33333. #. type: item
  33334. #: guix-git/doc/guix.texi:22300
  33335. #, fuzzy, no-wrap
  33336. msgid "@code{config-file} (default: @code{%default-opensmtpd-file})"
  33337. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  33338. #. type: table
  33339. #: guix-git/doc/guix.texi:22305
  33340. 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."
  33341. msgstr ""
  33342. #. type: subsubheading
  33343. #: guix-git/doc/guix.texi:22309
  33344. #, no-wrap
  33345. msgid "Exim Service"
  33346. msgstr ""
  33347. #. type: cindex
  33348. #: guix-git/doc/guix.texi:22311
  33349. #, no-wrap
  33350. msgid "mail transfer agent (MTA)"
  33351. msgstr ""
  33352. #. type: cindex
  33353. #: guix-git/doc/guix.texi:22312
  33354. #, no-wrap
  33355. msgid "MTA (mail transfer agent)"
  33356. msgstr ""
  33357. #. type: cindex
  33358. #: guix-git/doc/guix.texi:22313
  33359. #, no-wrap
  33360. msgid "SMTP"
  33361. msgstr ""
  33362. #. type: deffn
  33363. #: guix-git/doc/guix.texi:22315
  33364. #, no-wrap
  33365. msgid "{Scheme Variable} exim-service-type"
  33366. msgstr ""
  33367. #. type: deffn
  33368. #: guix-git/doc/guix.texi:22319
  33369. 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:"
  33370. msgstr ""
  33371. #. type: lisp
  33372. #: guix-git/doc/guix.texi:22324
  33373. #, no-wrap
  33374. msgid ""
  33375. "(service exim-service-type\n"
  33376. " (exim-configuration\n"
  33377. " (config-file (local-file \"./my-exim.conf\"))))\n"
  33378. msgstr ""
  33379. #. type: Plain text
  33380. #: guix-git/doc/guix.texi:22330
  33381. 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)."
  33382. msgstr ""
  33383. #. type: deftp
  33384. #: guix-git/doc/guix.texi:22331
  33385. #, no-wrap
  33386. msgid "{Data Type} exim-configuration"
  33387. msgstr ""
  33388. #. type: deftp
  33389. #: guix-git/doc/guix.texi:22333
  33390. msgid "Data type representing the configuration of exim."
  33391. msgstr ""
  33392. #. type: item
  33393. #: guix-git/doc/guix.texi:22335
  33394. #, no-wrap
  33395. msgid "@code{package} (default: @var{exim})"
  33396. msgstr ""
  33397. #. type: table
  33398. #: guix-git/doc/guix.texi:22337
  33399. msgid "Package object of the Exim server."
  33400. msgstr ""
  33401. #. type: table
  33402. #: guix-git/doc/guix.texi:22344
  33403. 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."
  33404. msgstr ""
  33405. #. type: subsubheading
  33406. #: guix-git/doc/guix.texi:22348
  33407. #, fuzzy, no-wrap
  33408. msgid "Getmail service"
  33409. msgstr "邮件服务"
  33410. #. type: cindex
  33411. #: guix-git/doc/guix.texi:22350
  33412. #, no-wrap
  33413. msgid "IMAP"
  33414. msgstr ""
  33415. #. type: cindex
  33416. #: guix-git/doc/guix.texi:22351
  33417. #, no-wrap
  33418. msgid "POP"
  33419. msgstr ""
  33420. #. type: deffn
  33421. #: guix-git/doc/guix.texi:22353
  33422. #, no-wrap
  33423. msgid "{Scheme Variable} getmail-service-type"
  33424. msgstr ""
  33425. #. type: deffn
  33426. #: guix-git/doc/guix.texi:22356
  33427. msgid "This is the type of the @uref{http://pyropus.ca/software/getmail/, Getmail} mail retriever, whose value should be an @code{getmail-configuration}."
  33428. msgstr ""
  33429. #. type: Plain text
  33430. #: guix-git/doc/guix.texi:22359
  33431. msgid "Available @code{getmail-configuration} fields are:"
  33432. msgstr ""
  33433. #. type: deftypevr
  33434. #: guix-git/doc/guix.texi:22360
  33435. #, no-wrap
  33436. msgid "{@code{getmail-configuration} parameter} symbol name"
  33437. msgstr ""
  33438. #. type: deftypevr
  33439. #: guix-git/doc/guix.texi:22362
  33440. msgid "A symbol to identify the getmail service."
  33441. msgstr ""
  33442. #. type: deftypevr
  33443. #: guix-git/doc/guix.texi:22364
  33444. msgid "Defaults to @samp{\"unset\"}."
  33445. msgstr ""
  33446. #. type: deftypevr
  33447. #: guix-git/doc/guix.texi:22367
  33448. #, no-wrap
  33449. msgid "{@code{getmail-configuration} parameter} package package"
  33450. msgstr ""
  33451. #. type: deftypevr
  33452. #: guix-git/doc/guix.texi:22369
  33453. #, fuzzy
  33454. msgid "The getmail package to use."
  33455. msgstr "软件包数据类型。"
  33456. #. type: deftypevr
  33457. #: guix-git/doc/guix.texi:22372
  33458. #, no-wrap
  33459. msgid "{@code{getmail-configuration} parameter} string user"
  33460. msgstr ""
  33461. #. type: deftypevr
  33462. #: guix-git/doc/guix.texi:22374
  33463. msgid "The user to run getmail as."
  33464. msgstr ""
  33465. #. type: deftypevr
  33466. #: guix-git/doc/guix.texi:22376 guix-git/doc/guix.texi:22383
  33467. msgid "Defaults to @samp{\"getmail\"}."
  33468. msgstr ""
  33469. #. type: deftypevr
  33470. #: guix-git/doc/guix.texi:22379
  33471. #, no-wrap
  33472. msgid "{@code{getmail-configuration} parameter} string group"
  33473. msgstr ""
  33474. #. type: deftypevr
  33475. #: guix-git/doc/guix.texi:22381
  33476. msgid "The group to run getmail as."
  33477. msgstr ""
  33478. #. type: deftypevr
  33479. #: guix-git/doc/guix.texi:22386
  33480. #, no-wrap
  33481. msgid "{@code{getmail-configuration} parameter} string directory"
  33482. msgstr ""
  33483. #. type: deftypevr
  33484. #: guix-git/doc/guix.texi:22388
  33485. msgid "The getmail directory to use."
  33486. msgstr ""
  33487. #. type: deftypevr
  33488. #: guix-git/doc/guix.texi:22390
  33489. msgid "Defaults to @samp{\"/var/lib/getmail/default\"}."
  33490. msgstr ""
  33491. #. type: deftypevr
  33492. #: guix-git/doc/guix.texi:22393
  33493. #, no-wrap
  33494. msgid "{@code{getmail-configuration} parameter} getmail-configuration-file rcfile"
  33495. msgstr ""
  33496. #. type: deftypevr
  33497. #: guix-git/doc/guix.texi:22395
  33498. msgid "The getmail configuration file to use."
  33499. msgstr ""
  33500. #. type: deftypevr
  33501. #: guix-git/doc/guix.texi:22397
  33502. msgid "Available @code{getmail-configuration-file} fields are:"
  33503. msgstr ""
  33504. #. type: deftypevr
  33505. #: guix-git/doc/guix.texi:22398
  33506. #, no-wrap
  33507. msgid "{@code{getmail-configuration-file} parameter} getmail-retriever-configuration retriever"
  33508. msgstr ""
  33509. #. type: deftypevr
  33510. #: guix-git/doc/guix.texi:22400
  33511. msgid "What mail account to retrieve mail from, and how to access that account."
  33512. msgstr ""
  33513. #. type: deftypevr
  33514. #: guix-git/doc/guix.texi:22402
  33515. msgid "Available @code{getmail-retriever-configuration} fields are:"
  33516. msgstr ""
  33517. #. type: deftypevr
  33518. #: guix-git/doc/guix.texi:22403
  33519. #, no-wrap
  33520. msgid "{@code{getmail-retriever-configuration} parameter} string type"
  33521. msgstr ""
  33522. #. type: deftypevr
  33523. #: guix-git/doc/guix.texi:22406
  33524. msgid "The type of mail retriever to use. Valid values include @samp{passwd} and @samp{static}."
  33525. msgstr ""
  33526. #. type: deftypevr
  33527. #: guix-git/doc/guix.texi:22408
  33528. msgid "Defaults to @samp{\"SimpleIMAPSSLRetriever\"}."
  33529. msgstr ""
  33530. #. type: deftypevr
  33531. #: guix-git/doc/guix.texi:22411
  33532. #, no-wrap
  33533. msgid "{@code{getmail-retriever-configuration} parameter} string server"
  33534. msgstr ""
  33535. #. type: deftypevr
  33536. #: guix-git/doc/guix.texi:22413 guix-git/doc/guix.texi:22420
  33537. msgid "Username to login to the mail server with."
  33538. msgstr ""
  33539. #. type: deftypevr
  33540. #: guix-git/doc/guix.texi:22415 guix-git/doc/guix.texi:22422
  33541. #: guix-git/doc/guix.texi:22486
  33542. msgid "Defaults to @samp{unset}."
  33543. msgstr ""
  33544. #. type: deftypevr
  33545. #: guix-git/doc/guix.texi:22418
  33546. #, no-wrap
  33547. msgid "{@code{getmail-retriever-configuration} parameter} string username"
  33548. msgstr ""
  33549. #. type: deftypevr
  33550. #: guix-git/doc/guix.texi:22425
  33551. #, no-wrap
  33552. msgid "{@code{getmail-retriever-configuration} parameter} non-negative-integer port"
  33553. msgstr ""
  33554. #. type: deftypevr
  33555. #: guix-git/doc/guix.texi:22427
  33556. msgid "Port number to connect to."
  33557. msgstr ""
  33558. #. type: deftypevr
  33559. #: guix-git/doc/guix.texi:22432
  33560. #, no-wrap
  33561. msgid "{@code{getmail-retriever-configuration} parameter} string password"
  33562. msgstr ""
  33563. #. type: deftypevr
  33564. #: guix-git/doc/guix.texi:22434 guix-git/doc/guix.texi:22441
  33565. msgid "Override fields from passwd."
  33566. msgstr ""
  33567. #. type: deftypevr
  33568. #: guix-git/doc/guix.texi:22439
  33569. #, no-wrap
  33570. msgid "{@code{getmail-retriever-configuration} parameter} list password-command"
  33571. msgstr ""
  33572. #. type: deftypevr
  33573. #: guix-git/doc/guix.texi:22446
  33574. #, no-wrap
  33575. msgid "{@code{getmail-retriever-configuration} parameter} string keyfile"
  33576. msgstr ""
  33577. #. type: deftypevr
  33578. #: guix-git/doc/guix.texi:22448
  33579. msgid "PEM-formatted key file to use for the TLS negotiation."
  33580. msgstr ""
  33581. #. type: deftypevr
  33582. #: guix-git/doc/guix.texi:22453
  33583. #, no-wrap
  33584. msgid "{@code{getmail-retriever-configuration} parameter} string certfile"
  33585. msgstr ""
  33586. #. type: deftypevr
  33587. #: guix-git/doc/guix.texi:22455
  33588. msgid "PEM-formatted certificate file to use for the TLS negotiation."
  33589. msgstr ""
  33590. #. type: deftypevr
  33591. #: guix-git/doc/guix.texi:22460
  33592. #, no-wrap
  33593. msgid "{@code{getmail-retriever-configuration} parameter} string ca-certs"
  33594. msgstr ""
  33595. #. type: deftypevr
  33596. #: guix-git/doc/guix.texi:22462
  33597. #, fuzzy
  33598. msgid "CA certificates to use."
  33599. msgstr "证书服务"
  33600. #. type: deftypevr
  33601. #: guix-git/doc/guix.texi:22467
  33602. #, no-wrap
  33603. msgid "{@code{getmail-retriever-configuration} parameter} parameter-alist extra-parameters"
  33604. msgstr ""
  33605. #. type: deftypevr
  33606. #: guix-git/doc/guix.texi:22469
  33607. msgid "Extra retriever parameters."
  33608. msgstr ""
  33609. #. type: deftypevr
  33610. #: guix-git/doc/guix.texi:22476
  33611. #, no-wrap
  33612. msgid "{@code{getmail-configuration-file} parameter} getmail-destination-configuration destination"
  33613. msgstr ""
  33614. #. type: deftypevr
  33615. #: guix-git/doc/guix.texi:22478
  33616. msgid "What to do with retrieved messages."
  33617. msgstr ""
  33618. #. type: deftypevr
  33619. #: guix-git/doc/guix.texi:22480
  33620. msgid "Available @code{getmail-destination-configuration} fields are:"
  33621. msgstr ""
  33622. #. type: deftypevr
  33623. #: guix-git/doc/guix.texi:22481
  33624. #, no-wrap
  33625. msgid "{@code{getmail-destination-configuration} parameter} string type"
  33626. msgstr ""
  33627. #. type: deftypevr
  33628. #: guix-git/doc/guix.texi:22484
  33629. msgid "The type of mail destination. Valid values include @samp{Maildir}, @samp{Mboxrd} and @samp{MDA_external}."
  33630. msgstr ""
  33631. #. type: deftypevr
  33632. #: guix-git/doc/guix.texi:22489
  33633. #, no-wrap
  33634. msgid "{@code{getmail-destination-configuration} parameter} string-or-filelike path"
  33635. msgstr ""
  33636. #. type: deftypevr
  33637. #: guix-git/doc/guix.texi:22492
  33638. msgid "The path option for the mail destination. The behaviour depends on the chosen type."
  33639. msgstr ""
  33640. #. type: deftypevr
  33641. #: guix-git/doc/guix.texi:22497
  33642. #, no-wrap
  33643. msgid "{@code{getmail-destination-configuration} parameter} parameter-alist extra-parameters"
  33644. msgstr ""
  33645. #. type: deftypevr
  33646. #: guix-git/doc/guix.texi:22499
  33647. msgid "Extra destination parameters"
  33648. msgstr ""
  33649. #. type: deftypevr
  33650. #: guix-git/doc/guix.texi:22506
  33651. #, no-wrap
  33652. msgid "{@code{getmail-configuration-file} parameter} getmail-options-configuration options"
  33653. msgstr ""
  33654. #. type: deftypevr
  33655. #: guix-git/doc/guix.texi:22508
  33656. msgid "Configure getmail."
  33657. msgstr ""
  33658. #. type: deftypevr
  33659. #: guix-git/doc/guix.texi:22510
  33660. msgid "Available @code{getmail-options-configuration} fields are:"
  33661. msgstr ""
  33662. #. type: deftypevr
  33663. #: guix-git/doc/guix.texi:22511
  33664. #, no-wrap
  33665. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer verbose"
  33666. msgstr ""
  33667. #. type: deftypevr
  33668. #: guix-git/doc/guix.texi:22516
  33669. 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."
  33670. msgstr ""
  33671. #. type: deftypevr
  33672. #: guix-git/doc/guix.texi:22518 guix-git/doc/guix.texi:29097
  33673. #: guix-git/doc/guix.texi:29685 guix-git/doc/guix.texi:29830
  33674. msgid "Defaults to @samp{1}."
  33675. msgstr ""
  33676. #. type: deftypevr
  33677. #: guix-git/doc/guix.texi:22521
  33678. #, no-wrap
  33679. msgid "{@code{getmail-options-configuration} parameter} boolean read-all"
  33680. msgstr ""
  33681. #. type: deftypevr
  33682. #: guix-git/doc/guix.texi:22524
  33683. msgid "If true, getmail will retrieve all available messages. Otherwise it will only retrieve messages it hasn't seen previously."
  33684. msgstr ""
  33685. #. type: deftypevr
  33686. #: guix-git/doc/guix.texi:22529
  33687. #, no-wrap
  33688. msgid "{@code{getmail-options-configuration} parameter} boolean delete"
  33689. msgstr ""
  33690. #. type: deftypevr
  33691. #: guix-git/doc/guix.texi:22533
  33692. 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."
  33693. msgstr ""
  33694. #. type: deftypevr
  33695. #: guix-git/doc/guix.texi:22538
  33696. #, no-wrap
  33697. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-after"
  33698. msgstr ""
  33699. #. type: deftypevr
  33700. #: guix-git/doc/guix.texi:22543
  33701. 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."
  33702. msgstr ""
  33703. #. type: deftypevr
  33704. #: guix-git/doc/guix.texi:22548
  33705. #, no-wrap
  33706. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-bigger-than"
  33707. msgstr ""
  33708. #. type: deftypevr
  33709. #: guix-git/doc/guix.texi:22552
  33710. 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."
  33711. msgstr ""
  33712. #. type: deftypevr
  33713. #: guix-git/doc/guix.texi:22557
  33714. #, no-wrap
  33715. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-bytes-per-session"
  33716. msgstr ""
  33717. #. type: deftypevr
  33718. #: guix-git/doc/guix.texi:22560
  33719. 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."
  33720. msgstr ""
  33721. #. type: deftypevr
  33722. #: guix-git/doc/guix.texi:22565
  33723. #, no-wrap
  33724. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-message-size"
  33725. msgstr ""
  33726. #. type: deftypevr
  33727. #: guix-git/doc/guix.texi:22568
  33728. msgid "Don't retrieve messages larger than this number of bytes. A value of @samp{0} disables this feature."
  33729. msgstr ""
  33730. #. type: deftypevr
  33731. #: guix-git/doc/guix.texi:22573
  33732. #, no-wrap
  33733. msgid "{@code{getmail-options-configuration} parameter} boolean delivered-to"
  33734. msgstr ""
  33735. #. type: deftypevr
  33736. #: guix-git/doc/guix.texi:22575
  33737. msgid "If true, getmail will add a Delivered-To header to messages."
  33738. msgstr ""
  33739. #. type: deftypevr
  33740. #: guix-git/doc/guix.texi:22580
  33741. #, no-wrap
  33742. msgid "{@code{getmail-options-configuration} parameter} boolean received"
  33743. msgstr ""
  33744. #. type: deftypevr
  33745. #: guix-git/doc/guix.texi:22582
  33746. msgid "If set, getmail adds a Received header to the messages."
  33747. msgstr ""
  33748. #. type: deftypevr
  33749. #: guix-git/doc/guix.texi:22587
  33750. #, no-wrap
  33751. msgid "{@code{getmail-options-configuration} parameter} string message-log"
  33752. msgstr ""
  33753. #. type: deftypevr
  33754. #: guix-git/doc/guix.texi:22590
  33755. msgid "Getmail will record a log of its actions to the named file. A value of @samp{\"\"} disables this feature."
  33756. msgstr ""
  33757. #. type: deftypevr
  33758. #: guix-git/doc/guix.texi:22595
  33759. #, no-wrap
  33760. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-syslog"
  33761. msgstr ""
  33762. #. type: deftypevr
  33763. #: guix-git/doc/guix.texi:22598
  33764. msgid "If true, getmail will record a log of its actions using the system logger."
  33765. msgstr ""
  33766. #. type: deftypevr
  33767. #: guix-git/doc/guix.texi:22603
  33768. #, no-wrap
  33769. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-verbose"
  33770. msgstr ""
  33771. #. type: deftypevr
  33772. #: guix-git/doc/guix.texi:22607
  33773. 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."
  33774. msgstr ""
  33775. #. type: deftypevr
  33776. #: guix-git/doc/guix.texi:22612
  33777. #, no-wrap
  33778. msgid "{@code{getmail-options-configuration} parameter} parameter-alist extra-parameters"
  33779. msgstr ""
  33780. #. type: deftypevr
  33781. #: guix-git/doc/guix.texi:22614
  33782. msgid "Extra options to include."
  33783. msgstr ""
  33784. #. type: deftypevr
  33785. #: guix-git/doc/guix.texi:22623
  33786. #, no-wrap
  33787. msgid "{@code{getmail-configuration} parameter} list idle"
  33788. msgstr ""
  33789. #. type: deftypevr
  33790. #: guix-git/doc/guix.texi:22627
  33791. 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."
  33792. msgstr ""
  33793. #. type: deftypevr
  33794. #: guix-git/doc/guix.texi:22632
  33795. #, no-wrap
  33796. msgid "{@code{getmail-configuration} parameter} list environment-variables"
  33797. msgstr ""
  33798. #. type: deftypevr
  33799. #: guix-git/doc/guix.texi:22634
  33800. msgid "Environment variables to set for getmail."
  33801. msgstr ""
  33802. #. type: subsubheading
  33803. #: guix-git/doc/guix.texi:22639
  33804. #, no-wrap
  33805. msgid "Mail Aliases Service"
  33806. msgstr ""
  33807. #. type: cindex
  33808. #: guix-git/doc/guix.texi:22641
  33809. #, no-wrap
  33810. msgid "email aliases"
  33811. msgstr ""
  33812. #. type: cindex
  33813. #: guix-git/doc/guix.texi:22642
  33814. #, no-wrap
  33815. msgid "aliases, for email addresses"
  33816. msgstr ""
  33817. #. type: deffn
  33818. #: guix-git/doc/guix.texi:22644
  33819. #, no-wrap
  33820. msgid "{Scheme Variable} mail-aliases-service-type"
  33821. msgstr ""
  33822. #. type: deffn
  33823. #: guix-git/doc/guix.texi:22647
  33824. msgid "This is the type of the service which provides @code{/etc/aliases}, specifying how to deliver mail to users on this system."
  33825. msgstr ""
  33826. #. type: lisp
  33827. #: guix-git/doc/guix.texi:22652
  33828. #, no-wrap
  33829. msgid ""
  33830. "(service mail-aliases-service-type\n"
  33831. " '((\"postmaster\" \"bob\")\n"
  33832. " (\"bob\" \"bob@@example.com\" \"bob@@example2.com\")))\n"
  33833. msgstr ""
  33834. #. type: Plain text
  33835. #: guix-git/doc/guix.texi:22660
  33836. 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."
  33837. msgstr ""
  33838. #. type: Plain text
  33839. #: guix-git/doc/guix.texi:22666
  33840. 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})."
  33841. msgstr ""
  33842. #. type: cindex
  33843. #: guix-git/doc/guix.texi:22667 guix-git/doc/guix.texi:22668
  33844. #, no-wrap
  33845. msgid "GNU Mailutils IMAP4 Daemon"
  33846. msgstr ""
  33847. #. type: deffn
  33848. #: guix-git/doc/guix.texi:22670
  33849. #, no-wrap
  33850. msgid "{Scheme Variable} imap4d-service-type"
  33851. msgstr ""
  33852. #. type: deffn
  33853. #: guix-git/doc/guix.texi:22674
  33854. 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:"
  33855. msgstr ""
  33856. #. type: lisp
  33857. #: guix-git/doc/guix.texi:22679
  33858. #, no-wrap
  33859. msgid ""
  33860. "(service imap4d-service-type\n"
  33861. " (imap4d-configuration\n"
  33862. " (config-file (local-file \"imap4d.conf\"))))\n"
  33863. msgstr ""
  33864. #. type: deftp
  33865. #: guix-git/doc/guix.texi:22682
  33866. #, no-wrap
  33867. msgid "{Data Type} imap4d-configuration"
  33868. msgstr ""
  33869. #. type: deftp
  33870. #: guix-git/doc/guix.texi:22684
  33871. msgid "Data type representing the configuration of @command{imap4d}."
  33872. msgstr ""
  33873. #. type: item
  33874. #: guix-git/doc/guix.texi:22686
  33875. #, no-wrap
  33876. msgid "@code{package} (default: @code{mailutils})"
  33877. msgstr ""
  33878. #. type: table
  33879. #: guix-git/doc/guix.texi:22688
  33880. msgid "The package that provides @command{imap4d}."
  33881. msgstr ""
  33882. #. type: item
  33883. #: guix-git/doc/guix.texi:22689
  33884. #, no-wrap
  33885. msgid "@code{config-file} (default: @code{%default-imap4d-config-file})"
  33886. msgstr ""
  33887. #. type: table
  33888. #: guix-git/doc/guix.texi:22693
  33889. 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."
  33890. msgstr ""
  33891. #. type: subsubheading
  33892. #: guix-git/doc/guix.texi:22697
  33893. #, fuzzy, no-wrap
  33894. msgid "Radicale Service"
  33895. msgstr "邮件服务"
  33896. #. type: cindex
  33897. #: guix-git/doc/guix.texi:22698
  33898. #, no-wrap
  33899. msgid "CalDAV"
  33900. msgstr ""
  33901. #. type: cindex
  33902. #: guix-git/doc/guix.texi:22699
  33903. #, no-wrap
  33904. msgid "CardDAV"
  33905. msgstr ""
  33906. #. type: deffn
  33907. #: guix-git/doc/guix.texi:22701
  33908. #, no-wrap
  33909. msgid "{Scheme Variable} radicale-service-type"
  33910. msgstr ""
  33911. #. type: deffn
  33912. #: guix-git/doc/guix.texi:22704
  33913. msgid "This is the type of the @uref{https://radicale.org, Radicale} CalDAV/CardDAV server whose value should be a @code{radicale-configuration}."
  33914. msgstr ""
  33915. #. type: deftp
  33916. #: guix-git/doc/guix.texi:22706
  33917. #, fuzzy, no-wrap
  33918. msgid "{Data Type} radicale-configuration"
  33919. msgstr "{数据类型} build-machine"
  33920. #. type: deftp
  33921. #: guix-git/doc/guix.texi:22708
  33922. #, fuzzy
  33923. msgid "Data type representing the configuration of @command{radicale}."
  33924. msgstr "管理操作系统配置。"
  33925. #. type: item
  33926. #: guix-git/doc/guix.texi:22710
  33927. #, fuzzy, no-wrap
  33928. msgid "@code{package} (default: @code{radicale})"
  33929. msgstr "@code{mate}(默认值:@code{mate})"
  33930. #. type: table
  33931. #: guix-git/doc/guix.texi:22712
  33932. msgid "The package that provides @command{radicale}."
  33933. msgstr ""
  33934. #. type: item
  33935. #: guix-git/doc/guix.texi:22713
  33936. #, fuzzy, no-wrap
  33937. msgid "@code{config-file} (default: @code{%default-radicale-config-file})"
  33938. msgstr "@code{gnome}(默认值:@code{gnome})"
  33939. #. type: table
  33940. #: guix-git/doc/guix.texi:22717
  33941. 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."
  33942. msgstr ""
  33943. #. type: cindex
  33944. #: guix-git/doc/guix.texi:22724
  33945. #, no-wrap
  33946. msgid "messaging"
  33947. msgstr ""
  33948. #. type: cindex
  33949. #: guix-git/doc/guix.texi:22725
  33950. #, no-wrap
  33951. msgid "jabber"
  33952. msgstr ""
  33953. #. type: cindex
  33954. #: guix-git/doc/guix.texi:22726
  33955. #, no-wrap
  33956. msgid "XMPP"
  33957. msgstr ""
  33958. #. type: Plain text
  33959. #: guix-git/doc/guix.texi:22730
  33960. msgid "The @code{(gnu services messaging)} module provides Guix service definitions for messaging services. Currently it provides the following services:"
  33961. msgstr ""
  33962. #. type: subsubheading
  33963. #: guix-git/doc/guix.texi:22731
  33964. #, no-wrap
  33965. msgid "Prosody Service"
  33966. msgstr ""
  33967. #. type: deffn
  33968. #: guix-git/doc/guix.texi:22733
  33969. #, no-wrap
  33970. msgid "{Scheme Variable} prosody-service-type"
  33971. msgstr ""
  33972. #. type: deffn
  33973. #: guix-git/doc/guix.texi:22737
  33974. 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:"
  33975. msgstr ""
  33976. #. type: lisp
  33977. #: guix-git/doc/guix.texi:22752
  33978. #, no-wrap
  33979. msgid ""
  33980. "(service prosody-service-type\n"
  33981. " (prosody-configuration\n"
  33982. " (modules-enabled (cons* \"groups\" \"mam\" %default-modules-enabled))\n"
  33983. " (int-components\n"
  33984. " (list\n"
  33985. " (int-component-configuration\n"
  33986. " (hostname \"conference.example.net\")\n"
  33987. " (plugin \"muc\")\n"
  33988. " (mod-muc (mod-muc-configuration)))))\n"
  33989. " (virtualhosts\n"
  33990. " (list\n"
  33991. " (virtualhost-configuration\n"
  33992. " (domain \"example.net\"))))))\n"
  33993. msgstr ""
  33994. #. type: deffn
  33995. #: guix-git/doc/guix.texi:22755
  33996. msgid "See below for details about @code{prosody-configuration}."
  33997. msgstr ""
  33998. #. type: Plain text
  33999. #: guix-git/doc/guix.texi:22761
  34000. 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."
  34001. msgstr ""
  34002. #. type: Plain text
  34003. #: guix-git/doc/guix.texi:22764
  34004. msgid "You can perform various sanity checks on the generated configuration with the @code{prosodyctl check} command."
  34005. msgstr ""
  34006. #. type: Plain text
  34007. #: guix-git/doc/guix.texi:22768
  34008. 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}."
  34009. msgstr ""
  34010. #. type: example
  34011. #: guix-git/doc/guix.texi:22771
  34012. #, no-wrap
  34013. msgid "prosodyctl --root cert import /etc/letsencrypt/live\n"
  34014. msgstr ""
  34015. #. type: Plain text
  34016. #: guix-git/doc/guix.texi:22778
  34017. 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}."
  34018. msgstr ""
  34019. #. type: Plain text
  34020. #: guix-git/doc/guix.texi:22782
  34021. 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."
  34022. msgstr ""
  34023. #. type: Plain text
  34024. #: guix-git/doc/guix.texi:22785
  34025. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a file name."
  34026. msgstr ""
  34027. #. type: Plain text
  34028. #: guix-git/doc/guix.texi:22795
  34029. msgid "Available @code{prosody-configuration} fields are:"
  34030. msgstr ""
  34031. #. type: deftypevr
  34032. #: guix-git/doc/guix.texi:22796
  34033. #, no-wrap
  34034. msgid "{@code{prosody-configuration} parameter} package prosody"
  34035. msgstr ""
  34036. #. type: deftypevr
  34037. #: guix-git/doc/guix.texi:22798
  34038. msgid "The Prosody package."
  34039. msgstr ""
  34040. #. type: deftypevr
  34041. #: guix-git/doc/guix.texi:22800
  34042. #, no-wrap
  34043. msgid "{@code{prosody-configuration} parameter} file-name data-path"
  34044. msgstr ""
  34045. #. type: deftypevr
  34046. #: guix-git/doc/guix.texi:22804
  34047. msgid "Location of the Prosody data storage directory. See @url{https://prosody.im/doc/configure}. Defaults to @samp{\"/var/lib/prosody\"}."
  34048. msgstr ""
  34049. #. type: deftypevr
  34050. #: guix-git/doc/guix.texi:22806
  34051. #, no-wrap
  34052. msgid "{@code{prosody-configuration} parameter} file-object-list plugin-paths"
  34053. msgstr ""
  34054. #. type: deftypevr
  34055. #: guix-git/doc/guix.texi:22810
  34056. 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{()}."
  34057. msgstr ""
  34058. #. type: deftypevr
  34059. #: guix-git/doc/guix.texi:22812
  34060. #, no-wrap
  34061. msgid "{@code{prosody-configuration} parameter} file-name certificates"
  34062. msgstr ""
  34063. #. type: deftypevr
  34064. #: guix-git/doc/guix.texi:22817
  34065. 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\"}."
  34066. msgstr ""
  34067. #. type: deftypevr
  34068. #: guix-git/doc/guix.texi:22819
  34069. #, no-wrap
  34070. msgid "{@code{prosody-configuration} parameter} string-list admins"
  34071. msgstr ""
  34072. #. type: deftypevr
  34073. #: guix-git/doc/guix.texi:22825
  34074. 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{()}."
  34075. msgstr ""
  34076. #. type: deftypevr
  34077. #: guix-git/doc/guix.texi:22827
  34078. #, no-wrap
  34079. msgid "{@code{prosody-configuration} parameter} boolean use-libevent?"
  34080. msgstr ""
  34081. #. type: deftypevr
  34082. #: guix-git/doc/guix.texi:22831
  34083. msgid "Enable use of libevent for better performance under high load. See @url{https://prosody.im/doc/libevent}. Defaults to @samp{#f}."
  34084. msgstr ""
  34085. #. type: deftypevr
  34086. #: guix-git/doc/guix.texi:22833
  34087. #, no-wrap
  34088. msgid "{@code{prosody-configuration} parameter} module-list modules-enabled"
  34089. msgstr ""
  34090. #. type: deftypevr
  34091. #: guix-git/doc/guix.texi:22839
  34092. 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\")}."
  34093. msgstr ""
  34094. #. type: deftypevr
  34095. #: guix-git/doc/guix.texi:22841
  34096. #, no-wrap
  34097. msgid "{@code{prosody-configuration} parameter} string-list modules-disabled"
  34098. msgstr ""
  34099. #. type: deftypevr
  34100. #: guix-git/doc/guix.texi:22845
  34101. 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{()}."
  34102. msgstr ""
  34103. #. type: deftypevr
  34104. #: guix-git/doc/guix.texi:22847
  34105. #, no-wrap
  34106. msgid "{@code{prosody-configuration} parameter} file-object groups-file"
  34107. msgstr ""
  34108. #. type: deftypevr
  34109. #: guix-git/doc/guix.texi:22852
  34110. 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\"}."
  34111. msgstr ""
  34112. #. type: deftypevr
  34113. #: guix-git/doc/guix.texi:22854
  34114. #, no-wrap
  34115. msgid "{@code{prosody-configuration} parameter} boolean allow-registration?"
  34116. msgstr ""
  34117. #. type: deftypevr
  34118. #: guix-git/doc/guix.texi:22858
  34119. msgid "Disable account creation by default, for security. See @url{https://prosody.im/doc/creating_accounts}. Defaults to @samp{#f}."
  34120. msgstr ""
  34121. #. type: deftypevr
  34122. #: guix-git/doc/guix.texi:22860
  34123. #, no-wrap
  34124. msgid "{@code{prosody-configuration} parameter} maybe-ssl-configuration ssl"
  34125. msgstr ""
  34126. #. type: deftypevr
  34127. #: guix-git/doc/guix.texi:22865
  34128. 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}."
  34129. msgstr ""
  34130. #. type: deftypevr
  34131. #: guix-git/doc/guix.texi:22867
  34132. msgid "Available @code{ssl-configuration} fields are:"
  34133. msgstr ""
  34134. #. type: deftypevr
  34135. #: guix-git/doc/guix.texi:22868
  34136. #, no-wrap
  34137. msgid "{@code{ssl-configuration} parameter} maybe-string protocol"
  34138. msgstr ""
  34139. #. type: deftypevr
  34140. #: guix-git/doc/guix.texi:22870
  34141. msgid "This determines what handshake to use."
  34142. msgstr ""
  34143. #. type: deftypevr
  34144. #: guix-git/doc/guix.texi:22872
  34145. #, no-wrap
  34146. msgid "{@code{ssl-configuration} parameter} maybe-file-name key"
  34147. msgstr ""
  34148. #. type: deftypevr
  34149. #: guix-git/doc/guix.texi:22874
  34150. msgid "Path to your private key file."
  34151. msgstr ""
  34152. #. type: deftypevr
  34153. #: guix-git/doc/guix.texi:22876
  34154. #, no-wrap
  34155. msgid "{@code{ssl-configuration} parameter} maybe-file-name certificate"
  34156. msgstr ""
  34157. #. type: deftypevr
  34158. #: guix-git/doc/guix.texi:22878
  34159. msgid "Path to your certificate file."
  34160. msgstr ""
  34161. #. type: deftypevr
  34162. #: guix-git/doc/guix.texi:22880
  34163. #, no-wrap
  34164. msgid "{@code{ssl-configuration} parameter} file-object capath"
  34165. msgstr ""
  34166. #. type: deftypevr
  34167. #: guix-git/doc/guix.texi:22884
  34168. 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\"}."
  34169. msgstr ""
  34170. #. type: deftypevr
  34171. #: guix-git/doc/guix.texi:22886
  34172. #, no-wrap
  34173. msgid "{@code{ssl-configuration} parameter} maybe-file-object cafile"
  34174. msgstr ""
  34175. #. type: deftypevr
  34176. #: guix-git/doc/guix.texi:22889
  34177. msgid "Path to a file containing root certificates that you wish Prosody to trust. Similar to @code{capath} but with all certificates concatenated together."
  34178. msgstr ""
  34179. #. type: deftypevr
  34180. #: guix-git/doc/guix.texi:22891
  34181. #, no-wrap
  34182. msgid "{@code{ssl-configuration} parameter} maybe-string-list verify"
  34183. msgstr ""
  34184. #. type: deftypevr
  34185. #: guix-git/doc/guix.texi:22894
  34186. msgid "A list of verification options (these mostly map to OpenSSL's @code{set_verify()} flags)."
  34187. msgstr ""
  34188. #. type: deftypevr
  34189. #: guix-git/doc/guix.texi:22896
  34190. #, no-wrap
  34191. msgid "{@code{ssl-configuration} parameter} maybe-string-list options"
  34192. msgstr ""
  34193. #. type: deftypevr
  34194. #: guix-git/doc/guix.texi:22900
  34195. 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."
  34196. msgstr ""
  34197. #. type: deftypevr
  34198. #: guix-git/doc/guix.texi:22902
  34199. #, no-wrap
  34200. msgid "{@code{ssl-configuration} parameter} maybe-non-negative-integer depth"
  34201. msgstr ""
  34202. #. type: deftypevr
  34203. #: guix-git/doc/guix.texi:22905
  34204. msgid "How long a chain of certificate authorities to check when looking for a trusted root certificate."
  34205. msgstr ""
  34206. #. type: deftypevr
  34207. #: guix-git/doc/guix.texi:22907
  34208. #, no-wrap
  34209. msgid "{@code{ssl-configuration} parameter} maybe-string ciphers"
  34210. msgstr ""
  34211. #. type: deftypevr
  34212. #: guix-git/doc/guix.texi:22910
  34213. msgid "An OpenSSL cipher string. This selects what ciphers Prosody will offer to clients, and in what order."
  34214. msgstr ""
  34215. #. type: deftypevr
  34216. #: guix-git/doc/guix.texi:22912
  34217. #, no-wrap
  34218. msgid "{@code{ssl-configuration} parameter} maybe-file-name dhparam"
  34219. msgstr ""
  34220. #. type: deftypevr
  34221. #: guix-git/doc/guix.texi:22916
  34222. 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}"
  34223. msgstr ""
  34224. #. type: deftypevr
  34225. #: guix-git/doc/guix.texi:22918
  34226. #, no-wrap
  34227. msgid "{@code{ssl-configuration} parameter} maybe-string curve"
  34228. msgstr ""
  34229. #. type: deftypevr
  34230. #: guix-git/doc/guix.texi:22921
  34231. msgid "Curve for Elliptic curve Diffie-Hellman. Prosody's default is @samp{\"secp384r1\"}."
  34232. msgstr ""
  34233. #. type: deftypevr
  34234. #: guix-git/doc/guix.texi:22923
  34235. #, no-wrap
  34236. msgid "{@code{ssl-configuration} parameter} maybe-string-list verifyext"
  34237. msgstr ""
  34238. #. type: deftypevr
  34239. #: guix-git/doc/guix.texi:22925
  34240. msgid "A list of ``extra'' verification options."
  34241. msgstr ""
  34242. #. type: deftypevr
  34243. #: guix-git/doc/guix.texi:22927
  34244. #, no-wrap
  34245. msgid "{@code{ssl-configuration} parameter} maybe-string password"
  34246. msgstr ""
  34247. #. type: deftypevr
  34248. #: guix-git/doc/guix.texi:22929
  34249. msgid "Password for encrypted private keys."
  34250. msgstr ""
  34251. #. type: deftypevr
  34252. #: guix-git/doc/guix.texi:22933
  34253. #, no-wrap
  34254. msgid "{@code{prosody-configuration} parameter} boolean c2s-require-encryption?"
  34255. msgstr ""
  34256. #. type: deftypevr
  34257. #: guix-git/doc/guix.texi:22937
  34258. 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}."
  34259. msgstr ""
  34260. #. type: deftypevr
  34261. #: guix-git/doc/guix.texi:22939
  34262. #, no-wrap
  34263. msgid "{@code{prosody-configuration} parameter} string-list disable-sasl-mechanisms"
  34264. msgstr ""
  34265. #. type: deftypevr
  34266. #: guix-git/doc/guix.texi:22943
  34267. msgid "Set of mechanisms that will never be offered. See @url{https://prosody.im/doc/modules/mod_saslauth}. Defaults to @samp{(\"DIGEST-MD5\")}."
  34268. msgstr ""
  34269. #. type: deftypevr
  34270. #: guix-git/doc/guix.texi:22945
  34271. #, no-wrap
  34272. msgid "{@code{prosody-configuration} parameter} boolean s2s-require-encryption?"
  34273. msgstr ""
  34274. #. type: deftypevr
  34275. #: guix-git/doc/guix.texi:22949
  34276. 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}."
  34277. msgstr ""
  34278. #. type: deftypevr
  34279. #: guix-git/doc/guix.texi:22951
  34280. #, no-wrap
  34281. msgid "{@code{prosody-configuration} parameter} boolean s2s-secure-auth?"
  34282. msgstr ""
  34283. #. type: deftypevr
  34284. #: guix-git/doc/guix.texi:22957
  34285. 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}."
  34286. msgstr ""
  34287. #. type: deftypevr
  34288. #: guix-git/doc/guix.texi:22959
  34289. #, no-wrap
  34290. msgid "{@code{prosody-configuration} parameter} string-list s2s-insecure-domains"
  34291. msgstr ""
  34292. #. type: deftypevr
  34293. #: guix-git/doc/guix.texi:22965
  34294. 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{()}."
  34295. msgstr ""
  34296. #. type: deftypevr
  34297. #: guix-git/doc/guix.texi:22967
  34298. #, no-wrap
  34299. msgid "{@code{prosody-configuration} parameter} string-list s2s-secure-domains"
  34300. msgstr ""
  34301. #. type: deftypevr
  34302. #: guix-git/doc/guix.texi:22972
  34303. 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{()}."
  34304. msgstr ""
  34305. #. type: deftypevr
  34306. #: guix-git/doc/guix.texi:22974
  34307. #, no-wrap
  34308. msgid "{@code{prosody-configuration} parameter} string authentication"
  34309. msgstr ""
  34310. #. type: deftypevr
  34311. #: guix-git/doc/guix.texi:22982
  34312. 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\"}."
  34313. msgstr ""
  34314. #. type: deftypevr
  34315. #: guix-git/doc/guix.texi:22984
  34316. #, no-wrap
  34317. msgid "{@code{prosody-configuration} parameter} maybe-string log"
  34318. msgstr ""
  34319. #. type: deftypevr
  34320. #: guix-git/doc/guix.texi:22988
  34321. 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\"}."
  34322. msgstr ""
  34323. #. type: deftypevr
  34324. #: guix-git/doc/guix.texi:22990
  34325. #, no-wrap
  34326. msgid "{@code{prosody-configuration} parameter} file-name pidfile"
  34327. msgstr ""
  34328. #. type: deftypevr
  34329. #: guix-git/doc/guix.texi:22993
  34330. msgid "File to write pid in. See @url{https://prosody.im/doc/modules/mod_posix}. Defaults to @samp{\"/var/run/prosody/prosody.pid\"}."
  34331. msgstr ""
  34332. #. type: deftypevr
  34333. #: guix-git/doc/guix.texi:22995
  34334. #, no-wrap
  34335. msgid "{@code{prosody-configuration} parameter} maybe-non-negative-integer http-max-content-size"
  34336. msgstr ""
  34337. #. type: deftypevr
  34338. #: guix-git/doc/guix.texi:22997
  34339. msgid "Maximum allowed size of the HTTP body (in bytes)."
  34340. msgstr ""
  34341. #. type: deftypevr
  34342. #: guix-git/doc/guix.texi:22999
  34343. #, no-wrap
  34344. msgid "{@code{prosody-configuration} parameter} maybe-string http-external-url"
  34345. msgstr ""
  34346. #. type: deftypevr
  34347. #: guix-git/doc/guix.texi:23004
  34348. 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}."
  34349. msgstr ""
  34350. #. type: deftypevr
  34351. #: guix-git/doc/guix.texi:23006
  34352. #, no-wrap
  34353. msgid "{@code{prosody-configuration} parameter} virtualhost-configuration-list virtualhosts"
  34354. msgstr ""
  34355. #. type: deftypevr
  34356. #: guix-git/doc/guix.texi:23011
  34357. 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."
  34358. msgstr ""
  34359. #. type: deftypevr
  34360. #: guix-git/doc/guix.texi:23017
  34361. 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."
  34362. msgstr ""
  34363. #. type: deftypevr
  34364. #: guix-git/doc/guix.texi:23019
  34365. msgid "See @url{https://prosody.im/doc/configure#virtual_host_settings}."
  34366. msgstr ""
  34367. #. type: deftypevr
  34368. #: guix-git/doc/guix.texi:23021
  34369. msgid "Available @code{virtualhost-configuration} fields are:"
  34370. msgstr ""
  34371. #. type: deftypevr
  34372. #: guix-git/doc/guix.texi:23023 guix-git/doc/guix.texi:23045
  34373. #: guix-git/doc/guix.texi:23098
  34374. 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:"
  34375. msgstr ""
  34376. #. type: deftypevr
  34377. #: guix-git/doc/guix.texi:23023
  34378. #, no-wrap
  34379. msgid "{@code{virtualhost-configuration} parameter} string domain"
  34380. msgstr ""
  34381. #. type: deftypevr
  34382. #: guix-git/doc/guix.texi:23025
  34383. msgid "Domain you wish Prosody to serve."
  34384. msgstr ""
  34385. #. type: deftypevr
  34386. #: guix-git/doc/guix.texi:23029
  34387. #, no-wrap
  34388. msgid "{@code{prosody-configuration} parameter} int-component-configuration-list int-components"
  34389. msgstr ""
  34390. #. type: deftypevr
  34391. #: guix-git/doc/guix.texi:23034
  34392. 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."
  34393. msgstr ""
  34394. #. type: deftypevr
  34395. #: guix-git/doc/guix.texi:23038
  34396. 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."
  34397. msgstr ""
  34398. #. type: deftypevr
  34399. #: guix-git/doc/guix.texi:23041
  34400. msgid "See @url{https://prosody.im/doc/components}. Defaults to @samp{()}."
  34401. msgstr ""
  34402. #. type: deftypevr
  34403. #: guix-git/doc/guix.texi:23043
  34404. msgid "Available @code{int-component-configuration} fields are:"
  34405. msgstr ""
  34406. #. type: deftypevr
  34407. #: guix-git/doc/guix.texi:23045
  34408. #, no-wrap
  34409. msgid "{@code{int-component-configuration} parameter} string hostname"
  34410. msgstr ""
  34411. #. type: deftypevr
  34412. #: guix-git/doc/guix.texi:23047 guix-git/doc/guix.texi:23104
  34413. msgid "Hostname of the component."
  34414. msgstr ""
  34415. #. type: deftypevr
  34416. #: guix-git/doc/guix.texi:23049
  34417. #, no-wrap
  34418. msgid "{@code{int-component-configuration} parameter} string plugin"
  34419. msgstr ""
  34420. #. type: deftypevr
  34421. #: guix-git/doc/guix.texi:23051
  34422. msgid "Plugin you wish to use for the component."
  34423. msgstr ""
  34424. #. type: deftypevr
  34425. #: guix-git/doc/guix.texi:23053
  34426. #, no-wrap
  34427. msgid "{@code{int-component-configuration} parameter} maybe-mod-muc-configuration mod-muc"
  34428. msgstr ""
  34429. #. type: deftypevr
  34430. #: guix-git/doc/guix.texi:23056
  34431. msgid "Multi-user chat (MUC) is Prosody's module for allowing you to create hosted chatrooms/conferences for XMPP users."
  34432. msgstr ""
  34433. #. type: deftypevr
  34434. #: guix-git/doc/guix.texi:23060
  34435. 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."
  34436. msgstr ""
  34437. #. type: deftypevr
  34438. #: guix-git/doc/guix.texi:23062
  34439. msgid "See also @url{https://prosody.im/doc/modules/mod_muc}."
  34440. msgstr ""
  34441. #. type: deftypevr
  34442. #: guix-git/doc/guix.texi:23064
  34443. msgid "Available @code{mod-muc-configuration} fields are:"
  34444. msgstr ""
  34445. #. type: deftypevr
  34446. #: guix-git/doc/guix.texi:23065
  34447. #, no-wrap
  34448. msgid "{@code{mod-muc-configuration} parameter} string name"
  34449. msgstr ""
  34450. #. type: deftypevr
  34451. #: guix-git/doc/guix.texi:23068
  34452. msgid "The name to return in service discovery responses. Defaults to @samp{\"Prosody Chatrooms\"}."
  34453. msgstr ""
  34454. #. type: deftypevr
  34455. #: guix-git/doc/guix.texi:23070
  34456. #, no-wrap
  34457. msgid "{@code{mod-muc-configuration} parameter} string-or-boolean restrict-room-creation"
  34458. msgstr ""
  34459. #. type: deftypevr
  34460. #: guix-git/doc/guix.texi:23077
  34461. 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}."
  34462. msgstr ""
  34463. #. type: deftypevr
  34464. #: guix-git/doc/guix.texi:23079
  34465. #, no-wrap
  34466. msgid "{@code{mod-muc-configuration} parameter} non-negative-integer max-history-messages"
  34467. msgstr ""
  34468. #. type: deftypevr
  34469. #: guix-git/doc/guix.texi:23083
  34470. msgid "Maximum number of history messages that will be sent to the member that has just joined the room. Defaults to @samp{20}."
  34471. msgstr ""
  34472. #. type: deftypevr
  34473. #: guix-git/doc/guix.texi:23089
  34474. #, no-wrap
  34475. msgid "{@code{prosody-configuration} parameter} ext-component-configuration-list ext-components"
  34476. msgstr ""
  34477. #. type: deftypevr
  34478. #: guix-git/doc/guix.texi:23094
  34479. 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{()}."
  34480. msgstr ""
  34481. #. type: deftypevr
  34482. #: guix-git/doc/guix.texi:23096
  34483. msgid "Available @code{ext-component-configuration} fields are:"
  34484. msgstr ""
  34485. #. type: deftypevr
  34486. #: guix-git/doc/guix.texi:23098
  34487. #, no-wrap
  34488. msgid "{@code{ext-component-configuration} parameter} string component-secret"
  34489. msgstr ""
  34490. #. type: deftypevr
  34491. #: guix-git/doc/guix.texi:23100
  34492. msgid "Password which the component will use to log in."
  34493. msgstr ""
  34494. #. type: deftypevr
  34495. #: guix-git/doc/guix.texi:23102
  34496. #, no-wrap
  34497. msgid "{@code{ext-component-configuration} parameter} string hostname"
  34498. msgstr ""
  34499. #. type: deftypevr
  34500. #: guix-git/doc/guix.texi:23108
  34501. #, no-wrap
  34502. msgid "{@code{prosody-configuration} parameter} non-negative-integer-list component-ports"
  34503. msgstr ""
  34504. #. type: deftypevr
  34505. #: guix-git/doc/guix.texi:23111
  34506. msgid "Port(s) Prosody listens on for component connections. Defaults to @samp{(5347)}."
  34507. msgstr ""
  34508. #. type: deftypevr
  34509. #: guix-git/doc/guix.texi:23113
  34510. #, no-wrap
  34511. msgid "{@code{prosody-configuration} parameter} string component-interface"
  34512. msgstr ""
  34513. #. type: deftypevr
  34514. #: guix-git/doc/guix.texi:23116
  34515. msgid "Interface Prosody listens on for component connections. Defaults to @samp{\"127.0.0.1\"}."
  34516. msgstr ""
  34517. #. type: deftypevr
  34518. #: guix-git/doc/guix.texi:23118
  34519. #, no-wrap
  34520. msgid "{@code{prosody-configuration} parameter} maybe-raw-content raw-content"
  34521. msgstr ""
  34522. #. type: deftypevr
  34523. #: guix-git/doc/guix.texi:23120
  34524. msgid "Raw content that will be added to the configuration file."
  34525. msgstr ""
  34526. #. type: Plain text
  34527. #: guix-git/doc/guix.texi:23128
  34528. 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:"
  34529. msgstr ""
  34530. #. type: deftypevr
  34531. #: guix-git/doc/guix.texi:23129
  34532. #, no-wrap
  34533. msgid "{@code{opaque-prosody-configuration} parameter} package prosody"
  34534. msgstr ""
  34535. #. type: deftypevr
  34536. #: guix-git/doc/guix.texi:23131
  34537. msgid "The prosody package."
  34538. msgstr ""
  34539. #. type: deftypevr
  34540. #: guix-git/doc/guix.texi:23133
  34541. #, no-wrap
  34542. msgid "{@code{opaque-prosody-configuration} parameter} string prosody.cfg.lua"
  34543. msgstr ""
  34544. #. type: deftypevr
  34545. #: guix-git/doc/guix.texi:23135
  34546. msgid "The contents of the @code{prosody.cfg.lua} to use."
  34547. msgstr ""
  34548. #. type: Plain text
  34549. #: guix-git/doc/guix.texi:23139
  34550. msgid "For example, if your @code{prosody.cfg.lua} is just the empty string, you could instantiate a prosody service like this:"
  34551. msgstr ""
  34552. #. type: lisp
  34553. #: guix-git/doc/guix.texi:23144
  34554. #, no-wrap
  34555. msgid ""
  34556. "(service prosody-service-type\n"
  34557. " (opaque-prosody-configuration\n"
  34558. " (prosody.cfg.lua \"\")))\n"
  34559. msgstr ""
  34560. #. type: subsubheading
  34561. #: guix-git/doc/guix.texi:23148
  34562. #, no-wrap
  34563. msgid "BitlBee Service"
  34564. msgstr ""
  34565. #. type: cindex
  34566. #: guix-git/doc/guix.texi:23150 guix-git/doc/guix.texi:23194
  34567. #, no-wrap
  34568. msgid "IRC (Internet Relay Chat)"
  34569. msgstr ""
  34570. #. type: cindex
  34571. #: guix-git/doc/guix.texi:23151
  34572. #, no-wrap
  34573. msgid "IRC gateway"
  34574. msgstr ""
  34575. #. type: Plain text
  34576. #: guix-git/doc/guix.texi:23154
  34577. msgid "@url{https://bitlbee.org,BitlBee} is a gateway that provides an IRC interface to a variety of messaging protocols such as XMPP."
  34578. msgstr ""
  34579. #. type: defvr
  34580. #: guix-git/doc/guix.texi:23155
  34581. #, no-wrap
  34582. msgid "{Scheme Variable} bitlbee-service-type"
  34583. msgstr ""
  34584. #. type: defvr
  34585. #: guix-git/doc/guix.texi:23159
  34586. 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)."
  34587. msgstr ""
  34588. #. type: defvr
  34589. #: guix-git/doc/guix.texi:23162
  34590. msgid "To have BitlBee listen on port 6667 on localhost, add this line to your services:"
  34591. msgstr ""
  34592. #. type: lisp
  34593. #: guix-git/doc/guix.texi:23165
  34594. #, no-wrap
  34595. msgid "(service bitlbee-service-type)\n"
  34596. msgstr ""
  34597. #. type: deftp
  34598. #: guix-git/doc/guix.texi:23168
  34599. #, no-wrap
  34600. msgid "{Data Type} bitlbee-configuration"
  34601. msgstr ""
  34602. #. type: deftp
  34603. #: guix-git/doc/guix.texi:23170
  34604. msgid "This is the configuration for BitlBee, with the following fields:"
  34605. msgstr ""
  34606. #. type: item
  34607. #: guix-git/doc/guix.texi:23172
  34608. #, no-wrap
  34609. msgid "@code{interface} (default: @code{\"127.0.0.1\"})"
  34610. msgstr ""
  34611. #. type: itemx
  34612. #: guix-git/doc/guix.texi:23173
  34613. #, no-wrap
  34614. msgid "@code{port} (default: @code{6667})"
  34615. msgstr ""
  34616. #. type: table
  34617. #: guix-git/doc/guix.texi:23176
  34618. msgid "Listen on the network interface corresponding to the IP address specified in @var{interface}, on @var{port}."
  34619. msgstr ""
  34620. #. type: table
  34621. #: guix-git/doc/guix.texi:23180
  34622. 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."
  34623. msgstr ""
  34624. #. type: item
  34625. #: guix-git/doc/guix.texi:23181
  34626. #, fuzzy, no-wrap
  34627. msgid "@code{bitlbee} (default: @code{bitlbee})"
  34628. msgstr "@code{mate}(默认值:@code{mate})"
  34629. #. type: table
  34630. #: guix-git/doc/guix.texi:23183
  34631. msgid "The BitlBee package to use."
  34632. msgstr ""
  34633. #. type: item
  34634. #: guix-git/doc/guix.texi:23184
  34635. #, no-wrap
  34636. msgid "@code{plugins} (default: @code{'()})"
  34637. msgstr ""
  34638. #. type: table
  34639. #: guix-git/doc/guix.texi:23186
  34640. msgid "List of plugin packages to use---e.g., @code{bitlbee-discord}."
  34641. msgstr ""
  34642. #. type: table
  34643. #: guix-git/doc/guix.texi:23189
  34644. msgid "Configuration snippet added as-is to the BitlBee configuration file."
  34645. msgstr ""
  34646. #. type: subsubheading
  34647. #: guix-git/doc/guix.texi:23192
  34648. #, no-wrap
  34649. msgid "Quassel Service"
  34650. msgstr ""
  34651. #. type: Plain text
  34652. #: guix-git/doc/guix.texi:23198
  34653. 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."
  34654. msgstr ""
  34655. #. type: defvr
  34656. #: guix-git/doc/guix.texi:23199
  34657. #, no-wrap
  34658. msgid "{Scheme Variable} quassel-service-type"
  34659. msgstr ""
  34660. #. type: defvr
  34661. #: guix-git/doc/guix.texi:23203
  34662. 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)."
  34663. msgstr ""
  34664. #. type: deftp
  34665. #: guix-git/doc/guix.texi:23205
  34666. #, no-wrap
  34667. msgid "{Data Type} quassel-configuration"
  34668. msgstr ""
  34669. #. type: deftp
  34670. #: guix-git/doc/guix.texi:23207
  34671. msgid "This is the configuration for Quassel, with the following fields:"
  34672. msgstr ""
  34673. #. type: item
  34674. #: guix-git/doc/guix.texi:23209
  34675. #, no-wrap
  34676. msgid "@code{quassel} (default: @code{quassel})"
  34677. msgstr ""
  34678. #. type: table
  34679. #: guix-git/doc/guix.texi:23211
  34680. msgid "The Quassel package to use."
  34681. msgstr ""
  34682. #. type: item
  34683. #: guix-git/doc/guix.texi:23212
  34684. #, no-wrap
  34685. msgid "@code{interface} (default: @code{\"::,0.0.0.0\"})"
  34686. msgstr ""
  34687. #. type: item
  34688. #: guix-git/doc/guix.texi:23213
  34689. #, no-wrap
  34690. msgid "@code{port} (default: @code{4242})"
  34691. msgstr ""
  34692. #. type: table
  34693. #: guix-git/doc/guix.texi:23217
  34694. msgid "Listen on the network interface(s) corresponding to the IPv4 or IPv6 interfaces specified in the comma delimited @var{interface}, on @var{port}."
  34695. msgstr ""
  34696. #. type: item
  34697. #: guix-git/doc/guix.texi:23218
  34698. #, no-wrap
  34699. msgid "@code{loglevel} (default: @code{\"Info\"})"
  34700. msgstr ""
  34701. #. type: table
  34702. #: guix-git/doc/guix.texi:23221
  34703. msgid "The level of logging desired. Accepted values are Debug, Info, Warning and Error."
  34704. msgstr ""
  34705. #. type: cindex
  34706. #: guix-git/doc/guix.texi:23227
  34707. #, fuzzy, no-wrap
  34708. #| msgid "Telephony services."
  34709. msgid "telephony, services"
  34710. msgstr "电话服务。"
  34711. #. type: Plain text
  34712. #: guix-git/doc/guix.texi:23231
  34713. msgid "The @code{(gnu services telephony)} module contains Guix service definitions for telephony services. Currently it provides the following services:"
  34714. msgstr ""
  34715. #. type: subsubheading
  34716. #: guix-git/doc/guix.texi:23232
  34717. #, no-wrap
  34718. msgid "Jami"
  34719. msgstr ""
  34720. #. type: cindex
  34721. #: guix-git/doc/guix.texi:23234
  34722. #, fuzzy, no-wrap
  34723. msgid "jami, service"
  34724. msgstr "DNS服务"
  34725. #. type: Plain text
  34726. #: guix-git/doc/guix.texi:23240
  34727. 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:"
  34728. msgstr ""
  34729. #. type: lisp
  34730. #: guix-git/doc/guix.texi:23249
  34731. #, no-wrap
  34732. msgid ""
  34733. "(service jami-service-type\n"
  34734. " (jami-configuration\n"
  34735. " (accounts\n"
  34736. " (list (jami-account\n"
  34737. " (archive \"/etc/jami/unencrypted-account-1.gz\"))\n"
  34738. " (jami-account\n"
  34739. " (archive \"/etc/jami/unencrypted-account-2.gz\"))))))\n"
  34740. msgstr ""
  34741. #. type: Plain text
  34742. #: guix-git/doc/guix.texi:23254
  34743. 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."
  34744. msgstr ""
  34745. #. type: Plain text
  34746. #: guix-git/doc/guix.texi:23259
  34747. 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}."
  34748. msgstr ""
  34749. #. type: Plain text
  34750. #: guix-git/doc/guix.texi:23262
  34751. msgid "The next example shows how to declare that only some contacts should be allowed to communicate with a given account:"
  34752. msgstr ""
  34753. #. type: lisp
  34754. #: guix-git/doc/guix.texi:23274
  34755. #, no-wrap
  34756. msgid ""
  34757. "(service jami-service-type\n"
  34758. " (jami-configuration\n"
  34759. " (accounts\n"
  34760. " (list (jami-account\n"
  34761. " (archive \"/etc/jami/unencrypted-account-1.gz\")\n"
  34762. " (peer-discovery? #t)\n"
  34763. " (rendezvous-point? #t)\n"
  34764. " (allowed-contacts\n"
  34765. " '(\"1dbcb0f5f37324228235564b79f2b9737e9a008f\"\n"
  34766. " \"2dbcb0f5f37324228235564b79f2b9737e9a008f\")))))))\n"
  34767. msgstr ""
  34768. #. type: Plain text
  34769. #: guix-git/doc/guix.texi:23280
  34770. 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."
  34771. msgstr ""
  34772. #. type: Plain text
  34773. #: guix-git/doc/guix.texi:23283
  34774. msgid "To put the system administrator in full control of the conferences hosted on their system, the Jami service supports the following actions:"
  34775. msgstr ""
  34776. #. type: example
  34777. #: guix-git/doc/guix.texi:23295
  34778. #, no-wrap
  34779. msgid ""
  34780. "# herd doc jami list-actions\n"
  34781. "(list-accounts\n"
  34782. " list-account-details\n"
  34783. " list-banned-contacts\n"
  34784. " list-contacts\n"
  34785. " list-moderators\n"
  34786. " add-moderator\n"
  34787. " ban-contact\n"
  34788. " enable-account\n"
  34789. " disable-account)\n"
  34790. msgstr ""
  34791. #. type: Plain text
  34792. #: guix-git/doc/guix.texi:23302
  34793. 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."
  34794. msgstr ""
  34795. #. type: Plain text
  34796. #: guix-git/doc/guix.texi:23308
  34797. 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:"
  34798. msgstr ""
  34799. #. type: example
  34800. #: guix-git/doc/guix.texi:23312
  34801. #, no-wrap
  34802. msgid ""
  34803. "# herd add-moderator jami 1dbcb0f5f37324228235564b79f2b9737e9a008f \\\n"
  34804. " f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  34805. "\n"
  34806. msgstr ""
  34807. #. type: example
  34808. #: guix-git/doc/guix.texi:23316
  34809. #, no-wrap
  34810. msgid ""
  34811. "# herd list-moderators jami\n"
  34812. "Moderators for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  34813. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  34814. "\n"
  34815. msgstr ""
  34816. #. type: Plain text
  34817. #: guix-git/doc/guix.texi:23321
  34818. msgid "In the case of @code{ban-contact}, the second username argument is optional; when omitted, the account is banned from all Jami accounts:"
  34819. msgstr ""
  34820. #. type: example
  34821. #: guix-git/doc/guix.texi:23324
  34822. #, no-wrap
  34823. msgid ""
  34824. "# herd ban-contact jami 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  34825. "\n"
  34826. msgstr ""
  34827. #. type: example
  34828. #: guix-git/doc/guix.texi:23328
  34829. #, no-wrap
  34830. msgid ""
  34831. "# herd list-banned-contacts jami\n"
  34832. "Banned contacts for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  34833. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  34834. "\n"
  34835. msgstr ""
  34836. #. type: Plain text
  34837. #: guix-git/doc/guix.texi:23332
  34838. msgid "Banned contacts are also stripped from their moderation privileges."
  34839. msgstr ""
  34840. #. type: Plain text
  34841. #: guix-git/doc/guix.texi:23337
  34842. 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:"
  34843. msgstr ""
  34844. #. type: example
  34845. #: guix-git/doc/guix.texi:23340
  34846. #, no-wrap
  34847. msgid ""
  34848. "# herd disable-account jami f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  34849. "\n"
  34850. msgstr ""
  34851. #. type: example
  34852. #: guix-git/doc/guix.texi:23344
  34853. #, no-wrap
  34854. msgid ""
  34855. "# herd list-accounts jami\n"
  34856. "The following Jami accounts are available:\n"
  34857. " - f3345f2775ddfe07a4b0d95daea111d15fbc1199 (dummy) [disabled]\n"
  34858. "\n"
  34859. msgstr ""
  34860. #. type: Plain text
  34861. #: guix-git/doc/guix.texi:23355
  34862. 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:"
  34863. msgstr ""
  34864. #. type: example
  34865. #: guix-git/doc/guix.texi:23360
  34866. #, no-wrap
  34867. msgid ""
  34868. "# herd list-account-details jami | \\\n"
  34869. " recsel -p Account.username -e 'Account.rendezVous ~ \"true\"'\n"
  34870. "Account_username: f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  34871. msgstr ""
  34872. #. type: Plain text
  34873. #: guix-git/doc/guix.texi:23363
  34874. msgid "The remaining actions should be self-explanatory."
  34875. msgstr ""
  34876. #. type: Plain text
  34877. #: guix-git/doc/guix.texi:23365
  34878. msgid "The complete set of available configuration options is detailed below."
  34879. msgstr ""
  34880. #. type: deftp
  34881. #: guix-git/doc/guix.texi:23369
  34882. #, fuzzy, no-wrap
  34883. msgid "{Data Type} jami-configuration"
  34884. msgstr "{数据类型} build-machine"
  34885. #. type: deftp
  34886. #: guix-git/doc/guix.texi:23371
  34887. msgid "Available @code{jami-configuration} fields are:"
  34888. msgstr ""
  34889. #. type: item
  34890. #: guix-git/doc/guix.texi:23373
  34891. #, fuzzy, no-wrap
  34892. msgid "@code{jamid} (default: @code{libring}) (type: package)"
  34893. msgstr "@code{xfce}(默认值:@code{xfce})"
  34894. #. type: table
  34895. #: guix-git/doc/guix.texi:23375
  34896. #, fuzzy
  34897. msgid "The Jami daemon package to use."
  34898. msgstr "软件包数据类型。"
  34899. #. type: item
  34900. #: guix-git/doc/guix.texi:23376
  34901. #, fuzzy, no-wrap
  34902. msgid "@code{dbus} (default: @code{dbus}) (type: package)"
  34903. msgstr "@code{xfce}(默认值:@code{xfce})"
  34904. #. type: table
  34905. #: guix-git/doc/guix.texi:23378
  34906. #, fuzzy
  34907. msgid "The D-Bus package to use to start the required D-Bus session."
  34908. msgstr "软件包数据类型。"
  34909. #. type: item
  34910. #: guix-git/doc/guix.texi:23379
  34911. #, fuzzy, no-wrap
  34912. msgid "@code{nss-certs} (default: @code{nss-certs}) (type: package)"
  34913. msgstr "@code{xfce}(默认值:@code{xfce})"
  34914. #. type: table
  34915. #: guix-git/doc/guix.texi:23381
  34916. #, fuzzy
  34917. msgid "The nss-certs package to use to provide TLS certificates."
  34918. msgstr "软件包数据类型。"
  34919. #. type: item
  34920. #: guix-git/doc/guix.texi:23382
  34921. #, fuzzy, no-wrap
  34922. msgid "@code{enable-logging?} (default: @code{#t}) (type: boolean)"
  34923. msgstr "@code{speed}(默认值:@code{1.0})"
  34924. #. type: table
  34925. #: guix-git/doc/guix.texi:23384
  34926. msgid "Whether to enable logging to syslog."
  34927. msgstr ""
  34928. #. type: item
  34929. #: guix-git/doc/guix.texi:23385
  34930. #, fuzzy, no-wrap
  34931. msgid "@code{debug?} (default: @code{#f}) (type: boolean)"
  34932. msgstr "@code{challenge}(默认值:@code{#f})"
  34933. #. type: table
  34934. #: guix-git/doc/guix.texi:23387
  34935. msgid "Whether to enable debug level messages."
  34936. msgstr ""
  34937. #. type: item
  34938. #: guix-git/doc/guix.texi:23388
  34939. #, fuzzy, no-wrap
  34940. msgid "@code{auto-answer?} (default: @code{#f}) (type: boolean)"
  34941. msgstr "@code{port}(默认值:@code{22})"
  34942. #. type: table
  34943. #: guix-git/doc/guix.texi:23390
  34944. msgid "Whether to force automatic answer to incoming calls."
  34945. msgstr ""
  34946. #. type: item
  34947. #: guix-git/doc/guix.texi:23391
  34948. #, fuzzy, no-wrap
  34949. msgid "@code{accounts} (default: @code{disabled}) (type: maybe-jami-account-list)"
  34950. msgstr "@code{gnome}(默认值:@code{gnome})"
  34951. #. type: table
  34952. #: guix-git/doc/guix.texi:23396
  34953. 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."
  34954. msgstr ""
  34955. #. type: deftp
  34956. #: guix-git/doc/guix.texi:23402
  34957. #, fuzzy, no-wrap
  34958. msgid "{Data Type} jami-account"
  34959. msgstr "{数据类型} build-machine"
  34960. #. type: deftp
  34961. #: guix-git/doc/guix.texi:23404
  34962. msgid "Available @code{jami-account} fields are:"
  34963. msgstr ""
  34964. #. type: item
  34965. #: guix-git/doc/guix.texi:23406
  34966. #, no-wrap
  34967. msgid "@code{archive} (type: string-or-computed-file)"
  34968. msgstr ""
  34969. #. type: table
  34970. #: guix-git/doc/guix.texi:23412
  34971. 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."
  34972. msgstr ""
  34973. #. type: item
  34974. #: guix-git/doc/guix.texi:23413
  34975. #, no-wrap
  34976. msgid "@code{allowed-contacts} (default: @code{disabled}) (type: maybe-account-fingerprint-list)"
  34977. msgstr ""
  34978. #. type: table
  34979. #: guix-git/doc/guix.texi:23420
  34980. 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."
  34981. msgstr ""
  34982. #. type: item
  34983. #: guix-git/doc/guix.texi:23421
  34984. #, no-wrap
  34985. msgid "@code{moderators} (default: @code{disabled}) (type: maybe-account-fingerprint-list)"
  34986. msgstr ""
  34987. #. type: table
  34988. #: guix-git/doc/guix.texi:23427
  34989. 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."
  34990. msgstr ""
  34991. #. type: item
  34992. #: guix-git/doc/guix.texi:23428
  34993. #, fuzzy, no-wrap
  34994. msgid "@code{rendezvous-point?} (default: @code{disabled}) (type: maybe-boolean)"
  34995. msgstr "@code{port}(默认值:@code{22})"
  34996. #. type: table
  34997. #: guix-git/doc/guix.texi:23432
  34998. 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."
  34999. msgstr ""
  35000. #. type: item
  35001. #: guix-git/doc/guix.texi:23433
  35002. #, fuzzy, no-wrap
  35003. msgid "@code{peer-discovery?} (default: @code{disabled}) (type: maybe-boolean)"
  35004. msgstr "@code{speed}(默认值:@code{1.0})"
  35005. #. type: table
  35006. #: guix-git/doc/guix.texi:23439
  35007. 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."
  35008. msgstr ""
  35009. #. type: item
  35010. #: guix-git/doc/guix.texi:23440
  35011. #, fuzzy, no-wrap
  35012. msgid "@code{bootstrap-hostnames} (default: @code{disabled}) (type: maybe-string-list)"
  35013. msgstr "@code{mate}(默认值:@code{mate})"
  35014. #. type: table
  35015. #: guix-git/doc/guix.texi:23444
  35016. 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."
  35017. msgstr ""
  35018. #. type: item
  35019. #: guix-git/doc/guix.texi:23445
  35020. #, fuzzy, no-wrap
  35021. msgid "@code{name-server-uri} (default: @code{disabled}) (type: maybe-string)"
  35022. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  35023. #. type: table
  35024. #: guix-git/doc/guix.texi:23448
  35025. msgid "The URI of the name server to use, that can be used to retrieve the account fingerprint for a registered username."
  35026. msgstr ""
  35027. #. type: cindex
  35028. #: guix-git/doc/guix.texi:23453 guix-git/doc/guix.texi:23455
  35029. #, no-wrap
  35030. msgid "Murmur (VoIP server)"
  35031. msgstr ""
  35032. #. type: cindex
  35033. #: guix-git/doc/guix.texi:23456
  35034. #, no-wrap
  35035. msgid "VoIP server"
  35036. msgstr ""
  35037. #. type: Plain text
  35038. #: guix-git/doc/guix.texi:23460
  35039. 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."
  35040. msgstr ""
  35041. #. type: deftp
  35042. #: guix-git/doc/guix.texi:23461
  35043. #, no-wrap
  35044. msgid "{Data Type} murmur-configuration"
  35045. msgstr ""
  35046. #. type: deftp
  35047. #: guix-git/doc/guix.texi:23464
  35048. msgid "The service type for the Murmur server. An example configuration can look like this:"
  35049. msgstr ""
  35050. #. type: lisp
  35051. #: guix-git/doc/guix.texi:23473
  35052. #, no-wrap
  35053. msgid ""
  35054. "(service murmur-service-type\n"
  35055. " (murmur-configuration\n"
  35056. " (welcome-text\n"
  35057. " \"Welcome to this Mumble server running on Guix!\")\n"
  35058. " (cert-required? #t) ;disallow text password logins\n"
  35059. " (ssl-cert \"/etc/letsencrypt/live/mumble.example.com/fullchain.pem\")\n"
  35060. " (ssl-key \"/etc/letsencrypt/live/mumble.example.com/privkey.pem\")))\n"
  35061. msgstr ""
  35062. #. type: deftp
  35063. #: guix-git/doc/guix.texi:23477
  35064. msgid "After reconfiguring your system, you can manually set the murmur @code{SuperUser} password with the command that is printed during the activation phase."
  35065. msgstr ""
  35066. #. type: deftp
  35067. #: guix-git/doc/guix.texi:23486
  35068. 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."
  35069. msgstr ""
  35070. #. type: deftp
  35071. #: guix-git/doc/guix.texi:23488
  35072. msgid "Available @code{murmur-configuration} fields are:"
  35073. msgstr ""
  35074. #. type: item
  35075. #: guix-git/doc/guix.texi:23490
  35076. #, no-wrap
  35077. msgid "@code{package} (default: @code{mumble})"
  35078. msgstr ""
  35079. #. type: table
  35080. #: guix-git/doc/guix.texi:23492
  35081. msgid "Package that contains @code{bin/murmurd}."
  35082. msgstr ""
  35083. #. type: item
  35084. #: guix-git/doc/guix.texi:23493
  35085. #, no-wrap
  35086. msgid "@code{user} (default: @code{\"murmur\"})"
  35087. msgstr ""
  35088. #. type: table
  35089. #: guix-git/doc/guix.texi:23495
  35090. msgid "User who will run the Murmur server."
  35091. msgstr ""
  35092. #. type: item
  35093. #: guix-git/doc/guix.texi:23496
  35094. #, no-wrap
  35095. msgid "@code{group} (default: @code{\"murmur\"})"
  35096. msgstr ""
  35097. #. type: table
  35098. #: guix-git/doc/guix.texi:23498
  35099. msgid "Group of the user who will run the murmur server."
  35100. msgstr ""
  35101. #. type: item
  35102. #: guix-git/doc/guix.texi:23499
  35103. #, no-wrap
  35104. msgid "@code{port} (default: @code{64738})"
  35105. msgstr ""
  35106. #. type: table
  35107. #: guix-git/doc/guix.texi:23501
  35108. msgid "Port on which the server will listen."
  35109. msgstr ""
  35110. #. type: item
  35111. #: guix-git/doc/guix.texi:23502
  35112. #, no-wrap
  35113. msgid "@code{welcome-text} (default: @code{\"\"})"
  35114. msgstr ""
  35115. #. type: table
  35116. #: guix-git/doc/guix.texi:23504
  35117. msgid "Welcome text sent to clients when they connect."
  35118. msgstr ""
  35119. #. type: item
  35120. #: guix-git/doc/guix.texi:23505
  35121. #, no-wrap
  35122. msgid "@code{server-password} (default: @code{\"\"})"
  35123. msgstr ""
  35124. #. type: table
  35125. #: guix-git/doc/guix.texi:23507
  35126. msgid "Password the clients have to enter in order to connect."
  35127. msgstr ""
  35128. #. type: item
  35129. #: guix-git/doc/guix.texi:23508
  35130. #, no-wrap
  35131. msgid "@code{max-users} (default: @code{100})"
  35132. msgstr ""
  35133. #. type: table
  35134. #: guix-git/doc/guix.texi:23510
  35135. msgid "Maximum of users that can be connected to the server at once."
  35136. msgstr ""
  35137. #. type: item
  35138. #: guix-git/doc/guix.texi:23511
  35139. #, no-wrap
  35140. msgid "@code{max-user-bandwidth} (default: @code{#f})"
  35141. msgstr ""
  35142. #. type: table
  35143. #: guix-git/doc/guix.texi:23513
  35144. msgid "Maximum voice traffic a user can send per second."
  35145. msgstr ""
  35146. #. type: item
  35147. #: guix-git/doc/guix.texi:23514
  35148. #, no-wrap
  35149. msgid "@code{database-file} (default: @code{\"/var/lib/murmur/db.sqlite\"})"
  35150. msgstr ""
  35151. #. type: table
  35152. #: guix-git/doc/guix.texi:23517
  35153. msgid "File name of the sqlite database. The service's user will become the owner of the directory."
  35154. msgstr ""
  35155. #. type: item
  35156. #: guix-git/doc/guix.texi:23518
  35157. #, no-wrap
  35158. msgid "@code{log-file} (default: @code{\"/var/log/murmur/murmur.log\"})"
  35159. msgstr ""
  35160. #. type: table
  35161. #: guix-git/doc/guix.texi:23521
  35162. msgid "File name of the log file. The service's user will become the owner of the directory."
  35163. msgstr ""
  35164. #. type: item
  35165. #: guix-git/doc/guix.texi:23522
  35166. #, no-wrap
  35167. msgid "@code{autoban-attempts} (default: @code{10})"
  35168. msgstr ""
  35169. #. type: table
  35170. #: guix-git/doc/guix.texi:23525
  35171. msgid "Maximum number of logins a user can make in @code{autoban-timeframe} without getting auto banned for @code{autoban-time}."
  35172. msgstr ""
  35173. #. type: item
  35174. #: guix-git/doc/guix.texi:23526
  35175. #, no-wrap
  35176. msgid "@code{autoban-timeframe} (default: @code{120})"
  35177. msgstr ""
  35178. #. type: table
  35179. #: guix-git/doc/guix.texi:23528
  35180. msgid "Timeframe for autoban in seconds."
  35181. msgstr ""
  35182. #. type: item
  35183. #: guix-git/doc/guix.texi:23529
  35184. #, no-wrap
  35185. msgid "@code{autoban-time} (default: @code{300})"
  35186. msgstr ""
  35187. #. type: table
  35188. #: guix-git/doc/guix.texi:23532
  35189. msgid "Amount of time in seconds for which a client gets banned when violating the autoban limits."
  35190. msgstr ""
  35191. #. type: item
  35192. #: guix-git/doc/guix.texi:23533
  35193. #, no-wrap
  35194. msgid "@code{opus-threshold} (default: @code{100})"
  35195. msgstr ""
  35196. #. type: table
  35197. #: guix-git/doc/guix.texi:23536
  35198. msgid "Percentage of clients that need to support opus before switching over to opus audio codec."
  35199. msgstr ""
  35200. #. type: item
  35201. #: guix-git/doc/guix.texi:23537
  35202. #, no-wrap
  35203. msgid "@code{channel-nesting-limit} (default: @code{10})"
  35204. msgstr ""
  35205. #. type: table
  35206. #: guix-git/doc/guix.texi:23539
  35207. msgid "How deep channels can be nested at maximum."
  35208. msgstr ""
  35209. #. type: item
  35210. #: guix-git/doc/guix.texi:23540
  35211. #, no-wrap
  35212. msgid "@code{channelname-regex} (default: @code{#f})"
  35213. msgstr ""
  35214. #. type: table
  35215. #: guix-git/doc/guix.texi:23542
  35216. msgid "A string in form of a Qt regular expression that channel names must conform to."
  35217. msgstr ""
  35218. #. type: item
  35219. #: guix-git/doc/guix.texi:23543
  35220. #, no-wrap
  35221. msgid "@code{username-regex} (default: @code{#f})"
  35222. msgstr ""
  35223. #. type: table
  35224. #: guix-git/doc/guix.texi:23545
  35225. msgid "A string in form of a Qt regular expression that user names must conform to."
  35226. msgstr ""
  35227. #. type: item
  35228. #: guix-git/doc/guix.texi:23546
  35229. #, no-wrap
  35230. msgid "@code{text-message-length} (default: @code{5000})"
  35231. msgstr ""
  35232. #. type: table
  35233. #: guix-git/doc/guix.texi:23548
  35234. msgid "Maximum size in bytes that a user can send in one text chat message."
  35235. msgstr ""
  35236. #. type: item
  35237. #: guix-git/doc/guix.texi:23549
  35238. #, no-wrap
  35239. msgid "@code{image-message-length} (default: @code{(* 128 1024)})"
  35240. msgstr ""
  35241. #. type: table
  35242. #: guix-git/doc/guix.texi:23551
  35243. msgid "Maximum size in bytes that a user can send in one image message."
  35244. msgstr ""
  35245. #. type: item
  35246. #: guix-git/doc/guix.texi:23552
  35247. #, no-wrap
  35248. msgid "@code{cert-required?} (default: @code{#f})"
  35249. msgstr ""
  35250. #. type: table
  35251. #: guix-git/doc/guix.texi:23555
  35252. 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."
  35253. msgstr ""
  35254. #. type: item
  35255. #: guix-git/doc/guix.texi:23556
  35256. #, no-wrap
  35257. msgid "@code{remember-channel?} (default: @code{#f})"
  35258. msgstr ""
  35259. #. type: table
  35260. #: guix-git/doc/guix.texi:23559
  35261. msgid "Should murmur remember the last channel each user was in when they disconnected and put them into the remembered channel when they rejoin."
  35262. msgstr ""
  35263. #. type: item
  35264. #: guix-git/doc/guix.texi:23560
  35265. #, no-wrap
  35266. msgid "@code{allow-html?} (default: @code{#f})"
  35267. msgstr ""
  35268. #. type: table
  35269. #: guix-git/doc/guix.texi:23562
  35270. msgid "Should html be allowed in text messages, user comments, and channel descriptions."
  35271. msgstr ""
  35272. #. type: item
  35273. #: guix-git/doc/guix.texi:23563
  35274. #, no-wrap
  35275. msgid "@code{allow-ping?} (default: @code{#f})"
  35276. msgstr ""
  35277. #. type: table
  35278. #: guix-git/doc/guix.texi:23567
  35279. 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."
  35280. msgstr ""
  35281. #. type: table
  35282. #: guix-git/doc/guix.texi:23569
  35283. msgid "Disabling this setting will prevent public listing of the server."
  35284. msgstr ""
  35285. #. type: item
  35286. #: guix-git/doc/guix.texi:23570
  35287. #, no-wrap
  35288. msgid "@code{bonjour?} (default: @code{#f})"
  35289. msgstr ""
  35290. #. type: table
  35291. #: guix-git/doc/guix.texi:23572
  35292. msgid "Should the server advertise itself in the local network through the bonjour protocol."
  35293. msgstr ""
  35294. #. type: item
  35295. #: guix-git/doc/guix.texi:23573
  35296. #, no-wrap
  35297. msgid "@code{send-version?} (default: @code{#f})"
  35298. msgstr ""
  35299. #. type: table
  35300. #: guix-git/doc/guix.texi:23575
  35301. msgid "Should the murmur server version be exposed in ping requests."
  35302. msgstr ""
  35303. #. type: item
  35304. #: guix-git/doc/guix.texi:23576
  35305. #, no-wrap
  35306. msgid "@code{log-days} (default: @code{31})"
  35307. msgstr ""
  35308. #. type: table
  35309. #: guix-git/doc/guix.texi:23580
  35310. 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."
  35311. msgstr ""
  35312. #. type: item
  35313. #: guix-git/doc/guix.texi:23581
  35314. #, no-wrap
  35315. msgid "@code{obfuscate-ips?} (default: @code{#t})"
  35316. msgstr ""
  35317. #. type: table
  35318. #: guix-git/doc/guix.texi:23583
  35319. msgid "Should logged ips be obfuscated to protect the privacy of users."
  35320. msgstr ""
  35321. #. type: item
  35322. #: guix-git/doc/guix.texi:23584
  35323. #, no-wrap
  35324. msgid "@code{ssl-cert} (default: @code{#f})"
  35325. msgstr ""
  35326. #. type: table
  35327. #: guix-git/doc/guix.texi:23586
  35328. msgid "File name of the SSL/TLS certificate used for encrypted connections."
  35329. msgstr ""
  35330. #. type: lisp
  35331. #: guix-git/doc/guix.texi:23589
  35332. #, no-wrap
  35333. msgid "(ssl-cert \"/etc/letsencrypt/live/example.com/fullchain.pem\")\n"
  35334. msgstr ""
  35335. #. type: item
  35336. #: guix-git/doc/guix.texi:23590
  35337. #, no-wrap
  35338. msgid "@code{ssl-key} (default: @code{#f})"
  35339. msgstr ""
  35340. #. type: table
  35341. #: guix-git/doc/guix.texi:23592
  35342. msgid "Filepath to the ssl private key used for encrypted connections."
  35343. msgstr ""
  35344. #. type: lisp
  35345. #: guix-git/doc/guix.texi:23594
  35346. #, no-wrap
  35347. msgid "(ssl-key \"/etc/letsencrypt/live/example.com/privkey.pem\")\n"
  35348. msgstr ""
  35349. #. type: item
  35350. #: guix-git/doc/guix.texi:23596
  35351. #, no-wrap
  35352. msgid "@code{ssl-dh-params} (default: @code{#f})"
  35353. msgstr ""
  35354. #. type: table
  35355. #: guix-git/doc/guix.texi:23601
  35356. 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."
  35357. msgstr ""
  35358. #. type: item
  35359. #: guix-git/doc/guix.texi:23602
  35360. #, no-wrap
  35361. msgid "@code{ssl-ciphers} (default: @code{#f})"
  35362. msgstr ""
  35363. #. type: table
  35364. #: guix-git/doc/guix.texi:23605
  35365. msgid "The @code{ssl-ciphers} option chooses the cipher suites to make available for use in SSL/TLS."
  35366. msgstr ""
  35367. #. type: table
  35368. #: guix-git/doc/guix.texi:23609
  35369. msgid "This option is specified using @uref{https://www.openssl.org/docs/apps/ciphers.html#CIPHER-LIST-FORMAT, OpenSSL cipher list notation}."
  35370. msgstr ""
  35371. #. type: table
  35372. #: guix-git/doc/guix.texi:23614
  35373. 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."
  35374. msgstr ""
  35375. #. type: table
  35376. #: guix-git/doc/guix.texi:23618
  35377. 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."
  35378. msgstr ""
  35379. #. type: item
  35380. #: guix-git/doc/guix.texi:23619
  35381. #, no-wrap
  35382. msgid "@code{public-registration} (default: @code{#f})"
  35383. msgstr ""
  35384. #. type: table
  35385. #: guix-git/doc/guix.texi:23621
  35386. msgid "Must be a @code{<murmur-public-registration-configuration>} record or @code{#f}."
  35387. msgstr ""
  35388. #. type: table
  35389. #: guix-git/doc/guix.texi:23626
  35390. 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}."
  35391. msgstr ""
  35392. #. type: table
  35393. #: guix-git/doc/guix.texi:23628
  35394. msgid "It might take a few hours until it shows up in the public list."
  35395. msgstr ""
  35396. #. type: item
  35397. #: guix-git/doc/guix.texi:23629 guix-git/doc/guix.texi:25866
  35398. #, no-wrap
  35399. msgid "@code{file} (default: @code{#f})"
  35400. msgstr ""
  35401. #. type: table
  35402. #: guix-git/doc/guix.texi:23631
  35403. msgid "Optional alternative override for this configuration."
  35404. msgstr ""
  35405. #. type: deftp
  35406. #: guix-git/doc/guix.texi:23634
  35407. #, no-wrap
  35408. msgid "{Data Type} murmur-public-registration-configuration"
  35409. msgstr ""
  35410. #. type: deftp
  35411. #: guix-git/doc/guix.texi:23636
  35412. msgid "Configuration for public registration of a murmur service."
  35413. msgstr ""
  35414. #. type: table
  35415. #: guix-git/doc/guix.texi:23640
  35416. msgid "This is a display name for your server. Not to be confused with the hostname."
  35417. msgstr ""
  35418. #. type: itemx
  35419. #: guix-git/doc/guix.texi:23641 guix-git/doc/guix.texi:32584
  35420. #: guix-git/doc/guix.texi:33743
  35421. #, no-wrap
  35422. msgid "password"
  35423. msgstr ""
  35424. #. type: table
  35425. #: guix-git/doc/guix.texi:23644
  35426. msgid "A password to identify your registration. Subsequent updates will need the same password. Don't lose your password."
  35427. msgstr ""
  35428. #. type: table
  35429. #: guix-git/doc/guix.texi:23648
  35430. msgid "This should be a @code{http://} or @code{https://} link to your web site."
  35431. msgstr ""
  35432. #. type: item
  35433. #: guix-git/doc/guix.texi:23649 guix-git/doc/guix.texi:26751
  35434. #, no-wrap
  35435. msgid "@code{hostname} (default: @code{#f})"
  35436. msgstr ""
  35437. #. type: table
  35438. #: guix-git/doc/guix.texi:23652
  35439. 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."
  35440. msgstr ""
  35441. #. type: Plain text
  35442. #: guix-git/doc/guix.texi:23662
  35443. msgid "The @code{(gnu services file-sharing)} module provides services that assist with transferring files over peer-to-peer file-sharing networks."
  35444. msgstr ""
  35445. #. type: subsubheading
  35446. #: guix-git/doc/guix.texi:23663
  35447. #, fuzzy, no-wrap
  35448. msgid "Transmission Daemon Service"
  35449. msgstr "版本控制服务"
  35450. #. type: Plain text
  35451. #: guix-git/doc/guix.texi:23671
  35452. 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."
  35453. msgstr ""
  35454. #. type: deffn
  35455. #: guix-git/doc/guix.texi:23672
  35456. #, no-wrap
  35457. msgid "{Scheme Variable} transmission-daemon-service-type"
  35458. msgstr ""
  35459. #. type: deffn
  35460. #: guix-git/doc/guix.texi:23676
  35461. msgid "The service type for the Transmission Daemon BitTorrent client. Its value must be a @code{transmission-daemon-configuration} object as in this example:"
  35462. msgstr ""
  35463. #. type: lisp
  35464. #: guix-git/doc/guix.texi:23687
  35465. #, no-wrap
  35466. msgid ""
  35467. "(service transmission-daemon-service-type\n"
  35468. " (transmission-daemon-configuration\n"
  35469. " ;; Restrict access to the RPC (\"control\") interface\n"
  35470. " (rpc-authentication-required? #t)\n"
  35471. " (rpc-username \"transmission\")\n"
  35472. " (rpc-password\n"
  35473. " (transmission-password-hash\n"
  35474. " \"transmission\" ; desired password\n"
  35475. " \"uKd1uMs9\")) ; arbitrary salt value\n"
  35476. "\n"
  35477. msgstr ""
  35478. #. type: lisp
  35479. #: guix-git/doc/guix.texi:23692
  35480. #, no-wrap
  35481. msgid ""
  35482. " ;; Accept requests from this and other hosts on the\n"
  35483. " ;; local network\n"
  35484. " (rpc-whitelist-enabled? #t)\n"
  35485. " (rpc-whitelist '(\"::1\" \"127.0.0.1\" \"192.168.0.*\"))\n"
  35486. "\n"
  35487. msgstr ""
  35488. #. type: lisp
  35489. #: guix-git/doc/guix.texi:23696
  35490. #, no-wrap
  35491. msgid ""
  35492. " ;; Limit bandwidth use during work hours\n"
  35493. " (alt-speed-down (* 1024 2)) ; 2 MB/s\n"
  35494. " (alt-speed-up 512) ; 512 kB/s\n"
  35495. "\n"
  35496. msgstr ""
  35497. #. type: lisp
  35498. #: guix-git/doc/guix.texi:23703
  35499. #, no-wrap
  35500. msgid ""
  35501. " (alt-speed-time-enabled? #t)\n"
  35502. " (alt-speed-time-day 'weekdays)\n"
  35503. " (alt-speed-time-begin\n"
  35504. " (+ (* 60 8) 30)) ; 8:30 am\n"
  35505. " (alt-speed-time-end\n"
  35506. " (+ (* 60 (+ 12 5)) 30)))) ; 5:30 pm\n"
  35507. msgstr ""
  35508. #. type: Plain text
  35509. #: guix-git/doc/guix.texi:23716
  35510. 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."
  35511. msgstr ""
  35512. #. type: Plain text
  35513. #: guix-git/doc/guix.texi:23724
  35514. 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."
  35515. msgstr ""
  35516. #. type: deffn
  35517. #: guix-git/doc/guix.texi:23725
  35518. #, no-wrap
  35519. msgid "{Scheme Procedure} transmission-password-hash @var{password} @var{salt}"
  35520. msgstr ""
  35521. #. type: deffn
  35522. #: guix-git/doc/guix.texi:23729
  35523. 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."
  35524. msgstr ""
  35525. #. type: deffn
  35526. #: guix-git/doc/guix.texi:23733
  35527. 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."
  35528. msgstr ""
  35529. #. type: deffn
  35530. #: guix-git/doc/guix.texi:23735
  35531. #, no-wrap
  35532. msgid "{Scheme Procedure} transmission-random-salt"
  35533. msgstr ""
  35534. #. type: deffn
  35535. #: guix-git/doc/guix.texi:23739
  35536. 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."
  35537. msgstr ""
  35538. #. type: Plain text
  35539. #: guix-git/doc/guix.texi:23745
  35540. 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:"
  35541. msgstr ""
  35542. #. type: example
  35543. #: guix-git/doc/guix.texi:23751
  35544. #, no-wrap
  35545. msgid ""
  35546. "$ guix repl\n"
  35547. "scheme@@(guix-user)> ,use (gnu services file-sharing)\n"
  35548. "scheme@@(guix-user)> (transmission-random-salt)\n"
  35549. "$1 = \"uKd1uMs9\"\n"
  35550. msgstr ""
  35551. #. type: Plain text
  35552. #: guix-git/doc/guix.texi:23754
  35553. msgid "Alternatively, a complete password hash can generated in a single step:"
  35554. msgstr ""
  35555. #. type: example
  35556. #: guix-git/doc/guix.texi:23759
  35557. #, no-wrap
  35558. msgid ""
  35559. "scheme@@(guix-user)> (transmission-password-hash \"transmission\"\n"
  35560. "(transmission-random-salt))\n"
  35561. "$2 = \"@{c8bbc6d1740cd8dc819a6e25563b67812c1c19c9VtFPfdsX\"\n"
  35562. msgstr ""
  35563. #. type: Plain text
  35564. #: guix-git/doc/guix.texi:23764
  35565. 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."
  35566. msgstr ""
  35567. #. type: Plain text
  35568. #: guix-git/doc/guix.texi:23773
  35569. 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."
  35570. msgstr ""
  35571. #. type: Plain text
  35572. #: guix-git/doc/guix.texi:23780
  35573. 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.)"
  35574. msgstr ""
  35575. #. type: Plain text
  35576. #: guix-git/doc/guix.texi:23785
  35577. 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:"
  35578. msgstr ""
  35579. #. type: example
  35580. #: guix-git/doc/guix.texi:23788
  35581. #, no-wrap
  35582. msgid "# herd reload transmission-daemon\n"
  35583. msgstr ""
  35584. #. type: Plain text
  35585. #: guix-git/doc/guix.texi:23792
  35586. msgid "The full set of available configuration settings is defined by the @code{transmission-daemon-configuration} data type."
  35587. msgstr ""
  35588. #. type: deftp
  35589. #: guix-git/doc/guix.texi:23793
  35590. #, fuzzy, no-wrap
  35591. msgid "{Data Type} transmission-daemon-configuration"
  35592. msgstr "{数据类型} build-machine"
  35593. #. type: deftp
  35594. #: guix-git/doc/guix.texi:23797
  35595. 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."
  35596. msgstr ""
  35597. #. type: Plain text
  35598. #: guix-git/doc/guix.texi:23811
  35599. msgid "Available @code{transmission-daemon-configuration} fields are:"
  35600. msgstr ""
  35601. #. type: deftypevr
  35602. #: guix-git/doc/guix.texi:23812
  35603. #, no-wrap
  35604. msgid "{@code{transmission-daemon-configuration} parameter} package transmission"
  35605. msgstr ""
  35606. #. type: deftypevr
  35607. #: guix-git/doc/guix.texi:23814
  35608. #, fuzzy
  35609. msgid "The Transmission package to use."
  35610. msgstr "软件包数据类型。"
  35611. #. type: deftypevr
  35612. #: guix-git/doc/guix.texi:23817
  35613. #, no-wrap
  35614. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer stop-wait-period"
  35615. msgstr ""
  35616. #. type: deftypevr
  35617. #: guix-git/doc/guix.texi:23823
  35618. 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."
  35619. msgstr ""
  35620. #. type: deftypevr
  35621. #: guix-git/doc/guix.texi:23825 guix-git/doc/guix.texi:24197
  35622. #: guix-git/doc/guix.texi:31550 guix-git/doc/guix.texi:31785
  35623. #: guix-git/doc/guix.texi:31793 guix-git/doc/guix.texi:31801
  35624. msgid "Defaults to @samp{10}."
  35625. msgstr ""
  35626. #. type: deftypevr
  35627. #: guix-git/doc/guix.texi:23828
  35628. #, no-wrap
  35629. msgid "{@code{transmission-daemon-configuration} parameter} string download-dir"
  35630. msgstr ""
  35631. #. type: deftypevr
  35632. #: guix-git/doc/guix.texi:23830
  35633. msgid "The directory to which torrent files are downloaded."
  35634. msgstr ""
  35635. #. type: deftypevr
  35636. #: guix-git/doc/guix.texi:23832
  35637. msgid "Defaults to @samp{\"/var/lib/transmission-daemon/downloads\"}."
  35638. msgstr ""
  35639. #. type: deftypevr
  35640. #: guix-git/doc/guix.texi:23835
  35641. #, no-wrap
  35642. msgid "{@code{transmission-daemon-configuration} parameter} boolean incomplete-dir-enabled?"
  35643. msgstr ""
  35644. #. type: deftypevr
  35645. #: guix-git/doc/guix.texi:23840
  35646. 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}."
  35647. msgstr ""
  35648. #. type: deftypevr
  35649. #: guix-git/doc/guix.texi:23845
  35650. #, no-wrap
  35651. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string incomplete-dir"
  35652. msgstr ""
  35653. #. type: deftypevr
  35654. #: guix-git/doc/guix.texi:23848
  35655. msgid "The directory in which files from incompletely downloaded torrents will be held when @code{incomplete-dir-enabled?} is @code{#t}."
  35656. msgstr ""
  35657. #. type: deftypevr
  35658. #: guix-git/doc/guix.texi:23853
  35659. #, no-wrap
  35660. msgid "{@code{transmission-daemon-configuration} parameter} umask umask"
  35661. msgstr ""
  35662. #. type: deftypevr
  35663. #: guix-git/doc/guix.texi:23856
  35664. msgid "The file mode creation mask used for downloaded files. (See the @command{umask} man page for more information.)"
  35665. msgstr ""
  35666. #. type: deftypevr
  35667. #: guix-git/doc/guix.texi:23858
  35668. msgid "Defaults to @samp{18}."
  35669. msgstr ""
  35670. #. type: deftypevr
  35671. #: guix-git/doc/guix.texi:23861
  35672. #, no-wrap
  35673. msgid "{@code{transmission-daemon-configuration} parameter} boolean rename-partial-files?"
  35674. msgstr ""
  35675. #. type: deftypevr
  35676. #: guix-git/doc/guix.texi:23864
  35677. msgid "When @code{#t}, ``.part'' is appended to the name of partially downloaded files."
  35678. msgstr ""
  35679. #. type: deftypevr
  35680. #: guix-git/doc/guix.texi:23869
  35681. #, no-wrap
  35682. msgid "{@code{transmission-daemon-configuration} parameter} preallocation-mode preallocation"
  35683. msgstr ""
  35684. #. type: deftypevr
  35685. #: guix-git/doc/guix.texi:23874
  35686. 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."
  35687. msgstr ""
  35688. #. type: deftypevr
  35689. #: guix-git/doc/guix.texi:23876
  35690. msgid "Defaults to @samp{fast}."
  35691. msgstr ""
  35692. #. type: deftypevr
  35693. #: guix-git/doc/guix.texi:23879
  35694. #, no-wrap
  35695. msgid "{@code{transmission-daemon-configuration} parameter} boolean watch-dir-enabled?"
  35696. msgstr ""
  35697. #. type: deftypevr
  35698. #: guix-git/doc/guix.texi:23884
  35699. 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})."
  35700. msgstr ""
  35701. #. type: deftypevr
  35702. #: guix-git/doc/guix.texi:23889
  35703. #, no-wrap
  35704. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string watch-dir"
  35705. msgstr ""
  35706. #. type: deftypevr
  35707. #: guix-git/doc/guix.texi:23892
  35708. msgid "The directory to be watched for @file{.torrent} files indicating new torrents to be added, when @code{watch-dir-enabled} is @code{#t}."
  35709. msgstr ""
  35710. #. type: deftypevr
  35711. #: guix-git/doc/guix.texi:23897
  35712. #, no-wrap
  35713. msgid "{@code{transmission-daemon-configuration} parameter} boolean trash-original-torrent-files?"
  35714. msgstr ""
  35715. #. type: deftypevr
  35716. #: guix-git/doc/guix.texi:23901
  35717. 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?})."
  35718. msgstr ""
  35719. #. type: deftypevr
  35720. #: guix-git/doc/guix.texi:23906
  35721. #, no-wrap
  35722. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-down-enabled?"
  35723. msgstr ""
  35724. #. type: deftypevr
  35725. #: guix-git/doc/guix.texi:23909
  35726. msgid "When @code{#t}, the daemon's download speed will be limited to the rate specified by @code{speed-limit-down}."
  35727. msgstr ""
  35728. #. type: deftypevr
  35729. #: guix-git/doc/guix.texi:23914
  35730. #, no-wrap
  35731. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-down"
  35732. msgstr ""
  35733. #. type: deftypevr
  35734. #: guix-git/doc/guix.texi:23916
  35735. msgid "The default global-maximum download speed, in kilobytes per second."
  35736. msgstr ""
  35737. #. type: deftypevr
  35738. #: guix-git/doc/guix.texi:23921
  35739. #, no-wrap
  35740. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-up-enabled?"
  35741. msgstr ""
  35742. #. type: deftypevr
  35743. #: guix-git/doc/guix.texi:23924
  35744. msgid "When @code{#t}, the daemon's upload speed will be limited to the rate specified by @code{speed-limit-up}."
  35745. msgstr ""
  35746. #. type: deftypevr
  35747. #: guix-git/doc/guix.texi:23929
  35748. #, no-wrap
  35749. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-up"
  35750. msgstr ""
  35751. #. type: deftypevr
  35752. #: guix-git/doc/guix.texi:23931
  35753. msgid "The default global-maximum upload speed, in kilobytes per second."
  35754. msgstr ""
  35755. #. type: deftypevr
  35756. #: guix-git/doc/guix.texi:23936
  35757. #, no-wrap
  35758. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-enabled?"
  35759. msgstr ""
  35760. #. type: deftypevr
  35761. #: guix-git/doc/guix.texi:23942
  35762. 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?}."
  35763. msgstr ""
  35764. #. type: deftypevr
  35765. #: guix-git/doc/guix.texi:23947
  35766. #, no-wrap
  35767. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-down"
  35768. msgstr ""
  35769. #. type: deftypevr
  35770. #: guix-git/doc/guix.texi:23949
  35771. msgid "The alternate global-maximum download speed, in kilobytes per second."
  35772. msgstr ""
  35773. #. type: deftypevr
  35774. #: guix-git/doc/guix.texi:23951 guix-git/doc/guix.texi:23958
  35775. #: guix-git/doc/guix.texi:24130 guix-git/doc/guix.texi:31557
  35776. #: guix-git/doc/guix.texi:31572
  35777. msgid "Defaults to @samp{50}."
  35778. msgstr ""
  35779. #. type: deftypevr
  35780. #: guix-git/doc/guix.texi:23954
  35781. #, no-wrap
  35782. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-up"
  35783. msgstr ""
  35784. #. type: deftypevr
  35785. #: guix-git/doc/guix.texi:23956
  35786. msgid "The alternate global-maximum upload speed, in kilobytes per second."
  35787. msgstr ""
  35788. #. type: deftypevr
  35789. #: guix-git/doc/guix.texi:23961
  35790. #, no-wrap
  35791. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-time-enabled?"
  35792. msgstr ""
  35793. #. type: deftypevr
  35794. #: guix-git/doc/guix.texi:23966
  35795. 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}."
  35796. msgstr ""
  35797. #. type: deftypevr
  35798. #: guix-git/doc/guix.texi:23971
  35799. #, no-wrap
  35800. msgid "{@code{transmission-daemon-configuration} parameter} day-list alt-speed-time-day"
  35801. msgstr ""
  35802. #. type: deftypevr
  35803. #: guix-git/doc/guix.texi:23976
  35804. 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}."
  35805. msgstr ""
  35806. #. type: deftypevr
  35807. #: guix-git/doc/guix.texi:23978
  35808. msgid "Defaults to @samp{all}."
  35809. msgstr ""
  35810. #. type: deftypevr
  35811. #: guix-git/doc/guix.texi:23981
  35812. #, no-wrap
  35813. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-begin"
  35814. msgstr ""
  35815. #. type: deftypevr
  35816. #: guix-git/doc/guix.texi:23984
  35817. msgid "The time of day at which to enable the alternate speed limits, expressed as a number of minutes since midnight."
  35818. msgstr ""
  35819. #. type: deftypevr
  35820. #: guix-git/doc/guix.texi:23986
  35821. msgid "Defaults to @samp{540}."
  35822. msgstr ""
  35823. #. type: deftypevr
  35824. #: guix-git/doc/guix.texi:23989
  35825. #, no-wrap
  35826. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-end"
  35827. msgstr ""
  35828. #. type: deftypevr
  35829. #: guix-git/doc/guix.texi:23992
  35830. msgid "The time of day at which to disable the alternate speed limits, expressed as a number of minutes since midnight."
  35831. msgstr ""
  35832. #. type: deftypevr
  35833. #: guix-git/doc/guix.texi:23994
  35834. msgid "Defaults to @samp{1020}."
  35835. msgstr ""
  35836. #. type: deftypevr
  35837. #: guix-git/doc/guix.texi:23997
  35838. #, no-wrap
  35839. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv4"
  35840. msgstr ""
  35841. #. type: deftypevr
  35842. #: guix-git/doc/guix.texi:24000
  35843. msgid "The IP address at which to listen for peer connections, or ``0.0.0.0'' to listen at all available IP addresses."
  35844. msgstr ""
  35845. #. type: deftypevr
  35846. #: guix-git/doc/guix.texi:24002 guix-git/doc/guix.texi:24305
  35847. #: guix-git/doc/guix.texi:29425
  35848. msgid "Defaults to @samp{\"0.0.0.0\"}."
  35849. msgstr ""
  35850. #. type: deftypevr
  35851. #: guix-git/doc/guix.texi:24005
  35852. #, no-wrap
  35853. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv6"
  35854. msgstr ""
  35855. #. type: deftypevr
  35856. #: guix-git/doc/guix.texi:24008
  35857. msgid "The IPv6 address at which to listen for peer connections, or ``::'' to listen at all available IPv6 addresses."
  35858. msgstr ""
  35859. #. type: deftypevr
  35860. #: guix-git/doc/guix.texi:24010
  35861. msgid "Defaults to @samp{\"::\"}."
  35862. msgstr ""
  35863. #. type: deftypevr
  35864. #: guix-git/doc/guix.texi:24013
  35865. #, no-wrap
  35866. msgid "{@code{transmission-daemon-configuration} parameter} boolean peer-port-random-on-start?"
  35867. msgstr ""
  35868. #. type: deftypevr
  35869. #: guix-git/doc/guix.texi:24019
  35870. 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}."
  35871. msgstr ""
  35872. #. type: deftypevr
  35873. #: guix-git/doc/guix.texi:24024
  35874. #, no-wrap
  35875. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-low"
  35876. msgstr ""
  35877. #. type: deftypevr
  35878. #: guix-git/doc/guix.texi:24027
  35879. msgid "The lowest selectable port number when @code{peer-port-random-on-start?} is @code{#t}."
  35880. msgstr ""
  35881. #. type: deftypevr
  35882. #: guix-git/doc/guix.texi:24029
  35883. msgid "Defaults to @samp{49152}."
  35884. msgstr ""
  35885. #. type: deftypevr
  35886. #: guix-git/doc/guix.texi:24032
  35887. #, no-wrap
  35888. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-high"
  35889. msgstr ""
  35890. #. type: deftypevr
  35891. #: guix-git/doc/guix.texi:24035
  35892. msgid "The highest selectable port number when @code{peer-port-random-on-start} is @code{#t}."
  35893. msgstr ""
  35894. #. type: deftypevr
  35895. #: guix-git/doc/guix.texi:24037
  35896. msgid "Defaults to @samp{65535}."
  35897. msgstr ""
  35898. #. type: deftypevr
  35899. #: guix-git/doc/guix.texi:24040
  35900. #, no-wrap
  35901. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port"
  35902. msgstr ""
  35903. #. type: deftypevr
  35904. #: guix-git/doc/guix.texi:24043
  35905. msgid "The port on which to listen for peer connections when @code{peer-port-random-on-start?} is @code{#f}."
  35906. msgstr ""
  35907. #. type: deftypevr
  35908. #: guix-git/doc/guix.texi:24045
  35909. msgid "Defaults to @samp{51413}."
  35910. msgstr ""
  35911. #. type: deftypevr
  35912. #: guix-git/doc/guix.texi:24048
  35913. #, no-wrap
  35914. msgid "{@code{transmission-daemon-configuration} parameter} boolean port-forwarding-enabled?"
  35915. msgstr ""
  35916. #. type: deftypevr
  35917. #: guix-git/doc/guix.texi:24052
  35918. msgid "If @code{#t}, the daemon will attempt to configure port-forwarding on an upstream gateway automatically using @acronym{UPnP} and @acronym{NAT-PMP}."
  35919. msgstr ""
  35920. #. type: deftypevr
  35921. #: guix-git/doc/guix.texi:24057
  35922. #, no-wrap
  35923. msgid "{@code{transmission-daemon-configuration} parameter} encryption-mode encryption"
  35924. msgstr ""
  35925. #. type: deftypevr
  35926. #: guix-git/doc/guix.texi:24062
  35927. msgid "The encryption preference for peer connections, one of @code{prefer-unencrypted-connections}, @code{prefer-encrypted-connections} or @code{require-encrypted-connections}."
  35928. msgstr ""
  35929. #. type: deftypevr
  35930. #: guix-git/doc/guix.texi:24064
  35931. msgid "Defaults to @samp{prefer-encrypted-connections}."
  35932. msgstr ""
  35933. #. type: deftypevr
  35934. #: guix-git/doc/guix.texi:24067
  35935. #, no-wrap
  35936. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string peer-congestion-algorithm"
  35937. msgstr ""
  35938. #. type: deftypevr
  35939. #: guix-git/doc/guix.texi:24072
  35940. 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)."
  35941. msgstr ""
  35942. #. type: deftypevr
  35943. #: guix-git/doc/guix.texi:24081
  35944. 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."
  35945. msgstr ""
  35946. #. type: deftypevr
  35947. #: guix-git/doc/guix.texi:24089
  35948. 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:"
  35949. msgstr ""
  35950. #. type: lisp
  35951. #: guix-git/doc/guix.texi:24096
  35952. #, no-wrap
  35953. msgid ""
  35954. "(service sysctl-service-type\n"
  35955. " (sysctl-configuration\n"
  35956. " (settings\n"
  35957. " (\"net.ipv4.tcp_allowed_congestion_control\" .\n"
  35958. " \"reno cubic lp\"))))\n"
  35959. msgstr ""
  35960. #. type: deftypevr
  35961. #: guix-git/doc/guix.texi:24099
  35962. msgid "The Transmission Daemon configuration can then be updated with"
  35963. msgstr ""
  35964. #. type: lisp
  35965. #: guix-git/doc/guix.texi:24102
  35966. #, no-wrap
  35967. msgid "(peer-congestion-algorithm \"lp\")\n"
  35968. msgstr ""
  35969. #. type: deftypevr
  35970. #: guix-git/doc/guix.texi:24105
  35971. msgid "and the system reconfigured to have the changes take effect."
  35972. msgstr ""
  35973. #. type: deftypevr
  35974. #: guix-git/doc/guix.texi:24110
  35975. #, no-wrap
  35976. msgid "{@code{transmission-daemon-configuration} parameter} tcp-type-of-service peer-socket-tos"
  35977. msgstr ""
  35978. #. type: deftypevr
  35979. #: guix-git/doc/guix.texi:24114
  35980. 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}."
  35981. msgstr ""
  35982. #. type: deftypevr
  35983. #: guix-git/doc/guix.texi:24116
  35984. msgid "Defaults to @samp{default}."
  35985. msgstr ""
  35986. #. type: deftypevr
  35987. #: guix-git/doc/guix.texi:24119
  35988. #, no-wrap
  35989. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-global"
  35990. msgstr ""
  35991. #. type: deftypevr
  35992. #: guix-git/doc/guix.texi:24121
  35993. msgid "The global limit on the number of connected peers."
  35994. msgstr ""
  35995. #. type: deftypevr
  35996. #: guix-git/doc/guix.texi:24123
  35997. msgid "Defaults to @samp{200}."
  35998. msgstr ""
  35999. #. type: deftypevr
  36000. #: guix-git/doc/guix.texi:24126
  36001. #, no-wrap
  36002. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-per-torrent"
  36003. msgstr ""
  36004. #. type: deftypevr
  36005. #: guix-git/doc/guix.texi:24128
  36006. msgid "The per-torrent limit on the number of connected peers."
  36007. msgstr ""
  36008. #. type: deftypevr
  36009. #: guix-git/doc/guix.texi:24133
  36010. #, no-wrap
  36011. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer upload-slots-per-torrent"
  36012. msgstr ""
  36013. #. type: deftypevr
  36014. #: guix-git/doc/guix.texi:24136
  36015. msgid "The maximum number of peers to which the daemon will upload data simultaneously for each torrent."
  36016. msgstr ""
  36017. #. type: deftypevr
  36018. #: guix-git/doc/guix.texi:24138
  36019. msgid "Defaults to @samp{14}."
  36020. msgstr ""
  36021. #. type: deftypevr
  36022. #: guix-git/doc/guix.texi:24141
  36023. #, no-wrap
  36024. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-id-ttl-hours"
  36025. msgstr ""
  36026. #. type: deftypevr
  36027. #: guix-git/doc/guix.texi:24144
  36028. msgid "The maximum lifespan, in hours, of the peer ID associated with each public torrent before it is regenerated."
  36029. msgstr ""
  36030. #. type: deftypevr
  36031. #: guix-git/doc/guix.texi:24146
  36032. msgid "Defaults to @samp{6}."
  36033. msgstr ""
  36034. #. type: deftypevr
  36035. #: guix-git/doc/guix.texi:24149
  36036. #, no-wrap
  36037. msgid "{@code{transmission-daemon-configuration} parameter} boolean blocklist-enabled?"
  36038. msgstr ""
  36039. #. type: deftypevr
  36040. #: guix-git/doc/guix.texi:24152
  36041. msgid "When @code{#t}, the daemon will ignore peers mentioned in the blocklist it has most recently downloaded from @code{blocklist-url}."
  36042. msgstr ""
  36043. #. type: deftypevr
  36044. #: guix-git/doc/guix.texi:24157
  36045. #, no-wrap
  36046. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string blocklist-url"
  36047. msgstr ""
  36048. #. type: deftypevr
  36049. #: guix-git/doc/guix.texi:24161
  36050. 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}."
  36051. msgstr ""
  36052. #. type: deftypevr
  36053. #: guix-git/doc/guix.texi:24166
  36054. #, no-wrap
  36055. msgid "{@code{transmission-daemon-configuration} parameter} boolean download-queue-enabled?"
  36056. msgstr ""
  36057. #. type: deftypevr
  36058. #: guix-git/doc/guix.texi:24169
  36059. msgid "If @code{#t}, the daemon will be limited to downloading at most @code{download-queue-size} non-stalled torrents simultaneously."
  36060. msgstr ""
  36061. #. type: deftypevr
  36062. #: guix-git/doc/guix.texi:24174
  36063. #, no-wrap
  36064. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer download-queue-size"
  36065. msgstr ""
  36066. #. type: deftypevr
  36067. #: guix-git/doc/guix.texi:24178
  36068. 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}."
  36069. msgstr ""
  36070. #. type: deftypevr
  36071. #: guix-git/doc/guix.texi:24183
  36072. #, no-wrap
  36073. msgid "{@code{transmission-daemon-configuration} parameter} boolean seed-queue-enabled?"
  36074. msgstr ""
  36075. #. type: deftypevr
  36076. #: guix-git/doc/guix.texi:24186
  36077. msgid "If @code{#t}, the daemon will be limited to seeding at most @code{seed-queue-size} non-stalled torrents simultaneously."
  36078. msgstr ""
  36079. #. type: deftypevr
  36080. #: guix-git/doc/guix.texi:24191
  36081. #, no-wrap
  36082. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer seed-queue-size"
  36083. msgstr ""
  36084. #. type: deftypevr
  36085. #: guix-git/doc/guix.texi:24195
  36086. 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}."
  36087. msgstr ""
  36088. #. type: deftypevr
  36089. #: guix-git/doc/guix.texi:24200
  36090. #, no-wrap
  36091. msgid "{@code{transmission-daemon-configuration} parameter} boolean queue-stalled-enabled?"
  36092. msgstr ""
  36093. #. type: deftypevr
  36094. #: guix-git/doc/guix.texi:24205
  36095. 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."
  36096. msgstr ""
  36097. #. type: deftypevr
  36098. #: guix-git/doc/guix.texi:24210
  36099. #, no-wrap
  36100. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer queue-stalled-minutes"
  36101. msgstr ""
  36102. #. type: deftypevr
  36103. #: guix-git/doc/guix.texi:24214
  36104. 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}."
  36105. msgstr ""
  36106. #. type: deftypevr
  36107. #: guix-git/doc/guix.texi:24219
  36108. #, no-wrap
  36109. msgid "{@code{transmission-daemon-configuration} parameter} boolean ratio-limit-enabled?"
  36110. msgstr ""
  36111. #. type: deftypevr
  36112. #: guix-git/doc/guix.texi:24222
  36113. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it reaches the ratio specified by @code{ratio-limit}."
  36114. msgstr ""
  36115. #. type: deftypevr
  36116. #: guix-git/doc/guix.texi:24227
  36117. #, no-wrap
  36118. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-rational ratio-limit"
  36119. msgstr ""
  36120. #. type: deftypevr
  36121. #: guix-git/doc/guix.texi:24230
  36122. msgid "The ratio at which a torrent being seeded will be paused, when @code{ratio-limit-enabled?} is @code{#t}."
  36123. msgstr ""
  36124. #. type: deftypevr
  36125. #: guix-git/doc/guix.texi:24232
  36126. msgid "Defaults to @samp{2.0}."
  36127. msgstr ""
  36128. #. type: deftypevr
  36129. #: guix-git/doc/guix.texi:24235
  36130. #, no-wrap
  36131. msgid "{@code{transmission-daemon-configuration} parameter} boolean idle-seeding-limit-enabled?"
  36132. msgstr ""
  36133. #. type: deftypevr
  36134. #: guix-git/doc/guix.texi:24238
  36135. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it has been idle for @code{idle-seeding-limit} minutes."
  36136. msgstr ""
  36137. #. type: deftypevr
  36138. #: guix-git/doc/guix.texi:24243
  36139. #, no-wrap
  36140. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer idle-seeding-limit"
  36141. msgstr ""
  36142. #. type: deftypevr
  36143. #: guix-git/doc/guix.texi:24247
  36144. 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}."
  36145. msgstr ""
  36146. #. type: deftypevr
  36147. #: guix-git/doc/guix.texi:24252
  36148. #, no-wrap
  36149. msgid "{@code{transmission-daemon-configuration} parameter} boolean dht-enabled?"
  36150. msgstr ""
  36151. #. type: deftypevr
  36152. #: guix-git/doc/guix.texi:24256
  36153. msgid "Enable @uref{http://bittorrent.org/beps/bep_0005.html,the distributed hash table (@acronym{DHT}) protocol}, which supports the use of trackerless torrents."
  36154. msgstr ""
  36155. #. type: deftypevr
  36156. #: guix-git/doc/guix.texi:24261
  36157. #, no-wrap
  36158. msgid "{@code{transmission-daemon-configuration} parameter} boolean lpd-enabled?"
  36159. msgstr ""
  36160. #. type: deftypevr
  36161. #: guix-git/doc/guix.texi:24266
  36162. 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."
  36163. msgstr ""
  36164. #. type: deftypevr
  36165. #: guix-git/doc/guix.texi:24271
  36166. #, no-wrap
  36167. msgid "{@code{transmission-daemon-configuration} parameter} boolean pex-enabled?"
  36168. msgstr ""
  36169. #. type: deftypevr
  36170. #: guix-git/doc/guix.texi:24275
  36171. 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."
  36172. msgstr ""
  36173. #. type: deftypevr
  36174. #: guix-git/doc/guix.texi:24280
  36175. #, no-wrap
  36176. msgid "{@code{transmission-daemon-configuration} parameter} boolean utp-enabled?"
  36177. msgstr ""
  36178. #. type: deftypevr
  36179. #: guix-git/doc/guix.texi:24285
  36180. 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."
  36181. msgstr ""
  36182. #. type: deftypevr
  36183. #: guix-git/doc/guix.texi:24290
  36184. #, no-wrap
  36185. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-enabled?"
  36186. msgstr ""
  36187. #. type: deftypevr
  36188. #: guix-git/doc/guix.texi:24295
  36189. 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."
  36190. msgstr ""
  36191. #. type: deftypevr
  36192. #: guix-git/doc/guix.texi:24300
  36193. #, no-wrap
  36194. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-bind-address"
  36195. msgstr ""
  36196. #. type: deftypevr
  36197. #: guix-git/doc/guix.texi:24303
  36198. msgid "The IP address at which to listen for @acronym{RPC} connections, or ``0.0.0.0'' to listen at all available IP addresses."
  36199. msgstr ""
  36200. #. type: deftypevr
  36201. #: guix-git/doc/guix.texi:24308
  36202. #, no-wrap
  36203. msgid "{@code{transmission-daemon-configuration} parameter} port-number rpc-port"
  36204. msgstr ""
  36205. #. type: deftypevr
  36206. #: guix-git/doc/guix.texi:24310
  36207. msgid "The port on which to listen for @acronym{RPC} connections."
  36208. msgstr ""
  36209. #. type: deftypevr
  36210. #: guix-git/doc/guix.texi:24312
  36211. msgid "Defaults to @samp{9091}."
  36212. msgstr ""
  36213. #. type: deftypevr
  36214. #: guix-git/doc/guix.texi:24315
  36215. #, no-wrap
  36216. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-url"
  36217. msgstr ""
  36218. #. type: deftypevr
  36219. #: guix-git/doc/guix.texi:24317
  36220. msgid "The path prefix to use in the @acronym{RPC}-endpoint @acronym{URL}."
  36221. msgstr ""
  36222. #. type: deftypevr
  36223. #: guix-git/doc/guix.texi:24319
  36224. msgid "Defaults to @samp{\"/transmission/\"}."
  36225. msgstr ""
  36226. #. type: deftypevr
  36227. #: guix-git/doc/guix.texi:24322
  36228. #, no-wrap
  36229. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-authentication-required?"
  36230. msgstr ""
  36231. #. type: deftypevr
  36232. #: guix-git/doc/guix.texi:24327
  36233. 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?}."
  36234. msgstr ""
  36235. #. type: deftypevr
  36236. #: guix-git/doc/guix.texi:24332
  36237. #, no-wrap
  36238. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string rpc-username"
  36239. msgstr ""
  36240. #. type: deftypevr
  36241. #: guix-git/doc/guix.texi:24335
  36242. msgid "The username required by clients to access the @acronym{RPC} interface when @code{rpc-authentication-required?} is @code{#t}."
  36243. msgstr ""
  36244. #. type: deftypevr
  36245. #: guix-git/doc/guix.texi:24340
  36246. #, no-wrap
  36247. msgid "{@code{transmission-daemon-configuration} parameter} maybe-transmission-password-hash rpc-password"
  36248. msgstr ""
  36249. #. type: deftypevr
  36250. #: guix-git/doc/guix.texi:24346
  36251. 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."
  36252. msgstr ""
  36253. #. type: deftypevr
  36254. #: guix-git/doc/guix.texi:24351
  36255. #, no-wrap
  36256. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-whitelist-enabled?"
  36257. msgstr ""
  36258. #. type: deftypevr
  36259. #: guix-git/doc/guix.texi:24354
  36260. msgid "When @code{#t}, @acronym{RPC} requests will be accepted only when they originate from an address specified in @code{rpc-whitelist}."
  36261. msgstr ""
  36262. #. type: deftypevr
  36263. #: guix-git/doc/guix.texi:24359
  36264. #, no-wrap
  36265. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-whitelist"
  36266. msgstr ""
  36267. #. type: deftypevr
  36268. #: guix-git/doc/guix.texi:24363
  36269. 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{*}."
  36270. msgstr ""
  36271. #. type: deftypevr
  36272. #: guix-git/doc/guix.texi:24365
  36273. msgid "Defaults to @samp{(\"127.0.0.1\" \"::1\")}."
  36274. msgstr ""
  36275. #. type: deftypevr
  36276. #: guix-git/doc/guix.texi:24368
  36277. #, no-wrap
  36278. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-host-whitelist-enabled?"
  36279. msgstr ""
  36280. #. type: deftypevr
  36281. #: guix-git/doc/guix.texi:24373
  36282. 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."
  36283. msgstr ""
  36284. #. type: deftypevr
  36285. #: guix-git/doc/guix.texi:24376
  36286. msgid "Note also this functionality is disabled when @code{rpc-authentication-required?} is @code{#t}."
  36287. msgstr ""
  36288. #. type: deftypevr
  36289. #: guix-git/doc/guix.texi:24381
  36290. #, no-wrap
  36291. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-host-whitelist"
  36292. msgstr ""
  36293. #. type: deftypevr
  36294. #: guix-git/doc/guix.texi:24384
  36295. msgid "The list of host names recognized by the @acronym{RPC} server when @code{rpc-host-whitelist-enabled?} is @code{#t}."
  36296. msgstr ""
  36297. #. type: deftypevr
  36298. #: guix-git/doc/guix.texi:24389
  36299. #, no-wrap
  36300. msgid "{@code{transmission-daemon-configuration} parameter} message-level message-level"
  36301. msgstr ""
  36302. #. type: deftypevr
  36303. #: guix-git/doc/guix.texi:24393
  36304. 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}."
  36305. msgstr ""
  36306. #. type: deftypevr
  36307. #: guix-git/doc/guix.texi:24398
  36308. #, no-wrap
  36309. msgid "{@code{transmission-daemon-configuration} parameter} boolean start-added-torrents?"
  36310. msgstr ""
  36311. #. type: deftypevr
  36312. #: guix-git/doc/guix.texi:24401
  36313. msgid "When @code{#t}, torrents are started as soon as they are added; otherwise, they are added in ``paused'' state."
  36314. msgstr ""
  36315. #. type: deftypevr
  36316. #: guix-git/doc/guix.texi:24406
  36317. #, no-wrap
  36318. msgid "{@code{transmission-daemon-configuration} parameter} boolean script-torrent-done-enabled?"
  36319. msgstr ""
  36320. #. type: deftypevr
  36321. #: guix-git/doc/guix.texi:24410
  36322. msgid "When @code{#t}, the script specified by @code{script-torrent-done-filename} will be invoked each time a torrent completes."
  36323. msgstr ""
  36324. #. type: deftypevr
  36325. #: guix-git/doc/guix.texi:24415
  36326. #, no-wrap
  36327. msgid "{@code{transmission-daemon-configuration} parameter} maybe-file-object script-torrent-done-filename"
  36328. msgstr ""
  36329. #. type: deftypevr
  36330. #: guix-git/doc/guix.texi:24419
  36331. 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}."
  36332. msgstr ""
  36333. #. type: deftypevr
  36334. #: guix-git/doc/guix.texi:24424
  36335. #, no-wrap
  36336. msgid "{@code{transmission-daemon-configuration} parameter} boolean scrape-paused-torrents-enabled?"
  36337. msgstr ""
  36338. #. type: deftypevr
  36339. #: guix-git/doc/guix.texi:24427
  36340. msgid "When @code{#t}, the daemon will scrape trackers for a torrent even when the torrent is paused."
  36341. msgstr ""
  36342. #. type: deftypevr
  36343. #: guix-git/doc/guix.texi:24432
  36344. #, no-wrap
  36345. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer cache-size-mb"
  36346. msgstr ""
  36347. #. type: deftypevr
  36348. #: guix-git/doc/guix.texi:24436
  36349. 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."
  36350. msgstr ""
  36351. #. type: deftypevr
  36352. #: guix-git/doc/guix.texi:24438
  36353. msgid "Defaults to @samp{4}."
  36354. msgstr ""
  36355. #. type: deftypevr
  36356. #: guix-git/doc/guix.texi:24441
  36357. #, no-wrap
  36358. msgid "{@code{transmission-daemon-configuration} parameter} boolean prefetch-enabled?"
  36359. msgstr ""
  36360. #. type: deftypevr
  36361. #: guix-git/doc/guix.texi:24445
  36362. 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."
  36363. msgstr ""
  36364. #. type: subsubheading
  36365. #: guix-git/doc/guix.texi:24458
  36366. #, no-wrap
  36367. msgid "Tailon Service"
  36368. msgstr ""
  36369. #. type: Plain text
  36370. #: guix-git/doc/guix.texi:24462
  36371. msgid "@uref{https://tailon.readthedocs.io/, Tailon} is a web application for viewing and searching log files."
  36372. msgstr ""
  36373. #. type: Plain text
  36374. #: guix-git/doc/guix.texi:24465
  36375. msgid "The following example will configure the service with default values. By default, Tailon can be accessed on port 8080 (@code{http://localhost:8080})."
  36376. msgstr ""
  36377. #. type: lisp
  36378. #: guix-git/doc/guix.texi:24468
  36379. #, no-wrap
  36380. msgid "(service tailon-service-type)\n"
  36381. msgstr ""
  36382. #. type: Plain text
  36383. #: guix-git/doc/guix.texi:24472
  36384. msgid "The following example customises more of the Tailon configuration, adding @command{sed} to the list of allowed commands."
  36385. msgstr ""
  36386. #. type: lisp
  36387. #: guix-git/doc/guix.texi:24479
  36388. #, no-wrap
  36389. msgid ""
  36390. "(service tailon-service-type\n"
  36391. " (tailon-configuration\n"
  36392. " (config-file\n"
  36393. " (tailon-configuration-file\n"
  36394. " (allowed-commands '(\"tail\" \"grep\" \"awk\" \"sed\"))))))\n"
  36395. msgstr ""
  36396. #. type: deftp
  36397. #: guix-git/doc/guix.texi:24482
  36398. #, no-wrap
  36399. msgid "{Data Type} tailon-configuration"
  36400. msgstr ""
  36401. #. type: deftp
  36402. #: guix-git/doc/guix.texi:24485
  36403. msgid "Data type representing the configuration of Tailon. This type has the following parameters:"
  36404. msgstr ""
  36405. #. type: item
  36406. #: guix-git/doc/guix.texi:24487
  36407. #, no-wrap
  36408. msgid "@code{config-file} (default: @code{(tailon-configuration-file)})"
  36409. msgstr ""
  36410. #. type: table
  36411. #: guix-git/doc/guix.texi:24491
  36412. 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})."
  36413. msgstr ""
  36414. #. type: table
  36415. #: guix-git/doc/guix.texi:24494
  36416. msgid "For example, to instead use a local file, the @code{local-file} function can be used:"
  36417. msgstr ""
  36418. #. type: lisp
  36419. #: guix-git/doc/guix.texi:24499
  36420. #, no-wrap
  36421. msgid ""
  36422. "(service tailon-service-type\n"
  36423. " (tailon-configuration\n"
  36424. " (config-file (local-file \"./my-tailon.conf\"))))\n"
  36425. msgstr ""
  36426. #. type: item
  36427. #: guix-git/doc/guix.texi:24501
  36428. #, no-wrap
  36429. msgid "@code{package} (default: @code{tailon})"
  36430. msgstr ""
  36431. #. type: table
  36432. #: guix-git/doc/guix.texi:24503
  36433. msgid "The tailon package to use."
  36434. msgstr ""
  36435. #. type: deftp
  36436. #: guix-git/doc/guix.texi:24507
  36437. #, no-wrap
  36438. msgid "{Data Type} tailon-configuration-file"
  36439. msgstr ""
  36440. #. type: deftp
  36441. #: guix-git/doc/guix.texi:24510
  36442. msgid "Data type representing the configuration options for Tailon. This type has the following parameters:"
  36443. msgstr ""
  36444. #. type: item
  36445. #: guix-git/doc/guix.texi:24512
  36446. #, no-wrap
  36447. msgid "@code{files} (default: @code{(list \"/var/log\")})"
  36448. msgstr ""
  36449. #. type: table
  36450. #: guix-git/doc/guix.texi:24517
  36451. 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."
  36452. msgstr ""
  36453. #. type: item
  36454. #: guix-git/doc/guix.texi:24518
  36455. #, no-wrap
  36456. msgid "@code{bind} (default: @code{\"localhost:8080\"})"
  36457. msgstr ""
  36458. #. type: table
  36459. #: guix-git/doc/guix.texi:24520
  36460. msgid "Address and port to which Tailon should bind on."
  36461. msgstr ""
  36462. #. type: item
  36463. #: guix-git/doc/guix.texi:24521
  36464. #, no-wrap
  36465. msgid "@code{relative-root} (default: @code{#f})"
  36466. msgstr ""
  36467. #. type: table
  36468. #: guix-git/doc/guix.texi:24523
  36469. msgid "URL path to use for Tailon, set to @code{#f} to not use a path."
  36470. msgstr ""
  36471. #. type: item
  36472. #: guix-git/doc/guix.texi:24524
  36473. #, no-wrap
  36474. msgid "@code{allow-transfers?} (default: @code{#t})"
  36475. msgstr ""
  36476. #. type: table
  36477. #: guix-git/doc/guix.texi:24526
  36478. msgid "Allow downloading the log files in the web interface."
  36479. msgstr ""
  36480. #. type: item
  36481. #: guix-git/doc/guix.texi:24527
  36482. #, no-wrap
  36483. msgid "@code{follow-names?} (default: @code{#t})"
  36484. msgstr ""
  36485. #. type: table
  36486. #: guix-git/doc/guix.texi:24529
  36487. msgid "Allow tailing of not-yet existent files."
  36488. msgstr ""
  36489. #. type: item
  36490. #: guix-git/doc/guix.texi:24530
  36491. #, no-wrap
  36492. msgid "@code{tail-lines} (default: @code{200})"
  36493. msgstr ""
  36494. #. type: table
  36495. #: guix-git/doc/guix.texi:24532
  36496. msgid "Number of lines to read initially from each file."
  36497. msgstr ""
  36498. #. type: item
  36499. #: guix-git/doc/guix.texi:24533
  36500. #, no-wrap
  36501. msgid "@code{allowed-commands} (default: @code{(list \"tail\" \"grep\" \"awk\")})"
  36502. msgstr ""
  36503. #. type: table
  36504. #: guix-git/doc/guix.texi:24535
  36505. msgid "Commands to allow running. By default, @code{sed} is disabled."
  36506. msgstr ""
  36507. #. type: table
  36508. #: guix-git/doc/guix.texi:24538
  36509. msgid "Set @code{debug?} to @code{#t} to show debug messages."
  36510. msgstr ""
  36511. #. type: item
  36512. #: guix-git/doc/guix.texi:24539
  36513. #, no-wrap
  36514. msgid "@code{wrap-lines} (default: @code{#t})"
  36515. msgstr ""
  36516. #. type: table
  36517. #: guix-git/doc/guix.texi:24543
  36518. 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."
  36519. msgstr ""
  36520. #. type: item
  36521. #: guix-git/doc/guix.texi:24544
  36522. #, no-wrap
  36523. msgid "@code{http-auth} (default: @code{#f})"
  36524. msgstr ""
  36525. #. type: table
  36526. #: guix-git/doc/guix.texi:24548
  36527. msgid "HTTP authentication type to use. Set to @code{#f} to disable authentication (the default). Supported values are @code{\"digest\"} or @code{\"basic\"}."
  36528. msgstr ""
  36529. #. type: item
  36530. #: guix-git/doc/guix.texi:24549
  36531. #, no-wrap
  36532. msgid "@code{users} (default: @code{#f})"
  36533. msgstr ""
  36534. #. type: table
  36535. #: guix-git/doc/guix.texi:24554
  36536. 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."
  36537. msgstr ""
  36538. #. type: lisp
  36539. #: guix-git/doc/guix.texi:24560
  36540. #, no-wrap
  36541. msgid ""
  36542. "(tailon-configuration-file\n"
  36543. " (http-auth \"basic\")\n"
  36544. " (users '((\"user1\" . \"password1\")\n"
  36545. " (\"user2\" . \"password2\"))))\n"
  36546. msgstr ""
  36547. #. type: subsubheading
  36548. #: guix-git/doc/guix.texi:24566
  36549. #, no-wrap
  36550. msgid "Darkstat Service"
  36551. msgstr ""
  36552. #. type: cindex
  36553. #: guix-git/doc/guix.texi:24567
  36554. #, no-wrap
  36555. msgid "darkstat"
  36556. msgstr ""
  36557. #. type: Plain text
  36558. #: guix-git/doc/guix.texi:24570
  36559. msgid "Darkstat is a packet sniffer that captures network traffic, calculates statistics about usage, and serves reports over HTTP."
  36560. msgstr ""
  36561. #. type: defvar
  36562. #: guix-git/doc/guix.texi:24571
  36563. #, no-wrap
  36564. msgid "{Scheme Variable} darkstat-service-type"
  36565. msgstr ""
  36566. #. type: defvar
  36567. #: guix-git/doc/guix.texi:24576
  36568. 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:"
  36569. msgstr ""
  36570. #. type: lisp
  36571. #: guix-git/doc/guix.texi:24581
  36572. #, no-wrap
  36573. msgid ""
  36574. "(service darkstat-service-type\n"
  36575. " (darkstat-configuration\n"
  36576. " (interface \"eno1\")))\n"
  36577. msgstr ""
  36578. #. type: deftp
  36579. #: guix-git/doc/guix.texi:24584
  36580. #, no-wrap
  36581. msgid "{Data Type} darkstat-configuration"
  36582. msgstr ""
  36583. #. type: deftp
  36584. #: guix-git/doc/guix.texi:24586
  36585. msgid "Data type representing the configuration of @command{darkstat}."
  36586. msgstr ""
  36587. #. type: item
  36588. #: guix-git/doc/guix.texi:24588
  36589. #, no-wrap
  36590. msgid "@code{package} (default: @code{darkstat})"
  36591. msgstr ""
  36592. #. type: table
  36593. #: guix-git/doc/guix.texi:24590
  36594. msgid "The darkstat package to use."
  36595. msgstr ""
  36596. #. type: code{#1}
  36597. #: guix-git/doc/guix.texi:24591
  36598. #, no-wrap
  36599. msgid "interface"
  36600. msgstr ""
  36601. #. type: table
  36602. #: guix-git/doc/guix.texi:24593
  36603. msgid "Capture traffic on the specified network interface."
  36604. msgstr ""
  36605. #. type: item
  36606. #: guix-git/doc/guix.texi:24594
  36607. #, no-wrap
  36608. msgid "@code{port} (default: @code{\"667\"})"
  36609. msgstr ""
  36610. #. type: table
  36611. #: guix-git/doc/guix.texi:24596
  36612. msgid "Bind the web interface to the specified port."
  36613. msgstr ""
  36614. #. type: table
  36615. #: guix-git/doc/guix.texi:24599 guix-git/doc/guix.texi:24634
  36616. msgid "Bind the web interface to the specified address."
  36617. msgstr ""
  36618. #. type: item
  36619. #: guix-git/doc/guix.texi:24600
  36620. #, no-wrap
  36621. msgid "@code{base} (default: @code{\"/\"})"
  36622. msgstr ""
  36623. #. type: table
  36624. #: guix-git/doc/guix.texi:24603
  36625. msgid "Specify the path of the base URL@. This can be useful if @command{darkstat} is accessed via a reverse proxy."
  36626. msgstr ""
  36627. #. type: subsubheading
  36628. #: guix-git/doc/guix.texi:24607
  36629. #, no-wrap
  36630. msgid "Prometheus Node Exporter Service"
  36631. msgstr ""
  36632. #. type: cindex
  36633. #: guix-git/doc/guix.texi:24609
  36634. #, no-wrap
  36635. msgid "prometheus-node-exporter"
  36636. msgstr ""
  36637. #. type: Plain text
  36638. #: guix-git/doc/guix.texi:24614
  36639. 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."
  36640. msgstr ""
  36641. #. type: defvar
  36642. #: guix-git/doc/guix.texi:24615
  36643. #, no-wrap
  36644. msgid "{Scheme variable} prometheus-node-exporter-service-type"
  36645. msgstr ""
  36646. #. type: defvar
  36647. #: guix-git/doc/guix.texi:24619
  36648. 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}."
  36649. msgstr ""
  36650. #. type: lisp
  36651. #: guix-git/doc/guix.texi:24622
  36652. #, no-wrap
  36653. msgid "(service prometheus-node-exporter-service-type)\n"
  36654. msgstr ""
  36655. #. type: deftp
  36656. #: guix-git/doc/guix.texi:24625
  36657. #, no-wrap
  36658. msgid "{Data Type} prometheus-node-exporter-configuration"
  36659. msgstr ""
  36660. #. type: deftp
  36661. #: guix-git/doc/guix.texi:24627
  36662. msgid "Data type representing the configuration of @command{node_exporter}."
  36663. msgstr ""
  36664. #. type: item
  36665. #: guix-git/doc/guix.texi:24629
  36666. #, no-wrap
  36667. msgid "@code{package} (default: @code{go-github-com-prometheus-node-exporter})"
  36668. msgstr ""
  36669. #. type: table
  36670. #: guix-git/doc/guix.texi:24631
  36671. msgid "The prometheus-node-exporter package to use."
  36672. msgstr ""
  36673. #. type: item
  36674. #: guix-git/doc/guix.texi:24632
  36675. #, no-wrap
  36676. msgid "@code{web-listen-address} (default: @code{\":9100\"})"
  36677. msgstr ""
  36678. #. type: item
  36679. #: guix-git/doc/guix.texi:24635
  36680. #, fuzzy, no-wrap
  36681. msgid "@code{textfile-directory} (default: @code{\"/var/lib/prometheus/node-exporter\"})"
  36682. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  36683. #. type: table
  36684. #: guix-git/doc/guix.texi:24639
  36685. 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."
  36686. msgstr ""
  36687. #. type: table
  36688. #: guix-git/doc/guix.texi:24642
  36689. msgid "Extra options to pass to the Prometheus node exporter."
  36690. msgstr ""
  36691. #. type: subsubheading
  36692. #: guix-git/doc/guix.texi:24646
  36693. #, no-wrap
  36694. msgid "Zabbix server"
  36695. msgstr ""
  36696. #. type: cindex
  36697. #: guix-git/doc/guix.texi:24647
  36698. #, no-wrap
  36699. msgid "zabbix zabbix-server"
  36700. msgstr ""
  36701. #. type: Plain text
  36702. #: guix-git/doc/guix.texi:24650
  36703. msgid "Zabbix provides monitoring metrics, among others network utilization, CPU load and disk space consumption:"
  36704. msgstr ""
  36705. #. type: item
  36706. #: guix-git/doc/guix.texi:24652
  36707. #, no-wrap
  36708. msgid "High performance, high capacity (able to monitor hundreds of thousands of devices)."
  36709. msgstr ""
  36710. #. type: item
  36711. #: guix-git/doc/guix.texi:24653
  36712. #, no-wrap
  36713. msgid "Auto-discovery of servers and network devices and interfaces."
  36714. msgstr ""
  36715. #. type: item
  36716. #: guix-git/doc/guix.texi:24654
  36717. #, no-wrap
  36718. msgid "Low-level discovery, allows to automatically start monitoring new items, file systems or network interfaces among others."
  36719. msgstr ""
  36720. #. type: item
  36721. #: guix-git/doc/guix.texi:24655
  36722. #, no-wrap
  36723. msgid "Distributed monitoring with centralized web administration."
  36724. msgstr ""
  36725. #. type: item
  36726. #: guix-git/doc/guix.texi:24656
  36727. #, no-wrap
  36728. msgid "Native high performance agents."
  36729. msgstr ""
  36730. #. type: item
  36731. #: guix-git/doc/guix.texi:24657
  36732. #, no-wrap
  36733. msgid "SLA, and ITIL KPI metrics on reporting."
  36734. msgstr ""
  36735. #. type: item
  36736. #: guix-git/doc/guix.texi:24658
  36737. #, no-wrap
  36738. msgid "High-level (business) view of monitored resources through user-defined visual console screens and dashboards."
  36739. msgstr ""
  36740. #. type: item
  36741. #: guix-git/doc/guix.texi:24659
  36742. #, no-wrap
  36743. msgid "Remote command execution through Zabbix proxies."
  36744. msgstr ""
  36745. #. type: Plain text
  36746. #: guix-git/doc/guix.texi:24665
  36747. msgid "Available @code{zabbix-server-configuration} fields are:"
  36748. msgstr ""
  36749. #. type: deftypevr
  36750. #: guix-git/doc/guix.texi:24666
  36751. #, no-wrap
  36752. msgid "{@code{zabbix-server-configuration} parameter} package zabbix-server"
  36753. msgstr ""
  36754. #. type: deftypevr
  36755. #: guix-git/doc/guix.texi:24668
  36756. msgid "The zabbix-server package."
  36757. msgstr ""
  36758. #. type: deftypevr
  36759. #: guix-git/doc/guix.texi:24671
  36760. #, no-wrap
  36761. msgid "{@code{zabbix-server-configuration} parameter} string user"
  36762. msgstr ""
  36763. #. type: deftypevr
  36764. #: guix-git/doc/guix.texi:24673
  36765. msgid "User who will run the Zabbix server."
  36766. msgstr ""
  36767. #. type: deftypevr
  36768. #: guix-git/doc/guix.texi:24675 guix-git/doc/guix.texi:24682
  36769. #: guix-git/doc/guix.texi:24696 guix-git/doc/guix.texi:24703
  36770. #: guix-git/doc/guix.texi:24804 guix-git/doc/guix.texi:24811
  36771. #: guix-git/doc/guix.texi:24922 guix-git/doc/guix.texi:24929
  36772. msgid "Defaults to @samp{\"zabbix\"}."
  36773. msgstr ""
  36774. #. type: deftypevr
  36775. #: guix-git/doc/guix.texi:24678
  36776. #, no-wrap
  36777. msgid "{@code{zabbix-server-configuration} parameter} group group"
  36778. msgstr ""
  36779. #. type: deftypevr
  36780. #: guix-git/doc/guix.texi:24680
  36781. msgid "Group who will run the Zabbix server."
  36782. msgstr ""
  36783. #. type: deftypevr
  36784. #: guix-git/doc/guix.texi:24685
  36785. #, no-wrap
  36786. msgid "{@code{zabbix-server-configuration} parameter} string db-host"
  36787. msgstr ""
  36788. #. type: deftypevr
  36789. #: guix-git/doc/guix.texi:24687 guix-git/doc/guix.texi:24906
  36790. msgid "Database host name."
  36791. msgstr ""
  36792. #. type: deftypevr
  36793. #: guix-git/doc/guix.texi:24689
  36794. msgid "Defaults to @samp{\"127.0.0.1\"}."
  36795. msgstr ""
  36796. #. type: deftypevr
  36797. #: guix-git/doc/guix.texi:24692
  36798. #, no-wrap
  36799. msgid "{@code{zabbix-server-configuration} parameter} string db-name"
  36800. msgstr ""
  36801. #. type: deftypevr
  36802. #: guix-git/doc/guix.texi:24694 guix-git/doc/guix.texi:24920
  36803. msgid "Database name."
  36804. msgstr ""
  36805. #. type: deftypevr
  36806. #: guix-git/doc/guix.texi:24699
  36807. #, no-wrap
  36808. msgid "{@code{zabbix-server-configuration} parameter} string db-user"
  36809. msgstr ""
  36810. #. type: deftypevr
  36811. #: guix-git/doc/guix.texi:24701 guix-git/doc/guix.texi:24927
  36812. msgid "Database user."
  36813. msgstr ""
  36814. #. type: deftypevr
  36815. #: guix-git/doc/guix.texi:24706
  36816. #, no-wrap
  36817. msgid "{@code{zabbix-server-configuration} parameter} string db-password"
  36818. msgstr ""
  36819. #. type: deftypevr
  36820. #: guix-git/doc/guix.texi:24709
  36821. msgid "Database password. Please, use @code{include-files} with @code{DBPassword=SECRET} inside a specified file instead."
  36822. msgstr ""
  36823. #. type: deftypevr
  36824. #: guix-git/doc/guix.texi:24714
  36825. #, no-wrap
  36826. msgid "{@code{zabbix-server-configuration} parameter} number db-port"
  36827. msgstr ""
  36828. #. type: deftypevr
  36829. #: guix-git/doc/guix.texi:24716 guix-git/doc/guix.texi:24913
  36830. msgid "Database port."
  36831. msgstr ""
  36832. #. type: deftypevr
  36833. #: guix-git/doc/guix.texi:24718 guix-git/doc/guix.texi:24915
  36834. msgid "Defaults to @samp{5432}."
  36835. msgstr ""
  36836. #. type: deftypevr
  36837. #: guix-git/doc/guix.texi:24721
  36838. #, no-wrap
  36839. msgid "{@code{zabbix-server-configuration} parameter} string log-type"
  36840. msgstr ""
  36841. #. type: deftypevr
  36842. #: guix-git/doc/guix.texi:24723 guix-git/doc/guix.texi:24824
  36843. msgid "Specifies where log messages are written to:"
  36844. msgstr ""
  36845. #. type: itemize
  36846. #: guix-git/doc/guix.texi:24727 guix-git/doc/guix.texi:24828
  36847. msgid "@code{system} - syslog."
  36848. msgstr ""
  36849. #. type: itemize
  36850. #: guix-git/doc/guix.texi:24730 guix-git/doc/guix.texi:24831
  36851. msgid "@code{file} - file specified with @code{log-file} parameter."
  36852. msgstr ""
  36853. #. type: itemize
  36854. #: guix-git/doc/guix.texi:24733 guix-git/doc/guix.texi:24834
  36855. msgid "@code{console} - standard output."
  36856. msgstr ""
  36857. #. type: deftypevr
  36858. #: guix-git/doc/guix.texi:24740
  36859. #, no-wrap
  36860. msgid "{@code{zabbix-server-configuration} parameter} string log-file"
  36861. msgstr ""
  36862. #. type: deftypevr
  36863. #: guix-git/doc/guix.texi:24742 guix-git/doc/guix.texi:24843
  36864. msgid "Log file name for @code{log-type} @code{file} parameter."
  36865. msgstr ""
  36866. #. type: deftypevr
  36867. #: guix-git/doc/guix.texi:24744
  36868. msgid "Defaults to @samp{\"/var/log/zabbix/server.log\"}."
  36869. msgstr ""
  36870. #. type: deftypevr
  36871. #: guix-git/doc/guix.texi:24747
  36872. #, no-wrap
  36873. msgid "{@code{zabbix-server-configuration} parameter} string pid-file"
  36874. msgstr ""
  36875. #. type: deftypevr
  36876. #: guix-git/doc/guix.texi:24749 guix-git/doc/guix.texi:24850
  36877. msgid "Name of PID file."
  36878. msgstr ""
  36879. #. type: deftypevr
  36880. #: guix-git/doc/guix.texi:24751
  36881. msgid "Defaults to @samp{\"/var/run/zabbix/zabbix_server.pid\"}."
  36882. msgstr ""
  36883. #. type: deftypevr
  36884. #: guix-git/doc/guix.texi:24754
  36885. #, no-wrap
  36886. msgid "{@code{zabbix-server-configuration} parameter} string ssl-ca-location"
  36887. msgstr ""
  36888. #. type: deftypevr
  36889. #: guix-git/doc/guix.texi:24757
  36890. msgid "The location of certificate authority (CA) files for SSL server certificate verification."
  36891. msgstr ""
  36892. #. type: deftypevr
  36893. #: guix-git/doc/guix.texi:24759
  36894. msgid "Defaults to @samp{\"/etc/ssl/certs/ca-certificates.crt\"}."
  36895. msgstr ""
  36896. #. type: deftypevr
  36897. #: guix-git/doc/guix.texi:24762
  36898. #, no-wrap
  36899. msgid "{@code{zabbix-server-configuration} parameter} string ssl-cert-location"
  36900. msgstr ""
  36901. #. type: deftypevr
  36902. #: guix-git/doc/guix.texi:24764
  36903. msgid "Location of SSL client certificates."
  36904. msgstr ""
  36905. #. type: deftypevr
  36906. #: guix-git/doc/guix.texi:24766
  36907. msgid "Defaults to @samp{\"/etc/ssl/certs\"}."
  36908. msgstr ""
  36909. #. type: deftypevr
  36910. #: guix-git/doc/guix.texi:24769
  36911. #, no-wrap
  36912. msgid "{@code{zabbix-server-configuration} parameter} string extra-options"
  36913. msgstr ""
  36914. #. type: deftypevr
  36915. #: guix-git/doc/guix.texi:24771 guix-git/doc/guix.texi:24875
  36916. msgid "Extra options will be appended to Zabbix server configuration file."
  36917. msgstr ""
  36918. #. type: deftypevr
  36919. #: guix-git/doc/guix.texi:24776
  36920. #, no-wrap
  36921. msgid "{@code{zabbix-server-configuration} parameter} include-files include-files"
  36922. msgstr ""
  36923. #. type: deftypevr
  36924. #: guix-git/doc/guix.texi:24779 guix-git/doc/guix.texi:24883
  36925. msgid "You may include individual files or all files in a directory in the configuration file."
  36926. msgstr ""
  36927. #. type: subsubheading
  36928. #: guix-git/doc/guix.texi:24786
  36929. #, no-wrap
  36930. msgid "Zabbix agent"
  36931. msgstr ""
  36932. #. type: cindex
  36933. #: guix-git/doc/guix.texi:24787
  36934. #, no-wrap
  36935. msgid "zabbix zabbix-agent"
  36936. msgstr ""
  36937. #. type: Plain text
  36938. #: guix-git/doc/guix.texi:24790
  36939. msgid "Zabbix agent gathers information for Zabbix server."
  36940. msgstr ""
  36941. #. type: Plain text
  36942. #: guix-git/doc/guix.texi:24794
  36943. msgid "Available @code{zabbix-agent-configuration} fields are:"
  36944. msgstr ""
  36945. #. type: deftypevr
  36946. #: guix-git/doc/guix.texi:24795
  36947. #, no-wrap
  36948. msgid "{@code{zabbix-agent-configuration} parameter} package zabbix-agent"
  36949. msgstr ""
  36950. #. type: deftypevr
  36951. #: guix-git/doc/guix.texi:24797
  36952. msgid "The zabbix-agent package."
  36953. msgstr ""
  36954. #. type: deftypevr
  36955. #: guix-git/doc/guix.texi:24800
  36956. #, no-wrap
  36957. msgid "{@code{zabbix-agent-configuration} parameter} string user"
  36958. msgstr ""
  36959. #. type: deftypevr
  36960. #: guix-git/doc/guix.texi:24802
  36961. msgid "User who will run the Zabbix agent."
  36962. msgstr ""
  36963. #. type: deftypevr
  36964. #: guix-git/doc/guix.texi:24807
  36965. #, no-wrap
  36966. msgid "{@code{zabbix-agent-configuration} parameter} group group"
  36967. msgstr ""
  36968. #. type: deftypevr
  36969. #: guix-git/doc/guix.texi:24809
  36970. msgid "Group who will run the Zabbix agent."
  36971. msgstr ""
  36972. #. type: deftypevr
  36973. #: guix-git/doc/guix.texi:24814
  36974. #, no-wrap
  36975. msgid "{@code{zabbix-agent-configuration} parameter} string hostname"
  36976. msgstr ""
  36977. #. type: deftypevr
  36978. #: guix-git/doc/guix.texi:24817
  36979. msgid "Unique, case sensitive hostname which is required for active checks and must match hostname as configured on the server."
  36980. msgstr ""
  36981. #. type: deftypevr
  36982. #: guix-git/doc/guix.texi:24822
  36983. #, no-wrap
  36984. msgid "{@code{zabbix-agent-configuration} parameter} string log-type"
  36985. msgstr ""
  36986. #. type: deftypevr
  36987. #: guix-git/doc/guix.texi:24841
  36988. #, no-wrap
  36989. msgid "{@code{zabbix-agent-configuration} parameter} string log-file"
  36990. msgstr ""
  36991. #. type: deftypevr
  36992. #: guix-git/doc/guix.texi:24845
  36993. msgid "Defaults to @samp{\"/var/log/zabbix/agent.log\"}."
  36994. msgstr ""
  36995. #. type: deftypevr
  36996. #: guix-git/doc/guix.texi:24848
  36997. #, no-wrap
  36998. msgid "{@code{zabbix-agent-configuration} parameter} string pid-file"
  36999. msgstr ""
  37000. #. type: deftypevr
  37001. #: guix-git/doc/guix.texi:24852
  37002. msgid "Defaults to @samp{\"/var/run/zabbix/zabbix_agent.pid\"}."
  37003. msgstr ""
  37004. #. type: deftypevr
  37005. #: guix-git/doc/guix.texi:24855
  37006. #, no-wrap
  37007. msgid "{@code{zabbix-agent-configuration} parameter} list server"
  37008. msgstr ""
  37009. #. type: deftypevr
  37010. #: guix-git/doc/guix.texi:24859
  37011. 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."
  37012. msgstr ""
  37013. #. type: deftypevr
  37014. #: guix-git/doc/guix.texi:24861 guix-git/doc/guix.texi:24870
  37015. msgid "Defaults to @samp{(\"127.0.0.1\")}."
  37016. msgstr ""
  37017. #. type: deftypevr
  37018. #: guix-git/doc/guix.texi:24864
  37019. #, no-wrap
  37020. msgid "{@code{zabbix-agent-configuration} parameter} list server-active"
  37021. msgstr ""
  37022. #. type: deftypevr
  37023. #: guix-git/doc/guix.texi:24868
  37024. 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."
  37025. msgstr ""
  37026. #. type: deftypevr
  37027. #: guix-git/doc/guix.texi:24873
  37028. #, no-wrap
  37029. msgid "{@code{zabbix-agent-configuration} parameter} string extra-options"
  37030. msgstr ""
  37031. #. type: deftypevr
  37032. #: guix-git/doc/guix.texi:24880
  37033. #, no-wrap
  37034. msgid "{@code{zabbix-agent-configuration} parameter} include-files include-files"
  37035. msgstr ""
  37036. #. type: subsubheading
  37037. #: guix-git/doc/guix.texi:24890
  37038. #, no-wrap
  37039. msgid "Zabbix front-end"
  37040. msgstr ""
  37041. #. type: cindex
  37042. #: guix-git/doc/guix.texi:24891
  37043. #, no-wrap
  37044. msgid "zabbix zabbix-front-end"
  37045. msgstr ""
  37046. #. type: Plain text
  37047. #: guix-git/doc/guix.texi:24894
  37048. msgid "This service provides a WEB interface to Zabbix server."
  37049. msgstr ""
  37050. #. type: Plain text
  37051. #: guix-git/doc/guix.texi:24898
  37052. msgid "Available @code{zabbix-front-end-configuration} fields are:"
  37053. msgstr ""
  37054. #. type: deftypevr
  37055. #: guix-git/doc/guix.texi:24899
  37056. #, no-wrap
  37057. msgid "{@code{zabbix-front-end-configuration} parameter} nginx-server-configuration-list nginx"
  37058. msgstr ""
  37059. #. type: deftypevr
  37060. #: guix-git/doc/guix.texi:24901 guix-git/doc/guix.texi:31184
  37061. msgid "NGINX configuration."
  37062. msgstr ""
  37063. #. type: deftypevr
  37064. #: guix-git/doc/guix.texi:24904
  37065. #, no-wrap
  37066. msgid "{@code{zabbix-front-end-configuration} parameter} string db-host"
  37067. msgstr ""
  37068. #. type: deftypevr
  37069. #: guix-git/doc/guix.texi:24911
  37070. #, no-wrap
  37071. msgid "{@code{zabbix-front-end-configuration} parameter} number db-port"
  37072. msgstr ""
  37073. #. type: deftypevr
  37074. #: guix-git/doc/guix.texi:24918
  37075. #, no-wrap
  37076. msgid "{@code{zabbix-front-end-configuration} parameter} string db-name"
  37077. msgstr ""
  37078. #. type: deftypevr
  37079. #: guix-git/doc/guix.texi:24925
  37080. #, no-wrap
  37081. msgid "{@code{zabbix-front-end-configuration} parameter} string db-user"
  37082. msgstr ""
  37083. #. type: deftypevr
  37084. #: guix-git/doc/guix.texi:24932
  37085. #, no-wrap
  37086. msgid "{@code{zabbix-front-end-configuration} parameter} string db-password"
  37087. msgstr ""
  37088. #. type: deftypevr
  37089. #: guix-git/doc/guix.texi:24934
  37090. msgid "Database password. Please, use @code{db-secret-file} instead."
  37091. msgstr ""
  37092. #. type: deftypevr
  37093. #: guix-git/doc/guix.texi:24939
  37094. #, no-wrap
  37095. msgid "{@code{zabbix-front-end-configuration} parameter} string db-secret-file"
  37096. msgstr ""
  37097. #. type: deftypevr
  37098. #: guix-git/doc/guix.texi:24944
  37099. 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']}."
  37100. msgstr ""
  37101. #. type: deftypevr
  37102. #: guix-git/doc/guix.texi:24949
  37103. #, no-wrap
  37104. msgid "{@code{zabbix-front-end-configuration} parameter} string zabbix-host"
  37105. msgstr ""
  37106. #. type: deftypevr
  37107. #: guix-git/doc/guix.texi:24951
  37108. msgid "Zabbix server hostname."
  37109. msgstr ""
  37110. #. type: deftypevr
  37111. #: guix-git/doc/guix.texi:24956
  37112. #, no-wrap
  37113. msgid "{@code{zabbix-front-end-configuration} parameter} number zabbix-port"
  37114. msgstr ""
  37115. #. type: deftypevr
  37116. #: guix-git/doc/guix.texi:24958
  37117. msgid "Zabbix server port."
  37118. msgstr ""
  37119. #. type: deftypevr
  37120. #: guix-git/doc/guix.texi:24960
  37121. msgid "Defaults to @samp{10051}."
  37122. msgstr ""
  37123. #. type: cindex
  37124. #: guix-git/doc/guix.texi:24968
  37125. #, no-wrap
  37126. msgid "Kerberos"
  37127. msgstr ""
  37128. #. type: Plain text
  37129. #: guix-git/doc/guix.texi:24972
  37130. msgid "The @code{(gnu services kerberos)} module provides services relating to the authentication protocol @dfn{Kerberos}."
  37131. msgstr ""
  37132. #. type: subsubheading
  37133. #: guix-git/doc/guix.texi:24973
  37134. #, no-wrap
  37135. msgid "Krb5 Service"
  37136. msgstr ""
  37137. #. type: Plain text
  37138. #: guix-git/doc/guix.texi:24980
  37139. 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."
  37140. msgstr ""
  37141. #. type: Plain text
  37142. #: guix-git/doc/guix.texi:24984
  37143. 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."
  37144. msgstr ""
  37145. #. type: defvr
  37146. #: guix-git/doc/guix.texi:24985
  37147. #, no-wrap
  37148. msgid "{Scheme Variable} krb5-service-type"
  37149. msgstr ""
  37150. #. type: defvr
  37151. #: guix-git/doc/guix.texi:24987
  37152. msgid "A service type for Kerberos 5 clients."
  37153. msgstr ""
  37154. #. type: Plain text
  37155. #: guix-git/doc/guix.texi:24991
  37156. msgid "Here is an example of its use:"
  37157. msgstr ""
  37158. #. type: lisp
  37159. #: guix-git/doc/guix.texi:25005
  37160. #, no-wrap
  37161. msgid ""
  37162. "(service krb5-service-type\n"
  37163. " (krb5-configuration\n"
  37164. " (default-realm \"EXAMPLE.COM\")\n"
  37165. " (allow-weak-crypto? #t)\n"
  37166. " (realms (list\n"
  37167. " (krb5-realm\n"
  37168. " (name \"EXAMPLE.COM\")\n"
  37169. " (admin-server \"groucho.example.com\")\n"
  37170. " (kdc \"karl.example.com\"))\n"
  37171. " (krb5-realm\n"
  37172. " (name \"ARGRX.EDU\")\n"
  37173. " (admin-server \"kerb-admin.argrx.edu\")\n"
  37174. " (kdc \"keys.argrx.edu\"))))))\n"
  37175. msgstr ""
  37176. #. type: Plain text
  37177. #: guix-git/doc/guix.texi:25009
  37178. msgid "This example provides a Kerberos@tie{}5 client configuration which:"
  37179. msgstr ""
  37180. #. type: item
  37181. #: guix-git/doc/guix.texi:25010
  37182. #, no-wrap
  37183. msgid "Recognizes two realms, @i{viz:} ``EXAMPLE.COM'' and ``ARGRX.EDU'', both"
  37184. msgstr ""
  37185. #. type: itemize
  37186. #: guix-git/doc/guix.texi:25012
  37187. msgid "of which have distinct administration servers and key distribution centers;"
  37188. msgstr ""
  37189. #. type: item
  37190. #: guix-git/doc/guix.texi:25012
  37191. #, no-wrap
  37192. msgid "Will default to the realm ``EXAMPLE.COM'' if the realm is not explicitly"
  37193. msgstr ""
  37194. #. type: itemize
  37195. #: guix-git/doc/guix.texi:25014
  37196. msgid "specified by clients;"
  37197. msgstr ""
  37198. #. type: item
  37199. #: guix-git/doc/guix.texi:25014
  37200. #, no-wrap
  37201. msgid "Accepts services which only support encryption types known to be weak."
  37202. msgstr ""
  37203. #. type: Plain text
  37204. #: guix-git/doc/guix.texi:25022
  37205. 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."
  37206. msgstr ""
  37207. #. type: deftp
  37208. #: guix-git/doc/guix.texi:25024
  37209. #, no-wrap
  37210. msgid "{Data Type} krb5-realm"
  37211. msgstr ""
  37212. #. type: cindex
  37213. #: guix-git/doc/guix.texi:25025
  37214. #, no-wrap
  37215. msgid "realm, kerberos"
  37216. msgstr ""
  37217. #. type: table
  37218. #: guix-git/doc/guix.texi:25031
  37219. 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."
  37220. msgstr ""
  37221. #. type: code{#1}
  37222. #: guix-git/doc/guix.texi:25032
  37223. #, no-wrap
  37224. msgid "admin-server"
  37225. msgstr ""
  37226. #. type: table
  37227. #: guix-git/doc/guix.texi:25035
  37228. msgid "This field is a string identifying the host where the administration server is running."
  37229. msgstr ""
  37230. #. type: code{#1}
  37231. #: guix-git/doc/guix.texi:25036
  37232. #, no-wrap
  37233. msgid "kdc"
  37234. msgstr ""
  37235. #. type: table
  37236. #: guix-git/doc/guix.texi:25039
  37237. msgid "This field is a string identifying the key distribution center for the realm."
  37238. msgstr ""
  37239. #. type: deftp
  37240. #: guix-git/doc/guix.texi:25042
  37241. #, no-wrap
  37242. msgid "{Data Type} krb5-configuration"
  37243. msgstr ""
  37244. #. type: item
  37245. #: guix-git/doc/guix.texi:25045
  37246. #, no-wrap
  37247. msgid "@code{allow-weak-crypto?} (default: @code{#f})"
  37248. msgstr ""
  37249. #. type: table
  37250. #: guix-git/doc/guix.texi:25048
  37251. msgid "If this flag is @code{#t} then services which only offer encryption algorithms known to be weak will be accepted."
  37252. msgstr ""
  37253. #. type: item
  37254. #: guix-git/doc/guix.texi:25049
  37255. #, no-wrap
  37256. msgid "@code{default-realm} (default: @code{#f})"
  37257. msgstr ""
  37258. #. type: table
  37259. #: guix-git/doc/guix.texi:25056
  37260. 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}."
  37261. msgstr ""
  37262. #. type: code{#1}
  37263. #: guix-git/doc/guix.texi:25057
  37264. #, no-wrap
  37265. msgid "realms"
  37266. msgstr ""
  37267. #. type: table
  37268. #: guix-git/doc/guix.texi:25062
  37269. 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."
  37270. msgstr ""
  37271. #. type: subsubheading
  37272. #: guix-git/doc/guix.texi:25066
  37273. #, no-wrap
  37274. msgid "PAM krb5 Service"
  37275. msgstr ""
  37276. #. type: cindex
  37277. #: guix-git/doc/guix.texi:25067
  37278. #, no-wrap
  37279. msgid "pam-krb5"
  37280. msgstr ""
  37281. #. type: Plain text
  37282. #: guix-git/doc/guix.texi:25073
  37283. 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."
  37284. msgstr ""
  37285. #. type: defvr
  37286. #: guix-git/doc/guix.texi:25074
  37287. #, no-wrap
  37288. msgid "{Scheme Variable} pam-krb5-service-type"
  37289. msgstr ""
  37290. #. type: defvr
  37291. #: guix-git/doc/guix.texi:25076
  37292. msgid "A service type for the Kerberos 5 PAM module."
  37293. msgstr ""
  37294. #. type: deftp
  37295. #: guix-git/doc/guix.texi:25078
  37296. #, no-wrap
  37297. msgid "{Data Type} pam-krb5-configuration"
  37298. msgstr ""
  37299. #. type: deftp
  37300. #: guix-git/doc/guix.texi:25081
  37301. msgid "Data type representing the configuration of the Kerberos 5 PAM module. This type has the following parameters:"
  37302. msgstr ""
  37303. #. type: item
  37304. #: guix-git/doc/guix.texi:25082
  37305. #, no-wrap
  37306. msgid "@code{pam-krb5} (default: @code{pam-krb5})"
  37307. msgstr ""
  37308. #. type: table
  37309. #: guix-git/doc/guix.texi:25084
  37310. msgid "The pam-krb5 package to use."
  37311. msgstr ""
  37312. #. type: item
  37313. #: guix-git/doc/guix.texi:25085
  37314. #, no-wrap
  37315. msgid "@code{minimum-uid} (default: @code{1000})"
  37316. msgstr ""
  37317. #. type: table
  37318. #: guix-git/doc/guix.texi:25088
  37319. msgid "The smallest user ID for which Kerberos authentications should be attempted. Local accounts with lower values will silently fail to authenticate."
  37320. msgstr ""
  37321. #. type: cindex
  37322. #: guix-git/doc/guix.texi:25094
  37323. #, no-wrap
  37324. msgid "LDAP"
  37325. msgstr ""
  37326. #. type: cindex
  37327. #: guix-git/doc/guix.texi:25095
  37328. #, no-wrap
  37329. msgid "nslcd, LDAP service"
  37330. msgstr ""
  37331. #. type: Plain text
  37332. #: guix-git/doc/guix.texi:25102
  37333. 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."
  37334. msgstr ""
  37335. #. type: Plain text
  37336. #: guix-git/doc/guix.texi:25106
  37337. 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:"
  37338. msgstr ""
  37339. #. type: lisp
  37340. #: guix-git/doc/guix.texi:25129
  37341. #, no-wrap
  37342. msgid ""
  37343. "(use-service-modules authentication)\n"
  37344. "(use-modules (gnu system nss))\n"
  37345. "...\n"
  37346. "(operating-system\n"
  37347. " ...\n"
  37348. " (services\n"
  37349. " (cons*\n"
  37350. " (service nslcd-service-type)\n"
  37351. " (service dhcp-client-service-type)\n"
  37352. " %base-services))\n"
  37353. " (name-service-switch\n"
  37354. " (let ((services (list (name-service (name \"db\"))\n"
  37355. " (name-service (name \"files\"))\n"
  37356. " (name-service (name \"ldap\")))))\n"
  37357. " (name-service-switch\n"
  37358. " (inherit %mdns-host-lookup-nss)\n"
  37359. " (password services)\n"
  37360. " (shadow services)\n"
  37361. " (group services)\n"
  37362. " (netgroup services)\n"
  37363. " (gshadow services)))))\n"
  37364. msgstr ""
  37365. #. type: Plain text
  37366. #: guix-git/doc/guix.texi:25134
  37367. msgid "Available @code{nslcd-configuration} fields are:"
  37368. msgstr ""
  37369. #. type: deftypevr
  37370. #: guix-git/doc/guix.texi:25135
  37371. #, no-wrap
  37372. msgid "{@code{nslcd-configuration} parameter} package nss-pam-ldapd"
  37373. msgstr ""
  37374. #. type: deftypevr
  37375. #: guix-git/doc/guix.texi:25137
  37376. msgid "The @code{nss-pam-ldapd} package to use."
  37377. msgstr ""
  37378. #. type: deftypevr
  37379. #: guix-git/doc/guix.texi:25140
  37380. #, no-wrap
  37381. msgid "{@code{nslcd-configuration} parameter} maybe-number threads"
  37382. msgstr ""
  37383. #. type: deftypevr
  37384. #: guix-git/doc/guix.texi:25144
  37385. 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."
  37386. msgstr ""
  37387. #. type: deftypevr
  37388. #: guix-git/doc/guix.texi:25149
  37389. #, no-wrap
  37390. msgid "{@code{nslcd-configuration} parameter} string uid"
  37391. msgstr ""
  37392. #. type: deftypevr
  37393. #: guix-git/doc/guix.texi:25151
  37394. msgid "This specifies the user id with which the daemon should be run."
  37395. msgstr ""
  37396. #. type: deftypevr
  37397. #: guix-git/doc/guix.texi:25153 guix-git/doc/guix.texi:25160
  37398. msgid "Defaults to @samp{\"nslcd\"}."
  37399. msgstr ""
  37400. #. type: deftypevr
  37401. #: guix-git/doc/guix.texi:25156
  37402. #, no-wrap
  37403. msgid "{@code{nslcd-configuration} parameter} string gid"
  37404. msgstr ""
  37405. #. type: deftypevr
  37406. #: guix-git/doc/guix.texi:25158
  37407. msgid "This specifies the group id with which the daemon should be run."
  37408. msgstr ""
  37409. #. type: deftypevr
  37410. #: guix-git/doc/guix.texi:25163
  37411. #, no-wrap
  37412. msgid "{@code{nslcd-configuration} parameter} log-option log"
  37413. msgstr ""
  37414. #. type: deftypevr
  37415. #: guix-git/doc/guix.texi:25171
  37416. 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."
  37417. msgstr ""
  37418. #. type: deftypevr
  37419. #: guix-git/doc/guix.texi:25173
  37420. msgid "Defaults to @samp{(\"/var/log/nslcd\" info)}."
  37421. msgstr ""
  37422. #. type: deftypevr
  37423. #: guix-git/doc/guix.texi:25176
  37424. #, no-wrap
  37425. msgid "{@code{nslcd-configuration} parameter} list uri"
  37426. msgstr ""
  37427. #. type: deftypevr
  37428. #: guix-git/doc/guix.texi:25179
  37429. msgid "The list of LDAP server URIs. Normally, only the first server will be used with the following servers as fall-back."
  37430. msgstr ""
  37431. #. type: deftypevr
  37432. #: guix-git/doc/guix.texi:25181
  37433. msgid "Defaults to @samp{(\"ldap://localhost:389/\")}."
  37434. msgstr ""
  37435. #. type: deftypevr
  37436. #: guix-git/doc/guix.texi:25184
  37437. #, no-wrap
  37438. msgid "{@code{nslcd-configuration} parameter} maybe-string ldap-version"
  37439. msgstr ""
  37440. #. type: deftypevr
  37441. #: guix-git/doc/guix.texi:25187
  37442. msgid "The version of the LDAP protocol to use. The default is to use the maximum version supported by the LDAP library."
  37443. msgstr ""
  37444. #. type: deftypevr
  37445. #: guix-git/doc/guix.texi:25192
  37446. #, no-wrap
  37447. msgid "{@code{nslcd-configuration} parameter} maybe-string binddn"
  37448. msgstr ""
  37449. #. type: deftypevr
  37450. #: guix-git/doc/guix.texi:25195
  37451. msgid "Specifies the distinguished name with which to bind to the directory server for lookups. The default is to bind anonymously."
  37452. msgstr ""
  37453. #. type: deftypevr
  37454. #: guix-git/doc/guix.texi:25200
  37455. #, no-wrap
  37456. msgid "{@code{nslcd-configuration} parameter} maybe-string bindpw"
  37457. msgstr ""
  37458. #. type: deftypevr
  37459. #: guix-git/doc/guix.texi:25203
  37460. msgid "Specifies the credentials with which to bind. This option is only applicable when used with binddn."
  37461. msgstr ""
  37462. #. type: deftypevr
  37463. #: guix-git/doc/guix.texi:25208
  37464. #, no-wrap
  37465. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmoddn"
  37466. msgstr ""
  37467. #. type: deftypevr
  37468. #: guix-git/doc/guix.texi:25211
  37469. msgid "Specifies the distinguished name to use when the root user tries to modify a user's password using the PAM module."
  37470. msgstr ""
  37471. #. type: deftypevr
  37472. #: guix-git/doc/guix.texi:25216
  37473. #, no-wrap
  37474. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmodpw"
  37475. msgstr ""
  37476. #. type: deftypevr
  37477. #: guix-git/doc/guix.texi:25220
  37478. 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"
  37479. msgstr ""
  37480. #. type: deftypevr
  37481. #: guix-git/doc/guix.texi:25225
  37482. #, no-wrap
  37483. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-mech"
  37484. msgstr ""
  37485. #. type: deftypevr
  37486. #: guix-git/doc/guix.texi:25228
  37487. msgid "Specifies the SASL mechanism to be used when performing SASL authentication."
  37488. msgstr ""
  37489. #. type: deftypevr
  37490. #: guix-git/doc/guix.texi:25233
  37491. #, no-wrap
  37492. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-realm"
  37493. msgstr ""
  37494. #. type: deftypevr
  37495. #: guix-git/doc/guix.texi:25235
  37496. msgid "Specifies the SASL realm to be used when performing SASL authentication."
  37497. msgstr ""
  37498. #. type: deftypevr
  37499. #: guix-git/doc/guix.texi:25240
  37500. #, no-wrap
  37501. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authcid"
  37502. msgstr ""
  37503. #. type: deftypevr
  37504. #: guix-git/doc/guix.texi:25243
  37505. msgid "Specifies the authentication identity to be used when performing SASL authentication."
  37506. msgstr ""
  37507. #. type: deftypevr
  37508. #: guix-git/doc/guix.texi:25248
  37509. #, no-wrap
  37510. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authzid"
  37511. msgstr ""
  37512. #. type: deftypevr
  37513. #: guix-git/doc/guix.texi:25251
  37514. msgid "Specifies the authorization identity to be used when performing SASL authentication."
  37515. msgstr ""
  37516. #. type: deftypevr
  37517. #: guix-git/doc/guix.texi:25256
  37518. #, no-wrap
  37519. msgid "{@code{nslcd-configuration} parameter} maybe-boolean sasl-canonicalize?"
  37520. msgstr ""
  37521. #. type: deftypevr
  37522. #: guix-git/doc/guix.texi:25261
  37523. 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."
  37524. msgstr ""
  37525. #. type: deftypevr
  37526. #: guix-git/doc/guix.texi:25266
  37527. #, no-wrap
  37528. msgid "{@code{nslcd-configuration} parameter} maybe-string krb5-ccname"
  37529. msgstr ""
  37530. #. type: deftypevr
  37531. #: guix-git/doc/guix.texi:25268
  37532. msgid "Set the name for the GSS-API Kerberos credentials cache."
  37533. msgstr ""
  37534. #. type: deftypevr
  37535. #: guix-git/doc/guix.texi:25273
  37536. #, no-wrap
  37537. msgid "{@code{nslcd-configuration} parameter} string base"
  37538. msgstr ""
  37539. #. type: deftypevr
  37540. #: guix-git/doc/guix.texi:25275
  37541. msgid "The directory search base."
  37542. msgstr ""
  37543. #. type: deftypevr
  37544. #: guix-git/doc/guix.texi:25277
  37545. msgid "Defaults to @samp{\"dc=example,dc=com\"}."
  37546. msgstr ""
  37547. #. type: deftypevr
  37548. #: guix-git/doc/guix.texi:25280
  37549. #, no-wrap
  37550. msgid "{@code{nslcd-configuration} parameter} scope-option scope"
  37551. msgstr ""
  37552. #. type: deftypevr
  37553. #: guix-git/doc/guix.texi:25284
  37554. 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."
  37555. msgstr ""
  37556. #. type: deftypevr
  37557. #: guix-git/doc/guix.texi:25286
  37558. msgid "Defaults to @samp{(subtree)}."
  37559. msgstr ""
  37560. #. type: deftypevr
  37561. #: guix-git/doc/guix.texi:25289
  37562. #, no-wrap
  37563. msgid "{@code{nslcd-configuration} parameter} maybe-deref-option deref"
  37564. msgstr ""
  37565. #. type: deftypevr
  37566. #: guix-git/doc/guix.texi:25292
  37567. msgid "Specifies the policy for dereferencing aliases. The default policy is to never dereference aliases."
  37568. msgstr ""
  37569. #. type: deftypevr
  37570. #: guix-git/doc/guix.texi:25297
  37571. #, no-wrap
  37572. msgid "{@code{nslcd-configuration} parameter} maybe-boolean referrals"
  37573. msgstr ""
  37574. #. type: deftypevr
  37575. #: guix-git/doc/guix.texi:25300
  37576. msgid "Specifies whether automatic referral chasing should be enabled. The default behaviour is to chase referrals."
  37577. msgstr ""
  37578. #. type: deftypevr
  37579. #: guix-git/doc/guix.texi:25305
  37580. #, no-wrap
  37581. msgid "{@code{nslcd-configuration} parameter} list-of-map-entries maps"
  37582. msgstr ""
  37583. #. type: deftypevr
  37584. #: guix-git/doc/guix.texi:25310
  37585. 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."
  37586. msgstr ""
  37587. #. type: deftypevr
  37588. #: guix-git/doc/guix.texi:25315
  37589. #, no-wrap
  37590. msgid "{@code{nslcd-configuration} parameter} list-of-filter-entries filters"
  37591. msgstr ""
  37592. #. type: deftypevr
  37593. #: guix-git/doc/guix.texi:25318
  37594. msgid "A list of filters consisting of the name of a map to which the filter applies and an LDAP search filter expression."
  37595. msgstr ""
  37596. #. type: deftypevr
  37597. #: guix-git/doc/guix.texi:25323
  37598. #, no-wrap
  37599. msgid "{@code{nslcd-configuration} parameter} maybe-number bind-timelimit"
  37600. msgstr ""
  37601. #. type: deftypevr
  37602. #: guix-git/doc/guix.texi:25326
  37603. msgid "Specifies the time limit in seconds to use when connecting to the directory server. The default value is 10 seconds."
  37604. msgstr ""
  37605. #. type: deftypevr
  37606. #: guix-git/doc/guix.texi:25331
  37607. #, no-wrap
  37608. msgid "{@code{nslcd-configuration} parameter} maybe-number timelimit"
  37609. msgstr ""
  37610. #. type: deftypevr
  37611. #: guix-git/doc/guix.texi:25335
  37612. 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."
  37613. msgstr ""
  37614. #. type: deftypevr
  37615. #: guix-git/doc/guix.texi:25340
  37616. #, no-wrap
  37617. msgid "{@code{nslcd-configuration} parameter} maybe-number idle-timelimit"
  37618. msgstr ""
  37619. #. type: deftypevr
  37620. #: guix-git/doc/guix.texi:25344
  37621. 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."
  37622. msgstr ""
  37623. #. type: deftypevr
  37624. #: guix-git/doc/guix.texi:25349
  37625. #, no-wrap
  37626. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-sleeptime"
  37627. msgstr ""
  37628. #. type: deftypevr
  37629. #: guix-git/doc/guix.texi:25353
  37630. 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."
  37631. msgstr ""
  37632. #. type: deftypevr
  37633. #: guix-git/doc/guix.texi:25358
  37634. #, no-wrap
  37635. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-retrytime"
  37636. msgstr ""
  37637. #. type: deftypevr
  37638. #: guix-git/doc/guix.texi:25362
  37639. 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."
  37640. msgstr ""
  37641. #. type: deftypevr
  37642. #: guix-git/doc/guix.texi:25367
  37643. #, no-wrap
  37644. msgid "{@code{nslcd-configuration} parameter} maybe-ssl-option ssl"
  37645. msgstr ""
  37646. #. type: deftypevr
  37647. #: guix-git/doc/guix.texi:25371
  37648. 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."
  37649. msgstr ""
  37650. #. type: deftypevr
  37651. #: guix-git/doc/guix.texi:25376
  37652. #, no-wrap
  37653. msgid "{@code{nslcd-configuration} parameter} maybe-tls-reqcert-option tls-reqcert"
  37654. msgstr ""
  37655. #. type: deftypevr
  37656. #: guix-git/doc/guix.texi:25379
  37657. 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."
  37658. msgstr ""
  37659. #. type: deftypevr
  37660. #: guix-git/doc/guix.texi:25384
  37661. #, no-wrap
  37662. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertdir"
  37663. msgstr ""
  37664. #. type: deftypevr
  37665. #: guix-git/doc/guix.texi:25387
  37666. msgid "Specifies the directory containing X.509 certificates for peer authen‐ tication. This parameter is ignored when using GnuTLS."
  37667. msgstr ""
  37668. #. type: deftypevr
  37669. #: guix-git/doc/guix.texi:25392
  37670. #, no-wrap
  37671. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertfile"
  37672. msgstr ""
  37673. #. type: deftypevr
  37674. #: guix-git/doc/guix.texi:25394
  37675. msgid "Specifies the path to the X.509 certificate for peer authentication."
  37676. msgstr ""
  37677. #. type: deftypevr
  37678. #: guix-git/doc/guix.texi:25399
  37679. #, no-wrap
  37680. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-randfile"
  37681. msgstr ""
  37682. #. type: deftypevr
  37683. #: guix-git/doc/guix.texi:25402
  37684. msgid "Specifies the path to an entropy source. This parameter is ignored when using GnuTLS."
  37685. msgstr ""
  37686. #. type: deftypevr
  37687. #: guix-git/doc/guix.texi:25407
  37688. #, no-wrap
  37689. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-ciphers"
  37690. msgstr ""
  37691. #. type: deftypevr
  37692. #: guix-git/doc/guix.texi:25409
  37693. msgid "Specifies the ciphers to use for TLS as a string."
  37694. msgstr ""
  37695. #. type: deftypevr
  37696. #: guix-git/doc/guix.texi:25414
  37697. #, no-wrap
  37698. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cert"
  37699. msgstr ""
  37700. #. type: deftypevr
  37701. #: guix-git/doc/guix.texi:25417
  37702. msgid "Specifies the path to the file containing the local certificate for client TLS authentication."
  37703. msgstr ""
  37704. #. type: deftypevr
  37705. #: guix-git/doc/guix.texi:25422
  37706. #, no-wrap
  37707. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-key"
  37708. msgstr ""
  37709. #. type: deftypevr
  37710. #: guix-git/doc/guix.texi:25425
  37711. msgid "Specifies the path to the file containing the private key for client TLS authentication."
  37712. msgstr ""
  37713. #. type: deftypevr
  37714. #: guix-git/doc/guix.texi:25430
  37715. #, no-wrap
  37716. msgid "{@code{nslcd-configuration} parameter} maybe-number pagesize"
  37717. msgstr ""
  37718. #. type: deftypevr
  37719. #: guix-git/doc/guix.texi:25434
  37720. 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."
  37721. msgstr ""
  37722. #. type: deftypevr
  37723. #: guix-git/doc/guix.texi:25439
  37724. #, no-wrap
  37725. msgid "{@code{nslcd-configuration} parameter} maybe-ignore-users-option nss-initgroups-ignoreusers"
  37726. msgstr ""
  37727. #. type: deftypevr
  37728. #: guix-git/doc/guix.texi:25443
  37729. 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."
  37730. msgstr ""
  37731. #. type: deftypevr
  37732. #: guix-git/doc/guix.texi:25448
  37733. #, no-wrap
  37734. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-min-uid"
  37735. msgstr ""
  37736. #. type: deftypevr
  37737. #: guix-git/doc/guix.texi:25451
  37738. msgid "This option ensures that LDAP users with a numeric user id lower than the specified value are ignored."
  37739. msgstr ""
  37740. #. type: deftypevr
  37741. #: guix-git/doc/guix.texi:25456
  37742. #, no-wrap
  37743. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-uid-offset"
  37744. msgstr ""
  37745. #. type: deftypevr
  37746. #: guix-git/doc/guix.texi:25459
  37747. 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."
  37748. msgstr ""
  37749. #. type: deftypevr
  37750. #: guix-git/doc/guix.texi:25464
  37751. #, no-wrap
  37752. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-gid-offset"
  37753. msgstr ""
  37754. #. type: deftypevr
  37755. #: guix-git/doc/guix.texi:25467
  37756. 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."
  37757. msgstr ""
  37758. #. type: deftypevr
  37759. #: guix-git/doc/guix.texi:25472
  37760. #, no-wrap
  37761. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-nested-groups"
  37762. msgstr ""
  37763. #. type: deftypevr
  37764. #: guix-git/doc/guix.texi:25478
  37765. 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."
  37766. msgstr ""
  37767. #. type: deftypevr
  37768. #: guix-git/doc/guix.texi:25483
  37769. #, no-wrap
  37770. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-getgrent-skipmembers"
  37771. msgstr ""
  37772. #. type: deftypevr
  37773. #: guix-git/doc/guix.texi:25488
  37774. 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."
  37775. msgstr ""
  37776. #. type: deftypevr
  37777. #: guix-git/doc/guix.texi:25493
  37778. #, no-wrap
  37779. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-disable-enumeration"
  37780. msgstr ""
  37781. #. type: deftypevr
  37782. #: guix-git/doc/guix.texi:25499
  37783. 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."
  37784. msgstr ""
  37785. #. type: deftypevr
  37786. #: guix-git/doc/guix.texi:25504
  37787. #, no-wrap
  37788. msgid "{@code{nslcd-configuration} parameter} maybe-string validnames"
  37789. msgstr ""
  37790. #. type: deftypevr
  37791. #: guix-git/doc/guix.texi:25508
  37792. 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."
  37793. msgstr ""
  37794. #. type: deftypevr
  37795. #: guix-git/doc/guix.texi:25513
  37796. #, no-wrap
  37797. msgid "{@code{nslcd-configuration} parameter} maybe-boolean ignorecase"
  37798. msgstr ""
  37799. #. type: deftypevr
  37800. #: guix-git/doc/guix.texi:25518
  37801. 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."
  37802. msgstr ""
  37803. #. type: deftypevr
  37804. #: guix-git/doc/guix.texi:25523
  37805. #, no-wrap
  37806. msgid "{@code{nslcd-configuration} parameter} maybe-boolean pam-authc-ppolicy"
  37807. msgstr ""
  37808. #. type: deftypevr
  37809. #: guix-git/doc/guix.texi:25526
  37810. msgid "This option specifies whether password policy controls are requested and handled from the LDAP server when performing user authentication."
  37811. msgstr ""
  37812. #. type: deftypevr
  37813. #: guix-git/doc/guix.texi:25531
  37814. #, no-wrap
  37815. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authc-search"
  37816. msgstr ""
  37817. #. type: deftypevr
  37818. #: guix-git/doc/guix.texi:25537
  37819. 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."
  37820. msgstr ""
  37821. #. type: deftypevr
  37822. #: guix-git/doc/guix.texi:25542
  37823. #, no-wrap
  37824. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authz-search"
  37825. msgstr ""
  37826. #. type: deftypevr
  37827. #: guix-git/doc/guix.texi:25546
  37828. 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."
  37829. msgstr ""
  37830. #. type: deftypevr
  37831. #: guix-git/doc/guix.texi:25551
  37832. #, no-wrap
  37833. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-password-prohibit-message"
  37834. msgstr ""
  37835. #. type: deftypevr
  37836. #: guix-git/doc/guix.texi:25556
  37837. 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."
  37838. msgstr ""
  37839. #. type: deftypevr
  37840. #: guix-git/doc/guix.texi:25561
  37841. #, no-wrap
  37842. msgid "{@code{nslcd-configuration} parameter} list pam-services"
  37843. msgstr ""
  37844. #. type: deftypevr
  37845. #: guix-git/doc/guix.texi:25563
  37846. msgid "List of pam service names for which LDAP authentication should suffice."
  37847. msgstr ""
  37848. #. type: cindex
  37849. #: guix-git/doc/guix.texi:25574
  37850. #, no-wrap
  37851. msgid "web"
  37852. msgstr ""
  37853. #. type: cindex
  37854. #: guix-git/doc/guix.texi:25575
  37855. #, no-wrap
  37856. msgid "www"
  37857. msgstr ""
  37858. #. type: cindex
  37859. #: guix-git/doc/guix.texi:25576
  37860. #, no-wrap
  37861. msgid "HTTP"
  37862. msgstr ""
  37863. #. type: Plain text
  37864. #: guix-git/doc/guix.texi:25579
  37865. msgid "The @code{(gnu services web)} module provides the Apache HTTP Server, the nginx web server, and also a fastcgi wrapper daemon."
  37866. msgstr ""
  37867. #. type: subsubheading
  37868. #: guix-git/doc/guix.texi:25580
  37869. #, no-wrap
  37870. msgid "Apache HTTP Server"
  37871. msgstr ""
  37872. #. type: deffn
  37873. #: guix-git/doc/guix.texi:25582
  37874. #, no-wrap
  37875. msgid "{Scheme Variable} httpd-service-type"
  37876. msgstr ""
  37877. #. type: deffn
  37878. #: guix-git/doc/guix.texi:25586
  37879. 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."
  37880. msgstr ""
  37881. #. type: deffn
  37882. #: guix-git/doc/guix.texi:25588 guix-git/doc/guix.texi:25770
  37883. msgid "A simple example configuration is given below."
  37884. msgstr ""
  37885. #. type: lisp
  37886. #: guix-git/doc/guix.texi:25596
  37887. #, no-wrap
  37888. msgid ""
  37889. "(service httpd-service-type\n"
  37890. " (httpd-configuration\n"
  37891. " (config\n"
  37892. " (httpd-config-file\n"
  37893. " (server-name \"www.example.com\")\n"
  37894. " (document-root \"/srv/http/www.example.com\")))))\n"
  37895. msgstr ""
  37896. #. type: deffn
  37897. #: guix-git/doc/guix.texi:25600
  37898. msgid "Other services can also extend the @code{httpd-service-type} to add to the configuration."
  37899. msgstr ""
  37900. #. type: lisp
  37901. #: guix-git/doc/guix.texi:25609 guix-git/doc/guix.texi:25749
  37902. #, no-wrap
  37903. msgid ""
  37904. "(simple-service 'www.example.com-server httpd-service-type\n"
  37905. " (list\n"
  37906. " (httpd-virtualhost\n"
  37907. " \"*:80\"\n"
  37908. " (list (string-join '(\"ServerName www.example.com\"\n"
  37909. " \"DocumentRoot /srv/http/www.example.com\")\n"
  37910. " \"\\n\")))))\n"
  37911. msgstr ""
  37912. #. type: Plain text
  37913. #: guix-git/doc/guix.texi:25615
  37914. msgid "The details for the @code{httpd-configuration}, @code{httpd-module}, @code{httpd-config-file} and @code{httpd-virtualhost} record types are given below."
  37915. msgstr ""
  37916. #. type: deffn
  37917. #: guix-git/doc/guix.texi:25616
  37918. #, no-wrap
  37919. msgid "{Data Type} httpd-configuration"
  37920. msgstr ""
  37921. #. type: deffn
  37922. #: guix-git/doc/guix.texi:25618
  37923. msgid "This data type represents the configuration for the httpd service."
  37924. msgstr ""
  37925. #. type: item
  37926. #: guix-git/doc/guix.texi:25620
  37927. #, no-wrap
  37928. msgid "@code{package} (default: @code{httpd})"
  37929. msgstr ""
  37930. #. type: table
  37931. #: guix-git/doc/guix.texi:25622
  37932. msgid "The httpd package to use."
  37933. msgstr ""
  37934. #. type: item
  37935. #: guix-git/doc/guix.texi:25623 guix-git/doc/guix.texi:25712
  37936. #, no-wrap
  37937. msgid "@code{pid-file} (default: @code{\"/var/run/httpd\"})"
  37938. msgstr ""
  37939. #. type: table
  37940. #: guix-git/doc/guix.texi:25625
  37941. msgid "The pid file used by the shepherd-service."
  37942. msgstr ""
  37943. #. type: item
  37944. #: guix-git/doc/guix.texi:25626
  37945. #, no-wrap
  37946. msgid "@code{config} (default: @code{(httpd-config-file)})"
  37947. msgstr ""
  37948. #. type: table
  37949. #: guix-git/doc/guix.texi:25631
  37950. 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."
  37951. msgstr ""
  37952. #. type: deffn
  37953. #: guix-git/doc/guix.texi:25635
  37954. #, no-wrap
  37955. msgid "{Data Type} httpd-module"
  37956. msgstr ""
  37957. #. type: deffn
  37958. #: guix-git/doc/guix.texi:25637
  37959. msgid "This data type represents a module for the httpd service."
  37960. msgstr ""
  37961. #. type: table
  37962. #: guix-git/doc/guix.texi:25641
  37963. msgid "The name of the module."
  37964. msgstr ""
  37965. #. type: table
  37966. #: guix-git/doc/guix.texi:25647
  37967. 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\")}."
  37968. msgstr ""
  37969. #. type: defvr
  37970. #: guix-git/doc/guix.texi:25651
  37971. #, no-wrap
  37972. msgid "{Scheme Variable} %default-httpd-modules"
  37973. msgstr ""
  37974. #. type: defvr
  37975. #: guix-git/doc/guix.texi:25653
  37976. msgid "A default list of @code{httpd-module} objects."
  37977. msgstr ""
  37978. #. type: deffn
  37979. #: guix-git/doc/guix.texi:25655
  37980. #, no-wrap
  37981. msgid "{Data Type} httpd-config-file"
  37982. msgstr ""
  37983. #. type: deffn
  37984. #: guix-git/doc/guix.texi:25657
  37985. msgid "This data type represents a configuration file for the httpd service."
  37986. msgstr ""
  37987. #. type: item
  37988. #: guix-git/doc/guix.texi:25659
  37989. #, no-wrap
  37990. msgid "@code{modules} (default: @code{%default-httpd-modules})"
  37991. msgstr ""
  37992. #. type: table
  37993. #: guix-git/doc/guix.texi:25662
  37994. msgid "The modules to load. Additional modules can be added here, or loaded by additional configuration."
  37995. msgstr ""
  37996. #. type: table
  37997. #: guix-git/doc/guix.texi:25665
  37998. 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}:"
  37999. msgstr ""
  38000. #. type: lisp
  38001. #: guix-git/doc/guix.texi:25687
  38002. #, no-wrap
  38003. msgid ""
  38004. "(service httpd-service-type\n"
  38005. " (httpd-configuration\n"
  38006. " (config\n"
  38007. " (httpd-config-file\n"
  38008. " (modules (cons*\n"
  38009. " (httpd-module\n"
  38010. " (name \"proxy_module\")\n"
  38011. " (file \"modules/mod_proxy.so\"))\n"
  38012. " (httpd-module\n"
  38013. " (name \"proxy_fcgi_module\")\n"
  38014. " (file \"modules/mod_proxy_fcgi.so\"))\n"
  38015. " %default-httpd-modules))\n"
  38016. " (extra-config (list \"\\\n"
  38017. "<FilesMatch \\\\.php$>\n"
  38018. " SetHandler \\\"proxy:unix:/var/run/php-fpm.sock|fcgi://localhost/\\\"\n"
  38019. "</FilesMatch>\"))))))\n"
  38020. "(service php-fpm-service-type\n"
  38021. " (php-fpm-configuration\n"
  38022. " (socket \"/var/run/php-fpm.sock\")\n"
  38023. " (socket-group \"httpd\")))\n"
  38024. msgstr ""
  38025. #. type: item
  38026. #: guix-git/doc/guix.texi:25689
  38027. #, no-wrap
  38028. msgid "@code{server-root} (default: @code{httpd})"
  38029. msgstr ""
  38030. #. type: table
  38031. #: guix-git/doc/guix.texi:25693
  38032. 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."
  38033. msgstr ""
  38034. #. type: item
  38035. #: guix-git/doc/guix.texi:25694
  38036. #, no-wrap
  38037. msgid "@code{server-name} (default: @code{#f})"
  38038. msgstr ""
  38039. #. type: table
  38040. #: guix-git/doc/guix.texi:25698
  38041. msgid "The @code{ServerName} in the configuration file, used to specify the request scheme, hostname and port that the server uses to identify itself."
  38042. msgstr ""
  38043. #. type: table
  38044. #: guix-git/doc/guix.texi:25702
  38045. 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}."
  38046. msgstr ""
  38047. #. type: item
  38048. #: guix-git/doc/guix.texi:25703
  38049. #, no-wrap
  38050. msgid "@code{document-root} (default: @code{\"/srv/http\"})"
  38051. msgstr ""
  38052. #. type: table
  38053. #: guix-git/doc/guix.texi:25705
  38054. msgid "The @code{DocumentRoot} from which files will be served."
  38055. msgstr ""
  38056. #. type: item
  38057. #: guix-git/doc/guix.texi:25706
  38058. #, no-wrap
  38059. msgid "@code{listen} (default: @code{'(\"80\")})"
  38060. msgstr ""
  38061. #. type: table
  38062. #: guix-git/doc/guix.texi:25711
  38063. 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."
  38064. msgstr ""
  38065. #. type: table
  38066. #: guix-git/doc/guix.texi:25716
  38067. 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."
  38068. msgstr ""
  38069. #. type: item
  38070. #: guix-git/doc/guix.texi:25717
  38071. #, no-wrap
  38072. msgid "@code{error-log} (default: @code{\"/var/log/httpd/error_log\"})"
  38073. msgstr ""
  38074. #. type: table
  38075. #: guix-git/doc/guix.texi:25719
  38076. msgid "The @code{ErrorLog} to which the server will log errors."
  38077. msgstr ""
  38078. #. type: item
  38079. #: guix-git/doc/guix.texi:25720 guix-git/doc/guix.texi:26282
  38080. #, no-wrap
  38081. msgid "@code{user} (default: @code{\"httpd\"})"
  38082. msgstr ""
  38083. #. type: table
  38084. #: guix-git/doc/guix.texi:25722
  38085. msgid "The @code{User} which the server will answer requests as."
  38086. msgstr ""
  38087. #. type: item
  38088. #: guix-git/doc/guix.texi:25723
  38089. #, no-wrap
  38090. msgid "@code{group} (default: @code{\"httpd\"})"
  38091. msgstr ""
  38092. #. type: table
  38093. #: guix-git/doc/guix.texi:25725
  38094. msgid "The @code{Group} which the server will answer requests as."
  38095. msgstr ""
  38096. #. type: item
  38097. #: guix-git/doc/guix.texi:25726
  38098. #, no-wrap
  38099. msgid "@code{extra-config} (default: @code{(list \"TypesConfig etc/httpd/mime.types\")})"
  38100. msgstr ""
  38101. #. type: table
  38102. #: guix-git/doc/guix.texi:25729
  38103. msgid "A flat list of strings and G-expressions which will be added to the end of the configuration file."
  38104. msgstr ""
  38105. #. type: table
  38106. #: guix-git/doc/guix.texi:25732
  38107. msgid "Any values which the service is extended with will be appended to this list."
  38108. msgstr ""
  38109. #. type: deffn
  38110. #: guix-git/doc/guix.texi:25736
  38111. #, no-wrap
  38112. msgid "{Data Type} httpd-virtualhost"
  38113. msgstr ""
  38114. #. type: deffn
  38115. #: guix-git/doc/guix.texi:25738
  38116. msgid "This data type represents a virtualhost configuration block for the httpd service."
  38117. msgstr ""
  38118. #. type: deffn
  38119. #: guix-git/doc/guix.texi:25740
  38120. msgid "These should be added to the extra-config for the httpd-service."
  38121. msgstr ""
  38122. #. type: code{#1}
  38123. #: guix-git/doc/guix.texi:25752
  38124. #, no-wrap
  38125. msgid "addresses-and-ports"
  38126. msgstr ""
  38127. #. type: table
  38128. #: guix-git/doc/guix.texi:25754
  38129. msgid "The addresses and ports for the @code{VirtualHost} directive."
  38130. msgstr ""
  38131. #. type: code{#1}
  38132. #: guix-git/doc/guix.texi:25755
  38133. #, no-wrap
  38134. msgid "contents"
  38135. msgstr ""
  38136. #. type: table
  38137. #: guix-git/doc/guix.texi:25758
  38138. msgid "The contents of the @code{VirtualHost} directive, this should be a list of strings and G-expressions."
  38139. msgstr ""
  38140. #. type: subsubheading
  38141. #: guix-git/doc/guix.texi:25763
  38142. #, no-wrap
  38143. msgid "NGINX"
  38144. msgstr ""
  38145. #. type: deffn
  38146. #: guix-git/doc/guix.texi:25765
  38147. #, no-wrap
  38148. msgid "{Scheme Variable} nginx-service-type"
  38149. msgstr ""
  38150. #. type: deffn
  38151. #: guix-git/doc/guix.texi:25768
  38152. msgid "Service type for the @uref{https://nginx.org/,NGinx} web server. The value for this service type is a @code{<nginx-configuration>} record."
  38153. msgstr ""
  38154. #. type: lisp
  38155. #: guix-git/doc/guix.texi:25778 guix-git/doc/guix.texi:25832
  38156. #, no-wrap
  38157. msgid ""
  38158. "(service nginx-service-type\n"
  38159. " (nginx-configuration\n"
  38160. " (server-blocks\n"
  38161. " (list (nginx-server-configuration\n"
  38162. " (server-name '(\"www.example.com\"))\n"
  38163. " (root \"/srv/http/www.example.com\"))))))\n"
  38164. msgstr ""
  38165. #. type: deffn
  38166. #: guix-git/doc/guix.texi:25783
  38167. 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:"
  38168. msgstr ""
  38169. #. type: lisp
  38170. #: guix-git/doc/guix.texi:25789
  38171. #, no-wrap
  38172. msgid ""
  38173. "(simple-service 'my-extra-server nginx-service-type\n"
  38174. " (list (nginx-server-configuration\n"
  38175. " (root \"/srv/http/extra-website\")\n"
  38176. " (try-files (list \"$uri\" \"$uri/index.html\")))))\n"
  38177. msgstr ""
  38178. #. type: Plain text
  38179. #: guix-git/doc/guix.texi:25800
  38180. 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."
  38181. msgstr ""
  38182. #. type: deffn
  38183. #: guix-git/doc/guix.texi:25801
  38184. #, no-wrap
  38185. msgid "{Data Type} nginx-configuration"
  38186. msgstr ""
  38187. #. type: deffn
  38188. #: guix-git/doc/guix.texi:25805
  38189. 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."
  38190. msgstr ""
  38191. #. type: item
  38192. #: guix-git/doc/guix.texi:25807
  38193. #, no-wrap
  38194. msgid "@code{nginx} (default: @code{nginx})"
  38195. msgstr ""
  38196. #. type: table
  38197. #: guix-git/doc/guix.texi:25809
  38198. msgid "The nginx package to use."
  38199. msgstr ""
  38200. #. type: item
  38201. #: guix-git/doc/guix.texi:25810
  38202. #, no-wrap
  38203. msgid "@code{log-directory} (default: @code{\"/var/log/nginx\"})"
  38204. msgstr ""
  38205. #. type: table
  38206. #: guix-git/doc/guix.texi:25812
  38207. msgid "The directory to which NGinx will write log files."
  38208. msgstr ""
  38209. #. type: item
  38210. #: guix-git/doc/guix.texi:25813
  38211. #, no-wrap
  38212. msgid "@code{run-directory} (default: @code{\"/var/run/nginx\"})"
  38213. msgstr ""
  38214. #. type: table
  38215. #: guix-git/doc/guix.texi:25816
  38216. msgid "The directory in which NGinx will create a pid file, and write temporary files."
  38217. msgstr ""
  38218. #. type: item
  38219. #: guix-git/doc/guix.texi:25817
  38220. #, no-wrap
  38221. msgid "@code{server-blocks} (default: @code{'()})"
  38222. msgstr ""
  38223. #. type: table
  38224. #: guix-git/doc/guix.texi:25821
  38225. msgid "A list of @dfn{server blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-server-configuration>}."
  38226. msgstr ""
  38227. #. type: table
  38228. #: guix-git/doc/guix.texi:25825
  38229. 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."
  38230. msgstr ""
  38231. #. type: item
  38232. #: guix-git/doc/guix.texi:25834
  38233. #, no-wrap
  38234. msgid "@code{upstream-blocks} (default: @code{'()})"
  38235. msgstr ""
  38236. #. type: table
  38237. #: guix-git/doc/guix.texi:25838
  38238. msgid "A list of @dfn{upstream blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-upstream-configuration>}."
  38239. msgstr ""
  38240. #. type: table
  38241. #: guix-git/doc/guix.texi:25845
  38242. 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."
  38243. msgstr ""
  38244. #. type: lisp
  38245. #: guix-git/doc/guix.texi:25864
  38246. #, no-wrap
  38247. msgid ""
  38248. "(service\n"
  38249. " nginx-service-type\n"
  38250. " (nginx-configuration\n"
  38251. " (server-blocks\n"
  38252. " (list (nginx-server-configuration\n"
  38253. " (server-name '(\"www.example.com\"))\n"
  38254. " (root \"/srv/http/www.example.com\")\n"
  38255. " (locations\n"
  38256. " (list\n"
  38257. " (nginx-location-configuration\n"
  38258. " (uri \"/path1\")\n"
  38259. " (body '(\"proxy_pass http://server-proxy;\"))))))))\n"
  38260. " (upstream-blocks\n"
  38261. " (list (nginx-upstream-configuration\n"
  38262. " (name \"server-proxy\")\n"
  38263. " (servers (list \"server1.example.com\"\n"
  38264. " \"server2.example.com\")))))))\n"
  38265. msgstr ""
  38266. #. type: table
  38267. #: guix-git/doc/guix.texi:25872
  38268. 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."
  38269. msgstr ""
  38270. #. type: table
  38271. #: guix-git/doc/guix.texi:25876
  38272. 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."
  38273. msgstr ""
  38274. #. type: item
  38275. #: guix-git/doc/guix.texi:25877
  38276. #, no-wrap
  38277. msgid "@code{server-names-hash-bucket-size} (default: @code{#f})"
  38278. msgstr ""
  38279. #. type: table
  38280. #: guix-git/doc/guix.texi:25880
  38281. msgid "Bucket size for the server names hash tables, defaults to @code{#f} to use the size of the processors cache line."
  38282. msgstr ""
  38283. #. type: item
  38284. #: guix-git/doc/guix.texi:25881
  38285. #, no-wrap
  38286. msgid "@code{server-names-hash-bucket-max-size} (default: @code{#f})"
  38287. msgstr ""
  38288. #. type: table
  38289. #: guix-git/doc/guix.texi:25883
  38290. msgid "Maximum bucket size for the server names hash tables."
  38291. msgstr ""
  38292. #. type: table
  38293. #: guix-git/doc/guix.texi:25887
  38294. msgid "List of nginx dynamic modules to load. This should be a list of file names of loadable modules, as in this example:"
  38295. msgstr ""
  38296. #. type: lisp
  38297. #: guix-git/doc/guix.texi:25895
  38298. #, no-wrap
  38299. msgid ""
  38300. "(modules\n"
  38301. " (list\n"
  38302. " (file-append nginx-accept-language-module \"\\\n"
  38303. "/etc/nginx/modules/ngx_http_accept_language_module.so\")\n"
  38304. " (file-append nginx-lua-module \"\\\n"
  38305. "/etc/nginx/modules/ngx_http_lua_module.so\")))\n"
  38306. msgstr ""
  38307. #. type: item
  38308. #: guix-git/doc/guix.texi:25897
  38309. #, fuzzy, no-wrap
  38310. msgid "@code{lua-package-path} (default: @code{'()})"
  38311. msgstr "@code{features} (@code{'()})"
  38312. #. type: table
  38313. #: guix-git/doc/guix.texi:25900
  38314. msgid "List of nginx lua packages to load. This should be a list of package names of loadable lua modules, as in this example:"
  38315. msgstr ""
  38316. #. type: lisp
  38317. #: guix-git/doc/guix.texi:25907
  38318. #, no-wrap
  38319. msgid ""
  38320. "(lua-package-path (list lua-resty-core\n"
  38321. " lua-resty-lrucache\n"
  38322. " lua-resty-signal\n"
  38323. " lua-tablepool\n"
  38324. " lua-resty-shell))\n"
  38325. msgstr ""
  38326. #. type: item
  38327. #: guix-git/doc/guix.texi:25909
  38328. #, fuzzy, no-wrap
  38329. msgid "@code{lua-package-cpath} (default: @code{'()})"
  38330. msgstr "@code{features} (@code{'()})"
  38331. #. type: table
  38332. #: guix-git/doc/guix.texi:25912
  38333. 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:"
  38334. msgstr ""
  38335. #. type: lisp
  38336. #: guix-git/doc/guix.texi:25915
  38337. #, no-wrap
  38338. msgid "(lua-package-cpath (list lua-resty-signal))\n"
  38339. msgstr ""
  38340. #. type: item
  38341. #: guix-git/doc/guix.texi:25917
  38342. #, fuzzy, no-wrap
  38343. msgid "@code{global-directives} (default: @code{'((events . ()))})"
  38344. msgstr "@code{features} (@code{'()})"
  38345. #. type: table
  38346. #: guix-git/doc/guix.texi:25920
  38347. msgid "Association list of global directives for the top level of the nginx configuration. Values may themselves be association lists."
  38348. msgstr ""
  38349. #. type: lisp
  38350. #: guix-git/doc/guix.texi:25926
  38351. #, no-wrap
  38352. msgid ""
  38353. "(global-directives\n"
  38354. " `((worker_processes . 16)\n"
  38355. " (pcre_jit . on)\n"
  38356. " (events . ((worker_connections . 1024)))))\n"
  38357. msgstr ""
  38358. #. type: table
  38359. #: guix-git/doc/guix.texi:25931
  38360. msgid "Extra content for the @code{http} block. Should be string or a string valued G-expression."
  38361. msgstr ""
  38362. #. type: deftp
  38363. #: guix-git/doc/guix.texi:25935
  38364. #, no-wrap
  38365. msgid "{Data Type} nginx-server-configuration"
  38366. msgstr ""
  38367. #. type: deftp
  38368. #: guix-git/doc/guix.texi:25938
  38369. msgid "Data type representing the configuration of an nginx server block. This type has the following parameters:"
  38370. msgstr ""
  38371. #. type: item
  38372. #: guix-git/doc/guix.texi:25940
  38373. #, no-wrap
  38374. msgid "@code{listen} (default: @code{'(\"80\" \"443 ssl\")})"
  38375. msgstr ""
  38376. #. type: table
  38377. #: guix-git/doc/guix.texi:25945
  38378. 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:"
  38379. msgstr ""
  38380. #. type: lisp
  38381. #: guix-git/doc/guix.texi:25948
  38382. #, no-wrap
  38383. msgid "'(\"127.0.0.1:8000\" \"127.0.0.1\" \"8000\" \"*:8000\" \"localhost:8000\")\n"
  38384. msgstr ""
  38385. #. type: item
  38386. #: guix-git/doc/guix.texi:25950
  38387. #, no-wrap
  38388. msgid "@code{server-name} (default: @code{(list 'default)})"
  38389. msgstr ""
  38390. #. type: table
  38391. #: guix-git/doc/guix.texi:25953
  38392. msgid "A list of server names this server represents. @code{'default} represents the default server for connections matching no other server."
  38393. msgstr ""
  38394. #. type: item
  38395. #: guix-git/doc/guix.texi:25954
  38396. #, no-wrap
  38397. msgid "@code{root} (default: @code{\"/srv/http\"})"
  38398. msgstr ""
  38399. #. type: table
  38400. #: guix-git/doc/guix.texi:25956
  38401. msgid "Root of the website nginx will serve."
  38402. msgstr ""
  38403. #. type: item
  38404. #: guix-git/doc/guix.texi:25957
  38405. #, no-wrap
  38406. msgid "@code{locations} (default: @code{'()})"
  38407. msgstr ""
  38408. #. type: table
  38409. #: guix-git/doc/guix.texi:25961
  38410. msgid "A list of @dfn{nginx-location-configuration} or @dfn{nginx-named-location-configuration} records to use within this server block."
  38411. msgstr ""
  38412. #. type: item
  38413. #: guix-git/doc/guix.texi:25962
  38414. #, no-wrap
  38415. msgid "@code{index} (default: @code{(list \"index.html\")})"
  38416. msgstr ""
  38417. #. type: table
  38418. #: guix-git/doc/guix.texi:25965
  38419. 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."
  38420. msgstr ""
  38421. #. type: item
  38422. #: guix-git/doc/guix.texi:25966
  38423. #, no-wrap
  38424. msgid "@code{try-files} (default: @code{'()})"
  38425. msgstr ""
  38426. #. type: table
  38427. #: guix-git/doc/guix.texi:25969
  38428. 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."
  38429. msgstr ""
  38430. #. type: item
  38431. #: guix-git/doc/guix.texi:25970
  38432. #, no-wrap
  38433. msgid "@code{ssl-certificate} (default: @code{#f})"
  38434. msgstr ""
  38435. #. type: table
  38436. #: guix-git/doc/guix.texi:25973
  38437. 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."
  38438. msgstr ""
  38439. #. type: item
  38440. #: guix-git/doc/guix.texi:25974
  38441. #, no-wrap
  38442. msgid "@code{ssl-certificate-key} (default: @code{#f})"
  38443. msgstr ""
  38444. #. type: table
  38445. #: guix-git/doc/guix.texi:25977
  38446. 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."
  38447. msgstr ""
  38448. #. type: item
  38449. #: guix-git/doc/guix.texi:25978
  38450. #, no-wrap
  38451. msgid "@code{server-tokens?} (default: @code{#f})"
  38452. msgstr ""
  38453. #. type: table
  38454. #: guix-git/doc/guix.texi:25980
  38455. msgid "Whether the server should add its configuration to response."
  38456. msgstr ""
  38457. #. type: item
  38458. #: guix-git/doc/guix.texi:25981
  38459. #, no-wrap
  38460. msgid "@code{raw-content} (default: @code{'()})"
  38461. msgstr ""
  38462. #. type: table
  38463. #: guix-git/doc/guix.texi:25983
  38464. msgid "A list of raw lines added to the server block."
  38465. msgstr ""
  38466. #. type: deftp
  38467. #: guix-git/doc/guix.texi:25987
  38468. #, no-wrap
  38469. msgid "{Data Type} nginx-upstream-configuration"
  38470. msgstr ""
  38471. #. type: deftp
  38472. #: guix-git/doc/guix.texi:25990
  38473. msgid "Data type representing the configuration of an nginx @code{upstream} block. This type has the following parameters:"
  38474. msgstr ""
  38475. #. type: table
  38476. #: guix-git/doc/guix.texi:25994
  38477. msgid "Name for this group of servers."
  38478. msgstr ""
  38479. #. type: code{#1}
  38480. #: guix-git/doc/guix.texi:25995
  38481. #, no-wrap
  38482. msgid "servers"
  38483. msgstr ""
  38484. #. type: table
  38485. #: guix-git/doc/guix.texi:26002
  38486. 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."
  38487. msgstr ""
  38488. #. type: deftp
  38489. #: guix-git/doc/guix.texi:26006
  38490. #, no-wrap
  38491. msgid "{Data Type} nginx-location-configuration"
  38492. msgstr ""
  38493. #. type: deftp
  38494. #: guix-git/doc/guix.texi:26009
  38495. msgid "Data type representing the configuration of an nginx @code{location} block. This type has the following parameters:"
  38496. msgstr ""
  38497. #. type: table
  38498. #: guix-git/doc/guix.texi:26013
  38499. msgid "URI which this location block matches."
  38500. msgstr ""
  38501. #. type: anchor{#1}
  38502. #: guix-git/doc/guix.texi:26015
  38503. msgid "nginx-location-configuration body"
  38504. msgstr ""
  38505. #. type: code{#1}
  38506. #: guix-git/doc/guix.texi:26015 guix-git/doc/guix.texi:26036
  38507. #, no-wrap
  38508. msgid "body"
  38509. msgstr ""
  38510. #. type: table
  38511. #: guix-git/doc/guix.texi:26022
  38512. 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;\")}."
  38513. msgstr ""
  38514. #. type: deftp
  38515. #: guix-git/doc/guix.texi:26026
  38516. #, no-wrap
  38517. msgid "{Data Type} nginx-named-location-configuration"
  38518. msgstr ""
  38519. #. type: deftp
  38520. #: guix-git/doc/guix.texi:26031
  38521. 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:"
  38522. msgstr ""
  38523. #. type: table
  38524. #: guix-git/doc/guix.texi:26035
  38525. msgid "Name to identify this location block."
  38526. msgstr ""
  38527. #. type: table
  38528. #: guix-git/doc/guix.texi:26041
  38529. 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."
  38530. msgstr ""
  38531. #. type: subsubheading
  38532. #: guix-git/doc/guix.texi:26045
  38533. #, no-wrap
  38534. msgid "Varnish Cache"
  38535. msgstr ""
  38536. #. type: cindex
  38537. #: guix-git/doc/guix.texi:26046
  38538. #, no-wrap
  38539. msgid "Varnish"
  38540. msgstr ""
  38541. #. type: Plain text
  38542. #: guix-git/doc/guix.texi:26051
  38543. 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."
  38544. msgstr ""
  38545. #. type: defvr
  38546. #: guix-git/doc/guix.texi:26052
  38547. #, no-wrap
  38548. msgid "{Scheme Variable} varnish-service-type"
  38549. msgstr ""
  38550. #. type: defvr
  38551. #: guix-git/doc/guix.texi:26054
  38552. msgid "Service type for the Varnish daemon."
  38553. msgstr ""
  38554. #. type: deftp
  38555. #: guix-git/doc/guix.texi:26056
  38556. #, no-wrap
  38557. msgid "{Data Type} varnish-configuration"
  38558. msgstr ""
  38559. #. type: deftp
  38560. #: guix-git/doc/guix.texi:26059
  38561. msgid "Data type representing the @code{varnish} service configuration. This type has the following parameters:"
  38562. msgstr ""
  38563. #. type: item
  38564. #: guix-git/doc/guix.texi:26061
  38565. #, no-wrap
  38566. msgid "@code{package} (default: @code{varnish})"
  38567. msgstr ""
  38568. #. type: table
  38569. #: guix-git/doc/guix.texi:26063
  38570. msgid "The Varnish package to use."
  38571. msgstr ""
  38572. #. type: item
  38573. #: guix-git/doc/guix.texi:26064
  38574. #, no-wrap
  38575. msgid "@code{name} (default: @code{\"default\"})"
  38576. msgstr ""
  38577. #. type: table
  38578. #: guix-git/doc/guix.texi:26069
  38579. 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."
  38580. msgstr ""
  38581. #. type: table
  38582. #: guix-git/doc/guix.texi:26072
  38583. msgid "Pass the @code{-n} argument to other Varnish programs to connect to the named instance, e.g.@: @command{varnishncsa -n default}."
  38584. msgstr ""
  38585. #. type: item
  38586. #: guix-git/doc/guix.texi:26073
  38587. #, no-wrap
  38588. msgid "@code{backend} (default: @code{\"localhost:8080\"})"
  38589. msgstr ""
  38590. #. type: table
  38591. #: guix-git/doc/guix.texi:26075
  38592. msgid "The backend to use. This option has no effect if @code{vcl} is set."
  38593. msgstr ""
  38594. #. type: item
  38595. #: guix-git/doc/guix.texi:26076
  38596. #, no-wrap
  38597. msgid "@code{vcl} (default: #f)"
  38598. msgstr ""
  38599. #. type: table
  38600. #: guix-git/doc/guix.texi:26081
  38601. 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."
  38602. msgstr ""
  38603. #. type: table
  38604. #: guix-git/doc/guix.texi:26085
  38605. msgid "For example, to mirror @url{https://www.gnu.org,www.gnu.org} with VCL you can do something along these lines:"
  38606. msgstr ""
  38607. #. type: lisp
  38608. #: guix-git/doc/guix.texi:26091
  38609. #, no-wrap
  38610. msgid ""
  38611. "(define %gnu-mirror\n"
  38612. " (plain-file \"gnu.vcl\"\n"
  38613. " \"vcl 4.1;\n"
  38614. "backend gnu @{ .host = \\\"www.gnu.org\\\"; @}\"))\n"
  38615. "\n"
  38616. msgstr ""
  38617. #. type: lisp
  38618. #: guix-git/doc/guix.texi:26099
  38619. #, no-wrap
  38620. msgid ""
  38621. "(operating-system\n"
  38622. " ;; @dots{}\n"
  38623. " (services (cons (service varnish-service-type\n"
  38624. " (varnish-configuration\n"
  38625. " (listen '(\":80\"))\n"
  38626. " (vcl %gnu-mirror)))\n"
  38627. " %base-services)))\n"
  38628. msgstr ""
  38629. #. type: table
  38630. #: guix-git/doc/guix.texi:26103
  38631. msgid "The configuration of an already running Varnish instance can be inspected and changed using the @command{varnishadm} program."
  38632. msgstr ""
  38633. #. type: table
  38634. #: guix-git/doc/guix.texi:26107
  38635. 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."
  38636. msgstr ""
  38637. #. type: item
  38638. #: guix-git/doc/guix.texi:26108
  38639. #, no-wrap
  38640. msgid "@code{listen} (default: @code{'(\"localhost:80\")})"
  38641. msgstr ""
  38642. #. type: table
  38643. #: guix-git/doc/guix.texi:26110
  38644. msgid "List of addresses Varnish will listen on."
  38645. msgstr ""
  38646. #. type: item
  38647. #: guix-git/doc/guix.texi:26111
  38648. #, no-wrap
  38649. msgid "@code{storage} (default: @code{'(\"malloc,128m\")})"
  38650. msgstr ""
  38651. #. type: table
  38652. #: guix-git/doc/guix.texi:26113
  38653. msgid "List of storage backends that will be available in VCL."
  38654. msgstr ""
  38655. #. type: item
  38656. #: guix-git/doc/guix.texi:26114
  38657. #, no-wrap
  38658. msgid "@code{parameters} (default: @code{'()})"
  38659. msgstr ""
  38660. #. type: table
  38661. #: guix-git/doc/guix.texi:26116
  38662. msgid "List of run-time parameters in the form @code{'((\"parameter\" . \"value\"))}."
  38663. msgstr ""
  38664. #. type: table
  38665. #: guix-git/doc/guix.texi:26119
  38666. msgid "Additional arguments to pass to the @command{varnishd} process."
  38667. msgstr ""
  38668. #. type: cindex
  38669. #: guix-git/doc/guix.texi:26123 guix-git/doc/guix.texi:26124
  38670. #, no-wrap
  38671. msgid "Patchwork"
  38672. msgstr ""
  38673. #. type: Plain text
  38674. #: guix-git/doc/guix.texi:26127
  38675. msgid "Patchwork is a patch tracking system. It can collect patches sent to a mailing list, and display them in a web interface."
  38676. msgstr ""
  38677. #. type: defvr
  38678. #: guix-git/doc/guix.texi:26128
  38679. #, no-wrap
  38680. msgid "{Scheme Variable} patchwork-service-type"
  38681. msgstr ""
  38682. #. type: defvr
  38683. #: guix-git/doc/guix.texi:26130
  38684. #, fuzzy
  38685. msgid "Service type for Patchwork."
  38686. msgstr "分享你的工作。"
  38687. #. type: Plain text
  38688. #: guix-git/doc/guix.texi:26134
  38689. msgid "The following example is an example of a minimal service for Patchwork, for the @code{patchwork.example.com} domain."
  38690. msgstr ""
  38691. #. type: lisp
  38692. #: guix-git/doc/guix.texi:26154
  38693. #, no-wrap
  38694. msgid ""
  38695. "(service patchwork-service-type\n"
  38696. " (patchwork-configuration\n"
  38697. " (domain \"patchwork.example.com\")\n"
  38698. " (settings-module\n"
  38699. " (patchwork-settings-module\n"
  38700. " (allowed-hosts (list domain))\n"
  38701. " (default-from-email \"patchwork@@patchwork.example.com\")))\n"
  38702. " (getmail-retriever-config\n"
  38703. " (getmail-retriever-configuration\n"
  38704. " (type \"SimpleIMAPSSLRetriever\")\n"
  38705. " (server \"imap.example.com\")\n"
  38706. " (port 993)\n"
  38707. " (username \"patchwork\")\n"
  38708. " (password-command\n"
  38709. " (list (file-append coreutils \"/bin/cat\")\n"
  38710. " \"/etc/getmail-patchwork-imap-password\"))\n"
  38711. " (extra-parameters\n"
  38712. " '((mailboxes . (\"Patches\"))))))))\n"
  38713. "\n"
  38714. msgstr ""
  38715. #. type: Plain text
  38716. #: guix-git/doc/guix.texi:26160
  38717. msgid "There are three records for configuring the Patchwork service. The @code{<patchwork-configuration>} relates to the configuration for Patchwork within the HTTPD service."
  38718. msgstr ""
  38719. #. type: Plain text
  38720. #: guix-git/doc/guix.texi:26164
  38721. 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."
  38722. msgstr ""
  38723. #. type: Plain text
  38724. #: guix-git/doc/guix.texi:26168
  38725. msgid "For the @code{database-configuration} field within the @code{<patchwork-settings-module>}, the @code{<patchwork-database-configuration>} must be used."
  38726. msgstr ""
  38727. #. type: deftp
  38728. #: guix-git/doc/guix.texi:26169
  38729. #, no-wrap
  38730. msgid "{Data Type} patchwork-configuration"
  38731. msgstr ""
  38732. #. type: deftp
  38733. #: guix-git/doc/guix.texi:26172
  38734. msgid "Data type representing the Patchwork service configuration. This type has the following parameters:"
  38735. msgstr ""
  38736. #. type: item
  38737. #: guix-git/doc/guix.texi:26174
  38738. #, fuzzy, no-wrap
  38739. msgid "@code{patchwork} (default: @code{patchwork})"
  38740. msgstr "@code{mate}(默认值:@code{mate})"
  38741. #. type: table
  38742. #: guix-git/doc/guix.texi:26176
  38743. #, fuzzy
  38744. msgid "The Patchwork package to use."
  38745. msgstr "软件包数据类型。"
  38746. #. type: code{#1}
  38747. #: guix-git/doc/guix.texi:26177
  38748. #, no-wrap
  38749. msgid "domain"
  38750. msgstr ""
  38751. #. type: table
  38752. #: guix-git/doc/guix.texi:26180
  38753. msgid "The domain to use for Patchwork, this is used in the HTTPD service virtual host."
  38754. msgstr ""
  38755. #. type: code{#1}
  38756. #: guix-git/doc/guix.texi:26181
  38757. #, no-wrap
  38758. msgid "settings-module"
  38759. msgstr ""
  38760. #. type: table
  38761. #: guix-git/doc/guix.texi:26187
  38762. 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."
  38763. msgstr ""
  38764. #. type: item
  38765. #: guix-git/doc/guix.texi:26188
  38766. #, fuzzy, no-wrap
  38767. msgid "@code{static-path} (default: @code{\"/static/\"})"
  38768. msgstr "@code{mate}(默认值:@code{mate})"
  38769. #. type: table
  38770. #: guix-git/doc/guix.texi:26190
  38771. msgid "The path under which the HTTPD service should serve the static files."
  38772. msgstr ""
  38773. #. type: code{#1}
  38774. #: guix-git/doc/guix.texi:26191
  38775. #, no-wrap
  38776. msgid "getmail-retriever-config"
  38777. msgstr ""
  38778. #. type: table
  38779. #: guix-git/doc/guix.texi:26195
  38780. 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."
  38781. msgstr ""
  38782. #. type: deftp
  38783. #: guix-git/doc/guix.texi:26199
  38784. #, no-wrap
  38785. msgid "{Data Type} patchwork-settings-module"
  38786. msgstr ""
  38787. #. type: deftp
  38788. #: guix-git/doc/guix.texi:26204
  38789. 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:"
  38790. msgstr ""
  38791. #. type: item
  38792. #: guix-git/doc/guix.texi:26206
  38793. #, no-wrap
  38794. msgid "@code{database-configuration} (default: @code{(patchwork-database-configuration)})"
  38795. msgstr ""
  38796. #. type: table
  38797. #: guix-git/doc/guix.texi:26209
  38798. msgid "The database connection settings used for Patchwork. See the @code{<patchwork-database-configuration>} record type for more information."
  38799. msgstr ""
  38800. #. type: item
  38801. #: guix-git/doc/guix.texi:26210
  38802. #, fuzzy, no-wrap
  38803. msgid "@code{secret-key-file} (default: @code{\"/etc/patchwork/django-secret-key\"})"
  38804. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  38805. #. type: table
  38806. #: guix-git/doc/guix.texi:26213
  38807. msgid "Patchwork, as a Django web application uses a secret key for cryptographically signing values. This file should contain a unique unpredictable value."
  38808. msgstr ""
  38809. #. type: table
  38810. #: guix-git/doc/guix.texi:26216
  38811. msgid "If this file does not exist, it will be created and populated with a random value by the patchwork-setup shepherd service."
  38812. msgstr ""
  38813. #. type: table
  38814. #: guix-git/doc/guix.texi:26218
  38815. msgid "This setting relates to Django."
  38816. msgstr ""
  38817. #. type: code{#1}
  38818. #: guix-git/doc/guix.texi:26219
  38819. #, no-wrap
  38820. msgid "allowed-hosts"
  38821. msgstr ""
  38822. #. type: table
  38823. #: guix-git/doc/guix.texi:26222
  38824. msgid "A list of valid hosts for this Patchwork service. This should at least include the domain specified in the @code{<patchwork-configuration>} record."
  38825. msgstr ""
  38826. #. type: table
  38827. #: guix-git/doc/guix.texi:26224 guix-git/doc/guix.texi:26238
  38828. #: guix-git/doc/guix.texi:26244 guix-git/doc/guix.texi:26250
  38829. msgid "This is a Django setting."
  38830. msgstr ""
  38831. #. type: code{#1}
  38832. #: guix-git/doc/guix.texi:26225
  38833. #, no-wrap
  38834. msgid "default-from-email"
  38835. msgstr ""
  38836. #. type: table
  38837. #: guix-git/doc/guix.texi:26227
  38838. msgid "The email address from which Patchwork should send email by default."
  38839. msgstr ""
  38840. #. type: table
  38841. #: guix-git/doc/guix.texi:26229 guix-git/doc/guix.texi:26255
  38842. #: guix-git/doc/guix.texi:26260 guix-git/doc/guix.texi:26265
  38843. msgid "This is a Patchwork setting."
  38844. msgstr ""
  38845. #. type: item
  38846. #: guix-git/doc/guix.texi:26230
  38847. #, fuzzy, no-wrap
  38848. msgid "@code{static-url} (default: @code{#f})"
  38849. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38850. #. type: table
  38851. #: guix-git/doc/guix.texi:26233
  38852. 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{/}."
  38853. msgstr ""
  38854. #. type: table
  38855. #: guix-git/doc/guix.texi:26236
  38856. msgid "If the default value is used, the @code{static-path} value from the @code{<patchwork-configuration>} record will be used."
  38857. msgstr ""
  38858. #. type: item
  38859. #: guix-git/doc/guix.texi:26239
  38860. #, fuzzy, no-wrap
  38861. msgid "@code{admins} (default: @code{'()})"
  38862. msgstr "@code{includes}(默认值:@code{'()})"
  38863. #. type: table
  38864. #: guix-git/doc/guix.texi:26242
  38865. 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."
  38866. msgstr ""
  38867. #. type: table
  38868. #: guix-git/doc/guix.texi:26248
  38869. msgid "Whether to run Patchwork in debug mode. If set to @code{#t}, detailed error messages will be shown."
  38870. msgstr ""
  38871. #. type: item
  38872. #: guix-git/doc/guix.texi:26251
  38873. #, fuzzy, no-wrap
  38874. msgid "@code{enable-rest-api?} (default: @code{#t})"
  38875. msgstr "@code{challenge}(默认值:@code{#f})"
  38876. #. type: table
  38877. #: guix-git/doc/guix.texi:26253
  38878. msgid "Whether to enable the Patchwork REST API."
  38879. msgstr ""
  38880. #. type: item
  38881. #: guix-git/doc/guix.texi:26256
  38882. #, fuzzy, no-wrap
  38883. msgid "@code{enable-xmlrpc?} (default: @code{#t})"
  38884. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  38885. #. type: table
  38886. #: guix-git/doc/guix.texi:26258
  38887. msgid "Whether to enable the XML RPC API."
  38888. msgstr ""
  38889. #. type: item
  38890. #: guix-git/doc/guix.texi:26261
  38891. #, fuzzy, no-wrap
  38892. msgid "@code{force-https-links?} (default: @code{#t})"
  38893. msgstr "@code{challenge}(默认值:@code{#f})"
  38894. #. type: table
  38895. #: guix-git/doc/guix.texi:26263
  38896. msgid "Whether to use HTTPS links on Patchwork pages."
  38897. msgstr ""
  38898. #. type: table
  38899. #: guix-git/doc/guix.texi:26268
  38900. msgid "Extra code to place at the end of the Patchwork settings module."
  38901. msgstr ""
  38902. #. type: deftp
  38903. #: guix-git/doc/guix.texi:26272
  38904. #, no-wrap
  38905. msgid "{Data Type} patchwork-database-configuration"
  38906. msgstr ""
  38907. #. type: deftp
  38908. #: guix-git/doc/guix.texi:26274
  38909. msgid "Data type representing the database configuration for Patchwork."
  38910. msgstr ""
  38911. #. type: item
  38912. #: guix-git/doc/guix.texi:26276
  38913. #, fuzzy, no-wrap
  38914. msgid "@code{engine} (default: @code{\"django.db.backends.postgresql_psycopg2\"})"
  38915. msgstr "@code{gnome}(默认值:@code{gnome})"
  38916. #. type: table
  38917. #: guix-git/doc/guix.texi:26278
  38918. msgid "The database engine to use."
  38919. msgstr ""
  38920. #. type: item
  38921. #: guix-git/doc/guix.texi:26279
  38922. #, fuzzy, no-wrap
  38923. msgid "@code{name} (default: @code{\"patchwork\"})"
  38924. msgstr "@code{mate}(默认值:@code{mate})"
  38925. #. type: table
  38926. #: guix-git/doc/guix.texi:26281
  38927. #, fuzzy
  38928. msgid "The name of the database to use."
  38929. msgstr "远程机器的主机名。"
  38930. #. type: table
  38931. #: guix-git/doc/guix.texi:26284
  38932. msgid "The user to connect to the database as."
  38933. msgstr ""
  38934. #. type: item
  38935. #: guix-git/doc/guix.texi:26285
  38936. #, fuzzy, no-wrap
  38937. msgid "@code{password} (default: @code{\"\"})"
  38938. msgstr "@code{port}(默认值:@code{22})"
  38939. #. type: table
  38940. #: guix-git/doc/guix.texi:26287
  38941. msgid "The password to use when connecting to the database."
  38942. msgstr ""
  38943. #. type: item
  38944. #: guix-git/doc/guix.texi:26288
  38945. #, fuzzy, no-wrap
  38946. msgid "@code{host} (default: @code{\"\"})"
  38947. msgstr "@code{port}(默认值:@code{22})"
  38948. #. type: table
  38949. #: guix-git/doc/guix.texi:26290
  38950. msgid "The host to make the database connection to."
  38951. msgstr ""
  38952. #. type: item
  38953. #: guix-git/doc/guix.texi:26291
  38954. #, fuzzy, no-wrap
  38955. msgid "@code{port} (default: @code{\"\"})"
  38956. msgstr "@code{port}(默认值:@code{22})"
  38957. #. type: table
  38958. #: guix-git/doc/guix.texi:26293
  38959. msgid "The port on which to connect to the database."
  38960. msgstr ""
  38961. #. type: subsubheading
  38962. #: guix-git/doc/guix.texi:26297
  38963. #, no-wrap
  38964. msgid "Mumi"
  38965. msgstr ""
  38966. #. type: cindex
  38967. #: guix-git/doc/guix.texi:26299
  38968. #, fuzzy, no-wrap
  38969. msgid "Mumi, Debbugs Web interface"
  38970. msgstr "用户界面"
  38971. #. type: cindex
  38972. #: guix-git/doc/guix.texi:26300
  38973. #, fuzzy, no-wrap
  38974. msgid "Debbugs, Mumi Web interface"
  38975. msgstr "用户界面"
  38976. #. type: Plain text
  38977. #: guix-git/doc/guix.texi:26305
  38978. 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."
  38979. msgstr ""
  38980. #. type: defvr
  38981. #: guix-git/doc/guix.texi:26306
  38982. #, no-wrap
  38983. msgid "{Scheme Variable} mumi-service-type"
  38984. msgstr ""
  38985. #. type: defvr
  38986. #: guix-git/doc/guix.texi:26308
  38987. msgid "This is the service type for Mumi."
  38988. msgstr ""
  38989. #. type: deftp
  38990. #: guix-git/doc/guix.texi:26310
  38991. #, fuzzy, no-wrap
  38992. msgid "{Data Type} mumi-configuration"
  38993. msgstr "{数据类型} build-machine"
  38994. #. type: deftp
  38995. #: guix-git/doc/guix.texi:26313
  38996. msgid "Data type representing the Mumi service configuration. This type has the following fields:"
  38997. msgstr ""
  38998. #. type: item
  38999. #: guix-git/doc/guix.texi:26315
  39000. #, fuzzy, no-wrap
  39001. msgid "@code{mumi} (default: @code{mumi})"
  39002. msgstr "@code{mate}(默认值:@code{mate})"
  39003. #. type: table
  39004. #: guix-git/doc/guix.texi:26317
  39005. #, fuzzy
  39006. msgid "The Mumi package to use."
  39007. msgstr "软件包数据类型。"
  39008. #. type: item
  39009. #: guix-git/doc/guix.texi:26318
  39010. #, fuzzy, no-wrap
  39011. msgid "@code{mailer?} (default: @code{#true})"
  39012. msgstr "@code{mate}(默认值:@code{mate})"
  39013. #. type: table
  39014. #: guix-git/doc/guix.texi:26320
  39015. msgid "Whether to enable or disable the mailer component."
  39016. msgstr ""
  39017. #. type: code{#1}
  39018. #: guix-git/doc/guix.texi:26321
  39019. #, no-wrap
  39020. msgid "mumi-configuration-sender"
  39021. msgstr ""
  39022. #. type: table
  39023. #: guix-git/doc/guix.texi:26323
  39024. msgid "The email address used as the sender for comments."
  39025. msgstr ""
  39026. #. type: code{#1}
  39027. #: guix-git/doc/guix.texi:26324
  39028. #, fuzzy, no-wrap
  39029. msgid "mumi-configuration-smtp"
  39030. msgstr "系统配置"
  39031. #. type: table
  39032. #: guix-git/doc/guix.texi:26329
  39033. 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}."
  39034. msgstr ""
  39035. #. type: subsubheading
  39036. #: guix-git/doc/guix.texi:26334
  39037. #, no-wrap
  39038. msgid "FastCGI"
  39039. msgstr ""
  39040. #. type: cindex
  39041. #: guix-git/doc/guix.texi:26335
  39042. #, no-wrap
  39043. msgid "fastcgi"
  39044. msgstr ""
  39045. #. type: cindex
  39046. #: guix-git/doc/guix.texi:26336
  39047. #, no-wrap
  39048. msgid "fcgiwrap"
  39049. msgstr ""
  39050. #. type: Plain text
  39051. #: guix-git/doc/guix.texi:26343
  39052. 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."
  39053. msgstr ""
  39054. #. type: Plain text
  39055. #: guix-git/doc/guix.texi:26350
  39056. 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."
  39057. msgstr ""
  39058. #. type: defvr
  39059. #: guix-git/doc/guix.texi:26351
  39060. #, no-wrap
  39061. msgid "{Scheme Variable} fcgiwrap-service-type"
  39062. msgstr ""
  39063. #. type: defvr
  39064. #: guix-git/doc/guix.texi:26353
  39065. msgid "A service type for the @code{fcgiwrap} FastCGI proxy."
  39066. msgstr ""
  39067. #. type: deftp
  39068. #: guix-git/doc/guix.texi:26355
  39069. #, no-wrap
  39070. msgid "{Data Type} fcgiwrap-configuration"
  39071. msgstr ""
  39072. #. type: deftp
  39073. #: guix-git/doc/guix.texi:26358
  39074. msgid "Data type representing the configuration of the @code{fcgiwrap} service. This type has the following parameters:"
  39075. msgstr ""
  39076. #. type: item
  39077. #: guix-git/doc/guix.texi:26359
  39078. #, no-wrap
  39079. msgid "@code{package} (default: @code{fcgiwrap})"
  39080. msgstr ""
  39081. #. type: table
  39082. #: guix-git/doc/guix.texi:26361
  39083. msgid "The fcgiwrap package to use."
  39084. msgstr ""
  39085. #. type: item
  39086. #: guix-git/doc/guix.texi:26362
  39087. #, no-wrap
  39088. msgid "@code{socket} (default: @code{tcp:127.0.0.1:9000})"
  39089. msgstr ""
  39090. #. type: table
  39091. #: guix-git/doc/guix.texi:26368
  39092. 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}."
  39093. msgstr ""
  39094. #. type: item
  39095. #: guix-git/doc/guix.texi:26369
  39096. #, no-wrap
  39097. msgid "@code{user} (default: @code{fcgiwrap})"
  39098. msgstr ""
  39099. #. type: itemx
  39100. #: guix-git/doc/guix.texi:26370
  39101. #, no-wrap
  39102. msgid "@code{group} (default: @code{fcgiwrap})"
  39103. msgstr ""
  39104. #. type: table
  39105. #: guix-git/doc/guix.texi:26375
  39106. 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."
  39107. msgstr ""
  39108. #. type: table
  39109. #: guix-git/doc/guix.texi:26382
  39110. 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."
  39111. msgstr ""
  39112. #. type: cindex
  39113. #: guix-git/doc/guix.texi:26385
  39114. #, no-wrap
  39115. msgid "php-fpm"
  39116. msgstr ""
  39117. #. type: Plain text
  39118. #: guix-git/doc/guix.texi:26388
  39119. msgid "PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size."
  39120. msgstr ""
  39121. #. type: Plain text
  39122. #: guix-git/doc/guix.texi:26390
  39123. msgid "These features include:"
  39124. msgstr ""
  39125. #. type: item
  39126. #: guix-git/doc/guix.texi:26391
  39127. #, no-wrap
  39128. msgid "Adaptive process spawning"
  39129. msgstr ""
  39130. #. type: item
  39131. #: guix-git/doc/guix.texi:26392
  39132. #, no-wrap
  39133. msgid "Basic statistics (similar to Apache's mod_status)"
  39134. msgstr ""
  39135. #. type: item
  39136. #: guix-git/doc/guix.texi:26393
  39137. #, no-wrap
  39138. msgid "Advanced process management with graceful stop/start"
  39139. msgstr ""
  39140. #. type: item
  39141. #: guix-git/doc/guix.texi:26394
  39142. #, no-wrap
  39143. msgid "Ability to start workers with different uid/gid/chroot/environment"
  39144. msgstr ""
  39145. #. type: itemize
  39146. #: guix-git/doc/guix.texi:26396
  39147. msgid "and different php.ini (replaces safe_mode)"
  39148. msgstr ""
  39149. #. type: item
  39150. #: guix-git/doc/guix.texi:26396
  39151. #, no-wrap
  39152. msgid "Stdout & stderr logging"
  39153. msgstr ""
  39154. #. type: item
  39155. #: guix-git/doc/guix.texi:26397
  39156. #, no-wrap
  39157. msgid "Emergency restart in case of accidental opcode cache destruction"
  39158. msgstr ""
  39159. #. type: item
  39160. #: guix-git/doc/guix.texi:26398
  39161. #, no-wrap
  39162. msgid "Accelerated upload support"
  39163. msgstr ""
  39164. #. type: item
  39165. #: guix-git/doc/guix.texi:26399
  39166. #, no-wrap
  39167. msgid "Support for a \"slowlog\""
  39168. msgstr ""
  39169. #. type: item
  39170. #: guix-git/doc/guix.texi:26400
  39171. #, no-wrap
  39172. msgid "Enhancements to FastCGI, such as fastcgi_finish_request() -"
  39173. msgstr ""
  39174. #. type: itemize
  39175. #: guix-git/doc/guix.texi:26403
  39176. msgid "a special function to finish request & flush all data while continuing to do something time-consuming (video converting, stats processing, etc.)"
  39177. msgstr ""
  39178. #. type: Plain text
  39179. #: guix-git/doc/guix.texi:26405
  39180. msgid "...@: and much more."
  39181. msgstr ""
  39182. #. type: defvr
  39183. #: guix-git/doc/guix.texi:26406
  39184. #, no-wrap
  39185. msgid "{Scheme Variable} php-fpm-service-type"
  39186. msgstr ""
  39187. #. type: defvr
  39188. #: guix-git/doc/guix.texi:26408
  39189. msgid "A Service type for @code{php-fpm}."
  39190. msgstr ""
  39191. #. type: deftp
  39192. #: guix-git/doc/guix.texi:26410
  39193. #, no-wrap
  39194. msgid "{Data Type} php-fpm-configuration"
  39195. msgstr ""
  39196. #. type: deftp
  39197. #: guix-git/doc/guix.texi:26412
  39198. msgid "Data Type for php-fpm service configuration."
  39199. msgstr ""
  39200. #. type: item
  39201. #: guix-git/doc/guix.texi:26413
  39202. #, no-wrap
  39203. msgid "@code{php} (default: @code{php})"
  39204. msgstr ""
  39205. #. type: table
  39206. #: guix-git/doc/guix.texi:26415
  39207. msgid "The php package to use."
  39208. msgstr ""
  39209. #. type: item
  39210. #: guix-git/doc/guix.texi:26415
  39211. #, no-wrap
  39212. msgid "@code{socket} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.sock\")})"
  39213. msgstr ""
  39214. #. type: table
  39215. #: guix-git/doc/guix.texi:26417
  39216. msgid "The address on which to accept FastCGI requests. Valid syntaxes are:"
  39217. msgstr ""
  39218. #. type: code{#1}
  39219. #: guix-git/doc/guix.texi:26418
  39220. #, no-wrap
  39221. msgid "\"ip.add.re.ss:port\""
  39222. msgstr ""
  39223. #. type: table
  39224. #: guix-git/doc/guix.texi:26420
  39225. msgid "Listen on a TCP socket to a specific address on a specific port."
  39226. msgstr ""
  39227. #. type: code{#1}
  39228. #: guix-git/doc/guix.texi:26420
  39229. #, no-wrap
  39230. msgid "\"port\""
  39231. msgstr ""
  39232. #. type: table
  39233. #: guix-git/doc/guix.texi:26422
  39234. msgid "Listen on a TCP socket to all addresses on a specific port."
  39235. msgstr ""
  39236. #. type: code{#1}
  39237. #: guix-git/doc/guix.texi:26422
  39238. #, no-wrap
  39239. msgid "\"/path/to/unix/socket\""
  39240. msgstr ""
  39241. #. type: table
  39242. #: guix-git/doc/guix.texi:26424
  39243. msgid "Listen on a unix socket."
  39244. msgstr ""
  39245. #. type: item
  39246. #: guix-git/doc/guix.texi:26426
  39247. #, no-wrap
  39248. msgid "@code{user} (default: @code{php-fpm})"
  39249. msgstr ""
  39250. #. type: table
  39251. #: guix-git/doc/guix.texi:26428
  39252. msgid "User who will own the php worker processes."
  39253. msgstr ""
  39254. #. type: item
  39255. #: guix-git/doc/guix.texi:26428
  39256. #, no-wrap
  39257. msgid "@code{group} (default: @code{php-fpm})"
  39258. msgstr ""
  39259. #. type: table
  39260. #: guix-git/doc/guix.texi:26430
  39261. msgid "Group of the worker processes."
  39262. msgstr ""
  39263. #. type: item
  39264. #: guix-git/doc/guix.texi:26430
  39265. #, no-wrap
  39266. msgid "@code{socket-user} (default: @code{php-fpm})"
  39267. msgstr ""
  39268. #. type: table
  39269. #: guix-git/doc/guix.texi:26432
  39270. msgid "User who can speak to the php-fpm socket."
  39271. msgstr ""
  39272. #. type: item
  39273. #: guix-git/doc/guix.texi:26432
  39274. #, fuzzy, no-wrap
  39275. msgid "@code{socket-group} (default: @code{nginx})"
  39276. msgstr "@code{gnome}(默认值:@code{gnome})"
  39277. #. type: table
  39278. #: guix-git/doc/guix.texi:26434
  39279. msgid "Group that can speak to the php-fpm socket."
  39280. msgstr ""
  39281. #. type: item
  39282. #: guix-git/doc/guix.texi:26434
  39283. #, no-wrap
  39284. msgid "@code{pid-file} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.pid\")})"
  39285. msgstr ""
  39286. #. type: table
  39287. #: guix-git/doc/guix.texi:26437
  39288. msgid "The process id of the php-fpm process is written to this file once the service has started."
  39289. msgstr ""
  39290. #. type: item
  39291. #: guix-git/doc/guix.texi:26437
  39292. #, no-wrap
  39293. msgid "@code{log-file} (default: @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.log\")})"
  39294. msgstr ""
  39295. #. type: table
  39296. #: guix-git/doc/guix.texi:26439
  39297. msgid "Log for the php-fpm master process."
  39298. msgstr ""
  39299. #. type: item
  39300. #: guix-git/doc/guix.texi:26439
  39301. #, no-wrap
  39302. msgid "@code{process-manager} (default: @code{(php-fpm-dynamic-process-manager-configuration)})"
  39303. msgstr ""
  39304. #. type: table
  39305. #: guix-git/doc/guix.texi:26442
  39306. msgid "Detailed settings for the php-fpm process manager. Must be one of:"
  39307. msgstr ""
  39308. #. type: code{#1}
  39309. #: guix-git/doc/guix.texi:26443
  39310. #, no-wrap
  39311. msgid "<php-fpm-dynamic-process-manager-configuration>"
  39312. msgstr ""
  39313. #. type: code{#1}
  39314. #: guix-git/doc/guix.texi:26444
  39315. #, no-wrap
  39316. msgid "<php-fpm-static-process-manager-configuration>"
  39317. msgstr ""
  39318. #. type: code{#1}
  39319. #: guix-git/doc/guix.texi:26445
  39320. #, no-wrap
  39321. msgid "<php-fpm-on-demand-process-manager-configuration>"
  39322. msgstr ""
  39323. #. type: item
  39324. #: guix-git/doc/guix.texi:26447
  39325. #, no-wrap
  39326. msgid "@code{display-errors} (default @code{#f})"
  39327. msgstr ""
  39328. #. type: table
  39329. #: guix-git/doc/guix.texi:26452
  39330. 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."
  39331. msgstr ""
  39332. #. type: item
  39333. #: guix-git/doc/guix.texi:26452
  39334. #, no-wrap
  39335. msgid "@code{timezone} (default @code{#f})"
  39336. msgstr ""
  39337. #. type: table
  39338. #: guix-git/doc/guix.texi:26454
  39339. msgid "Specifies @code{php_admin_value[date.timezone]} parameter."
  39340. msgstr ""
  39341. #. type: item
  39342. #: guix-git/doc/guix.texi:26454
  39343. #, no-wrap
  39344. msgid "@code{workers-logfile} (default @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.www.log\")})"
  39345. msgstr ""
  39346. #. type: table
  39347. #: guix-git/doc/guix.texi:26457
  39348. msgid "This file will log the @code{stderr} outputs of php worker processes. Can be set to @code{#f} to disable logging."
  39349. msgstr ""
  39350. #. type: item
  39351. #: guix-git/doc/guix.texi:26457
  39352. #, no-wrap
  39353. msgid "@code{file} (default @code{#f})"
  39354. msgstr ""
  39355. #. type: table
  39356. #: guix-git/doc/guix.texi:26460
  39357. msgid "An optional override of the whole configuration. You can use the @code{mixed-text-file} function or an absolute filepath for it."
  39358. msgstr ""
  39359. #. type: item
  39360. #: guix-git/doc/guix.texi:26460
  39361. #, fuzzy, no-wrap
  39362. msgid "@code{php-ini-file} (default @code{#f})"
  39363. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  39364. #. type: table
  39365. #: guix-git/doc/guix.texi:26464
  39366. 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."
  39367. msgstr ""
  39368. #. type: table
  39369. #: guix-git/doc/guix.texi:26468
  39370. 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:"
  39371. msgstr ""
  39372. #. type: lisp
  39373. #: guix-git/doc/guix.texi:26473
  39374. #, no-wrap
  39375. msgid ""
  39376. "(define %local-php-ini\n"
  39377. " (plain-file \"php.ini\"\n"
  39378. " \"memory_limit = 2G\n"
  39379. "max_execution_time = 1800\"))\n"
  39380. "\n"
  39381. msgstr ""
  39382. #. type: lisp
  39383. #: guix-git/doc/guix.texi:26480
  39384. #, no-wrap
  39385. msgid ""
  39386. "(operating-system\n"
  39387. " ;; @dots{}\n"
  39388. " (services (cons (service php-fpm-service-type\n"
  39389. " (php-fpm-configuration\n"
  39390. " (php-ini-file %local-php-ini)))\n"
  39391. " %base-services)))\n"
  39392. msgstr ""
  39393. #. type: table
  39394. #: guix-git/doc/guix.texi:26485
  39395. 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."
  39396. msgstr ""
  39397. #. type: deftp
  39398. #: guix-git/doc/guix.texi:26488
  39399. #, no-wrap
  39400. msgid "{Data type} php-fpm-dynamic-process-manager-configuration"
  39401. msgstr ""
  39402. #. type: deftp
  39403. #: guix-git/doc/guix.texi:26492
  39404. 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."
  39405. msgstr ""
  39406. #. type: item
  39407. #: guix-git/doc/guix.texi:26493 guix-git/doc/guix.texi:26509
  39408. #: guix-git/doc/guix.texi:26519
  39409. #, no-wrap
  39410. msgid "@code{max-children} (default: @code{5})"
  39411. msgstr ""
  39412. #. type: table
  39413. #: guix-git/doc/guix.texi:26495 guix-git/doc/guix.texi:26511
  39414. #: guix-git/doc/guix.texi:26521
  39415. msgid "Maximum of worker processes."
  39416. msgstr ""
  39417. #. type: item
  39418. #: guix-git/doc/guix.texi:26495
  39419. #, no-wrap
  39420. msgid "@code{start-servers} (default: @code{2})"
  39421. msgstr ""
  39422. #. type: table
  39423. #: guix-git/doc/guix.texi:26497
  39424. msgid "How many worker processes should be started on start-up."
  39425. msgstr ""
  39426. #. type: item
  39427. #: guix-git/doc/guix.texi:26497
  39428. #, no-wrap
  39429. msgid "@code{min-spare-servers} (default: @code{1})"
  39430. msgstr ""
  39431. #. type: table
  39432. #: guix-git/doc/guix.texi:26499
  39433. msgid "How many spare worker processes should be kept around at minimum."
  39434. msgstr ""
  39435. #. type: item
  39436. #: guix-git/doc/guix.texi:26499
  39437. #, no-wrap
  39438. msgid "@code{max-spare-servers} (default: @code{3})"
  39439. msgstr ""
  39440. #. type: table
  39441. #: guix-git/doc/guix.texi:26501
  39442. msgid "How many spare worker processes should be kept around at maximum."
  39443. msgstr ""
  39444. #. type: deftp
  39445. #: guix-git/doc/guix.texi:26504
  39446. #, no-wrap
  39447. msgid "{Data type} php-fpm-static-process-manager-configuration"
  39448. msgstr ""
  39449. #. type: deftp
  39450. #: guix-git/doc/guix.texi:26508
  39451. 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."
  39452. msgstr ""
  39453. #. type: deftp
  39454. #: guix-git/doc/guix.texi:26514
  39455. #, no-wrap
  39456. msgid "{Data type} php-fpm-on-demand-process-manager-configuration"
  39457. msgstr ""
  39458. #. type: deftp
  39459. #: guix-git/doc/guix.texi:26518
  39460. 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."
  39461. msgstr ""
  39462. #. type: item
  39463. #: guix-git/doc/guix.texi:26521
  39464. #, no-wrap
  39465. msgid "@code{process-idle-timeout} (default: @code{10})"
  39466. msgstr ""
  39467. #. type: table
  39468. #: guix-git/doc/guix.texi:26523
  39469. msgid "The time in seconds after which a process with no requests is killed."
  39470. msgstr ""
  39471. #. type: deffn
  39472. #: guix-git/doc/guix.texi:26527
  39473. #, no-wrap
  39474. msgid "{Scheme Procedure} nginx-php-location @"
  39475. msgstr ""
  39476. #. type: deffn
  39477. #: guix-git/doc/guix.texi:26533
  39478. 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}."
  39479. msgstr ""
  39480. #. type: Plain text
  39481. #: guix-git/doc/guix.texi:26536
  39482. msgid "A simple services setup for nginx with php can look like this:"
  39483. msgstr ""
  39484. #. type: lisp
  39485. #: guix-git/doc/guix.texi:26549
  39486. #, no-wrap
  39487. msgid ""
  39488. "(services (cons* (service dhcp-client-service-type)\n"
  39489. " (service php-fpm-service-type)\n"
  39490. " (service nginx-service-type\n"
  39491. " (nginx-server-configuration\n"
  39492. " (server-name '(\"example.com\"))\n"
  39493. " (root \"/srv/http/\")\n"
  39494. " (locations\n"
  39495. " (list (nginx-php-location)))\n"
  39496. " (listen '(\"80\"))\n"
  39497. " (ssl-certificate #f)\n"
  39498. " (ssl-certificate-key #f)))\n"
  39499. " %base-services))\n"
  39500. msgstr ""
  39501. #. type: cindex
  39502. #: guix-git/doc/guix.texi:26551
  39503. #, no-wrap
  39504. msgid "cat-avatar-generator"
  39505. msgstr ""
  39506. #. type: Plain text
  39507. #: guix-git/doc/guix.texi:26555
  39508. 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."
  39509. msgstr ""
  39510. #. type: deffn
  39511. #: guix-git/doc/guix.texi:26556
  39512. #, no-wrap
  39513. msgid "{Scheme Procedure} cat-avatar-generator-service @"
  39514. msgstr ""
  39515. #. type: deffn
  39516. #: guix-git/doc/guix.texi:26564
  39517. 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."
  39518. msgstr ""
  39519. #. type: Plain text
  39520. #: guix-git/doc/guix.texi:26567
  39521. msgid "A simple setup for cat-avatar-generator can look like this:"
  39522. msgstr ""
  39523. #. type: lisp
  39524. #: guix-git/doc/guix.texi:26574
  39525. #, no-wrap
  39526. msgid ""
  39527. "(services (cons* (cat-avatar-generator-service\n"
  39528. " #:configuration\n"
  39529. " (nginx-server-configuration\n"
  39530. " (server-name '(\"example.com\"))))\n"
  39531. " ...\n"
  39532. " %base-services))\n"
  39533. msgstr ""
  39534. #. type: subsubheading
  39535. #: guix-git/doc/guix.texi:26576
  39536. #, no-wrap
  39537. msgid "Hpcguix-web"
  39538. msgstr ""
  39539. #. type: cindex
  39540. #: guix-git/doc/guix.texi:26578
  39541. #, no-wrap
  39542. msgid "hpcguix-web"
  39543. msgstr ""
  39544. #. type: Plain text
  39545. #: guix-git/doc/guix.texi:26583
  39546. 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."
  39547. msgstr ""
  39548. #. type: defvr
  39549. #: guix-git/doc/guix.texi:26584
  39550. #, no-wrap
  39551. msgid "{Scheme Variable} hpcguix-web-service-type"
  39552. msgstr ""
  39553. #. type: defvr
  39554. #: guix-git/doc/guix.texi:26586
  39555. msgid "The service type for @code{hpcguix-web}."
  39556. msgstr ""
  39557. #. type: deftp
  39558. #: guix-git/doc/guix.texi:26588
  39559. #, no-wrap
  39560. msgid "{Data Type} hpcguix-web-configuration"
  39561. msgstr ""
  39562. #. type: deftp
  39563. #: guix-git/doc/guix.texi:26590
  39564. msgid "Data type for the hpcguix-web service configuration."
  39565. msgstr ""
  39566. #. type: code{#1}
  39567. #: guix-git/doc/guix.texi:26592
  39568. #, no-wrap
  39569. msgid "specs"
  39570. msgstr ""
  39571. #. type: table
  39572. #: guix-git/doc/guix.texi:26595
  39573. msgid "A gexp (@pxref{G-Expressions}) specifying the hpcguix-web service configuration. The main items available in this spec are:"
  39574. msgstr ""
  39575. #. type: item
  39576. #: guix-git/doc/guix.texi:26597
  39577. #, no-wrap
  39578. msgid "@code{title-prefix} (default: @code{\"hpcguix | \"})"
  39579. msgstr ""
  39580. #. type: table
  39581. #: guix-git/doc/guix.texi:26599
  39582. msgid "The page title prefix."
  39583. msgstr ""
  39584. #. type: item
  39585. #: guix-git/doc/guix.texi:26600
  39586. #, no-wrap
  39587. msgid "@code{guix-command} (default: @code{\"guix\"})"
  39588. msgstr ""
  39589. #. type: table
  39590. #: guix-git/doc/guix.texi:26602
  39591. msgid "The @command{guix} command."
  39592. msgstr ""
  39593. #. type: item
  39594. #: guix-git/doc/guix.texi:26603
  39595. #, no-wrap
  39596. msgid "@code{package-filter-proc} (default: @code{(const #t)})"
  39597. msgstr ""
  39598. #. type: table
  39599. #: guix-git/doc/guix.texi:26605
  39600. msgid "A procedure specifying how to filter packages that are displayed."
  39601. msgstr ""
  39602. #. type: item
  39603. #: guix-git/doc/guix.texi:26606
  39604. #, no-wrap
  39605. msgid "@code{package-page-extension-proc} (default: @code{(const '())})"
  39606. msgstr ""
  39607. #. type: table
  39608. #: guix-git/doc/guix.texi:26608
  39609. msgid "Extension package for @code{hpcguix-web}."
  39610. msgstr ""
  39611. #. type: item
  39612. #: guix-git/doc/guix.texi:26609
  39613. #, no-wrap
  39614. msgid "@code{menu} (default: @code{'()})"
  39615. msgstr ""
  39616. #. type: table
  39617. #: guix-git/doc/guix.texi:26611
  39618. msgid "Additional entry in page @code{menu}."
  39619. msgstr ""
  39620. #. type: item
  39621. #: guix-git/doc/guix.texi:26612
  39622. #, no-wrap
  39623. msgid "@code{channels} (default: @code{%default-channels})"
  39624. msgstr ""
  39625. #. type: table
  39626. #: guix-git/doc/guix.texi:26614
  39627. msgid "List of channels from which the package list is built (@pxref{Channels})."
  39628. msgstr ""
  39629. #. type: item
  39630. #: guix-git/doc/guix.texi:26615
  39631. #, no-wrap
  39632. msgid "@code{package-list-expiration} (default: @code{(* 12 3600)})"
  39633. msgstr ""
  39634. #. type: table
  39635. #: guix-git/doc/guix.texi:26618
  39636. msgid "The expiration time, in seconds, after which the package list is rebuilt from the latest instances of the given channels."
  39637. msgstr ""
  39638. #. type: table
  39639. #: guix-git/doc/guix.texi:26623
  39640. msgid "See the hpcguix-web repository for a @uref{https://github.com/UMCUGenetics/hpcguix-web/blob/master/hpcweb-configuration.scm, complete example}."
  39641. msgstr ""
  39642. #. type: item
  39643. #: guix-git/doc/guix.texi:26624
  39644. #, no-wrap
  39645. msgid "@code{package} (default: @code{hpcguix-web})"
  39646. msgstr ""
  39647. #. type: table
  39648. #: guix-git/doc/guix.texi:26626
  39649. msgid "The hpcguix-web package to use."
  39650. msgstr ""
  39651. #. type: item
  39652. #: guix-git/doc/guix.texi:26627
  39653. #, fuzzy, no-wrap
  39654. msgid "@code{address} (default: @code{\"127.0.0.1\"})"
  39655. msgstr "@code{display}(默认值:@code{\":0\"})"
  39656. #. type: table
  39657. #: guix-git/doc/guix.texi:26629
  39658. msgid "The IP address to listen to."
  39659. msgstr ""
  39660. #. type: item
  39661. #: guix-git/doc/guix.texi:26630
  39662. #, fuzzy, no-wrap
  39663. msgid "@code{port} (default: @code{5000})"
  39664. msgstr "@code{port}(默认值:@code{22})"
  39665. #. type: table
  39666. #: guix-git/doc/guix.texi:26632
  39667. msgid "The port number to listen to."
  39668. msgstr ""
  39669. #. type: Plain text
  39670. #: guix-git/doc/guix.texi:26636
  39671. msgid "A typical hpcguix-web service declaration looks like this:"
  39672. msgstr ""
  39673. #. type: lisp
  39674. #: guix-git/doc/guix.texi:26645
  39675. #, no-wrap
  39676. msgid ""
  39677. "(service hpcguix-web-service-type\n"
  39678. " (hpcguix-web-configuration\n"
  39679. " (specs\n"
  39680. " #~(define site-config\n"
  39681. " (hpcweb-configuration\n"
  39682. " (title-prefix \"Guix-HPC - \")\n"
  39683. " (menu '((\"/about\" \"ABOUT\"))))))))\n"
  39684. msgstr ""
  39685. #. type: quotation
  39686. #: guix-git/doc/guix.texi:26652
  39687. 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."
  39688. msgstr ""
  39689. #. type: quotation
  39690. #: guix-git/doc/guix.texi:26656
  39691. 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."
  39692. msgstr ""
  39693. #. type: cindex
  39694. #: guix-git/doc/guix.texi:26658 guix-git/doc/guix.texi:26660
  39695. #, no-wrap
  39696. msgid "gmnisrv"
  39697. msgstr ""
  39698. #. type: Plain text
  39699. #: guix-git/doc/guix.texi:26663
  39700. msgid "The @uref{https://git.sr.ht/~sircmpwn/gmnisrv, gmnisrv} program is a simple @uref{https://gemini.circumlunar.space/, Gemini} protocol server."
  39701. msgstr ""
  39702. #. type: deffn
  39703. #: guix-git/doc/guix.texi:26664
  39704. #, no-wrap
  39705. msgid "{Scheme Variable} gmnisrv-service-type"
  39706. msgstr ""
  39707. #. type: deffn
  39708. #: guix-git/doc/guix.texi:26667
  39709. msgid "This is the type of the gmnisrv service, whose value should be a @code{gmnisrv-configuration} object, as in this example:"
  39710. msgstr ""
  39711. #. type: lisp
  39712. #: guix-git/doc/guix.texi:26672
  39713. #, no-wrap
  39714. msgid ""
  39715. "(service gmnisrv-service-type\n"
  39716. " (gmnisrv-configuration\n"
  39717. " (config-file (local-file \"./my-gmnisrv.ini\"))))\n"
  39718. msgstr ""
  39719. #. type: deftp
  39720. #: guix-git/doc/guix.texi:26675
  39721. #, no-wrap
  39722. msgid "{Data Type} gmnisrv-configuration"
  39723. msgstr ""
  39724. #. type: deftp
  39725. #: guix-git/doc/guix.texi:26677
  39726. #, fuzzy
  39727. msgid "Data type representing the configuration of gmnisrv."
  39728. msgstr "管理操作系统配置。"
  39729. #. type: item
  39730. #: guix-git/doc/guix.texi:26679
  39731. #, fuzzy, no-wrap
  39732. msgid "@code{package} (default: @var{gmnisrv})"
  39733. msgstr "@code{gnome}(默认值:@code{gnome})"
  39734. #. type: table
  39735. #: guix-git/doc/guix.texi:26681
  39736. msgid "Package object of the gmnisrv server."
  39737. msgstr ""
  39738. #. type: item
  39739. #: guix-git/doc/guix.texi:26682
  39740. #, fuzzy, no-wrap
  39741. msgid "@code{config-file} (default: @code{%default-gmnisrv-config-file})"
  39742. msgstr "@code{gnome}(默认值:@code{gnome})"
  39743. #. type: table
  39744. #: guix-git/doc/guix.texi:26688
  39745. 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}."
  39746. msgstr ""
  39747. #. type: subsubheading
  39748. #: guix-git/doc/guix.texi:26692
  39749. #, no-wrap
  39750. msgid "Agate"
  39751. msgstr ""
  39752. #. type: cindex
  39753. #: guix-git/doc/guix.texi:26694
  39754. #, no-wrap
  39755. msgid "agate"
  39756. msgstr ""
  39757. #. type: Plain text
  39758. #: guix-git/doc/guix.texi:26699
  39759. 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."
  39760. msgstr ""
  39761. #. type: deffn
  39762. #: guix-git/doc/guix.texi:26700
  39763. #, no-wrap
  39764. msgid "{Scheme Variable} agate-service-type"
  39765. msgstr ""
  39766. #. type: deffn
  39767. #: guix-git/doc/guix.texi:26703
  39768. msgid "This is the type of the agate service, whose value should be an @code{agate-service-type} object, as in this example:"
  39769. msgstr ""
  39770. #. type: lisp
  39771. #: guix-git/doc/guix.texi:26710
  39772. #, no-wrap
  39773. msgid ""
  39774. "(service agate-service-type\n"
  39775. "\t (agate-configuration\n"
  39776. "\t (content \"/srv/gemini\")\n"
  39777. "\t (cert \"/srv/cert.pem\")\n"
  39778. "\t (key \"/srv/key.rsa\")))\n"
  39779. msgstr ""
  39780. #. type: deffn
  39781. #: guix-git/doc/guix.texi:26715
  39782. 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."
  39783. msgstr ""
  39784. #. type: deffn
  39785. #: guix-git/doc/guix.texi:26718
  39786. msgid "To obtain a certificate and a key, you could, for example, use OpenSSL, running a command similar to the following example:"
  39787. msgstr ""
  39788. #. type: example
  39789. #: guix-git/doc/guix.texi:26722
  39790. #, no-wrap
  39791. msgid ""
  39792. "openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem \\\n"
  39793. " -days 3650 -nodes -subj \"/CN=example.com\"\n"
  39794. msgstr ""
  39795. #. type: deffn
  39796. #: guix-git/doc/guix.texi:26727
  39797. 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."
  39798. msgstr ""
  39799. #. type: deftp
  39800. #: guix-git/doc/guix.texi:26730
  39801. #, fuzzy, no-wrap
  39802. msgid "{Data Type} agate-configuration"
  39803. msgstr "管理操作系统配置。"
  39804. #. type: deftp
  39805. #: guix-git/doc/guix.texi:26732
  39806. #, fuzzy
  39807. msgid "Data type representing the configuration of Agate."
  39808. msgstr "管理操作系统配置。"
  39809. #. type: item
  39810. #: guix-git/doc/guix.texi:26734
  39811. #, fuzzy, no-wrap
  39812. msgid "@code{package} (default: @code{agate})"
  39813. msgstr "@code{mate}(默认值:@code{mate})"
  39814. #. type: table
  39815. #: guix-git/doc/guix.texi:26736
  39816. #, fuzzy
  39817. msgid "The package object of the Agate server."
  39818. msgstr "软件包数据类型。"
  39819. #. type: item
  39820. #: guix-git/doc/guix.texi:26737
  39821. #, fuzzy, no-wrap
  39822. msgid "@code{content} (default: @file{\"/srv/gemini\"})"
  39823. msgstr "@code{mate}(默认值:@code{mate})"
  39824. #. type: table
  39825. #: guix-git/doc/guix.texi:26739
  39826. msgid "The directory from which Agate will serve files."
  39827. msgstr ""
  39828. #. type: item
  39829. #: guix-git/doc/guix.texi:26740
  39830. #, fuzzy, no-wrap
  39831. msgid "@code{cert} (default: @code{#f})"
  39832. msgstr "@code{port}(默认值:@code{22})"
  39833. #. type: table
  39834. #: guix-git/doc/guix.texi:26743
  39835. 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."
  39836. msgstr ""
  39837. #. type: item
  39838. #: guix-git/doc/guix.texi:26744 guix-git/doc/guix.texi:27180
  39839. #, no-wrap
  39840. msgid "@code{key} (default: @code{#f})"
  39841. msgstr ""
  39842. #. type: table
  39843. #: guix-git/doc/guix.texi:26747
  39844. 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."
  39845. msgstr ""
  39846. #. type: item
  39847. #: guix-git/doc/guix.texi:26748
  39848. #, fuzzy, no-wrap
  39849. msgid "@code{addr} (default: @code{'(\"0.0.0.0:1965\" \"[::]:1965\")})"
  39850. msgstr "@code{display}(默认值:@code{\":0\"})"
  39851. #. type: table
  39852. #: guix-git/doc/guix.texi:26750
  39853. msgid "A list of the addresses to listen on."
  39854. msgstr ""
  39855. #. type: table
  39856. #: guix-git/doc/guix.texi:26753
  39857. msgid "The domain name of this Gemini server. Optional."
  39858. msgstr ""
  39859. #. type: item
  39860. #: guix-git/doc/guix.texi:26754
  39861. #, fuzzy, no-wrap
  39862. msgid "@code{lang} (default: @code{#f})"
  39863. msgstr "@code{challenge}(默认值:@code{#f})"
  39864. #. type: table
  39865. #: guix-git/doc/guix.texi:26756
  39866. msgid "RFC 4646 language code(s) for text/gemini documents. Optional."
  39867. msgstr ""
  39868. #. type: item
  39869. #: guix-git/doc/guix.texi:26757
  39870. #, fuzzy, no-wrap
  39871. msgid "@code{silent?} (default: @code{#f})"
  39872. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39873. #. type: table
  39874. #: guix-git/doc/guix.texi:26759
  39875. msgid "Set to @code{#t} to disable logging output."
  39876. msgstr ""
  39877. #. type: item
  39878. #: guix-git/doc/guix.texi:26760
  39879. #, fuzzy, no-wrap
  39880. msgid "@code{serve-secret?} (default: @code{#f})"
  39881. msgstr "@code{speed}(默认值:@code{1.0})"
  39882. #. type: table
  39883. #: guix-git/doc/guix.texi:26763
  39884. msgid "Set to @code{#t} to serve secret files (files/directories starting with a dot)."
  39885. msgstr ""
  39886. #. type: item
  39887. #: guix-git/doc/guix.texi:26764
  39888. #, fuzzy, no-wrap
  39889. msgid "@code{log-ip?} (default: @code{#t})"
  39890. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39891. #. type: table
  39892. #: guix-git/doc/guix.texi:26766
  39893. msgid "Whether or not to output IP addresses when logging."
  39894. msgstr ""
  39895. #. type: item
  39896. #: guix-git/doc/guix.texi:26767
  39897. #, fuzzy, no-wrap
  39898. msgid "@code{user} (default: @code{\"agate\"})"
  39899. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  39900. #. type: table
  39901. #: guix-git/doc/guix.texi:26769
  39902. msgid "Owner of the @code{agate} process."
  39903. msgstr ""
  39904. #. type: item
  39905. #: guix-git/doc/guix.texi:26770
  39906. #, fuzzy, no-wrap
  39907. msgid "@code{group} (default: @code{\"agate\"})"
  39908. msgstr "@code{gnome}(默认值:@code{gnome})"
  39909. #. type: table
  39910. #: guix-git/doc/guix.texi:26772
  39911. msgid "Owner's group of the @code{agate} process."
  39912. msgstr ""
  39913. #. type: item
  39914. #: guix-git/doc/guix.texi:26773
  39915. #, fuzzy, no-wrap
  39916. msgid "@code{log-file} (default: @file{\"/var/log/agate.log\"})"
  39917. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  39918. #. type: table
  39919. #: guix-git/doc/guix.texi:26775
  39920. msgid "The file which should store the logging output of Agate."
  39921. msgstr ""
  39922. #. type: cindex
  39923. #: guix-git/doc/guix.texi:26782
  39924. #, no-wrap
  39925. msgid "Web"
  39926. msgstr ""
  39927. #. type: cindex
  39928. #: guix-git/doc/guix.texi:26783
  39929. #, no-wrap
  39930. msgid "HTTP, HTTPS"
  39931. msgstr ""
  39932. #. type: cindex
  39933. #: guix-git/doc/guix.texi:26784
  39934. #, no-wrap
  39935. msgid "Let's Encrypt"
  39936. msgstr ""
  39937. #. type: cindex
  39938. #: guix-git/doc/guix.texi:26785
  39939. #, no-wrap
  39940. msgid "TLS certificates"
  39941. msgstr ""
  39942. #. type: Plain text
  39943. #: guix-git/doc/guix.texi:26792
  39944. 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."
  39945. msgstr ""
  39946. #. type: Plain text
  39947. #: guix-git/doc/guix.texi:26804
  39948. 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."
  39949. msgstr ""
  39950. #. type: Plain text
  39951. #: guix-git/doc/guix.texi:26811
  39952. 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)."
  39953. msgstr ""
  39954. #. type: Plain text
  39955. #: guix-git/doc/guix.texi:26817
  39956. 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."
  39957. msgstr ""
  39958. #. type: Plain text
  39959. #: guix-git/doc/guix.texi:26821
  39960. 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}."
  39961. msgstr ""
  39962. #. type: defvr
  39963. #: guix-git/doc/guix.texi:26822
  39964. #, no-wrap
  39965. msgid "{Scheme Variable} certbot-service-type"
  39966. msgstr ""
  39967. #. type: defvr
  39968. #: guix-git/doc/guix.texi:26825
  39969. 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:"
  39970. msgstr ""
  39971. #. type: lisp
  39972. #: guix-git/doc/guix.texi:26832
  39973. #, no-wrap
  39974. msgid ""
  39975. "(define %nginx-deploy-hook\n"
  39976. " (program-file\n"
  39977. " \"nginx-deploy-hook\"\n"
  39978. " #~(let ((pid (call-with-input-file \"/var/run/nginx/pid\" read)))\n"
  39979. " (kill pid SIGHUP))))\n"
  39980. "\n"
  39981. msgstr ""
  39982. #. type: lisp
  39983. #: guix-git/doc/guix.texi:26843
  39984. #, no-wrap
  39985. msgid ""
  39986. "(service certbot-service-type\n"
  39987. " (certbot-configuration\n"
  39988. " (email \"foo@@example.net\")\n"
  39989. " (certificates\n"
  39990. " (list\n"
  39991. " (certificate-configuration\n"
  39992. " (domains '(\"example.net\" \"www.example.net\"))\n"
  39993. " (deploy-hook %nginx-deploy-hook))\n"
  39994. " (certificate-configuration\n"
  39995. " (domains '(\"bar.example.net\")))))))\n"
  39996. msgstr ""
  39997. #. type: defvr
  39998. #: guix-git/doc/guix.texi:26846
  39999. msgid "See below for details about @code{certbot-configuration}."
  40000. msgstr ""
  40001. #. type: deftp
  40002. #: guix-git/doc/guix.texi:26848
  40003. #, no-wrap
  40004. msgid "{Data Type} certbot-configuration"
  40005. msgstr ""
  40006. #. type: deftp
  40007. #: guix-git/doc/guix.texi:26851
  40008. msgid "Data type representing the configuration of the @code{certbot} service. This type has the following parameters:"
  40009. msgstr ""
  40010. #. type: item
  40011. #: guix-git/doc/guix.texi:26853
  40012. #, no-wrap
  40013. msgid "@code{package} (default: @code{certbot})"
  40014. msgstr ""
  40015. #. type: table
  40016. #: guix-git/doc/guix.texi:26855
  40017. msgid "The certbot package to use."
  40018. msgstr ""
  40019. #. type: item
  40020. #: guix-git/doc/guix.texi:26856
  40021. #, no-wrap
  40022. msgid "@code{webroot} (default: @code{/var/www})"
  40023. msgstr ""
  40024. #. type: table
  40025. #: guix-git/doc/guix.texi:26859
  40026. msgid "The directory from which to serve the Let's Encrypt challenge/response files."
  40027. msgstr ""
  40028. #. type: item
  40029. #: guix-git/doc/guix.texi:26860
  40030. #, no-wrap
  40031. msgid "@code{certificates} (default: @code{()})"
  40032. msgstr ""
  40033. #. type: table
  40034. #: guix-git/doc/guix.texi:26864
  40035. 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}."
  40036. msgstr ""
  40037. #. type: item
  40038. #: guix-git/doc/guix.texi:26865
  40039. #, fuzzy, no-wrap
  40040. msgid "@code{email} (default: @code{#f})"
  40041. msgstr "@code{challenge}(默认值:@code{#f})"
  40042. #. type: table
  40043. #: guix-git/doc/guix.texi:26869
  40044. 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."
  40045. msgstr ""
  40046. #. type: item
  40047. #: guix-git/doc/guix.texi:26870 guix-git/doc/guix.texi:28614
  40048. #, fuzzy, no-wrap
  40049. msgid "@code{server} (default: @code{#f})"
  40050. msgstr "@code{speed}(默认值:@code{1.0})"
  40051. #. type: table
  40052. #: guix-git/doc/guix.texi:26873
  40053. msgid "Optional URL of ACME server. Setting this overrides certbot's default, which is the Let's Encrypt server."
  40054. msgstr ""
  40055. #. type: item
  40056. #: guix-git/doc/guix.texi:26874
  40057. #, no-wrap
  40058. msgid "@code{rsa-key-size} (default: @code{2048})"
  40059. msgstr ""
  40060. #. type: table
  40061. #: guix-git/doc/guix.texi:26876
  40062. msgid "Size of the RSA key."
  40063. msgstr ""
  40064. #. type: item
  40065. #: guix-git/doc/guix.texi:26877
  40066. #, no-wrap
  40067. msgid "@code{default-location} (default: @i{see below})"
  40068. msgstr ""
  40069. #. type: table
  40070. #: guix-git/doc/guix.texi:26886
  40071. 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."
  40072. msgstr ""
  40073. #. type: table
  40074. #: guix-git/doc/guix.texi:26890
  40075. 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."
  40076. msgstr ""
  40077. #. type: table
  40078. #: guix-git/doc/guix.texi:26894
  40079. 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}."
  40080. msgstr ""
  40081. #. type: table
  40082. #: guix-git/doc/guix.texi:26896
  40083. msgid "Pass @code{#f} to not issue a default location."
  40084. msgstr ""
  40085. #. type: deftp
  40086. #: guix-git/doc/guix.texi:26899
  40087. #, no-wrap
  40088. msgid "{Data Type} certificate-configuration"
  40089. msgstr ""
  40090. #. type: deftp
  40091. #: guix-git/doc/guix.texi:26902
  40092. msgid "Data type representing the configuration of a certificate. This type has the following parameters:"
  40093. msgstr ""
  40094. #. type: item
  40095. #: guix-git/doc/guix.texi:26904
  40096. #, no-wrap
  40097. msgid "@code{name} (default: @i{see below})"
  40098. msgstr ""
  40099. #. type: table
  40100. #: guix-git/doc/guix.texi:26908
  40101. 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}."
  40102. msgstr ""
  40103. #. type: table
  40104. #: guix-git/doc/guix.texi:26910
  40105. msgid "Its default is the first provided domain."
  40106. msgstr ""
  40107. #. type: item
  40108. #: guix-git/doc/guix.texi:26911
  40109. #, no-wrap
  40110. msgid "@code{domains} (default: @code{()})"
  40111. msgstr ""
  40112. #. type: table
  40113. #: guix-git/doc/guix.texi:26914
  40114. msgid "The first domain provided will be the subject CN of the certificate, and all domains will be Subject Alternative Names on the certificate."
  40115. msgstr ""
  40116. #. type: item
  40117. #: guix-git/doc/guix.texi:26915
  40118. #, no-wrap
  40119. msgid "@code{challenge} (default: @code{#f})"
  40120. msgstr "@code{challenge}(默认值:@code{#f})"
  40121. #. type: table
  40122. #: guix-git/doc/guix.texi:26922
  40123. 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."
  40124. msgstr ""
  40125. #. type: item
  40126. #: guix-git/doc/guix.texi:26923
  40127. #, fuzzy, no-wrap
  40128. msgid "@code{csr} (default: @code{#f})"
  40129. msgstr "@code{port}(默认值:@code{22})"
  40130. #. type: table
  40131. #: guix-git/doc/guix.texi:26930
  40132. 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."
  40133. msgstr ""
  40134. #. type: item
  40135. #: guix-git/doc/guix.texi:26931
  40136. #, no-wrap
  40137. msgid "@code{authentication-hook} (default: @code{#f})"
  40138. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  40139. #. type: table
  40140. #: guix-git/doc/guix.texi:26937
  40141. 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."
  40142. msgstr ""
  40143. #. type: item
  40144. #: guix-git/doc/guix.texi:26938
  40145. #, no-wrap
  40146. msgid "@code{cleanup-hook} (default: @code{#f})"
  40147. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  40148. #. type: table
  40149. #: guix-git/doc/guix.texi:26944
  40150. 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."
  40151. msgstr ""
  40152. #. type: item
  40153. #: guix-git/doc/guix.texi:26945
  40154. #, no-wrap
  40155. msgid "@code{deploy-hook} (default: @code{#f})"
  40156. msgstr ""
  40157. #. type: table
  40158. #: guix-git/doc/guix.texi:26953
  40159. 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\"}."
  40160. msgstr ""
  40161. #. type: Plain text
  40162. #: guix-git/doc/guix.texi:26960
  40163. 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}."
  40164. msgstr ""
  40165. #. type: cindex
  40166. #: guix-git/doc/guix.texi:26962
  40167. #, no-wrap
  40168. msgid "DNS (domain name system)"
  40169. msgstr ""
  40170. #. type: cindex
  40171. #: guix-git/doc/guix.texi:26963
  40172. #, no-wrap
  40173. msgid "domain name system (DNS)"
  40174. msgstr ""
  40175. #. type: Plain text
  40176. #: guix-git/doc/guix.texi:26971
  40177. 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}."
  40178. msgstr ""
  40179. #. type: subsubheading
  40180. #: guix-git/doc/guix.texi:26972
  40181. #, no-wrap
  40182. msgid "Knot Service"
  40183. msgstr ""
  40184. #. type: Plain text
  40185. #: guix-git/doc/guix.texi:26976
  40186. msgid "An example configuration of an authoritative server for two zones, one master and one slave, is:"
  40187. msgstr ""
  40188. #. type: lisp
  40189. #: guix-git/doc/guix.texi:26983
  40190. #, no-wrap
  40191. msgid ""
  40192. "(define-zone-entries example.org.zone\n"
  40193. ";; Name TTL Class Type Data\n"
  40194. " (\"@@\" \"\" \"IN\" \"A\" \"127.0.0.1\")\n"
  40195. " (\"@@\" \"\" \"IN\" \"NS\" \"ns\")\n"
  40196. " (\"ns\" \"\" \"IN\" \"A\" \"127.0.0.1\"))\n"
  40197. "\n"
  40198. msgstr ""
  40199. #. type: lisp
  40200. #: guix-git/doc/guix.texi:26990
  40201. #, no-wrap
  40202. msgid ""
  40203. "(define master-zone\n"
  40204. " (knot-zone-configuration\n"
  40205. " (domain \"example.org\")\n"
  40206. " (zone (zone-file\n"
  40207. " (origin \"example.org\")\n"
  40208. " (entries example.org.zone)))))\n"
  40209. "\n"
  40210. msgstr ""
  40211. #. type: lisp
  40212. #: guix-git/doc/guix.texi:26996
  40213. #, no-wrap
  40214. msgid ""
  40215. "(define slave-zone\n"
  40216. " (knot-zone-configuration\n"
  40217. " (domain \"plop.org\")\n"
  40218. " (dnssec-policy \"default\")\n"
  40219. " (master (list \"plop-master\"))))\n"
  40220. "\n"
  40221. msgstr ""
  40222. #. type: lisp
  40223. #: guix-git/doc/guix.texi:27001
  40224. #, no-wrap
  40225. msgid ""
  40226. "(define plop-master\n"
  40227. " (knot-remote-configuration\n"
  40228. " (id \"plop-master\")\n"
  40229. " (address (list \"208.76.58.171\"))))\n"
  40230. "\n"
  40231. msgstr ""
  40232. #. type: lisp
  40233. #: guix-git/doc/guix.texi:27010
  40234. #, no-wrap
  40235. msgid ""
  40236. "(operating-system\n"
  40237. " ;; ...\n"
  40238. " (services (cons* (service knot-service-type\n"
  40239. " (knot-configuration\n"
  40240. " (remotes (list plop-master))\n"
  40241. " (zones (list master-zone slave-zone))))\n"
  40242. " ;; ...\n"
  40243. " %base-services)))\n"
  40244. msgstr ""
  40245. #. type: deffn
  40246. #: guix-git/doc/guix.texi:27012
  40247. #, no-wrap
  40248. msgid "{Scheme Variable} knot-service-type"
  40249. msgstr ""
  40250. #. type: deffn
  40251. #: guix-git/doc/guix.texi:27014
  40252. msgid "This is the type for the Knot DNS server."
  40253. msgstr ""
  40254. #. type: deffn
  40255. #: guix-git/doc/guix.texi:27022
  40256. 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."
  40257. msgstr ""
  40258. #. type: deffn
  40259. #: guix-git/doc/guix.texi:27024
  40260. msgid "The following data types are used to configure the Knot DNS server:"
  40261. msgstr ""
  40262. #. type: deftp
  40263. #: guix-git/doc/guix.texi:27026
  40264. #, no-wrap
  40265. msgid "{Data Type} knot-key-configuration"
  40266. msgstr ""
  40267. #. type: deftp
  40268. #: guix-git/doc/guix.texi:27029
  40269. msgid "Data type representing a key. This type has the following parameters:"
  40270. msgstr ""
  40271. #. type: item
  40272. #: guix-git/doc/guix.texi:27031 guix-git/doc/guix.texi:27051
  40273. #: guix-git/doc/guix.texi:27166 guix-git/doc/guix.texi:27192
  40274. #: guix-git/doc/guix.texi:27227
  40275. #, no-wrap
  40276. msgid "@code{id} (default: @code{\"\"})"
  40277. msgstr ""
  40278. #. type: table
  40279. #: guix-git/doc/guix.texi:27034 guix-git/doc/guix.texi:27054
  40280. msgid "An identifier for other configuration fields to refer to this key. IDs must be unique and must not be empty."
  40281. msgstr ""
  40282. #. type: item
  40283. #: guix-git/doc/guix.texi:27035
  40284. #, no-wrap
  40285. msgid "@code{algorithm} (default: @code{#f})"
  40286. msgstr ""
  40287. #. type: table
  40288. #: guix-git/doc/guix.texi:27039
  40289. 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}."
  40290. msgstr ""
  40291. #. type: item
  40292. #: guix-git/doc/guix.texi:27040
  40293. #, no-wrap
  40294. msgid "@code{secret} (default: @code{\"\"})"
  40295. msgstr ""
  40296. #. type: table
  40297. #: guix-git/doc/guix.texi:27042
  40298. msgid "The secret key itself."
  40299. msgstr ""
  40300. #. type: deftp
  40301. #: guix-git/doc/guix.texi:27046
  40302. #, no-wrap
  40303. msgid "{Data Type} knot-acl-configuration"
  40304. msgstr ""
  40305. #. type: deftp
  40306. #: guix-git/doc/guix.texi:27049
  40307. msgid "Data type representing an Access Control List (ACL) configuration. This type has the following parameters:"
  40308. msgstr ""
  40309. #. type: item
  40310. #: guix-git/doc/guix.texi:27055 guix-git/doc/guix.texi:27170
  40311. #, no-wrap
  40312. msgid "@code{address} (default: @code{'()})"
  40313. msgstr ""
  40314. #. type: table
  40315. #: guix-git/doc/guix.texi:27059
  40316. 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."
  40317. msgstr ""
  40318. #. type: item
  40319. #: guix-git/doc/guix.texi:27060
  40320. #, no-wrap
  40321. msgid "@code{key} (default: @code{'()})"
  40322. msgstr ""
  40323. #. type: table
  40324. #: guix-git/doc/guix.texi:27064
  40325. 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."
  40326. msgstr ""
  40327. #. type: item
  40328. #: guix-git/doc/guix.texi:27065
  40329. #, no-wrap
  40330. msgid "@code{action} (default: @code{'()})"
  40331. msgstr ""
  40332. #. type: table
  40333. #: guix-git/doc/guix.texi:27069
  40334. 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}."
  40335. msgstr ""
  40336. #. type: item
  40337. #: guix-git/doc/guix.texi:27070
  40338. #, no-wrap
  40339. msgid "@code{deny?} (default: @code{#f})"
  40340. msgstr ""
  40341. #. type: table
  40342. #: guix-git/doc/guix.texi:27073
  40343. msgid "When true, the ACL defines restrictions. Listed actions are forbidden. When false, listed actions are allowed."
  40344. msgstr ""
  40345. #. type: deftp
  40346. #: guix-git/doc/guix.texi:27077
  40347. #, no-wrap
  40348. msgid "{Data Type} zone-entry"
  40349. msgstr ""
  40350. #. type: deftp
  40351. #: guix-git/doc/guix.texi:27080
  40352. msgid "Data type representing a record entry in a zone file. This type has the following parameters:"
  40353. msgstr ""
  40354. #. type: item
  40355. #: guix-git/doc/guix.texi:27082
  40356. #, no-wrap
  40357. msgid "@code{name} (default: @code{\"@@\"})"
  40358. msgstr ""
  40359. #. type: table
  40360. #: guix-git/doc/guix.texi:27088
  40361. 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}."
  40362. msgstr ""
  40363. #. type: item
  40364. #: guix-git/doc/guix.texi:27089
  40365. #, no-wrap
  40366. msgid "@code{ttl} (default: @code{\"\"})"
  40367. msgstr ""
  40368. #. type: table
  40369. #: guix-git/doc/guix.texi:27091
  40370. msgid "The Time-To-Live (TTL) of this record. If not set, the default TTL is used."
  40371. msgstr ""
  40372. #. type: item
  40373. #: guix-git/doc/guix.texi:27092
  40374. #, no-wrap
  40375. msgid "@code{class} (default: @code{\"IN\"})"
  40376. msgstr ""
  40377. #. type: table
  40378. #: guix-git/doc/guix.texi:27095
  40379. msgid "The class of the record. Knot currently supports only @code{\"IN\"} and partially @code{\"CH\"}."
  40380. msgstr ""
  40381. #. type: item
  40382. #: guix-git/doc/guix.texi:27096
  40383. #, no-wrap
  40384. msgid "@code{type} (default: @code{\"A\"})"
  40385. msgstr ""
  40386. #. type: table
  40387. #: guix-git/doc/guix.texi:27100
  40388. 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."
  40389. msgstr ""
  40390. #. type: item
  40391. #: guix-git/doc/guix.texi:27101
  40392. #, no-wrap
  40393. msgid "@code{data} (default: @code{\"\"})"
  40394. msgstr ""
  40395. #. type: table
  40396. #: guix-git/doc/guix.texi:27105
  40397. 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."
  40398. msgstr ""
  40399. #. type: deftp
  40400. #: guix-git/doc/guix.texi:27109
  40401. #, no-wrap
  40402. msgid "{Data Type} zone-file"
  40403. msgstr ""
  40404. #. type: deftp
  40405. #: guix-git/doc/guix.texi:27112
  40406. msgid "Data type representing the content of a zone file. This type has the following parameters:"
  40407. msgstr ""
  40408. #. type: table
  40409. #: guix-git/doc/guix.texi:27121
  40410. 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}."
  40411. msgstr ""
  40412. #. type: item
  40413. #: guix-git/doc/guix.texi:27122
  40414. #, no-wrap
  40415. msgid "@code{origin} (default: @code{\"\"})"
  40416. msgstr ""
  40417. #. type: table
  40418. #: guix-git/doc/guix.texi:27124
  40419. msgid "The name of your zone. This parameter cannot be empty."
  40420. msgstr ""
  40421. #. type: item
  40422. #: guix-git/doc/guix.texi:27125
  40423. #, no-wrap
  40424. msgid "@code{ns} (default: @code{\"ns\"})"
  40425. msgstr ""
  40426. #. type: table
  40427. #: guix-git/doc/guix.texi:27130
  40428. 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."
  40429. msgstr ""
  40430. #. type: item
  40431. #: guix-git/doc/guix.texi:27131
  40432. #, no-wrap
  40433. msgid "@code{mail} (default: @code{\"hostmaster\"})"
  40434. msgstr ""
  40435. #. type: table
  40436. #: guix-git/doc/guix.texi:27134
  40437. msgid "An email address people can contact you at, as the owner of the zone. This is translated as @code{<mail>@@<origin>}."
  40438. msgstr ""
  40439. #. type: item
  40440. #: guix-git/doc/guix.texi:27135
  40441. #, no-wrap
  40442. msgid "@code{serial} (default: @code{1})"
  40443. msgstr ""
  40444. #. type: table
  40445. #: guix-git/doc/guix.texi:27139
  40446. 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."
  40447. msgstr ""
  40448. #. type: item
  40449. #: guix-git/doc/guix.texi:27140
  40450. #, no-wrap
  40451. msgid "@code{refresh} (default: @code{(* 2 24 3600)})"
  40452. msgstr ""
  40453. #. type: table
  40454. #: guix-git/doc/guix.texi:27144
  40455. 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)}."
  40456. msgstr ""
  40457. #. type: item
  40458. #: guix-git/doc/guix.texi:27145
  40459. #, no-wrap
  40460. msgid "@code{retry} (default: @code{(* 15 60)})"
  40461. msgstr ""
  40462. #. type: table
  40463. #: guix-git/doc/guix.texi:27148
  40464. msgid "The period after which a slave will retry to contact its master when it fails to do so a first time."
  40465. msgstr ""
  40466. #. type: item
  40467. #: guix-git/doc/guix.texi:27149
  40468. #, no-wrap
  40469. msgid "@code{expiry} (default: @code{(* 14 24 3600)})"
  40470. msgstr ""
  40471. #. type: table
  40472. #: guix-git/doc/guix.texi:27153
  40473. 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."
  40474. msgstr ""
  40475. #. type: item
  40476. #: guix-git/doc/guix.texi:27154
  40477. #, no-wrap
  40478. msgid "@code{nx} (default: @code{3600})"
  40479. msgstr ""
  40480. #. type: table
  40481. #: guix-git/doc/guix.texi:27157
  40482. msgid "Default TTL of inexistent records. This delay is usually short because you want your new domains to reach everyone quickly."
  40483. msgstr ""
  40484. #. type: deftp
  40485. #: guix-git/doc/guix.texi:27161
  40486. #, no-wrap
  40487. msgid "{Data Type} knot-remote-configuration"
  40488. msgstr ""
  40489. #. type: deftp
  40490. #: guix-git/doc/guix.texi:27164
  40491. msgid "Data type representing a remote configuration. This type has the following parameters:"
  40492. msgstr ""
  40493. #. type: table
  40494. #: guix-git/doc/guix.texi:27169
  40495. msgid "An identifier for other configuration fields to refer to this remote. IDs must be unique and must not be empty."
  40496. msgstr ""
  40497. #. type: table
  40498. #: guix-git/doc/guix.texi:27174
  40499. 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."
  40500. msgstr ""
  40501. #. type: item
  40502. #: guix-git/doc/guix.texi:27175
  40503. #, no-wrap
  40504. msgid "@code{via} (default: @code{'()})"
  40505. msgstr ""
  40506. #. type: table
  40507. #: guix-git/doc/guix.texi:27179
  40508. 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."
  40509. msgstr ""
  40510. #. type: table
  40511. #: guix-git/doc/guix.texi:27183
  40512. msgid "A reference to a key, that is a string containing the identifier of a key defined in a @code{knot-key-configuration} field."
  40513. msgstr ""
  40514. #. type: deftp
  40515. #: guix-git/doc/guix.texi:27187
  40516. #, no-wrap
  40517. msgid "{Data Type} knot-keystore-configuration"
  40518. msgstr ""
  40519. #. type: deftp
  40520. #: guix-git/doc/guix.texi:27190
  40521. msgid "Data type representing a keystore to hold dnssec keys. This type has the following parameters:"
  40522. msgstr ""
  40523. #. type: table
  40524. #: guix-git/doc/guix.texi:27194
  40525. msgid "The id of the keystore. It must not be empty."
  40526. msgstr ""
  40527. #. type: item
  40528. #: guix-git/doc/guix.texi:27195
  40529. #, no-wrap
  40530. msgid "@code{backend} (default: @code{'pem})"
  40531. msgstr ""
  40532. #. type: table
  40533. #: guix-git/doc/guix.texi:27197
  40534. msgid "The backend to store the keys in. Can be @code{'pem} or @code{'pkcs11}."
  40535. msgstr ""
  40536. #. type: item
  40537. #: guix-git/doc/guix.texi:27198
  40538. #, no-wrap
  40539. msgid "@code{config} (default: @code{\"/var/lib/knot/keys/keys\"})"
  40540. msgstr ""
  40541. #. type: table
  40542. #: guix-git/doc/guix.texi:27202
  40543. 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."
  40544. msgstr ""
  40545. #. type: deftp
  40546. #: guix-git/doc/guix.texi:27206
  40547. #, no-wrap
  40548. msgid "{Data Type} knot-policy-configuration"
  40549. msgstr ""
  40550. #. type: deftp
  40551. #: guix-git/doc/guix.texi:27210
  40552. 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."
  40553. msgstr ""
  40554. #. type: deftp
  40555. #: guix-git/doc/guix.texi:27217
  40556. 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."
  40557. msgstr ""
  40558. #. type: deftp
  40559. #: guix-git/doc/guix.texi:27223
  40560. 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."
  40561. msgstr ""
  40562. #. type: deftp
  40563. #: guix-git/doc/guix.texi:27225
  40564. msgid "This type has the following parameters:"
  40565. msgstr ""
  40566. #. type: table
  40567. #: guix-git/doc/guix.texi:27229
  40568. msgid "The id of the policy. It must not be empty."
  40569. msgstr ""
  40570. #. type: item
  40571. #: guix-git/doc/guix.texi:27230
  40572. #, no-wrap
  40573. msgid "@code{keystore} (default: @code{\"default\"})"
  40574. msgstr ""
  40575. #. type: table
  40576. #: guix-git/doc/guix.texi:27235
  40577. 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)."
  40578. msgstr ""
  40579. #. type: item
  40580. #: guix-git/doc/guix.texi:27236
  40581. #, no-wrap
  40582. msgid "@code{manual?} (default: @code{#f})"
  40583. msgstr ""
  40584. #. type: table
  40585. #: guix-git/doc/guix.texi:27238
  40586. msgid "Whether the key management is manual or automatic."
  40587. msgstr ""
  40588. #. type: item
  40589. #: guix-git/doc/guix.texi:27239
  40590. #, no-wrap
  40591. msgid "@code{single-type-signing?} (default: @code{#f})"
  40592. msgstr ""
  40593. #. type: table
  40594. #: guix-git/doc/guix.texi:27241
  40595. msgid "When @code{#t}, use the Single-Type Signing Scheme."
  40596. msgstr ""
  40597. #. type: item
  40598. #: guix-git/doc/guix.texi:27242
  40599. #, no-wrap
  40600. msgid "@code{algorithm} (default: @code{\"ecdsap256sha256\"})"
  40601. msgstr ""
  40602. #. type: table
  40603. #: guix-git/doc/guix.texi:27244
  40604. msgid "An algorithm of signing keys and issued signatures."
  40605. msgstr ""
  40606. #. type: item
  40607. #: guix-git/doc/guix.texi:27245
  40608. #, no-wrap
  40609. msgid "@code{ksk-size} (default: @code{256})"
  40610. msgstr ""
  40611. #. type: table
  40612. #: guix-git/doc/guix.texi:27248
  40613. msgid "The length of the KSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  40614. msgstr ""
  40615. #. type: item
  40616. #: guix-git/doc/guix.texi:27249
  40617. #, no-wrap
  40618. msgid "@code{zsk-size} (default: @code{256})"
  40619. msgstr ""
  40620. #. type: table
  40621. #: guix-git/doc/guix.texi:27252
  40622. msgid "The length of the ZSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  40623. msgstr ""
  40624. #. type: item
  40625. #: guix-git/doc/guix.texi:27253
  40626. #, no-wrap
  40627. msgid "@code{dnskey-ttl} (default: @code{'default})"
  40628. msgstr ""
  40629. #. type: table
  40630. #: guix-git/doc/guix.texi:27256
  40631. msgid "The TTL value for DNSKEY records added into zone apex. The special @code{'default} value means same as the zone SOA TTL."
  40632. msgstr ""
  40633. #. type: item
  40634. #: guix-git/doc/guix.texi:27257
  40635. #, no-wrap
  40636. msgid "@code{zsk-lifetime} (default: @code{(* 30 24 3600)})"
  40637. msgstr ""
  40638. #. type: table
  40639. #: guix-git/doc/guix.texi:27259
  40640. msgid "The period between ZSK publication and the next rollover initiation."
  40641. msgstr ""
  40642. #. type: item
  40643. #: guix-git/doc/guix.texi:27260
  40644. #, no-wrap
  40645. msgid "@code{propagation-delay} (default: @code{(* 24 3600)})"
  40646. msgstr ""
  40647. #. type: table
  40648. #: guix-git/doc/guix.texi:27263
  40649. 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."
  40650. msgstr ""
  40651. #. type: item
  40652. #: guix-git/doc/guix.texi:27264
  40653. #, no-wrap
  40654. msgid "@code{rrsig-lifetime} (default: @code{(* 14 24 3600)})"
  40655. msgstr ""
  40656. #. type: table
  40657. #: guix-git/doc/guix.texi:27266
  40658. msgid "A validity period of newly issued signatures."
  40659. msgstr ""
  40660. #. type: item
  40661. #: guix-git/doc/guix.texi:27267
  40662. #, no-wrap
  40663. msgid "@code{rrsig-refresh} (default: @code{(* 7 24 3600)})"
  40664. msgstr ""
  40665. #. type: table
  40666. #: guix-git/doc/guix.texi:27269
  40667. msgid "A period how long before a signature expiration the signature will be refreshed."
  40668. msgstr ""
  40669. #. type: item
  40670. #: guix-git/doc/guix.texi:27270
  40671. #, no-wrap
  40672. msgid "@code{nsec3?} (default: @code{#f})"
  40673. msgstr ""
  40674. #. type: table
  40675. #: guix-git/doc/guix.texi:27272
  40676. msgid "When @code{#t}, NSEC3 will be used instead of NSEC."
  40677. msgstr ""
  40678. #. type: item
  40679. #: guix-git/doc/guix.texi:27273
  40680. #, no-wrap
  40681. msgid "@code{nsec3-iterations} (default: @code{5})"
  40682. msgstr ""
  40683. #. type: table
  40684. #: guix-git/doc/guix.texi:27275
  40685. msgid "The number of additional times the hashing is performed."
  40686. msgstr ""
  40687. #. type: item
  40688. #: guix-git/doc/guix.texi:27276
  40689. #, no-wrap
  40690. msgid "@code{nsec3-salt-length} (default: @code{8})"
  40691. msgstr ""
  40692. #. type: table
  40693. #: guix-git/doc/guix.texi:27279
  40694. msgid "The length of a salt field in octets, which is appended to the original owner name before hashing."
  40695. msgstr ""
  40696. #. type: item
  40697. #: guix-git/doc/guix.texi:27280
  40698. #, no-wrap
  40699. msgid "@code{nsec3-salt-lifetime} (default: @code{(* 30 24 3600)})"
  40700. msgstr ""
  40701. #. type: table
  40702. #: guix-git/doc/guix.texi:27282
  40703. msgid "The validity period of newly issued salt field."
  40704. msgstr ""
  40705. #. type: deftp
  40706. #: guix-git/doc/guix.texi:27286
  40707. #, no-wrap
  40708. msgid "{Data Type} knot-zone-configuration"
  40709. msgstr ""
  40710. #. type: deftp
  40711. #: guix-git/doc/guix.texi:27289
  40712. msgid "Data type representing a zone served by Knot. This type has the following parameters:"
  40713. msgstr ""
  40714. #. type: item
  40715. #: guix-git/doc/guix.texi:27291
  40716. #, no-wrap
  40717. msgid "@code{domain} (default: @code{\"\"})"
  40718. msgstr ""
  40719. #. type: table
  40720. #: guix-git/doc/guix.texi:27293
  40721. msgid "The domain served by this configuration. It must not be empty."
  40722. msgstr ""
  40723. #. type: item
  40724. #: guix-git/doc/guix.texi:27294
  40725. #, no-wrap
  40726. msgid "@code{file} (default: @code{\"\"})"
  40727. msgstr ""
  40728. #. type: table
  40729. #: guix-git/doc/guix.texi:27297
  40730. 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."
  40731. msgstr ""
  40732. #. type: item
  40733. #: guix-git/doc/guix.texi:27298
  40734. #, no-wrap
  40735. msgid "@code{zone} (default: @code{(zone-file)})"
  40736. msgstr ""
  40737. #. type: table
  40738. #: guix-git/doc/guix.texi:27301
  40739. msgid "The content of the zone file. This parameter is ignored by slave zones. It must contain a zone-file record."
  40740. msgstr ""
  40741. #. type: item
  40742. #: guix-git/doc/guix.texi:27302
  40743. #, no-wrap
  40744. msgid "@code{master} (default: @code{'()})"
  40745. msgstr ""
  40746. #. type: table
  40747. #: guix-git/doc/guix.texi:27305
  40748. 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."
  40749. msgstr ""
  40750. #. type: item
  40751. #: guix-git/doc/guix.texi:27306
  40752. #, no-wrap
  40753. msgid "@code{ddns-master} (default: @code{#f})"
  40754. msgstr ""
  40755. #. type: table
  40756. #: guix-git/doc/guix.texi:27309
  40757. msgid "The main master. When empty, it defaults to the first master in the list of masters."
  40758. msgstr ""
  40759. #. type: item
  40760. #: guix-git/doc/guix.texi:27310
  40761. #, no-wrap
  40762. msgid "@code{notify} (default: @code{'()})"
  40763. msgstr ""
  40764. #. type: table
  40765. #: guix-git/doc/guix.texi:27312
  40766. msgid "A list of slave remote identifiers."
  40767. msgstr ""
  40768. #. type: item
  40769. #: guix-git/doc/guix.texi:27313
  40770. #, no-wrap
  40771. msgid "@code{acl} (default: @code{'()})"
  40772. msgstr ""
  40773. #. type: table
  40774. #: guix-git/doc/guix.texi:27315
  40775. msgid "A list of acl identifiers."
  40776. msgstr ""
  40777. #. type: item
  40778. #: guix-git/doc/guix.texi:27316
  40779. #, no-wrap
  40780. msgid "@code{semantic-checks?} (default: @code{#f})"
  40781. msgstr ""
  40782. #. type: table
  40783. #: guix-git/doc/guix.texi:27318
  40784. msgid "When set, this adds more semantic checks to the zone."
  40785. msgstr ""
  40786. #. type: item
  40787. #: guix-git/doc/guix.texi:27319
  40788. #, no-wrap
  40789. msgid "@code{zonefile-sync} (default: @code{0})"
  40790. msgstr ""
  40791. #. type: table
  40792. #: guix-git/doc/guix.texi:27322
  40793. msgid "The delay between a modification in memory and on disk. 0 means immediate synchronization."
  40794. msgstr ""
  40795. #. type: item
  40796. #: guix-git/doc/guix.texi:27323
  40797. #, no-wrap
  40798. msgid "@code{zonefile-load} (default: @code{#f})"
  40799. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40800. #. type: table
  40801. #: guix-git/doc/guix.texi:27326
  40802. msgid "The way the zone file contents are applied during zone load. Possible values are:"
  40803. msgstr ""
  40804. #. type: item
  40805. #: guix-git/doc/guix.texi:27328
  40806. #, no-wrap
  40807. msgid "@code{#f} for using the default value from Knot,"
  40808. msgstr ""
  40809. #. type: item
  40810. #: guix-git/doc/guix.texi:27329
  40811. #, no-wrap
  40812. msgid "@code{'none} for not using the zone file at all,"
  40813. msgstr ""
  40814. #. type: item
  40815. #: guix-git/doc/guix.texi:27330
  40816. #, no-wrap
  40817. msgid "@code{'difference} for computing the difference between already available"
  40818. msgstr ""
  40819. #. type: itemize
  40820. #: guix-git/doc/guix.texi:27332
  40821. msgid "contents and zone contents and applying it to the current zone contents,"
  40822. msgstr ""
  40823. #. type: item
  40824. #: guix-git/doc/guix.texi:27332
  40825. #, no-wrap
  40826. msgid "@code{'difference-no-serial} for the same as @code{'difference}, but"
  40827. msgstr ""
  40828. #. type: itemize
  40829. #: guix-git/doc/guix.texi:27335
  40830. msgid "ignoring the SOA serial in the zone file, while the server takes care of it automatically."
  40831. msgstr ""
  40832. #. type: item
  40833. #: guix-git/doc/guix.texi:27335
  40834. #, no-wrap
  40835. msgid "@code{'whole} for loading zone contents from the zone file."
  40836. msgstr ""
  40837. #. type: item
  40838. #: guix-git/doc/guix.texi:27338
  40839. #, no-wrap
  40840. msgid "@code{journal-content} (default: @code{#f})"
  40841. msgstr "@code{journal-content}(默认值:@code{#f})"
  40842. #. type: table
  40843. #: guix-git/doc/guix.texi:27343
  40844. 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."
  40845. msgstr ""
  40846. #. type: item
  40847. #: guix-git/doc/guix.texi:27344
  40848. #, no-wrap
  40849. msgid "@code{max-journal-usage} (default: @code{#f})"
  40850. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  40851. #. type: table
  40852. #: guix-git/doc/guix.texi:27347
  40853. msgid "The maximum size for the journal on disk. @code{#f} does not set this option, so the default value from Knot is used."
  40854. msgstr ""
  40855. #. type: item
  40856. #: guix-git/doc/guix.texi:27348
  40857. #, no-wrap
  40858. msgid "@code{max-journal-depth} (default: @code{#f})"
  40859. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  40860. #. type: table
  40861. #: guix-git/doc/guix.texi:27351
  40862. msgid "The maximum size of the history. @code{#f} does not set this option, so the default value from Knot is used."
  40863. msgstr ""
  40864. #. type: item
  40865. #: guix-git/doc/guix.texi:27352
  40866. #, no-wrap
  40867. msgid "@code{max-zone-size} (default: @code{#f})"
  40868. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  40869. #. type: table
  40870. #: guix-git/doc/guix.texi:27356
  40871. 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."
  40872. msgstr ""
  40873. #. type: item
  40874. #: guix-git/doc/guix.texi:27357
  40875. #, no-wrap
  40876. msgid "@code{dnssec-policy} (default: @code{#f})"
  40877. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  40878. #. type: table
  40879. #: guix-git/doc/guix.texi:27361
  40880. 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."
  40881. msgstr ""
  40882. #. type: item
  40883. #: guix-git/doc/guix.texi:27362
  40884. #, no-wrap
  40885. msgid "@code{serial-policy} (default: @code{'increment})"
  40886. msgstr ""
  40887. #. type: table
  40888. #: guix-git/doc/guix.texi:27364
  40889. msgid "A policy between @code{'increment} and @code{'unixtime}."
  40890. msgstr ""
  40891. #. type: deftp
  40892. #: guix-git/doc/guix.texi:27368
  40893. #, no-wrap
  40894. msgid "{Data Type} knot-configuration"
  40895. msgstr ""
  40896. #. type: deftp
  40897. #: guix-git/doc/guix.texi:27371
  40898. msgid "Data type representing the Knot configuration. This type has the following parameters:"
  40899. msgstr ""
  40900. #. type: item
  40901. #: guix-git/doc/guix.texi:27373
  40902. #, no-wrap
  40903. msgid "@code{knot} (default: @code{knot})"
  40904. msgstr ""
  40905. #. type: table
  40906. #: guix-git/doc/guix.texi:27375
  40907. msgid "The Knot package."
  40908. msgstr ""
  40909. #. type: item
  40910. #: guix-git/doc/guix.texi:27376
  40911. #, no-wrap
  40912. msgid "@code{run-directory} (default: @code{\"/var/run/knot\"})"
  40913. msgstr ""
  40914. #. type: table
  40915. #: guix-git/doc/guix.texi:27378
  40916. msgid "The run directory. This directory will be used for pid file and sockets."
  40917. msgstr ""
  40918. #. type: item
  40919. #: guix-git/doc/guix.texi:27379
  40920. #, no-wrap
  40921. msgid "@code{includes} (default: @code{'()})"
  40922. msgstr "@code{includes}(默认值:@code{'()})"
  40923. #. type: table
  40924. #: guix-git/doc/guix.texi:27382
  40925. msgid "A list of strings or file-like objects denoting other files that must be included at the top of the configuration file."
  40926. msgstr ""
  40927. #. type: cindex
  40928. #: guix-git/doc/guix.texi:27383
  40929. #, no-wrap
  40930. msgid "secrets, Knot service"
  40931. msgstr "秘密,Knot服务。"
  40932. #. type: table
  40933. #: guix-git/doc/guix.texi:27389
  40934. 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."
  40935. msgstr ""
  40936. #. type: table
  40937. #: guix-git/doc/guix.texi:27394
  40938. 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:"
  40939. msgstr ""
  40940. #. type: example
  40941. #: guix-git/doc/guix.texi:27398
  40942. #, no-wrap
  40943. msgid ""
  40944. "keymgr -t mysecret > /etc/knot/secrets.conf\n"
  40945. "chmod 600 /etc/knot/secrets.conf\n"
  40946. msgstr ""
  40947. #. type: table
  40948. #: guix-git/doc/guix.texi:27404
  40949. 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."
  40950. msgstr ""
  40951. #. type: table
  40952. #: guix-git/doc/guix.texi:27406
  40953. msgid "It can also be used to add configuration not supported by this interface."
  40954. msgstr ""
  40955. #. type: item
  40956. #: guix-git/doc/guix.texi:27407
  40957. #, no-wrap
  40958. msgid "@code{listen-v4} (default: @code{\"0.0.0.0\"})"
  40959. msgstr ""
  40960. #. type: table
  40961. #: guix-git/doc/guix.texi:27409 guix-git/doc/guix.texi:27412
  40962. msgid "An ip address on which to listen."
  40963. msgstr ""
  40964. #. type: item
  40965. #: guix-git/doc/guix.texi:27410
  40966. #, no-wrap
  40967. msgid "@code{listen-v6} (default: @code{\"::\"})"
  40968. msgstr ""
  40969. #. type: item
  40970. #: guix-git/doc/guix.texi:27413
  40971. #, no-wrap
  40972. msgid "@code{listen-port} (default: @code{53})"
  40973. msgstr ""
  40974. #. type: table
  40975. #: guix-git/doc/guix.texi:27415
  40976. msgid "A port on which to listen."
  40977. msgstr ""
  40978. #. type: item
  40979. #: guix-git/doc/guix.texi:27416
  40980. #, no-wrap
  40981. msgid "@code{keys} (default: @code{'()})"
  40982. msgstr ""
  40983. #. type: table
  40984. #: guix-git/doc/guix.texi:27418
  40985. msgid "The list of knot-key-configuration used by this configuration."
  40986. msgstr ""
  40987. #. type: item
  40988. #: guix-git/doc/guix.texi:27419
  40989. #, no-wrap
  40990. msgid "@code{acls} (default: @code{'()})"
  40991. msgstr ""
  40992. #. type: table
  40993. #: guix-git/doc/guix.texi:27421
  40994. msgid "The list of knot-acl-configuration used by this configuration."
  40995. msgstr ""
  40996. #. type: item
  40997. #: guix-git/doc/guix.texi:27422
  40998. #, no-wrap
  40999. msgid "@code{remotes} (default: @code{'()})"
  41000. msgstr ""
  41001. #. type: table
  41002. #: guix-git/doc/guix.texi:27424
  41003. msgid "The list of knot-remote-configuration used by this configuration."
  41004. msgstr ""
  41005. #. type: item
  41006. #: guix-git/doc/guix.texi:27425
  41007. #, no-wrap
  41008. msgid "@code{zones} (default: @code{'()})"
  41009. msgstr ""
  41010. #. type: table
  41011. #: guix-git/doc/guix.texi:27427
  41012. msgid "The list of knot-zone-configuration used by this configuration."
  41013. msgstr ""
  41014. #. type: subsubheading
  41015. #: guix-git/doc/guix.texi:27431
  41016. #, fuzzy, no-wrap
  41017. msgid "Knot Resolver Service"
  41018. msgstr "Kerberos服务"
  41019. #. type: deffn
  41020. #: guix-git/doc/guix.texi:27433
  41021. #, no-wrap
  41022. msgid "{Scheme Variable} knot-resolver-service-type"
  41023. msgstr ""
  41024. #. type: deffn
  41025. #: guix-git/doc/guix.texi:27436
  41026. msgid "This is the type of the knot resolver service, whose value should be an @code{knot-resolver-configuration} object as in this example:"
  41027. msgstr ""
  41028. #. type: lisp
  41029. #: guix-git/doc/guix.texi:27446
  41030. #, no-wrap
  41031. msgid ""
  41032. "(service knot-resolver-service-type\n"
  41033. " (knot-resolver-configuration\n"
  41034. " (kresd-config-file (plain-file \"kresd.conf\" \"\n"
  41035. "net.listen('192.168.0.1', 5353)\n"
  41036. "user('knot-resolver', 'knot-resolver')\n"
  41037. "modules = @{ 'hints > iterate', 'stats', 'predict' @}\n"
  41038. "cache.size = 100 * MB\n"
  41039. "\"))))\n"
  41040. msgstr ""
  41041. #. type: deffn
  41042. #: guix-git/doc/guix.texi:27449
  41043. msgid "For more information, refer its @url{https://knot-resolver.readthedocs.org/en/stable/daemon.html#configuration, manual}."
  41044. msgstr ""
  41045. #. type: deftp
  41046. #: guix-git/doc/guix.texi:27451
  41047. #, no-wrap
  41048. msgid "{Data Type} knot-resolver-configuration"
  41049. msgstr ""
  41050. #. type: deftp
  41051. #: guix-git/doc/guix.texi:27453
  41052. #, fuzzy
  41053. msgid "Data type representing the configuration of knot-resolver."
  41054. msgstr "管理操作系统配置。"
  41055. #. type: item
  41056. #: guix-git/doc/guix.texi:27455
  41057. #, fuzzy, no-wrap
  41058. msgid "@code{package} (default: @var{knot-resolver})"
  41059. msgstr "@code{gnome}(默认值:@code{gnome})"
  41060. #. type: table
  41061. #: guix-git/doc/guix.texi:27457
  41062. msgid "Package object of the knot DNS resolver."
  41063. msgstr ""
  41064. #. type: item
  41065. #: guix-git/doc/guix.texi:27458
  41066. #, fuzzy, no-wrap
  41067. msgid "@code{kresd-config-file} (default: %kresd.conf)"
  41068. msgstr "@code{compression-level}(默认值:@code{3})"
  41069. #. type: table
  41070. #: guix-git/doc/guix.texi:27461
  41071. 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}."
  41072. msgstr ""
  41073. #. type: item
  41074. #: guix-git/doc/guix.texi:27462
  41075. #, fuzzy, no-wrap
  41076. msgid "@code{garbage-collection-interval} (default: 1000)"
  41077. msgstr "@code{parallel-builds}(默认值:@code{1})"
  41078. #. type: table
  41079. #: guix-git/doc/guix.texi:27464
  41080. msgid "Number of milliseconds for @code{kres-cache-gc} to periodically trim the cache."
  41081. msgstr ""
  41082. #. type: subsubheading
  41083. #: guix-git/doc/guix.texi:27469
  41084. #, no-wrap
  41085. msgid "Dnsmasq Service"
  41086. msgstr ""
  41087. #. type: deffn
  41088. #: guix-git/doc/guix.texi:27471
  41089. #, no-wrap
  41090. msgid "{Scheme Variable} dnsmasq-service-type"
  41091. msgstr ""
  41092. #. type: deffn
  41093. #: guix-git/doc/guix.texi:27474
  41094. msgid "This is the type of the dnsmasq service, whose value should be an @code{dnsmasq-configuration} object as in this example:"
  41095. msgstr ""
  41096. #. type: lisp
  41097. #: guix-git/doc/guix.texi:27480
  41098. #, no-wrap
  41099. msgid ""
  41100. "(service dnsmasq-service-type\n"
  41101. " (dnsmasq-configuration\n"
  41102. " (no-resolv? #t)\n"
  41103. " (servers '(\"192.168.1.1\"))))\n"
  41104. msgstr ""
  41105. #. type: deftp
  41106. #: guix-git/doc/guix.texi:27483
  41107. #, no-wrap
  41108. msgid "{Data Type} dnsmasq-configuration"
  41109. msgstr ""
  41110. #. type: deftp
  41111. #: guix-git/doc/guix.texi:27485
  41112. msgid "Data type representing the configuration of dnsmasq."
  41113. msgstr ""
  41114. #. type: item
  41115. #: guix-git/doc/guix.texi:27487
  41116. #, no-wrap
  41117. msgid "@code{package} (default: @var{dnsmasq})"
  41118. msgstr ""
  41119. #. type: table
  41120. #: guix-git/doc/guix.texi:27489
  41121. msgid "Package object of the dnsmasq server."
  41122. msgstr ""
  41123. #. type: item
  41124. #: guix-git/doc/guix.texi:27490
  41125. #, no-wrap
  41126. msgid "@code{no-hosts?} (default: @code{#f})"
  41127. msgstr ""
  41128. #. type: table
  41129. #: guix-git/doc/guix.texi:27492
  41130. msgid "When true, don't read the hostnames in /etc/hosts."
  41131. msgstr ""
  41132. #. type: item
  41133. #: guix-git/doc/guix.texi:27493
  41134. #, no-wrap
  41135. msgid "@code{port} (default: @code{53})"
  41136. msgstr ""
  41137. #. type: table
  41138. #: guix-git/doc/guix.texi:27496
  41139. msgid "The port to listen on. Setting this to zero completely disables DNS responses, leaving only DHCP and/or TFTP functions."
  41140. msgstr ""
  41141. #. type: item
  41142. #: guix-git/doc/guix.texi:27497
  41143. #, no-wrap
  41144. msgid "@code{local-service?} (default: @code{#t})"
  41145. msgstr ""
  41146. #. type: table
  41147. #: guix-git/doc/guix.texi:27500
  41148. 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."
  41149. msgstr ""
  41150. #. type: item
  41151. #: guix-git/doc/guix.texi:27501
  41152. #, no-wrap
  41153. msgid "@code{listen-addresses} (default: @code{'()})"
  41154. msgstr ""
  41155. #. type: table
  41156. #: guix-git/doc/guix.texi:27503
  41157. msgid "Listen on the given IP addresses."
  41158. msgstr ""
  41159. #. type: item
  41160. #: guix-git/doc/guix.texi:27504
  41161. #, no-wrap
  41162. msgid "@code{resolv-file} (default: @code{\"/etc/resolv.conf\"})"
  41163. msgstr ""
  41164. #. type: table
  41165. #: guix-git/doc/guix.texi:27506
  41166. msgid "The file to read the IP address of the upstream nameservers from."
  41167. msgstr ""
  41168. #. type: item
  41169. #: guix-git/doc/guix.texi:27507
  41170. #, no-wrap
  41171. msgid "@code{no-resolv?} (default: @code{#f})"
  41172. msgstr ""
  41173. #. type: table
  41174. #: guix-git/doc/guix.texi:27509
  41175. msgid "When true, don't read @var{resolv-file}."
  41176. msgstr ""
  41177. #. type: item
  41178. #: guix-git/doc/guix.texi:27510
  41179. #, no-wrap
  41180. msgid "@code{servers} (default: @code{'()})"
  41181. msgstr ""
  41182. #. type: table
  41183. #: guix-git/doc/guix.texi:27512
  41184. msgid "Specify IP address of upstream servers directly."
  41185. msgstr ""
  41186. #. type: item
  41187. #: guix-git/doc/guix.texi:27513
  41188. #, fuzzy, no-wrap
  41189. msgid "@code{addresses} (default: @code{'()})"
  41190. msgstr "@code{features} (@code{'()})"
  41191. #. type: table
  41192. #: guix-git/doc/guix.texi:27517
  41193. 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."
  41194. msgstr ""
  41195. #. type: table
  41196. #: guix-git/doc/guix.texi:27519
  41197. msgid "This is useful for redirecting hosts locally, for example:"
  41198. msgstr ""
  41199. #. type: lisp
  41200. #: guix-git/doc/guix.texi:27528
  41201. #, no-wrap
  41202. msgid ""
  41203. "(service dnsmasq-service-type\n"
  41204. " (dnsmasq-configuration\n"
  41205. " (addresses\n"
  41206. " '(; Redirect to a local web-server.\n"
  41207. " \"/example.org/127.0.0.1\"\n"
  41208. " ; Redirect subdomain to a specific IP.\n"
  41209. " \"/subdomain.example.org/192.168.1.42\"))))\n"
  41210. msgstr ""
  41211. #. type: table
  41212. #: guix-git/doc/guix.texi:27531
  41213. msgid "Note that rules in @file{/etc/hosts} take precedence over this."
  41214. msgstr ""
  41215. #. type: item
  41216. #: guix-git/doc/guix.texi:27532
  41217. #, no-wrap
  41218. msgid "@code{cache-size} (default: @code{150})"
  41219. msgstr ""
  41220. #. type: table
  41221. #: guix-git/doc/guix.texi:27535
  41222. msgid "Set the size of dnsmasq's cache. Setting the cache size to zero disables caching."
  41223. msgstr ""
  41224. #. type: item
  41225. #: guix-git/doc/guix.texi:27536
  41226. #, no-wrap
  41227. msgid "@code{negative-cache?} (default: @code{#t})"
  41228. msgstr ""
  41229. #. type: table
  41230. #: guix-git/doc/guix.texi:27538
  41231. msgid "When false, disable negative caching."
  41232. msgstr ""
  41233. #. type: item
  41234. #: guix-git/doc/guix.texi:27539
  41235. #, fuzzy, no-wrap
  41236. msgid "@code{tftp-enable?} (default: @code{#f})"
  41237. msgstr "@code{challenge}(默认值:@code{#f})"
  41238. #. type: table
  41239. #: guix-git/doc/guix.texi:27541
  41240. msgid "Whether to enable the built-in TFTP server."
  41241. msgstr ""
  41242. #. type: item
  41243. #: guix-git/doc/guix.texi:27542
  41244. #, fuzzy, no-wrap
  41245. msgid "@code{tftp-no-fail?} (default: @code{#f})"
  41246. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  41247. #. type: table
  41248. #: guix-git/doc/guix.texi:27544
  41249. msgid "If true, does not fail dnsmasq if the TFTP server could not start up."
  41250. msgstr ""
  41251. #. type: item
  41252. #: guix-git/doc/guix.texi:27545
  41253. #, fuzzy, no-wrap
  41254. msgid "@code{tftp-single-port?} (default: @code{#f})"
  41255. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  41256. #. type: table
  41257. #: guix-git/doc/guix.texi:27547
  41258. msgid "Whether to use only one single port for TFTP."
  41259. msgstr ""
  41260. #. type: item
  41261. #: guix-git/doc/guix.texi:27548
  41262. #, fuzzy, no-wrap
  41263. msgid "@code{tftp-secure?} (default: @code{#f})"
  41264. msgstr "@code{xfce}(默认值:@code{xfce})"
  41265. #. type: table
  41266. #: guix-git/doc/guix.texi:27550
  41267. msgid "If true, only files owned by the user running the dnsmasq process are accessible."
  41268. msgstr ""
  41269. #. type: table
  41270. #: guix-git/doc/guix.texi:27554
  41271. 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."
  41272. msgstr ""
  41273. #. type: item
  41274. #: guix-git/doc/guix.texi:27555
  41275. #, fuzzy, no-wrap
  41276. msgid "@code{tftp-max} (default: @code{#f})"
  41277. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  41278. #. type: table
  41279. #: guix-git/doc/guix.texi:27557
  41280. msgid "If set, sets the maximal number of concurrent connections allowed."
  41281. msgstr ""
  41282. #. type: item
  41283. #: guix-git/doc/guix.texi:27558
  41284. #, fuzzy, no-wrap
  41285. msgid "@code{tftp-mtu} (default: @code{#f})"
  41286. msgstr "@code{port}(默认值:@code{22})"
  41287. #. type: table
  41288. #: guix-git/doc/guix.texi:27560
  41289. msgid "If set, sets the MTU for TFTP packets to that value."
  41290. msgstr ""
  41291. #. type: item
  41292. #: guix-git/doc/guix.texi:27561
  41293. #, fuzzy, no-wrap
  41294. msgid "@code{tftp-no-blocksize?} (default: @code{#f})"
  41295. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  41296. #. type: table
  41297. #: guix-git/doc/guix.texi:27563
  41298. msgid "If true, stops the TFTP server from negotiating the blocksize with a client."
  41299. msgstr ""
  41300. #. type: item
  41301. #: guix-git/doc/guix.texi:27564
  41302. #, fuzzy, no-wrap
  41303. msgid "@code{tftp-lowercase?} (default: @code{#f})"
  41304. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  41305. #. type: table
  41306. #: guix-git/doc/guix.texi:27566
  41307. msgid "Whether to convert all filenames in TFTP requests to lowercase."
  41308. msgstr ""
  41309. #. type: item
  41310. #: guix-git/doc/guix.texi:27567
  41311. #, fuzzy, no-wrap
  41312. msgid "@code{tftp-port-range} (default: @code{#f})"
  41313. msgstr "@code{challenge}(默认值:@code{#f})"
  41314. #. type: table
  41315. #: guix-git/doc/guix.texi:27570
  41316. msgid "If set, fixes the dynamical ports (one per client) to the given range (@code{\"<start>,<end>\"})."
  41317. msgstr ""
  41318. #. type: item
  41319. #: guix-git/doc/guix.texi:27571
  41320. #, fuzzy, no-wrap
  41321. msgid "@code{tftp-root} (default: @code{/var/empty,lo})"
  41322. msgstr "@code{port}(默认值:@code{22})"
  41323. #. type: table
  41324. #: guix-git/doc/guix.texi:27578
  41325. 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."
  41326. msgstr ""
  41327. #. type: item
  41328. #: guix-git/doc/guix.texi:27579
  41329. #, fuzzy, no-wrap
  41330. msgid "@code{tftp-unique-root} (default: @code{#f})"
  41331. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  41332. #. type: table
  41333. #: guix-git/doc/guix.texi:27584
  41334. 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)."
  41335. msgstr ""
  41336. #. type: table
  41337. #: guix-git/doc/guix.texi:27593
  41338. 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."
  41339. msgstr ""
  41340. #. type: subsubheading
  41341. #: guix-git/doc/guix.texi:27597
  41342. #, no-wrap
  41343. msgid "ddclient Service"
  41344. msgstr ""
  41345. #. type: cindex
  41346. #: guix-git/doc/guix.texi:27599
  41347. #, no-wrap
  41348. msgid "ddclient"
  41349. msgstr ""
  41350. #. type: Plain text
  41351. #: guix-git/doc/guix.texi:27603
  41352. 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}."
  41353. msgstr ""
  41354. #. type: Plain text
  41355. #: guix-git/doc/guix.texi:27606
  41356. msgid "The following example show instantiates the service with its default configuration:"
  41357. msgstr ""
  41358. #. type: lisp
  41359. #: guix-git/doc/guix.texi:27609
  41360. #, no-wrap
  41361. msgid "(service ddclient-service-type)\n"
  41362. msgstr ""
  41363. #. type: Plain text
  41364. #: guix-git/doc/guix.texi:27618
  41365. 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."
  41366. msgstr ""
  41367. #. type: Plain text
  41368. #: guix-git/doc/guix.texi:27622
  41369. msgid "Available @code{ddclient-configuration} fields are:"
  41370. msgstr ""
  41371. #. type: deftypevr
  41372. #: guix-git/doc/guix.texi:27623
  41373. #, no-wrap
  41374. msgid "{@code{ddclient-configuration} parameter} package ddclient"
  41375. msgstr ""
  41376. #. type: deftypevr
  41377. #: guix-git/doc/guix.texi:27625
  41378. msgid "The ddclient package."
  41379. msgstr ""
  41380. #. type: deftypevr
  41381. #: guix-git/doc/guix.texi:27628
  41382. #, no-wrap
  41383. msgid "{@code{ddclient-configuration} parameter} integer daemon"
  41384. msgstr ""
  41385. #. type: deftypevr
  41386. #: guix-git/doc/guix.texi:27630
  41387. msgid "The period after which ddclient will retry to check IP and domain name."
  41388. msgstr ""
  41389. #. type: deftypevr
  41390. #: guix-git/doc/guix.texi:27632
  41391. msgid "Defaults to @samp{300}."
  41392. msgstr ""
  41393. #. type: deftypevr
  41394. #: guix-git/doc/guix.texi:27635
  41395. #, no-wrap
  41396. msgid "{@code{ddclient-configuration} parameter} boolean syslog"
  41397. msgstr ""
  41398. #. type: deftypevr
  41399. #: guix-git/doc/guix.texi:27637
  41400. msgid "Use syslog for the output."
  41401. msgstr ""
  41402. #. type: deftypevr
  41403. #: guix-git/doc/guix.texi:27642
  41404. #, no-wrap
  41405. msgid "{@code{ddclient-configuration} parameter} string mail"
  41406. msgstr ""
  41407. #. type: deftypevr
  41408. #: guix-git/doc/guix.texi:27644
  41409. msgid "Mail to user."
  41410. msgstr ""
  41411. #. type: deftypevr
  41412. #: guix-git/doc/guix.texi:27646 guix-git/doc/guix.texi:27653
  41413. #: guix-git/doc/guix.texi:29452
  41414. msgid "Defaults to @samp{\"root\"}."
  41415. msgstr ""
  41416. #. type: deftypevr
  41417. #: guix-git/doc/guix.texi:27649
  41418. #, no-wrap
  41419. msgid "{@code{ddclient-configuration} parameter} string mail-failure"
  41420. msgstr ""
  41421. #. type: deftypevr
  41422. #: guix-git/doc/guix.texi:27651
  41423. msgid "Mail failed update to user."
  41424. msgstr ""
  41425. #. type: deftypevr
  41426. #: guix-git/doc/guix.texi:27656
  41427. #, no-wrap
  41428. msgid "{@code{ddclient-configuration} parameter} string pid"
  41429. msgstr ""
  41430. #. type: deftypevr
  41431. #: guix-git/doc/guix.texi:27658
  41432. msgid "The ddclient PID file."
  41433. msgstr ""
  41434. #. type: deftypevr
  41435. #: guix-git/doc/guix.texi:27660
  41436. msgid "Defaults to @samp{\"/var/run/ddclient/ddclient.pid\"}."
  41437. msgstr ""
  41438. #. type: deftypevr
  41439. #: guix-git/doc/guix.texi:27663
  41440. #, no-wrap
  41441. msgid "{@code{ddclient-configuration} parameter} boolean ssl"
  41442. msgstr ""
  41443. #. type: deftypevr
  41444. #: guix-git/doc/guix.texi:27665
  41445. msgid "Enable SSL support."
  41446. msgstr ""
  41447. #. type: deftypevr
  41448. #: guix-git/doc/guix.texi:27670
  41449. #, no-wrap
  41450. msgid "{@code{ddclient-configuration} parameter} string user"
  41451. msgstr ""
  41452. #. type: deftypevr
  41453. #: guix-git/doc/guix.texi:27673
  41454. msgid "Specifies the user name or ID that is used when running ddclient program."
  41455. msgstr ""
  41456. #. type: deftypevr
  41457. #: guix-git/doc/guix.texi:27675 guix-git/doc/guix.texi:27682
  41458. msgid "Defaults to @samp{\"ddclient\"}."
  41459. msgstr ""
  41460. #. type: deftypevr
  41461. #: guix-git/doc/guix.texi:27678
  41462. #, no-wrap
  41463. msgid "{@code{ddclient-configuration} parameter} string group"
  41464. msgstr ""
  41465. #. type: deftypevr
  41466. #: guix-git/doc/guix.texi:27680
  41467. msgid "Group of the user who will run the ddclient program."
  41468. msgstr ""
  41469. #. type: deftypevr
  41470. #: guix-git/doc/guix.texi:27685
  41471. #, no-wrap
  41472. msgid "{@code{ddclient-configuration} parameter} string secret-file"
  41473. msgstr ""
  41474. #. type: deftypevr
  41475. #: guix-git/doc/guix.texi:27689
  41476. 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."
  41477. msgstr ""
  41478. #. type: deftypevr
  41479. #: guix-git/doc/guix.texi:27691
  41480. msgid "Defaults to @samp{\"/etc/ddclient/secrets.conf\"}."
  41481. msgstr ""
  41482. #. type: deftypevr
  41483. #: guix-git/doc/guix.texi:27694
  41484. #, no-wrap
  41485. msgid "{@code{ddclient-configuration} parameter} list extra-options"
  41486. msgstr ""
  41487. #. type: deftypevr
  41488. #: guix-git/doc/guix.texi:27696
  41489. msgid "Extra options will be appended to @file{ddclient.conf} file."
  41490. msgstr ""
  41491. #. type: cindex
  41492. #: guix-git/doc/guix.texi:27707
  41493. #, no-wrap
  41494. msgid "VPN (virtual private network)"
  41495. msgstr ""
  41496. #. type: cindex
  41497. #: guix-git/doc/guix.texi:27708
  41498. #, no-wrap
  41499. msgid "virtual private network (VPN)"
  41500. msgstr ""
  41501. #. type: Plain text
  41502. #: guix-git/doc/guix.texi:27712
  41503. msgid "The @code{(gnu services vpn)} module provides services related to @dfn{virtual private networks} (VPNs)."
  41504. msgstr ""
  41505. #. type: subsubheading
  41506. #: guix-git/doc/guix.texi:27713
  41507. #, no-wrap
  41508. msgid "Bitmask"
  41509. msgstr ""
  41510. #. type: defvr
  41511. #: guix-git/doc/guix.texi:27715
  41512. #, no-wrap
  41513. msgid "{Scheme Variable} bitmask-service-type"
  41514. msgstr ""
  41515. #. type: defvr
  41516. #: guix-git/doc/guix.texi:27720
  41517. 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."
  41518. msgstr ""
  41519. #. type: subsubheading
  41520. #: guix-git/doc/guix.texi:27722
  41521. #, no-wrap
  41522. msgid "OpenVPN"
  41523. msgstr ""
  41524. #. type: Plain text
  41525. #: guix-git/doc/guix.texi:27726
  41526. 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@."
  41527. msgstr ""
  41528. #. type: deffn
  41529. #: guix-git/doc/guix.texi:27727
  41530. #, no-wrap
  41531. msgid "{Scheme Procedure} openvpn-client-service @"
  41532. msgstr ""
  41533. #. type: deffn
  41534. #: guix-git/doc/guix.texi:27729
  41535. msgid "[#:config (openvpn-client-configuration)]"
  41536. msgstr ""
  41537. #. type: deffn
  41538. #: guix-git/doc/guix.texi:27731
  41539. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a client."
  41540. msgstr ""
  41541. #. type: deffn
  41542. #: guix-git/doc/guix.texi:27733
  41543. #, no-wrap
  41544. msgid "{Scheme Procedure} openvpn-server-service @"
  41545. msgstr ""
  41546. #. type: deffn
  41547. #: guix-git/doc/guix.texi:27735
  41548. msgid "[#:config (openvpn-server-configuration)]"
  41549. msgstr ""
  41550. #. type: deffn
  41551. #: guix-git/doc/guix.texi:27737
  41552. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a server."
  41553. msgstr ""
  41554. #. type: deffn
  41555. #: guix-git/doc/guix.texi:27739
  41556. msgid "Both can be run simultaneously."
  41557. msgstr ""
  41558. #. type: Plain text
  41559. #: guix-git/doc/guix.texi:27744
  41560. msgid "Available @code{openvpn-client-configuration} fields are:"
  41561. msgstr ""
  41562. #. type: deftypevr
  41563. #: guix-git/doc/guix.texi:27745
  41564. #, no-wrap
  41565. msgid "{@code{openvpn-client-configuration} parameter} package openvpn"
  41566. msgstr ""
  41567. #. type: deftypevr
  41568. #: guix-git/doc/guix.texi:27747 guix-git/doc/guix.texi:27902
  41569. msgid "The OpenVPN package."
  41570. msgstr ""
  41571. #. type: deftypevr
  41572. #: guix-git/doc/guix.texi:27750
  41573. #, no-wrap
  41574. msgid "{@code{openvpn-client-configuration} parameter} string pid-file"
  41575. msgstr ""
  41576. #. type: deftypevr
  41577. #: guix-git/doc/guix.texi:27752 guix-git/doc/guix.texi:27907
  41578. msgid "The OpenVPN pid file."
  41579. msgstr ""
  41580. #. type: deftypevr
  41581. #: guix-git/doc/guix.texi:27754 guix-git/doc/guix.texi:27909
  41582. msgid "Defaults to @samp{\"/var/run/openvpn/openvpn.pid\"}."
  41583. msgstr ""
  41584. #. type: deftypevr
  41585. #: guix-git/doc/guix.texi:27757
  41586. #, no-wrap
  41587. msgid "{@code{openvpn-client-configuration} parameter} proto proto"
  41588. msgstr ""
  41589. #. type: deftypevr
  41590. #: guix-git/doc/guix.texi:27760 guix-git/doc/guix.texi:27915
  41591. msgid "The protocol (UDP or TCP) used to open a channel between clients and servers."
  41592. msgstr ""
  41593. #. type: deftypevr
  41594. #: guix-git/doc/guix.texi:27762 guix-git/doc/guix.texi:27917
  41595. msgid "Defaults to @samp{udp}."
  41596. msgstr ""
  41597. #. type: deftypevr
  41598. #: guix-git/doc/guix.texi:27765
  41599. #, no-wrap
  41600. msgid "{@code{openvpn-client-configuration} parameter} dev dev"
  41601. msgstr ""
  41602. #. type: deftypevr
  41603. #: guix-git/doc/guix.texi:27767 guix-git/doc/guix.texi:27922
  41604. msgid "The device type used to represent the VPN connection."
  41605. msgstr ""
  41606. #. type: deftypevr
  41607. #: guix-git/doc/guix.texi:27769 guix-git/doc/guix.texi:27924
  41608. msgid "Defaults to @samp{tun}."
  41609. msgstr ""
  41610. #. type: Plain text
  41611. #: guix-git/doc/guix.texi:27775 guix-git/doc/guix.texi:27930
  41612. 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}."
  41613. msgstr ""
  41614. #. type: deftypevr
  41615. #: guix-git/doc/guix.texi:27776
  41616. #, no-wrap
  41617. msgid "{@code{openvpn-client-configuration} parameter} maybe-string ca"
  41618. msgstr ""
  41619. #. type: deftypevr
  41620. #: guix-git/doc/guix.texi:27778 guix-git/doc/guix.texi:27933
  41621. msgid "The certificate authority to check connections against."
  41622. msgstr ""
  41623. #. type: deftypevr
  41624. #: guix-git/doc/guix.texi:27780 guix-git/doc/guix.texi:27935
  41625. msgid "Defaults to @samp{\"/etc/openvpn/ca.crt\"}."
  41626. msgstr ""
  41627. #. type: deftypevr
  41628. #: guix-git/doc/guix.texi:27783
  41629. #, no-wrap
  41630. msgid "{@code{openvpn-client-configuration} parameter} maybe-string cert"
  41631. msgstr ""
  41632. #. type: deftypevr
  41633. #: guix-git/doc/guix.texi:27786 guix-git/doc/guix.texi:27941
  41634. msgid "The certificate of the machine the daemon is running on. It should be signed by the authority given in @code{ca}."
  41635. msgstr ""
  41636. #. type: deftypevr
  41637. #: guix-git/doc/guix.texi:27788 guix-git/doc/guix.texi:27943
  41638. msgid "Defaults to @samp{\"/etc/openvpn/client.crt\"}."
  41639. msgstr ""
  41640. #. type: deftypevr
  41641. #: guix-git/doc/guix.texi:27791
  41642. #, no-wrap
  41643. msgid "{@code{openvpn-client-configuration} parameter} maybe-string key"
  41644. msgstr ""
  41645. #. type: deftypevr
  41646. #: guix-git/doc/guix.texi:27794 guix-git/doc/guix.texi:27949
  41647. msgid "The key of the machine the daemon is running on. It must be the key whose certificate is @code{cert}."
  41648. msgstr ""
  41649. #. type: deftypevr
  41650. #: guix-git/doc/guix.texi:27796 guix-git/doc/guix.texi:27951
  41651. msgid "Defaults to @samp{\"/etc/openvpn/client.key\"}."
  41652. msgstr ""
  41653. #. type: deftypevr
  41654. #: guix-git/doc/guix.texi:27799
  41655. #, no-wrap
  41656. msgid "{@code{openvpn-client-configuration} parameter} boolean comp-lzo?"
  41657. msgstr ""
  41658. #. type: deftypevr
  41659. #: guix-git/doc/guix.texi:27801 guix-git/doc/guix.texi:27956
  41660. msgid "Whether to use the lzo compression algorithm."
  41661. msgstr ""
  41662. #. type: deftypevr
  41663. #: guix-git/doc/guix.texi:27806
  41664. #, no-wrap
  41665. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-key?"
  41666. msgstr ""
  41667. #. type: deftypevr
  41668. #: guix-git/doc/guix.texi:27808 guix-git/doc/guix.texi:27963
  41669. msgid "Don't re-read key files across SIGUSR1 or --ping-restart."
  41670. msgstr ""
  41671. #. type: deftypevr
  41672. #: guix-git/doc/guix.texi:27813
  41673. #, no-wrap
  41674. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-tun?"
  41675. msgstr ""
  41676. #. type: deftypevr
  41677. #: guix-git/doc/guix.texi:27816 guix-git/doc/guix.texi:27971
  41678. msgid "Don't close and reopen TUN/TAP device or run up/down scripts across SIGUSR1 or --ping-restart restarts."
  41679. msgstr ""
  41680. #. type: deftypevr
  41681. #: guix-git/doc/guix.texi:27821
  41682. #, no-wrap
  41683. msgid "{@code{openvpn-client-configuration} parameter} boolean fast-io?"
  41684. msgstr ""
  41685. #. type: deftypevr
  41686. #: guix-git/doc/guix.texi:27824 guix-git/doc/guix.texi:27979
  41687. msgid "(Experimental) Optimize TUN/TAP/UDP I/O writes by avoiding a call to poll/epoll/select prior to the write operation."
  41688. msgstr ""
  41689. #. type: deftypevr
  41690. #: guix-git/doc/guix.texi:27828
  41691. #, no-wrap
  41692. msgid "{@code{openvpn-client-configuration} parameter} number verbosity"
  41693. msgstr ""
  41694. #. type: deftypevr
  41695. #: guix-git/doc/guix.texi:27830 guix-git/doc/guix.texi:27985
  41696. msgid "Verbosity level."
  41697. msgstr ""
  41698. #. type: deftypevr
  41699. #: guix-git/doc/guix.texi:27832 guix-git/doc/guix.texi:27987
  41700. #: guix-git/doc/guix.texi:29720 guix-git/doc/guix.texi:29944
  41701. msgid "Defaults to @samp{3}."
  41702. msgstr ""
  41703. #. type: deftypevr
  41704. #: guix-git/doc/guix.texi:27835
  41705. #, no-wrap
  41706. msgid "{@code{openvpn-client-configuration} parameter} tls-auth-client tls-auth"
  41707. msgstr ""
  41708. #. type: deftypevr
  41709. #: guix-git/doc/guix.texi:27838 guix-git/doc/guix.texi:27993
  41710. msgid "Add an additional layer of HMAC authentication on top of the TLS control channel to protect against DoS attacks."
  41711. msgstr ""
  41712. #. type: deftypevr
  41713. #: guix-git/doc/guix.texi:27843
  41714. #, no-wrap
  41715. msgid "{@code{openvpn-client-configuration} parameter} maybe-string auth-user-pass"
  41716. msgstr ""
  41717. #. type: deftypevr
  41718. #: guix-git/doc/guix.texi:27847
  41719. 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."
  41720. msgstr ""
  41721. #. type: deftypevr
  41722. #: guix-git/doc/guix.texi:27849
  41723. msgid "Defaults to @samp{'disabled}."
  41724. msgstr ""
  41725. #. type: deftypevr
  41726. #: guix-git/doc/guix.texi:27851
  41727. #, no-wrap
  41728. msgid "{@code{openvpn-client-configuration} parameter} key-usage verify-key-usage?"
  41729. msgstr ""
  41730. #. type: deftypevr
  41731. #: guix-git/doc/guix.texi:27853
  41732. msgid "Whether to check the server certificate has server usage extension."
  41733. msgstr ""
  41734. #. type: deftypevr
  41735. #: guix-git/doc/guix.texi:27858
  41736. #, no-wrap
  41737. msgid "{@code{openvpn-client-configuration} parameter} bind bind?"
  41738. msgstr ""
  41739. #. type: deftypevr
  41740. #: guix-git/doc/guix.texi:27860
  41741. msgid "Bind to a specific local port number."
  41742. msgstr ""
  41743. #. type: deftypevr
  41744. #: guix-git/doc/guix.texi:27865
  41745. #, no-wrap
  41746. msgid "{@code{openvpn-client-configuration} parameter} resolv-retry resolv-retry?"
  41747. msgstr ""
  41748. #. type: deftypevr
  41749. #: guix-git/doc/guix.texi:27867
  41750. msgid "Retry resolving server address."
  41751. msgstr ""
  41752. #. type: deftypevr
  41753. #: guix-git/doc/guix.texi:27872
  41754. #, no-wrap
  41755. msgid "{@code{openvpn-client-configuration} parameter} openvpn-remote-list remote"
  41756. msgstr ""
  41757. #. type: deftypevr
  41758. #: guix-git/doc/guix.texi:27874
  41759. msgid "A list of remote servers to connect to."
  41760. msgstr ""
  41761. #. type: deftypevr
  41762. #: guix-git/doc/guix.texi:27878
  41763. msgid "Available @code{openvpn-remote-configuration} fields are:"
  41764. msgstr ""
  41765. #. type: deftypevr
  41766. #: guix-git/doc/guix.texi:27879
  41767. #, no-wrap
  41768. msgid "{@code{openvpn-remote-configuration} parameter} string name"
  41769. msgstr ""
  41770. #. type: deftypevr
  41771. #: guix-git/doc/guix.texi:27881
  41772. msgid "Server name."
  41773. msgstr ""
  41774. #. type: deftypevr
  41775. #: guix-git/doc/guix.texi:27883
  41776. msgid "Defaults to @samp{\"my-server\"}."
  41777. msgstr ""
  41778. #. type: deftypevr
  41779. #: guix-git/doc/guix.texi:27886
  41780. #, no-wrap
  41781. msgid "{@code{openvpn-remote-configuration} parameter} number port"
  41782. msgstr ""
  41783. #. type: deftypevr
  41784. #: guix-git/doc/guix.texi:27888
  41785. msgid "Port number the server listens to."
  41786. msgstr ""
  41787. #. type: deftypevr
  41788. #: guix-git/doc/guix.texi:27890 guix-git/doc/guix.texi:28002
  41789. msgid "Defaults to @samp{1194}."
  41790. msgstr ""
  41791. #. type: Plain text
  41792. #: guix-git/doc/guix.texi:27899
  41793. msgid "Available @code{openvpn-server-configuration} fields are:"
  41794. msgstr ""
  41795. #. type: deftypevr
  41796. #: guix-git/doc/guix.texi:27900
  41797. #, no-wrap
  41798. msgid "{@code{openvpn-server-configuration} parameter} package openvpn"
  41799. msgstr ""
  41800. #. type: deftypevr
  41801. #: guix-git/doc/guix.texi:27905
  41802. #, no-wrap
  41803. msgid "{@code{openvpn-server-configuration} parameter} string pid-file"
  41804. msgstr ""
  41805. #. type: deftypevr
  41806. #: guix-git/doc/guix.texi:27912
  41807. #, no-wrap
  41808. msgid "{@code{openvpn-server-configuration} parameter} proto proto"
  41809. msgstr ""
  41810. #. type: deftypevr
  41811. #: guix-git/doc/guix.texi:27920
  41812. #, no-wrap
  41813. msgid "{@code{openvpn-server-configuration} parameter} dev dev"
  41814. msgstr ""
  41815. #. type: deftypevr
  41816. #: guix-git/doc/guix.texi:27931
  41817. #, no-wrap
  41818. msgid "{@code{openvpn-server-configuration} parameter} maybe-string ca"
  41819. msgstr ""
  41820. #. type: deftypevr
  41821. #: guix-git/doc/guix.texi:27938
  41822. #, no-wrap
  41823. msgid "{@code{openvpn-server-configuration} parameter} maybe-string cert"
  41824. msgstr ""
  41825. #. type: deftypevr
  41826. #: guix-git/doc/guix.texi:27946
  41827. #, no-wrap
  41828. msgid "{@code{openvpn-server-configuration} parameter} maybe-string key"
  41829. msgstr ""
  41830. #. type: deftypevr
  41831. #: guix-git/doc/guix.texi:27954
  41832. #, no-wrap
  41833. msgid "{@code{openvpn-server-configuration} parameter} boolean comp-lzo?"
  41834. msgstr ""
  41835. #. type: deftypevr
  41836. #: guix-git/doc/guix.texi:27961
  41837. #, no-wrap
  41838. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-key?"
  41839. msgstr ""
  41840. #. type: deftypevr
  41841. #: guix-git/doc/guix.texi:27968
  41842. #, no-wrap
  41843. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-tun?"
  41844. msgstr ""
  41845. #. type: deftypevr
  41846. #: guix-git/doc/guix.texi:27976
  41847. #, no-wrap
  41848. msgid "{@code{openvpn-server-configuration} parameter} boolean fast-io?"
  41849. msgstr ""
  41850. #. type: deftypevr
  41851. #: guix-git/doc/guix.texi:27983
  41852. #, no-wrap
  41853. msgid "{@code{openvpn-server-configuration} parameter} number verbosity"
  41854. msgstr ""
  41855. #. type: deftypevr
  41856. #: guix-git/doc/guix.texi:27990
  41857. #, no-wrap
  41858. msgid "{@code{openvpn-server-configuration} parameter} tls-auth-server tls-auth"
  41859. msgstr ""
  41860. #. type: deftypevr
  41861. #: guix-git/doc/guix.texi:27998
  41862. #, no-wrap
  41863. msgid "{@code{openvpn-server-configuration} parameter} number port"
  41864. msgstr ""
  41865. #. type: deftypevr
  41866. #: guix-git/doc/guix.texi:28000
  41867. msgid "Specifies the port number on which the server listens."
  41868. msgstr ""
  41869. #. type: deftypevr
  41870. #: guix-git/doc/guix.texi:28005
  41871. #, no-wrap
  41872. msgid "{@code{openvpn-server-configuration} parameter} ip-mask server"
  41873. msgstr ""
  41874. #. type: deftypevr
  41875. #: guix-git/doc/guix.texi:28007
  41876. msgid "An ip and mask specifying the subnet inside the virtual network."
  41877. msgstr ""
  41878. #. type: deftypevr
  41879. #: guix-git/doc/guix.texi:28009
  41880. msgid "Defaults to @samp{\"10.8.0.0 255.255.255.0\"}."
  41881. msgstr ""
  41882. #. type: deftypevr
  41883. #: guix-git/doc/guix.texi:28012
  41884. #, no-wrap
  41885. msgid "{@code{openvpn-server-configuration} parameter} cidr6 server-ipv6"
  41886. msgstr ""
  41887. #. type: deftypevr
  41888. #: guix-git/doc/guix.texi:28014
  41889. msgid "A CIDR notation specifying the IPv6 subnet inside the virtual network."
  41890. msgstr ""
  41891. #. type: deftypevr
  41892. #: guix-git/doc/guix.texi:28019
  41893. #, no-wrap
  41894. msgid "{@code{openvpn-server-configuration} parameter} string dh"
  41895. msgstr ""
  41896. #. type: deftypevr
  41897. #: guix-git/doc/guix.texi:28021
  41898. msgid "The Diffie-Hellman parameters file."
  41899. msgstr ""
  41900. #. type: deftypevr
  41901. #: guix-git/doc/guix.texi:28023
  41902. msgid "Defaults to @samp{\"/etc/openvpn/dh2048.pem\"}."
  41903. msgstr ""
  41904. #. type: deftypevr
  41905. #: guix-git/doc/guix.texi:28026
  41906. #, no-wrap
  41907. msgid "{@code{openvpn-server-configuration} parameter} string ifconfig-pool-persist"
  41908. msgstr ""
  41909. #. type: deftypevr
  41910. #: guix-git/doc/guix.texi:28028
  41911. msgid "The file that records client IPs."
  41912. msgstr ""
  41913. #. type: deftypevr
  41914. #: guix-git/doc/guix.texi:28030
  41915. msgid "Defaults to @samp{\"/etc/openvpn/ipp.txt\"}."
  41916. msgstr ""
  41917. #. type: deftypevr
  41918. #: guix-git/doc/guix.texi:28033
  41919. #, no-wrap
  41920. msgid "{@code{openvpn-server-configuration} parameter} gateway redirect-gateway?"
  41921. msgstr ""
  41922. #. type: deftypevr
  41923. #: guix-git/doc/guix.texi:28035
  41924. msgid "When true, the server will act as a gateway for its clients."
  41925. msgstr ""
  41926. #. type: deftypevr
  41927. #: guix-git/doc/guix.texi:28040
  41928. #, no-wrap
  41929. msgid "{@code{openvpn-server-configuration} parameter} boolean client-to-client?"
  41930. msgstr ""
  41931. #. type: deftypevr
  41932. #: guix-git/doc/guix.texi:28042
  41933. msgid "When true, clients are allowed to talk to each other inside the VPN."
  41934. msgstr ""
  41935. #. type: deftypevr
  41936. #: guix-git/doc/guix.texi:28047
  41937. #, no-wrap
  41938. msgid "{@code{openvpn-server-configuration} parameter} keepalive keepalive"
  41939. msgstr ""
  41940. #. type: deftypevr
  41941. #: guix-git/doc/guix.texi:28053
  41942. 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."
  41943. msgstr ""
  41944. #. type: deftypevr
  41945. #: guix-git/doc/guix.texi:28056
  41946. #, no-wrap
  41947. msgid "{@code{openvpn-server-configuration} parameter} number max-clients"
  41948. msgstr ""
  41949. #. type: deftypevr
  41950. #: guix-git/doc/guix.texi:28058
  41951. msgid "The maximum number of clients."
  41952. msgstr ""
  41953. #. type: deftypevr
  41954. #: guix-git/doc/guix.texi:28063
  41955. #, no-wrap
  41956. msgid "{@code{openvpn-server-configuration} parameter} string status"
  41957. msgstr ""
  41958. #. type: deftypevr
  41959. #: guix-git/doc/guix.texi:28066
  41960. msgid "The status file. This file shows a small report on current connection. It is truncated and rewritten every minute."
  41961. msgstr ""
  41962. #. type: deftypevr
  41963. #: guix-git/doc/guix.texi:28068
  41964. msgid "Defaults to @samp{\"/var/run/openvpn/status\"}."
  41965. msgstr ""
  41966. #. type: deftypevr
  41967. #: guix-git/doc/guix.texi:28071
  41968. #, no-wrap
  41969. msgid "{@code{openvpn-server-configuration} parameter} openvpn-ccd-list client-config-dir"
  41970. msgstr ""
  41971. #. type: deftypevr
  41972. #: guix-git/doc/guix.texi:28073
  41973. msgid "The list of configuration for some clients."
  41974. msgstr ""
  41975. #. type: deftypevr
  41976. #: guix-git/doc/guix.texi:28077
  41977. msgid "Available @code{openvpn-ccd-configuration} fields are:"
  41978. msgstr ""
  41979. #. type: deftypevr
  41980. #: guix-git/doc/guix.texi:28078
  41981. #, no-wrap
  41982. msgid "{@code{openvpn-ccd-configuration} parameter} string name"
  41983. msgstr ""
  41984. #. type: deftypevr
  41985. #: guix-git/doc/guix.texi:28080
  41986. msgid "Client name."
  41987. msgstr ""
  41988. #. type: deftypevr
  41989. #: guix-git/doc/guix.texi:28082
  41990. msgid "Defaults to @samp{\"client\"}."
  41991. msgstr ""
  41992. #. type: deftypevr
  41993. #: guix-git/doc/guix.texi:28085
  41994. #, no-wrap
  41995. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask iroute"
  41996. msgstr ""
  41997. #. type: deftypevr
  41998. #: guix-git/doc/guix.texi:28087
  41999. msgid "Client own network"
  42000. msgstr ""
  42001. #. type: deftypevr
  42002. #: guix-git/doc/guix.texi:28092
  42003. #, no-wrap
  42004. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask ifconfig-push"
  42005. msgstr ""
  42006. #. type: deftypevr
  42007. #: guix-git/doc/guix.texi:28094
  42008. msgid "Client VPN IP."
  42009. msgstr ""
  42010. #. type: subheading
  42011. #: guix-git/doc/guix.texi:28103
  42012. #, no-wrap
  42013. msgid "strongSwan"
  42014. msgstr ""
  42015. #. type: Plain text
  42016. #: guix-git/doc/guix.texi:28107
  42017. msgid "Currently, the strongSwan service only provides legacy-style configuration with @file{ipsec.conf} and @file{ipsec.secrets} files."
  42018. msgstr ""
  42019. #. type: defvr
  42020. #: guix-git/doc/guix.texi:28108
  42021. #, no-wrap
  42022. msgid "{Scheme Variable} strongswan-service-type"
  42023. msgstr ""
  42024. #. type: defvr
  42025. #: guix-git/doc/guix.texi:28112
  42026. 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:"
  42027. msgstr ""
  42028. #. type: lisp
  42029. #: guix-git/doc/guix.texi:28118
  42030. #, no-wrap
  42031. msgid ""
  42032. "(service strongswan-service-type\n"
  42033. " (strongswan-configuration\n"
  42034. " (ipsec-conf \"/etc/ipsec.conf\")\n"
  42035. " (ipsec-secrets \"/etc/ipsec.secrets\")))\n"
  42036. msgstr ""
  42037. #. type: deftp
  42038. #: guix-git/doc/guix.texi:28122
  42039. #, fuzzy, no-wrap
  42040. msgid "{Data Type} strongswan-configuration"
  42041. msgstr "系统配置"
  42042. #. type: deftp
  42043. #: guix-git/doc/guix.texi:28124
  42044. #, fuzzy
  42045. msgid "Data type representing the configuration of the StrongSwan service."
  42046. msgstr "管理操作系统配置。"
  42047. #. type: code{#1}
  42048. #: guix-git/doc/guix.texi:28126
  42049. #, no-wrap
  42050. msgid "strongswan"
  42051. msgstr ""
  42052. #. type: table
  42053. #: guix-git/doc/guix.texi:28128
  42054. #, fuzzy
  42055. msgid "The strongSwan package to use for this service."
  42056. msgstr "软件包数据类型。"
  42057. #. type: item
  42058. #: guix-git/doc/guix.texi:28129
  42059. #, fuzzy, no-wrap
  42060. msgid "@code{ipsec-conf} (default: @code{#f})"
  42061. msgstr "@code{port}(默认值:@code{22})"
  42062. #. type: table
  42063. #: guix-git/doc/guix.texi:28132
  42064. msgid "The file name of your @file{ipsec.conf}. If not @code{#f}, then this and @code{ipsec-secrets} must both be strings."
  42065. msgstr ""
  42066. #. type: item
  42067. #: guix-git/doc/guix.texi:28133
  42068. #, fuzzy, no-wrap
  42069. msgid "@code{ipsec-secrets} (default @code{#f})"
  42070. msgstr "@code{speed}(默认值:@code{1.0})"
  42071. #. type: table
  42072. #: guix-git/doc/guix.texi:28136
  42073. msgid "The file name of your @file{ipsec.secrets}. If not @code{#f}, then this and @code{ipsec-conf} must both be strings."
  42074. msgstr ""
  42075. #. type: subsubheading
  42076. #: guix-git/doc/guix.texi:28140
  42077. #, no-wrap
  42078. msgid "Wireguard"
  42079. msgstr ""
  42080. #. type: defvr
  42081. #: guix-git/doc/guix.texi:28142
  42082. #, no-wrap
  42083. msgid "{Scheme Variable} wireguard-service-type"
  42084. msgstr ""
  42085. #. type: defvr
  42086. #: guix-git/doc/guix.texi:28145
  42087. msgid "A service type for a Wireguard tunnel interface. Its value must be a @code{wireguard-configuration} record as in this example:"
  42088. msgstr ""
  42089. #. type: lisp
  42090. #: guix-git/doc/guix.texi:28156
  42091. #, no-wrap
  42092. msgid ""
  42093. "(service wireguard-service-type\n"
  42094. " (wireguard-configuration\n"
  42095. " (peers\n"
  42096. " (list\n"
  42097. " (wireguard-peer\n"
  42098. " (name \"my-peer\")\n"
  42099. " (endpoint \"my.wireguard.com:51820\")\n"
  42100. " (public-key \"hzpKg9X1yqu1axN6iJp0mWf6BZGo8m1wteKwtTmDGF4=\")\n"
  42101. " (allowed-ips '(\"10.0.0.2/32\")))))))\n"
  42102. msgstr ""
  42103. #. type: deftp
  42104. #: guix-git/doc/guix.texi:28160
  42105. #, fuzzy, no-wrap
  42106. msgid "{Data Type} wireguard-configuration"
  42107. msgstr "{数据类型} build-machine"
  42108. #. type: deftp
  42109. #: guix-git/doc/guix.texi:28162
  42110. #, fuzzy
  42111. msgid "Data type representing the configuration of the Wireguard service."
  42112. msgstr "管理操作系统配置。"
  42113. #. type: code{#1}
  42114. #: guix-git/doc/guix.texi:28164
  42115. #, no-wrap
  42116. msgid "wireguard"
  42117. msgstr ""
  42118. #. type: table
  42119. #: guix-git/doc/guix.texi:28166
  42120. #, fuzzy
  42121. msgid "The wireguard package to use for this service."
  42122. msgstr "软件包数据类型。"
  42123. #. type: item
  42124. #: guix-git/doc/guix.texi:28167
  42125. #, fuzzy, no-wrap
  42126. msgid "@code{interface} (default: @code{\"wg0\"})"
  42127. msgstr "@code{display}(默认值:@code{\":0\"})"
  42128. #. type: table
  42129. #: guix-git/doc/guix.texi:28169
  42130. msgid "The interface name for the VPN."
  42131. msgstr ""
  42132. #. type: item
  42133. #: guix-git/doc/guix.texi:28170
  42134. #, fuzzy, no-wrap
  42135. msgid "@code{addresses} (default: @code{'(\"10.0.0.1/32\")})"
  42136. msgstr "@code{display}(默认值:@code{\":0\"})"
  42137. #. type: table
  42138. #: guix-git/doc/guix.texi:28172
  42139. msgid "The IP addresses to be assigned to the above interface."
  42140. msgstr ""
  42141. #. type: item
  42142. #: guix-git/doc/guix.texi:28173
  42143. #, fuzzy, no-wrap
  42144. msgid "@code{port} (default: @code{51820})"
  42145. msgstr "@code{port}(默认值:@code{22})"
  42146. #. type: table
  42147. #: guix-git/doc/guix.texi:28175
  42148. msgid "The port on which to listen for incoming connections."
  42149. msgstr ""
  42150. #. type: item
  42151. #: guix-git/doc/guix.texi:28176
  42152. #, fuzzy, no-wrap
  42153. msgid "@code{private-key} (default: @code{\"/etc/wireguard/private.key\"})"
  42154. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  42155. #. type: table
  42156. #: guix-git/doc/guix.texi:28179
  42157. msgid "The private key file for the interface. It is automatically generated if the file does not exist."
  42158. msgstr ""
  42159. #. type: item
  42160. #: guix-git/doc/guix.texi:28180
  42161. #, fuzzy, no-wrap
  42162. msgid "@code{peers} (default: @code{'()})"
  42163. msgstr "@code{features} (@code{'()})"
  42164. #. type: table
  42165. #: guix-git/doc/guix.texi:28183
  42166. msgid "The authorized peers on this interface. This is a list of @var{wireguard-peer} records."
  42167. msgstr ""
  42168. #. type: deftp
  42169. #: guix-git/doc/guix.texi:28187
  42170. #, fuzzy, no-wrap
  42171. msgid "{Data Type} wireguard-peer"
  42172. msgstr "{数据类型} build-machine"
  42173. #. type: deftp
  42174. #: guix-git/doc/guix.texi:28189
  42175. #, fuzzy
  42176. msgid "Data type representing a Wireguard peer attached to a given interface."
  42177. msgstr "管理操作系统配置。"
  42178. #. type: table
  42179. #: guix-git/doc/guix.texi:28193
  42180. #, fuzzy
  42181. msgid "The peer name."
  42182. msgstr "仓库monad"
  42183. #. type: item
  42184. #: guix-git/doc/guix.texi:28194
  42185. #, fuzzy, no-wrap
  42186. msgid "@code{endpoint} (default: @code{#f})"
  42187. msgstr "@code{port}(默认值:@code{22})"
  42188. #. type: table
  42189. #: guix-git/doc/guix.texi:28197
  42190. msgid "The optional endpoint for the peer, such as @code{\"demo.wireguard.com:51820\"}."
  42191. msgstr ""
  42192. #. type: itemx
  42193. #: guix-git/doc/guix.texi:28198 guix-git/doc/guix.texi:28593
  42194. #: guix-git/doc/guix.texi:28630 guix-git/doc/guix.texi:33744
  42195. #, no-wrap
  42196. msgid "public-key"
  42197. msgstr ""
  42198. #. type: table
  42199. #: guix-git/doc/guix.texi:28200
  42200. msgid "The peer public-key represented as a base64 string."
  42201. msgstr ""
  42202. #. type: code{#1}
  42203. #: guix-git/doc/guix.texi:28201
  42204. #, no-wrap
  42205. msgid "allowed-ips"
  42206. msgstr ""
  42207. #. type: table
  42208. #: guix-git/doc/guix.texi:28204
  42209. 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."
  42210. msgstr ""
  42211. #. type: item
  42212. #: guix-git/doc/guix.texi:28205
  42213. #, fuzzy, no-wrap
  42214. msgid "@code{keep-alive} (default: @code{#f})"
  42215. msgstr "@code{challenge}(默认值:@code{#f})"
  42216. #. type: table
  42217. #: guix-git/doc/guix.texi:28210
  42218. 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."
  42219. msgstr ""
  42220. #. type: cindex
  42221. #: guix-git/doc/guix.texi:28216
  42222. #, no-wrap
  42223. msgid "NFS"
  42224. msgstr ""
  42225. #. type: Plain text
  42226. #: guix-git/doc/guix.texi:28221
  42227. 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)."
  42228. msgstr ""
  42229. #. type: Plain text
  42230. #: guix-git/doc/guix.texi:28225
  42231. 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}."
  42232. msgstr ""
  42233. #. type: subsubheading
  42234. #: guix-git/doc/guix.texi:28226
  42235. #, fuzzy, no-wrap
  42236. msgid "NFS Service"
  42237. msgstr "DNS服务"
  42238. #. type: cindex
  42239. #: guix-git/doc/guix.texi:28227
  42240. #, fuzzy, no-wrap
  42241. msgid "NFS, server"
  42242. msgstr "Web服务。"
  42243. #. type: Plain text
  42244. #: guix-git/doc/guix.texi:28232
  42245. 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."
  42246. msgstr ""
  42247. #. type: defvr
  42248. #: guix-git/doc/guix.texi:28233
  42249. #, no-wrap
  42250. msgid "{Scheme Variable} nfs-service-type"
  42251. msgstr ""
  42252. #. type: defvr
  42253. #: guix-git/doc/guix.texi:28235
  42254. msgid "A service type for a complete NFS server."
  42255. msgstr ""
  42256. #. type: deftp
  42257. #: guix-git/doc/guix.texi:28237
  42258. #, fuzzy, no-wrap
  42259. msgid "{Data Type} nfs-configuration"
  42260. msgstr "系统配置"
  42261. #. type: deftp
  42262. #: guix-git/doc/guix.texi:28240
  42263. msgid "This data type represents the configuration of the NFS service and all of its subsystems."
  42264. msgstr ""
  42265. #. type: deftp
  42266. #: guix-git/doc/guix.texi:28242
  42267. #, fuzzy
  42268. msgid "It has the following parameters:"
  42269. msgstr "GNU Guix依赖这些软件包:"
  42270. #. type: item
  42271. #: guix-git/doc/guix.texi:28243 guix-git/doc/guix.texi:28368
  42272. #: guix-git/doc/guix.texi:28393
  42273. #, no-wrap
  42274. msgid "@code{nfs-utils} (default: @code{nfs-utils})"
  42275. msgstr ""
  42276. #. type: table
  42277. #: guix-git/doc/guix.texi:28245
  42278. #, fuzzy
  42279. msgid "The nfs-utils package to use."
  42280. msgstr "软件包数据类型。"
  42281. #. type: item
  42282. #: guix-git/doc/guix.texi:28246
  42283. #, fuzzy, no-wrap
  42284. msgid "@code{nfs-versions} (default: @code{'(\"4.2\" \"4.1\" \"4.0\")})"
  42285. msgstr "@code{features} (@code{'()})"
  42286. #. type: table
  42287. #: guix-git/doc/guix.texi:28249
  42288. 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."
  42289. msgstr ""
  42290. #. type: item
  42291. #: guix-git/doc/guix.texi:28250
  42292. #, fuzzy, no-wrap
  42293. msgid "@code{exports} (default: @code{'()})"
  42294. msgstr "@code{port}(默认值:@code{22})"
  42295. #. type: table
  42296. #: guix-git/doc/guix.texi:28255
  42297. 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:"
  42298. msgstr ""
  42299. #. type: lisp
  42300. #: guix-git/doc/guix.texi:28261
  42301. #, no-wrap
  42302. msgid ""
  42303. "(nfs-configuration\n"
  42304. " (exports\n"
  42305. " '((\"/export\"\n"
  42306. " \"*(ro,insecure,no_subtree_check,crossmnt,fsid=0)\"))))\n"
  42307. msgstr ""
  42308. #. type: item
  42309. #: guix-git/doc/guix.texi:28263
  42310. #, fuzzy, no-wrap
  42311. msgid "@code{rpcmountd-port} (default: @code{#f})"
  42312. msgstr "@code{port}(默认值:@code{22})"
  42313. #. type: table
  42314. #: guix-git/doc/guix.texi:28265
  42315. msgid "The network port that the @command{rpc.mountd} daemon should use."
  42316. msgstr ""
  42317. #. type: item
  42318. #: guix-git/doc/guix.texi:28266
  42319. #, fuzzy, no-wrap
  42320. msgid "@code{rpcstatd-port} (default: @code{#f})"
  42321. msgstr "@code{port}(默认值:@code{22})"
  42322. #. type: table
  42323. #: guix-git/doc/guix.texi:28268
  42324. msgid "The network port that the @command{rpc.statd} daemon should use."
  42325. msgstr ""
  42326. #. type: item
  42327. #: guix-git/doc/guix.texi:28269 guix-git/doc/guix.texi:28317
  42328. #, no-wrap
  42329. msgid "@code{rpcbind} (default: @code{rpcbind})"
  42330. msgstr ""
  42331. #. type: table
  42332. #: guix-git/doc/guix.texi:28271 guix-git/doc/guix.texi:28319
  42333. msgid "The rpcbind package to use."
  42334. msgstr ""
  42335. #. type: item
  42336. #: guix-git/doc/guix.texi:28272
  42337. #, fuzzy, no-wrap
  42338. msgid "@code{idmap-domain} (default: @code{\"localdomain\"})"
  42339. msgstr "@code{mate}(默认值:@code{mate})"
  42340. #. type: table
  42341. #: guix-git/doc/guix.texi:28274
  42342. msgid "The local NFSv4 domain name."
  42343. msgstr ""
  42344. #. type: item
  42345. #: guix-git/doc/guix.texi:28275
  42346. #, fuzzy, no-wrap
  42347. msgid "@code{nfsd-port} (default: @code{2049})"
  42348. msgstr "@code{port}(默认值:@code{22})"
  42349. #. type: table
  42350. #: guix-git/doc/guix.texi:28277
  42351. msgid "The network port that the @command{nfsd} daemon should use."
  42352. msgstr ""
  42353. #. type: item
  42354. #: guix-git/doc/guix.texi:28278
  42355. #, fuzzy, no-wrap
  42356. msgid "@code{nfsd-threads} (default: @code{8})"
  42357. msgstr "@code{features} (@code{'()})"
  42358. #. type: table
  42359. #: guix-git/doc/guix.texi:28280
  42360. msgid "The number of threads used by the @command{nfsd} daemon."
  42361. msgstr ""
  42362. #. type: item
  42363. #: guix-git/doc/guix.texi:28281
  42364. #, fuzzy, no-wrap
  42365. msgid "@code{nfsd-tcp?} (default: @code{#t})"
  42366. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  42367. #. type: table
  42368. #: guix-git/doc/guix.texi:28283
  42369. msgid "Whether the @command{nfsd} daemon should listen on a TCP socket."
  42370. msgstr ""
  42371. #. type: item
  42372. #: guix-git/doc/guix.texi:28284
  42373. #, fuzzy, no-wrap
  42374. msgid "@code{nfsd-udp?} (default: @code{#f})"
  42375. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  42376. #. type: table
  42377. #: guix-git/doc/guix.texi:28286
  42378. msgid "Whether the @command{nfsd} daemon should listen on a UDP socket."
  42379. msgstr ""
  42380. #. type: item
  42381. #: guix-git/doc/guix.texi:28287 guix-git/doc/guix.texi:28371
  42382. #: guix-git/doc/guix.texi:28396
  42383. #, no-wrap
  42384. msgid "@code{pipefs-directory} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  42385. msgstr ""
  42386. #. type: table
  42387. #: guix-git/doc/guix.texi:28289 guix-git/doc/guix.texi:28373
  42388. #: guix-git/doc/guix.texi:28398
  42389. msgid "The directory where the pipefs file system is mounted."
  42390. msgstr ""
  42391. #. type: item
  42392. #: guix-git/doc/guix.texi:28290
  42393. #, fuzzy, no-wrap
  42394. msgid "@code{debug} (default: @code{'()\"})"
  42395. msgstr "@code{features} (@code{'()})"
  42396. #. type: table
  42397. #: guix-git/doc/guix.texi:28294
  42398. 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}."
  42399. msgstr ""
  42400. #. type: Plain text
  42401. #: guix-git/doc/guix.texi:28299
  42402. 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."
  42403. msgstr ""
  42404. #. type: subsubheading
  42405. #: guix-git/doc/guix.texi:28300
  42406. #, no-wrap
  42407. msgid "RPC Bind Service"
  42408. msgstr ""
  42409. #. type: cindex
  42410. #: guix-git/doc/guix.texi:28301
  42411. #, no-wrap
  42412. msgid "rpcbind"
  42413. msgstr ""
  42414. #. type: Plain text
  42415. #: guix-git/doc/guix.texi:28307
  42416. 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."
  42417. msgstr ""
  42418. #. type: defvr
  42419. #: guix-git/doc/guix.texi:28308
  42420. #, no-wrap
  42421. msgid "{Scheme Variable} rpcbind-service-type"
  42422. msgstr ""
  42423. #. type: defvr
  42424. #: guix-git/doc/guix.texi:28310
  42425. msgid "A service type for the RPC portmapper daemon."
  42426. msgstr ""
  42427. #. type: deftp
  42428. #: guix-git/doc/guix.texi:28313
  42429. #, no-wrap
  42430. msgid "{Data Type} rpcbind-configuration"
  42431. msgstr ""
  42432. #. type: deftp
  42433. #: guix-git/doc/guix.texi:28316
  42434. msgid "Data type representing the configuration of the RPC Bind Service. This type has the following parameters:"
  42435. msgstr ""
  42436. #. type: item
  42437. #: guix-git/doc/guix.texi:28320
  42438. #, no-wrap
  42439. msgid "@code{warm-start?} (default: @code{#t})"
  42440. msgstr ""
  42441. #. type: table
  42442. #: guix-git/doc/guix.texi:28324
  42443. 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."
  42444. msgstr ""
  42445. #. type: subsubheading
  42446. #: guix-git/doc/guix.texi:28328
  42447. #, no-wrap
  42448. msgid "Pipefs Pseudo File System"
  42449. msgstr ""
  42450. #. type: cindex
  42451. #: guix-git/doc/guix.texi:28329
  42452. #, no-wrap
  42453. msgid "pipefs"
  42454. msgstr ""
  42455. #. type: cindex
  42456. #: guix-git/doc/guix.texi:28330
  42457. #, no-wrap
  42458. msgid "rpc_pipefs"
  42459. msgstr ""
  42460. #. type: Plain text
  42461. #: guix-git/doc/guix.texi:28334
  42462. msgid "The pipefs file system is used to transfer NFS related data between the kernel and user space programs."
  42463. msgstr ""
  42464. #. type: defvr
  42465. #: guix-git/doc/guix.texi:28335
  42466. #, no-wrap
  42467. msgid "{Scheme Variable} pipefs-service-type"
  42468. msgstr ""
  42469. #. type: defvr
  42470. #: guix-git/doc/guix.texi:28337
  42471. msgid "A service type for the pipefs pseudo file system."
  42472. msgstr ""
  42473. #. type: deftp
  42474. #: guix-git/doc/guix.texi:28339
  42475. #, no-wrap
  42476. msgid "{Data Type} pipefs-configuration"
  42477. msgstr ""
  42478. #. type: deftp
  42479. #: guix-git/doc/guix.texi:28342
  42480. msgid "Data type representing the configuration of the pipefs pseudo file system service. This type has the following parameters:"
  42481. msgstr ""
  42482. #. type: item
  42483. #: guix-git/doc/guix.texi:28343
  42484. #, no-wrap
  42485. msgid "@code{mount-point} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  42486. msgstr ""
  42487. #. type: table
  42488. #: guix-git/doc/guix.texi:28345
  42489. msgid "The directory to which the file system is to be attached."
  42490. msgstr ""
  42491. #. type: subsubheading
  42492. #: guix-git/doc/guix.texi:28349
  42493. #, no-wrap
  42494. msgid "GSS Daemon Service"
  42495. msgstr ""
  42496. #. type: cindex
  42497. #: guix-git/doc/guix.texi:28350
  42498. #, no-wrap
  42499. msgid "GSSD"
  42500. msgstr ""
  42501. #. type: cindex
  42502. #: guix-git/doc/guix.texi:28351
  42503. #, no-wrap
  42504. msgid "GSS"
  42505. msgstr ""
  42506. #. type: cindex
  42507. #: guix-git/doc/guix.texi:28352
  42508. #, no-wrap
  42509. msgid "global security system"
  42510. msgstr ""
  42511. #. type: Plain text
  42512. #: guix-git/doc/guix.texi:28359
  42513. 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})."
  42514. msgstr ""
  42515. #. type: defvr
  42516. #: guix-git/doc/guix.texi:28360
  42517. #, no-wrap
  42518. msgid "{Scheme Variable} gss-service-type"
  42519. msgstr ""
  42520. #. type: defvr
  42521. #: guix-git/doc/guix.texi:28362
  42522. msgid "A service type for the Global Security System (GSS) daemon."
  42523. msgstr ""
  42524. #. type: deftp
  42525. #: guix-git/doc/guix.texi:28364
  42526. #, no-wrap
  42527. msgid "{Data Type} gss-configuration"
  42528. msgstr ""
  42529. #. type: deftp
  42530. #: guix-git/doc/guix.texi:28367
  42531. msgid "Data type representing the configuration of the GSS daemon service. This type has the following parameters:"
  42532. msgstr ""
  42533. #. type: table
  42534. #: guix-git/doc/guix.texi:28370
  42535. msgid "The package in which the @command{rpc.gssd} command is to be found."
  42536. msgstr ""
  42537. #. type: subsubheading
  42538. #: guix-git/doc/guix.texi:28378
  42539. #, no-wrap
  42540. msgid "IDMAP Daemon Service"
  42541. msgstr ""
  42542. #. type: cindex
  42543. #: guix-git/doc/guix.texi:28379
  42544. #, no-wrap
  42545. msgid "idmapd"
  42546. msgstr ""
  42547. #. type: cindex
  42548. #: guix-git/doc/guix.texi:28380
  42549. #, no-wrap
  42550. msgid "name mapper"
  42551. msgstr ""
  42552. #. type: Plain text
  42553. #: guix-git/doc/guix.texi:28384
  42554. 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."
  42555. msgstr ""
  42556. #. type: defvr
  42557. #: guix-git/doc/guix.texi:28385
  42558. #, no-wrap
  42559. msgid "{Scheme Variable} idmap-service-type"
  42560. msgstr ""
  42561. #. type: defvr
  42562. #: guix-git/doc/guix.texi:28387
  42563. msgid "A service type for the Identity Mapper (IDMAP) daemon."
  42564. msgstr ""
  42565. #. type: deftp
  42566. #: guix-git/doc/guix.texi:28389
  42567. #, no-wrap
  42568. msgid "{Data Type} idmap-configuration"
  42569. msgstr ""
  42570. #. type: deftp
  42571. #: guix-git/doc/guix.texi:28392
  42572. msgid "Data type representing the configuration of the IDMAP daemon service. This type has the following parameters:"
  42573. msgstr ""
  42574. #. type: table
  42575. #: guix-git/doc/guix.texi:28395
  42576. msgid "The package in which the @command{rpc.idmapd} command is to be found."
  42577. msgstr ""
  42578. #. type: item
  42579. #: guix-git/doc/guix.texi:28399
  42580. #, no-wrap
  42581. msgid "@code{domain} (default: @code{#f})"
  42582. msgstr ""
  42583. #. type: table
  42584. #: guix-git/doc/guix.texi:28403
  42585. 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."
  42586. msgstr ""
  42587. #. type: item
  42588. #: guix-git/doc/guix.texi:28404
  42589. #, fuzzy, no-wrap
  42590. msgid "@code{verbosity} (default: @code{0})"
  42591. msgstr "@code{port}(默认值:@code{22})"
  42592. #. type: table
  42593. #: guix-git/doc/guix.texi:28406
  42594. #, fuzzy
  42595. msgid "The verbosity level of the daemon."
  42596. msgstr "远程机器的主机名。"
  42597. #. type: Plain text
  42598. #: guix-git/doc/guix.texi:28417
  42599. 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})."
  42600. msgstr ""
  42601. #. type: Plain text
  42602. #: guix-git/doc/guix.texi:28419
  42603. msgid "The @code{(gnu services cuirass)} module provides the following service."
  42604. msgstr ""
  42605. #. type: defvr
  42606. #: guix-git/doc/guix.texi:28420
  42607. #, no-wrap
  42608. msgid "{Scheme Procedure} cuirass-service-type"
  42609. msgstr ""
  42610. #. type: defvr
  42611. #: guix-git/doc/guix.texi:28423
  42612. msgid "The type of the Cuirass service. Its value must be a @code{cuirass-configuration} object, as described below."
  42613. msgstr ""
  42614. #. type: Plain text
  42615. #: guix-git/doc/guix.texi:28428
  42616. 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."
  42617. msgstr ""
  42618. #. type: lisp
  42619. #: guix-git/doc/guix.texi:28439
  42620. #, no-wrap
  42621. msgid ""
  42622. "(define %cuirass-specs\n"
  42623. " #~(list (specification\n"
  42624. " (name \"my-channel\")\n"
  42625. " (build '(channels my-channel))\n"
  42626. " (channels\n"
  42627. " (cons (channel\n"
  42628. " (name 'my-channel)\n"
  42629. " (url \"https://my-channel.git\"))\n"
  42630. " %default-channels)))))\n"
  42631. "\n"
  42632. msgstr ""
  42633. #. type: lisp
  42634. #: guix-git/doc/guix.texi:28443 guix-git/doc/guix.texi:28457
  42635. #, no-wrap
  42636. msgid ""
  42637. "(service cuirass-service-type\n"
  42638. " (cuirass-configuration\n"
  42639. " (specifications %cuirass-specs)))\n"
  42640. msgstr ""
  42641. #. type: Plain text
  42642. #: guix-git/doc/guix.texi:28447
  42643. msgid "To build the @code{linux-libre} package defined by the default Guix channel, one can use the following configuration."
  42644. msgstr ""
  42645. #. type: lisp
  42646. #: guix-git/doc/guix.texi:28453
  42647. #, no-wrap
  42648. msgid ""
  42649. "(define %cuirass-specs\n"
  42650. " #~(list (specification\n"
  42651. " (name \"my-linux\")\n"
  42652. " (build '(packages \"linux-libre\")))))\n"
  42653. "\n"
  42654. msgstr ""
  42655. #. type: Plain text
  42656. #: guix-git/doc/guix.texi:28462
  42657. msgid "The other configuration possibilities, as well as the specification record itself are described in the Cuirass manual (@pxref{Specifications,,, cuirass, Cuirass})."
  42658. msgstr ""
  42659. #. type: Plain text
  42660. #: guix-git/doc/guix.texi:28466
  42661. 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."
  42662. msgstr ""
  42663. #. type: deftp
  42664. #: guix-git/doc/guix.texi:28467
  42665. #, no-wrap
  42666. msgid "{Data Type} cuirass-configuration"
  42667. msgstr ""
  42668. #. type: deftp
  42669. #: guix-git/doc/guix.texi:28469
  42670. msgid "Data type representing the configuration of Cuirass."
  42671. msgstr ""
  42672. #. type: item
  42673. #: guix-git/doc/guix.texi:28471 guix-git/doc/guix.texi:28608
  42674. #, no-wrap
  42675. msgid "@code{cuirass} (default: @code{cuirass})"
  42676. msgstr ""
  42677. #. type: table
  42678. #: guix-git/doc/guix.texi:28473 guix-git/doc/guix.texi:28610
  42679. msgid "The Cuirass package to use."
  42680. msgstr ""
  42681. #. type: item
  42682. #: guix-git/doc/guix.texi:28474
  42683. #, no-wrap
  42684. msgid "@code{log-file} (default: @code{\"/var/log/cuirass.log\"})"
  42685. msgstr ""
  42686. #. type: table
  42687. #: guix-git/doc/guix.texi:28476 guix-git/doc/guix.texi:28580
  42688. #: guix-git/doc/guix.texi:28623
  42689. msgid "Location of the log file."
  42690. msgstr ""
  42691. #. type: item
  42692. #: guix-git/doc/guix.texi:28477
  42693. #, fuzzy, no-wrap
  42694. msgid "@code{web-log-file} (default: @code{\"/var/log/cuirass-web.log\"})"
  42695. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42696. #. type: table
  42697. #: guix-git/doc/guix.texi:28479
  42698. msgid "Location of the log file used by the web interface."
  42699. msgstr ""
  42700. #. type: item
  42701. #: guix-git/doc/guix.texi:28480
  42702. #, no-wrap
  42703. msgid "@code{cache-directory} (default: @code{\"/var/cache/cuirass\"})"
  42704. msgstr ""
  42705. #. type: table
  42706. #: guix-git/doc/guix.texi:28482
  42707. msgid "Location of the repository cache."
  42708. msgstr ""
  42709. #. type: item
  42710. #: guix-git/doc/guix.texi:28483
  42711. #, no-wrap
  42712. msgid "@code{user} (default: @code{\"cuirass\"})"
  42713. msgstr ""
  42714. #. type: table
  42715. #: guix-git/doc/guix.texi:28485
  42716. msgid "Owner of the @code{cuirass} process."
  42717. msgstr ""
  42718. #. type: item
  42719. #: guix-git/doc/guix.texi:28486
  42720. #, no-wrap
  42721. msgid "@code{group} (default: @code{\"cuirass\"})"
  42722. msgstr ""
  42723. #. type: table
  42724. #: guix-git/doc/guix.texi:28488
  42725. msgid "Owner's group of the @code{cuirass} process."
  42726. msgstr ""
  42727. #. type: item
  42728. #: guix-git/doc/guix.texi:28489
  42729. #, no-wrap
  42730. msgid "@code{interval} (default: @code{60})"
  42731. msgstr ""
  42732. #. type: table
  42733. #: guix-git/doc/guix.texi:28492
  42734. msgid "Number of seconds between the poll of the repositories followed by the Cuirass jobs."
  42735. msgstr ""
  42736. #. type: item
  42737. #: guix-git/doc/guix.texi:28493
  42738. #, fuzzy, no-wrap
  42739. msgid "@code{parameters} (default: @code{#f})"
  42740. msgstr "@code{port}(默认值:@code{22})"
  42741. #. type: table
  42742. #: guix-git/doc/guix.texi:28496
  42743. msgid "Read parameters from the given @var{parameters} file. The supported parameters are described here (@pxref{Parameters,,, cuirass, Cuirass})."
  42744. msgstr ""
  42745. #. type: item
  42746. #: guix-git/doc/guix.texi:28497
  42747. #, fuzzy, no-wrap
  42748. msgid "@code{remote-server} (default: @code{#f})"
  42749. msgstr "@code{speed}(默认值:@code{1.0})"
  42750. #. type: table
  42751. #: guix-git/doc/guix.texi:28500
  42752. msgid "A @code{cuirass-remote-server-configuration} record to use the build remote mechanism or @code{#f} to use the default build mechanism."
  42753. msgstr ""
  42754. #. type: item
  42755. #: guix-git/doc/guix.texi:28501
  42756. #, fuzzy, no-wrap
  42757. msgid "@code{database} (default: @code{\"dbname=cuirass host=/var/run/postgresql\"})"
  42758. msgstr "@code{port}(默认值:@code{22})"
  42759. #. type: table
  42760. #: guix-git/doc/guix.texi:28506
  42761. 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\"}."
  42762. msgstr ""
  42763. #. type: item
  42764. #: guix-git/doc/guix.texi:28507
  42765. #, no-wrap
  42766. msgid "@code{port} (default: @code{8081})"
  42767. msgstr ""
  42768. #. type: table
  42769. #: guix-git/doc/guix.texi:28509
  42770. msgid "Port number used by the HTTP server."
  42771. msgstr ""
  42772. #. type: table
  42773. #: guix-git/doc/guix.texi:28513
  42774. msgid "Listen on the network interface for @var{host}. The default is to accept connections from localhost."
  42775. msgstr ""
  42776. #. type: item
  42777. #: guix-git/doc/guix.texi:28514
  42778. #, no-wrap
  42779. msgid "@code{specifications} (default: @code{#~'()})"
  42780. msgstr ""
  42781. #. type: table
  42782. #: guix-git/doc/guix.texi:28518
  42783. 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})."
  42784. msgstr ""
  42785. #. type: item
  42786. #: guix-git/doc/guix.texi:28519
  42787. #, no-wrap
  42788. msgid "@code{use-substitutes?} (default: @code{#f})"
  42789. msgstr ""
  42790. #. type: table
  42791. #: guix-git/doc/guix.texi:28522
  42792. msgid "This allows using substitutes to avoid building every dependencies of a job from source."
  42793. msgstr ""
  42794. #. type: item
  42795. #: guix-git/doc/guix.texi:28523 guix-git/doc/guix.texi:35774
  42796. #, no-wrap
  42797. msgid "@code{one-shot?} (default: @code{#f})"
  42798. msgstr ""
  42799. #. type: table
  42800. #: guix-git/doc/guix.texi:28525
  42801. msgid "Only evaluate specifications and build derivations once."
  42802. msgstr ""
  42803. #. type: item
  42804. #: guix-git/doc/guix.texi:28526
  42805. #, no-wrap
  42806. msgid "@code{fallback?} (default: @code{#f})"
  42807. msgstr ""
  42808. #. type: table
  42809. #: guix-git/doc/guix.texi:28529
  42810. msgid "When substituting a pre-built binary fails, fall back to building packages locally."
  42811. msgstr ""
  42812. #. type: table
  42813. #: guix-git/doc/guix.texi:28532
  42814. msgid "Extra options to pass when running the Cuirass processes."
  42815. msgstr ""
  42816. #. type: cindex
  42817. #: guix-git/doc/guix.texi:28536
  42818. #, fuzzy, no-wrap
  42819. msgid "remote build"
  42820. msgstr "可复现的构建"
  42821. #. type: subsubheading
  42822. #: guix-git/doc/guix.texi:28537
  42823. #, no-wrap
  42824. msgid "Cuirass remote building"
  42825. msgstr ""
  42826. #. type: Plain text
  42827. #: guix-git/doc/guix.texi:28540
  42828. msgid "Cuirass supports two mechanisms to build derivations."
  42829. msgstr ""
  42830. #. type: item
  42831. #: guix-git/doc/guix.texi:28542
  42832. #, fuzzy, no-wrap
  42833. msgid "Using the local Guix daemon."
  42834. msgstr "运行“构建后台进程”"
  42835. #. type: itemize
  42836. #: guix-git/doc/guix.texi:28546
  42837. 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."
  42838. msgstr ""
  42839. #. type: item
  42840. #: guix-git/doc/guix.texi:28547
  42841. #, fuzzy, no-wrap
  42842. msgid "Using the remote build mechanism."
  42843. msgstr "准备隔离的构建环境。"
  42844. #. type: itemize
  42845. #: guix-git/doc/guix.texi:28551
  42846. 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."
  42847. msgstr ""
  42848. #. type: Plain text
  42849. #: guix-git/doc/guix.texi:28558
  42850. 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."
  42851. msgstr ""
  42852. #. type: Plain text
  42853. #: guix-git/doc/guix.texi:28563
  42854. 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."
  42855. msgstr ""
  42856. #. type: deftp
  42857. #: guix-git/doc/guix.texi:28564
  42858. #, fuzzy, no-wrap
  42859. msgid "{Data Type} cuirass-remote-server-configuration"
  42860. msgstr "{数据类型} build-machine"
  42861. #. type: deftp
  42862. #: guix-git/doc/guix.texi:28566
  42863. #, fuzzy
  42864. msgid "Data type representing the configuration of the Cuirass remote-server."
  42865. msgstr "管理操作系统配置。"
  42866. #. type: item
  42867. #: guix-git/doc/guix.texi:28568
  42868. #, fuzzy, no-wrap
  42869. msgid "@code{backend-port} (default: @code{5555})"
  42870. msgstr "@code{port}(默认值:@code{22})"
  42871. #. type: table
  42872. #: guix-git/doc/guix.texi:28571
  42873. msgid "The TCP port for communicating with @code{remote-worker} processes using ZMQ. It defaults to @code{5555}."
  42874. msgstr ""
  42875. #. type: item
  42876. #: guix-git/doc/guix.texi:28572
  42877. #, fuzzy, no-wrap
  42878. msgid "@code{log-port} (default: @code{5556})"
  42879. msgstr "@code{port}(默认值:@code{22})"
  42880. #. type: table
  42881. #: guix-git/doc/guix.texi:28574
  42882. msgid "The TCP port of the log server. It defaults to @code{5556}."
  42883. msgstr ""
  42884. #. type: item
  42885. #: guix-git/doc/guix.texi:28575
  42886. #, fuzzy, no-wrap
  42887. msgid "@code{publish-port} (default: @code{5557})"
  42888. msgstr "@code{port}(默认值:@code{22})"
  42889. #. type: table
  42890. #: guix-git/doc/guix.texi:28577
  42891. msgid "The TCP port of the publish server. It defaults to @code{5557}."
  42892. msgstr ""
  42893. #. type: item
  42894. #: guix-git/doc/guix.texi:28578
  42895. #, fuzzy, no-wrap
  42896. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-server.log\"})"
  42897. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42898. #. type: item
  42899. #: guix-git/doc/guix.texi:28581
  42900. #, fuzzy, no-wrap
  42901. msgid "@code{cache} (default: @code{\"/var/cache/cuirass/remote\"})"
  42902. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42903. #. type: table
  42904. #: guix-git/doc/guix.texi:28583
  42905. msgid "Use @var{cache} directory to cache build log files."
  42906. msgstr ""
  42907. #. type: item
  42908. #: guix-git/doc/guix.texi:28584
  42909. #, fuzzy, no-wrap
  42910. msgid "@code{trigger-url} (default: @code{#f})"
  42911. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  42912. #. type: table
  42913. #: guix-git/doc/guix.texi:28587
  42914. msgid "Once a substitute is successfully fetched, trigger substitute baking at @var{trigger-url}."
  42915. msgstr ""
  42916. #. type: table
  42917. #: guix-git/doc/guix.texi:28592
  42918. 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."
  42919. msgstr ""
  42920. #. type: code{#1}
  42921. #: guix-git/doc/guix.texi:28594 guix-git/doc/guix.texi:28631
  42922. #, no-wrap
  42923. msgid "private-key"
  42924. msgstr ""
  42925. #. type: Plain text
  42926. #: guix-git/doc/guix.texi:28603
  42927. 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."
  42928. msgstr ""
  42929. #. type: deftp
  42930. #: guix-git/doc/guix.texi:28604
  42931. #, fuzzy, no-wrap
  42932. msgid "{Data Type} cuirass-remote-worker-configuration"
  42933. msgstr "{数据类型} build-machine"
  42934. #. type: deftp
  42935. #: guix-git/doc/guix.texi:28606
  42936. #, fuzzy
  42937. msgid "Data type representing the configuration of the Cuirass remote-worker."
  42938. msgstr "管理操作系统配置。"
  42939. #. type: item
  42940. #: guix-git/doc/guix.texi:28611
  42941. #, fuzzy, no-wrap
  42942. msgid "@code{workers} (default: @code{1})"
  42943. msgstr "@code{features} (@code{'()})"
  42944. #. type: table
  42945. #: guix-git/doc/guix.texi:28613
  42946. msgid "Start @var{workers} parallel workers."
  42947. msgstr ""
  42948. #. type: table
  42949. #: guix-git/doc/guix.texi:28617
  42950. msgid "Do not use Avahi discovery and connect to the given @code{server} IP address instead."
  42951. msgstr ""
  42952. #. type: item
  42953. #: guix-git/doc/guix.texi:28618
  42954. #, fuzzy, no-wrap
  42955. msgid "@code{systems} (default: @code{(list (%current-system))})"
  42956. msgstr "@code{port}(默认值:@code{22})"
  42957. #. type: table
  42958. #: guix-git/doc/guix.texi:28620
  42959. msgid "Only request builds for the given @var{systems}."
  42960. msgstr ""
  42961. #. type: item
  42962. #: guix-git/doc/guix.texi:28621
  42963. #, fuzzy, no-wrap
  42964. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-worker.log\"})"
  42965. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42966. #. type: item
  42967. #: guix-git/doc/guix.texi:28624
  42968. #, fuzzy, no-wrap
  42969. msgid "@code{publish-port} (default: @code{5558})"
  42970. msgstr "@code{port}(默认值:@code{22})"
  42971. #. type: table
  42972. #: guix-git/doc/guix.texi:28626
  42973. msgid "The TCP port of the publish server. It defaults to @code{5558}."
  42974. msgstr ""
  42975. #. type: subsubheading
  42976. #: guix-git/doc/guix.texi:28638
  42977. #, no-wrap
  42978. msgid "Laminar"
  42979. msgstr ""
  42980. #. type: Plain text
  42981. #: guix-git/doc/guix.texi:28643
  42982. 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."
  42983. msgstr ""
  42984. #. type: Plain text
  42985. #: guix-git/doc/guix.texi:28646
  42986. msgid "Laminar encourages the use of existing tools such as bash and cron instead of reinventing them."
  42987. msgstr ""
  42988. #. type: defvr
  42989. #: guix-git/doc/guix.texi:28647
  42990. #, no-wrap
  42991. msgid "{Scheme Procedure} laminar-service-type"
  42992. msgstr ""
  42993. #. type: defvr
  42994. #: guix-git/doc/guix.texi:28650
  42995. msgid "The type of the Laminar service. Its value must be a @code{laminar-configuration} object, as described below."
  42996. msgstr ""
  42997. #. type: defvr
  42998. #: guix-git/doc/guix.texi:28654
  42999. 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."
  43000. msgstr ""
  43001. #. type: lisp
  43002. #: guix-git/doc/guix.texi:28657
  43003. #, no-wrap
  43004. msgid "(service laminar-service-type)\n"
  43005. msgstr ""
  43006. #. type: deftp
  43007. #: guix-git/doc/guix.texi:28660
  43008. #, fuzzy, no-wrap
  43009. msgid "{Data Type} laminar-configuration"
  43010. msgstr "{数据类型} build-machine"
  43011. #. type: deftp
  43012. #: guix-git/doc/guix.texi:28662
  43013. #, fuzzy
  43014. msgid "Data type representing the configuration of Laminar."
  43015. msgstr "管理操作系统配置。"
  43016. #. type: item
  43017. #: guix-git/doc/guix.texi:28664
  43018. #, fuzzy, no-wrap
  43019. msgid "@code{laminar} (default: @code{laminar})"
  43020. msgstr "@code{mate}(默认值:@code{mate})"
  43021. #. type: table
  43022. #: guix-git/doc/guix.texi:28666
  43023. #, fuzzy
  43024. msgid "The Laminar package to use."
  43025. msgstr "软件包数据类型。"
  43026. #. type: item
  43027. #: guix-git/doc/guix.texi:28667
  43028. #, fuzzy, no-wrap
  43029. msgid "@code{home-directory} (default: @code{\"/var/lib/laminar\"})"
  43030. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  43031. #. type: table
  43032. #: guix-git/doc/guix.texi:28669
  43033. msgid "The directory for job configurations and run directories."
  43034. msgstr ""
  43035. #. type: item
  43036. #: guix-git/doc/guix.texi:28670
  43037. #, fuzzy, no-wrap
  43038. msgid "@code{bind-http} (default: @code{\"*:8080\"})"
  43039. msgstr "@code{port}(默认值:@code{22})"
  43040. #. type: table
  43041. #: guix-git/doc/guix.texi:28673
  43042. msgid "The interface/port or unix socket on which laminard should listen for incoming connections to the web frontend."
  43043. msgstr ""
  43044. #. type: item
  43045. #: guix-git/doc/guix.texi:28674
  43046. #, fuzzy, no-wrap
  43047. msgid "@code{bind-rpc} (default: @code{\"unix-abstract:laminar\"})"
  43048. msgstr "@code{gnome}(默认值:@code{gnome})"
  43049. #. type: table
  43050. #: guix-git/doc/guix.texi:28677
  43051. msgid "The interface/port or unix socket on which laminard should listen for incoming commands such as build triggers."
  43052. msgstr ""
  43053. #. type: item
  43054. #: guix-git/doc/guix.texi:28678
  43055. #, fuzzy, no-wrap
  43056. msgid "@code{title} (default: @code{\"Laminar\"})"
  43057. msgstr "@code{mate}(默认值:@code{mate})"
  43058. #. type: table
  43059. #: guix-git/doc/guix.texi:28680
  43060. #, fuzzy
  43061. msgid "The page title to show in the web frontend."
  43062. msgstr "rottlog服务。"
  43063. #. type: item
  43064. #: guix-git/doc/guix.texi:28681
  43065. #, fuzzy, no-wrap
  43066. msgid "@code{keep-rundirs} (default: @code{0})"
  43067. msgstr "@code{features} (@code{'()})"
  43068. #. type: table
  43069. #: guix-git/doc/guix.texi:28685
  43070. 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."
  43071. msgstr ""
  43072. #. type: item
  43073. #: guix-git/doc/guix.texi:28686
  43074. #, fuzzy, no-wrap
  43075. msgid "@code{archive-url} (default: @code{#f})"
  43076. msgstr "@code{challenge}(默认值:@code{#f})"
  43077. #. type: table
  43078. #: guix-git/doc/guix.texi:28689
  43079. msgid "The web frontend served by laminard will use this URL to form links to artefacts archived jobs."
  43080. msgstr ""
  43081. #. type: item
  43082. #: guix-git/doc/guix.texi:28690
  43083. #, fuzzy, no-wrap
  43084. msgid "@code{base-url} (default: @code{#f})"
  43085. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43086. #. type: table
  43087. #: guix-git/doc/guix.texi:28692
  43088. msgid "Base URL to use for links to laminar itself."
  43089. msgstr ""
  43090. #. type: cindex
  43091. #: guix-git/doc/guix.texi:28699
  43092. #, no-wrap
  43093. msgid "tlp"
  43094. msgstr ""
  43095. #. type: cindex
  43096. #: guix-git/doc/guix.texi:28700
  43097. #, no-wrap
  43098. msgid "power management with TLP"
  43099. msgstr ""
  43100. #. type: subsubheading
  43101. #: guix-git/doc/guix.texi:28701
  43102. #, no-wrap
  43103. msgid "TLP daemon"
  43104. msgstr ""
  43105. #. type: Plain text
  43106. #: guix-git/doc/guix.texi:28705
  43107. msgid "The @code{(gnu services pm)} module provides a Guix service definition for the Linux power management tool TLP."
  43108. msgstr ""
  43109. #. type: Plain text
  43110. #: guix-git/doc/guix.texi:28711
  43111. 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}."
  43112. msgstr ""
  43113. #. type: deffn
  43114. #: guix-git/doc/guix.texi:28712
  43115. #, no-wrap
  43116. msgid "{Scheme Variable} tlp-service-type"
  43117. msgstr ""
  43118. #. type: deffn
  43119. #: guix-git/doc/guix.texi:28716
  43120. 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}:"
  43121. msgstr ""
  43122. #. type: lisp
  43123. #: guix-git/doc/guix.texi:28721
  43124. #, no-wrap
  43125. msgid ""
  43126. "(service tlp-service-type\n"
  43127. " (tlp-configuration\n"
  43128. " (cpu-scaling-governor-on-ac (list \"performance\"))\n"
  43129. " (sched-powersave-on-bat? #t)))\n"
  43130. msgstr ""
  43131. #. type: Plain text
  43132. #: guix-git/doc/guix.texi:28729
  43133. 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}."
  43134. msgstr ""
  43135. #. type: Plain text
  43136. #: guix-git/doc/guix.texi:28739
  43137. msgid "Available @code{tlp-configuration} fields are:"
  43138. msgstr ""
  43139. #. type: deftypevr
  43140. #: guix-git/doc/guix.texi:28740
  43141. #, no-wrap
  43142. msgid "{@code{tlp-configuration} parameter} package tlp"
  43143. msgstr ""
  43144. #. type: deftypevr
  43145. #: guix-git/doc/guix.texi:28742
  43146. msgid "The TLP package."
  43147. msgstr ""
  43148. #. type: deftypevr
  43149. #: guix-git/doc/guix.texi:28745
  43150. #, no-wrap
  43151. msgid "{@code{tlp-configuration} parameter} boolean tlp-enable?"
  43152. msgstr ""
  43153. #. type: deftypevr
  43154. #: guix-git/doc/guix.texi:28747
  43155. msgid "Set to true if you wish to enable TLP."
  43156. msgstr ""
  43157. #. type: deftypevr
  43158. #: guix-git/doc/guix.texi:28752
  43159. #, no-wrap
  43160. msgid "{@code{tlp-configuration} parameter} string tlp-default-mode"
  43161. msgstr ""
  43162. #. type: deftypevr
  43163. #: guix-git/doc/guix.texi:28755
  43164. msgid "Default mode when no power supply can be detected. Alternatives are AC and BAT."
  43165. msgstr ""
  43166. #. type: deftypevr
  43167. #: guix-git/doc/guix.texi:28757
  43168. msgid "Defaults to @samp{\"AC\"}."
  43169. msgstr ""
  43170. #. type: deftypevr
  43171. #: guix-git/doc/guix.texi:28760
  43172. #, no-wrap
  43173. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-ac"
  43174. msgstr ""
  43175. #. type: deftypevr
  43176. #: guix-git/doc/guix.texi:28763
  43177. msgid "Number of seconds Linux kernel has to wait after the disk goes idle, before syncing on AC."
  43178. msgstr ""
  43179. #. type: deftypevr
  43180. #: guix-git/doc/guix.texi:28768
  43181. #, no-wrap
  43182. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-bat"
  43183. msgstr ""
  43184. #. type: deftypevr
  43185. #: guix-git/doc/guix.texi:28770
  43186. msgid "Same as @code{disk-idle-ac} but on BAT mode."
  43187. msgstr ""
  43188. #. type: deftypevr
  43189. #: guix-git/doc/guix.texi:28772
  43190. msgid "Defaults to @samp{2}."
  43191. msgstr ""
  43192. #. type: deftypevr
  43193. #: guix-git/doc/guix.texi:28775
  43194. #, no-wrap
  43195. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-ac"
  43196. msgstr ""
  43197. #. type: deftypevr
  43198. #: guix-git/doc/guix.texi:28777
  43199. msgid "Dirty pages flushing periodicity, expressed in seconds."
  43200. msgstr ""
  43201. #. type: deftypevr
  43202. #: guix-git/doc/guix.texi:28779 guix-git/doc/guix.texi:29002
  43203. #: guix-git/doc/guix.texi:31263 guix-git/doc/guix.texi:31271
  43204. msgid "Defaults to @samp{15}."
  43205. msgstr ""
  43206. #. type: deftypevr
  43207. #: guix-git/doc/guix.texi:28782
  43208. #, no-wrap
  43209. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-bat"
  43210. msgstr ""
  43211. #. type: deftypevr
  43212. #: guix-git/doc/guix.texi:28784
  43213. msgid "Same as @code{max-lost-work-secs-on-ac} but on BAT mode."
  43214. msgstr ""
  43215. #. type: deftypevr
  43216. #: guix-git/doc/guix.texi:28786
  43217. msgid "Defaults to @samp{60}."
  43218. msgstr ""
  43219. #. type: deftypevr
  43220. #: guix-git/doc/guix.texi:28789
  43221. #, no-wrap
  43222. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-ac"
  43223. msgstr ""
  43224. #. type: deftypevr
  43225. #: guix-git/doc/guix.texi:28793
  43226. 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."
  43227. msgstr ""
  43228. #. type: deftypevr
  43229. #: guix-git/doc/guix.texi:28798
  43230. #, no-wrap
  43231. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-bat"
  43232. msgstr ""
  43233. #. type: deftypevr
  43234. #: guix-git/doc/guix.texi:28800
  43235. msgid "Same as @code{cpu-scaling-governor-on-ac} but on BAT mode."
  43236. msgstr ""
  43237. #. type: deftypevr
  43238. #: guix-git/doc/guix.texi:28805
  43239. #, no-wrap
  43240. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-ac"
  43241. msgstr ""
  43242. #. type: deftypevr
  43243. #: guix-git/doc/guix.texi:28807
  43244. msgid "Set the min available frequency for the scaling governor on AC."
  43245. msgstr ""
  43246. #. type: deftypevr
  43247. #: guix-git/doc/guix.texi:28812
  43248. #, no-wrap
  43249. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-ac"
  43250. msgstr ""
  43251. #. type: deftypevr
  43252. #: guix-git/doc/guix.texi:28814
  43253. msgid "Set the max available frequency for the scaling governor on AC."
  43254. msgstr ""
  43255. #. type: deftypevr
  43256. #: guix-git/doc/guix.texi:28819
  43257. #, no-wrap
  43258. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-bat"
  43259. msgstr ""
  43260. #. type: deftypevr
  43261. #: guix-git/doc/guix.texi:28821
  43262. msgid "Set the min available frequency for the scaling governor on BAT."
  43263. msgstr ""
  43264. #. type: deftypevr
  43265. #: guix-git/doc/guix.texi:28826
  43266. #, no-wrap
  43267. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-bat"
  43268. msgstr ""
  43269. #. type: deftypevr
  43270. #: guix-git/doc/guix.texi:28828
  43271. msgid "Set the max available frequency for the scaling governor on BAT."
  43272. msgstr ""
  43273. #. type: deftypevr
  43274. #: guix-git/doc/guix.texi:28833
  43275. #, no-wrap
  43276. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-ac"
  43277. msgstr ""
  43278. #. type: deftypevr
  43279. #: guix-git/doc/guix.texi:28836
  43280. 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."
  43281. msgstr ""
  43282. #. type: deftypevr
  43283. #: guix-git/doc/guix.texi:28841
  43284. #, no-wrap
  43285. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-ac"
  43286. msgstr ""
  43287. #. type: deftypevr
  43288. #: guix-git/doc/guix.texi:28844
  43289. 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."
  43290. msgstr ""
  43291. #. type: deftypevr
  43292. #: guix-git/doc/guix.texi:28849
  43293. #, no-wrap
  43294. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-bat"
  43295. msgstr ""
  43296. #. type: deftypevr
  43297. #: guix-git/doc/guix.texi:28851
  43298. msgid "Same as @code{cpu-min-perf-on-ac} on BAT mode."
  43299. msgstr ""
  43300. #. type: deftypevr
  43301. #: guix-git/doc/guix.texi:28856
  43302. #, no-wrap
  43303. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-bat"
  43304. msgstr ""
  43305. #. type: deftypevr
  43306. #: guix-git/doc/guix.texi:28858
  43307. msgid "Same as @code{cpu-max-perf-on-ac} on BAT mode."
  43308. msgstr ""
  43309. #. type: deftypevr
  43310. #: guix-git/doc/guix.texi:28863
  43311. #, no-wrap
  43312. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-ac?"
  43313. msgstr ""
  43314. #. type: deftypevr
  43315. #: guix-git/doc/guix.texi:28865
  43316. msgid "Enable CPU turbo boost feature on AC mode."
  43317. msgstr ""
  43318. #. type: deftypevr
  43319. #: guix-git/doc/guix.texi:28870
  43320. #, no-wrap
  43321. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-bat?"
  43322. msgstr ""
  43323. #. type: deftypevr
  43324. #: guix-git/doc/guix.texi:28872
  43325. msgid "Same as @code{cpu-boost-on-ac?} on BAT mode."
  43326. msgstr ""
  43327. #. type: deftypevr
  43328. #: guix-git/doc/guix.texi:28877
  43329. #, no-wrap
  43330. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-ac?"
  43331. msgstr ""
  43332. #. type: deftypevr
  43333. #: guix-git/doc/guix.texi:28880
  43334. msgid "Allow Linux kernel to minimize the number of CPU cores/hyper-threads used under light load conditions."
  43335. msgstr ""
  43336. #. type: deftypevr
  43337. #: guix-git/doc/guix.texi:28885
  43338. #, no-wrap
  43339. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-bat?"
  43340. msgstr ""
  43341. #. type: deftypevr
  43342. #: guix-git/doc/guix.texi:28887
  43343. msgid "Same as @code{sched-powersave-on-ac?} but on BAT mode."
  43344. msgstr ""
  43345. #. type: deftypevr
  43346. #: guix-git/doc/guix.texi:28892
  43347. #, no-wrap
  43348. msgid "{@code{tlp-configuration} parameter} boolean nmi-watchdog?"
  43349. msgstr ""
  43350. #. type: deftypevr
  43351. #: guix-git/doc/guix.texi:28894
  43352. msgid "Enable Linux kernel NMI watchdog."
  43353. msgstr ""
  43354. #. type: deftypevr
  43355. #: guix-git/doc/guix.texi:28899
  43356. #, no-wrap
  43357. msgid "{@code{tlp-configuration} parameter} maybe-string phc-controls"
  43358. msgstr ""
  43359. #. type: deftypevr
  43360. #: guix-git/doc/guix.texi:28902
  43361. 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\"}."
  43362. msgstr ""
  43363. #. type: deftypevr
  43364. #: guix-git/doc/guix.texi:28907
  43365. #, no-wrap
  43366. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-ac"
  43367. msgstr ""
  43368. #. type: deftypevr
  43369. #: guix-git/doc/guix.texi:28910
  43370. msgid "Set CPU performance versus energy saving policy on AC@. Alternatives are performance, normal, powersave."
  43371. msgstr ""
  43372. #. type: deftypevr
  43373. #: guix-git/doc/guix.texi:28912 guix-git/doc/guix.texi:29010
  43374. #: guix-git/doc/guix.texi:29040
  43375. msgid "Defaults to @samp{\"performance\"}."
  43376. msgstr ""
  43377. #. type: deftypevr
  43378. #: guix-git/doc/guix.texi:28915
  43379. #, no-wrap
  43380. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-bat"
  43381. msgstr ""
  43382. #. type: deftypevr
  43383. #: guix-git/doc/guix.texi:28917
  43384. msgid "Same as @code{energy-perf-policy-ac} but on BAT mode."
  43385. msgstr ""
  43386. #. type: deftypevr
  43387. #: guix-git/doc/guix.texi:28919 guix-git/doc/guix.texi:29017
  43388. msgid "Defaults to @samp{\"powersave\"}."
  43389. msgstr ""
  43390. #. type: deftypevr
  43391. #: guix-git/doc/guix.texi:28922
  43392. #, no-wrap
  43393. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disks-devices"
  43394. msgstr ""
  43395. #. type: deftypevr
  43396. #: guix-git/doc/guix.texi:28924
  43397. msgid "Hard disk devices."
  43398. msgstr ""
  43399. #. type: deftypevr
  43400. #: guix-git/doc/guix.texi:28927
  43401. #, no-wrap
  43402. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-ac"
  43403. msgstr ""
  43404. #. type: deftypevr
  43405. #: guix-git/doc/guix.texi:28929
  43406. msgid "Hard disk advanced power management level."
  43407. msgstr ""
  43408. #. type: deftypevr
  43409. #: guix-git/doc/guix.texi:28932
  43410. #, no-wrap
  43411. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-bat"
  43412. msgstr ""
  43413. #. type: deftypevr
  43414. #: guix-git/doc/guix.texi:28934
  43415. msgid "Same as @code{disk-apm-bat} but on BAT mode."
  43416. msgstr ""
  43417. #. type: deftypevr
  43418. #: guix-git/doc/guix.texi:28937
  43419. #, no-wrap
  43420. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-ac"
  43421. msgstr ""
  43422. #. type: deftypevr
  43423. #: guix-git/doc/guix.texi:28940
  43424. msgid "Hard disk spin down timeout. One value has to be specified for each declared hard disk."
  43425. msgstr ""
  43426. #. type: deftypevr
  43427. #: guix-git/doc/guix.texi:28945
  43428. #, no-wrap
  43429. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-bat"
  43430. msgstr ""
  43431. #. type: deftypevr
  43432. #: guix-git/doc/guix.texi:28947
  43433. msgid "Same as @code{disk-spindown-timeout-on-ac} but on BAT mode."
  43434. msgstr ""
  43435. #. type: deftypevr
  43436. #: guix-git/doc/guix.texi:28952
  43437. #, no-wrap
  43438. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-iosched"
  43439. msgstr ""
  43440. #. type: deftypevr
  43441. #: guix-git/doc/guix.texi:28956
  43442. 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."
  43443. msgstr ""
  43444. #. type: deftypevr
  43445. #: guix-git/doc/guix.texi:28961
  43446. #, no-wrap
  43447. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-ac"
  43448. msgstr ""
  43449. #. type: deftypevr
  43450. #: guix-git/doc/guix.texi:28964
  43451. msgid "SATA aggressive link power management (ALPM) level. Alternatives are min_power, medium_power, max_performance."
  43452. msgstr ""
  43453. #. type: deftypevr
  43454. #: guix-git/doc/guix.texi:28966
  43455. msgid "Defaults to @samp{\"max_performance\"}."
  43456. msgstr ""
  43457. #. type: deftypevr
  43458. #: guix-git/doc/guix.texi:28969
  43459. #, no-wrap
  43460. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-bat"
  43461. msgstr ""
  43462. #. type: deftypevr
  43463. #: guix-git/doc/guix.texi:28971
  43464. msgid "Same as @code{sata-linkpwr-ac} but on BAT mode."
  43465. msgstr ""
  43466. #. type: deftypevr
  43467. #: guix-git/doc/guix.texi:28973
  43468. msgid "Defaults to @samp{\"min_power\"}."
  43469. msgstr ""
  43470. #. type: deftypevr
  43471. #: guix-git/doc/guix.texi:28976
  43472. #, no-wrap
  43473. msgid "{@code{tlp-configuration} parameter} maybe-string sata-linkpwr-blacklist"
  43474. msgstr ""
  43475. #. type: deftypevr
  43476. #: guix-git/doc/guix.texi:28978
  43477. msgid "Exclude specified SATA host devices for link power management."
  43478. msgstr ""
  43479. #. type: deftypevr
  43480. #: guix-git/doc/guix.texi:28983
  43481. #, no-wrap
  43482. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-ac?"
  43483. msgstr ""
  43484. #. type: deftypevr
  43485. #: guix-git/doc/guix.texi:28986
  43486. msgid "Enable Runtime Power Management for AHCI controller and disks on AC mode."
  43487. msgstr ""
  43488. #. type: deftypevr
  43489. #: guix-git/doc/guix.texi:28991
  43490. #, no-wrap
  43491. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-bat?"
  43492. msgstr ""
  43493. #. type: deftypevr
  43494. #: guix-git/doc/guix.texi:28993
  43495. msgid "Same as @code{ahci-runtime-pm-on-ac} on BAT mode."
  43496. msgstr ""
  43497. #. type: deftypevr
  43498. #: guix-git/doc/guix.texi:28998
  43499. #, no-wrap
  43500. msgid "{@code{tlp-configuration} parameter} non-negative-integer ahci-runtime-pm-timeout"
  43501. msgstr ""
  43502. #. type: deftypevr
  43503. #: guix-git/doc/guix.texi:29000
  43504. msgid "Seconds of inactivity before disk is suspended."
  43505. msgstr ""
  43506. #. type: deftypevr
  43507. #: guix-git/doc/guix.texi:29005
  43508. #, no-wrap
  43509. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-ac"
  43510. msgstr ""
  43511. #. type: deftypevr
  43512. #: guix-git/doc/guix.texi:29008
  43513. msgid "PCI Express Active State Power Management level. Alternatives are default, performance, powersave."
  43514. msgstr ""
  43515. #. type: deftypevr
  43516. #: guix-git/doc/guix.texi:29013
  43517. #, no-wrap
  43518. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-bat"
  43519. msgstr ""
  43520. #. type: deftypevr
  43521. #: guix-git/doc/guix.texi:29015
  43522. msgid "Same as @code{pcie-aspm-ac} but on BAT mode."
  43523. msgstr ""
  43524. #. type: deftypevr
  43525. #: guix-git/doc/guix.texi:29020
  43526. #, no-wrap
  43527. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-ac"
  43528. msgstr ""
  43529. #. type: deftypevr
  43530. #: guix-git/doc/guix.texi:29023
  43531. msgid "Radeon graphics clock speed level. Alternatives are low, mid, high, auto, default."
  43532. msgstr ""
  43533. #. type: deftypevr
  43534. #: guix-git/doc/guix.texi:29025
  43535. msgid "Defaults to @samp{\"high\"}."
  43536. msgstr ""
  43537. #. type: deftypevr
  43538. #: guix-git/doc/guix.texi:29028
  43539. #, no-wrap
  43540. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-bat"
  43541. msgstr ""
  43542. #. type: deftypevr
  43543. #: guix-git/doc/guix.texi:29030
  43544. msgid "Same as @code{radeon-power-ac} but on BAT mode."
  43545. msgstr ""
  43546. #. type: deftypevr
  43547. #: guix-git/doc/guix.texi:29032
  43548. msgid "Defaults to @samp{\"low\"}."
  43549. msgstr ""
  43550. #. type: deftypevr
  43551. #: guix-git/doc/guix.texi:29035
  43552. #, no-wrap
  43553. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-ac"
  43554. msgstr ""
  43555. #. type: deftypevr
  43556. #: guix-git/doc/guix.texi:29038
  43557. msgid "Radeon dynamic power management method (DPM). Alternatives are battery, performance."
  43558. msgstr ""
  43559. #. type: deftypevr
  43560. #: guix-git/doc/guix.texi:29043
  43561. #, no-wrap
  43562. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-bat"
  43563. msgstr ""
  43564. #. type: deftypevr
  43565. #: guix-git/doc/guix.texi:29045
  43566. msgid "Same as @code{radeon-dpm-state-ac} but on BAT mode."
  43567. msgstr ""
  43568. #. type: deftypevr
  43569. #: guix-git/doc/guix.texi:29047
  43570. msgid "Defaults to @samp{\"battery\"}."
  43571. msgstr ""
  43572. #. type: deftypevr
  43573. #: guix-git/doc/guix.texi:29050
  43574. #, no-wrap
  43575. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-ac"
  43576. msgstr ""
  43577. #. type: deftypevr
  43578. #: guix-git/doc/guix.texi:29052
  43579. msgid "Radeon DPM performance level. Alternatives are auto, low, high."
  43580. msgstr ""
  43581. #. type: deftypevr
  43582. #: guix-git/doc/guix.texi:29054 guix-git/doc/guix.texi:29061
  43583. #: guix-git/doc/guix.texi:29135
  43584. msgid "Defaults to @samp{\"auto\"}."
  43585. msgstr ""
  43586. #. type: deftypevr
  43587. #: guix-git/doc/guix.texi:29057
  43588. #, no-wrap
  43589. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-bat"
  43590. msgstr ""
  43591. #. type: deftypevr
  43592. #: guix-git/doc/guix.texi:29059
  43593. msgid "Same as @code{radeon-dpm-perf-ac} but on BAT mode."
  43594. msgstr ""
  43595. #. type: deftypevr
  43596. #: guix-git/doc/guix.texi:29064
  43597. #, no-wrap
  43598. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-ac?"
  43599. msgstr ""
  43600. #. type: deftypevr
  43601. #: guix-git/doc/guix.texi:29066
  43602. msgid "Wifi power saving mode."
  43603. msgstr ""
  43604. #. type: deftypevr
  43605. #: guix-git/doc/guix.texi:29071
  43606. #, no-wrap
  43607. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-bat?"
  43608. msgstr ""
  43609. #. type: deftypevr
  43610. #: guix-git/doc/guix.texi:29073
  43611. msgid "Same as @code{wifi-power-ac?} but on BAT mode."
  43612. msgstr ""
  43613. #. type: deftypevr
  43614. #: guix-git/doc/guix.texi:29078
  43615. #, no-wrap
  43616. msgid "{@code{tlp-configuration} parameter} y-n-boolean wol-disable?"
  43617. msgstr ""
  43618. #. type: deftypevr
  43619. #: guix-git/doc/guix.texi:29080
  43620. msgid "Disable wake on LAN."
  43621. msgstr ""
  43622. #. type: deftypevr
  43623. #: guix-git/doc/guix.texi:29085
  43624. #, no-wrap
  43625. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-ac"
  43626. msgstr ""
  43627. #. type: deftypevr
  43628. #: guix-git/doc/guix.texi:29088
  43629. msgid "Timeout duration in seconds before activating audio power saving on Intel HDA and AC97 devices. A value of 0 disables power saving."
  43630. msgstr ""
  43631. #. type: deftypevr
  43632. #: guix-git/doc/guix.texi:29093
  43633. #, no-wrap
  43634. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-bat"
  43635. msgstr ""
  43636. #. type: deftypevr
  43637. #: guix-git/doc/guix.texi:29095
  43638. msgid "Same as @code{sound-powersave-ac} but on BAT mode."
  43639. msgstr ""
  43640. #. type: deftypevr
  43641. #: guix-git/doc/guix.texi:29100
  43642. #, no-wrap
  43643. msgid "{@code{tlp-configuration} parameter} y-n-boolean sound-power-save-controller?"
  43644. msgstr ""
  43645. #. type: deftypevr
  43646. #: guix-git/doc/guix.texi:29102
  43647. msgid "Disable controller in powersaving mode on Intel HDA devices."
  43648. msgstr ""
  43649. #. type: deftypevr
  43650. #: guix-git/doc/guix.texi:29107
  43651. #, no-wrap
  43652. msgid "{@code{tlp-configuration} parameter} boolean bay-poweroff-on-bat?"
  43653. msgstr ""
  43654. #. type: deftypevr
  43655. #: guix-git/doc/guix.texi:29111
  43656. 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."
  43657. msgstr ""
  43658. #. type: deftypevr
  43659. #: guix-git/doc/guix.texi:29116
  43660. #, no-wrap
  43661. msgid "{@code{tlp-configuration} parameter} string bay-device"
  43662. msgstr ""
  43663. #. type: deftypevr
  43664. #: guix-git/doc/guix.texi:29118
  43665. msgid "Name of the optical drive device to power off."
  43666. msgstr ""
  43667. #. type: deftypevr
  43668. #: guix-git/doc/guix.texi:29120
  43669. msgid "Defaults to @samp{\"sr0\"}."
  43670. msgstr ""
  43671. #. type: deftypevr
  43672. #: guix-git/doc/guix.texi:29123
  43673. #, no-wrap
  43674. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-ac"
  43675. msgstr ""
  43676. #. type: deftypevr
  43677. #: guix-git/doc/guix.texi:29126
  43678. msgid "Runtime Power Management for PCI(e) bus devices. Alternatives are on and auto."
  43679. msgstr ""
  43680. #. type: deftypevr
  43681. #: guix-git/doc/guix.texi:29128
  43682. msgid "Defaults to @samp{\"on\"}."
  43683. msgstr ""
  43684. #. type: deftypevr
  43685. #: guix-git/doc/guix.texi:29131
  43686. #, no-wrap
  43687. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-bat"
  43688. msgstr ""
  43689. #. type: deftypevr
  43690. #: guix-git/doc/guix.texi:29133
  43691. msgid "Same as @code{runtime-pm-ac} but on BAT mode."
  43692. msgstr ""
  43693. #. type: deftypevr
  43694. #: guix-git/doc/guix.texi:29138
  43695. #, no-wrap
  43696. msgid "{@code{tlp-configuration} parameter} boolean runtime-pm-all?"
  43697. msgstr ""
  43698. #. type: deftypevr
  43699. #: guix-git/doc/guix.texi:29141
  43700. msgid "Runtime Power Management for all PCI(e) bus devices, except blacklisted ones."
  43701. msgstr ""
  43702. #. type: deftypevr
  43703. #: guix-git/doc/guix.texi:29146
  43704. #, no-wrap
  43705. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list runtime-pm-blacklist"
  43706. msgstr ""
  43707. #. type: deftypevr
  43708. #: guix-git/doc/guix.texi:29148
  43709. msgid "Exclude specified PCI(e) device addresses from Runtime Power Management."
  43710. msgstr ""
  43711. #. type: deftypevr
  43712. #: guix-git/doc/guix.texi:29153
  43713. #, no-wrap
  43714. msgid "{@code{tlp-configuration} parameter} space-separated-string-list runtime-pm-driver-blacklist"
  43715. msgstr ""
  43716. #. type: deftypevr
  43717. #: guix-git/doc/guix.texi:29156
  43718. msgid "Exclude PCI(e) devices assigned to the specified drivers from Runtime Power Management."
  43719. msgstr ""
  43720. #. type: deftypevr
  43721. #: guix-git/doc/guix.texi:29159
  43722. #, no-wrap
  43723. msgid "{@code{tlp-configuration} parameter} boolean usb-autosuspend?"
  43724. msgstr ""
  43725. #. type: deftypevr
  43726. #: guix-git/doc/guix.texi:29161
  43727. msgid "Enable USB autosuspend feature."
  43728. msgstr ""
  43729. #. type: deftypevr
  43730. #: guix-git/doc/guix.texi:29166
  43731. #, no-wrap
  43732. msgid "{@code{tlp-configuration} parameter} maybe-string usb-blacklist"
  43733. msgstr ""
  43734. #. type: deftypevr
  43735. #: guix-git/doc/guix.texi:29168
  43736. msgid "Exclude specified devices from USB autosuspend."
  43737. msgstr ""
  43738. #. type: deftypevr
  43739. #: guix-git/doc/guix.texi:29173
  43740. #, no-wrap
  43741. msgid "{@code{tlp-configuration} parameter} boolean usb-blacklist-wwan?"
  43742. msgstr ""
  43743. #. type: deftypevr
  43744. #: guix-git/doc/guix.texi:29175
  43745. msgid "Exclude WWAN devices from USB autosuspend."
  43746. msgstr ""
  43747. #. type: deftypevr
  43748. #: guix-git/doc/guix.texi:29180
  43749. #, no-wrap
  43750. msgid "{@code{tlp-configuration} parameter} maybe-string usb-whitelist"
  43751. msgstr ""
  43752. #. type: deftypevr
  43753. #: guix-git/doc/guix.texi:29183
  43754. msgid "Include specified devices into USB autosuspend, even if they are already excluded by the driver or via @code{usb-blacklist-wwan?}."
  43755. msgstr ""
  43756. #. type: deftypevr
  43757. #: guix-git/doc/guix.texi:29188
  43758. #, no-wrap
  43759. msgid "{@code{tlp-configuration} parameter} maybe-boolean usb-autosuspend-disable-on-shutdown?"
  43760. msgstr ""
  43761. #. type: deftypevr
  43762. #: guix-git/doc/guix.texi:29190
  43763. msgid "Enable USB autosuspend before shutdown."
  43764. msgstr ""
  43765. #. type: deftypevr
  43766. #: guix-git/doc/guix.texi:29195
  43767. #, no-wrap
  43768. msgid "{@code{tlp-configuration} parameter} boolean restore-device-state-on-startup?"
  43769. msgstr ""
  43770. #. type: deftypevr
  43771. #: guix-git/doc/guix.texi:29198
  43772. msgid "Restore radio device state (bluetooth, wifi, wwan) from previous shutdown on system startup."
  43773. msgstr ""
  43774. #. type: cindex
  43775. #: guix-git/doc/guix.texi:29203
  43776. #, no-wrap
  43777. msgid "thermald"
  43778. msgstr ""
  43779. #. type: cindex
  43780. #: guix-git/doc/guix.texi:29204
  43781. #, no-wrap
  43782. msgid "CPU frequency scaling with thermald"
  43783. msgstr ""
  43784. #. type: subsubheading
  43785. #: guix-git/doc/guix.texi:29205
  43786. #, no-wrap
  43787. msgid "Thermald daemon"
  43788. msgstr ""
  43789. #. type: Plain text
  43790. #: guix-git/doc/guix.texi:29209
  43791. msgid "The @code{(gnu services pm)} module provides an interface to thermald, a CPU frequency scaling service which helps prevent overheating."
  43792. msgstr ""
  43793. #. type: defvr
  43794. #: guix-git/doc/guix.texi:29210
  43795. #, no-wrap
  43796. msgid "{Scheme Variable} thermald-service-type"
  43797. msgstr ""
  43798. #. type: defvr
  43799. #: guix-git/doc/guix.texi:29215
  43800. 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."
  43801. msgstr ""
  43802. #. type: deftp
  43803. #: guix-git/doc/guix.texi:29217
  43804. #, no-wrap
  43805. msgid "{Data Type} thermald-configuration"
  43806. msgstr ""
  43807. #. type: deftp
  43808. #: guix-git/doc/guix.texi:29219
  43809. msgid "Data type representing the configuration of @code{thermald-service-type}."
  43810. msgstr ""
  43811. #. type: item
  43812. #: guix-git/doc/guix.texi:29221
  43813. #, no-wrap
  43814. msgid "@code{ignore-cpuid-check?} (default: @code{#f})"
  43815. msgstr ""
  43816. #. type: table
  43817. #: guix-git/doc/guix.texi:29223
  43818. msgid "Ignore cpuid check for supported CPU models."
  43819. msgstr ""
  43820. #. type: item
  43821. #: guix-git/doc/guix.texi:29224
  43822. #, no-wrap
  43823. msgid "@code{thermald} (default: @var{thermald})"
  43824. msgstr ""
  43825. #. type: table
  43826. #: guix-git/doc/guix.texi:29226
  43827. msgid "Package object of thermald."
  43828. msgstr ""
  43829. #. type: Plain text
  43830. #: guix-git/doc/guix.texi:29235
  43831. msgid "The @code{(gnu services audio)} module provides a service to start MPD (the Music Player Daemon)."
  43832. msgstr ""
  43833. #. type: cindex
  43834. #: guix-git/doc/guix.texi:29236
  43835. #, no-wrap
  43836. msgid "mpd"
  43837. msgstr ""
  43838. #. type: subsubheading
  43839. #: guix-git/doc/guix.texi:29237
  43840. #, no-wrap
  43841. msgid "Music Player Daemon"
  43842. msgstr ""
  43843. #. type: Plain text
  43844. #: guix-git/doc/guix.texi:29242
  43845. 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."
  43846. msgstr ""
  43847. #. type: Plain text
  43848. #: guix-git/doc/guix.texi:29245
  43849. msgid "The following example shows how one might run @code{mpd} as user @code{\"bob\"} on port @code{6666}. It uses pulseaudio for output."
  43850. msgstr ""
  43851. #. type: lisp
  43852. #: guix-git/doc/guix.texi:29251
  43853. #, no-wrap
  43854. msgid ""
  43855. "(service mpd-service-type\n"
  43856. " (mpd-configuration\n"
  43857. " (user \"bob\")\n"
  43858. " (port \"6666\")))\n"
  43859. msgstr ""
  43860. #. type: defvr
  43861. #: guix-git/doc/guix.texi:29253
  43862. #, no-wrap
  43863. msgid "{Scheme Variable} mpd-service-type"
  43864. msgstr ""
  43865. #. type: defvr
  43866. #: guix-git/doc/guix.texi:29255
  43867. msgid "The service type for @command{mpd}"
  43868. msgstr ""
  43869. #. type: deftp
  43870. #: guix-git/doc/guix.texi:29257
  43871. #, no-wrap
  43872. msgid "{Data Type} mpd-configuration"
  43873. msgstr ""
  43874. #. type: deftp
  43875. #: guix-git/doc/guix.texi:29259
  43876. msgid "Data type representing the configuration of @command{mpd}."
  43877. msgstr ""
  43878. #. type: item
  43879. #: guix-git/doc/guix.texi:29261
  43880. #, no-wrap
  43881. msgid "@code{user} (default: @code{\"mpd\"})"
  43882. msgstr ""
  43883. #. type: table
  43884. #: guix-git/doc/guix.texi:29263
  43885. msgid "The user to run mpd as."
  43886. msgstr ""
  43887. #. type: item
  43888. #: guix-git/doc/guix.texi:29264
  43889. #, no-wrap
  43890. msgid "@code{music-dir} (default: @code{\"~/Music\"})"
  43891. msgstr ""
  43892. #. type: table
  43893. #: guix-git/doc/guix.texi:29266
  43894. msgid "The directory to scan for music files."
  43895. msgstr ""
  43896. #. type: item
  43897. #: guix-git/doc/guix.texi:29267
  43898. #, no-wrap
  43899. msgid "@code{playlist-dir} (default: @code{\"~/.mpd/playlists\"})"
  43900. msgstr ""
  43901. #. type: table
  43902. #: guix-git/doc/guix.texi:29269
  43903. msgid "The directory to store playlists."
  43904. msgstr ""
  43905. #. type: item
  43906. #: guix-git/doc/guix.texi:29270
  43907. #, no-wrap
  43908. msgid "@code{db-file} (default: @code{\"~/.mpd/tag_cache\"})"
  43909. msgstr ""
  43910. #. type: table
  43911. #: guix-git/doc/guix.texi:29272
  43912. msgid "The location of the music database."
  43913. msgstr ""
  43914. #. type: item
  43915. #: guix-git/doc/guix.texi:29273
  43916. #, no-wrap
  43917. msgid "@code{state-file} (default: @code{\"~/.mpd/state\"})"
  43918. msgstr ""
  43919. #. type: table
  43920. #: guix-git/doc/guix.texi:29275
  43921. msgid "The location of the file that stores current MPD's state."
  43922. msgstr ""
  43923. #. type: item
  43924. #: guix-git/doc/guix.texi:29276
  43925. #, no-wrap
  43926. msgid "@code{sticker-file} (default: @code{\"~/.mpd/sticker.sql\"})"
  43927. msgstr ""
  43928. #. type: table
  43929. #: guix-git/doc/guix.texi:29278
  43930. msgid "The location of the sticker database."
  43931. msgstr ""
  43932. #. type: item
  43933. #: guix-git/doc/guix.texi:29279
  43934. #, no-wrap
  43935. msgid "@code{port} (default: @code{\"6600\"})"
  43936. msgstr ""
  43937. #. type: table
  43938. #: guix-git/doc/guix.texi:29281
  43939. msgid "The port to run mpd on."
  43940. msgstr ""
  43941. #. type: item
  43942. #: guix-git/doc/guix.texi:29282
  43943. #, no-wrap
  43944. msgid "@code{address} (default: @code{\"any\"})"
  43945. msgstr ""
  43946. #. type: table
  43947. #: guix-git/doc/guix.texi:29285
  43948. msgid "The address that mpd will bind to. To use a Unix domain socket, an absolute path can be specified here."
  43949. msgstr ""
  43950. #. type: item
  43951. #: guix-git/doc/guix.texi:29286
  43952. #, fuzzy, no-wrap
  43953. msgid "@code{outputs} (default: @code{\"(list (mpd-output))\"})"
  43954. msgstr "@code{features} (@code{'()})"
  43955. #. type: table
  43956. #: guix-git/doc/guix.texi:29288
  43957. msgid "The audio outputs that MPD can use. By default this is a single output using pulseaudio."
  43958. msgstr ""
  43959. #. type: deftp
  43960. #: guix-git/doc/guix.texi:29292
  43961. #, no-wrap
  43962. msgid "{Data Type} mpd-output"
  43963. msgstr ""
  43964. #. type: deftp
  43965. #: guix-git/doc/guix.texi:29294
  43966. msgid "Data type representing an @command{mpd} audio output."
  43967. msgstr ""
  43968. #. type: item
  43969. #: guix-git/doc/guix.texi:29296
  43970. #, fuzzy, no-wrap
  43971. msgid "@code{name} (default: @code{\"MPD\"})"
  43972. msgstr "@code{gnome}(默认值:@code{gnome})"
  43973. #. type: table
  43974. #: guix-git/doc/guix.texi:29298
  43975. msgid "The name of the audio output."
  43976. msgstr ""
  43977. #. type: item
  43978. #: guix-git/doc/guix.texi:29299
  43979. #, fuzzy, no-wrap
  43980. msgid "@code{type} (default: @code{\"pulse\"})"
  43981. msgstr "@code{mate}(默认值:@code{mate})"
  43982. #. type: table
  43983. #: guix-git/doc/guix.texi:29301
  43984. msgid "The type of audio output."
  43985. msgstr ""
  43986. #. type: item
  43987. #: guix-git/doc/guix.texi:29302
  43988. #, fuzzy, no-wrap
  43989. msgid "@code{enabled?} (default: @code{#t})"
  43990. msgstr "@code{speed}(默认值:@code{1.0})"
  43991. #. type: table
  43992. #: guix-git/doc/guix.texi:29307
  43993. 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."
  43994. msgstr ""
  43995. #. type: item
  43996. #: guix-git/doc/guix.texi:29308
  43997. #, fuzzy, no-wrap
  43998. msgid "@code{tags?} (default: @code{#t})"
  43999. msgstr "@code{mate}(默认值:@code{mate})"
  44000. #. type: table
  44001. #: guix-git/doc/guix.texi:29312
  44002. 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."
  44003. msgstr ""
  44004. #. type: item
  44005. #: guix-git/doc/guix.texi:29313
  44006. #, fuzzy, no-wrap
  44007. msgid "@code{always-on?} (default: @code{#f})"
  44008. msgstr "@code{challenge}(默认值:@code{#f})"
  44009. #. type: table
  44010. #: guix-git/doc/guix.texi:29317
  44011. 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."
  44012. msgstr ""
  44013. #. type: code{#1}
  44014. #: guix-git/doc/guix.texi:29318
  44015. #, no-wrap
  44016. msgid "mixer-type"
  44017. msgstr ""
  44018. #. type: table
  44019. #: guix-git/doc/guix.texi:29324
  44020. 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})."
  44021. msgstr ""
  44022. #. type: table
  44023. #: guix-git/doc/guix.texi:29328
  44024. msgid "An association list of option symbols to string values to be appended to the audio output configuration."
  44025. msgstr ""
  44026. #. type: Plain text
  44027. #: guix-git/doc/guix.texi:29334
  44028. msgid "The following example shows a configuration of @code{mpd} that provides an HTTP audio streaming output."
  44029. msgstr ""
  44030. #. type: lisp
  44031. #: guix-git/doc/guix.texi:29346
  44032. #, no-wrap
  44033. msgid ""
  44034. "(service mpd-service-type\n"
  44035. " (mpd-configuration\n"
  44036. " (outputs\n"
  44037. " (list (mpd-output\n"
  44038. " (name \"streaming\")\n"
  44039. " (type \"httpd\")\n"
  44040. " (mixer-type 'null)\n"
  44041. " (extra-options\n"
  44042. " `((encoder . \"vorbis\")\n"
  44043. " (port . \"8080\"))))))))\n"
  44044. msgstr ""
  44045. #. type: Plain text
  44046. #: guix-git/doc/guix.texi:29355
  44047. msgid "The @code{(gnu services virtualization)} module provides services for the libvirt and virtlog daemons, as well as other virtualization-related services."
  44048. msgstr ""
  44049. #. type: subsubheading
  44050. #: guix-git/doc/guix.texi:29356
  44051. #, no-wrap
  44052. msgid "Libvirt daemon"
  44053. msgstr ""
  44054. #. type: Plain text
  44055. #: guix-git/doc/guix.texi:29361
  44056. 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."
  44057. msgstr ""
  44058. #. type: deffn
  44059. #: guix-git/doc/guix.texi:29362
  44060. #, no-wrap
  44061. msgid "{Scheme Variable} libvirt-service-type"
  44062. msgstr ""
  44063. #. type: deffn
  44064. #: guix-git/doc/guix.texi:29365
  44065. msgid "This is the type of the @uref{https://libvirt.org, libvirt daemon}. Its value must be a @code{libvirt-configuration}."
  44066. msgstr ""
  44067. #. type: lisp
  44068. #: guix-git/doc/guix.texi:29371
  44069. #, no-wrap
  44070. msgid ""
  44071. "(service libvirt-service-type\n"
  44072. " (libvirt-configuration\n"
  44073. " (unix-sock-group \"libvirt\")\n"
  44074. " (tls-port \"16555\")))\n"
  44075. msgstr ""
  44076. #. type: Plain text
  44077. #: guix-git/doc/guix.texi:29376
  44078. msgid "Available @code{libvirt-configuration} fields are:"
  44079. msgstr ""
  44080. #. type: deftypevr
  44081. #: guix-git/doc/guix.texi:29377
  44082. #, no-wrap
  44083. msgid "{@code{libvirt-configuration} parameter} package libvirt"
  44084. msgstr ""
  44085. #. type: deftypevr
  44086. #: guix-git/doc/guix.texi:29379
  44087. msgid "Libvirt package."
  44088. msgstr ""
  44089. #. type: deftypevr
  44090. #: guix-git/doc/guix.texi:29382
  44091. #, no-wrap
  44092. msgid "{@code{libvirt-configuration} parameter} boolean listen-tls?"
  44093. msgstr ""
  44094. #. type: deftypevr
  44095. #: guix-git/doc/guix.texi:29385
  44096. msgid "Flag listening for secure TLS connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  44097. msgstr ""
  44098. #. type: deftypevr
  44099. #: guix-git/doc/guix.texi:29388
  44100. msgid "It is necessary to setup a CA and issue server certificates before using this capability."
  44101. msgstr ""
  44102. #. type: deftypevr
  44103. #: guix-git/doc/guix.texi:29393
  44104. #, no-wrap
  44105. msgid "{@code{libvirt-configuration} parameter} boolean listen-tcp?"
  44106. msgstr ""
  44107. #. type: deftypevr
  44108. #: guix-git/doc/guix.texi:29396
  44109. msgid "Listen for unencrypted TCP connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  44110. msgstr ""
  44111. #. type: deftypevr
  44112. #: guix-git/doc/guix.texi:29400
  44113. 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)."
  44114. msgstr ""
  44115. #. type: deftypevr
  44116. #: guix-git/doc/guix.texi:29405
  44117. #, no-wrap
  44118. msgid "{@code{libvirt-configuration} parameter} string tls-port"
  44119. msgstr ""
  44120. #. type: deftypevr
  44121. #: guix-git/doc/guix.texi:29408
  44122. msgid "Port for accepting secure TLS connections. This can be a port number, or service name."
  44123. msgstr ""
  44124. #. type: deftypevr
  44125. #: guix-git/doc/guix.texi:29410
  44126. msgid "Defaults to @samp{\"16514\"}."
  44127. msgstr ""
  44128. #. type: deftypevr
  44129. #: guix-git/doc/guix.texi:29413
  44130. #, no-wrap
  44131. msgid "{@code{libvirt-configuration} parameter} string tcp-port"
  44132. msgstr ""
  44133. #. type: deftypevr
  44134. #: guix-git/doc/guix.texi:29416
  44135. msgid "Port for accepting insecure TCP connections. This can be a port number, or service name."
  44136. msgstr ""
  44137. #. type: deftypevr
  44138. #: guix-git/doc/guix.texi:29418
  44139. msgid "Defaults to @samp{\"16509\"}."
  44140. msgstr ""
  44141. #. type: deftypevr
  44142. #: guix-git/doc/guix.texi:29421
  44143. #, no-wrap
  44144. msgid "{@code{libvirt-configuration} parameter} string listen-addr"
  44145. msgstr ""
  44146. #. type: deftypevr
  44147. #: guix-git/doc/guix.texi:29423
  44148. msgid "IP address or hostname used for client connections."
  44149. msgstr ""
  44150. #. type: deftypevr
  44151. #: guix-git/doc/guix.texi:29428
  44152. #, no-wrap
  44153. msgid "{@code{libvirt-configuration} parameter} boolean mdns-adv?"
  44154. msgstr ""
  44155. #. type: deftypevr
  44156. #: guix-git/doc/guix.texi:29430
  44157. msgid "Flag toggling mDNS advertisement of the libvirt service."
  44158. msgstr ""
  44159. #. type: deftypevr
  44160. #: guix-git/doc/guix.texi:29433
  44161. msgid "Alternatively can disable for all services on a host by stopping the Avahi daemon."
  44162. msgstr ""
  44163. #. type: deftypevr
  44164. #: guix-git/doc/guix.texi:29438
  44165. #, no-wrap
  44166. msgid "{@code{libvirt-configuration} parameter} string mdns-name"
  44167. msgstr ""
  44168. #. type: deftypevr
  44169. #: guix-git/doc/guix.texi:29441
  44170. msgid "Default mDNS advertisement name. This must be unique on the immediate broadcast network."
  44171. msgstr ""
  44172. #. type: deftypevr
  44173. #: guix-git/doc/guix.texi:29443
  44174. msgid "Defaults to @samp{\"Virtualization Host <hostname>\"}."
  44175. msgstr ""
  44176. #. type: deftypevr
  44177. #: guix-git/doc/guix.texi:29446
  44178. #, no-wrap
  44179. msgid "{@code{libvirt-configuration} parameter} string unix-sock-group"
  44180. msgstr ""
  44181. #. type: deftypevr
  44182. #: guix-git/doc/guix.texi:29450
  44183. msgid "UNIX domain socket group ownership. This can be used to allow a 'trusted' set of users access to management capabilities without becoming root."
  44184. msgstr ""
  44185. #. type: deftypevr
  44186. #: guix-git/doc/guix.texi:29455
  44187. #, no-wrap
  44188. msgid "{@code{libvirt-configuration} parameter} string unix-sock-ro-perms"
  44189. msgstr ""
  44190. #. type: deftypevr
  44191. #: guix-git/doc/guix.texi:29458
  44192. msgid "UNIX socket permissions for the R/O socket. This is used for monitoring VM status only."
  44193. msgstr ""
  44194. #. type: deftypevr
  44195. #: guix-git/doc/guix.texi:29460 guix-git/doc/guix.texi:29478
  44196. msgid "Defaults to @samp{\"0777\"}."
  44197. msgstr ""
  44198. #. type: deftypevr
  44199. #: guix-git/doc/guix.texi:29463
  44200. #, no-wrap
  44201. msgid "{@code{libvirt-configuration} parameter} string unix-sock-rw-perms"
  44202. msgstr ""
  44203. #. type: deftypevr
  44204. #: guix-git/doc/guix.texi:29467
  44205. 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)"
  44206. msgstr ""
  44207. #. type: deftypevr
  44208. #: guix-git/doc/guix.texi:29469
  44209. msgid "Defaults to @samp{\"0770\"}."
  44210. msgstr ""
  44211. #. type: deftypevr
  44212. #: guix-git/doc/guix.texi:29472
  44213. #, no-wrap
  44214. msgid "{@code{libvirt-configuration} parameter} string unix-sock-admin-perms"
  44215. msgstr ""
  44216. #. type: deftypevr
  44217. #: guix-git/doc/guix.texi:29476
  44218. 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."
  44219. msgstr ""
  44220. #. type: deftypevr
  44221. #: guix-git/doc/guix.texi:29481
  44222. #, no-wrap
  44223. msgid "{@code{libvirt-configuration} parameter} string unix-sock-dir"
  44224. msgstr ""
  44225. #. type: deftypevr
  44226. #: guix-git/doc/guix.texi:29483
  44227. msgid "The directory in which sockets will be found/created."
  44228. msgstr ""
  44229. #. type: deftypevr
  44230. #: guix-git/doc/guix.texi:29485
  44231. msgid "Defaults to @samp{\"/var/run/libvirt\"}."
  44232. msgstr ""
  44233. #. type: deftypevr
  44234. #: guix-git/doc/guix.texi:29488
  44235. #, no-wrap
  44236. msgid "{@code{libvirt-configuration} parameter} string auth-unix-ro"
  44237. msgstr ""
  44238. #. type: deftypevr
  44239. #: guix-git/doc/guix.texi:29491
  44240. msgid "Authentication scheme for UNIX read-only sockets. By default socket permissions allow anyone to connect"
  44241. msgstr ""
  44242. #. type: deftypevr
  44243. #: guix-git/doc/guix.texi:29493 guix-git/doc/guix.texi:29502
  44244. msgid "Defaults to @samp{\"polkit\"}."
  44245. msgstr ""
  44246. #. type: deftypevr
  44247. #: guix-git/doc/guix.texi:29496
  44248. #, no-wrap
  44249. msgid "{@code{libvirt-configuration} parameter} string auth-unix-rw"
  44250. msgstr ""
  44251. #. type: deftypevr
  44252. #: guix-git/doc/guix.texi:29500
  44253. 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."
  44254. msgstr ""
  44255. #. type: deftypevr
  44256. #: guix-git/doc/guix.texi:29505
  44257. #, no-wrap
  44258. msgid "{@code{libvirt-configuration} parameter} string auth-tcp"
  44259. msgstr ""
  44260. #. type: deftypevr
  44261. #: guix-git/doc/guix.texi:29509
  44262. 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."
  44263. msgstr ""
  44264. #. type: deftypevr
  44265. #: guix-git/doc/guix.texi:29511
  44266. msgid "Defaults to @samp{\"sasl\"}."
  44267. msgstr ""
  44268. #. type: deftypevr
  44269. #: guix-git/doc/guix.texi:29514
  44270. #, no-wrap
  44271. msgid "{@code{libvirt-configuration} parameter} string auth-tls"
  44272. msgstr ""
  44273. #. type: deftypevr
  44274. #: guix-git/doc/guix.texi:29518
  44275. msgid "Authentication scheme for TLS sockets. TLS sockets already have encryption provided by the TLS layer, and limited authentication is done by certificates."
  44276. msgstr ""
  44277. #. type: deftypevr
  44278. #: guix-git/doc/guix.texi:29521
  44279. msgid "It is possible to make use of any SASL authentication mechanism as well, by using 'sasl' for this option"
  44280. msgstr ""
  44281. #. type: deftypevr
  44282. #: guix-git/doc/guix.texi:29523
  44283. msgid "Defaults to @samp{\"none\"}."
  44284. msgstr ""
  44285. #. type: deftypevr
  44286. #: guix-git/doc/guix.texi:29526
  44287. #, no-wrap
  44288. msgid "{@code{libvirt-configuration} parameter} optional-list access-drivers"
  44289. msgstr ""
  44290. #. type: deftypevr
  44291. #: guix-git/doc/guix.texi:29528
  44292. msgid "API access control scheme."
  44293. msgstr ""
  44294. #. type: deftypevr
  44295. #: guix-git/doc/guix.texi:29531
  44296. msgid "By default an authenticated user is allowed access to all APIs. Access drivers can place restrictions on this."
  44297. msgstr ""
  44298. #. type: deftypevr
  44299. #: guix-git/doc/guix.texi:29536
  44300. #, no-wrap
  44301. msgid "{@code{libvirt-configuration} parameter} string key-file"
  44302. msgstr ""
  44303. #. type: deftypevr
  44304. #: guix-git/doc/guix.texi:29539
  44305. msgid "Server key file path. If set to an empty string, then no private key is loaded."
  44306. msgstr ""
  44307. #. type: deftypevr
  44308. #: guix-git/doc/guix.texi:29544
  44309. #, no-wrap
  44310. msgid "{@code{libvirt-configuration} parameter} string cert-file"
  44311. msgstr ""
  44312. #. type: deftypevr
  44313. #: guix-git/doc/guix.texi:29547
  44314. msgid "Server key file path. If set to an empty string, then no certificate is loaded."
  44315. msgstr ""
  44316. #. type: deftypevr
  44317. #: guix-git/doc/guix.texi:29552
  44318. #, no-wrap
  44319. msgid "{@code{libvirt-configuration} parameter} string ca-file"
  44320. msgstr ""
  44321. #. type: deftypevr
  44322. #: guix-git/doc/guix.texi:29555
  44323. msgid "Server key file path. If set to an empty string, then no CA certificate is loaded."
  44324. msgstr ""
  44325. #. type: deftypevr
  44326. #: guix-git/doc/guix.texi:29560
  44327. #, no-wrap
  44328. msgid "{@code{libvirt-configuration} parameter} string crl-file"
  44329. msgstr ""
  44330. #. type: deftypevr
  44331. #: guix-git/doc/guix.texi:29563
  44332. msgid "Certificate revocation list path. If set to an empty string, then no CRL is loaded."
  44333. msgstr ""
  44334. #. type: deftypevr
  44335. #: guix-git/doc/guix.texi:29568
  44336. #, no-wrap
  44337. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-sanity-cert"
  44338. msgstr ""
  44339. #. type: deftypevr
  44340. #: guix-git/doc/guix.texi:29570
  44341. msgid "Disable verification of our own server certificates."
  44342. msgstr ""
  44343. #. type: deftypevr
  44344. #: guix-git/doc/guix.texi:29573
  44345. msgid "When libvirtd starts it performs some sanity checks against its own certificates."
  44346. msgstr ""
  44347. #. type: deftypevr
  44348. #: guix-git/doc/guix.texi:29578
  44349. #, no-wrap
  44350. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-verify-cert"
  44351. msgstr ""
  44352. #. type: deftypevr
  44353. #: guix-git/doc/guix.texi:29580
  44354. msgid "Disable verification of client certificates."
  44355. msgstr ""
  44356. #. type: deftypevr
  44357. #: guix-git/doc/guix.texi:29584
  44358. msgid "Client certificate verification is the primary authentication mechanism. Any client which does not present a certificate signed by the CA will be rejected."
  44359. msgstr ""
  44360. #. type: deftypevr
  44361. #: guix-git/doc/guix.texi:29589
  44362. #, no-wrap
  44363. msgid "{@code{libvirt-configuration} parameter} optional-list tls-allowed-dn-list"
  44364. msgstr ""
  44365. #. type: deftypevr
  44366. #: guix-git/doc/guix.texi:29591
  44367. msgid "Whitelist of allowed x509 Distinguished Name."
  44368. msgstr ""
  44369. #. type: deftypevr
  44370. #: guix-git/doc/guix.texi:29596
  44371. #, no-wrap
  44372. msgid "{@code{libvirt-configuration} parameter} optional-list sasl-allowed-usernames"
  44373. msgstr ""
  44374. #. type: deftypevr
  44375. #: guix-git/doc/guix.texi:29599
  44376. msgid "Whitelist of allowed SASL usernames. The format for username depends on the SASL authentication mechanism."
  44377. msgstr ""
  44378. #. type: deftypevr
  44379. #: guix-git/doc/guix.texi:29604
  44380. #, no-wrap
  44381. msgid "{@code{libvirt-configuration} parameter} string tls-priority"
  44382. msgstr ""
  44383. #. type: deftypevr
  44384. #: guix-git/doc/guix.texi:29608
  44385. 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."
  44386. msgstr ""
  44387. #. type: deftypevr
  44388. #: guix-git/doc/guix.texi:29610
  44389. msgid "Defaults to @samp{\"NORMAL\"}."
  44390. msgstr ""
  44391. #. type: deftypevr
  44392. #: guix-git/doc/guix.texi:29613
  44393. #, no-wrap
  44394. msgid "{@code{libvirt-configuration} parameter} integer max-clients"
  44395. msgstr ""
  44396. #. type: deftypevr
  44397. #: guix-git/doc/guix.texi:29616 guix-git/doc/guix.texi:30040
  44398. msgid "Maximum number of concurrent client connections to allow over all sockets combined."
  44399. msgstr ""
  44400. #. type: deftypevr
  44401. #: guix-git/doc/guix.texi:29618
  44402. msgid "Defaults to @samp{5000}."
  44403. msgstr ""
  44404. #. type: deftypevr
  44405. #: guix-git/doc/guix.texi:29621
  44406. #, no-wrap
  44407. msgid "{@code{libvirt-configuration} parameter} integer max-queued-clients"
  44408. msgstr ""
  44409. #. type: deftypevr
  44410. #: guix-git/doc/guix.texi:29625
  44411. 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."
  44412. msgstr ""
  44413. #. type: deftypevr
  44414. #: guix-git/doc/guix.texi:29630
  44415. #, no-wrap
  44416. msgid "{@code{libvirt-configuration} parameter} integer max-anonymous-clients"
  44417. msgstr ""
  44418. #. type: deftypevr
  44419. #: guix-git/doc/guix.texi:29633
  44420. msgid "Maximum length of queue of accepted but not yet authenticated clients. Set this to zero to turn this feature off"
  44421. msgstr ""
  44422. #. type: deftypevr
  44423. #: guix-git/doc/guix.texi:29635 guix-git/doc/guix.texi:29653
  44424. #: guix-git/doc/guix.texi:29669
  44425. msgid "Defaults to @samp{20}."
  44426. msgstr ""
  44427. #. type: deftypevr
  44428. #: guix-git/doc/guix.texi:29638
  44429. #, no-wrap
  44430. msgid "{@code{libvirt-configuration} parameter} integer min-workers"
  44431. msgstr ""
  44432. #. type: deftypevr
  44433. #: guix-git/doc/guix.texi:29640
  44434. msgid "Number of workers to start up initially."
  44435. msgstr ""
  44436. #. type: deftypevr
  44437. #: guix-git/doc/guix.texi:29645
  44438. #, no-wrap
  44439. msgid "{@code{libvirt-configuration} parameter} integer max-workers"
  44440. msgstr ""
  44441. #. type: deftypevr
  44442. #: guix-git/doc/guix.texi:29647
  44443. msgid "Maximum number of worker threads."
  44444. msgstr ""
  44445. #. type: deftypevr
  44446. #: guix-git/doc/guix.texi:29651
  44447. 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."
  44448. msgstr ""
  44449. #. type: deftypevr
  44450. #: guix-git/doc/guix.texi:29656
  44451. #, no-wrap
  44452. msgid "{@code{libvirt-configuration} parameter} integer prio-workers"
  44453. msgstr ""
  44454. #. type: deftypevr
  44455. #: guix-git/doc/guix.texi:29660
  44456. 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."
  44457. msgstr ""
  44458. #. type: deftypevr
  44459. #: guix-git/doc/guix.texi:29665
  44460. #, no-wrap
  44461. msgid "{@code{libvirt-configuration} parameter} integer max-requests"
  44462. msgstr ""
  44463. #. type: deftypevr
  44464. #: guix-git/doc/guix.texi:29667
  44465. msgid "Total global limit on concurrent RPC calls."
  44466. msgstr ""
  44467. #. type: deftypevr
  44468. #: guix-git/doc/guix.texi:29672
  44469. #, no-wrap
  44470. msgid "{@code{libvirt-configuration} parameter} integer max-client-requests"
  44471. msgstr ""
  44472. #. type: deftypevr
  44473. #: guix-git/doc/guix.texi:29676
  44474. 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."
  44475. msgstr ""
  44476. #. type: deftypevr
  44477. #: guix-git/doc/guix.texi:29681
  44478. #, no-wrap
  44479. msgid "{@code{libvirt-configuration} parameter} integer admin-min-workers"
  44480. msgstr ""
  44481. #. type: deftypevr
  44482. #: guix-git/doc/guix.texi:29683
  44483. msgid "Same as @code{min-workers} but for the admin interface."
  44484. msgstr ""
  44485. #. type: deftypevr
  44486. #: guix-git/doc/guix.texi:29688
  44487. #, no-wrap
  44488. msgid "{@code{libvirt-configuration} parameter} integer admin-max-workers"
  44489. msgstr ""
  44490. #. type: deftypevr
  44491. #: guix-git/doc/guix.texi:29690
  44492. msgid "Same as @code{max-workers} but for the admin interface."
  44493. msgstr ""
  44494. #. type: deftypevr
  44495. #: guix-git/doc/guix.texi:29695
  44496. #, no-wrap
  44497. msgid "{@code{libvirt-configuration} parameter} integer admin-max-clients"
  44498. msgstr ""
  44499. #. type: deftypevr
  44500. #: guix-git/doc/guix.texi:29697
  44501. msgid "Same as @code{max-clients} but for the admin interface."
  44502. msgstr ""
  44503. #. type: deftypevr
  44504. #: guix-git/doc/guix.texi:29702
  44505. #, no-wrap
  44506. msgid "{@code{libvirt-configuration} parameter} integer admin-max-queued-clients"
  44507. msgstr ""
  44508. #. type: deftypevr
  44509. #: guix-git/doc/guix.texi:29704
  44510. msgid "Same as @code{max-queued-clients} but for the admin interface."
  44511. msgstr ""
  44512. #. type: deftypevr
  44513. #: guix-git/doc/guix.texi:29709
  44514. #, no-wrap
  44515. msgid "{@code{libvirt-configuration} parameter} integer admin-max-client-requests"
  44516. msgstr ""
  44517. #. type: deftypevr
  44518. #: guix-git/doc/guix.texi:29711
  44519. msgid "Same as @code{max-client-requests} but for the admin interface."
  44520. msgstr ""
  44521. #. type: deftypevr
  44522. #: guix-git/doc/guix.texi:29716
  44523. #, no-wrap
  44524. msgid "{@code{libvirt-configuration} parameter} integer log-level"
  44525. msgstr ""
  44526. #. type: deftypevr
  44527. #: guix-git/doc/guix.texi:29718 guix-git/doc/guix.texi:29942
  44528. msgid "Logging level. 4 errors, 3 warnings, 2 information, 1 debug."
  44529. msgstr ""
  44530. #. type: deftypevr
  44531. #: guix-git/doc/guix.texi:29723
  44532. #, no-wrap
  44533. msgid "{@code{libvirt-configuration} parameter} string log-filters"
  44534. msgstr ""
  44535. #. type: deftypevr
  44536. #: guix-git/doc/guix.texi:29725 guix-git/doc/guix.texi:29949
  44537. msgid "Logging filters."
  44538. msgstr ""
  44539. #. type: deftypevr
  44540. #: guix-git/doc/guix.texi:29728
  44541. msgid "A filter allows to select a different logging level for a given category of logs. The format for a filter is one of:"
  44542. msgstr ""
  44543. #. type: itemize
  44544. #: guix-git/doc/guix.texi:29732 guix-git/doc/guix.texi:29956
  44545. msgid "x:name"
  44546. msgstr ""
  44547. #. type: itemize
  44548. #: guix-git/doc/guix.texi:29735 guix-git/doc/guix.texi:29959
  44549. msgid "x:+name"
  44550. msgstr ""
  44551. #. type: deftypevr
  44552. #: guix-git/doc/guix.texi:29746
  44553. 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:"
  44554. msgstr ""
  44555. #. type: itemize
  44556. #: guix-git/doc/guix.texi:29750 guix-git/doc/guix.texi:29795
  44557. #: guix-git/doc/guix.texi:29973 guix-git/doc/guix.texi:30018
  44558. msgid "1: DEBUG"
  44559. msgstr ""
  44560. #. type: itemize
  44561. #: guix-git/doc/guix.texi:29753 guix-git/doc/guix.texi:29798
  44562. #: guix-git/doc/guix.texi:29976 guix-git/doc/guix.texi:30021
  44563. msgid "2: INFO"
  44564. msgstr ""
  44565. #. type: itemize
  44566. #: guix-git/doc/guix.texi:29756 guix-git/doc/guix.texi:29801
  44567. #: guix-git/doc/guix.texi:29979 guix-git/doc/guix.texi:30024
  44568. msgid "3: WARNING"
  44569. msgstr ""
  44570. #. type: itemize
  44571. #: guix-git/doc/guix.texi:29759 guix-git/doc/guix.texi:29804
  44572. #: guix-git/doc/guix.texi:29982 guix-git/doc/guix.texi:30027
  44573. msgid "4: ERROR"
  44574. msgstr ""
  44575. #. type: deftypevr
  44576. #: guix-git/doc/guix.texi:29764 guix-git/doc/guix.texi:29987
  44577. msgid "Multiple filters can be defined in a single filters statement, they just need to be separated by spaces."
  44578. msgstr ""
  44579. #. type: deftypevr
  44580. #: guix-git/doc/guix.texi:29766 guix-git/doc/guix.texi:29989
  44581. msgid "Defaults to @samp{\"3:remote 4:event\"}."
  44582. msgstr ""
  44583. #. type: deftypevr
  44584. #: guix-git/doc/guix.texi:29769
  44585. #, no-wrap
  44586. msgid "{@code{libvirt-configuration} parameter} string log-outputs"
  44587. msgstr ""
  44588. #. type: deftypevr
  44589. #: guix-git/doc/guix.texi:29771 guix-git/doc/guix.texi:29994
  44590. msgid "Logging outputs."
  44591. msgstr ""
  44592. #. type: deftypevr
  44593. #: guix-git/doc/guix.texi:29774
  44594. msgid "An output is one of the places to save logging information. The format for an output can be:"
  44595. msgstr ""
  44596. #. type: item
  44597. #: guix-git/doc/guix.texi:29776 guix-git/doc/guix.texi:29999
  44598. #, no-wrap
  44599. msgid "x:stderr"
  44600. msgstr ""
  44601. #. type: table
  44602. #: guix-git/doc/guix.texi:29778 guix-git/doc/guix.texi:30001
  44603. msgid "output goes to stderr"
  44604. msgstr ""
  44605. #. type: item
  44606. #: guix-git/doc/guix.texi:29779 guix-git/doc/guix.texi:30002
  44607. #, no-wrap
  44608. msgid "x:syslog:name"
  44609. msgstr ""
  44610. #. type: table
  44611. #: guix-git/doc/guix.texi:29781 guix-git/doc/guix.texi:30004
  44612. msgid "use syslog for the output and use the given name as the ident"
  44613. msgstr ""
  44614. #. type: item
  44615. #: guix-git/doc/guix.texi:29782 guix-git/doc/guix.texi:30005
  44616. #, no-wrap
  44617. msgid "x:file:file_path"
  44618. msgstr ""
  44619. #. type: table
  44620. #: guix-git/doc/guix.texi:29784 guix-git/doc/guix.texi:30007
  44621. msgid "output to a file, with the given filepath"
  44622. msgstr ""
  44623. #. type: item
  44624. #: guix-git/doc/guix.texi:29785 guix-git/doc/guix.texi:30008
  44625. #, no-wrap
  44626. msgid "x:journald"
  44627. msgstr ""
  44628. #. type: table
  44629. #: guix-git/doc/guix.texi:29787 guix-git/doc/guix.texi:30010
  44630. msgid "output to journald logging system"
  44631. msgstr ""
  44632. #. type: deftypevr
  44633. #: guix-git/doc/guix.texi:29791 guix-git/doc/guix.texi:30014
  44634. msgid "In all case the x prefix is the minimal level, acting as a filter"
  44635. msgstr ""
  44636. #. type: deftypevr
  44637. #: guix-git/doc/guix.texi:29809 guix-git/doc/guix.texi:30032
  44638. msgid "Multiple outputs can be defined, they just need to be separated by spaces."
  44639. msgstr ""
  44640. #. type: deftypevr
  44641. #: guix-git/doc/guix.texi:29811 guix-git/doc/guix.texi:30034
  44642. msgid "Defaults to @samp{\"3:stderr\"}."
  44643. msgstr ""
  44644. #. type: deftypevr
  44645. #: guix-git/doc/guix.texi:29814
  44646. #, no-wrap
  44647. msgid "{@code{libvirt-configuration} parameter} integer audit-level"
  44648. msgstr ""
  44649. #. type: deftypevr
  44650. #: guix-git/doc/guix.texi:29816
  44651. msgid "Allows usage of the auditing subsystem to be altered"
  44652. msgstr ""
  44653. #. type: itemize
  44654. #: guix-git/doc/guix.texi:29820
  44655. msgid "0: disable all auditing"
  44656. msgstr ""
  44657. #. type: itemize
  44658. #: guix-git/doc/guix.texi:29823
  44659. msgid "1: enable auditing, only if enabled on host"
  44660. msgstr ""
  44661. #. type: itemize
  44662. #: guix-git/doc/guix.texi:29826
  44663. msgid "2: enable auditing, and exit if disabled on host."
  44664. msgstr ""
  44665. #. type: deftypevr
  44666. #: guix-git/doc/guix.texi:29833
  44667. #, no-wrap
  44668. msgid "{@code{libvirt-configuration} parameter} boolean audit-logging"
  44669. msgstr ""
  44670. #. type: deftypevr
  44671. #: guix-git/doc/guix.texi:29835
  44672. msgid "Send audit messages via libvirt logging infrastructure."
  44673. msgstr ""
  44674. #. type: deftypevr
  44675. #: guix-git/doc/guix.texi:29840
  44676. #, no-wrap
  44677. msgid "{@code{libvirt-configuration} parameter} optional-string host-uuid"
  44678. msgstr ""
  44679. #. type: deftypevr
  44680. #: guix-git/doc/guix.texi:29842
  44681. msgid "Host UUID@. UUID must not have all digits be the same."
  44682. msgstr ""
  44683. #. type: deftypevr
  44684. #: guix-git/doc/guix.texi:29847
  44685. #, no-wrap
  44686. msgid "{@code{libvirt-configuration} parameter} string host-uuid-source"
  44687. msgstr ""
  44688. #. type: deftypevr
  44689. #: guix-git/doc/guix.texi:29849
  44690. msgid "Source to read host UUID."
  44691. msgstr ""
  44692. #. type: itemize
  44693. #: guix-git/doc/guix.texi:29853
  44694. msgid "@code{smbios}: fetch the UUID from @code{dmidecode -s system-uuid}"
  44695. msgstr ""
  44696. #. type: itemize
  44697. #: guix-git/doc/guix.texi:29856
  44698. msgid "@code{machine-id}: fetch the UUID from @code{/etc/machine-id}"
  44699. msgstr ""
  44700. #. type: deftypevr
  44701. #: guix-git/doc/guix.texi:29861
  44702. msgid "If @code{dmidecode} does not provide a valid UUID a temporary UUID will be generated."
  44703. msgstr ""
  44704. #. type: deftypevr
  44705. #: guix-git/doc/guix.texi:29863
  44706. msgid "Defaults to @samp{\"smbios\"}."
  44707. msgstr ""
  44708. #. type: deftypevr
  44709. #: guix-git/doc/guix.texi:29866
  44710. #, no-wrap
  44711. msgid "{@code{libvirt-configuration} parameter} integer keepalive-interval"
  44712. msgstr ""
  44713. #. type: deftypevr
  44714. #: guix-git/doc/guix.texi:29871
  44715. 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."
  44716. msgstr ""
  44717. #. type: deftypevr
  44718. #: guix-git/doc/guix.texi:29876
  44719. #, no-wrap
  44720. msgid "{@code{libvirt-configuration} parameter} integer keepalive-count"
  44721. msgstr ""
  44722. #. type: deftypevr
  44723. #: guix-git/doc/guix.texi:29880
  44724. 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."
  44725. msgstr ""
  44726. #. type: deftypevr
  44727. #: guix-git/doc/guix.texi:29887
  44728. 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."
  44729. msgstr ""
  44730. #. type: deftypevr
  44731. #: guix-git/doc/guix.texi:29892
  44732. #, no-wrap
  44733. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-interval"
  44734. msgstr ""
  44735. #. type: deftypevr
  44736. #: guix-git/doc/guix.texi:29894 guix-git/doc/guix.texi:29901
  44737. msgid "Same as above but for admin interface."
  44738. msgstr ""
  44739. #. type: deftypevr
  44740. #: guix-git/doc/guix.texi:29899
  44741. #, no-wrap
  44742. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-count"
  44743. msgstr ""
  44744. #. type: deftypevr
  44745. #: guix-git/doc/guix.texi:29906
  44746. #, no-wrap
  44747. msgid "{@code{libvirt-configuration} parameter} integer ovs-timeout"
  44748. msgstr ""
  44749. #. type: deftypevr
  44750. #: guix-git/doc/guix.texi:29908
  44751. msgid "Timeout for Open vSwitch calls."
  44752. msgstr ""
  44753. #. type: deftypevr
  44754. #: guix-git/doc/guix.texi:29912
  44755. 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."
  44756. msgstr ""
  44757. #. type: subsubheading
  44758. #: guix-git/doc/guix.texi:29919
  44759. #, no-wrap
  44760. msgid "Virtlog daemon"
  44761. msgstr ""
  44762. #. type: Plain text
  44763. #: guix-git/doc/guix.texi:29922
  44764. msgid "The virtlogd service is a server side daemon component of libvirt that is used to manage logs from virtual machine consoles."
  44765. msgstr ""
  44766. #. type: Plain text
  44767. #: guix-git/doc/guix.texi:29928
  44768. 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."
  44769. msgstr ""
  44770. #. type: deffn
  44771. #: guix-git/doc/guix.texi:29929
  44772. #, no-wrap
  44773. msgid "{Scheme Variable} virtlog-service-type"
  44774. msgstr ""
  44775. #. type: deffn
  44776. #: guix-git/doc/guix.texi:29932
  44777. msgid "This is the type of the virtlog daemon. Its value must be a @code{virtlog-configuration}."
  44778. msgstr ""
  44779. #. type: lisp
  44780. #: guix-git/doc/guix.texi:29937
  44781. #, no-wrap
  44782. msgid ""
  44783. "(service virtlog-service-type\n"
  44784. " (virtlog-configuration\n"
  44785. " (max-clients 1000)))\n"
  44786. msgstr ""
  44787. #. type: deftypevr
  44788. #: guix-git/doc/guix.texi:29940
  44789. #, no-wrap
  44790. msgid "{@code{virtlog-configuration} parameter} integer log-level"
  44791. msgstr ""
  44792. #. type: deftypevr
  44793. #: guix-git/doc/guix.texi:29947
  44794. #, no-wrap
  44795. msgid "{@code{virtlog-configuration} parameter} string log-filters"
  44796. msgstr ""
  44797. #. type: deftypevr
  44798. #: guix-git/doc/guix.texi:29952
  44799. msgid "A filter allows to select a different logging level for a given category of logs The format for a filter is one of:"
  44800. msgstr ""
  44801. #. type: deftypevr
  44802. #: guix-git/doc/guix.texi:29969
  44803. 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:"
  44804. msgstr ""
  44805. #. type: deftypevr
  44806. #: guix-git/doc/guix.texi:29992
  44807. #, no-wrap
  44808. msgid "{@code{virtlog-configuration} parameter} string log-outputs"
  44809. msgstr ""
  44810. #. type: deftypevr
  44811. #: guix-git/doc/guix.texi:29997
  44812. msgid "An output is one of the places to save logging information The format for an output can be:"
  44813. msgstr ""
  44814. #. type: deftypevr
  44815. #: guix-git/doc/guix.texi:30037
  44816. #, no-wrap
  44817. msgid "{@code{virtlog-configuration} parameter} integer max-clients"
  44818. msgstr ""
  44819. #. type: deftypevr
  44820. #: guix-git/doc/guix.texi:30042
  44821. msgid "Defaults to @samp{1024}."
  44822. msgstr ""
  44823. #. type: deftypevr
  44824. #: guix-git/doc/guix.texi:30045
  44825. #, no-wrap
  44826. msgid "{@code{virtlog-configuration} parameter} integer max-size"
  44827. msgstr ""
  44828. #. type: deftypevr
  44829. #: guix-git/doc/guix.texi:30047
  44830. msgid "Maximum file size before rolling over."
  44831. msgstr ""
  44832. #. type: deftypevr
  44833. #: guix-git/doc/guix.texi:30049
  44834. msgid "Defaults to @samp{2MB}"
  44835. msgstr ""
  44836. #. type: deftypevr
  44837. #: guix-git/doc/guix.texi:30052
  44838. #, no-wrap
  44839. msgid "{@code{virtlog-configuration} parameter} integer max-backups"
  44840. msgstr ""
  44841. #. type: deftypevr
  44842. #: guix-git/doc/guix.texi:30054
  44843. msgid "Maximum number of backup files to keep."
  44844. msgstr ""
  44845. #. type: deftypevr
  44846. #: guix-git/doc/guix.texi:30056
  44847. msgid "Defaults to @samp{3}"
  44848. msgstr ""
  44849. #. type: anchor{#1}
  44850. #: guix-git/doc/guix.texi:30060
  44851. msgid "transparent-emulation-qemu"
  44852. msgstr ""
  44853. #. type: subsubheading
  44854. #: guix-git/doc/guix.texi:30060
  44855. #, no-wrap
  44856. msgid "Transparent Emulation with QEMU"
  44857. msgstr ""
  44858. #. type: cindex
  44859. #: guix-git/doc/guix.texi:30062 guix-git/doc/guix.texi:30142
  44860. #, no-wrap
  44861. msgid "emulation"
  44862. msgstr ""
  44863. #. type: code{#1}
  44864. #: guix-git/doc/guix.texi:30063
  44865. #, no-wrap
  44866. msgid "binfmt_misc"
  44867. msgstr ""
  44868. #. type: Plain text
  44869. #: guix-git/doc/guix.texi:30071
  44870. 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."
  44871. msgstr ""
  44872. #. type: defvr
  44873. #: guix-git/doc/guix.texi:30072
  44874. #, no-wrap
  44875. msgid "{Scheme Variable} qemu-binfmt-service-type"
  44876. msgstr ""
  44877. #. type: defvr
  44878. #: guix-git/doc/guix.texi:30077
  44879. 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:"
  44880. msgstr ""
  44881. #. type: lisp
  44882. #: guix-git/doc/guix.texi:30082
  44883. #, fuzzy, no-wrap
  44884. msgid ""
  44885. "(service qemu-binfmt-service-type\n"
  44886. " (qemu-binfmt-configuration\n"
  44887. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  44888. msgstr ""
  44889. "(service qemu-binfmt-service-type\n"
  44890. " (qemu-binfmt-configuration\n"
  44891. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  44892. " (guix-support? #t)))\n"
  44893. #. type: defvr
  44894. #: guix-git/doc/guix.texi:30088
  44895. 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})."
  44896. msgstr ""
  44897. #. type: deftp
  44898. #: guix-git/doc/guix.texi:30090
  44899. #, no-wrap
  44900. msgid "{Data Type} qemu-binfmt-configuration"
  44901. msgstr ""
  44902. #. type: deftp
  44903. #: guix-git/doc/guix.texi:30092
  44904. msgid "This is the configuration for the @code{qemu-binfmt} service."
  44905. msgstr ""
  44906. #. type: item
  44907. #: guix-git/doc/guix.texi:30094
  44908. #, no-wrap
  44909. msgid "@code{platforms} (default: @code{'()})"
  44910. msgstr ""
  44911. #. type: table
  44912. #: guix-git/doc/guix.texi:30097
  44913. msgid "The list of emulated QEMU platforms. Each item must be a @dfn{platform object} as returned by @code{lookup-qemu-platforms} (see below)."
  44914. msgstr ""
  44915. #. type: table
  44916. #: guix-git/doc/guix.texi:30100
  44917. msgid "For example, let's suppose you're on an x86_64 machine and you have this service:"
  44918. msgstr ""
  44919. #. type: lisp
  44920. #: guix-git/doc/guix.texi:30105
  44921. #, fuzzy, no-wrap
  44922. msgid ""
  44923. "(service qemu-binfmt-service-type\n"
  44924. " (qemu-binfmt-configuration\n"
  44925. " (platforms (lookup-qemu-platforms \"arm\"))))\n"
  44926. msgstr ""
  44927. "(service qemu-binfmt-service-type\n"
  44928. " (qemu-binfmt-configuration\n"
  44929. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  44930. " (guix-support? #t)))\n"
  44931. #. type: table
  44932. #: guix-git/doc/guix.texi:30108
  44933. msgid "You can run:"
  44934. msgstr ""
  44935. #. type: example
  44936. #: guix-git/doc/guix.texi:30111
  44937. #, no-wrap
  44938. msgid "guix build -s armhf-linux inkscape\n"
  44939. msgstr ""
  44940. #. type: table
  44941. #: guix-git/doc/guix.texi:30118
  44942. 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!"
  44943. msgstr ""
  44944. #. type: item
  44945. #: guix-git/doc/guix.texi:30119
  44946. #, no-wrap
  44947. msgid "@code{qemu} (default: @code{qemu})"
  44948. msgstr ""
  44949. #. type: table
  44950. #: guix-git/doc/guix.texi:30121 guix-git/doc/guix.texi:30179
  44951. #: guix-git/doc/guix.texi:30261
  44952. msgid "The QEMU package to use."
  44953. msgstr ""
  44954. #. type: deffn
  44955. #: guix-git/doc/guix.texi:30124
  44956. #, no-wrap
  44957. msgid "{Scheme Procedure} lookup-qemu-platforms @var{platforms}@dots{}"
  44958. msgstr ""
  44959. #. type: deffn
  44960. #: guix-git/doc/guix.texi:30129
  44961. 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."
  44962. msgstr ""
  44963. #. type: deffn
  44964. #: guix-git/doc/guix.texi:30131
  44965. #, no-wrap
  44966. msgid "{Scheme Procedure} qemu-platform? @var{obj}"
  44967. msgstr ""
  44968. #. type: deffn
  44969. #: guix-git/doc/guix.texi:30133
  44970. msgid "Return true if @var{obj} is a platform object."
  44971. msgstr ""
  44972. #. type: deffn
  44973. #: guix-git/doc/guix.texi:30135
  44974. #, no-wrap
  44975. msgid "{Scheme Procedure} qemu-platform-name @var{platform}"
  44976. msgstr ""
  44977. #. type: deffn
  44978. #: guix-git/doc/guix.texi:30137
  44979. msgid "Return the name of @var{platform}---a string such as @code{\"arm\"}."
  44980. msgstr ""
  44981. #. type: subsubheading
  44982. #: guix-git/doc/guix.texi:30140
  44983. #, no-wrap
  44984. msgid "QEMU Guest Agent"
  44985. msgstr ""
  44986. #. type: Plain text
  44987. #: guix-git/doc/guix.texi:30148
  44988. msgid "The QEMU guest agent provides control over the emulated system to the host. The @code{qemu-guest-agent} service runs the agent on Guix guests. To control the agent from the host, open a socket by invoking QEMU with the following arguments:"
  44989. msgstr ""
  44990. #. type: example
  44991. #: guix-git/doc/guix.texi:30155
  44992. #, no-wrap
  44993. msgid ""
  44994. "qemu-system-x86_64 \\\n"
  44995. "\t-chardev socket,path=/tmp/qga.sock,server=on,wait=off,id=qga0 \\\n"
  44996. "\t-device virtio-serial \\\n"
  44997. "\t-device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 \\\n"
  44998. "\t...\n"
  44999. msgstr ""
  45000. #. type: Plain text
  45001. #: guix-git/doc/guix.texi:30159
  45002. msgid "This creates a socket at @file{/tmp/qga.sock} on the host. Once the guest agent is running, you can issue commands with @code{socat}:"
  45003. msgstr ""
  45004. #. type: example
  45005. #: guix-git/doc/guix.texi:30164
  45006. #, no-wrap
  45007. msgid ""
  45008. "$ guix shell socat -- socat unix-connect:/tmp/qga.sock stdio\n"
  45009. "@{\"execute\": \"guest-get-host-name\"@}\n"
  45010. "@{\"return\": @{\"host-name\": \"guix\"@}@}\n"
  45011. msgstr ""
  45012. #. type: Plain text
  45013. #: guix-git/doc/guix.texi:30168
  45014. msgid "See @url{https://wiki.qemu.org/Features/GuestAgent,QEMU guest agent documentation} for more options and commands."
  45015. msgstr ""
  45016. #. type: defvr
  45017. #: guix-git/doc/guix.texi:30169
  45018. #, no-wrap
  45019. msgid "{Scheme Variable} qemu-guest-agent-service-type"
  45020. msgstr ""
  45021. #. type: defvr
  45022. #: guix-git/doc/guix.texi:30171
  45023. #, fuzzy
  45024. #| msgid "Service Types and Services"
  45025. msgid "Service type for the QEMU guest agent service."
  45026. msgstr "服务类型和服务"
  45027. #. type: deftp
  45028. #: guix-git/doc/guix.texi:30173
  45029. #, fuzzy, no-wrap
  45030. msgid "{Data Type} qemu-guest-agent-configuration"
  45031. msgstr "{数据类型} build-machine"
  45032. #. type: deftp
  45033. #: guix-git/doc/guix.texi:30175
  45034. #, fuzzy
  45035. msgid "Configuration for the @code{qemu-guest-agent} service."
  45036. msgstr "管理操作系统配置。"
  45037. #. type: item
  45038. #: guix-git/doc/guix.texi:30177 guix-git/doc/guix.texi:30259
  45039. #, fuzzy, no-wrap
  45040. msgid "@code{qemu} (default: @code{qemu-minimal})"
  45041. msgstr "@code{mate}(默认值:@code{mate})"
  45042. #. type: item
  45043. #: guix-git/doc/guix.texi:30180
  45044. #, fuzzy, no-wrap
  45045. msgid "@code{device} (default: @code{\"\"})"
  45046. msgstr "@code{speed}(默认值:@code{1.0})"
  45047. #. type: table
  45048. #: guix-git/doc/guix.texi:30183
  45049. msgid "File name of the device or socket the agent uses to communicate with the host. If empty, QEMU uses a default file name."
  45050. msgstr ""
  45051. #. type: subsubheading
  45052. #: guix-git/doc/guix.texi:30187
  45053. #, no-wrap
  45054. msgid "The Hurd in a Virtual Machine"
  45055. msgstr ""
  45056. #. type: cindex
  45057. #: guix-git/doc/guix.texi:30190
  45058. #, no-wrap
  45059. msgid "the Hurd"
  45060. msgstr ""
  45061. #. type: cindex
  45062. #: guix-git/doc/guix.texi:30191
  45063. #, no-wrap
  45064. msgid "childhurd"
  45065. msgstr ""
  45066. #. type: Plain text
  45067. #: guix-git/doc/guix.texi:30199
  45068. 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:"
  45069. msgstr ""
  45070. #. type: example
  45071. #: guix-git/doc/guix.texi:30203
  45072. #, no-wrap
  45073. msgid ""
  45074. "herd start hurd-vm\n"
  45075. "herd stop childhurd\n"
  45076. msgstr ""
  45077. #. type: Plain text
  45078. #: guix-git/doc/guix.texi:30207
  45079. msgid "When the service is running, you can view its console by connecting to it with a VNC client, for example with:"
  45080. msgstr ""
  45081. #. type: example
  45082. #: guix-git/doc/guix.texi:30210
  45083. #, no-wrap
  45084. msgid "guix shell tigervnc-client -- vncviewer localhost:5900\n"
  45085. msgstr ""
  45086. #. type: Plain text
  45087. #: guix-git/doc/guix.texi:30216
  45088. 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:"
  45089. msgstr ""
  45090. #. type: example
  45091. #: guix-git/doc/guix.texi:30219
  45092. #, no-wrap
  45093. msgid "ssh root@@localhost -p 10022\n"
  45094. msgstr ""
  45095. #. type: Plain text
  45096. #: guix-git/doc/guix.texi:30228
  45097. 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."
  45098. msgstr ""
  45099. #. type: defvr
  45100. #: guix-git/doc/guix.texi:30229
  45101. #, no-wrap
  45102. msgid "{Scheme Variable} hurd-vm-service-type"
  45103. msgstr ""
  45104. #. type: defvr
  45105. #: guix-git/doc/guix.texi:30235
  45106. 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."
  45107. msgstr ""
  45108. #. type: lisp
  45109. #: guix-git/doc/guix.texi:30243
  45110. #, no-wrap
  45111. msgid ""
  45112. "(service hurd-vm-service-type\n"
  45113. " (hurd-vm-configuration\n"
  45114. " (disk-size (* 5000 (expt 2 20))) ;5G\n"
  45115. " (memory-size 1024))) ;1024MiB\n"
  45116. msgstr ""
  45117. #. type: defvr
  45118. #: guix-git/doc/guix.texi:30247
  45119. msgid "would create a disk image big enough to build GNU@tie{}Hello, with some extra memory."
  45120. msgstr ""
  45121. #. type: deftp
  45122. #: guix-git/doc/guix.texi:30249
  45123. #, fuzzy, no-wrap
  45124. msgid "{Data Type} hurd-vm-configuration"
  45125. msgstr "{数据类型} build-machine"
  45126. #. type: deftp
  45127. #: guix-git/doc/guix.texi:30252
  45128. msgid "The data type representing the configuration for @code{hurd-vm-service-type}."
  45129. msgstr ""
  45130. #. type: item
  45131. #: guix-git/doc/guix.texi:30254
  45132. #, fuzzy, no-wrap
  45133. msgid "@code{os} (default: @var{%hurd-vm-operating-system})"
  45134. msgstr "@code{mate}(默认值:@code{mate})"
  45135. #. type: table
  45136. #: guix-git/doc/guix.texi:30258
  45137. 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}})."
  45138. msgstr ""
  45139. #. type: item
  45140. #: guix-git/doc/guix.texi:30262
  45141. #, fuzzy, no-wrap
  45142. msgid "@code{image} (default: @var{hurd-vm-disk-image})"
  45143. msgstr "@code{mate}(默认值:@code{mate})"
  45144. #. type: table
  45145. #: guix-git/doc/guix.texi:30265
  45146. msgid "The procedure used to build the disk-image built from this configuration."
  45147. msgstr ""
  45148. #. type: item
  45149. #: guix-git/doc/guix.texi:30266
  45150. #, fuzzy, no-wrap
  45151. msgid "@code{disk-size} (default: @code{'guess})"
  45152. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  45153. #. type: table
  45154. #: guix-git/doc/guix.texi:30268
  45155. #, fuzzy
  45156. msgid "The size of the disk image."
  45157. msgstr "这个用户手册的许可证。"
  45158. #. type: item
  45159. #: guix-git/doc/guix.texi:30269
  45160. #, fuzzy, no-wrap
  45161. msgid "@code{memory-size} (default: @code{512})"
  45162. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  45163. #. type: table
  45164. #: guix-git/doc/guix.texi:30271
  45165. msgid "The memory size of the Virtual Machine in mebibytes."
  45166. msgstr ""
  45167. #. type: item
  45168. #: guix-git/doc/guix.texi:30272
  45169. #, fuzzy, no-wrap
  45170. msgid "@code{options} (default: @code{'(\"--snapshot\")})"
  45171. msgstr "@code{includes}(默认值:@code{'()})"
  45172. #. type: table
  45173. #: guix-git/doc/guix.texi:30274
  45174. msgid "The extra options for running QEMU."
  45175. msgstr ""
  45176. #. type: table
  45177. #: guix-git/doc/guix.texi:30279
  45178. 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}."
  45179. msgstr ""
  45180. #. type: item
  45181. #: guix-git/doc/guix.texi:30280
  45182. #, no-wrap
  45183. msgid "@code{net-options} (default: @var{hurd-vm-net-options})"
  45184. msgstr ""
  45185. #. type: table
  45186. #: guix-git/doc/guix.texi:30282
  45187. msgid "The procedure used to produce the list of QEMU networking options."
  45188. msgstr ""
  45189. #. type: table
  45190. #: guix-git/doc/guix.texi:30284
  45191. msgid "By default, it produces"
  45192. msgstr ""
  45193. #. type: lisp
  45194. #: guix-git/doc/guix.texi:30292
  45195. #, no-wrap
  45196. msgid ""
  45197. "'(\"--device\" \"rtl8139,netdev=net0\"\n"
  45198. " \"--netdev\" (string-append\n"
  45199. " \"user,id=net0,\"\n"
  45200. " \"hostfwd=tcp:127.0.0.1:@var{secrets-port}-:1004,\"\n"
  45201. " \"hostfwd=tcp:127.0.0.1:@var{ssh-port}-:2222,\"\n"
  45202. " \"hostfwd=tcp:127.0.0.1:@var{vnc-port}-:5900\"))\n"
  45203. msgstr ""
  45204. #. type: table
  45205. #: guix-git/doc/guix.texi:30295
  45206. msgid "with forwarded ports:"
  45207. msgstr ""
  45208. #. type: example
  45209. #: guix-git/doc/guix.texi:30300
  45210. #, no-wrap
  45211. msgid ""
  45212. "@var{secrets-port}: @code{(+ 11004 (* 1000 @var{ID}))}\n"
  45213. "@var{ssh-port}: @code{(+ 10022 (* 1000 @var{ID}))}\n"
  45214. "@var{vnc-port}: @code{(+ 15900 (* 1000 @var{ID}))}\n"
  45215. msgstr ""
  45216. #. type: item
  45217. #: guix-git/doc/guix.texi:30302
  45218. #, fuzzy, no-wrap
  45219. msgid "@code{secret-root} (default: @file{/etc/childhurd})"
  45220. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  45221. #. type: table
  45222. #: guix-git/doc/guix.texi:30307
  45223. 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."
  45224. msgstr ""
  45225. #. type: table
  45226. #: guix-git/doc/guix.texi:30311
  45227. 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."
  45228. msgstr ""
  45229. #. type: table
  45230. #: guix-git/doc/guix.texi:30314
  45231. msgid "By default, the service automatically populates @file{/etc/childhurd} with the following non-volatile secrets, unless they already exist:"
  45232. msgstr ""
  45233. #. type: example
  45234. #: guix-git/doc/guix.texi:30323
  45235. #, no-wrap
  45236. msgid ""
  45237. "/etc/childhurd/etc/guix/acl\n"
  45238. "/etc/childhurd/etc/guix/signing-key.pub\n"
  45239. "/etc/childhurd/etc/guix/signing-key.sec\n"
  45240. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key\n"
  45241. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key\n"
  45242. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key.pub\n"
  45243. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key.pub\n"
  45244. msgstr ""
  45245. #. type: table
  45246. #: guix-git/doc/guix.texi:30327
  45247. msgid "These files are automatically sent to the guest Hurd VM when it boots, including permissions."
  45248. msgstr ""
  45249. #. type: cindex
  45250. #: guix-git/doc/guix.texi:30328
  45251. #, fuzzy, no-wrap
  45252. msgid "childhurd, offloading"
  45253. msgstr "下发"
  45254. #. type: cindex
  45255. #: guix-git/doc/guix.texi:30329
  45256. #, fuzzy, no-wrap
  45257. msgid "Hurd, offloading"
  45258. msgstr "下发"
  45259. #. type: table
  45260. #: guix-git/doc/guix.texi:30333
  45261. 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:"
  45262. msgstr ""
  45263. #. type: enumerate
  45264. #: guix-git/doc/guix.texi:30338
  45265. 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:"
  45266. msgstr ""
  45267. #. type: example
  45268. #: guix-git/doc/guix.texi:30342
  45269. #, fuzzy, no-wrap
  45270. msgid ""
  45271. "guix archive --authorize < \\\n"
  45272. " /etc/childhurd/etc/guix/signing-key.pub\n"
  45273. msgstr "# guix archive --authorize < master-public-key.txt\n"
  45274. #. type: enumerate
  45275. #: guix-git/doc/guix.texi:30347
  45276. msgid "Adding the childhurd to @file{/etc/guix/machines.scm} (@pxref{Daemon Offload Setup})."
  45277. msgstr ""
  45278. #. type: table
  45279. #: guix-git/doc/guix.texi:30351
  45280. msgid "We're working towards making that happen automatically---get in touch with us at @email{guix-devel@@gnu.org} to discuss it!"
  45281. msgstr ""
  45282. #. type: Plain text
  45283. #: guix-git/doc/guix.texi:30358
  45284. 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:"
  45285. msgstr ""
  45286. #. type: lisp
  45287. #: guix-git/doc/guix.texi:30364
  45288. #, no-wrap
  45289. msgid ""
  45290. "(service hurd-vm-service-type\n"
  45291. " (hurd-vm-configuration\n"
  45292. " (image (const \"/out/of/store/writable/hurd.img\"))\n"
  45293. " (options '())))\n"
  45294. msgstr ""
  45295. #. type: subsubheading
  45296. #: guix-git/doc/guix.texi:30366
  45297. #, no-wrap
  45298. msgid "Ganeti"
  45299. msgstr ""
  45300. #. type: cindex
  45301. #: guix-git/doc/guix.texi:30368
  45302. #, no-wrap
  45303. msgid "ganeti"
  45304. msgstr ""
  45305. #. type: quotation
  45306. #: guix-git/doc/guix.texi:30375
  45307. 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}."
  45308. msgstr ""
  45309. #. type: Plain text
  45310. #: guix-git/doc/guix.texi:30385
  45311. 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)."
  45312. msgstr ""
  45313. #. type: Plain text
  45314. #: guix-git/doc/guix.texi:30390
  45315. 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}:"
  45316. msgstr ""
  45317. #. type: lisp
  45318. #: guix-git/doc/guix.texi:30400
  45319. #, no-wrap
  45320. msgid ""
  45321. "(use-package-modules virtualization)\n"
  45322. "(use-service-modules base ganeti networking ssh)\n"
  45323. "(operating-system\n"
  45324. " ;; @dots{}\n"
  45325. " (host-name \"node1\")\n"
  45326. " (hosts-file (plain-file \"hosts\" (format #f \"\n"
  45327. "127.0.0.1 localhost\n"
  45328. "::1 localhost\n"
  45329. "\n"
  45330. msgstr ""
  45331. #. type: lisp
  45332. #: guix-git/doc/guix.texi:30405
  45333. #, no-wrap
  45334. msgid ""
  45335. "192.168.1.200 ganeti.example.com\n"
  45336. "192.168.1.201 node1.example.com node1\n"
  45337. "192.168.1.202 node2.example.com node2\n"
  45338. "\")))\n"
  45339. "\n"
  45340. msgstr ""
  45341. #. type: lisp
  45342. #: guix-git/doc/guix.texi:30419
  45343. #, no-wrap
  45344. msgid ""
  45345. " ;; Install QEMU so we can use KVM-based instances, and LVM, DRBD and Ceph\n"
  45346. " ;; in order to use the \"plain\", \"drbd\" and \"rbd\" storage backends.\n"
  45347. " (packages (append (map specification->package\n"
  45348. " '(\"qemu\" \"lvm2\" \"drbd-utils\" \"ceph\"\n"
  45349. " ;; Add the debootstrap and guix OS providers.\n"
  45350. " \"ganeti-instance-guix\" \"ganeti-instance-debootstrap\"))\n"
  45351. " %base-packages))\n"
  45352. " (services\n"
  45353. " (append (list (static-networking-service \"eth0\" \"192.168.1.201\"\n"
  45354. " #:netmask \"255.255.255.0\"\n"
  45355. " #:gateway \"192.168.1.254\"\n"
  45356. " #:name-servers '(\"192.168.1.252\"\n"
  45357. " \"192.168.1.253\"))\n"
  45358. "\n"
  45359. msgstr ""
  45360. #. type: lisp
  45361. #: guix-git/doc/guix.texi:30424
  45362. #, no-wrap
  45363. msgid ""
  45364. " ;; Ganeti uses SSH to communicate between nodes.\n"
  45365. " (service openssh-service-type\n"
  45366. " (openssh-configuration\n"
  45367. " (permit-root-login 'prohibit-password)))\n"
  45368. "\n"
  45369. msgstr ""
  45370. #. type: lisp
  45371. #: guix-git/doc/guix.texi:30434
  45372. #, no-wrap
  45373. msgid ""
  45374. " (service ganeti-service-type\n"
  45375. " (ganeti-configuration\n"
  45376. " ;; This list specifies allowed file system paths\n"
  45377. " ;; for storing virtual machine images.\n"
  45378. " (file-storage-paths '(\"/srv/ganeti/file-storage\"))\n"
  45379. " ;; This variable configures a single \"variant\" for\n"
  45380. " ;; both Debootstrap and Guix that works with KVM.\n"
  45381. " (os %default-ganeti-os))))\n"
  45382. " %base-services)))\n"
  45383. msgstr ""
  45384. #. type: Plain text
  45385. #: guix-git/doc/guix.texi:30442
  45386. 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."
  45387. msgstr ""
  45388. #. type: defvr
  45389. #: guix-git/doc/guix.texi:30443
  45390. #, no-wrap
  45391. msgid "{Scheme Variable} ganeti-service-type"
  45392. msgstr ""
  45393. #. type: defvr
  45394. #: guix-git/doc/guix.texi:30446
  45395. msgid "This is a service type that includes all the various services that Ganeti nodes should run."
  45396. msgstr ""
  45397. #. type: defvr
  45398. #: guix-git/doc/guix.texi:30451
  45399. 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."
  45400. msgstr ""
  45401. #. type: deftp
  45402. #: guix-git/doc/guix.texi:30453
  45403. #, no-wrap
  45404. msgid "{Data Type} ganeti-configuration"
  45405. msgstr ""
  45406. #. type: deftp
  45407. #: guix-git/doc/guix.texi:30455
  45408. msgid "The @code{ganeti} service takes the following configuration options:"
  45409. msgstr ""
  45410. #. type: item
  45411. #: guix-git/doc/guix.texi:30457 guix-git/doc/guix.texi:30685
  45412. #: guix-git/doc/guix.texi:30735 guix-git/doc/guix.texi:30765
  45413. #: guix-git/doc/guix.texi:30792 guix-git/doc/guix.texi:30824
  45414. #: guix-git/doc/guix.texi:30877 guix-git/doc/guix.texi:30897
  45415. #: guix-git/doc/guix.texi:30923 guix-git/doc/guix.texi:30956
  45416. #: guix-git/doc/guix.texi:30996
  45417. #, fuzzy, no-wrap
  45418. msgid "@code{ganeti} (default: @code{ganeti})"
  45419. msgstr "@code{gnome}(默认值:@code{gnome})"
  45420. #. type: table
  45421. #: guix-git/doc/guix.texi:30462
  45422. 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)."
  45423. msgstr ""
  45424. #. type: item
  45425. #: guix-git/doc/guix.texi:30463
  45426. #, fuzzy, no-wrap
  45427. msgid "@code{noded-configuration} (default: @code{(ganeti-noded-configuration)})"
  45428. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  45429. #. type: itemx
  45430. #: guix-git/doc/guix.texi:30464
  45431. #, fuzzy, no-wrap
  45432. msgid "@code{confd-configuration} (default: @code{(ganeti-confd-configuration)})"
  45433. msgstr "@code{journal-content}(默认值:@code{#f})"
  45434. #. type: itemx
  45435. #: guix-git/doc/guix.texi:30465
  45436. #, no-wrap
  45437. msgid "@code{wconfd-configuration} (default: @code{(ganeti-wconfd-configuration)})"
  45438. msgstr ""
  45439. #. type: itemx
  45440. #: guix-git/doc/guix.texi:30466
  45441. #, no-wrap
  45442. msgid "@code{luxid-configuration} (default: @code{(ganeti-luxid-configuration)})"
  45443. msgstr ""
  45444. #. type: itemx
  45445. #: guix-git/doc/guix.texi:30467
  45446. #, fuzzy, no-wrap
  45447. msgid "@code{rapi-configuration} (default: @code{(ganeti-rapi-configuration)})"
  45448. msgstr "@code{journal-content}(默认值:@code{#f})"
  45449. #. type: itemx
  45450. #: guix-git/doc/guix.texi:30468
  45451. #, fuzzy, no-wrap
  45452. msgid "@code{kvmd-configuration} (default: @code{(ganeti-kvmd-configuration)})"
  45453. msgstr "@code{mate}(默认值:@code{mate})"
  45454. #. type: itemx
  45455. #: guix-git/doc/guix.texi:30469
  45456. #, fuzzy, no-wrap
  45457. msgid "@code{mond-configuration} (default: @code{(ganeti-mond-configuration)})"
  45458. msgstr "@code{journal-content}(默认值:@code{#f})"
  45459. #. type: itemx
  45460. #: guix-git/doc/guix.texi:30470
  45461. #, fuzzy, no-wrap
  45462. msgid "@code{metad-configuration} (default: @code{(ganeti-metad-configuration)})"
  45463. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  45464. #. type: itemx
  45465. #: guix-git/doc/guix.texi:30471
  45466. #, fuzzy, no-wrap
  45467. msgid "@code{watcher-configuration} (default: @code{(ganeti-watcher-configuration)})"
  45468. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  45469. #. type: itemx
  45470. #: guix-git/doc/guix.texi:30472
  45471. #, fuzzy, no-wrap
  45472. msgid "@code{cleaner-configuration} (default: @code{(ganeti-cleaner-configuration)})"
  45473. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  45474. #. type: table
  45475. #: guix-git/doc/guix.texi:30477
  45476. 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:"
  45477. msgstr ""
  45478. #. type: lisp
  45479. #: guix-git/doc/guix.texi:30487
  45480. #, no-wrap
  45481. msgid ""
  45482. "(service ganeti-service-type\n"
  45483. " (ganeti-configuration\n"
  45484. " (rapi-configuration\n"
  45485. " (ganeti-rapi-configuration\n"
  45486. " (interface \"eth1\"))))\n"
  45487. " (watcher-configuration\n"
  45488. " (ganeti-watcher-configuration\n"
  45489. " (rapi-ip \"10.0.0.1\"))))\n"
  45490. msgstr ""
  45491. #. type: item
  45492. #: guix-git/doc/guix.texi:30489
  45493. #, fuzzy, no-wrap
  45494. msgid "@code{file-storage-paths} (default: @code{'()})"
  45495. msgstr "@code{features} (@code{'()})"
  45496. #. type: table
  45497. #: guix-git/doc/guix.texi:30491
  45498. msgid "List of allowed directories for file storage backend."
  45499. msgstr ""
  45500. #. type: item
  45501. #: guix-git/doc/guix.texi:30492
  45502. #, fuzzy, no-wrap
  45503. msgid "@code{os} (default: @code{%default-ganeti-os})"
  45504. msgstr "@code{gnome}(默认值:@code{gnome})"
  45505. #. type: table
  45506. #: guix-git/doc/guix.texi:30494
  45507. msgid "List of @code{<ganeti-os>} records."
  45508. msgstr ""
  45509. #. type: deftp
  45510. #: guix-git/doc/guix.texi:30498
  45511. msgid "In essence @code{ganeti-service-type} is shorthand for declaring each service individually:"
  45512. msgstr ""
  45513. #. type: lisp
  45514. #: guix-git/doc/guix.texi:30509
  45515. #, no-wrap
  45516. msgid ""
  45517. "(service ganeti-noded-service-type)\n"
  45518. "(service ganeti-confd-service-type)\n"
  45519. "(service ganeti-wconfd-service-type)\n"
  45520. "(service ganeti-luxid-service-type)\n"
  45521. "(service ganeti-kvmd-service-type)\n"
  45522. "(service ganeti-mond-service-type)\n"
  45523. "(service ganeti-metad-service-type)\n"
  45524. "(service ganeti-watcher-service-type)\n"
  45525. "(service ganeti-cleaner-service-type)\n"
  45526. msgstr ""
  45527. #. type: deftp
  45528. #: guix-git/doc/guix.texi:30513
  45529. msgid "Plus a service extension for @code{etc-service-type} that configures the file storage backend and OS variants."
  45530. msgstr ""
  45531. #. type: deftp
  45532. #: guix-git/doc/guix.texi:30516
  45533. #, fuzzy, no-wrap
  45534. msgid "{Data Type} ganeti-os"
  45535. msgstr "{数据类型} build-machine"
  45536. #. type: deftp
  45537. #: guix-git/doc/guix.texi:30519
  45538. msgid "This data type is suitable for passing to the @code{os} parameter of @code{ganeti-configuration}. It takes the following parameters:"
  45539. msgstr ""
  45540. #. type: table
  45541. #: guix-git/doc/guix.texi:30525
  45542. 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}."
  45543. msgstr ""
  45544. #. type: code{#1}
  45545. #: guix-git/doc/guix.texi:30526
  45546. #, no-wrap
  45547. msgid "extension"
  45548. msgstr ""
  45549. #. type: table
  45550. #: guix-git/doc/guix.texi:30529
  45551. msgid "The file extension for variants of this OS type. For example @file{.conf} or @file{.scm}."
  45552. msgstr ""
  45553. #. type: item
  45554. #: guix-git/doc/guix.texi:30530
  45555. #, fuzzy, no-wrap
  45556. msgid "@code{variants} (default: @code{'()})"
  45557. msgstr "@code{features} (@code{'()})"
  45558. #. type: table
  45559. #: guix-git/doc/guix.texi:30532
  45560. msgid "List of @code{ganeti-os-variant} objects for this OS."
  45561. msgstr ""
  45562. #. type: deftp
  45563. #: guix-git/doc/guix.texi:30536
  45564. #, fuzzy, no-wrap
  45565. msgid "{Data Type} ganeti-os-variant"
  45566. msgstr "{数据类型} build-machine"
  45567. #. type: deftp
  45568. #: guix-git/doc/guix.texi:30539
  45569. msgid "This is the data type for a Ganeti OS variant. It takes the following parameters:"
  45570. msgstr ""
  45571. #. type: table
  45572. #: guix-git/doc/guix.texi:30543
  45573. #, fuzzy
  45574. msgid "The name of this variant."
  45575. msgstr "这个用户手册的许可证。"
  45576. #. type: code{#1}
  45577. #: guix-git/doc/guix.texi:30544
  45578. #, fuzzy, no-wrap
  45579. msgid "configuration"
  45580. msgstr "系统配置"
  45581. #. type: table
  45582. #: guix-git/doc/guix.texi:30546
  45583. msgid "A configuration file for this variant."
  45584. msgstr ""
  45585. #. type: defvr
  45586. #: guix-git/doc/guix.texi:30549
  45587. #, no-wrap
  45588. msgid "{Scheme Variable} %default-debootstrap-hooks"
  45589. msgstr ""
  45590. #. type: defvr
  45591. #: guix-git/doc/guix.texi:30551
  45592. msgid "This variable contains hooks to configure networking and the GRUB bootloader."
  45593. msgstr ""
  45594. #. type: defvr
  45595. #: guix-git/doc/guix.texi:30553
  45596. #, no-wrap
  45597. msgid "{Scheme Variable} %default-debootstrap-extra-pkgs"
  45598. msgstr ""
  45599. #. type: defvr
  45600. #: guix-git/doc/guix.texi:30555
  45601. msgid "This variable contains a list of packages suitable for a fully-virtualized guest."
  45602. msgstr ""
  45603. #. type: deftp
  45604. #: guix-git/doc/guix.texi:30557
  45605. #, no-wrap
  45606. msgid "{Data Type} debootstrap-configuration"
  45607. msgstr ""
  45608. #. type: deftp
  45609. #: guix-git/doc/guix.texi:30560
  45610. msgid "This data type creates configuration files suitable for the debootstrap OS provider."
  45611. msgstr ""
  45612. #. type: item
  45613. #: guix-git/doc/guix.texi:30562
  45614. #, fuzzy, no-wrap
  45615. msgid "@code{hooks} (default: @code{%default-debootstrap-hooks})"
  45616. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  45617. #. type: table
  45618. #: guix-git/doc/guix.texi:30566
  45619. 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:"
  45620. msgstr ""
  45621. #. type: lisp
  45622. #: guix-git/doc/guix.texi:30569
  45623. #, no-wrap
  45624. msgid "`((99-hello-world . ,(plain-file \"#!/bin/sh\\necho Hello, World\")))\n"
  45625. msgstr ""
  45626. #. type: table
  45627. #: guix-git/doc/guix.texi:30574
  45628. 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."
  45629. msgstr ""
  45630. #. type: item
  45631. #: guix-git/doc/guix.texi:30574
  45632. #, fuzzy, no-wrap
  45633. msgid "@code{proxy} (default: @code{#f})"
  45634. msgstr "@code{port}(默认值:@code{22})"
  45635. #. type: table
  45636. #: guix-git/doc/guix.texi:30576
  45637. msgid "Optional HTTP proxy to use."
  45638. msgstr ""
  45639. #. type: item
  45640. #: guix-git/doc/guix.texi:30576
  45641. #, fuzzy, no-wrap
  45642. msgid "@code{mirror} (default: @code{#f})"
  45643. msgstr "@code{port}(默认值:@code{22})"
  45644. #. type: table
  45645. #: guix-git/doc/guix.texi:30579
  45646. msgid "The Debian mirror. Typically something like @code{http://ftp.no.debian.org/debian}. The default varies depending on the distribution."
  45647. msgstr ""
  45648. #. type: item
  45649. #: guix-git/doc/guix.texi:30579
  45650. #, fuzzy, no-wrap
  45651. msgid "@code{arch} (default: @code{#f})"
  45652. msgstr "@code{challenge}(默认值:@code{#f})"
  45653. #. type: table
  45654. #: guix-git/doc/guix.texi:30582
  45655. 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."
  45656. msgstr ""
  45657. #. type: item
  45658. #: guix-git/doc/guix.texi:30582
  45659. #, fuzzy, no-wrap
  45660. msgid "@code{suite} (default: @code{\"stable\"})"
  45661. msgstr "@code{mate}(默认值:@code{mate})"
  45662. #. type: table
  45663. #: guix-git/doc/guix.texi:30585
  45664. 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."
  45665. msgstr ""
  45666. #. type: item
  45667. #: guix-git/doc/guix.texi:30585
  45668. #, no-wrap
  45669. msgid "@code{extra-pkgs} (default: @code{%default-debootstrap-extra-pkgs})"
  45670. msgstr ""
  45671. #. type: table
  45672. #: guix-git/doc/guix.texi:30588
  45673. msgid "List of extra packages that will get installed by dpkg in addition to the minimal system."
  45674. msgstr ""
  45675. #. type: item
  45676. #: guix-git/doc/guix.texi:30588
  45677. #, fuzzy, no-wrap
  45678. msgid "@code{components} (default: @code{#f})"
  45679. msgstr "@code{journal-content}(默认值:@code{#f})"
  45680. #. type: table
  45681. #: guix-git/doc/guix.texi:30591
  45682. msgid "When set, must be a list of Debian repository ``components''. For example @code{'(\"main\" \"contrib\")}."
  45683. msgstr ""
  45684. #. type: item
  45685. #: guix-git/doc/guix.texi:30591
  45686. #, fuzzy, no-wrap
  45687. msgid "@code{generate-cache?} (default: @code{#t})"
  45688. msgstr "@code{mate}(默认值:@code{mate})"
  45689. #. type: table
  45690. #: guix-git/doc/guix.texi:30593
  45691. msgid "Whether to automatically cache the generated debootstrap archive."
  45692. msgstr ""
  45693. #. type: item
  45694. #: guix-git/doc/guix.texi:30593
  45695. #, fuzzy, no-wrap
  45696. msgid "@code{clean-cache} (default: @code{14})"
  45697. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  45698. #. type: table
  45699. #: guix-git/doc/guix.texi:30596
  45700. msgid "Discard the cache after this amount of days. Use @code{#f} to never clear the cache."
  45701. msgstr ""
  45702. #. type: item
  45703. #: guix-git/doc/guix.texi:30596
  45704. #, fuzzy, no-wrap
  45705. msgid "@code{partition-style} (default: @code{'msdos})"
  45706. msgstr "@code{compression-level}(默认值:@code{3})"
  45707. #. type: table
  45708. #: guix-git/doc/guix.texi:30599
  45709. msgid "The type of partition to create. When set, it must be one of @code{'msdos}, @code{'none} or a string."
  45710. msgstr ""
  45711. #. type: item
  45712. #: guix-git/doc/guix.texi:30599
  45713. #, fuzzy, no-wrap
  45714. msgid "@code{partition-alignment} (default: @code{2048})"
  45715. msgstr "@code{port}(默认值:@code{22})"
  45716. #. type: table
  45717. #: guix-git/doc/guix.texi:30601
  45718. msgid "Alignment of the partition in sectors."
  45719. msgstr ""
  45720. #. type: deffn
  45721. #: guix-git/doc/guix.texi:30604
  45722. #, no-wrap
  45723. msgid "{Scheme Procedure} debootstrap-variant @var{name} @var{configuration}"
  45724. msgstr ""
  45725. #. type: deffn
  45726. #: guix-git/doc/guix.texi:30607
  45727. 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."
  45728. msgstr ""
  45729. #. type: deffn
  45730. #: guix-git/doc/guix.texi:30609
  45731. #, no-wrap
  45732. msgid "{Scheme Procedure} debootstrap-os @var{variants}@dots{}"
  45733. msgstr ""
  45734. #. type: deffn
  45735. #: guix-git/doc/guix.texi:30612
  45736. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants created with @code{debootstrap-variant}."
  45737. msgstr ""
  45738. #. type: deffn
  45739. #: guix-git/doc/guix.texi:30614
  45740. #, no-wrap
  45741. msgid "{Scheme Procedure} guix-variant @var{name} @var{configuration}"
  45742. msgstr ""
  45743. #. type: deffn
  45744. #: guix-git/doc/guix.texi:30619
  45745. 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."
  45746. msgstr ""
  45747. #. type: deffn
  45748. #: guix-git/doc/guix.texi:30621
  45749. #, no-wrap
  45750. msgid "{Scheme Procedure} guix-os @var{variants}@dots{}"
  45751. msgstr ""
  45752. #. type: deffn
  45753. #: guix-git/doc/guix.texi:30624
  45754. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants produced by @code{guix-variant}."
  45755. msgstr ""
  45756. #. type: defvr
  45757. #: guix-git/doc/guix.texi:30626
  45758. #, no-wrap
  45759. msgid "{Scheme Variable} %default-debootstrap-variants"
  45760. msgstr ""
  45761. #. type: defvr
  45762. #: guix-git/doc/guix.texi:30630
  45763. 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:"
  45764. msgstr ""
  45765. #. type: lisp
  45766. #: guix-git/doc/guix.texi:30635
  45767. #, no-wrap
  45768. msgid ""
  45769. "(list (debootstrap-variant\n"
  45770. " \"default\"\n"
  45771. " (debootstrap-configuration)))\n"
  45772. msgstr ""
  45773. #. type: defvr
  45774. #: guix-git/doc/guix.texi:30638
  45775. #, no-wrap
  45776. msgid "{Scheme Variable} %default-guix-variants"
  45777. msgstr ""
  45778. #. type: defvr
  45779. #: guix-git/doc/guix.texi:30642
  45780. 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."
  45781. msgstr ""
  45782. #. type: lisp
  45783. #: guix-git/doc/guix.texi:30648
  45784. #, no-wrap
  45785. msgid ""
  45786. "(list (guix-variant\n"
  45787. " \"default\"\n"
  45788. " (file-append ganeti-instance-guix\n"
  45789. " \"/share/doc/ganeti-instance-guix/examples/dynamic.scm\")))\n"
  45790. msgstr ""
  45791. #. type: Plain text
  45792. #: guix-git/doc/guix.texi:30654
  45793. 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:"
  45794. msgstr ""
  45795. #. type: lisp
  45796. #: guix-git/doc/guix.texi:30663
  45797. #, no-wrap
  45798. msgid ""
  45799. "(ganeti-os\n"
  45800. " (name \"custom\")\n"
  45801. " (extension \".conf\")\n"
  45802. " (variants\n"
  45803. " (list (ganeti-os-variant\n"
  45804. " (name \"foo\")\n"
  45805. " (configuration (plain-file \"bar\" \"this is fine\"))))))\n"
  45806. msgstr ""
  45807. #. type: Plain text
  45808. #: guix-git/doc/guix.texi:30668
  45809. 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}."
  45810. msgstr ""
  45811. #. type: Plain text
  45812. #: guix-git/doc/guix.texi:30671
  45813. 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}."
  45814. msgstr ""
  45815. #. type: Plain text
  45816. #: guix-git/doc/guix.texi:30674
  45817. msgid "The rest of this section documents the various services that are included by @code{ganeti-service-type}."
  45818. msgstr ""
  45819. #. type: defvr
  45820. #: guix-git/doc/guix.texi:30675
  45821. #, no-wrap
  45822. msgid "{Scheme Variable} ganeti-noded-service-type"
  45823. msgstr ""
  45824. #. type: defvr
  45825. #: guix-git/doc/guix.texi:30679
  45826. 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."
  45827. msgstr ""
  45828. #. type: deftp
  45829. #: guix-git/doc/guix.texi:30681
  45830. #, no-wrap
  45831. msgid "{Data Type} ganeti-noded-configuration"
  45832. msgstr ""
  45833. #. type: deftp
  45834. #: guix-git/doc/guix.texi:30683
  45835. msgid "This is the configuration for the @code{ganeti-noded} service."
  45836. msgstr ""
  45837. #. type: table
  45838. #: guix-git/doc/guix.texi:30687 guix-git/doc/guix.texi:30737
  45839. #: guix-git/doc/guix.texi:30767 guix-git/doc/guix.texi:30794
  45840. #: guix-git/doc/guix.texi:30826 guix-git/doc/guix.texi:30879
  45841. #: guix-git/doc/guix.texi:30899 guix-git/doc/guix.texi:30925
  45842. #: guix-git/doc/guix.texi:30958
  45843. msgid "The @code{ganeti} package to use for this service."
  45844. msgstr ""
  45845. #. type: item
  45846. #: guix-git/doc/guix.texi:30688
  45847. #, fuzzy, no-wrap
  45848. msgid "@code{port} (default: @code{1811})"
  45849. msgstr "@code{port}(默认值:@code{22})"
  45850. #. type: table
  45851. #: guix-git/doc/guix.texi:30690
  45852. msgid "The TCP port on which the node daemon listens for network requests."
  45853. msgstr ""
  45854. #. type: item
  45855. #: guix-git/doc/guix.texi:30691 guix-git/doc/guix.texi:30741
  45856. #: guix-git/doc/guix.texi:30833 guix-git/doc/guix.texi:30903
  45857. #, fuzzy, no-wrap
  45858. msgid "@code{address} (default: @code{\"0.0.0.0\"})"
  45859. msgstr "@code{display}(默认值:@code{\":0\"})"
  45860. #. type: table
  45861. #: guix-git/doc/guix.texi:30694
  45862. msgid "The network address that the daemon will bind to. The default address means bind to all available addresses."
  45863. msgstr ""
  45864. #. type: table
  45865. #: guix-git/doc/guix.texi:30698
  45866. msgid "When this is set, it must be a specific network interface (e.g.@: @code{eth0}) that the daemon will bind to."
  45867. msgstr ""
  45868. #. type: item
  45869. #: guix-git/doc/guix.texi:30699 guix-git/doc/guix.texi:30841
  45870. #, fuzzy, no-wrap
  45871. msgid "@code{max-clients} (default: @code{20})"
  45872. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  45873. #. type: table
  45874. #: guix-git/doc/guix.texi:30703
  45875. 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."
  45876. msgstr ""
  45877. #. type: item
  45878. #: guix-git/doc/guix.texi:30704 guix-git/doc/guix.texi:30846
  45879. #, fuzzy, no-wrap
  45880. msgid "@code{ssl?} (default: @code{#t})"
  45881. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45882. #. type: table
  45883. #: guix-git/doc/guix.texi:30708
  45884. 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}."
  45885. msgstr ""
  45886. #. type: item
  45887. #: guix-git/doc/guix.texi:30709 guix-git/doc/guix.texi:30849
  45888. #, fuzzy, no-wrap
  45889. msgid "@code{ssl-key} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  45890. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45891. #. type: table
  45892. #: guix-git/doc/guix.texi:30711 guix-git/doc/guix.texi:30851
  45893. msgid "This can be used to provide a specific encryption key for TLS communications."
  45894. msgstr ""
  45895. #. type: item
  45896. #: guix-git/doc/guix.texi:30712 guix-git/doc/guix.texi:30852
  45897. #, fuzzy, no-wrap
  45898. msgid "@code{ssl-cert} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  45899. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45900. #. type: table
  45901. #: guix-git/doc/guix.texi:30714 guix-git/doc/guix.texi:30854
  45902. msgid "This can be used to provide a specific certificate for TLS communications."
  45903. msgstr ""
  45904. #. type: table
  45905. #: guix-git/doc/guix.texi:30718 guix-git/doc/guix.texi:30858
  45906. 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."
  45907. msgstr ""
  45908. #. type: defvr
  45909. #: guix-git/doc/guix.texi:30722
  45910. #, no-wrap
  45911. msgid "{Scheme Variable} ganeti-confd-service-type"
  45912. msgstr ""
  45913. #. type: defvr
  45914. #: guix-git/doc/guix.texi:30728
  45915. 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."
  45916. msgstr ""
  45917. #. type: deftp
  45918. #: guix-git/doc/guix.texi:30731
  45919. #, no-wrap
  45920. msgid "{Data Type} ganeti-confd-configuration"
  45921. msgstr ""
  45922. #. type: deftp
  45923. #: guix-git/doc/guix.texi:30733
  45924. msgid "This is the configuration for the @code{ganeti-confd} service."
  45925. msgstr ""
  45926. #. type: item
  45927. #: guix-git/doc/guix.texi:30738
  45928. #, fuzzy, no-wrap
  45929. msgid "@code{port} (default: @code{1814})"
  45930. msgstr "@code{port}(默认值:@code{22})"
  45931. #. type: table
  45932. #: guix-git/doc/guix.texi:30740
  45933. msgid "The UDP port on which to listen for network requests."
  45934. msgstr ""
  45935. #. type: table
  45936. #: guix-git/doc/guix.texi:30743
  45937. msgid "Network address that the daemon will bind to."
  45938. msgstr ""
  45939. #. type: table
  45940. #: guix-git/doc/guix.texi:30746 guix-git/doc/guix.texi:30775
  45941. #: guix-git/doc/guix.texi:30802 guix-git/doc/guix.texi:30882
  45942. #: guix-git/doc/guix.texi:30909 guix-git/doc/guix.texi:30935
  45943. msgid "When true, the daemon performs additional logging for debugging purposes."
  45944. msgstr ""
  45945. #. type: defvr
  45946. #: guix-git/doc/guix.texi:30750
  45947. #, no-wrap
  45948. msgid "{Scheme Variable} ganeti-wconfd-service-type"
  45949. msgstr ""
  45950. #. type: defvr
  45951. #: guix-git/doc/guix.texi:30756
  45952. 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."
  45953. msgstr ""
  45954. #. type: defvr
  45955. #: guix-git/doc/guix.texi:30759
  45956. msgid "The value of this service must be a @code{ganeti-wconfd-configuration} object."
  45957. msgstr ""
  45958. #. type: deftp
  45959. #: guix-git/doc/guix.texi:30761
  45960. #, no-wrap
  45961. msgid "{Data Type} ganeti-wconfd-configuration"
  45962. msgstr ""
  45963. #. type: deftp
  45964. #: guix-git/doc/guix.texi:30763
  45965. msgid "This is the configuration for the @code{ganeti-wconfd} service."
  45966. msgstr ""
  45967. #. type: item
  45968. #: guix-git/doc/guix.texi:30768 guix-git/doc/guix.texi:30795
  45969. #, fuzzy, no-wrap
  45970. msgid "@code{no-voting?} (default: @code{#f})"
  45971. msgstr "@code{journal-content}(默认值:@code{#f})"
  45972. #. type: table
  45973. #: guix-git/doc/guix.texi:30772
  45974. 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)."
  45975. msgstr ""
  45976. #. type: defvr
  45977. #: guix-git/doc/guix.texi:30779
  45978. #, no-wrap
  45979. msgid "{Scheme Variable} ganeti-luxid-service-type"
  45980. msgstr ""
  45981. #. type: defvr
  45982. #: guix-git/doc/guix.texi:30784
  45983. 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."
  45984. msgstr ""
  45985. #. type: defvr
  45986. #: guix-git/doc/guix.texi:30786
  45987. msgid "It takes a @code{ganeti-luxid-configuration} object."
  45988. msgstr ""
  45989. #. type: deftp
  45990. #: guix-git/doc/guix.texi:30788
  45991. #, fuzzy, no-wrap
  45992. msgid "{Data Type} ganeti-luxid-configuration"
  45993. msgstr "{数据类型} build-machine"
  45994. #. type: deftp
  45995. #: guix-git/doc/guix.texi:30790
  45996. #, fuzzy
  45997. msgid "This is the configuration for the @code{ganeti-luxid} service."
  45998. msgstr "管理操作系统配置。"
  45999. #. type: table
  46000. #: guix-git/doc/guix.texi:30799
  46001. 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)."
  46002. msgstr ""
  46003. #. type: defvr
  46004. #: guix-git/doc/guix.texi:30806
  46005. #, no-wrap
  46006. msgid "{Scheme Variable} ganeti-rapi-service-type"
  46007. msgstr ""
  46008. #. type: defvr
  46009. #: guix-git/doc/guix.texi:30810
  46010. 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."
  46011. msgstr ""
  46012. #. type: defvr
  46013. #: guix-git/doc/guix.texi:30816
  46014. 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."
  46015. msgstr ""
  46016. #. type: defvr
  46017. #: guix-git/doc/guix.texi:30818
  46018. msgid "The value of this service must be a @code{ganeti-rapi-configuration} object."
  46019. msgstr ""
  46020. #. type: deftp
  46021. #: guix-git/doc/guix.texi:30820
  46022. #, no-wrap
  46023. msgid "{Data Type} ganeti-rapi-configuration"
  46024. msgstr ""
  46025. #. type: deftp
  46026. #: guix-git/doc/guix.texi:30822
  46027. msgid "This is the configuration for the @code{ganeti-rapi} service."
  46028. msgstr ""
  46029. #. type: item
  46030. #: guix-git/doc/guix.texi:30827
  46031. #, fuzzy, no-wrap
  46032. msgid "@code{require-authentication?} (default: @code{#f})"
  46033. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  46034. #. type: table
  46035. #: guix-git/doc/guix.texi:30829
  46036. msgid "Whether to require authentication even for read-only operations."
  46037. msgstr ""
  46038. #. type: item
  46039. #: guix-git/doc/guix.texi:30830
  46040. #, fuzzy, no-wrap
  46041. msgid "@code{port} (default: @code{5080})"
  46042. msgstr "@code{port}(默认值:@code{22})"
  46043. #. type: table
  46044. #: guix-git/doc/guix.texi:30832
  46045. msgid "The TCP port on which to listen to API requests."
  46046. msgstr ""
  46047. #. type: table
  46048. #: guix-git/doc/guix.texi:30836
  46049. msgid "The network address that the service will bind to. By default it listens on all configured addresses."
  46050. msgstr ""
  46051. #. type: table
  46052. #: guix-git/doc/guix.texi:30840
  46053. msgid "When set, it must specify a specific network interface such as @code{eth0} that the daemon will bind to."
  46054. msgstr ""
  46055. #. type: table
  46056. #: guix-git/doc/guix.texi:30845
  46057. msgid "The maximum number of simultaneous client requests to handle. Further connections are allowed, but no responses are sent until enough connections have closed."
  46058. msgstr ""
  46059. #. type: table
  46060. #: guix-git/doc/guix.texi:30848
  46061. msgid "Whether to use SSL/TLS encryption on the RAPI port."
  46062. msgstr ""
  46063. #. type: defvr
  46064. #: guix-git/doc/guix.texi:30862
  46065. #, no-wrap
  46066. msgid "{Scheme Variable} ganeti-kvmd-service-type"
  46067. msgstr ""
  46068. #. type: defvr
  46069. #: guix-git/doc/guix.texi:30870
  46070. 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."
  46071. msgstr ""
  46072. #. type: defvr
  46073. #: guix-git/doc/guix.texi:30872
  46074. msgid "It takes a @code{ganeti-kvmd-configuration} object."
  46075. msgstr ""
  46076. #. type: deftp
  46077. #: guix-git/doc/guix.texi:30874
  46078. #, no-wrap
  46079. msgid "{Data Type} ganeti-kvmd-configuration"
  46080. msgstr ""
  46081. #. type: defvr
  46082. #: guix-git/doc/guix.texi:30886
  46083. #, no-wrap
  46084. msgid "{Scheme Variable} ganeti-mond-service-type"
  46085. msgstr ""
  46086. #. type: defvr
  46087. #: guix-git/doc/guix.texi:30890
  46088. 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."
  46089. msgstr ""
  46090. #. type: defvr
  46091. #: guix-git/doc/guix.texi:30892
  46092. msgid "It takes a @code{ganeti-mond-configuration} object."
  46093. msgstr ""
  46094. #. type: deftp
  46095. #: guix-git/doc/guix.texi:30894
  46096. #, no-wrap
  46097. msgid "{Data Type} ganeti-mond-configuration"
  46098. msgstr ""
  46099. #. type: item
  46100. #: guix-git/doc/guix.texi:30900
  46101. #, fuzzy, no-wrap
  46102. msgid "@code{port} (default: @code{1815})"
  46103. msgstr "@code{port}(默认值:@code{22})"
  46104. #. type: table
  46105. #: guix-git/doc/guix.texi:30902 guix-git/doc/guix.texi:30928
  46106. msgid "The port on which the daemon will listen."
  46107. msgstr ""
  46108. #. type: table
  46109. #: guix-git/doc/guix.texi:30906
  46110. msgid "The network address that the daemon will bind to. By default it binds to all available interfaces."
  46111. msgstr ""
  46112. #. type: defvr
  46113. #: guix-git/doc/guix.texi:30913
  46114. #, no-wrap
  46115. msgid "{Scheme Variable} ganeti-metad-service-type"
  46116. msgstr ""
  46117. #. type: defvr
  46118. #: guix-git/doc/guix.texi:30916
  46119. msgid "@command{ganeti-metad} is an optional daemon that can be used to provide information about the cluster to instances or OS install scripts."
  46120. msgstr ""
  46121. #. type: defvr
  46122. #: guix-git/doc/guix.texi:30918
  46123. msgid "It takes a @code{ganeti-metad-configuration} object."
  46124. msgstr ""
  46125. #. type: deftp
  46126. #: guix-git/doc/guix.texi:30920
  46127. #, fuzzy, no-wrap
  46128. msgid "{Data Type} ganeti-metad-configuration"
  46129. msgstr "{数据类型} build-machine"
  46130. #. type: table
  46131. #: guix-git/doc/guix.texi:30932
  46132. msgid "If set, the daemon will bind to this address only. If left unset, the behavior depends on the cluster configuration."
  46133. msgstr ""
  46134. #. type: defvr
  46135. #: guix-git/doc/guix.texi:30939
  46136. #, no-wrap
  46137. msgid "{Scheme Variable} ganeti-watcher-service-type"
  46138. msgstr ""
  46139. #. type: defvr
  46140. #: guix-git/doc/guix.texi:30947
  46141. 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."
  46142. msgstr ""
  46143. #. type: defvr
  46144. #: guix-git/doc/guix.texi:30949
  46145. msgid "It can be paused on all nodes with @command{gnt-cluster watcher pause}."
  46146. msgstr ""
  46147. #. type: defvr
  46148. #: guix-git/doc/guix.texi:30951
  46149. msgid "The service takes a @code{ganeti-watcher-configuration} object."
  46150. msgstr ""
  46151. #. type: deftp
  46152. #: guix-git/doc/guix.texi:30953
  46153. #, no-wrap
  46154. msgid "{Data Type} ganeti-watcher-configuration"
  46155. msgstr ""
  46156. #. type: item
  46157. #: guix-git/doc/guix.texi:30959
  46158. #, no-wrap
  46159. msgid "@code{schedule} (default: @code{'(next-second-from (next-minute (range 0 60 5)))})"
  46160. msgstr ""
  46161. #. type: table
  46162. #: guix-git/doc/guix.texi:30961
  46163. msgid "How often to run the script. The default is every five minutes."
  46164. msgstr ""
  46165. #. type: item
  46166. #: guix-git/doc/guix.texi:30962
  46167. #, fuzzy, no-wrap
  46168. msgid "@code{rapi-ip} (default: @code{#f})"
  46169. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  46170. #. type: table
  46171. #: guix-git/doc/guix.texi:30965
  46172. 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."
  46173. msgstr ""
  46174. #. type: item
  46175. #: guix-git/doc/guix.texi:30966
  46176. #, fuzzy, no-wrap
  46177. msgid "@code{job-age} (default: @code{(* 6 3600)})"
  46178. msgstr "@code{features} (@code{'()})"
  46179. #. type: table
  46180. #: guix-git/doc/guix.texi:30969
  46181. msgid "Archive cluster jobs older than this age, specified in seconds. The default is 6 hours. This keeps @command{gnt-job list} manageable."
  46182. msgstr ""
  46183. #. type: item
  46184. #: guix-git/doc/guix.texi:30970
  46185. #, fuzzy, no-wrap
  46186. msgid "@code{verify-disks?} (default: @code{#t})"
  46187. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  46188. #. type: table
  46189. #: guix-git/doc/guix.texi:30974
  46190. 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."
  46191. msgstr ""
  46192. #. type: table
  46193. #: guix-git/doc/guix.texi:30977
  46194. msgid "When @code{#t}, the script performs additional logging for debugging purposes."
  46195. msgstr ""
  46196. #. type: defvr
  46197. #: guix-git/doc/guix.texi:30981
  46198. #, no-wrap
  46199. msgid "{Scheme Variable} ganeti-cleaner-service-type"
  46200. msgstr ""
  46201. #. type: defvr
  46202. #: guix-git/doc/guix.texi:30989
  46203. 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."
  46204. msgstr ""
  46205. #. type: defvr
  46206. #: guix-git/doc/guix.texi:30991
  46207. msgid "It takes a @code{ganeti-cleaner-configuration} object."
  46208. msgstr ""
  46209. #. type: deftp
  46210. #: guix-git/doc/guix.texi:30993
  46211. #, no-wrap
  46212. msgid "{Data Type} ganeti-cleaner-configuration"
  46213. msgstr ""
  46214. #. type: table
  46215. #: guix-git/doc/guix.texi:30998
  46216. msgid "The @code{ganeti} package to use for the @command{gnt-cleaner} command."
  46217. msgstr ""
  46218. #. type: item
  46219. #: guix-git/doc/guix.texi:30999
  46220. #, fuzzy, no-wrap
  46221. msgid "@code{master-schedule} (default: @code{\"45 1 * * *\"})"
  46222. msgstr "@code{speed}(默认值:@code{1.0})"
  46223. #. type: table
  46224. #: guix-git/doc/guix.texi:31002
  46225. msgid "How often to run the master cleaning job. The default is once per day, at 01:45:00."
  46226. msgstr ""
  46227. #. type: item
  46228. #: guix-git/doc/guix.texi:31003
  46229. #, fuzzy, no-wrap
  46230. msgid "@code{node-schedule} (default: @code{\"45 2 * * *\"})"
  46231. msgstr "@code{display}(默认值:@code{\":0\"})"
  46232. #. type: table
  46233. #: guix-git/doc/guix.texi:31006
  46234. msgid "How often to run the node cleaning job. The default is once per day, at 02:45:00."
  46235. msgstr ""
  46236. #. type: Plain text
  46237. #: guix-git/doc/guix.texi:31020
  46238. 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}."
  46239. msgstr ""
  46240. #. type: deffn
  46241. #: guix-git/doc/guix.texi:31021
  46242. #, no-wrap
  46243. msgid "{Scheme Procedure} git-daemon-service [#:config (git-daemon-configuration)]"
  46244. msgstr ""
  46245. #. type: deffn
  46246. #: guix-git/doc/guix.texi:31025
  46247. msgid "Return a service that runs @command{git daemon}, a simple TCP server to expose repositories over the Git protocol for anonymous access."
  46248. msgstr ""
  46249. #. type: deffn
  46250. #: guix-git/doc/guix.texi:31031
  46251. 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}."
  46252. msgstr ""
  46253. #. type: deftp
  46254. #: guix-git/doc/guix.texi:31034
  46255. #, no-wrap
  46256. msgid "{Data Type} git-daemon-configuration"
  46257. msgstr ""
  46258. #. type: deftp
  46259. #: guix-git/doc/guix.texi:31036
  46260. msgid "Data type representing the configuration for @code{git-daemon-service}."
  46261. msgstr ""
  46262. #. type: item
  46263. #: guix-git/doc/guix.texi:31038
  46264. #, fuzzy, no-wrap
  46265. msgid "@code{package} (default: @code{git})"
  46266. msgstr "@code{mate}(默认值:@code{mate})"
  46267. #. type: table
  46268. #: guix-git/doc/guix.texi:31040 guix-git/doc/guix.texi:31100
  46269. msgid "Package object of the Git distributed version control system."
  46270. msgstr ""
  46271. #. type: item
  46272. #: guix-git/doc/guix.texi:31041 guix-git/doc/guix.texi:31104
  46273. #, fuzzy, no-wrap
  46274. msgid "@code{export-all?} (default: @code{#f})"
  46275. msgstr "@code{port}(默认值:@code{22})"
  46276. #. type: table
  46277. #: guix-git/doc/guix.texi:31044
  46278. msgid "Whether to allow access for all Git repositories, even if they do not have the @file{git-daemon-export-ok} file."
  46279. msgstr ""
  46280. #. type: item
  46281. #: guix-git/doc/guix.texi:31045
  46282. #, no-wrap
  46283. msgid "@code{base-path} (default: @file{/srv/git})"
  46284. msgstr ""
  46285. #. type: table
  46286. #: guix-git/doc/guix.texi:31051
  46287. 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}."
  46288. msgstr ""
  46289. #. type: item
  46290. #: guix-git/doc/guix.texi:31052
  46291. #, fuzzy, no-wrap
  46292. msgid "@code{user-path} (default: @code{#f})"
  46293. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  46294. #. type: table
  46295. #: guix-git/doc/guix.texi:31060
  46296. 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}."
  46297. msgstr ""
  46298. #. type: item
  46299. #: guix-git/doc/guix.texi:31061
  46300. #, fuzzy, no-wrap
  46301. msgid "@code{listen} (default: @code{'()})"
  46302. msgstr "@code{features} (@code{'()})"
  46303. #. type: table
  46304. #: guix-git/doc/guix.texi:31064
  46305. msgid "Whether to listen on specific IP addresses or hostnames, defaults to all."
  46306. msgstr ""
  46307. #. type: item
  46308. #: guix-git/doc/guix.texi:31065
  46309. #, fuzzy, no-wrap
  46310. msgid "@code{port} (default: @code{#f})"
  46311. msgstr "@code{port}(默认值:@code{22})"
  46312. #. type: table
  46313. #: guix-git/doc/guix.texi:31067
  46314. msgid "Whether to listen on an alternative port, which defaults to 9418."
  46315. msgstr ""
  46316. #. type: item
  46317. #: guix-git/doc/guix.texi:31068
  46318. #, fuzzy, no-wrap
  46319. msgid "@code{whitelist} (default: @code{'()})"
  46320. msgstr "@code{features} (@code{'()})"
  46321. #. type: table
  46322. #: guix-git/doc/guix.texi:31070
  46323. msgid "If not empty, only allow access to this list of directories."
  46324. msgstr ""
  46325. #. type: table
  46326. #: guix-git/doc/guix.texi:31074
  46327. msgid "Extra options will be passed to @command{git daemon}, please run @command{man git-daemon} for more information."
  46328. msgstr ""
  46329. #. type: Plain text
  46330. #: guix-git/doc/guix.texi:31088
  46331. 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."
  46332. msgstr ""
  46333. #. type: Plain text
  46334. #: guix-git/doc/guix.texi:31091
  46335. msgid "Guix has a separate configuration data type for serving Git repositories over HTTP."
  46336. msgstr ""
  46337. #. type: deftp
  46338. #: guix-git/doc/guix.texi:31092
  46339. #, no-wrap
  46340. msgid "{Data Type} git-http-configuration"
  46341. msgstr ""
  46342. #. type: deftp
  46343. #: guix-git/doc/guix.texi:31096
  46344. 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}."
  46345. msgstr ""
  46346. #. type: item
  46347. #: guix-git/doc/guix.texi:31098
  46348. #, no-wrap
  46349. msgid "@code{package} (default: @var{git})"
  46350. msgstr ""
  46351. #. type: item
  46352. #: guix-git/doc/guix.texi:31101
  46353. #, no-wrap
  46354. msgid "@code{git-root} (default: @file{/srv/git})"
  46355. msgstr ""
  46356. #. type: table
  46357. #: guix-git/doc/guix.texi:31103
  46358. msgid "Directory containing the Git repositories to expose to the world."
  46359. msgstr ""
  46360. #. type: table
  46361. #: guix-git/doc/guix.texi:31107
  46362. 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."
  46363. msgstr ""
  46364. #. type: item
  46365. #: guix-git/doc/guix.texi:31108
  46366. #, fuzzy, no-wrap
  46367. msgid "@code{uri-path} (default: @samp{/git/})"
  46368. msgstr "@code{mate}(默认值:@code{mate})"
  46369. #. type: table
  46370. #: guix-git/doc/guix.texi:31113
  46371. 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."
  46372. msgstr ""
  46373. #. type: item
  46374. #: guix-git/doc/guix.texi:31114
  46375. #, no-wrap
  46376. msgid "@code{fcgiwrap-socket} (default: @code{127.0.0.1:9000})"
  46377. msgstr ""
  46378. #. type: table
  46379. #: guix-git/doc/guix.texi:31117
  46380. msgid "The socket on which the @code{fcgiwrap} daemon is listening. @xref{Web Services}."
  46381. msgstr ""
  46382. #. type: Plain text
  46383. #: guix-git/doc/guix.texi:31124
  46384. 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."
  46385. msgstr ""
  46386. #. type: deffn
  46387. #: guix-git/doc/guix.texi:31125
  46388. #, no-wrap
  46389. msgid "{Scheme Procedure} git-http-nginx-location-configuration @"
  46390. msgstr ""
  46391. #. type: deffn
  46392. #: guix-git/doc/guix.texi:31130
  46393. 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:"
  46394. msgstr ""
  46395. #. type: lisp
  46396. #: guix-git/doc/guix.texi:31147
  46397. #, no-wrap
  46398. msgid ""
  46399. "(service nginx-service-type\n"
  46400. " (nginx-configuration\n"
  46401. " (server-blocks\n"
  46402. " (list\n"
  46403. " (nginx-server-configuration\n"
  46404. " (listen '(\"443 ssl\"))\n"
  46405. " (server-name \"git.my-host.org\")\n"
  46406. " (ssl-certificate\n"
  46407. " \"/etc/letsencrypt/live/git.my-host.org/fullchain.pem\")\n"
  46408. " (ssl-certificate-key\n"
  46409. " \"/etc/letsencrypt/live/git.my-host.org/privkey.pem\")\n"
  46410. " (locations\n"
  46411. " (list\n"
  46412. " (git-http-nginx-location-configuration\n"
  46413. " (git-http-configuration (uri-path \"/\"))))))))))\n"
  46414. msgstr ""
  46415. #. type: deffn
  46416. #: guix-git/doc/guix.texi:31154
  46417. 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}."
  46418. msgstr ""
  46419. #. type: subsubheading
  46420. #: guix-git/doc/guix.texi:31156
  46421. #, no-wrap
  46422. msgid "Cgit Service"
  46423. msgstr ""
  46424. #. type: cindex
  46425. #: guix-git/doc/guix.texi:31158
  46426. #, no-wrap
  46427. msgid "Cgit service"
  46428. msgstr ""
  46429. #. type: cindex
  46430. #: guix-git/doc/guix.texi:31159
  46431. #, no-wrap
  46432. msgid "Git, web interface"
  46433. msgstr ""
  46434. #. type: Plain text
  46435. #: guix-git/doc/guix.texi:31162
  46436. msgid "@uref{https://git.zx2c4.com/cgit/, Cgit} is a web frontend for Git repositories written in C."
  46437. msgstr ""
  46438. #. type: Plain text
  46439. #: guix-git/doc/guix.texi:31165
  46440. msgid "The following example will configure the service with default values. By default, Cgit can be accessed on port 80 (@code{http://localhost:80})."
  46441. msgstr ""
  46442. #. type: lisp
  46443. #: guix-git/doc/guix.texi:31168
  46444. #, no-wrap
  46445. msgid "(service cgit-service-type)\n"
  46446. msgstr ""
  46447. #. type: Plain text
  46448. #: guix-git/doc/guix.texi:31172
  46449. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a string."
  46450. msgstr ""
  46451. #. type: Plain text
  46452. #: guix-git/doc/guix.texi:31176
  46453. msgid "Available @code{cgit-configuration} fields are:"
  46454. msgstr ""
  46455. #. type: deftypevr
  46456. #: guix-git/doc/guix.texi:31177
  46457. #, no-wrap
  46458. msgid "{@code{cgit-configuration} parameter} package package"
  46459. msgstr ""
  46460. #. type: deftypevr
  46461. #: guix-git/doc/guix.texi:31179
  46462. msgid "The CGIT package."
  46463. msgstr ""
  46464. #. type: deftypevr
  46465. #: guix-git/doc/guix.texi:31182
  46466. #, no-wrap
  46467. msgid "{@code{cgit-configuration} parameter} nginx-server-configuration-list nginx"
  46468. msgstr ""
  46469. #. type: deftypevr
  46470. #: guix-git/doc/guix.texi:31187
  46471. #, no-wrap
  46472. msgid "{@code{cgit-configuration} parameter} file-object about-filter"
  46473. msgstr ""
  46474. #. type: deftypevr
  46475. #: guix-git/doc/guix.texi:31190
  46476. msgid "Specifies a command which will be invoked to format the content of about pages (both top-level and for each repository)."
  46477. msgstr ""
  46478. #. type: deftypevr
  46479. #: guix-git/doc/guix.texi:31195
  46480. #, no-wrap
  46481. msgid "{@code{cgit-configuration} parameter} string agefile"
  46482. msgstr ""
  46483. #. type: deftypevr
  46484. #: guix-git/doc/guix.texi:31198
  46485. 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."
  46486. msgstr ""
  46487. #. type: deftypevr
  46488. #: guix-git/doc/guix.texi:31203
  46489. #, no-wrap
  46490. msgid "{@code{cgit-configuration} parameter} file-object auth-filter"
  46491. msgstr ""
  46492. #. type: deftypevr
  46493. #: guix-git/doc/guix.texi:31206
  46494. msgid "Specifies a command that will be invoked for authenticating repository access."
  46495. msgstr ""
  46496. #. type: deftypevr
  46497. #: guix-git/doc/guix.texi:31211
  46498. #, no-wrap
  46499. msgid "{@code{cgit-configuration} parameter} string branch-sort"
  46500. msgstr ""
  46501. #. type: deftypevr
  46502. #: guix-git/doc/guix.texi:31214
  46503. 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."
  46504. msgstr ""
  46505. #. type: deftypevr
  46506. #: guix-git/doc/guix.texi:31216
  46507. msgid "Defaults to @samp{\"name\"}."
  46508. msgstr ""
  46509. #. type: deftypevr
  46510. #: guix-git/doc/guix.texi:31219
  46511. #, no-wrap
  46512. msgid "{@code{cgit-configuration} parameter} string cache-root"
  46513. msgstr ""
  46514. #. type: deftypevr
  46515. #: guix-git/doc/guix.texi:31221
  46516. msgid "Path used to store the cgit cache entries."
  46517. msgstr ""
  46518. #. type: deftypevr
  46519. #: guix-git/doc/guix.texi:31223
  46520. msgid "Defaults to @samp{\"/var/cache/cgit\"}."
  46521. msgstr ""
  46522. #. type: deftypevr
  46523. #: guix-git/doc/guix.texi:31226
  46524. #, no-wrap
  46525. msgid "{@code{cgit-configuration} parameter} integer cache-static-ttl"
  46526. msgstr ""
  46527. #. type: deftypevr
  46528. #: guix-git/doc/guix.texi:31229
  46529. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed with a fixed SHA1."
  46530. msgstr ""
  46531. #. type: deftypevr
  46532. #: guix-git/doc/guix.texi:31231 guix-git/doc/guix.texi:31674
  46533. msgid "Defaults to @samp{-1}."
  46534. msgstr ""
  46535. #. type: deftypevr
  46536. #: guix-git/doc/guix.texi:31234
  46537. #, no-wrap
  46538. msgid "{@code{cgit-configuration} parameter} integer cache-dynamic-ttl"
  46539. msgstr ""
  46540. #. type: deftypevr
  46541. #: guix-git/doc/guix.texi:31237
  46542. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed without a fixed SHA1."
  46543. msgstr ""
  46544. #. type: deftypevr
  46545. #: guix-git/doc/guix.texi:31242
  46546. #, no-wrap
  46547. msgid "{@code{cgit-configuration} parameter} integer cache-repo-ttl"
  46548. msgstr ""
  46549. #. type: deftypevr
  46550. #: guix-git/doc/guix.texi:31245
  46551. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository summary page."
  46552. msgstr ""
  46553. #. type: deftypevr
  46554. #: guix-git/doc/guix.texi:31250
  46555. #, no-wrap
  46556. msgid "{@code{cgit-configuration} parameter} integer cache-root-ttl"
  46557. msgstr ""
  46558. #. type: deftypevr
  46559. #: guix-git/doc/guix.texi:31253
  46560. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository index page."
  46561. msgstr ""
  46562. #. type: deftypevr
  46563. #: guix-git/doc/guix.texi:31258
  46564. #, no-wrap
  46565. msgid "{@code{cgit-configuration} parameter} integer cache-scanrc-ttl"
  46566. msgstr ""
  46567. #. type: deftypevr
  46568. #: guix-git/doc/guix.texi:31261
  46569. msgid "Number which specifies the time-to-live, in minutes, for the result of scanning a path for Git repositories."
  46570. msgstr ""
  46571. #. type: deftypevr
  46572. #: guix-git/doc/guix.texi:31266
  46573. #, no-wrap
  46574. msgid "{@code{cgit-configuration} parameter} integer cache-about-ttl"
  46575. msgstr ""
  46576. #. type: deftypevr
  46577. #: guix-git/doc/guix.texi:31269
  46578. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository about page."
  46579. msgstr ""
  46580. #. type: deftypevr
  46581. #: guix-git/doc/guix.texi:31274
  46582. #, no-wrap
  46583. msgid "{@code{cgit-configuration} parameter} integer cache-snapshot-ttl"
  46584. msgstr ""
  46585. #. type: deftypevr
  46586. #: guix-git/doc/guix.texi:31277
  46587. msgid "Number which specifies the time-to-live, in minutes, for the cached version of snapshots."
  46588. msgstr ""
  46589. #. type: deftypevr
  46590. #: guix-git/doc/guix.texi:31282
  46591. #, no-wrap
  46592. msgid "{@code{cgit-configuration} parameter} integer cache-size"
  46593. msgstr ""
  46594. #. type: deftypevr
  46595. #: guix-git/doc/guix.texi:31285
  46596. msgid "The maximum number of entries in the cgit cache. When set to @samp{0}, caching is disabled."
  46597. msgstr ""
  46598. #. type: deftypevr
  46599. #: guix-git/doc/guix.texi:31290
  46600. #, no-wrap
  46601. msgid "{@code{cgit-configuration} parameter} boolean case-sensitive-sort?"
  46602. msgstr ""
  46603. #. type: deftypevr
  46604. #: guix-git/doc/guix.texi:31292
  46605. msgid "Sort items in the repo list case sensitively."
  46606. msgstr ""
  46607. #. type: deftypevr
  46608. #: guix-git/doc/guix.texi:31297
  46609. #, no-wrap
  46610. msgid "{@code{cgit-configuration} parameter} list clone-prefix"
  46611. msgstr ""
  46612. #. type: deftypevr
  46613. #: guix-git/doc/guix.texi:31300
  46614. msgid "List of common prefixes which, when combined with a repository URL, generates valid clone URLs for the repository."
  46615. msgstr ""
  46616. #. type: deftypevr
  46617. #: guix-git/doc/guix.texi:31305
  46618. #, no-wrap
  46619. msgid "{@code{cgit-configuration} parameter} list clone-url"
  46620. msgstr ""
  46621. #. type: deftypevr
  46622. #: guix-git/doc/guix.texi:31307
  46623. msgid "List of @code{clone-url} templates."
  46624. msgstr ""
  46625. #. type: deftypevr
  46626. #: guix-git/doc/guix.texi:31312
  46627. #, no-wrap
  46628. msgid "{@code{cgit-configuration} parameter} file-object commit-filter"
  46629. msgstr ""
  46630. #. type: deftypevr
  46631. #: guix-git/doc/guix.texi:31314
  46632. msgid "Command which will be invoked to format commit messages."
  46633. msgstr ""
  46634. #. type: deftypevr
  46635. #: guix-git/doc/guix.texi:31319
  46636. #, no-wrap
  46637. msgid "{@code{cgit-configuration} parameter} string commit-sort"
  46638. msgstr ""
  46639. #. type: deftypevr
  46640. #: guix-git/doc/guix.texi:31323 guix-git/doc/guix.texi:31881
  46641. 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."
  46642. msgstr ""
  46643. #. type: deftypevr
  46644. #: guix-git/doc/guix.texi:31325
  46645. msgid "Defaults to @samp{\"git log\"}."
  46646. msgstr ""
  46647. #. type: deftypevr
  46648. #: guix-git/doc/guix.texi:31328
  46649. #, no-wrap
  46650. msgid "{@code{cgit-configuration} parameter} file-object css"
  46651. msgstr ""
  46652. #. type: deftypevr
  46653. #: guix-git/doc/guix.texi:31330
  46654. msgid "URL which specifies the css document to include in all cgit pages."
  46655. msgstr ""
  46656. #. type: deftypevr
  46657. #: guix-git/doc/guix.texi:31332
  46658. msgid "Defaults to @samp{\"/share/cgit/cgit.css\"}."
  46659. msgstr ""
  46660. #. type: deftypevr
  46661. #: guix-git/doc/guix.texi:31335
  46662. #, no-wrap
  46663. msgid "{@code{cgit-configuration} parameter} file-object email-filter"
  46664. msgstr ""
  46665. #. type: deftypevr
  46666. #: guix-git/doc/guix.texi:31339
  46667. 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."
  46668. msgstr ""
  46669. #. type: deftypevr
  46670. #: guix-git/doc/guix.texi:31344
  46671. #, no-wrap
  46672. msgid "{@code{cgit-configuration} parameter} boolean embedded?"
  46673. msgstr ""
  46674. #. type: deftypevr
  46675. #: guix-git/doc/guix.texi:31347
  46676. msgid "Flag which, when set to @samp{#t}, will make cgit generate a HTML fragment suitable for embedding in other HTML pages."
  46677. msgstr ""
  46678. #. type: deftypevr
  46679. #: guix-git/doc/guix.texi:31352
  46680. #, no-wrap
  46681. msgid "{@code{cgit-configuration} parameter} boolean enable-commit-graph?"
  46682. msgstr ""
  46683. #. type: deftypevr
  46684. #: guix-git/doc/guix.texi:31356
  46685. 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."
  46686. msgstr ""
  46687. #. type: deftypevr
  46688. #: guix-git/doc/guix.texi:31361
  46689. #, no-wrap
  46690. msgid "{@code{cgit-configuration} parameter} boolean enable-filter-overrides?"
  46691. msgstr ""
  46692. #. type: deftypevr
  46693. #: guix-git/doc/guix.texi:31364
  46694. msgid "Flag which, when set to @samp{#t}, allows all filter settings to be overridden in repository-specific cgitrc files."
  46695. msgstr ""
  46696. #. type: deftypevr
  46697. #: guix-git/doc/guix.texi:31369
  46698. #, no-wrap
  46699. msgid "{@code{cgit-configuration} parameter} boolean enable-follow-links?"
  46700. msgstr ""
  46701. #. type: deftypevr
  46702. #: guix-git/doc/guix.texi:31372
  46703. msgid "Flag which, when set to @samp{#t}, allows users to follow a file in the log view."
  46704. msgstr ""
  46705. #. type: deftypevr
  46706. #: guix-git/doc/guix.texi:31377
  46707. #, no-wrap
  46708. msgid "{@code{cgit-configuration} parameter} boolean enable-http-clone?"
  46709. msgstr ""
  46710. #. type: deftypevr
  46711. #: guix-git/doc/guix.texi:31380
  46712. msgid "If set to @samp{#t}, cgit will act as an dumb HTTP endpoint for Git clones."
  46713. msgstr ""
  46714. #. type: deftypevr
  46715. #: guix-git/doc/guix.texi:31385
  46716. #, no-wrap
  46717. msgid "{@code{cgit-configuration} parameter} boolean enable-index-links?"
  46718. msgstr ""
  46719. #. type: deftypevr
  46720. #: guix-git/doc/guix.texi:31388
  46721. msgid "Flag which, when set to @samp{#t}, will make cgit generate extra links \"summary\", \"commit\", \"tree\" for each repo in the repository index."
  46722. msgstr ""
  46723. #. type: deftypevr
  46724. #: guix-git/doc/guix.texi:31393
  46725. #, no-wrap
  46726. msgid "{@code{cgit-configuration} parameter} boolean enable-index-owner?"
  46727. msgstr ""
  46728. #. type: deftypevr
  46729. #: guix-git/doc/guix.texi:31396
  46730. msgid "Flag which, when set to @samp{#t}, will make cgit display the owner of each repo in the repository index."
  46731. msgstr ""
  46732. #. type: deftypevr
  46733. #: guix-git/doc/guix.texi:31401
  46734. #, no-wrap
  46735. msgid "{@code{cgit-configuration} parameter} boolean enable-log-filecount?"
  46736. msgstr ""
  46737. #. type: deftypevr
  46738. #: guix-git/doc/guix.texi:31404
  46739. 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."
  46740. msgstr ""
  46741. #. type: deftypevr
  46742. #: guix-git/doc/guix.texi:31409
  46743. #, no-wrap
  46744. msgid "{@code{cgit-configuration} parameter} boolean enable-log-linecount?"
  46745. msgstr ""
  46746. #. type: deftypevr
  46747. #: guix-git/doc/guix.texi:31412
  46748. 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."
  46749. msgstr ""
  46750. #. type: deftypevr
  46751. #: guix-git/doc/guix.texi:31417
  46752. #, no-wrap
  46753. msgid "{@code{cgit-configuration} parameter} boolean enable-remote-branches?"
  46754. msgstr ""
  46755. #. type: deftypevr
  46756. #: guix-git/doc/guix.texi:31420 guix-git/doc/guix.texi:31944
  46757. msgid "Flag which, when set to @code{#t}, will make cgit display remote branches in the summary and refs views."
  46758. msgstr ""
  46759. #. type: deftypevr
  46760. #: guix-git/doc/guix.texi:31425
  46761. #, no-wrap
  46762. msgid "{@code{cgit-configuration} parameter} boolean enable-subject-links?"
  46763. msgstr ""
  46764. #. type: deftypevr
  46765. #: guix-git/doc/guix.texi:31429
  46766. 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."
  46767. msgstr ""
  46768. #. type: deftypevr
  46769. #: guix-git/doc/guix.texi:31434
  46770. #, no-wrap
  46771. msgid "{@code{cgit-configuration} parameter} boolean enable-html-serving?"
  46772. msgstr ""
  46773. #. type: deftypevr
  46774. #: guix-git/doc/guix.texi:31438
  46775. 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."
  46776. msgstr ""
  46777. #. type: deftypevr
  46778. #: guix-git/doc/guix.texi:31443
  46779. #, no-wrap
  46780. msgid "{@code{cgit-configuration} parameter} boolean enable-tree-linenumbers?"
  46781. msgstr ""
  46782. #. type: deftypevr
  46783. #: guix-git/doc/guix.texi:31446
  46784. msgid "Flag which, when set to @samp{#t}, will make cgit generate linenumber links for plaintext blobs printed in the tree view."
  46785. msgstr ""
  46786. #. type: deftypevr
  46787. #: guix-git/doc/guix.texi:31451
  46788. #, no-wrap
  46789. msgid "{@code{cgit-configuration} parameter} boolean enable-git-config?"
  46790. msgstr ""
  46791. #. type: deftypevr
  46792. #: guix-git/doc/guix.texi:31454
  46793. msgid "Flag which, when set to @samp{#f}, will allow cgit to use Git config to set any repo specific settings."
  46794. msgstr ""
  46795. #. type: deftypevr
  46796. #: guix-git/doc/guix.texi:31459
  46797. #, no-wrap
  46798. msgid "{@code{cgit-configuration} parameter} file-object favicon"
  46799. msgstr ""
  46800. #. type: deftypevr
  46801. #: guix-git/doc/guix.texi:31461
  46802. msgid "URL used as link to a shortcut icon for cgit."
  46803. msgstr ""
  46804. #. type: deftypevr
  46805. #: guix-git/doc/guix.texi:31463
  46806. msgid "Defaults to @samp{\"/favicon.ico\"}."
  46807. msgstr ""
  46808. #. type: deftypevr
  46809. #: guix-git/doc/guix.texi:31466
  46810. #, no-wrap
  46811. msgid "{@code{cgit-configuration} parameter} string footer"
  46812. msgstr ""
  46813. #. type: deftypevr
  46814. #: guix-git/doc/guix.texi:31470
  46815. 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)."
  46816. msgstr ""
  46817. #. type: deftypevr
  46818. #: guix-git/doc/guix.texi:31475
  46819. #, no-wrap
  46820. msgid "{@code{cgit-configuration} parameter} string head-include"
  46821. msgstr ""
  46822. #. type: deftypevr
  46823. #: guix-git/doc/guix.texi:31478
  46824. msgid "The content of the file specified with this option will be included verbatim in the HTML HEAD section on all pages."
  46825. msgstr ""
  46826. #. type: deftypevr
  46827. #: guix-git/doc/guix.texi:31483
  46828. #, no-wrap
  46829. msgid "{@code{cgit-configuration} parameter} string header"
  46830. msgstr ""
  46831. #. type: deftypevr
  46832. #: guix-git/doc/guix.texi:31486
  46833. msgid "The content of the file specified with this option will be included verbatim at the top of all pages."
  46834. msgstr ""
  46835. #. type: deftypevr
  46836. #: guix-git/doc/guix.texi:31491
  46837. #, no-wrap
  46838. msgid "{@code{cgit-configuration} parameter} file-object include"
  46839. msgstr ""
  46840. #. type: deftypevr
  46841. #: guix-git/doc/guix.texi:31494
  46842. msgid "Name of a configfile to include before the rest of the current config- file is parsed."
  46843. msgstr ""
  46844. #. type: deftypevr
  46845. #: guix-git/doc/guix.texi:31499
  46846. #, no-wrap
  46847. msgid "{@code{cgit-configuration} parameter} string index-header"
  46848. msgstr ""
  46849. #. type: deftypevr
  46850. #: guix-git/doc/guix.texi:31502
  46851. msgid "The content of the file specified with this option will be included verbatim above the repository index."
  46852. msgstr ""
  46853. #. type: deftypevr
  46854. #: guix-git/doc/guix.texi:31507
  46855. #, no-wrap
  46856. msgid "{@code{cgit-configuration} parameter} string index-info"
  46857. msgstr ""
  46858. #. type: deftypevr
  46859. #: guix-git/doc/guix.texi:31510
  46860. msgid "The content of the file specified with this option will be included verbatim below the heading on the repository index page."
  46861. msgstr ""
  46862. #. type: deftypevr
  46863. #: guix-git/doc/guix.texi:31515
  46864. #, no-wrap
  46865. msgid "{@code{cgit-configuration} parameter} boolean local-time?"
  46866. msgstr ""
  46867. #. type: deftypevr
  46868. #: guix-git/doc/guix.texi:31518
  46869. msgid "Flag which, if set to @samp{#t}, makes cgit print commit and tag times in the servers timezone."
  46870. msgstr ""
  46871. #. type: deftypevr
  46872. #: guix-git/doc/guix.texi:31523
  46873. #, no-wrap
  46874. msgid "{@code{cgit-configuration} parameter} file-object logo"
  46875. msgstr ""
  46876. #. type: deftypevr
  46877. #: guix-git/doc/guix.texi:31526
  46878. msgid "URL which specifies the source of an image which will be used as a logo on all cgit pages."
  46879. msgstr ""
  46880. #. type: deftypevr
  46881. #: guix-git/doc/guix.texi:31528
  46882. msgid "Defaults to @samp{\"/share/cgit/cgit.png\"}."
  46883. msgstr ""
  46884. #. type: deftypevr
  46885. #: guix-git/doc/guix.texi:31531
  46886. #, no-wrap
  46887. msgid "{@code{cgit-configuration} parameter} string logo-link"
  46888. msgstr ""
  46889. #. type: deftypevr
  46890. #: guix-git/doc/guix.texi:31533 guix-git/doc/guix.texi:31990
  46891. msgid "URL loaded when clicking on the cgit logo image."
  46892. msgstr ""
  46893. #. type: deftypevr
  46894. #: guix-git/doc/guix.texi:31538
  46895. #, no-wrap
  46896. msgid "{@code{cgit-configuration} parameter} file-object owner-filter"
  46897. msgstr ""
  46898. #. type: deftypevr
  46899. #: guix-git/doc/guix.texi:31541
  46900. msgid "Command which will be invoked to format the Owner column of the main page."
  46901. msgstr ""
  46902. #. type: deftypevr
  46903. #: guix-git/doc/guix.texi:31546
  46904. #, no-wrap
  46905. msgid "{@code{cgit-configuration} parameter} integer max-atom-items"
  46906. msgstr ""
  46907. #. type: deftypevr
  46908. #: guix-git/doc/guix.texi:31548
  46909. msgid "Number of items to display in atom feeds view."
  46910. msgstr ""
  46911. #. type: deftypevr
  46912. #: guix-git/doc/guix.texi:31553
  46913. #, no-wrap
  46914. msgid "{@code{cgit-configuration} parameter} integer max-commit-count"
  46915. msgstr ""
  46916. #. type: deftypevr
  46917. #: guix-git/doc/guix.texi:31555
  46918. msgid "Number of entries to list per page in \"log\" view."
  46919. msgstr ""
  46920. #. type: deftypevr
  46921. #: guix-git/doc/guix.texi:31560
  46922. #, no-wrap
  46923. msgid "{@code{cgit-configuration} parameter} integer max-message-length"
  46924. msgstr ""
  46925. #. type: deftypevr
  46926. #: guix-git/doc/guix.texi:31562
  46927. msgid "Number of commit message characters to display in \"log\" view."
  46928. msgstr ""
  46929. #. type: deftypevr
  46930. #: guix-git/doc/guix.texi:31564 guix-git/doc/guix.texi:31580
  46931. msgid "Defaults to @samp{80}."
  46932. msgstr ""
  46933. #. type: deftypevr
  46934. #: guix-git/doc/guix.texi:31567
  46935. #, no-wrap
  46936. msgid "{@code{cgit-configuration} parameter} integer max-repo-count"
  46937. msgstr ""
  46938. #. type: deftypevr
  46939. #: guix-git/doc/guix.texi:31570
  46940. msgid "Specifies the number of entries to list per page on the repository index page."
  46941. msgstr ""
  46942. #. type: deftypevr
  46943. #: guix-git/doc/guix.texi:31575
  46944. #, no-wrap
  46945. msgid "{@code{cgit-configuration} parameter} integer max-repodesc-length"
  46946. msgstr ""
  46947. #. type: deftypevr
  46948. #: guix-git/doc/guix.texi:31578
  46949. msgid "Specifies the maximum number of repo description characters to display on the repository index page."
  46950. msgstr ""
  46951. #. type: deftypevr
  46952. #: guix-git/doc/guix.texi:31583
  46953. #, no-wrap
  46954. msgid "{@code{cgit-configuration} parameter} integer max-blob-size"
  46955. msgstr ""
  46956. #. type: deftypevr
  46957. #: guix-git/doc/guix.texi:31585
  46958. msgid "Specifies the maximum size of a blob to display HTML for in KBytes."
  46959. msgstr ""
  46960. #. type: deftypevr
  46961. #: guix-git/doc/guix.texi:31590
  46962. #, no-wrap
  46963. msgid "{@code{cgit-configuration} parameter} string max-stats"
  46964. msgstr ""
  46965. #. type: deftypevr
  46966. #: guix-git/doc/guix.texi:31593
  46967. msgid "Maximum statistics period. Valid values are @samp{week},@samp{month}, @samp{quarter} and @samp{year}."
  46968. msgstr ""
  46969. #. type: deftypevr
  46970. #: guix-git/doc/guix.texi:31598
  46971. #, no-wrap
  46972. msgid "{@code{cgit-configuration} parameter} mimetype-alist mimetype"
  46973. msgstr ""
  46974. #. type: deftypevr
  46975. #: guix-git/doc/guix.texi:31600
  46976. msgid "Mimetype for the specified filename extension."
  46977. msgstr ""
  46978. #. type: deftypevr
  46979. #: guix-git/doc/guix.texi:31604
  46980. 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\"))}."
  46981. msgstr ""
  46982. #. type: deftypevr
  46983. #: guix-git/doc/guix.texi:31607
  46984. #, no-wrap
  46985. msgid "{@code{cgit-configuration} parameter} file-object mimetype-file"
  46986. msgstr ""
  46987. #. type: deftypevr
  46988. #: guix-git/doc/guix.texi:31609
  46989. msgid "Specifies the file to use for automatic mimetype lookup."
  46990. msgstr ""
  46991. #. type: deftypevr
  46992. #: guix-git/doc/guix.texi:31614
  46993. #, no-wrap
  46994. msgid "{@code{cgit-configuration} parameter} string module-link"
  46995. msgstr ""
  46996. #. type: deftypevr
  46997. #: guix-git/doc/guix.texi:31617
  46998. msgid "Text which will be used as the formatstring for a hyperlink when a submodule is printed in a directory listing."
  46999. msgstr ""
  47000. #. type: deftypevr
  47001. #: guix-git/doc/guix.texi:31622
  47002. #, no-wrap
  47003. msgid "{@code{cgit-configuration} parameter} boolean nocache?"
  47004. msgstr ""
  47005. #. type: deftypevr
  47006. #: guix-git/doc/guix.texi:31624
  47007. msgid "If set to the value @samp{#t} caching will be disabled."
  47008. msgstr ""
  47009. #. type: deftypevr
  47010. #: guix-git/doc/guix.texi:31629
  47011. #, no-wrap
  47012. msgid "{@code{cgit-configuration} parameter} boolean noplainemail?"
  47013. msgstr ""
  47014. #. type: deftypevr
  47015. #: guix-git/doc/guix.texi:31632
  47016. msgid "If set to @samp{#t} showing full author email addresses will be disabled."
  47017. msgstr ""
  47018. #. type: deftypevr
  47019. #: guix-git/doc/guix.texi:31637
  47020. #, no-wrap
  47021. msgid "{@code{cgit-configuration} parameter} boolean noheader?"
  47022. msgstr ""
  47023. #. type: deftypevr
  47024. #: guix-git/doc/guix.texi:31640
  47025. msgid "Flag which, when set to @samp{#t}, will make cgit omit the standard header on all pages."
  47026. msgstr ""
  47027. #. type: deftypevr
  47028. #: guix-git/doc/guix.texi:31645
  47029. #, no-wrap
  47030. msgid "{@code{cgit-configuration} parameter} project-list project-list"
  47031. msgstr ""
  47032. #. type: deftypevr
  47033. #: guix-git/doc/guix.texi:31649
  47034. 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."
  47035. msgstr ""
  47036. #. type: deftypevr
  47037. #: guix-git/doc/guix.texi:31654
  47038. #, no-wrap
  47039. msgid "{@code{cgit-configuration} parameter} file-object readme"
  47040. msgstr ""
  47041. #. type: deftypevr
  47042. #: guix-git/doc/guix.texi:31656
  47043. msgid "Text which will be used as default value for @code{cgit-repo-readme}."
  47044. msgstr ""
  47045. #. type: deftypevr
  47046. #: guix-git/doc/guix.texi:31661
  47047. #, no-wrap
  47048. msgid "{@code{cgit-configuration} parameter} boolean remove-suffix?"
  47049. msgstr ""
  47050. #. type: deftypevr
  47051. #: guix-git/doc/guix.texi:31665
  47052. 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."
  47053. msgstr ""
  47054. #. type: deftypevr
  47055. #: guix-git/doc/guix.texi:31670
  47056. #, no-wrap
  47057. msgid "{@code{cgit-configuration} parameter} integer renamelimit"
  47058. msgstr ""
  47059. #. type: deftypevr
  47060. #: guix-git/doc/guix.texi:31672
  47061. msgid "Maximum number of files to consider when detecting renames."
  47062. msgstr ""
  47063. #. type: deftypevr
  47064. #: guix-git/doc/guix.texi:31677
  47065. #, no-wrap
  47066. msgid "{@code{cgit-configuration} parameter} string repository-sort"
  47067. msgstr ""
  47068. #. type: deftypevr
  47069. #: guix-git/doc/guix.texi:31679
  47070. msgid "The way in which repositories in each section are sorted."
  47071. msgstr ""
  47072. #. type: deftypevr
  47073. #: guix-git/doc/guix.texi:31684
  47074. #, no-wrap
  47075. msgid "{@code{cgit-configuration} parameter} robots-list robots"
  47076. msgstr ""
  47077. #. type: deftypevr
  47078. #: guix-git/doc/guix.texi:31686
  47079. msgid "Text used as content for the @code{robots} meta-tag."
  47080. msgstr ""
  47081. #. type: deftypevr
  47082. #: guix-git/doc/guix.texi:31688
  47083. msgid "Defaults to @samp{(\"noindex\" \"nofollow\")}."
  47084. msgstr ""
  47085. #. type: deftypevr
  47086. #: guix-git/doc/guix.texi:31691
  47087. #, no-wrap
  47088. msgid "{@code{cgit-configuration} parameter} string root-desc"
  47089. msgstr ""
  47090. #. type: deftypevr
  47091. #: guix-git/doc/guix.texi:31693
  47092. msgid "Text printed below the heading on the repository index page."
  47093. msgstr ""
  47094. #. type: deftypevr
  47095. #: guix-git/doc/guix.texi:31695
  47096. msgid "Defaults to @samp{\"a fast webinterface for the git dscm\"}."
  47097. msgstr ""
  47098. #. type: deftypevr
  47099. #: guix-git/doc/guix.texi:31698
  47100. #, no-wrap
  47101. msgid "{@code{cgit-configuration} parameter} string root-readme"
  47102. msgstr ""
  47103. #. type: deftypevr
  47104. #: guix-git/doc/guix.texi:31701
  47105. msgid "The content of the file specified with this option will be included verbatim below the ``about'' link on the repository index page."
  47106. msgstr ""
  47107. #. type: deftypevr
  47108. #: guix-git/doc/guix.texi:31706
  47109. #, no-wrap
  47110. msgid "{@code{cgit-configuration} parameter} string root-title"
  47111. msgstr ""
  47112. #. type: deftypevr
  47113. #: guix-git/doc/guix.texi:31708
  47114. msgid "Text printed as heading on the repository index page."
  47115. msgstr ""
  47116. #. type: deftypevr
  47117. #: guix-git/doc/guix.texi:31713
  47118. #, no-wrap
  47119. msgid "{@code{cgit-configuration} parameter} boolean scan-hidden-path"
  47120. msgstr ""
  47121. #. type: deftypevr
  47122. #: guix-git/doc/guix.texi:31719
  47123. 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."
  47124. msgstr ""
  47125. #. type: deftypevr
  47126. #: guix-git/doc/guix.texi:31724
  47127. #, no-wrap
  47128. msgid "{@code{cgit-configuration} parameter} list snapshots"
  47129. msgstr ""
  47130. #. type: deftypevr
  47131. #: guix-git/doc/guix.texi:31727
  47132. msgid "Text which specifies the default set of snapshot formats that cgit generates links for."
  47133. msgstr ""
  47134. #. type: deftypevr
  47135. #: guix-git/doc/guix.texi:31732
  47136. #, no-wrap
  47137. msgid "{@code{cgit-configuration} parameter} repository-directory repository-directory"
  47138. msgstr ""
  47139. #. type: deftypevr
  47140. #: guix-git/doc/guix.texi:31735
  47141. msgid "Name of the directory to scan for repositories (represents @code{scan-path})."
  47142. msgstr ""
  47143. #. type: deftypevr
  47144. #: guix-git/doc/guix.texi:31737
  47145. msgid "Defaults to @samp{\"/srv/git\"}."
  47146. msgstr ""
  47147. #. type: deftypevr
  47148. #: guix-git/doc/guix.texi:31740
  47149. #, no-wrap
  47150. msgid "{@code{cgit-configuration} parameter} string section"
  47151. msgstr ""
  47152. #. type: deftypevr
  47153. #: guix-git/doc/guix.texi:31743 guix-git/doc/guix.texi:32059
  47154. msgid "The name of the current repository section - all repositories defined after this option will inherit the current section name."
  47155. msgstr ""
  47156. #. type: deftypevr
  47157. #: guix-git/doc/guix.texi:31748
  47158. #, no-wrap
  47159. msgid "{@code{cgit-configuration} parameter} string section-sort"
  47160. msgstr ""
  47161. #. type: deftypevr
  47162. #: guix-git/doc/guix.texi:31751
  47163. msgid "Flag which, when set to @samp{1}, will sort the sections on the repository listing by name."
  47164. msgstr ""
  47165. #. type: deftypevr
  47166. #: guix-git/doc/guix.texi:31756
  47167. #, no-wrap
  47168. msgid "{@code{cgit-configuration} parameter} integer section-from-path"
  47169. msgstr ""
  47170. #. type: deftypevr
  47171. #: guix-git/doc/guix.texi:31759
  47172. 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."
  47173. msgstr ""
  47174. #. type: deftypevr
  47175. #: guix-git/doc/guix.texi:31764
  47176. #, no-wrap
  47177. msgid "{@code{cgit-configuration} parameter} boolean side-by-side-diffs?"
  47178. msgstr ""
  47179. #. type: deftypevr
  47180. #: guix-git/doc/guix.texi:31767
  47181. msgid "If set to @samp{#t} shows side-by-side diffs instead of unidiffs per default."
  47182. msgstr ""
  47183. #. type: deftypevr
  47184. #: guix-git/doc/guix.texi:31772
  47185. #, no-wrap
  47186. msgid "{@code{cgit-configuration} parameter} file-object source-filter"
  47187. msgstr ""
  47188. #. type: deftypevr
  47189. #: guix-git/doc/guix.texi:31775
  47190. msgid "Specifies a command which will be invoked to format plaintext blobs in the tree view."
  47191. msgstr ""
  47192. #. type: deftypevr
  47193. #: guix-git/doc/guix.texi:31780
  47194. #, no-wrap
  47195. msgid "{@code{cgit-configuration} parameter} integer summary-branches"
  47196. msgstr ""
  47197. #. type: deftypevr
  47198. #: guix-git/doc/guix.texi:31783
  47199. msgid "Specifies the number of branches to display in the repository ``summary'' view."
  47200. msgstr ""
  47201. #. type: deftypevr
  47202. #: guix-git/doc/guix.texi:31788
  47203. #, no-wrap
  47204. msgid "{@code{cgit-configuration} parameter} integer summary-log"
  47205. msgstr ""
  47206. #. type: deftypevr
  47207. #: guix-git/doc/guix.texi:31791
  47208. msgid "Specifies the number of log entries to display in the repository ``summary'' view."
  47209. msgstr ""
  47210. #. type: deftypevr
  47211. #: guix-git/doc/guix.texi:31796
  47212. #, no-wrap
  47213. msgid "{@code{cgit-configuration} parameter} integer summary-tags"
  47214. msgstr ""
  47215. #. type: deftypevr
  47216. #: guix-git/doc/guix.texi:31799
  47217. msgid "Specifies the number of tags to display in the repository ``summary'' view."
  47218. msgstr ""
  47219. #. type: deftypevr
  47220. #: guix-git/doc/guix.texi:31804
  47221. #, no-wrap
  47222. msgid "{@code{cgit-configuration} parameter} string strict-export"
  47223. msgstr ""
  47224. #. type: deftypevr
  47225. #: guix-git/doc/guix.texi:31807
  47226. msgid "Filename which, if specified, needs to be present within the repository for cgit to allow access to that repository."
  47227. msgstr ""
  47228. #. type: deftypevr
  47229. #: guix-git/doc/guix.texi:31812
  47230. #, no-wrap
  47231. msgid "{@code{cgit-configuration} parameter} string virtual-root"
  47232. msgstr ""
  47233. #. type: deftypevr
  47234. #: guix-git/doc/guix.texi:31814
  47235. msgid "URL which, if specified, will be used as root for all cgit links."
  47236. msgstr ""
  47237. #. type: deftypevr
  47238. #: guix-git/doc/guix.texi:31816
  47239. msgid "Defaults to @samp{\"/\"}."
  47240. msgstr ""
  47241. #. type: deftypevr
  47242. #: guix-git/doc/guix.texi:31819
  47243. #, no-wrap
  47244. msgid "{@code{cgit-configuration} parameter} repository-cgit-configuration-list repositories"
  47245. msgstr ""
  47246. #. type: deftypevr
  47247. #: guix-git/doc/guix.texi:31821
  47248. msgid "A list of @dfn{cgit-repo} records to use with config."
  47249. msgstr ""
  47250. #. type: deftypevr
  47251. #: guix-git/doc/guix.texi:31825
  47252. msgid "Available @code{repository-cgit-configuration} fields are:"
  47253. msgstr ""
  47254. #. type: deftypevr
  47255. #: guix-git/doc/guix.texi:31826
  47256. #, no-wrap
  47257. msgid "{@code{repository-cgit-configuration} parameter} repo-list snapshots"
  47258. msgstr ""
  47259. #. type: deftypevr
  47260. #: guix-git/doc/guix.texi:31829
  47261. msgid "A mask of snapshot formats for this repo that cgit generates links for, restricted by the global @code{snapshots} setting."
  47262. msgstr ""
  47263. #. type: deftypevr
  47264. #: guix-git/doc/guix.texi:31834
  47265. #, no-wrap
  47266. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object source-filter"
  47267. msgstr ""
  47268. #. type: deftypevr
  47269. #: guix-git/doc/guix.texi:31836
  47270. msgid "Override the default @code{source-filter}."
  47271. msgstr ""
  47272. #. type: deftypevr
  47273. #: guix-git/doc/guix.texi:31841
  47274. #, no-wrap
  47275. msgid "{@code{repository-cgit-configuration} parameter} repo-string url"
  47276. msgstr ""
  47277. #. type: deftypevr
  47278. #: guix-git/doc/guix.texi:31843
  47279. msgid "The relative URL used to access the repository."
  47280. msgstr ""
  47281. #. type: deftypevr
  47282. #: guix-git/doc/guix.texi:31848
  47283. #, no-wrap
  47284. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object about-filter"
  47285. msgstr ""
  47286. #. type: deftypevr
  47287. #: guix-git/doc/guix.texi:31850
  47288. msgid "Override the default @code{about-filter}."
  47289. msgstr ""
  47290. #. type: deftypevr
  47291. #: guix-git/doc/guix.texi:31855
  47292. #, no-wrap
  47293. msgid "{@code{repository-cgit-configuration} parameter} repo-string branch-sort"
  47294. msgstr ""
  47295. #. type: deftypevr
  47296. #: guix-git/doc/guix.texi:31858
  47297. 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."
  47298. msgstr ""
  47299. #. type: deftypevr
  47300. #: guix-git/doc/guix.texi:31863
  47301. #, no-wrap
  47302. msgid "{@code{repository-cgit-configuration} parameter} repo-list clone-url"
  47303. msgstr ""
  47304. #. type: deftypevr
  47305. #: guix-git/doc/guix.texi:31865
  47306. msgid "A list of URLs which can be used to clone repo."
  47307. msgstr ""
  47308. #. type: deftypevr
  47309. #: guix-git/doc/guix.texi:31870
  47310. #, no-wrap
  47311. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object commit-filter"
  47312. msgstr ""
  47313. #. type: deftypevr
  47314. #: guix-git/doc/guix.texi:31872
  47315. msgid "Override the default @code{commit-filter}."
  47316. msgstr ""
  47317. #. type: deftypevr
  47318. #: guix-git/doc/guix.texi:31877
  47319. #, no-wrap
  47320. msgid "{@code{repository-cgit-configuration} parameter} repo-string commit-sort"
  47321. msgstr ""
  47322. #. type: deftypevr
  47323. #: guix-git/doc/guix.texi:31886
  47324. #, no-wrap
  47325. msgid "{@code{repository-cgit-configuration} parameter} repo-string defbranch"
  47326. msgstr ""
  47327. #. type: deftypevr
  47328. #: guix-git/doc/guix.texi:31891
  47329. 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."
  47330. msgstr ""
  47331. #. type: deftypevr
  47332. #: guix-git/doc/guix.texi:31896
  47333. #, no-wrap
  47334. msgid "{@code{repository-cgit-configuration} parameter} repo-string desc"
  47335. msgstr ""
  47336. #. type: deftypevr
  47337. #: guix-git/doc/guix.texi:31898
  47338. msgid "The value to show as repository description."
  47339. msgstr ""
  47340. #. type: deftypevr
  47341. #: guix-git/doc/guix.texi:31903
  47342. #, no-wrap
  47343. msgid "{@code{repository-cgit-configuration} parameter} repo-string homepage"
  47344. msgstr ""
  47345. #. type: deftypevr
  47346. #: guix-git/doc/guix.texi:31905
  47347. msgid "The value to show as repository homepage."
  47348. msgstr ""
  47349. #. type: deftypevr
  47350. #: guix-git/doc/guix.texi:31910
  47351. #, no-wrap
  47352. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object email-filter"
  47353. msgstr ""
  47354. #. type: deftypevr
  47355. #: guix-git/doc/guix.texi:31912
  47356. msgid "Override the default @code{email-filter}."
  47357. msgstr ""
  47358. #. type: deftypevr
  47359. #: guix-git/doc/guix.texi:31917
  47360. #, no-wrap
  47361. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-commit-graph?"
  47362. msgstr ""
  47363. #. type: deftypevr
  47364. #: guix-git/doc/guix.texi:31920
  47365. msgid "A flag which can be used to disable the global setting @code{enable-commit-graph?}."
  47366. msgstr ""
  47367. #. type: deftypevr
  47368. #: guix-git/doc/guix.texi:31925
  47369. #, no-wrap
  47370. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-filecount?"
  47371. msgstr ""
  47372. #. type: deftypevr
  47373. #: guix-git/doc/guix.texi:31928
  47374. msgid "A flag which can be used to disable the global setting @code{enable-log-filecount?}."
  47375. msgstr ""
  47376. #. type: deftypevr
  47377. #: guix-git/doc/guix.texi:31933
  47378. #, no-wrap
  47379. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-linecount?"
  47380. msgstr ""
  47381. #. type: deftypevr
  47382. #: guix-git/doc/guix.texi:31936
  47383. msgid "A flag which can be used to disable the global setting @code{enable-log-linecount?}."
  47384. msgstr ""
  47385. #. type: deftypevr
  47386. #: guix-git/doc/guix.texi:31941
  47387. #, no-wrap
  47388. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-remote-branches?"
  47389. msgstr ""
  47390. #. type: deftypevr
  47391. #: guix-git/doc/guix.texi:31949
  47392. #, no-wrap
  47393. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-subject-links?"
  47394. msgstr ""
  47395. #. type: deftypevr
  47396. #: guix-git/doc/guix.texi:31952
  47397. msgid "A flag which can be used to override the global setting @code{enable-subject-links?}."
  47398. msgstr ""
  47399. #. type: deftypevr
  47400. #: guix-git/doc/guix.texi:31957
  47401. #, no-wrap
  47402. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-html-serving?"
  47403. msgstr ""
  47404. #. type: deftypevr
  47405. #: guix-git/doc/guix.texi:31960
  47406. msgid "A flag which can be used to override the global setting @code{enable-html-serving?}."
  47407. msgstr ""
  47408. #. type: deftypevr
  47409. #: guix-git/doc/guix.texi:31965
  47410. #, no-wrap
  47411. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean hide?"
  47412. msgstr ""
  47413. #. type: deftypevr
  47414. #: guix-git/doc/guix.texi:31968
  47415. msgid "Flag which, when set to @code{#t}, hides the repository from the repository index."
  47416. msgstr ""
  47417. #. type: deftypevr
  47418. #: guix-git/doc/guix.texi:31973
  47419. #, no-wrap
  47420. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean ignore?"
  47421. msgstr ""
  47422. #. type: deftypevr
  47423. #: guix-git/doc/guix.texi:31975
  47424. msgid "Flag which, when set to @samp{#t}, ignores the repository."
  47425. msgstr ""
  47426. #. type: deftypevr
  47427. #: guix-git/doc/guix.texi:31980
  47428. #, no-wrap
  47429. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object logo"
  47430. msgstr ""
  47431. #. type: deftypevr
  47432. #: guix-git/doc/guix.texi:31983
  47433. msgid "URL which specifies the source of an image which will be used as a logo on this repo’s pages."
  47434. msgstr ""
  47435. #. type: deftypevr
  47436. #: guix-git/doc/guix.texi:31988
  47437. #, no-wrap
  47438. msgid "{@code{repository-cgit-configuration} parameter} repo-string logo-link"
  47439. msgstr ""
  47440. #. type: deftypevr
  47441. #: guix-git/doc/guix.texi:31995
  47442. #, no-wrap
  47443. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object owner-filter"
  47444. msgstr ""
  47445. #. type: deftypevr
  47446. #: guix-git/doc/guix.texi:31997
  47447. msgid "Override the default @code{owner-filter}."
  47448. msgstr ""
  47449. #. type: deftypevr
  47450. #: guix-git/doc/guix.texi:32002
  47451. #, no-wrap
  47452. msgid "{@code{repository-cgit-configuration} parameter} repo-string module-link"
  47453. msgstr ""
  47454. #. type: deftypevr
  47455. #: guix-git/doc/guix.texi:32006
  47456. 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."
  47457. msgstr ""
  47458. #. type: deftypevr
  47459. #: guix-git/doc/guix.texi:32011
  47460. #, no-wrap
  47461. msgid "{@code{repository-cgit-configuration} parameter} module-link-path module-link-path"
  47462. msgstr ""
  47463. #. type: deftypevr
  47464. #: guix-git/doc/guix.texi:32015
  47465. 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."
  47466. msgstr ""
  47467. #. type: deftypevr
  47468. #: guix-git/doc/guix.texi:32020
  47469. #, no-wrap
  47470. msgid "{@code{repository-cgit-configuration} parameter} repo-string max-stats"
  47471. msgstr ""
  47472. #. type: deftypevr
  47473. #: guix-git/doc/guix.texi:32022
  47474. msgid "Override the default maximum statistics period."
  47475. msgstr ""
  47476. #. type: deftypevr
  47477. #: guix-git/doc/guix.texi:32027
  47478. #, no-wrap
  47479. msgid "{@code{repository-cgit-configuration} parameter} repo-string name"
  47480. msgstr ""
  47481. #. type: deftypevr
  47482. #: guix-git/doc/guix.texi:32029
  47483. msgid "The value to show as repository name."
  47484. msgstr ""
  47485. #. type: deftypevr
  47486. #: guix-git/doc/guix.texi:32034
  47487. #, no-wrap
  47488. msgid "{@code{repository-cgit-configuration} parameter} repo-string owner"
  47489. msgstr ""
  47490. #. type: deftypevr
  47491. #: guix-git/doc/guix.texi:32036
  47492. msgid "A value used to identify the owner of the repository."
  47493. msgstr ""
  47494. #. type: deftypevr
  47495. #: guix-git/doc/guix.texi:32041
  47496. #, no-wrap
  47497. msgid "{@code{repository-cgit-configuration} parameter} repo-string path"
  47498. msgstr ""
  47499. #. type: deftypevr
  47500. #: guix-git/doc/guix.texi:32043
  47501. msgid "An absolute path to the repository directory."
  47502. msgstr ""
  47503. #. type: deftypevr
  47504. #: guix-git/doc/guix.texi:32048
  47505. #, no-wrap
  47506. msgid "{@code{repository-cgit-configuration} parameter} repo-string readme"
  47507. msgstr ""
  47508. #. type: deftypevr
  47509. #: guix-git/doc/guix.texi:32051
  47510. msgid "A path (relative to repo) which specifies a file to include verbatim as the ``About'' page for this repo."
  47511. msgstr ""
  47512. #. type: deftypevr
  47513. #: guix-git/doc/guix.texi:32056
  47514. #, no-wrap
  47515. msgid "{@code{repository-cgit-configuration} parameter} repo-string section"
  47516. msgstr ""
  47517. #. type: deftypevr
  47518. #: guix-git/doc/guix.texi:32064
  47519. #, no-wrap
  47520. msgid "{@code{repository-cgit-configuration} parameter} repo-list extra-options"
  47521. msgstr ""
  47522. #. type: deftypevr
  47523. #: guix-git/doc/guix.texi:32066 guix-git/doc/guix.texi:32075
  47524. msgid "Extra options will be appended to cgitrc file."
  47525. msgstr ""
  47526. #. type: deftypevr
  47527. #: guix-git/doc/guix.texi:32073
  47528. #, no-wrap
  47529. msgid "{@code{cgit-configuration} parameter} list extra-options"
  47530. msgstr ""
  47531. #. type: Plain text
  47532. #: guix-git/doc/guix.texi:32087
  47533. 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."
  47534. msgstr ""
  47535. #. type: Plain text
  47536. #: guix-git/doc/guix.texi:32089
  47537. msgid "Available @code{opaque-cgit-configuration} fields are:"
  47538. msgstr ""
  47539. #. type: deftypevr
  47540. #: guix-git/doc/guix.texi:32090
  47541. #, no-wrap
  47542. msgid "{@code{opaque-cgit-configuration} parameter} package cgit"
  47543. msgstr ""
  47544. #. type: deftypevr
  47545. #: guix-git/doc/guix.texi:32092
  47546. msgid "The cgit package."
  47547. msgstr ""
  47548. #. type: deftypevr
  47549. #: guix-git/doc/guix.texi:32094
  47550. #, no-wrap
  47551. msgid "{@code{opaque-cgit-configuration} parameter} string string"
  47552. msgstr ""
  47553. #. type: deftypevr
  47554. #: guix-git/doc/guix.texi:32096
  47555. msgid "The contents of the @code{cgitrc}, as a string."
  47556. msgstr ""
  47557. #. type: Plain text
  47558. #: guix-git/doc/guix.texi:32100
  47559. msgid "For example, if your @code{cgitrc} is just the empty string, you could instantiate a cgit service like this:"
  47560. msgstr ""
  47561. #. type: lisp
  47562. #: guix-git/doc/guix.texi:32105
  47563. #, no-wrap
  47564. msgid ""
  47565. "(service cgit-service-type\n"
  47566. " (opaque-cgit-configuration\n"
  47567. " (cgitrc \"\")))\n"
  47568. msgstr ""
  47569. #. type: subsubheading
  47570. #: guix-git/doc/guix.texi:32107
  47571. #, no-wrap
  47572. msgid "Gitolite Service"
  47573. msgstr ""
  47574. #. type: cindex
  47575. #: guix-git/doc/guix.texi:32109
  47576. #, no-wrap
  47577. msgid "Gitolite service"
  47578. msgstr ""
  47579. #. type: cindex
  47580. #: guix-git/doc/guix.texi:32110
  47581. #, no-wrap
  47582. msgid "Git, hosting"
  47583. msgstr ""
  47584. #. type: Plain text
  47585. #: guix-git/doc/guix.texi:32113
  47586. msgid "@uref{https://gitolite.com/gitolite/, Gitolite} is a tool for hosting Git repositories on a central server."
  47587. msgstr ""
  47588. #. type: Plain text
  47589. #: guix-git/doc/guix.texi:32116
  47590. msgid "Gitolite can handle multiple repositories and users, and supports flexible configuration of the permissions for the users on the repositories."
  47591. msgstr ""
  47592. #. type: Plain text
  47593. #: guix-git/doc/guix.texi:32119
  47594. msgid "The following example will configure Gitolite using the default @code{git} user, and the provided SSH public key."
  47595. msgstr ""
  47596. #. type: lisp
  47597. #: guix-git/doc/guix.texi:32126
  47598. #, no-wrap
  47599. msgid ""
  47600. "(service gitolite-service-type\n"
  47601. " (gitolite-configuration\n"
  47602. " (admin-pubkey (plain-file\n"
  47603. " \"yourname.pub\"\n"
  47604. " \"ssh-rsa AAAA... guix@@example.com\"))))\n"
  47605. msgstr ""
  47606. #. type: Plain text
  47607. #: guix-git/doc/guix.texi:32131
  47608. 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."
  47609. msgstr ""
  47610. #. type: example
  47611. #: guix-git/doc/guix.texi:32134
  47612. #, no-wrap
  47613. msgid "git clone git@@example.com:gitolite-admin\n"
  47614. msgstr ""
  47615. #. type: Plain text
  47616. #: guix-git/doc/guix.texi:32140
  47617. 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''."
  47618. msgstr ""
  47619. #. type: deftp
  47620. #: guix-git/doc/guix.texi:32141
  47621. #, no-wrap
  47622. msgid "{Data Type} gitolite-configuration"
  47623. msgstr ""
  47624. #. type: deftp
  47625. #: guix-git/doc/guix.texi:32143
  47626. msgid "Data type representing the configuration for @code{gitolite-service-type}."
  47627. msgstr ""
  47628. #. type: item
  47629. #: guix-git/doc/guix.texi:32145
  47630. #, no-wrap
  47631. msgid "@code{package} (default: @var{gitolite})"
  47632. msgstr ""
  47633. #. type: table
  47634. #: guix-git/doc/guix.texi:32147
  47635. msgid "Gitolite package to use."
  47636. msgstr ""
  47637. #. type: item
  47638. #: guix-git/doc/guix.texi:32148
  47639. #, no-wrap
  47640. msgid "@code{user} (default: @var{git})"
  47641. msgstr ""
  47642. #. type: table
  47643. #: guix-git/doc/guix.texi:32151
  47644. msgid "User to use for Gitolite. This will be user that you use when accessing Gitolite over SSH."
  47645. msgstr ""
  47646. #. type: item
  47647. #: guix-git/doc/guix.texi:32152
  47648. #, no-wrap
  47649. msgid "@code{group} (default: @var{git})"
  47650. msgstr ""
  47651. #. type: table
  47652. #: guix-git/doc/guix.texi:32154
  47653. msgid "Group to use for Gitolite."
  47654. msgstr ""
  47655. #. type: item
  47656. #: guix-git/doc/guix.texi:32155
  47657. #, no-wrap
  47658. msgid "@code{home-directory} (default: @var{\"/var/lib/gitolite\"})"
  47659. msgstr ""
  47660. #. type: table
  47661. #: guix-git/doc/guix.texi:32157
  47662. msgid "Directory in which to store the Gitolite configuration and repositories."
  47663. msgstr ""
  47664. #. type: item
  47665. #: guix-git/doc/guix.texi:32158
  47666. #, no-wrap
  47667. msgid "@code{rc-file} (default: @var{(gitolite-rc-file)})"
  47668. msgstr ""
  47669. #. type: table
  47670. #: guix-git/doc/guix.texi:32161
  47671. msgid "A ``file-like'' object (@pxref{G-Expressions, file-like objects}), representing the configuration for Gitolite."
  47672. msgstr ""
  47673. #. type: item
  47674. #: guix-git/doc/guix.texi:32162
  47675. #, no-wrap
  47676. msgid "@code{admin-pubkey} (default: @var{#f})"
  47677. msgstr ""
  47678. #. type: table
  47679. #: guix-git/doc/guix.texi:32166
  47680. 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."
  47681. msgstr ""
  47682. #. type: table
  47683. #: guix-git/doc/guix.texi:32168
  47684. msgid "To specify the SSH key as a string, use the @code{plain-file} function."
  47685. msgstr ""
  47686. #. type: lisp
  47687. #: guix-git/doc/guix.texi:32171
  47688. #, no-wrap
  47689. msgid "(plain-file \"yourname.pub\" \"ssh-rsa AAAA... guix@@example.com\")\n"
  47690. msgstr ""
  47691. #. type: deftp
  47692. #: guix-git/doc/guix.texi:32176
  47693. #, no-wrap
  47694. msgid "{Data Type} gitolite-rc-file"
  47695. msgstr ""
  47696. #. type: deftp
  47697. #: guix-git/doc/guix.texi:32178
  47698. msgid "Data type representing the Gitolite RC file."
  47699. msgstr ""
  47700. #. type: item
  47701. #: guix-git/doc/guix.texi:32180
  47702. #, no-wrap
  47703. msgid "@code{umask} (default: @code{#o0077})"
  47704. msgstr ""
  47705. #. type: table
  47706. #: guix-git/doc/guix.texi:32183
  47707. msgid "This controls the permissions Gitolite sets on the repositories and their contents."
  47708. msgstr ""
  47709. #. type: table
  47710. #: guix-git/doc/guix.texi:32187
  47711. 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."
  47712. msgstr ""
  47713. #. type: item
  47714. #: guix-git/doc/guix.texi:32188
  47715. #, fuzzy, no-wrap
  47716. msgid "@code{unsafe-pattern} (default: @code{#f})"
  47717. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  47718. #. type: table
  47719. #: guix-git/doc/guix.texi:32193
  47720. 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."
  47721. msgstr ""
  47722. #. type: table
  47723. #: guix-git/doc/guix.texi:32200
  47724. 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."
  47725. msgstr ""
  47726. #. type: item
  47727. #: guix-git/doc/guix.texi:32201
  47728. #, no-wrap
  47729. msgid "@code{git-config-keys} (default: @code{\"\"})"
  47730. msgstr ""
  47731. #. type: table
  47732. #: guix-git/doc/guix.texi:32204
  47733. msgid "Gitolite allows you to set git config values using the @samp{config} keyword. This setting allows control over the config keys to accept."
  47734. msgstr ""
  47735. #. type: item
  47736. #: guix-git/doc/guix.texi:32205
  47737. #, no-wrap
  47738. msgid "@code{roles} (default: @code{'((\"READERS\" . 1) (\"WRITERS\" . ))})"
  47739. msgstr ""
  47740. #. type: table
  47741. #: guix-git/doc/guix.texi:32207
  47742. msgid "Set the role names allowed to be used by users running the perms command."
  47743. msgstr ""
  47744. #. type: item
  47745. #: guix-git/doc/guix.texi:32208
  47746. #, no-wrap
  47747. msgid "@code{enable} (default: @code{'(\"help\" \"desc\" \"info\" \"perms\" \"writable\" \"ssh-authkeys\" \"git-config\" \"daemon\" \"gitweb\")})"
  47748. msgstr ""
  47749. #. type: table
  47750. #: guix-git/doc/guix.texi:32210
  47751. msgid "This setting controls the commands and features to enable within Gitolite."
  47752. msgstr ""
  47753. #. type: subsubheading
  47754. #: guix-git/doc/guix.texi:32215
  47755. #, fuzzy, no-wrap
  47756. msgid "Gitile Service"
  47757. msgstr "邮件服务"
  47758. #. type: cindex
  47759. #: guix-git/doc/guix.texi:32217
  47760. #, fuzzy, no-wrap
  47761. msgid "Gitile service"
  47762. msgstr "邮件服务"
  47763. #. type: cindex
  47764. #: guix-git/doc/guix.texi:32218
  47765. #, no-wrap
  47766. msgid "Git, forge"
  47767. msgstr ""
  47768. #. type: Plain text
  47769. #: guix-git/doc/guix.texi:32221
  47770. msgid "@uref{https://git.lepiller.eu/gitile, Gitile} is a Git forge for viewing public git repository contents from a web browser."
  47771. msgstr ""
  47772. #. type: Plain text
  47773. #: guix-git/doc/guix.texi:32227
  47774. 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})."
  47775. msgstr ""
  47776. #. type: Plain text
  47777. #: guix-git/doc/guix.texi:32231
  47778. 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."
  47779. msgstr ""
  47780. #. type: lisp
  47781. #: guix-git/doc/guix.texi:32254
  47782. #, no-wrap
  47783. msgid ""
  47784. "(service gitile-service-type\n"
  47785. " (gitile-configuration\n"
  47786. " (repositories \"/srv/git\")\n"
  47787. " (base-git-url \"https://myweb.site/git\")\n"
  47788. " (index-title \"My git repositories\")\n"
  47789. " (intro '((p \"This is all my public work!\")))\n"
  47790. " (footer '((p \"This is the end\")))\n"
  47791. " (nginx-server-block\n"
  47792. " (nginx-server-configuration\n"
  47793. " (ssl-certificate\n"
  47794. " \"/etc/letsencrypt/live/myweb.site/fullchain.pem\")\n"
  47795. " (ssl-certificate-key\n"
  47796. " \"/etc/letsencrypt/live/myweb.site/privkey.pem\")\n"
  47797. " (listen '(\"443 ssl http2\" \"[::]:443 ssl http2\"))\n"
  47798. " (locations\n"
  47799. " (list\n"
  47800. " ;; Allow for https anonymous fetch on /git/ urls.\n"
  47801. " (git-http-nginx-location-configuration\n"
  47802. " (git-http-configuration\n"
  47803. " (uri-path \"/git/\")\n"
  47804. " (git-root \"/var/lib/gitolite/repositories\")))))))))\n"
  47805. msgstr ""
  47806. #. type: Plain text
  47807. #: guix-git/doc/guix.texi:32263
  47808. 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:"
  47809. msgstr ""
  47810. #. type: example
  47811. #: guix-git/doc/guix.texi:32267
  47812. #, no-wrap
  47813. msgid ""
  47814. "repo foo\n"
  47815. " R = daemon\n"
  47816. msgstr ""
  47817. #. type: Plain text
  47818. #: guix-git/doc/guix.texi:32273
  47819. 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}:"
  47820. msgstr ""
  47821. #. type: example
  47822. #: guix-git/doc/guix.texi:32280
  47823. #, no-wrap
  47824. msgid ""
  47825. "repo foo\n"
  47826. " R = daemon\n"
  47827. " desc = A long description, optionally with <i>HTML</i>, shown on the index page\n"
  47828. " config gitweb.name = The Foo Project\n"
  47829. " config gitweb.synopsis = A short description, shown on the main page of the project\n"
  47830. msgstr ""
  47831. #. type: Plain text
  47832. #: guix-git/doc/guix.texi:32286
  47833. 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:"
  47834. msgstr ""
  47835. #. type: lisp
  47836. #: guix-git/doc/guix.texi:32298
  47837. #, no-wrap
  47838. msgid ""
  47839. "(service gitolite-service-type\n"
  47840. " (gitolite-configuration\n"
  47841. " (admin-pubkey (local-file \"key.pub\"))\n"
  47842. " (rc-file\n"
  47843. " (gitolite-rc-file\n"
  47844. " (umask #o0027)\n"
  47845. " ;; Allow to set any configuration key\n"
  47846. " (git-config-keys \".*\")\n"
  47847. " ;; Allow any text as a valid configuration value\n"
  47848. " (unsafe-patt \"^$\")))))\n"
  47849. msgstr ""
  47850. #. type: deftp
  47851. #: guix-git/doc/guix.texi:32300
  47852. #, fuzzy, no-wrap
  47853. msgid "{Data Type} gitile-configuration"
  47854. msgstr "管理操作系统配置。"
  47855. #. type: deftp
  47856. #: guix-git/doc/guix.texi:32302
  47857. #, fuzzy
  47858. msgid "Data type representing the configuration for @code{gitile-service-type}."
  47859. msgstr "管理操作系统配置。"
  47860. #. type: item
  47861. #: guix-git/doc/guix.texi:32304
  47862. #, fuzzy, no-wrap
  47863. msgid "@code{package} (default: @var{gitile})"
  47864. msgstr "@code{mate}(默认值:@code{mate})"
  47865. #. type: table
  47866. #: guix-git/doc/guix.texi:32306
  47867. #, fuzzy
  47868. msgid "Gitile package to use."
  47869. msgstr "软件包数据类型。"
  47870. #. type: table
  47871. #: guix-git/doc/guix.texi:32309
  47872. msgid "The host on which gitile is listening."
  47873. msgstr ""
  47874. #. type: item
  47875. #: guix-git/doc/guix.texi:32310
  47876. #, fuzzy, no-wrap
  47877. msgid "@code{port} (default: @code{8080})"
  47878. msgstr "@code{port}(默认值:@code{22})"
  47879. #. type: table
  47880. #: guix-git/doc/guix.texi:32312
  47881. msgid "The port on which gitile is listening."
  47882. msgstr ""
  47883. #. type: item
  47884. #: guix-git/doc/guix.texi:32313
  47885. #, fuzzy, no-wrap
  47886. msgid "@code{database} (default: @code{\"/var/lib/gitile/gitile-db.sql\"})"
  47887. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  47888. #. type: table
  47889. #: guix-git/doc/guix.texi:32315
  47890. #, fuzzy
  47891. msgid "The location of the database."
  47892. msgstr "远程机器的主机名。"
  47893. #. type: item
  47894. #: guix-git/doc/guix.texi:32316
  47895. #, fuzzy, no-wrap
  47896. msgid "@code{repositories} (default: @code{\"/var/lib/gitolite/repositories\"})"
  47897. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  47898. #. type: table
  47899. #: guix-git/doc/guix.texi:32320
  47900. 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."
  47901. msgstr ""
  47902. #. type: code{#1}
  47903. #: guix-git/doc/guix.texi:32321
  47904. #, no-wrap
  47905. msgid "base-git-url"
  47906. msgstr ""
  47907. #. type: table
  47908. #: guix-git/doc/guix.texi:32323
  47909. msgid "The base git url that will be used to show clone commands."
  47910. msgstr ""
  47911. #. type: item
  47912. #: guix-git/doc/guix.texi:32324
  47913. #, fuzzy, no-wrap
  47914. msgid "@code{index-title} (default: @code{\"Index\"})"
  47915. msgstr "@code{mate}(默认值:@code{mate})"
  47916. #. type: table
  47917. #: guix-git/doc/guix.texi:32326
  47918. msgid "The page title for the index page that lists all the available repositories."
  47919. msgstr ""
  47920. #. type: item
  47921. #: guix-git/doc/guix.texi:32327
  47922. #, fuzzy, no-wrap
  47923. msgid "@code{intro} (default: @code{'()})"
  47924. msgstr "@code{features} (@code{'()})"
  47925. #. type: table
  47926. #: guix-git/doc/guix.texi:32330
  47927. msgid "The intro content, as a list of sxml expressions. This is shown above the list of repositories, on the index page."
  47928. msgstr ""
  47929. #. type: item
  47930. #: guix-git/doc/guix.texi:32331
  47931. #, fuzzy, no-wrap
  47932. msgid "@code{footer} (default: @code{'()})"
  47933. msgstr "@code{features} (@code{'()})"
  47934. #. type: table
  47935. #: guix-git/doc/guix.texi:32334
  47936. msgid "The footer content, as a list of sxml expressions. This is shown on every page served by Gitile."
  47937. msgstr ""
  47938. #. type: code{#1}
  47939. #: guix-git/doc/guix.texi:32335
  47940. #, no-wrap
  47941. msgid "nginx-server-block"
  47942. msgstr ""
  47943. #. type: table
  47944. #: guix-git/doc/guix.texi:32338
  47945. 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."
  47946. msgstr ""
  47947. #. type: table
  47948. #: guix-git/doc/guix.texi:32342
  47949. 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."
  47950. msgstr ""
  47951. #. type: subsubheading
  47952. #: guix-git/doc/guix.texi:32349
  47953. #, no-wrap
  47954. msgid "The Battle for Wesnoth Service"
  47955. msgstr ""
  47956. #. type: cindex
  47957. #: guix-git/doc/guix.texi:32350
  47958. #, no-wrap
  47959. msgid "wesnothd"
  47960. msgstr ""
  47961. #. type: Plain text
  47962. #: guix-git/doc/guix.texi:32354
  47963. 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)."
  47964. msgstr ""
  47965. #. type: defvar
  47966. #: guix-git/doc/guix.texi:32355
  47967. #, no-wrap
  47968. msgid "{Scheme Variable} wesnothd-service-type"
  47969. msgstr ""
  47970. #. type: defvar
  47971. #: guix-git/doc/guix.texi:32359
  47972. 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:"
  47973. msgstr ""
  47974. #. type: lisp
  47975. #: guix-git/doc/guix.texi:32362
  47976. #, no-wrap
  47977. msgid "(service wesnothd-service-type)\n"
  47978. msgstr ""
  47979. #. type: deftp
  47980. #: guix-git/doc/guix.texi:32365
  47981. #, no-wrap
  47982. msgid "{Data Type} wesnothd-configuration"
  47983. msgstr ""
  47984. #. type: deftp
  47985. #: guix-git/doc/guix.texi:32367
  47986. msgid "Data type representing the configuration of @command{wesnothd}."
  47987. msgstr ""
  47988. #. type: item
  47989. #: guix-git/doc/guix.texi:32369
  47990. #, no-wrap
  47991. msgid "@code{package} (default: @code{wesnoth-server})"
  47992. msgstr ""
  47993. #. type: table
  47994. #: guix-git/doc/guix.texi:32371
  47995. msgid "The wesnoth server package to use."
  47996. msgstr ""
  47997. #. type: item
  47998. #: guix-git/doc/guix.texi:32372
  47999. #, no-wrap
  48000. msgid "@code{port} (default: @code{15000})"
  48001. msgstr ""
  48002. #. type: table
  48003. #: guix-git/doc/guix.texi:32374
  48004. msgid "The port to bind the server to."
  48005. msgstr ""
  48006. #. type: cindex
  48007. #: guix-git/doc/guix.texi:32380
  48008. #, no-wrap
  48009. msgid "pam-mount"
  48010. msgstr ""
  48011. #. type: Plain text
  48012. #: guix-git/doc/guix.texi:32385
  48013. 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."
  48014. msgstr ""
  48015. #. type: defvar
  48016. #: guix-git/doc/guix.texi:32386
  48017. #, no-wrap
  48018. msgid "{Scheme Variable} pam-mount-service-type"
  48019. msgstr ""
  48020. #. type: defvar
  48021. #: guix-git/doc/guix.texi:32388
  48022. msgid "Service type for PAM Mount support."
  48023. msgstr ""
  48024. #. type: deftp
  48025. #: guix-git/doc/guix.texi:32390
  48026. #, no-wrap
  48027. msgid "{Data Type} pam-mount-configuration"
  48028. msgstr ""
  48029. #. type: deftp
  48030. #: guix-git/doc/guix.texi:32392
  48031. #, fuzzy
  48032. msgid "Data type representing the configuration of PAM Mount."
  48033. msgstr "管理操作系统配置。"
  48034. #. type: code{#1}
  48035. #: guix-git/doc/guix.texi:32396
  48036. #, fuzzy, no-wrap
  48037. msgid "rules"
  48038. msgstr "模块"
  48039. #. type: table
  48040. #: guix-git/doc/guix.texi:32399
  48041. msgid "The configuration rules that will be used to generate @file{/etc/security/pam_mount.conf.xml}."
  48042. msgstr ""
  48043. #. type: table
  48044. #: guix-git/doc/guix.texi:32403
  48045. 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:"
  48046. msgstr ""
  48047. #. type: lisp
  48048. #: guix-git/doc/guix.texi:32418
  48049. #, no-wrap
  48050. msgid ""
  48051. "`((debug (@@ (enable \"0\")))\n"
  48052. " (mntoptions (@@ (allow ,(string-join\n"
  48053. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  48054. " \"encryption\" \"fsck\" \"nonempty\"\n"
  48055. " \"allow_root\" \"allow_other\")\n"
  48056. " \",\"))))\n"
  48057. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  48058. " (logout (@@ (wait \"0\")\n"
  48059. " (hup \"0\")\n"
  48060. " (term \"no\")\n"
  48061. " (kill \"no\")))\n"
  48062. " (mkmountpoint (@@ (enable \"1\")\n"
  48063. " (remove \"true\"))))\n"
  48064. msgstr ""
  48065. #. type: table
  48066. #: guix-git/doc/guix.texi:32424
  48067. 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:"
  48068. msgstr ""
  48069. #. type: lisp
  48070. #: guix-git/doc/guix.texi:32449
  48071. #, no-wrap
  48072. msgid ""
  48073. "(define pam-mount-rules\n"
  48074. "`((debug (@@ (enable \"0\")))\n"
  48075. " (volume (@@ (user \"alice\")\n"
  48076. " (fstype \"crypt\")\n"
  48077. " (path \"/dev/sda2\")\n"
  48078. " (mountpoint \"/home/alice\")))\n"
  48079. " (volume (@@ (user \"bob\")\n"
  48080. " (fstype \"auto\")\n"
  48081. " (path \"/dev/sdb3\")\n"
  48082. " (mountpoint \"/home/bob/data\")\n"
  48083. " (options \"defaults,autodefrag,compress\")))\n"
  48084. " (mntoptions (@@ (allow ,(string-join\n"
  48085. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  48086. " \"encryption\" \"fsck\" \"nonempty\"\n"
  48087. " \"allow_root\" \"allow_other\")\n"
  48088. " \",\"))))\n"
  48089. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  48090. " (logout (@@ (wait \"0\")\n"
  48091. " (hup \"0\")\n"
  48092. " (term \"no\")\n"
  48093. " (kill \"no\")))\n"
  48094. " (mkmountpoint (@@ (enable \"1\")\n"
  48095. " (remove \"true\")))))\n"
  48096. "\n"
  48097. msgstr ""
  48098. #. type: lisp
  48099. #: guix-git/doc/guix.texi:32453
  48100. #, no-wrap
  48101. msgid ""
  48102. "(service pam-mount-service-type\n"
  48103. " (pam-mount-configuration\n"
  48104. " (rules pam-mount-rules)))\n"
  48105. msgstr ""
  48106. #. type: table
  48107. #: guix-git/doc/guix.texi:32457
  48108. 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}."
  48109. msgstr ""
  48110. #. type: subsubheading
  48111. #: guix-git/doc/guix.texi:32464
  48112. #, no-wrap
  48113. msgid "Guix Build Coordinator"
  48114. msgstr ""
  48115. #. type: Plain text
  48116. #: guix-git/doc/guix.texi:32470
  48117. 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."
  48118. msgstr ""
  48119. #. type: Plain text
  48120. #: guix-git/doc/guix.texi:32476
  48121. 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."
  48122. msgstr ""
  48123. #. type: Plain text
  48124. #: guix-git/doc/guix.texi:32480
  48125. 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."
  48126. msgstr ""
  48127. #. type: defvar
  48128. #: guix-git/doc/guix.texi:32481
  48129. #, no-wrap
  48130. msgid "{Scheme Variable} guix-build-coordinator-service-type"
  48131. msgstr ""
  48132. #. type: defvar
  48133. #: guix-git/doc/guix.texi:32484
  48134. msgid "Service type for the Guix Build Coordinator. Its value must be a @code{guix-build-coordinator-configuration} object."
  48135. msgstr ""
  48136. #. type: deftp
  48137. #: guix-git/doc/guix.texi:32486
  48138. #, fuzzy, no-wrap
  48139. msgid "{Data Type} guix-build-coordinator-configuration"
  48140. msgstr "{数据类型} build-machine"
  48141. #. type: deftp
  48142. #: guix-git/doc/guix.texi:32488
  48143. msgid "Data type representing the configuration of the Guix Build Coordinator."
  48144. msgstr ""
  48145. #. type: item
  48146. #: guix-git/doc/guix.texi:32490 guix-git/doc/guix.texi:32534
  48147. #: guix-git/doc/guix.texi:32660
  48148. #, fuzzy, no-wrap
  48149. msgid "@code{package} (default: @code{guix-build-coordinator})"
  48150. msgstr "@code{gnome}(默认值:@code{gnome})"
  48151. #. type: table
  48152. #: guix-git/doc/guix.texi:32492 guix-git/doc/guix.texi:32536
  48153. #: guix-git/doc/guix.texi:32662
  48154. msgid "The Guix Build Coordinator package to use."
  48155. msgstr ""
  48156. #. type: item
  48157. #: guix-git/doc/guix.texi:32493
  48158. #, fuzzy, no-wrap
  48159. msgid "@code{user} (default: @code{\"guix-build-coordinator\"})"
  48160. msgstr "@code{gnome}(默认值:@code{gnome})"
  48161. #. type: table
  48162. #: guix-git/doc/guix.texi:32495 guix-git/doc/guix.texi:32539
  48163. #: guix-git/doc/guix.texi:32665 guix-git/doc/guix.texi:32711
  48164. #, fuzzy
  48165. msgid "The system user to run the service as."
  48166. msgstr "mcron服务。"
  48167. #. type: item
  48168. #: guix-git/doc/guix.texi:32496
  48169. #, fuzzy, no-wrap
  48170. msgid "@code{group} (default: @code{\"guix-build-coordinator\"})"
  48171. msgstr "@code{gnome}(默认值:@code{gnome})"
  48172. #. type: table
  48173. #: guix-git/doc/guix.texi:32498 guix-git/doc/guix.texi:32714
  48174. msgid "The system group to run the service as."
  48175. msgstr ""
  48176. #. type: item
  48177. #: guix-git/doc/guix.texi:32499
  48178. #, no-wrap
  48179. msgid "@code{database-uri-string} (default: @code{\"sqlite:///var/lib/guix-build-coordinator/guix_build_coordinator.db\"})"
  48180. msgstr ""
  48181. #. type: table
  48182. #: guix-git/doc/guix.texi:32501
  48183. msgid "The URI to use for the database."
  48184. msgstr ""
  48185. #. type: item
  48186. #: guix-git/doc/guix.texi:32502
  48187. #, fuzzy, no-wrap
  48188. msgid "@code{agent-communication-uri} (default: @code{\"http://0.0.0.0:8745\"})"
  48189. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  48190. #. type: table
  48191. #: guix-git/doc/guix.texi:32504
  48192. msgid "The URI describing how to listen to requests from agent processes."
  48193. msgstr ""
  48194. #. type: item
  48195. #: guix-git/doc/guix.texi:32505
  48196. #, fuzzy, no-wrap
  48197. msgid "@code{client-communication-uri} (default: @code{\"http://127.0.0.1:8746\"})"
  48198. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  48199. #. type: table
  48200. #: guix-git/doc/guix.texi:32509
  48201. 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."
  48202. msgstr ""
  48203. #. type: item
  48204. #: guix-git/doc/guix.texi:32510
  48205. #, no-wrap
  48206. msgid "@code{allocation-strategy} (default: @code{#~basic-build-allocation-strategy})"
  48207. msgstr ""
  48208. #. type: table
  48209. #: guix-git/doc/guix.texi:32514
  48210. 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."
  48211. msgstr ""
  48212. #. type: item
  48213. #: guix-git/doc/guix.texi:32515
  48214. #, fuzzy, no-wrap
  48215. msgid "@code{hooks} (default: @var{'()})"
  48216. msgstr "@code{features} (@code{'()})"
  48217. #. type: table
  48218. #: guix-git/doc/guix.texi:32518
  48219. msgid "An association list of hooks. These provide a way to execute arbitrary code upon certain events, like a build result being processed."
  48220. msgstr ""
  48221. #. type: item
  48222. #: guix-git/doc/guix.texi:32519
  48223. #, fuzzy, no-wrap
  48224. msgid "@code{guile} (default: @code{guile-3.0-latest})"
  48225. msgstr "@code{mate}(默认值:@code{mate})"
  48226. #. type: table
  48227. #: guix-git/doc/guix.texi:32521
  48228. msgid "The Guile package with which to run the Guix Build Coordinator."
  48229. msgstr ""
  48230. #. type: defvar
  48231. #: guix-git/doc/guix.texi:32525
  48232. #, no-wrap
  48233. msgid "{Scheme Variable} guix-build-coordinator-agent-service-type"
  48234. msgstr ""
  48235. #. type: defvar
  48236. #: guix-git/doc/guix.texi:32528
  48237. msgid "Service type for a Guix Build Coordinator agent. Its value must be a @code{guix-build-coordinator-agent-configuration} object."
  48238. msgstr ""
  48239. #. type: deftp
  48240. #: guix-git/doc/guix.texi:32530
  48241. #, no-wrap
  48242. msgid "{Data Type} guix-build-coordinator-agent-configuration"
  48243. msgstr ""
  48244. #. type: deftp
  48245. #: guix-git/doc/guix.texi:32532
  48246. msgid "Data type representing the configuration a Guix Build Coordinator agent."
  48247. msgstr ""
  48248. #. type: item
  48249. #: guix-git/doc/guix.texi:32537
  48250. #, fuzzy, no-wrap
  48251. msgid "@code{user} (default: @code{\"guix-build-coordinator-agent\"})"
  48252. msgstr "@code{gnome}(默认值:@code{gnome})"
  48253. #. type: item
  48254. #: guix-git/doc/guix.texi:32540
  48255. #, fuzzy, no-wrap
  48256. msgid "@code{coordinator} (default: @code{\"http://localhost:8745\"})"
  48257. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  48258. #. type: table
  48259. #: guix-git/doc/guix.texi:32542 guix-git/doc/guix.texi:32668
  48260. msgid "The URI to use when connecting to the coordinator."
  48261. msgstr ""
  48262. #. type: code{#1}
  48263. #: guix-git/doc/guix.texi:32543
  48264. #, fuzzy, no-wrap
  48265. msgid "authentication"
  48266. msgstr "验证substitute"
  48267. #. type: table
  48268. #: guix-git/doc/guix.texi:32546
  48269. msgid "Record describing how this agent should authenticate with the coordinator. Possible record types are described below."
  48270. msgstr ""
  48271. #. type: item
  48272. #: guix-git/doc/guix.texi:32547 guix-git/doc/guix.texi:32669
  48273. #, fuzzy, no-wrap
  48274. msgid "@code{systems} (default: @code{#f})"
  48275. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  48276. #. type: table
  48277. #: guix-git/doc/guix.texi:32550
  48278. 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."
  48279. msgstr ""
  48280. #. type: item
  48281. #: guix-git/doc/guix.texi:32551
  48282. #, fuzzy, no-wrap
  48283. msgid "@code{max-parallel-builds} (default: @code{1})"
  48284. msgstr "@code{parallel-builds}(默认值:@code{1})"
  48285. #. type: table
  48286. #: guix-git/doc/guix.texi:32553
  48287. #, fuzzy
  48288. msgid "The number of builds to perform in parallel."
  48289. msgstr "那台机器上可以并行运行的构建任务数量。"
  48290. #. type: item
  48291. #: guix-git/doc/guix.texi:32554
  48292. #, fuzzy, no-wrap
  48293. #| msgid "@code{max-journal-usage} (default: @code{#f})"
  48294. msgid "@code{max-1min-load-average} (default: @code{#f})"
  48295. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  48296. #. type: table
  48297. #: guix-git/doc/guix.texi:32558
  48298. 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."
  48299. msgstr ""
  48300. #. type: table
  48301. #: guix-git/doc/guix.texi:32562
  48302. 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."
  48303. msgstr ""
  48304. #. type: item
  48305. #: guix-git/doc/guix.texi:32563
  48306. #, fuzzy, no-wrap
  48307. msgid "@code{derivation-substitute-urls} (default: @code{#f})"
  48308. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  48309. #. type: table
  48310. #: guix-git/doc/guix.texi:32566
  48311. msgid "URLs from which to attempt to fetch substitutes for derivations, if the derivations aren't already available."
  48312. msgstr ""
  48313. #. type: item
  48314. #: guix-git/doc/guix.texi:32567
  48315. #, fuzzy, no-wrap
  48316. msgid "@code{non-derivation-substitute-urls} (default: @code{#f})"
  48317. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48318. #. type: table
  48319. #: guix-git/doc/guix.texi:32570
  48320. msgid "URLs from which to attempt to fetch substitutes for build inputs, if the input store items aren't already available."
  48321. msgstr ""
  48322. #. type: deftp
  48323. #: guix-git/doc/guix.texi:32574
  48324. #, fuzzy, no-wrap
  48325. msgid "{Data Type} guix-build-coordinator-agent-password-auth"
  48326. msgstr "{数据类型} build-machine"
  48327. #. type: deftp
  48328. #: guix-git/doc/guix.texi:32577
  48329. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password."
  48330. msgstr ""
  48331. #. type: table
  48332. #: guix-git/doc/guix.texi:32583 guix-git/doc/guix.texi:32599
  48333. 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."
  48334. msgstr ""
  48335. #. type: table
  48336. #: guix-git/doc/guix.texi:32586
  48337. msgid "The password to use when connecting to the coordinator."
  48338. msgstr ""
  48339. #. type: deftp
  48340. #: guix-git/doc/guix.texi:32590
  48341. #, fuzzy, no-wrap
  48342. msgid "{Data Type} guix-build-coordinator-agent-password-file-auth"
  48343. msgstr "{数据类型} build-machine"
  48344. #. type: deftp
  48345. #: guix-git/doc/guix.texi:32593
  48346. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password read from a file."
  48347. msgstr ""
  48348. #. type: code{#1}
  48349. #: guix-git/doc/guix.texi:32600
  48350. #, no-wrap
  48351. msgid "password-file"
  48352. msgstr ""
  48353. #. type: table
  48354. #: guix-git/doc/guix.texi:32603
  48355. msgid "A file containing the password to use when connecting to the coordinator."
  48356. msgstr ""
  48357. #. type: deftp
  48358. #: guix-git/doc/guix.texi:32607
  48359. #, fuzzy, no-wrap
  48360. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth"
  48361. msgstr "{数据类型} build-machine"
  48362. #. type: deftp
  48363. #: guix-git/doc/guix.texi:32610
  48364. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token and agent name."
  48365. msgstr ""
  48366. #. type: code{#1}
  48367. #: guix-git/doc/guix.texi:32612 guix-git/doc/guix.texi:32629
  48368. #, fuzzy, no-wrap
  48369. msgid "agent-name"
  48370. msgstr "通道"
  48371. #. type: table
  48372. #: guix-git/doc/guix.texi:32616 guix-git/doc/guix.texi:32633
  48373. 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."
  48374. msgstr ""
  48375. #. type: code{#1}
  48376. #: guix-git/doc/guix.texi:32617
  48377. #, no-wrap
  48378. msgid "token"
  48379. msgstr ""
  48380. #. type: table
  48381. #: guix-git/doc/guix.texi:32620
  48382. msgid "Dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  48383. msgstr ""
  48384. #. type: deftp
  48385. #: guix-git/doc/guix.texi:32624
  48386. #, fuzzy, no-wrap
  48387. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth-with-file"
  48388. msgstr "{数据类型} build-machine"
  48389. #. type: deftp
  48390. #: guix-git/doc/guix.texi:32627
  48391. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token read from a file and agent name."
  48392. msgstr ""
  48393. #. type: code{#1}
  48394. #: guix-git/doc/guix.texi:32634
  48395. #, no-wrap
  48396. msgid "token-file"
  48397. msgstr ""
  48398. #. type: table
  48399. #: guix-git/doc/guix.texi:32637
  48400. msgid "File containing the dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  48401. msgstr ""
  48402. #. type: Plain text
  48403. #: guix-git/doc/guix.texi:32647
  48404. 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."
  48405. msgstr ""
  48406. #. type: defvar
  48407. #: guix-git/doc/guix.texi:32648
  48408. #, no-wrap
  48409. msgid "{Scheme Variable} guix-build-coordinator-queue-builds-service-type"
  48410. msgstr ""
  48411. #. type: defvar
  48412. #: guix-git/doc/guix.texi:32653
  48413. 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."
  48414. msgstr ""
  48415. #. type: deftp
  48416. #: guix-git/doc/guix.texi:32655
  48417. #, no-wrap
  48418. msgid "{Data Type} guix-build-coordinator-queue-builds-configuration"
  48419. msgstr ""
  48420. #. type: deftp
  48421. #: guix-git/doc/guix.texi:32658
  48422. msgid "Data type representing the options to the queue builds from guix data service script."
  48423. msgstr ""
  48424. #. type: item
  48425. #: guix-git/doc/guix.texi:32663
  48426. #, fuzzy, no-wrap
  48427. msgid "@code{user} (default: @code{\"guix-build-coordinator-queue-builds\"})"
  48428. msgstr "@code{gnome}(默认值:@code{gnome})"
  48429. #. type: item
  48430. #: guix-git/doc/guix.texi:32666
  48431. #, fuzzy, no-wrap
  48432. msgid "@code{coordinator} (default: @code{\"http://localhost:8746\"})"
  48433. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  48434. #. type: table
  48435. #: guix-git/doc/guix.texi:32671
  48436. msgid "The systems for which to fetch derivations to build."
  48437. msgstr ""
  48438. #. type: item
  48439. #: guix-git/doc/guix.texi:32672
  48440. #, fuzzy, no-wrap
  48441. msgid "@code{systems-and-targets} (default: @code{#f})"
  48442. msgstr "@code{challenge}(默认值:@code{#f})"
  48443. #. type: table
  48444. #: guix-git/doc/guix.texi:32675
  48445. msgid "An association list of system and target pairs for which to fetch derivations to build."
  48446. msgstr ""
  48447. #. type: item
  48448. #: guix-git/doc/guix.texi:32676
  48449. #, no-wrap
  48450. msgid "@code{guix-data-service} (default: @code{\"https://data.guix.gnu.org\"})"
  48451. msgstr ""
  48452. #. type: table
  48453. #: guix-git/doc/guix.texi:32679
  48454. msgid "The Guix Data Service instance from which to query to find out about derivations to build."
  48455. msgstr ""
  48456. #. type: item
  48457. #: guix-git/doc/guix.texi:32680
  48458. #, no-wrap
  48459. msgid "@code{processed-commits-file} (default: @code{\"/var/cache/guix-build-coordinator-queue-builds/processed-commits\"})"
  48460. msgstr ""
  48461. #. type: table
  48462. #: guix-git/doc/guix.texi:32683
  48463. msgid "A file to record which commits have been processed, to avoid needlessly processing them again if the service is restarted."
  48464. msgstr ""
  48465. #. type: subsubheading
  48466. #: guix-git/doc/guix.texi:32687
  48467. #, fuzzy, no-wrap
  48468. msgid "Guix Data Service"
  48469. msgstr "数据库服务"
  48470. #. type: Plain text
  48471. #: guix-git/doc/guix.texi:32691
  48472. 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."
  48473. msgstr ""
  48474. #. type: Plain text
  48475. #: guix-git/doc/guix.texi:32694
  48476. msgid "The data is stored in a PostgreSQL database, and available through a web interface."
  48477. msgstr ""
  48478. #. type: defvar
  48479. #: guix-git/doc/guix.texi:32695
  48480. #, no-wrap
  48481. msgid "{Scheme Variable} guix-data-service-type"
  48482. msgstr ""
  48483. #. type: defvar
  48484. #: guix-git/doc/guix.texi:32700
  48485. 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."
  48486. msgstr ""
  48487. #. type: deftp
  48488. #: guix-git/doc/guix.texi:32702
  48489. #, no-wrap
  48490. msgid "{Data Type} guix-data-service-configuration"
  48491. msgstr ""
  48492. #. type: deftp
  48493. #: guix-git/doc/guix.texi:32704
  48494. msgid "Data type representing the configuration of the Guix Data Service."
  48495. msgstr ""
  48496. #. type: item
  48497. #: guix-git/doc/guix.texi:32706
  48498. #, fuzzy, no-wrap
  48499. msgid "@code{package} (default: @code{guix-data-service})"
  48500. msgstr "@code{xfce}(默认值:@code{xfce})"
  48501. #. type: table
  48502. #: guix-git/doc/guix.texi:32708
  48503. msgid "The Guix Data Service package to use."
  48504. msgstr ""
  48505. #. type: item
  48506. #: guix-git/doc/guix.texi:32709
  48507. #, fuzzy, no-wrap
  48508. msgid "@code{user} (default: @code{\"guix-data-service\"})"
  48509. msgstr "@code{xfce}(默认值:@code{xfce})"
  48510. #. type: item
  48511. #: guix-git/doc/guix.texi:32712
  48512. #, fuzzy, no-wrap
  48513. msgid "@code{group} (default: @code{\"guix-data-service\"})"
  48514. msgstr "@code{gnome}(默认值:@code{gnome})"
  48515. #. type: item
  48516. #: guix-git/doc/guix.texi:32715
  48517. #, fuzzy, no-wrap
  48518. msgid "@code{port} (default: @code{8765})"
  48519. msgstr "@code{port}(默认值:@code{22})"
  48520. #. type: table
  48521. #: guix-git/doc/guix.texi:32717
  48522. #, fuzzy
  48523. msgid "The port to bind the web service to."
  48524. msgstr "rottlog服务。"
  48525. #. type: item
  48526. #: guix-git/doc/guix.texi:32718
  48527. #, fuzzy, no-wrap
  48528. msgid "@code{host} (default: @code{\"127.0.0.1\"})"
  48529. msgstr "@code{speed}(默认值:@code{1.0})"
  48530. #. type: table
  48531. #: guix-git/doc/guix.texi:32720
  48532. #, fuzzy
  48533. msgid "The host to bind the web service to."
  48534. msgstr "rottlog服务。"
  48535. #. type: item
  48536. #: guix-git/doc/guix.texi:32721
  48537. #, fuzzy, no-wrap
  48538. msgid "@code{getmail-idle-mailboxes} (default: @code{#f})"
  48539. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48540. #. type: table
  48541. #: guix-git/doc/guix.texi:32724
  48542. msgid "If set, this is the list of mailboxes that the getmail service will be configured to listen to."
  48543. msgstr ""
  48544. #. type: item
  48545. #: guix-git/doc/guix.texi:32725
  48546. #, fuzzy, no-wrap
  48547. msgid "@code{commits-getmail-retriever-configuration} (default: @code{#f})"
  48548. msgstr "@code{journal-content}(默认值:@code{#f})"
  48549. #. type: table
  48550. #: guix-git/doc/guix.texi:32729
  48551. 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."
  48552. msgstr ""
  48553. #. type: item
  48554. #: guix-git/doc/guix.texi:32730
  48555. #, no-wrap
  48556. msgid "@code{extra-options} (default: @var{'()})"
  48557. msgstr ""
  48558. #. type: table
  48559. #: guix-git/doc/guix.texi:32732
  48560. msgid "Extra command line options for @code{guix-data-service}."
  48561. msgstr ""
  48562. #. type: item
  48563. #: guix-git/doc/guix.texi:32733
  48564. #, fuzzy, no-wrap
  48565. msgid "@code{extra-process-jobs-options} (default: @var{'()})"
  48566. msgstr "@code{features} (@code{'()})"
  48567. #. type: table
  48568. #: guix-git/doc/guix.texi:32735
  48569. msgid "Extra command line options for @code{guix-data-service-process-jobs}."
  48570. msgstr ""
  48571. #. type: cindex
  48572. #: guix-git/doc/guix.texi:32742
  48573. #, no-wrap
  48574. msgid "oom"
  48575. msgstr ""
  48576. #. type: cindex
  48577. #: guix-git/doc/guix.texi:32743
  48578. #, no-wrap
  48579. msgid "out of memory killer"
  48580. msgstr ""
  48581. #. type: cindex
  48582. #: guix-git/doc/guix.texi:32744
  48583. #, no-wrap
  48584. msgid "earlyoom"
  48585. msgstr ""
  48586. #. type: cindex
  48587. #: guix-git/doc/guix.texi:32745
  48588. #, no-wrap
  48589. msgid "early out of memory daemon"
  48590. msgstr ""
  48591. #. type: subsubheading
  48592. #: guix-git/doc/guix.texi:32746
  48593. #, fuzzy, no-wrap
  48594. msgid "Early OOM Service"
  48595. msgstr "邮件服务"
  48596. #. type: Plain text
  48597. #: guix-git/doc/guix.texi:32753
  48598. 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."
  48599. msgstr ""
  48600. #. type: deffn
  48601. #: guix-git/doc/guix.texi:32754
  48602. #, no-wrap
  48603. msgid "{Scheme Variable} earlyoom-service-type"
  48604. msgstr ""
  48605. #. type: deffn
  48606. #: guix-git/doc/guix.texi:32759
  48607. 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:"
  48608. msgstr ""
  48609. #. type: lisp
  48610. #: guix-git/doc/guix.texi:32762
  48611. #, no-wrap
  48612. msgid "(service earlyoom-service-type)\n"
  48613. msgstr ""
  48614. #. type: deftp
  48615. #: guix-git/doc/guix.texi:32765
  48616. #, no-wrap
  48617. msgid "{Data Type} earlyoom-configuration"
  48618. msgstr ""
  48619. #. type: deftp
  48620. #: guix-git/doc/guix.texi:32767
  48621. msgid "This is the configuration record for the @code{earlyoom-service-type}."
  48622. msgstr ""
  48623. #. type: item
  48624. #: guix-git/doc/guix.texi:32769
  48625. #, fuzzy, no-wrap
  48626. msgid "@code{earlyoom} (default: @var{earlyoom})"
  48627. msgstr "@code{gnome}(默认值:@code{gnome})"
  48628. #. type: table
  48629. #: guix-git/doc/guix.texi:32771
  48630. #, fuzzy
  48631. msgid "The Earlyoom package to use."
  48632. msgstr "软件包数据类型。"
  48633. #. type: item
  48634. #: guix-git/doc/guix.texi:32772
  48635. #, fuzzy, no-wrap
  48636. msgid "@code{minimum-available-memory} (default: @code{10})"
  48637. msgstr "@code{parallel-builds}(默认值:@code{1})"
  48638. #. type: table
  48639. #: guix-git/doc/guix.texi:32774
  48640. msgid "The threshold for the minimum @emph{available} memory, in percentages."
  48641. msgstr ""
  48642. #. type: item
  48643. #: guix-git/doc/guix.texi:32775
  48644. #, fuzzy, no-wrap
  48645. msgid "@code{minimum-free-swap} (default: @code{10})"
  48646. msgstr "@code{speed}(默认值:@code{1.0})"
  48647. #. type: table
  48648. #: guix-git/doc/guix.texi:32777
  48649. msgid "The threshold for the minimum free swap memory, in percentages."
  48650. msgstr ""
  48651. #. type: item
  48652. #: guix-git/doc/guix.texi:32778
  48653. #, fuzzy, no-wrap
  48654. msgid "@code{prefer-regexp} (default: @code{#f})"
  48655. msgstr "@code{challenge}(默认值:@code{#f})"
  48656. #. type: table
  48657. #: guix-git/doc/guix.texi:32781
  48658. msgid "A regular expression (as a string) to match the names of the processes that should be preferably killed."
  48659. msgstr ""
  48660. #. type: item
  48661. #: guix-git/doc/guix.texi:32782
  48662. #, fuzzy, no-wrap
  48663. msgid "@code{avoid-regexp} (default: @code{#f})"
  48664. msgstr "@code{challenge}(默认值:@code{#f})"
  48665. #. type: table
  48666. #: guix-git/doc/guix.texi:32785
  48667. msgid "A regular expression (as a string) to match the names of the processes that should @emph{not} be killed."
  48668. msgstr ""
  48669. #. type: item
  48670. #: guix-git/doc/guix.texi:32786
  48671. #, fuzzy, no-wrap
  48672. msgid "@code{memory-report-interval} (default: @code{0})"
  48673. msgstr "@code{port}(默认值:@code{22})"
  48674. #. type: table
  48675. #: guix-git/doc/guix.texi:32789
  48676. msgid "The interval in seconds at which a memory report is printed. It is disabled by default."
  48677. msgstr ""
  48678. #. type: item
  48679. #: guix-git/doc/guix.texi:32790
  48680. #, fuzzy, no-wrap
  48681. msgid "@code{ignore-positive-oom-score-adj?} (default: @code{#f})"
  48682. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48683. #. type: table
  48684. #: guix-git/doc/guix.texi:32793
  48685. msgid "A boolean indicating whether the positive adjustments set in @file{/proc/*/oom_score_adj} should be ignored."
  48686. msgstr ""
  48687. #. type: item
  48688. #: guix-git/doc/guix.texi:32794
  48689. #, fuzzy, no-wrap
  48690. msgid "@code{show-debug-messages?} (default: @code{#f})"
  48691. msgstr "@code{challenge}(默认值:@code{#f})"
  48692. #. type: table
  48693. #: guix-git/doc/guix.texi:32797
  48694. msgid "A boolean indicating whether debug messages should be printed. The logs are saved at @file{/var/log/earlyoom.log}."
  48695. msgstr ""
  48696. #. type: item
  48697. #: guix-git/doc/guix.texi:32798
  48698. #, fuzzy, no-wrap
  48699. msgid "@code{send-notification-command} (default: @code{#f})"
  48700. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  48701. #. type: table
  48702. #: guix-git/doc/guix.texi:32801
  48703. msgid "This can be used to provide a custom command used for sending notifications."
  48704. msgstr ""
  48705. #. type: cindex
  48706. #: guix-git/doc/guix.texi:32804
  48707. #, no-wrap
  48708. msgid "modprobe"
  48709. msgstr ""
  48710. #. type: cindex
  48711. #: guix-git/doc/guix.texi:32805
  48712. #, no-wrap
  48713. msgid "kernel module loader"
  48714. msgstr ""
  48715. #. type: subsubheading
  48716. #: guix-git/doc/guix.texi:32806
  48717. #, no-wrap
  48718. msgid "Kernel Module Loader Service"
  48719. msgstr ""
  48720. #. type: Plain text
  48721. #: guix-git/doc/guix.texi:32812
  48722. 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}."
  48723. msgstr ""
  48724. #. type: deffn
  48725. #: guix-git/doc/guix.texi:32813
  48726. #, no-wrap
  48727. msgid "{Scheme Variable} kernel-module-loader-service-type"
  48728. msgstr ""
  48729. #. type: deffn
  48730. #: guix-git/doc/guix.texi:32819
  48731. 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:"
  48732. msgstr ""
  48733. #. type: lisp
  48734. #: guix-git/doc/guix.texi:32824
  48735. #, no-wrap
  48736. msgid ""
  48737. "(use-modules (gnu) (gnu services))\n"
  48738. "(use-package-modules linux)\n"
  48739. "(use-service-modules linux)\n"
  48740. "\n"
  48741. msgstr ""
  48742. #. type: lisp
  48743. #: guix-git/doc/guix.texi:32828
  48744. #, no-wrap
  48745. msgid ""
  48746. "(define ddcci-config\n"
  48747. " (plain-file \"ddcci.conf\"\n"
  48748. " \"options ddcci dyndbg delay=120\"))\n"
  48749. "\n"
  48750. msgstr ""
  48751. #. type: lisp
  48752. #: guix-git/doc/guix.texi:32838
  48753. #, no-wrap
  48754. msgid ""
  48755. "(operating-system\n"
  48756. " ...\n"
  48757. " (services (cons* (service kernel-module-loader-service-type\n"
  48758. " '(\"ddcci\" \"ddcci_backlight\"))\n"
  48759. " (simple-service 'ddcci-config etc-service-type\n"
  48760. " (list `(\"modprobe.d/ddcci.conf\"\n"
  48761. " ,ddcci-config)))\n"
  48762. " %base-services))\n"
  48763. " (kernel-loadable-modules (list ddcci-driver-linux)))\n"
  48764. msgstr ""
  48765. #. type: cindex
  48766. #: guix-git/doc/guix.texi:32841
  48767. #, fuzzy, no-wrap
  48768. #| msgid "daemon"
  48769. msgid "rasdaemon"
  48770. msgstr "后台进程"
  48771. #. type: cindex
  48772. #: guix-git/doc/guix.texi:32842
  48773. #, no-wrap
  48774. msgid "Platform Reliability, Availability and Serviceability daemon"
  48775. msgstr ""
  48776. #. type: subsubheading
  48777. #: guix-git/doc/guix.texi:32843
  48778. #, fuzzy, no-wrap
  48779. msgid "Rasdaemon Service"
  48780. msgstr "邮件服务"
  48781. #. type: Plain text
  48782. #: guix-git/doc/guix.texi:32848
  48783. 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."
  48784. msgstr ""
  48785. #. type: Plain text
  48786. #: guix-git/doc/guix.texi:32851
  48787. msgid "Reliability, Availability and Serviceability is a concept used on servers meant to measure their robustness."
  48788. msgstr ""
  48789. #. type: Plain text
  48790. #: guix-git/doc/guix.texi:32854
  48791. msgid "@strong{Relability} is the probability that a system will produce correct outputs:"
  48792. msgstr ""
  48793. #. type: item
  48794. #: guix-git/doc/guix.texi:32856
  48795. #, no-wrap
  48796. msgid "Generally measured as Mean Time Between Failures (MTBF), and"
  48797. msgstr ""
  48798. #. type: item
  48799. #: guix-git/doc/guix.texi:32857
  48800. #, no-wrap
  48801. msgid "Enhanced by features that help to avoid, detect and repair hardware"
  48802. msgstr ""
  48803. #. type: itemize
  48804. #: guix-git/doc/guix.texi:32859
  48805. msgid "faults"
  48806. msgstr ""
  48807. #. type: Plain text
  48808. #: guix-git/doc/guix.texi:32863
  48809. msgid "@strong{Availability} is the probability that a system is operational at a given time:"
  48810. msgstr ""
  48811. #. type: item
  48812. #: guix-git/doc/guix.texi:32865
  48813. #, no-wrap
  48814. msgid "Generally measured as a percentage of downtime per a period of time, and"
  48815. msgstr ""
  48816. #. type: item
  48817. #: guix-git/doc/guix.texi:32866
  48818. #, no-wrap
  48819. msgid "Often uses mechanisms to detect and correct hardware faults in runtime."
  48820. msgstr ""
  48821. #. type: Plain text
  48822. #: guix-git/doc/guix.texi:32871
  48823. msgid "@strong{Serviceability} is the simplicity and speed with which a system can be repaired or maintained:"
  48824. msgstr ""
  48825. #. type: item
  48826. #: guix-git/doc/guix.texi:32873
  48827. #, no-wrap
  48828. msgid "Generally measured on Mean Time Between Repair (MTBR)."
  48829. msgstr ""
  48830. #. type: Plain text
  48831. #: guix-git/doc/guix.texi:32878
  48832. msgid "Among the monitoring measures, the most usual ones include:"
  48833. msgstr ""
  48834. #. type: item
  48835. #: guix-git/doc/guix.texi:32880
  48836. #, no-wrap
  48837. msgid "CPU – detect errors at instruction execution and at L1/L2/L3 caches;"
  48838. msgstr ""
  48839. #. type: item
  48840. #: guix-git/doc/guix.texi:32881
  48841. #, no-wrap
  48842. msgid "Memory – add error correction logic (ECC) to detect and correct errors;"
  48843. msgstr ""
  48844. #. type: item
  48845. #: guix-git/doc/guix.texi:32882
  48846. #, no-wrap
  48847. msgid "I/O – add CRC checksums for transferred data;"
  48848. msgstr ""
  48849. #. type: item
  48850. #: guix-git/doc/guix.texi:32883
  48851. #, no-wrap
  48852. msgid "Storage – RAID, journal file systems, checksums, Self-Monitoring,"
  48853. msgstr ""
  48854. #. type: itemize
  48855. #: guix-git/doc/guix.texi:32885
  48856. msgid "Analysis and Reporting Technology (SMART)."
  48857. msgstr ""
  48858. #. type: Plain text
  48859. #: guix-git/doc/guix.texi:32891
  48860. 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."
  48861. msgstr ""
  48862. #. type: Plain text
  48863. #: guix-git/doc/guix.texi:32895
  48864. 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}."
  48865. msgstr ""
  48866. #. type: defvr
  48867. #: guix-git/doc/guix.texi:32896
  48868. #, no-wrap
  48869. msgid "{Scheme Variable} rasdaemon-service-type"
  48870. msgstr ""
  48871. #. type: defvr
  48872. #: guix-git/doc/guix.texi:32899
  48873. msgid "Service type for the @command{rasdaemon} service. It accepts a @code{rasdaemon-configuration} object. Instantiating like"
  48874. msgstr ""
  48875. #. type: lisp
  48876. #: guix-git/doc/guix.texi:32902
  48877. #, no-wrap
  48878. msgid "(service rasdaemon-service-type)\n"
  48879. msgstr ""
  48880. #. type: defvr
  48881. #: guix-git/doc/guix.texi:32906
  48882. msgid "will load with a default configuration, which monitors all events and logs to syslogd."
  48883. msgstr ""
  48884. #. type: deftp
  48885. #: guix-git/doc/guix.texi:32908
  48886. #, fuzzy, no-wrap
  48887. msgid "{Data Type} rasdaemon-configuration"
  48888. msgstr "{数据类型} build-machine"
  48889. #. type: deftp
  48890. #: guix-git/doc/guix.texi:32910
  48891. #, fuzzy
  48892. msgid "The data type representing the configuration of @command{rasdaemon}."
  48893. msgstr "管理操作系统配置。"
  48894. #. type: item
  48895. #: guix-git/doc/guix.texi:32912
  48896. #, fuzzy, no-wrap
  48897. msgid "@code{record?} (default: @code{#f})"
  48898. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  48899. #. type: table
  48900. #: guix-git/doc/guix.texi:32917
  48901. 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}."
  48902. msgstr ""
  48903. #. type: cindex
  48904. #: guix-git/doc/guix.texi:32921
  48905. #, no-wrap
  48906. msgid "zram"
  48907. msgstr ""
  48908. #. type: cindex
  48909. #: guix-git/doc/guix.texi:32922
  48910. #, no-wrap
  48911. msgid "compressed swap"
  48912. msgstr ""
  48913. #. type: cindex
  48914. #: guix-git/doc/guix.texi:32923
  48915. #, no-wrap
  48916. msgid "Compressed RAM-based block devices"
  48917. msgstr ""
  48918. #. type: subsubheading
  48919. #: guix-git/doc/guix.texi:32924
  48920. #, fuzzy, no-wrap
  48921. msgid "Zram Device Service"
  48922. msgstr "游戏服务"
  48923. #. type: Plain text
  48924. #: guix-git/doc/guix.texi:32930
  48925. 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."
  48926. msgstr ""
  48927. #. type: deffn
  48928. #: guix-git/doc/guix.texi:32931
  48929. #, no-wrap
  48930. msgid "{Scheme Variable} zram-device-service-type"
  48931. msgstr ""
  48932. #. type: deffn
  48933. #: guix-git/doc/guix.texi:32935
  48934. 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."
  48935. msgstr ""
  48936. #. type: deftp
  48937. #: guix-git/doc/guix.texi:32936
  48938. #, no-wrap
  48939. msgid "{Data Type} zram-device-configuration"
  48940. msgstr ""
  48941. #. type: deftp
  48942. #: guix-git/doc/guix.texi:32939
  48943. msgid "This is the data type representing the configuration for the zram-device service."
  48944. msgstr ""
  48945. #. type: item
  48946. #: guix-git/doc/guix.texi:32941
  48947. #, fuzzy, no-wrap
  48948. msgid "@code{size} (default @code{\"1G\"})"
  48949. msgstr "@code{speed}(默认值:@code{1.0})"
  48950. #. type: table
  48951. #: guix-git/doc/guix.texi:32945
  48952. 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}."
  48953. msgstr ""
  48954. #. type: item
  48955. #: guix-git/doc/guix.texi:32945
  48956. #, fuzzy, no-wrap
  48957. msgid "@code{compression-algorithm} (default @code{'lzo})"
  48958. msgstr "@code{compression-level}(默认值:@code{3})"
  48959. #. type: table
  48960. #: guix-git/doc/guix.texi:32949
  48961. 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}."
  48962. msgstr ""
  48963. #. type: item
  48964. #: guix-git/doc/guix.texi:32949
  48965. #, fuzzy, no-wrap
  48966. msgid "@code{memory-limit} (default @code{0})"
  48967. msgstr "@code{port}(默认值:@code{22})"
  48968. #. type: table
  48969. #: guix-git/doc/guix.texi:32956
  48970. 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\"}."
  48971. msgstr ""
  48972. #. type: item
  48973. #: guix-git/doc/guix.texi:32956
  48974. #, fuzzy, no-wrap
  48975. msgid "@code{priority} (default @code{-1})"
  48976. msgstr "@code{port}(默认值:@code{22})"
  48977. #. type: table
  48978. #: guix-git/doc/guix.texi:32961
  48979. 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."
  48980. msgstr ""
  48981. #. type: defvr
  48982. #: guix-git/doc/guix.texi:32969
  48983. #, no-wrap
  48984. msgid "{Scheme Variable} hurd-console-service-type"
  48985. msgstr ""
  48986. #. type: defvr
  48987. #: guix-git/doc/guix.texi:32971
  48988. msgid "This service starts the fancy @code{VGA} console client on the Hurd."
  48989. msgstr ""
  48990. #. type: defvr
  48991. #: guix-git/doc/guix.texi:32973
  48992. msgid "The service's value is a @code{hurd-console-configuration} record."
  48993. msgstr ""
  48994. #. type: deftp
  48995. #: guix-git/doc/guix.texi:32975
  48996. #, no-wrap
  48997. msgid "{Data Type} hurd-console-configuration"
  48998. msgstr ""
  48999. #. type: deftp
  49000. #: guix-git/doc/guix.texi:32978
  49001. msgid "This is the data type representing the configuration for the hurd-console-service."
  49002. msgstr ""
  49003. #. type: item
  49004. #: guix-git/doc/guix.texi:32980 guix-git/doc/guix.texi:32996
  49005. #, fuzzy, no-wrap
  49006. msgid "@code{hurd} (default: @var{hurd})"
  49007. msgstr "@code{port}(默认值:@code{22})"
  49008. #. type: table
  49009. #: guix-git/doc/guix.texi:32982 guix-git/doc/guix.texi:32998
  49010. #, fuzzy
  49011. msgid "The Hurd package to use."
  49012. msgstr "软件包数据类型。"
  49013. #. type: defvr
  49014. #: guix-git/doc/guix.texi:32985
  49015. #, no-wrap
  49016. msgid "{Scheme Variable} hurd-getty-service-type"
  49017. msgstr ""
  49018. #. type: defvr
  49019. #: guix-git/doc/guix.texi:32987
  49020. msgid "This service starts a tty using the Hurd @code{getty} program."
  49021. msgstr ""
  49022. #. type: defvr
  49023. #: guix-git/doc/guix.texi:32989
  49024. msgid "The service's value is a @code{hurd-getty-configuration} record."
  49025. msgstr ""
  49026. #. type: deftp
  49027. #: guix-git/doc/guix.texi:32991
  49028. #, no-wrap
  49029. msgid "{Data Type} hurd-getty-configuration"
  49030. msgstr ""
  49031. #. type: deftp
  49032. #: guix-git/doc/guix.texi:32994
  49033. msgid "This is the data type representing the configuration for the hurd-getty-service."
  49034. msgstr ""
  49035. #. type: table
  49036. #: guix-git/doc/guix.texi:33001
  49037. msgid "The name of the console this Getty runs on---e.g., @code{\"tty1\"}."
  49038. msgstr ""
  49039. #. type: item
  49040. #: guix-git/doc/guix.texi:33002
  49041. #, fuzzy, no-wrap
  49042. msgid "@code{baud-rate} (default: @code{38400})"
  49043. msgstr "@code{mate}(默认值:@code{mate})"
  49044. #. type: table
  49045. #: guix-git/doc/guix.texi:33004
  49046. msgid "An integer specifying the baud rate of the tty."
  49047. msgstr ""
  49048. #. type: cindex
  49049. #: guix-git/doc/guix.texi:33011
  49050. #, no-wrap
  49051. msgid "fingerprint"
  49052. msgstr ""
  49053. #. type: subsubheading
  49054. #: guix-git/doc/guix.texi:33012
  49055. #, no-wrap
  49056. msgid "Fingerprint Service"
  49057. msgstr ""
  49058. #. type: Plain text
  49059. #: guix-git/doc/guix.texi:33016
  49060. msgid "The @code{(gnu services authentication)} module provides a DBus service to read and identify fingerprints via a fingerprint sensor."
  49061. msgstr ""
  49062. #. type: defvr
  49063. #: guix-git/doc/guix.texi:33017
  49064. #, no-wrap
  49065. msgid "{Scheme Variable} fprintd-service-type"
  49066. msgstr ""
  49067. #. type: defvr
  49068. #: guix-git/doc/guix.texi:33020
  49069. msgid "The service type for @command{fprintd}, which provides the fingerprint reading capability."
  49070. msgstr ""
  49071. #. type: lisp
  49072. #: guix-git/doc/guix.texi:33023
  49073. #, no-wrap
  49074. msgid "(service fprintd-service-type)\n"
  49075. msgstr ""
  49076. #. type: cindex
  49077. #: guix-git/doc/guix.texi:33026
  49078. #, no-wrap
  49079. msgid "sysctl"
  49080. msgstr ""
  49081. #. type: subsubheading
  49082. #: guix-git/doc/guix.texi:33027
  49083. #, no-wrap
  49084. msgid "System Control Service"
  49085. msgstr ""
  49086. #. type: Plain text
  49087. #: guix-git/doc/guix.texi:33031
  49088. msgid "The @code{(gnu services sysctl)} provides a service to configure kernel parameters at boot."
  49089. msgstr ""
  49090. #. type: defvr
  49091. #: guix-git/doc/guix.texi:33032
  49092. #, no-wrap
  49093. msgid "{Scheme Variable} sysctl-service-type"
  49094. msgstr ""
  49095. #. type: defvr
  49096. #: guix-git/doc/guix.texi:33036
  49097. msgid "The service type for @command{sysctl}, which modifies kernel parameters under @file{/proc/sys/}. To enable IPv4 forwarding, it can be instantiated as:"
  49098. msgstr ""
  49099. #. type: lisp
  49100. #: guix-git/doc/guix.texi:33041
  49101. #, no-wrap
  49102. msgid ""
  49103. "(service sysctl-service-type\n"
  49104. " (sysctl-configuration\n"
  49105. " (settings '((\"net.ipv4.ip_forward\" . \"1\")))))\n"
  49106. msgstr ""
  49107. #. type: defvr
  49108. #: guix-git/doc/guix.texi:33048
  49109. 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}})."
  49110. msgstr ""
  49111. #. type: lisp
  49112. #: guix-git/doc/guix.texi:33055
  49113. #, no-wrap
  49114. msgid ""
  49115. "(modify-services %base-services\n"
  49116. " (sysctl-service-type config =>\n"
  49117. " (sysctl-configuration\n"
  49118. " (settings (append '((\"net.ipv4.ip_forward\" . \"1\"))\n"
  49119. " %default-sysctl-settings)))))\n"
  49120. msgstr ""
  49121. #. type: deftp
  49122. #: guix-git/doc/guix.texi:33059
  49123. #, no-wrap
  49124. msgid "{Data Type} sysctl-configuration"
  49125. msgstr ""
  49126. #. type: deftp
  49127. #: guix-git/doc/guix.texi:33061
  49128. msgid "The data type representing the configuration of @command{sysctl}."
  49129. msgstr ""
  49130. #. type: item
  49131. #: guix-git/doc/guix.texi:33063
  49132. #, no-wrap
  49133. msgid "@code{sysctl} (default: @code{(file-append procps \"/sbin/sysctl\"})"
  49134. msgstr ""
  49135. #. type: table
  49136. #: guix-git/doc/guix.texi:33065
  49137. msgid "The @command{sysctl} executable to use."
  49138. msgstr ""
  49139. #. type: item
  49140. #: guix-git/doc/guix.texi:33066
  49141. #, fuzzy, no-wrap
  49142. msgid "@code{settings} (default: @code{%default-sysctl-settings})"
  49143. msgstr "@code{mate}(默认值:@code{mate})"
  49144. #. type: table
  49145. #: guix-git/doc/guix.texi:33068
  49146. msgid "An association list specifies kernel parameters and their values."
  49147. msgstr ""
  49148. #. type: defvr
  49149. #: guix-git/doc/guix.texi:33071
  49150. #, no-wrap
  49151. msgid "{Scheme Variable} %default-sysctl-settings"
  49152. msgstr ""
  49153. #. type: defvr
  49154. #: guix-git/doc/guix.texi:33074
  49155. msgid "An association list specifying the default @command{sysctl} parameters on Guix System."
  49156. msgstr ""
  49157. #. type: cindex
  49158. #: guix-git/doc/guix.texi:33076
  49159. #, no-wrap
  49160. msgid "pcscd"
  49161. msgstr ""
  49162. #. type: subsubheading
  49163. #: guix-git/doc/guix.texi:33077
  49164. #, no-wrap
  49165. msgid "PC/SC Smart Card Daemon Service"
  49166. msgstr ""
  49167. #. type: Plain text
  49168. #: guix-git/doc/guix.texi:33084
  49169. 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."
  49170. msgstr ""
  49171. #. type: defvr
  49172. #: guix-git/doc/guix.texi:33085
  49173. #, no-wrap
  49174. msgid "{Scheme Variable} pcscd-service-type"
  49175. msgstr ""
  49176. #. type: defvr
  49177. #: guix-git/doc/guix.texi:33089
  49178. 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:"
  49179. msgstr ""
  49180. #. type: lisp
  49181. #: guix-git/doc/guix.texi:33092
  49182. #, no-wrap
  49183. msgid "(service pcscd-service-type)\n"
  49184. msgstr ""
  49185. #. type: deftp
  49186. #: guix-git/doc/guix.texi:33095
  49187. #, no-wrap
  49188. msgid "{Data Type} pcscd-configuration"
  49189. msgstr ""
  49190. #. type: deftp
  49191. #: guix-git/doc/guix.texi:33097
  49192. msgid "The data type representing the configuration of @command{pcscd}."
  49193. msgstr ""
  49194. #. type: item
  49195. #: guix-git/doc/guix.texi:33099
  49196. #, no-wrap
  49197. msgid "@code{pcsc-lite} (default: @code{pcsc-lite})"
  49198. msgstr ""
  49199. #. type: table
  49200. #: guix-git/doc/guix.texi:33101
  49201. msgid "The pcsc-lite package that provides pcscd."
  49202. msgstr ""
  49203. #. type: item
  49204. #: guix-git/doc/guix.texi:33101
  49205. #, no-wrap
  49206. msgid "@code{usb-drivers} (default: @code{(list ccid)})"
  49207. msgstr ""
  49208. #. type: table
  49209. #: guix-git/doc/guix.texi:33104
  49210. 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."
  49211. msgstr ""
  49212. #. type: cindex
  49213. #: guix-git/doc/guix.texi:33107
  49214. #, no-wrap
  49215. msgid "lirc"
  49216. msgstr ""
  49217. #. type: subsubheading
  49218. #: guix-git/doc/guix.texi:33108
  49219. #, no-wrap
  49220. msgid "Lirc Service"
  49221. msgstr ""
  49222. #. type: Plain text
  49223. #: guix-git/doc/guix.texi:33111
  49224. msgid "The @code{(gnu services lirc)} module provides the following service."
  49225. msgstr ""
  49226. #. type: deffn
  49227. #: guix-git/doc/guix.texi:33112
  49228. #, no-wrap
  49229. msgid "{Scheme Procedure} lirc-service [#:lirc lirc] @"
  49230. msgstr ""
  49231. #. type: deffn
  49232. #: guix-git/doc/guix.texi:33117
  49233. 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."
  49234. msgstr ""
  49235. #. type: deffn
  49236. #: guix-git/doc/guix.texi:33121
  49237. msgid "Optionally, @var{device}, @var{driver} and @var{config-file} (configuration file name) may be specified. See @command{lircd} manual for details."
  49238. msgstr ""
  49239. #. type: deffn
  49240. #: guix-git/doc/guix.texi:33124
  49241. msgid "Finally, @var{extra-options} is a list of additional command-line options passed to @command{lircd}."
  49242. msgstr ""
  49243. #. type: cindex
  49244. #: guix-git/doc/guix.texi:33126
  49245. #, no-wrap
  49246. msgid "spice"
  49247. msgstr ""
  49248. #. type: subsubheading
  49249. #: guix-git/doc/guix.texi:33127
  49250. #, no-wrap
  49251. msgid "Spice Service"
  49252. msgstr ""
  49253. #. type: Plain text
  49254. #: guix-git/doc/guix.texi:33130
  49255. msgid "The @code{(gnu services spice)} module provides the following service."
  49256. msgstr ""
  49257. #. type: deffn
  49258. #: guix-git/doc/guix.texi:33131
  49259. #, no-wrap
  49260. msgid "{Scheme Procedure} spice-vdagent-service [#:spice-vdagent]"
  49261. msgstr ""
  49262. #. type: deffn
  49263. #: guix-git/doc/guix.texi:33135
  49264. 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."
  49265. msgstr ""
  49266. #. type: cindex
  49267. #: guix-git/doc/guix.texi:33137
  49268. #, no-wrap
  49269. msgid "inputattach"
  49270. msgstr ""
  49271. #. type: subsubheading
  49272. #: guix-git/doc/guix.texi:33138
  49273. #, no-wrap
  49274. msgid "inputattach Service"
  49275. msgstr ""
  49276. #. type: cindex
  49277. #: guix-git/doc/guix.texi:33140
  49278. #, no-wrap
  49279. msgid "tablet input, for Xorg"
  49280. msgstr ""
  49281. #. type: cindex
  49282. #: guix-git/doc/guix.texi:33141
  49283. #, no-wrap
  49284. msgid "touchscreen input, for Xorg"
  49285. msgstr ""
  49286. #. type: Plain text
  49287. #: guix-git/doc/guix.texi:33145
  49288. 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."
  49289. msgstr ""
  49290. #. type: deffn
  49291. #: guix-git/doc/guix.texi:33146
  49292. #, no-wrap
  49293. msgid "{Scheme Variable} inputattach-service-type"
  49294. msgstr ""
  49295. #. type: deffn
  49296. #: guix-git/doc/guix.texi:33149
  49297. msgid "Type of a service that runs @command{inputattach} on a device and dispatches events from it."
  49298. msgstr ""
  49299. #. type: deftp
  49300. #: guix-git/doc/guix.texi:33151
  49301. #, no-wrap
  49302. msgid "{Data Type} inputattach-configuration"
  49303. msgstr ""
  49304. #. type: item
  49305. #: guix-git/doc/guix.texi:33153
  49306. #, no-wrap
  49307. msgid "@code{device-type} (default: @code{\"wacom\"})"
  49308. msgstr ""
  49309. #. type: table
  49310. #: guix-git/doc/guix.texi:33156
  49311. 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."
  49312. msgstr ""
  49313. #. type: item
  49314. #: guix-git/doc/guix.texi:33157
  49315. #, no-wrap
  49316. msgid "@code{device} (default: @code{\"/dev/ttyS0\"})"
  49317. msgstr ""
  49318. #. type: table
  49319. #: guix-git/doc/guix.texi:33159
  49320. msgid "The device file to connect to the device."
  49321. msgstr ""
  49322. #. type: table
  49323. #: guix-git/doc/guix.texi:33163
  49324. msgid "Baud rate to use for the serial connection. Should be a number or @code{#f}."
  49325. msgstr ""
  49326. #. type: item
  49327. #: guix-git/doc/guix.texi:33164
  49328. #, no-wrap
  49329. msgid "@code{log-file} (default: @code{#f})"
  49330. msgstr ""
  49331. #. type: table
  49332. #: guix-git/doc/guix.texi:33166
  49333. msgid "If true, this must be the name of a file to log messages to."
  49334. msgstr ""
  49335. #. type: subsubheading
  49336. #: guix-git/doc/guix.texi:33169
  49337. #, fuzzy, no-wrap
  49338. msgid "Dictionary Service"
  49339. msgstr "定义服务"
  49340. #. type: cindex
  49341. #: guix-git/doc/guix.texi:33170
  49342. #, no-wrap
  49343. msgid "dictionary"
  49344. msgstr ""
  49345. #. type: Plain text
  49346. #: guix-git/doc/guix.texi:33172
  49347. msgid "The @code{(gnu services dict)} module provides the following service:"
  49348. msgstr ""
  49349. #. type: defvr
  49350. #: guix-git/doc/guix.texi:33173
  49351. #, no-wrap
  49352. msgid "{Scheme Variable} dicod-service-type"
  49353. msgstr ""
  49354. #. type: defvr
  49355. #: guix-git/doc/guix.texi:33176
  49356. 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})."
  49357. msgstr ""
  49358. #. type: deffn
  49359. #: guix-git/doc/guix.texi:33178
  49360. #, no-wrap
  49361. msgid "{Scheme Procedure} dicod-service [#:config (dicod-configuration)]"
  49362. msgstr ""
  49363. #. type: deffn
  49364. #: guix-git/doc/guix.texi:33181
  49365. msgid "Return a service that runs the @command{dicod} daemon, an implementation of DICT server (@pxref{Dicod,,, dico, GNU Dico Manual})."
  49366. msgstr ""
  49367. #. type: deffn
  49368. #: guix-git/doc/guix.texi:33185
  49369. 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."
  49370. msgstr ""
  49371. #. type: deffn
  49372. #: guix-git/doc/guix.texi:33189
  49373. 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})."
  49374. msgstr ""
  49375. #. type: deftp
  49376. #: guix-git/doc/guix.texi:33191
  49377. #, no-wrap
  49378. msgid "{Data Type} dicod-configuration"
  49379. msgstr ""
  49380. #. type: deftp
  49381. #: guix-git/doc/guix.texi:33193
  49382. msgid "Data type representing the configuration of dicod."
  49383. msgstr ""
  49384. #. type: item
  49385. #: guix-git/doc/guix.texi:33195
  49386. #, no-wrap
  49387. msgid "@code{dico} (default: @var{dico})"
  49388. msgstr ""
  49389. #. type: table
  49390. #: guix-git/doc/guix.texi:33197
  49391. msgid "Package object of the GNU Dico dictionary server."
  49392. msgstr ""
  49393. #. type: item
  49394. #: guix-git/doc/guix.texi:33198
  49395. #, no-wrap
  49396. msgid "@code{interfaces} (default: @var{'(\"localhost\")})"
  49397. msgstr ""
  49398. #. type: table
  49399. #: guix-git/doc/guix.texi:33202
  49400. 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})."
  49401. msgstr ""
  49402. #. type: item
  49403. #: guix-git/doc/guix.texi:33203
  49404. #, no-wrap
  49405. msgid "@code{handlers} (default: @var{'()})"
  49406. msgstr ""
  49407. #. type: table
  49408. #: guix-git/doc/guix.texi:33205
  49409. msgid "List of @code{<dicod-handler>} objects denoting handlers (module instances)."
  49410. msgstr ""
  49411. #. type: item
  49412. #: guix-git/doc/guix.texi:33206
  49413. #, no-wrap
  49414. msgid "@code{databases} (default: @var{(list %dicod-database:gcide)})"
  49415. msgstr ""
  49416. #. type: table
  49417. #: guix-git/doc/guix.texi:33208
  49418. msgid "List of @code{<dicod-database>} objects denoting dictionaries to be served."
  49419. msgstr ""
  49420. #. type: deftp
  49421. #: guix-git/doc/guix.texi:33211
  49422. #, no-wrap
  49423. msgid "{Data Type} dicod-handler"
  49424. msgstr ""
  49425. #. type: deftp
  49426. #: guix-git/doc/guix.texi:33213
  49427. msgid "Data type representing a dictionary handler (module instance)."
  49428. msgstr ""
  49429. #. type: table
  49430. #: guix-git/doc/guix.texi:33217
  49431. msgid "Name of the handler (module instance)."
  49432. msgstr ""
  49433. #. type: item
  49434. #: guix-git/doc/guix.texi:33218
  49435. #, no-wrap
  49436. msgid "@code{module} (default: @var{#f})"
  49437. msgstr ""
  49438. #. type: table
  49439. #: guix-git/doc/guix.texi:33222
  49440. 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})."
  49441. msgstr ""
  49442. #. type: table
  49443. #: guix-git/doc/guix.texi:33225
  49444. msgid "List of strings or gexps representing the arguments for the module handler"
  49445. msgstr ""
  49446. #. type: deftp
  49447. #: guix-git/doc/guix.texi:33228
  49448. #, no-wrap
  49449. msgid "{Data Type} dicod-database"
  49450. msgstr ""
  49451. #. type: deftp
  49452. #: guix-git/doc/guix.texi:33230
  49453. msgid "Data type representing a dictionary database."
  49454. msgstr ""
  49455. #. type: table
  49456. #: guix-git/doc/guix.texi:33234
  49457. msgid "Name of the database, will be used in DICT commands."
  49458. msgstr ""
  49459. #. type: code{#1}
  49460. #: guix-git/doc/guix.texi:33235
  49461. #, no-wrap
  49462. msgid "handler"
  49463. msgstr ""
  49464. #. type: table
  49465. #: guix-git/doc/guix.texi:33238
  49466. msgid "Name of the dicod handler (module instance) used by this database (@pxref{Handlers,,, dico, GNU Dico Manual})."
  49467. msgstr ""
  49468. #. type: item
  49469. #: guix-git/doc/guix.texi:33239
  49470. #, no-wrap
  49471. msgid "@code{complex?} (default: @var{#f})"
  49472. msgstr ""
  49473. #. type: table
  49474. #: guix-git/doc/guix.texi:33242
  49475. msgid "Whether the database configuration complex. The complex configuration will need a corresponding @code{<dicod-handler>} object, otherwise not."
  49476. msgstr ""
  49477. #. type: table
  49478. #: guix-git/doc/guix.texi:33246
  49479. msgid "List of strings or gexps representing the arguments for the database (@pxref{Databases,,, dico, GNU Dico Manual})."
  49480. msgstr ""
  49481. #. type: defvr
  49482. #: guix-git/doc/guix.texi:33249
  49483. #, no-wrap
  49484. msgid "{Scheme Variable} %dicod-database:gcide"
  49485. msgstr ""
  49486. #. type: defvr
  49487. #: guix-git/doc/guix.texi:33252
  49488. msgid "A @code{<dicod-database>} object serving the GNU Collaborative International Dictionary of English using the @code{gcide} package."
  49489. msgstr ""
  49490. #. type: Plain text
  49491. #: guix-git/doc/guix.texi:33255
  49492. msgid "The following is an example @code{dicod-service} configuration."
  49493. msgstr ""
  49494. #. type: lisp
  49495. #: guix-git/doc/guix.texi:33270
  49496. #, no-wrap
  49497. msgid ""
  49498. "(dicod-service #:config\n"
  49499. " (dicod-configuration\n"
  49500. " (handlers (list (dicod-handler\n"
  49501. " (name \"wordnet\")\n"
  49502. " (module \"dictorg\")\n"
  49503. " (options\n"
  49504. " (list #~(string-append \"dbdir=\" #$wordnet))))))\n"
  49505. " (databases (list (dicod-database\n"
  49506. " (name \"wordnet\")\n"
  49507. " (complex? #t)\n"
  49508. " (handler \"wordnet\")\n"
  49509. " (options '(\"database=wn\")))\n"
  49510. " %dicod-database:gcide))))\n"
  49511. msgstr ""
  49512. #. type: cindex
  49513. #: guix-git/doc/guix.texi:33272
  49514. #, no-wrap
  49515. msgid "Docker"
  49516. msgstr ""
  49517. #. type: subsubheading
  49518. #: guix-git/doc/guix.texi:33273
  49519. #, no-wrap
  49520. msgid "Docker Service"
  49521. msgstr ""
  49522. #. type: Plain text
  49523. #: guix-git/doc/guix.texi:33276
  49524. msgid "The @code{(gnu services docker)} module provides the following services."
  49525. msgstr ""
  49526. #. type: defvr
  49527. #: guix-git/doc/guix.texi:33277
  49528. #, no-wrap
  49529. msgid "{Scheme Variable} docker-service-type"
  49530. msgstr ""
  49531. #. type: defvr
  49532. #: guix-git/doc/guix.texi:33282
  49533. 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."
  49534. msgstr ""
  49535. #. type: deftp
  49536. #: guix-git/doc/guix.texi:33285
  49537. #, no-wrap
  49538. msgid "{Data Type} docker-configuration"
  49539. msgstr ""
  49540. #. type: deftp
  49541. #: guix-git/doc/guix.texi:33287
  49542. msgid "This is the data type representing the configuration of Docker and Containerd."
  49543. msgstr ""
  49544. #. type: item
  49545. #: guix-git/doc/guix.texi:33290
  49546. #, fuzzy, no-wrap
  49547. msgid "@code{docker} (default: @code{docker})"
  49548. msgstr "@code{xfce}(默认值:@code{xfce})"
  49549. #. type: table
  49550. #: guix-git/doc/guix.texi:33292
  49551. msgid "The Docker daemon package to use."
  49552. msgstr ""
  49553. #. type: item
  49554. #: guix-git/doc/guix.texi:33293
  49555. #, fuzzy, no-wrap
  49556. msgid "@code{docker-cli} (default: @code{docker-cli})"
  49557. msgstr "@code{xfce}(默认值:@code{xfce})"
  49558. #. type: table
  49559. #: guix-git/doc/guix.texi:33295
  49560. msgid "The Docker client package to use."
  49561. msgstr ""
  49562. #. type: item
  49563. #: guix-git/doc/guix.texi:33296
  49564. #, no-wrap
  49565. msgid "@code{containerd} (default: @var{containerd})"
  49566. msgstr ""
  49567. #. type: table
  49568. #: guix-git/doc/guix.texi:33298
  49569. msgid "The Containerd package to use."
  49570. msgstr ""
  49571. #. type: item
  49572. #: guix-git/doc/guix.texi:33299
  49573. #, no-wrap
  49574. msgid "@code{proxy} (default @var{docker-libnetwork-cmd-proxy})"
  49575. msgstr ""
  49576. #. type: table
  49577. #: guix-git/doc/guix.texi:33301
  49578. msgid "The Docker user-land networking proxy package to use."
  49579. msgstr ""
  49580. #. type: item
  49581. #: guix-git/doc/guix.texi:33302
  49582. #, fuzzy, no-wrap
  49583. msgid "@code{enable-proxy?} (default @code{#t})"
  49584. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49585. #. type: table
  49586. #: guix-git/doc/guix.texi:33304
  49587. msgid "Enable or disable the use of the Docker user-land networking proxy."
  49588. msgstr ""
  49589. #. type: item
  49590. #: guix-git/doc/guix.texi:33305
  49591. #, fuzzy, no-wrap
  49592. msgid "@code{debug?} (default @code{#f})"
  49593. msgstr "@code{challenge}(默认值:@code{#f})"
  49594. #. type: table
  49595. #: guix-git/doc/guix.texi:33307
  49596. #, fuzzy
  49597. msgid "Enable or disable debug output."
  49598. msgstr "怎么开启或关闭substitute。"
  49599. #. type: item
  49600. #: guix-git/doc/guix.texi:33308
  49601. #, fuzzy, no-wrap
  49602. msgid "@code{enable-iptables?} (default @code{#t})"
  49603. msgstr "@code{mate}(默认值:@code{mate})"
  49604. #. type: table
  49605. #: guix-git/doc/guix.texi:33310
  49606. msgid "Enable or disable the addition of iptables rules."
  49607. msgstr ""
  49608. #. type: item
  49609. #: guix-git/doc/guix.texi:33311
  49610. #, fuzzy, no-wrap
  49611. msgid "@code{environment-variables} (default: @code{()})"
  49612. msgstr "@code{features} (@code{'()})"
  49613. #. type: table
  49614. #: guix-git/doc/guix.texi:33313
  49615. msgid "List of environment variables to set for @command{dockerd}."
  49616. msgstr ""
  49617. #. type: table
  49618. #: guix-git/doc/guix.texi:33316
  49619. msgid "This must be a list of strings where each string has the form @samp{@var{key}=@var{value}} as in this example:"
  49620. msgstr ""
  49621. #. type: lisp
  49622. #: guix-git/doc/guix.texi:33320
  49623. #, no-wrap
  49624. msgid ""
  49625. "(list \"LANGUAGE=eo:ca:eu\"\n"
  49626. " \"TMPDIR=/tmp/dockerd\")\n"
  49627. msgstr ""
  49628. #. type: cindex
  49629. #: guix-git/doc/guix.texi:33325
  49630. #, no-wrap
  49631. msgid "Singularity, container service"
  49632. msgstr ""
  49633. #. type: defvr
  49634. #: guix-git/doc/guix.texi:33326
  49635. #, no-wrap
  49636. msgid "{Scheme Variable} singularity-service-type"
  49637. msgstr ""
  49638. #. type: defvr
  49639. #: guix-git/doc/guix.texi:33331
  49640. 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."
  49641. msgstr ""
  49642. #. type: defvr
  49643. #: guix-git/doc/guix.texi:33335
  49644. 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."
  49645. msgstr ""
  49646. #. type: cindex
  49647. #: guix-git/doc/guix.texi:33337
  49648. #, no-wrap
  49649. msgid "Audit"
  49650. msgstr ""
  49651. #. type: subsubheading
  49652. #: guix-git/doc/guix.texi:33338
  49653. #, fuzzy, no-wrap
  49654. msgid "Auditd Service"
  49655. msgstr "音频服务"
  49656. #. type: Plain text
  49657. #: guix-git/doc/guix.texi:33341
  49658. msgid "The @code{(gnu services auditd)} module provides the following service."
  49659. msgstr ""
  49660. #. type: defvr
  49661. #: guix-git/doc/guix.texi:33342
  49662. #, no-wrap
  49663. msgid "{Scheme Variable} auditd-service-type"
  49664. msgstr ""
  49665. #. type: defvr
  49666. #: guix-git/doc/guix.texi:33347
  49667. 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."
  49668. msgstr ""
  49669. #. type: defvr
  49670. #: guix-git/doc/guix.texi:33349
  49671. msgid "Examples of things that can be tracked:"
  49672. msgstr ""
  49673. #. type: enumerate
  49674. #: guix-git/doc/guix.texi:33353
  49675. #, fuzzy
  49676. msgid "File accesses"
  49677. msgstr "文件系统"
  49678. #. type: enumerate
  49679. #: guix-git/doc/guix.texi:33355
  49680. #, fuzzy
  49681. msgid "System calls"
  49682. msgstr "系统安装"
  49683. #. type: enumerate
  49684. #: guix-git/doc/guix.texi:33357
  49685. msgid "Invoked commands"
  49686. msgstr ""
  49687. #. type: enumerate
  49688. #: guix-git/doc/guix.texi:33359
  49689. msgid "Failed login attempts"
  49690. msgstr ""
  49691. #. type: enumerate
  49692. #: guix-git/doc/guix.texi:33361
  49693. msgid "Firewall filtering"
  49694. msgstr ""
  49695. #. type: enumerate
  49696. #: guix-git/doc/guix.texi:33363
  49697. #, fuzzy
  49698. msgid "Network access"
  49699. msgstr "网络服务"
  49700. #. type: defvr
  49701. #: guix-git/doc/guix.texi:33374
  49702. 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}."
  49703. msgstr ""
  49704. #. type: deftp
  49705. #: guix-git/doc/guix.texi:33377
  49706. #, fuzzy, no-wrap
  49707. msgid "{Data Type} auditd-configuration"
  49708. msgstr "{数据类型} build-machine"
  49709. #. type: deftp
  49710. #: guix-git/doc/guix.texi:33379
  49711. msgid "This is the data type representing the configuration of auditd."
  49712. msgstr ""
  49713. #. type: item
  49714. #: guix-git/doc/guix.texi:33382
  49715. #, fuzzy, no-wrap
  49716. msgid "@code{audit} (default: @code{audit})"
  49717. msgstr "@code{mate}(默认值:@code{mate})"
  49718. #. type: table
  49719. #: guix-git/doc/guix.texi:33384
  49720. #, fuzzy
  49721. msgid "The audit package to use."
  49722. msgstr "软件包数据类型。"
  49723. #. type: item
  49724. #: guix-git/doc/guix.texi:33385
  49725. #, no-wrap
  49726. msgid "@code{configuration-directory} (default: @code{%default-auditd-configuration-directory})"
  49727. msgstr ""
  49728. #. type: table
  49729. #: guix-git/doc/guix.texi:33389
  49730. 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."
  49731. msgstr ""
  49732. #. type: cindex
  49733. #: guix-git/doc/guix.texi:33393
  49734. #, no-wrap
  49735. msgid "rshiny"
  49736. msgstr ""
  49737. #. type: subsubheading
  49738. #: guix-git/doc/guix.texi:33394
  49739. #, fuzzy, no-wrap
  49740. msgid "R-Shiny service"
  49741. msgstr "电话服务。"
  49742. #. type: Plain text
  49743. #: guix-git/doc/guix.texi:33397
  49744. msgid "The @code{(gnu services science)} module provides the following service."
  49745. msgstr ""
  49746. #. type: defvr
  49747. #: guix-git/doc/guix.texi:33398
  49748. #, no-wrap
  49749. msgid "{Scheme Variable} rshiny-service-type"
  49750. msgstr ""
  49751. #. type: defvr
  49752. #: guix-git/doc/guix.texi:33403
  49753. 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}."
  49754. msgstr ""
  49755. #. type: deftp
  49756. #: guix-git/doc/guix.texi:33404
  49757. #, no-wrap
  49758. msgid "{Data Type} rshiny-configuration"
  49759. msgstr ""
  49760. #. type: deftp
  49761. #: guix-git/doc/guix.texi:33406
  49762. msgid "This is the data type representing the configuration of rshiny."
  49763. msgstr ""
  49764. #. type: item
  49765. #: guix-git/doc/guix.texi:33409
  49766. #, fuzzy, no-wrap
  49767. msgid "@code{package} (default: @code{r-shiny})"
  49768. msgstr "@code{challenge}(默认值:@code{#f})"
  49769. #. type: table
  49770. #: guix-git/doc/guix.texi:33411
  49771. #, fuzzy
  49772. msgid "The package to use."
  49773. msgstr "软件包数据类型。"
  49774. #. type: item
  49775. #: guix-git/doc/guix.texi:33412
  49776. #, fuzzy, no-wrap
  49777. msgid "@code{binary} (defaunlt @code{\"rshiny\"})"
  49778. msgstr "@code{display}(默认值:@code{\":0\"})"
  49779. #. type: table
  49780. #: guix-git/doc/guix.texi:33415
  49781. msgid "The name of the binary or shell script located at @code{package/bin/} to run when the service is run."
  49782. msgstr ""
  49783. #. type: table
  49784. #: guix-git/doc/guix.texi:33417
  49785. msgid "The common way to create this file is as follows:"
  49786. msgstr ""
  49787. #. type: lisp
  49788. #: guix-git/doc/guix.texi:33435
  49789. #, no-wrap
  49790. msgid ""
  49791. "@dots{}\n"
  49792. "(let* ((out (assoc-ref %outputs \"out\"))\n"
  49793. " (targetdir (string-append out \"/share/\" ,name))\n"
  49794. " (app (string-append out \"/bin/\" ,name))\n"
  49795. " (Rbin (string-append (assoc-ref %build-inputs \"r-min\")\n"
  49796. " \"/bin/Rscript\")))\n"
  49797. " ;; @dots{}\n"
  49798. " (mkdir-p (string-append out \"/bin\"))\n"
  49799. " (call-with-output-file app\n"
  49800. " (lambda (port)\n"
  49801. " (format port\n"
  49802. "\"#!~a\n"
  49803. "library(shiny)\n"
  49804. "setwd(\\\"~a\\\")\n"
  49805. "runApp(launch.browser=0, port=4202)~%\\n\"\n"
  49806. " Rbin targetdir))))\n"
  49807. msgstr ""
  49808. #. type: cindex
  49809. #: guix-git/doc/guix.texi:33441
  49810. #, no-wrap
  49811. msgid "Nix"
  49812. msgstr ""
  49813. #. type: subsubheading
  49814. #: guix-git/doc/guix.texi:33442
  49815. #, fuzzy, no-wrap
  49816. msgid "Nix service"
  49817. msgstr "DNS服务"
  49818. #. type: Plain text
  49819. #: guix-git/doc/guix.texi:33445
  49820. msgid "The @code{(gnu services nix)} module provides the following service."
  49821. msgstr ""
  49822. #. type: defvr
  49823. #: guix-git/doc/guix.texi:33446
  49824. #, no-wrap
  49825. msgid "{Scheme Variable} nix-service-type"
  49826. msgstr ""
  49827. #. type: defvr
  49828. #: guix-git/doc/guix.texi:33451
  49829. 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:"
  49830. msgstr ""
  49831. #. type: lisp
  49832. #: guix-git/doc/guix.texi:33456
  49833. #, no-wrap
  49834. msgid ""
  49835. "(use-modules (gnu))\n"
  49836. "(use-service-modules nix)\n"
  49837. "(use-package-modules package-management)\n"
  49838. "\n"
  49839. msgstr ""
  49840. #. type: lisp
  49841. #: guix-git/doc/guix.texi:33461
  49842. #, no-wrap
  49843. msgid ""
  49844. "(operating-system\n"
  49845. " ;; @dots{}\n"
  49846. " (packages (append (list nix)\n"
  49847. " %base-packages))\n"
  49848. "\n"
  49849. msgstr ""
  49850. #. type: lisp
  49851. #: guix-git/doc/guix.texi:33464
  49852. #, no-wrap
  49853. msgid ""
  49854. " (services (append (list (service nix-service-type))\n"
  49855. " %base-services)))\n"
  49856. msgstr ""
  49857. #. type: defvr
  49858. #: guix-git/doc/guix.texi:33467
  49859. msgid "After @command{guix system reconfigure} configure Nix for your user:"
  49860. msgstr ""
  49861. #. type: item
  49862. #: guix-git/doc/guix.texi:33469
  49863. #, no-wrap
  49864. msgid "Add a Nix channel and update it. See"
  49865. msgstr ""
  49866. #. type: itemize
  49867. #: guix-git/doc/guix.texi:33471
  49868. msgid "@url{https://nixos.org/nix/manual/, Nix Package Manager Guide}."
  49869. msgstr ""
  49870. #. type: item
  49871. #: guix-git/doc/guix.texi:33472
  49872. #, no-wrap
  49873. msgid "Create a symlink to your profile and activate Nix profile:"
  49874. msgstr ""
  49875. #. type: example
  49876. #: guix-git/doc/guix.texi:33478
  49877. #, no-wrap
  49878. msgid ""
  49879. "$ ln -s \"/nix/var/nix/profiles/per-user/$USER/profile\" ~/.nix-profile\n"
  49880. "$ source /run/current-system/profile/etc/profile.d/nix.sh\n"
  49881. msgstr ""
  49882. #. type: deftp
  49883. #: guix-git/doc/guix.texi:33482
  49884. #, fuzzy, no-wrap
  49885. msgid "{Data Type} nix-configuration"
  49886. msgstr "{数据类型} build-machine"
  49887. #. type: deftp
  49888. #: guix-git/doc/guix.texi:33484
  49889. msgid "This data type represents the configuration of the Nix daemon."
  49890. msgstr ""
  49891. #. type: item
  49892. #: guix-git/doc/guix.texi:33486
  49893. #, fuzzy, no-wrap
  49894. msgid "@code{nix} (default: @code{nix})"
  49895. msgstr "@code{xfce}(默认值:@code{xfce})"
  49896. #. type: table
  49897. #: guix-git/doc/guix.texi:33488
  49898. #, fuzzy
  49899. msgid "The Nix package to use."
  49900. msgstr "软件包数据类型。"
  49901. #. type: item
  49902. #: guix-git/doc/guix.texi:33489
  49903. #, fuzzy, no-wrap
  49904. msgid "@code{sandbox} (default: @code{#t})"
  49905. msgstr "@code{speed}(默认值:@code{1.0})"
  49906. #. type: table
  49907. #: guix-git/doc/guix.texi:33491
  49908. msgid "Specifies whether builds are sandboxed by default."
  49909. msgstr ""
  49910. #. type: item
  49911. #: guix-git/doc/guix.texi:33492
  49912. #, fuzzy, no-wrap
  49913. msgid "@code{build-sandbox-items} (default: @code{'()})"
  49914. msgstr "@code{includes}(默认值:@code{'()})"
  49915. #. type: table
  49916. #: guix-git/doc/guix.texi:33495
  49917. msgid "This is a list of strings or objects appended to the @code{build-sandbox-items} field of the configuration file."
  49918. msgstr ""
  49919. #. type: table
  49920. #: guix-git/doc/guix.texi:33503
  49921. msgid "Extra command line options for @code{nix-service-type}."
  49922. msgstr ""
  49923. #. type: cindex
  49924. #: guix-git/doc/guix.texi:33509
  49925. #, no-wrap
  49926. msgid "setuid programs"
  49927. msgstr ""
  49928. #. type: Plain text
  49929. #: guix-git/doc/guix.texi:33519
  49930. 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)."
  49931. msgstr ""
  49932. #. type: Plain text
  49933. #: guix-git/doc/guix.texi:33526
  49934. 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."
  49935. msgstr ""
  49936. #. type: Plain text
  49937. #: guix-git/doc/guix.texi:33533
  49938. 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:"
  49939. msgstr ""
  49940. #. type: example
  49941. #: guix-git/doc/guix.texi:33537
  49942. #, no-wrap
  49943. msgid ""
  49944. "(setuid-program\n"
  49945. " (program (file-append shadow \"/bin/passwd\")))\n"
  49946. msgstr ""
  49947. #. type: deftp
  49948. #: guix-git/doc/guix.texi:33539
  49949. #, fuzzy, no-wrap
  49950. msgid "{Data Type} setuid-program"
  49951. msgstr "{数据类型} build-machine"
  49952. #. type: deftp
  49953. #: guix-git/doc/guix.texi:33541
  49954. #, fuzzy
  49955. msgid "This data type represents a program with a setuid or setgid bit set."
  49956. msgstr "管理操作系统配置。"
  49957. #. type: code{#1}
  49958. #: guix-git/doc/guix.texi:33543
  49959. #, no-wrap
  49960. msgid "program"
  49961. msgstr ""
  49962. #. type: table
  49963. #: guix-git/doc/guix.texi:33545
  49964. msgid "A file-like object having its setuid and/or setgid bit set."
  49965. msgstr ""
  49966. #. type: item
  49967. #: guix-git/doc/guix.texi:33546
  49968. #, fuzzy, no-wrap
  49969. msgid "@code{setuid?} (default: @code{#t})"
  49970. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49971. #. type: table
  49972. #: guix-git/doc/guix.texi:33548
  49973. msgid "Whether to set user setuid bit."
  49974. msgstr ""
  49975. #. type: item
  49976. #: guix-git/doc/guix.texi:33549
  49977. #, fuzzy, no-wrap
  49978. msgid "@code{setgid?} (default: @code{#f})"
  49979. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49980. #. type: table
  49981. #: guix-git/doc/guix.texi:33551
  49982. msgid "Whether to set group setgid bit."
  49983. msgstr ""
  49984. #. type: item
  49985. #: guix-git/doc/guix.texi:33552
  49986. #, fuzzy, no-wrap
  49987. msgid "@code{user} (default: @code{0})"
  49988. msgstr "@code{port}(默认值:@code{22})"
  49989. #. type: table
  49990. #: guix-git/doc/guix.texi:33555
  49991. msgid "UID (integer) or user name (string) for the user owner of the program, defaults to root."
  49992. msgstr ""
  49993. #. type: item
  49994. #: guix-git/doc/guix.texi:33556
  49995. #, fuzzy, no-wrap
  49996. msgid "@code{group} (default: @code{0})"
  49997. msgstr "@code{gnome}(默认值:@code{gnome})"
  49998. #. type: table
  49999. #: guix-git/doc/guix.texi:33559
  50000. msgid "GID (integer) goup name (string) for the group owner of the program, defaults to root."
  50001. msgstr ""
  50002. #. type: Plain text
  50003. #: guix-git/doc/guix.texi:33565
  50004. msgid "A default set of setuid programs is defined by the @code{%setuid-programs} variable of the @code{(gnu system)} module."
  50005. msgstr ""
  50006. #. type: defvr
  50007. #: guix-git/doc/guix.texi:33566
  50008. #, no-wrap
  50009. msgid "{Scheme Variable} %setuid-programs"
  50010. msgstr ""
  50011. #. type: defvr
  50012. #: guix-git/doc/guix.texi:33569
  50013. msgid "A list of @code{<setuid-program>} denoting common programs that are setuid-root."
  50014. msgstr ""
  50015. #. type: defvr
  50016. #: guix-git/doc/guix.texi:33572
  50017. msgid "The list includes commands such as @command{passwd}, @command{ping}, @command{su}, and @command{sudo}."
  50018. msgstr ""
  50019. #. type: Plain text
  50020. #: guix-git/doc/guix.texi:33578
  50021. 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."
  50022. msgstr ""
  50023. #. type: cindex
  50024. #: guix-git/doc/guix.texi:33582
  50025. #, no-wrap
  50026. msgid "HTTPS, certificates"
  50027. msgstr ""
  50028. #. type: cindex
  50029. #: guix-git/doc/guix.texi:33583
  50030. #, no-wrap
  50031. msgid "X.509 certificates"
  50032. msgstr ""
  50033. #. type: cindex
  50034. #: guix-git/doc/guix.texi:33584
  50035. #, no-wrap
  50036. msgid "TLS"
  50037. msgstr ""
  50038. #. type: Plain text
  50039. #: guix-git/doc/guix.texi:33591
  50040. 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."
  50041. msgstr ""
  50042. #. type: Plain text
  50043. #: guix-git/doc/guix.texi:33595
  50044. 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."
  50045. msgstr ""
  50046. #. type: Plain text
  50047. #: guix-git/doc/guix.texi:33599
  50048. 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."
  50049. msgstr ""
  50050. #. type: Plain text
  50051. #: guix-git/doc/guix.texi:33606
  50052. 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."
  50053. msgstr ""
  50054. #. type: Plain text
  50055. #: guix-git/doc/guix.texi:33611
  50056. 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."
  50057. msgstr ""
  50058. #. type: Plain text
  50059. #: guix-git/doc/guix.texi:33621
  50060. 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:"
  50061. msgstr ""
  50062. #. type: example
  50063. #: guix-git/doc/guix.texi:33627
  50064. #, no-wrap
  50065. msgid ""
  50066. "guix install nss-certs\n"
  50067. "export SSL_CERT_DIR=\"$HOME/.guix-profile/etc/ssl/certs\"\n"
  50068. "export SSL_CERT_FILE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  50069. "export GIT_SSL_CAINFO=\"$SSL_CERT_FILE\"\n"
  50070. msgstr ""
  50071. #. type: Plain text
  50072. #: guix-git/doc/guix.texi:33632
  50073. 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:"
  50074. msgstr ""
  50075. #. type: example
  50076. #: guix-git/doc/guix.texi:33636
  50077. #, no-wrap
  50078. msgid ""
  50079. "guix install nss-certs\n"
  50080. "export CURL_CA_BUNDLE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  50081. msgstr ""
  50082. #. type: Plain text
  50083. #: guix-git/doc/guix.texi:33640
  50084. msgid "For other applications you may want to look up the required environment variable in the relevant documentation."
  50085. msgstr ""
  50086. #. type: cindex
  50087. #: guix-git/doc/guix.texi:33645
  50088. #, no-wrap
  50089. msgid "name service switch"
  50090. msgstr ""
  50091. #. type: cindex
  50092. #: guix-git/doc/guix.texi:33646
  50093. #, no-wrap
  50094. msgid "NSS"
  50095. msgstr ""
  50096. #. type: Plain text
  50097. #: guix-git/doc/guix.texi:33655
  50098. 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})."
  50099. msgstr ""
  50100. #. type: Plain text
  50101. #: guix-git/doc/guix.texi:33662
  50102. 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}})."
  50103. msgstr ""
  50104. #. type: cindex
  50105. #: guix-git/doc/guix.texi:33663
  50106. #, no-wrap
  50107. msgid "nss-mdns"
  50108. msgstr ""
  50109. #. type: cindex
  50110. #: guix-git/doc/guix.texi:33664
  50111. #, no-wrap
  50112. msgid ".local, host name lookup"
  50113. msgstr ""
  50114. #. type: Plain text
  50115. #: guix-git/doc/guix.texi:33669
  50116. 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}:"
  50117. msgstr ""
  50118. #. type: lisp
  50119. #: guix-git/doc/guix.texi:33673
  50120. #, no-wrap
  50121. msgid ""
  50122. "(name-service-switch\n"
  50123. " (hosts (list %files ;first, check /etc/hosts\n"
  50124. "\n"
  50125. msgstr ""
  50126. #. type: lisp
  50127. #: guix-git/doc/guix.texi:33678
  50128. #, no-wrap
  50129. msgid ""
  50130. " ;; If the above did not succeed, try\n"
  50131. " ;; with 'mdns_minimal'.\n"
  50132. " (name-service\n"
  50133. " (name \"mdns_minimal\")\n"
  50134. "\n"
  50135. msgstr ""
  50136. #. type: lisp
  50137. #: guix-git/doc/guix.texi:33684
  50138. #, no-wrap
  50139. msgid ""
  50140. " ;; 'mdns_minimal' is authoritative for\n"
  50141. " ;; '.local'. When it returns \"not found\",\n"
  50142. " ;; no need to try the next methods.\n"
  50143. " (reaction (lookup-specification\n"
  50144. " (not-found => return))))\n"
  50145. "\n"
  50146. msgstr ""
  50147. #. type: lisp
  50148. #: guix-git/doc/guix.texi:33688
  50149. #, no-wrap
  50150. msgid ""
  50151. " ;; Then fall back to DNS.\n"
  50152. " (name-service\n"
  50153. " (name \"dns\"))\n"
  50154. "\n"
  50155. msgstr ""
  50156. #. type: lisp
  50157. #: guix-git/doc/guix.texi:33692
  50158. #, no-wrap
  50159. msgid ""
  50160. " ;; Finally, try with the \"full\" 'mdns'.\n"
  50161. " (name-service\n"
  50162. " (name \"mdns\")))))\n"
  50163. msgstr ""
  50164. #. type: Plain text
  50165. #: guix-git/doc/guix.texi:33697
  50166. 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."
  50167. msgstr ""
  50168. #. type: Plain text
  50169. #: guix-git/doc/guix.texi:33705
  50170. 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}})."
  50171. msgstr ""
  50172. #. type: Plain text
  50173. #: guix-git/doc/guix.texi:33708
  50174. msgid "For convenience, the following variables provide typical NSS configurations."
  50175. msgstr ""
  50176. #. type: defvr
  50177. #: guix-git/doc/guix.texi:33709
  50178. #, no-wrap
  50179. msgid "{Scheme Variable} %default-nss"
  50180. msgstr ""
  50181. #. type: defvr
  50182. #: guix-git/doc/guix.texi:33712
  50183. msgid "This is the default name service switch configuration, a @code{name-service-switch} object."
  50184. msgstr ""
  50185. #. type: defvr
  50186. #: guix-git/doc/guix.texi:33714
  50187. #, no-wrap
  50188. msgid "{Scheme Variable} %mdns-host-lookup-nss"
  50189. msgstr ""
  50190. #. type: defvr
  50191. #: guix-git/doc/guix.texi:33717
  50192. 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}."
  50193. msgstr ""
  50194. #. type: Plain text
  50195. #: guix-git/doc/guix.texi:33727
  50196. 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}."
  50197. msgstr ""
  50198. #. type: deftp
  50199. #: guix-git/doc/guix.texi:33728
  50200. #, no-wrap
  50201. msgid "{Data Type} name-service-switch"
  50202. msgstr ""
  50203. #. type: deftp
  50204. #: guix-git/doc/guix.texi:33733
  50205. 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."
  50206. msgstr ""
  50207. #. type: item
  50208. #: guix-git/doc/guix.texi:33735
  50209. #, no-wrap
  50210. msgid "aliases"
  50211. msgstr ""
  50212. #. type: itemx
  50213. #: guix-git/doc/guix.texi:33736
  50214. #, no-wrap
  50215. msgid "ethers"
  50216. msgstr ""
  50217. #. type: itemx
  50218. #: guix-git/doc/guix.texi:33738
  50219. #, no-wrap
  50220. msgid "gshadow"
  50221. msgstr ""
  50222. #. type: itemx
  50223. #: guix-git/doc/guix.texi:33739
  50224. #, no-wrap
  50225. msgid "hosts"
  50226. msgstr ""
  50227. #. type: itemx
  50228. #: guix-git/doc/guix.texi:33740
  50229. #, no-wrap
  50230. msgid "initgroups"
  50231. msgstr ""
  50232. #. type: itemx
  50233. #: guix-git/doc/guix.texi:33741
  50234. #, no-wrap
  50235. msgid "netgroup"
  50236. msgstr ""
  50237. #. type: itemx
  50238. #: guix-git/doc/guix.texi:33742
  50239. #, no-wrap
  50240. msgid "networks"
  50241. msgstr ""
  50242. #. type: itemx
  50243. #: guix-git/doc/guix.texi:33745
  50244. #, no-wrap
  50245. msgid "rpc"
  50246. msgstr ""
  50247. #. type: itemx
  50248. #: guix-git/doc/guix.texi:33747
  50249. #, no-wrap
  50250. msgid "shadow"
  50251. msgstr ""
  50252. #. type: table
  50253. #: guix-git/doc/guix.texi:33750
  50254. msgid "The system databases handled by the NSS@. Each of these fields must be a list of @code{<name-service>} objects (see below)."
  50255. msgstr ""
  50256. #. type: deftp
  50257. #: guix-git/doc/guix.texi:33753
  50258. #, no-wrap
  50259. msgid "{Data Type} name-service"
  50260. msgstr ""
  50261. #. type: deftp
  50262. #: guix-git/doc/guix.texi:33757
  50263. msgid "This is the data type representing an actual name service and the associated lookup action."
  50264. msgstr ""
  50265. #. type: table
  50266. #: guix-git/doc/guix.texi:33762
  50267. msgid "A string denoting the name service (@pxref{Services in the NSS configuration,,, libc, The GNU C Library Reference Manual})."
  50268. msgstr ""
  50269. #. type: table
  50270. #: guix-git/doc/guix.texi:33767
  50271. 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}})."
  50272. msgstr ""
  50273. #. type: item
  50274. #: guix-git/doc/guix.texi:33768
  50275. #, no-wrap
  50276. msgid "reaction"
  50277. msgstr ""
  50278. #. type: table
  50279. #: guix-git/doc/guix.texi:33772
  50280. 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:"
  50281. msgstr ""
  50282. #. type: lisp
  50283. #: guix-git/doc/guix.texi:33776
  50284. #, no-wrap
  50285. msgid ""
  50286. "(lookup-specification (unavailable => continue)\n"
  50287. " (success => return))\n"
  50288. msgstr ""
  50289. #. type: Plain text
  50290. #: guix-git/doc/guix.texi:33790
  50291. 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."
  50292. msgstr ""
  50293. #. type: Plain text
  50294. #: guix-git/doc/guix.texi:33799
  50295. 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:"
  50296. msgstr ""
  50297. #. type: lisp
  50298. #: guix-git/doc/guix.texi:33804
  50299. #, no-wrap
  50300. msgid ""
  50301. "(operating-system\n"
  50302. " ;; @dots{}\n"
  50303. " (initrd-modules (cons \"megaraid_sas\" %base-initrd-modules)))\n"
  50304. msgstr ""
  50305. #. type: defvr
  50306. #: guix-git/doc/guix.texi:33806
  50307. #, no-wrap
  50308. msgid "{Scheme Variable} %base-initrd-modules"
  50309. msgstr ""
  50310. #. type: defvr
  50311. #: guix-git/doc/guix.texi:33808
  50312. msgid "This is the list of kernel modules included in the initrd by default."
  50313. msgstr ""
  50314. #. type: Plain text
  50315. #: guix-git/doc/guix.texi:33816
  50316. 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."
  50317. msgstr ""
  50318. #. type: Plain text
  50319. #: guix-git/doc/guix.texi:33821
  50320. 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:"
  50321. msgstr ""
  50322. #. type: lisp
  50323. #: guix-git/doc/guix.texi:33829
  50324. #, no-wrap
  50325. msgid ""
  50326. "(initrd (lambda (file-systems . rest)\n"
  50327. " ;; Create a standard initrd but set up networking\n"
  50328. " ;; with the parameters QEMU expects by default.\n"
  50329. " (apply base-initrd file-systems\n"
  50330. " #:qemu-networking? #t\n"
  50331. " rest)))\n"
  50332. msgstr ""
  50333. #. type: Plain text
  50334. #: guix-git/doc/guix.texi:33834
  50335. 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."
  50336. msgstr ""
  50337. #. type: Plain text
  50338. #: guix-git/doc/guix.texi:33841
  50339. 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."
  50340. msgstr ""
  50341. #. type: Plain text
  50342. #: guix-git/doc/guix.texi:33846
  50343. 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:"
  50344. msgstr ""
  50345. #. type: item
  50346. #: guix-git/doc/guix.texi:33848
  50347. #, no-wrap
  50348. msgid "--load=@var{boot}"
  50349. msgstr ""
  50350. #. type: table
  50351. #: guix-git/doc/guix.texi:33851
  50352. msgid "Tell the initial RAM disk to load @var{boot}, a file containing a Scheme program, once it has mounted the root file system."
  50353. msgstr ""
  50354. #. type: table
  50355. #: guix-git/doc/guix.texi:33855
  50356. 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."
  50357. msgstr ""
  50358. #. type: item
  50359. #: guix-git/doc/guix.texi:33856
  50360. #, no-wrap
  50361. msgid "--root=@var{root}"
  50362. msgstr ""
  50363. #. type: table
  50364. #: guix-git/doc/guix.texi:33861
  50365. 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."
  50366. msgstr ""
  50367. #. type: item
  50368. #: guix-git/doc/guix.texi:33862
  50369. #, fuzzy, no-wrap
  50370. msgid "fsck.mode=@var{mode}"
  50371. msgstr "--rounds=@var{N}"
  50372. #. type: table
  50373. #: guix-git/doc/guix.texi:33868
  50374. 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."
  50375. msgstr ""
  50376. #. type: table
  50377. #: guix-git/doc/guix.texi:33871
  50378. msgid "@code{auto} is the default if this option is not present or if @var{mode} is not one of the above."
  50379. msgstr ""
  50380. #. type: item
  50381. #: guix-git/doc/guix.texi:33872
  50382. #, no-wrap
  50383. msgid "fsck.repair=@var{level}"
  50384. msgstr ""
  50385. #. type: table
  50386. #: guix-git/doc/guix.texi:33877
  50387. 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."
  50388. msgstr ""
  50389. #. type: table
  50390. #: guix-git/doc/guix.texi:33880
  50391. msgid "@code{preen} is the default if this option is not present or if @var{level} is not one of the above."
  50392. msgstr ""
  50393. #. type: table
  50394. #: guix-git/doc/guix.texi:33884
  50395. msgid "Have @file{/run/booted-system} and @file{/run/current-system} point to @var{system}."
  50396. msgstr ""
  50397. #. type: item
  50398. #: guix-git/doc/guix.texi:33885
  50399. #, no-wrap
  50400. msgid "modprobe.blacklist=@var{modules}@dots{}"
  50401. msgstr ""
  50402. #. type: cindex
  50403. #: guix-git/doc/guix.texi:33886
  50404. #, no-wrap
  50405. msgid "module, black-listing"
  50406. msgstr ""
  50407. #. type: cindex
  50408. #: guix-git/doc/guix.texi:33887
  50409. #, no-wrap
  50410. msgid "black list, of kernel modules"
  50411. msgstr ""
  50412. #. type: table
  50413. #: guix-git/doc/guix.texi:33892
  50414. 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}."
  50415. msgstr ""
  50416. #. type: item
  50417. #: guix-git/doc/guix.texi:33893
  50418. #, no-wrap
  50419. msgid "--repl"
  50420. msgstr ""
  50421. #. type: table
  50422. #: guix-git/doc/guix.texi:33899
  50423. 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."
  50424. msgstr ""
  50425. #. type: Plain text
  50426. #: guix-git/doc/guix.texi:33905
  50427. 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."
  50428. msgstr ""
  50429. #. type: deffn
  50430. #: guix-git/doc/guix.texi:33908
  50431. #, no-wrap
  50432. msgid "{Scheme Procedure} raw-initrd @var{file-systems} @"
  50433. msgstr ""
  50434. #. type: deffn
  50435. #: guix-git/doc/guix.texi:33922
  50436. 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."
  50437. msgstr ""
  50438. #. type: deffn
  50439. #: guix-git/doc/guix.texi:33928 guix-git/doc/guix.texi:33952
  50440. 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."
  50441. msgstr ""
  50442. #. type: deffn
  50443. #: guix-git/doc/guix.texi:33932
  50444. 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."
  50445. msgstr ""
  50446. #. type: deffn
  50447. #: guix-git/doc/guix.texi:33935
  50448. msgid "When @var{volatile-root?} is true, the root file system is writable but any changes to it are lost."
  50449. msgstr ""
  50450. #. type: deffn
  50451. #: guix-git/doc/guix.texi:33937
  50452. #, no-wrap
  50453. msgid "{Scheme Procedure} base-initrd @var{file-systems} @"
  50454. msgstr ""
  50455. #. type: deffn
  50456. #: guix-git/doc/guix.texi:33946
  50457. 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."
  50458. msgstr ""
  50459. #. type: deffn
  50460. #: guix-git/doc/guix.texi:33954
  50461. msgid "@var{qemu-networking?} and @var{volatile-root?} behaves as in @code{raw-initrd}."
  50462. msgstr ""
  50463. #. type: deffn
  50464. #: guix-git/doc/guix.texi:33959
  50465. 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."
  50466. msgstr ""
  50467. #. type: Plain text
  50468. #: guix-git/doc/guix.texi:33966
  50469. 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."
  50470. msgstr ""
  50471. #. type: deffn
  50472. #: guix-git/doc/guix.texi:33967
  50473. #, no-wrap
  50474. msgid "{Scheme Procedure} expression->initrd @var{exp} @"
  50475. msgstr ""
  50476. #. type: deffn
  50477. #: guix-git/doc/guix.texi:33973
  50478. 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."
  50479. msgstr ""
  50480. #. type: cindex
  50481. #: guix-git/doc/guix.texi:33979
  50482. #, no-wrap
  50483. msgid "boot loader"
  50484. msgstr ""
  50485. #. type: Plain text
  50486. #: guix-git/doc/guix.texi:33986
  50487. 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."
  50488. msgstr ""
  50489. #. type: Plain text
  50490. #: guix-git/doc/guix.texi:33991
  50491. 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."
  50492. msgstr ""
  50493. #. type: deftp
  50494. #: guix-git/doc/guix.texi:33992
  50495. #, no-wrap
  50496. msgid "{Data Type} bootloader-configuration"
  50497. msgstr ""
  50498. #. type: deftp
  50499. #: guix-git/doc/guix.texi:33994
  50500. msgid "The type of a bootloader configuration declaration."
  50501. msgstr ""
  50502. #. type: cindex
  50503. #: guix-git/doc/guix.texi:33998
  50504. #, no-wrap
  50505. msgid "EFI, bootloader"
  50506. msgstr ""
  50507. #. type: cindex
  50508. #: guix-git/doc/guix.texi:33999
  50509. #, no-wrap
  50510. msgid "UEFI, bootloader"
  50511. msgstr ""
  50512. #. type: cindex
  50513. #: guix-git/doc/guix.texi:34000
  50514. #, no-wrap
  50515. msgid "BIOS, bootloader"
  50516. msgstr ""
  50517. #. type: table
  50518. #: guix-git/doc/guix.texi:34005
  50519. 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."
  50520. msgstr ""
  50521. #. type: cindex
  50522. #: guix-git/doc/guix.texi:34006
  50523. #, no-wrap
  50524. msgid "ARM, bootloaders"
  50525. msgstr ""
  50526. #. type: cindex
  50527. #: guix-git/doc/guix.texi:34007
  50528. #, no-wrap
  50529. msgid "AArch64, bootloaders"
  50530. msgstr ""
  50531. #. type: table
  50532. #: guix-git/doc/guix.texi:34012
  50533. 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}."
  50534. msgstr ""
  50535. #. type: table
  50536. #: guix-git/doc/guix.texi:34018
  50537. 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."
  50538. msgstr ""
  50539. #. type: table
  50540. #: guix-git/doc/guix.texi:34022
  50541. msgid "@code{grub-bootloader} allows you to boot in particular Intel-based machines in ``legacy'' BIOS mode."
  50542. msgstr ""
  50543. #. type: vindex
  50544. #: guix-git/doc/guix.texi:34023
  50545. #, no-wrap
  50546. msgid "grub-efi-netboot-bootloader"
  50547. msgstr ""
  50548. #. type: table
  50549. #: guix-git/doc/guix.texi:34027
  50550. 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."
  50551. msgstr ""
  50552. #. type: table
  50553. #: guix-git/doc/guix.texi:34033
  50554. 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."
  50555. msgstr ""
  50556. #. type: table
  50557. #: guix-git/doc/guix.texi:34042
  50558. 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}."
  50559. msgstr ""
  50560. #. type: table
  50561. #: guix-git/doc/guix.texi:34051
  50562. 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."
  50563. msgstr ""
  50564. #. type: table
  50565. #: guix-git/doc/guix.texi:34057
  50566. 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."
  50567. msgstr ""
  50568. #. type: table
  50569. #: guix-git/doc/guix.texi:34062
  50570. 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}."
  50571. msgstr ""
  50572. #. type: table
  50573. #: guix-git/doc/guix.texi:34067
  50574. 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."
  50575. msgstr ""
  50576. #. type: table
  50577. #: guix-git/doc/guix.texi:34072
  50578. 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}."
  50579. msgstr ""
  50580. #. type: table
  50581. #: guix-git/doc/guix.texi:34076
  50582. msgid "This is a list of strings denoting the targets onto which to install the bootloader."
  50583. msgstr ""
  50584. #. type: table
  50585. #: guix-git/doc/guix.texi:34086
  50586. 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."
  50587. msgstr ""
  50588. #. type: item
  50589. #: guix-git/doc/guix.texi:34087
  50590. #, no-wrap
  50591. msgid "@code{menu-entries} (default: @code{()})"
  50592. msgstr ""
  50593. #. type: table
  50594. #: guix-git/doc/guix.texi:34091
  50595. 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."
  50596. msgstr ""
  50597. #. type: item
  50598. #: guix-git/doc/guix.texi:34092
  50599. #, no-wrap
  50600. msgid "@code{default-entry} (default: @code{0})"
  50601. msgstr ""
  50602. #. type: table
  50603. #: guix-git/doc/guix.texi:34095
  50604. msgid "The index of the default boot menu entry. Index 0 is for the entry of the current system."
  50605. msgstr ""
  50606. #. type: item
  50607. #: guix-git/doc/guix.texi:34096
  50608. #, no-wrap
  50609. msgid "@code{timeout} (default: @code{5})"
  50610. msgstr ""
  50611. #. type: table
  50612. #: guix-git/doc/guix.texi:34099
  50613. msgid "The number of seconds to wait for keyboard input before booting. Set to 0 to boot immediately, and to -1 to wait indefinitely."
  50614. msgstr ""
  50615. #. type: cindex
  50616. #: guix-git/doc/guix.texi:34100
  50617. #, no-wrap
  50618. msgid "keyboard layout, for the bootloader"
  50619. msgstr ""
  50620. #. type: table
  50621. #: guix-git/doc/guix.texi:34104
  50622. msgid "If this is @code{#f}, the bootloader's menu (if any) uses the default keyboard layout, usually US@tie{}English (``qwerty'')."
  50623. msgstr ""
  50624. #. type: table
  50625. #: guix-git/doc/guix.texi:34107
  50626. msgid "Otherwise, this must be a @code{keyboard-layout} object (@pxref{Keyboard Layout})."
  50627. msgstr ""
  50628. #. type: quotation
  50629. #: guix-git/doc/guix.texi:34111
  50630. msgid "This option is currently ignored by bootloaders other than @code{grub} and @code{grub-efi}."
  50631. msgstr ""
  50632. #. type: item
  50633. #: guix-git/doc/guix.texi:34113
  50634. #, no-wrap
  50635. msgid "@code{theme} (default: @var{#f})"
  50636. msgstr ""
  50637. #. type: table
  50638. #: guix-git/doc/guix.texi:34117
  50639. 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."
  50640. msgstr ""
  50641. #. type: item
  50642. #: guix-git/doc/guix.texi:34118
  50643. #, fuzzy, no-wrap
  50644. msgid "@code{terminal-outputs} (default: @code{'(gfxterm)})"
  50645. msgstr "@code{features} (@code{'()})"
  50646. #. type: table
  50647. #: guix-git/doc/guix.texi:34125
  50648. 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})."
  50649. msgstr ""
  50650. #. type: item
  50651. #: guix-git/doc/guix.texi:34126
  50652. #, no-wrap
  50653. msgid "@code{terminal-inputs} (default: @code{'()})"
  50654. msgstr ""
  50655. #. type: table
  50656. #: guix-git/doc/guix.texi:34134
  50657. 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})."
  50658. msgstr ""
  50659. #. type: item
  50660. #: guix-git/doc/guix.texi:34135
  50661. #, no-wrap
  50662. msgid "@code{serial-unit} (default: @code{#f})"
  50663. msgstr ""
  50664. #. type: table
  50665. #: guix-git/doc/guix.texi:34139
  50666. 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})."
  50667. msgstr ""
  50668. #. type: item
  50669. #: guix-git/doc/guix.texi:34140
  50670. #, no-wrap
  50671. msgid "@code{serial-speed} (default: @code{#f})"
  50672. msgstr ""
  50673. #. type: table
  50674. #: guix-git/doc/guix.texi:34144
  50675. 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})."
  50676. msgstr ""
  50677. #. type: cindex
  50678. #: guix-git/doc/guix.texi:34148
  50679. #, no-wrap
  50680. msgid "dual boot"
  50681. msgstr ""
  50682. #. type: cindex
  50683. #: guix-git/doc/guix.texi:34149
  50684. #, no-wrap
  50685. msgid "boot menu"
  50686. msgstr ""
  50687. #. type: Plain text
  50688. #: guix-git/doc/guix.texi:34155
  50689. 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:"
  50690. msgstr ""
  50691. #. type: lisp
  50692. #: guix-git/doc/guix.texi:34162
  50693. #, no-wrap
  50694. msgid ""
  50695. "(menu-entry\n"
  50696. " (label \"The Other Distro\")\n"
  50697. " (linux \"/boot/old/vmlinux-2.6.32\")\n"
  50698. " (linux-arguments '(\"root=/dev/sda2\"))\n"
  50699. " (initrd \"/boot/old/initrd\"))\n"
  50700. msgstr ""
  50701. #. type: Plain text
  50702. #: guix-git/doc/guix.texi:34165
  50703. msgid "Details below."
  50704. msgstr ""
  50705. #. type: deftp
  50706. #: guix-git/doc/guix.texi:34166
  50707. #, no-wrap
  50708. msgid "{Data Type} menu-entry"
  50709. msgstr ""
  50710. #. type: deftp
  50711. #: guix-git/doc/guix.texi:34168
  50712. msgid "The type of an entry in the bootloader menu."
  50713. msgstr ""
  50714. #. type: table
  50715. #: guix-git/doc/guix.texi:34173
  50716. msgid "The label to show in the menu---e.g., @code{\"GNU\"}."
  50717. msgstr ""
  50718. #. type: item
  50719. #: guix-git/doc/guix.texi:34174
  50720. #, fuzzy, no-wrap
  50721. msgid "@code{linux} (default: @code{#f})"
  50722. msgstr "@code{challenge}(默认值:@code{#f})"
  50723. #. type: table
  50724. #: guix-git/doc/guix.texi:34176
  50725. msgid "The Linux kernel image to boot, for example:"
  50726. msgstr ""
  50727. #. type: lisp
  50728. #: guix-git/doc/guix.texi:34179
  50729. #, no-wrap
  50730. msgid "(file-append linux-libre \"/bzImage\")\n"
  50731. msgstr ""
  50732. #. type: table
  50733. #: guix-git/doc/guix.texi:34184
  50734. 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:"
  50735. msgstr ""
  50736. #. type: example
  50737. #: guix-git/doc/guix.texi:34187
  50738. #, no-wrap
  50739. msgid "\"(hd0,msdos1)/boot/vmlinuz\"\n"
  50740. msgstr ""
  50741. #. type: table
  50742. #: guix-git/doc/guix.texi:34191
  50743. msgid "If the device is specified explicitly as above, then the @code{device} field is ignored entirely."
  50744. msgstr ""
  50745. #. type: item
  50746. #: guix-git/doc/guix.texi:34192
  50747. #, no-wrap
  50748. msgid "@code{linux-arguments} (default: @code{()})"
  50749. msgstr ""
  50750. #. type: table
  50751. #: guix-git/doc/guix.texi:34195
  50752. msgid "The list of extra Linux kernel command-line arguments---e.g., @code{(\"console=ttyS0\")}."
  50753. msgstr ""
  50754. #. type: item
  50755. #: guix-git/doc/guix.texi:34196
  50756. #, fuzzy, no-wrap
  50757. msgid "@code{initrd} (default: @code{#f})"
  50758. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  50759. #. type: table
  50760. #: guix-git/doc/guix.texi:34199
  50761. msgid "A G-Expression or string denoting the file name of the initial RAM disk to use (@pxref{G-Expressions})."
  50762. msgstr ""
  50763. #. type: item
  50764. #: guix-git/doc/guix.texi:34200
  50765. #, no-wrap
  50766. msgid "@code{device} (default: @code{#f})"
  50767. msgstr ""
  50768. #. type: table
  50769. #: guix-git/doc/guix.texi:34203
  50770. 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})."
  50771. msgstr ""
  50772. #. type: table
  50773. #: guix-git/doc/guix.texi:34209
  50774. 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}."
  50775. msgstr ""
  50776. #. type: item
  50777. #: guix-git/doc/guix.texi:34210
  50778. #, fuzzy, no-wrap
  50779. msgid "@code{multiboot-kernel} (default: @code{#f})"
  50780. msgstr "@code{challenge}(默认值:@code{#f})"
  50781. #. type: table
  50782. #: guix-git/doc/guix.texi:34214
  50783. 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:"
  50784. msgstr ""
  50785. #. type: lisp
  50786. #: guix-git/doc/guix.texi:34217
  50787. #, no-wrap
  50788. msgid "(file-append mach \"/boot/gnumach\")\n"
  50789. msgstr ""
  50790. #. type: item
  50791. #: guix-git/doc/guix.texi:34219
  50792. #, fuzzy, no-wrap
  50793. msgid "@code{multiboot-arguments} (default: @code{()})"
  50794. msgstr "@code{features} (@code{'()})"
  50795. #. type: table
  50796. #: guix-git/doc/guix.texi:34221
  50797. msgid "The list of extra command-line arguments for the multiboot-kernel."
  50798. msgstr ""
  50799. #. type: item
  50800. #: guix-git/doc/guix.texi:34222
  50801. #, fuzzy, no-wrap
  50802. msgid "@code{multiboot-modules} (default: @code{()})"
  50803. msgstr "@code{features} (@code{'()})"
  50804. #. type: table
  50805. #: guix-git/doc/guix.texi:34224
  50806. msgid "The list of commands for loading Multiboot modules. For example:"
  50807. msgstr ""
  50808. #. type: lisp
  50809. #: guix-git/doc/guix.texi:34230
  50810. #, no-wrap
  50811. msgid ""
  50812. "(list (list (file-append hurd \"/hurd/ext2fs.static\") \"ext2fs\"\n"
  50813. " @dots{})\n"
  50814. " (list (file-append libc \"/lib/ld.so.1\") \"exec\"\n"
  50815. " @dots{}))\n"
  50816. msgstr ""
  50817. #. type: cindex
  50818. #: guix-git/doc/guix.texi:34235 guix-git/doc/guix.texi:34294
  50819. #, no-wrap
  50820. msgid "HDPI"
  50821. msgstr ""
  50822. #. type: cindex
  50823. #: guix-git/doc/guix.texi:34236 guix-git/doc/guix.texi:34295
  50824. #, no-wrap
  50825. msgid "HiDPI"
  50826. msgstr ""
  50827. #. type: cindex
  50828. #: guix-git/doc/guix.texi:34237 guix-git/doc/guix.texi:34296
  50829. #, fuzzy, no-wrap
  50830. msgid "resolution"
  50831. msgstr "隔离"
  50832. #. type: Plain text
  50833. #: guix-git/doc/guix.texi:34241
  50834. msgid "For now only GRUB has theme support. GRUB themes are created using the @code{grub-theme} form, which is not fully documented yet."
  50835. msgstr ""
  50836. #. type: deftp
  50837. #: guix-git/doc/guix.texi:34242
  50838. #, fuzzy, no-wrap
  50839. msgid "{Data Type} grub-theme"
  50840. msgstr "{数据类型} build-machine"
  50841. #. type: deftp
  50842. #: guix-git/doc/guix.texi:34244
  50843. msgid "Data type representing the configuration of the GRUB theme."
  50844. msgstr ""
  50845. #. type: item
  50846. #: guix-git/doc/guix.texi:34246
  50847. #, fuzzy, no-wrap
  50848. msgid "@code{gfxmode} (default: @code{'(\"auto\")})"
  50849. msgstr "@code{mate}(默认值:@code{mate})"
  50850. #. type: table
  50851. #: guix-git/doc/guix.texi:34249
  50852. msgid "The GRUB @code{gfxmode} to set (a list of screen resolution strings, @pxref{gfxmode,,, grub, GNU GRUB manual})."
  50853. msgstr ""
  50854. #. type: deffn
  50855. #: guix-git/doc/guix.texi:34252
  50856. #, no-wrap
  50857. msgid "{Scheme Procedure} grub-theme"
  50858. msgstr ""
  50859. #. type: deffn
  50860. #: guix-git/doc/guix.texi:34256
  50861. msgid "Return the default GRUB theme used by the operating system if no @code{theme} field is specified in @code{bootloader-configuration} record."
  50862. msgstr ""
  50863. #. type: deffn
  50864. #: guix-git/doc/guix.texi:34259
  50865. msgid "It comes with a fancy background image displaying the GNU and Guix logos."
  50866. msgstr ""
  50867. #. type: Plain text
  50868. #: guix-git/doc/guix.texi:34263
  50869. msgid "For example, to override the default resolution, you may use something like"
  50870. msgstr ""
  50871. #. type: lisp
  50872. #: guix-git/doc/guix.texi:34271
  50873. #, no-wrap
  50874. msgid ""
  50875. "(bootloader\n"
  50876. " (bootloader-configuration\n"
  50877. " ;; @dots{}\n"
  50878. " (theme (grub-theme\n"
  50879. " (inherit (grub-theme))\n"
  50880. " (gfxmode '(\"1024x786x32\" \"auto\"))))))\n"
  50881. msgstr ""
  50882. #. type: section
  50883. #: guix-git/doc/guix.texi:34274
  50884. #, no-wrap
  50885. msgid "Invoking @code{guix system}"
  50886. msgstr ""
  50887. #. type: Plain text
  50888. #: guix-git/doc/guix.texi:34279
  50889. 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:"
  50890. msgstr ""
  50891. #. type: example
  50892. #: guix-git/doc/guix.texi:34282
  50893. #, no-wrap
  50894. msgid "guix system @var{options}@dots{} @var{action} @var{file}\n"
  50895. msgstr ""
  50896. #. type: Plain text
  50897. #: guix-git/doc/guix.texi:34288
  50898. 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:"
  50899. msgstr ""
  50900. #. type: item
  50901. #: guix-git/doc/guix.texi:34290 guix-git/doc/guix.texi:36564
  50902. #, no-wrap
  50903. msgid "search"
  50904. msgstr ""
  50905. #. type: table
  50906. #: guix-git/doc/guix.texi:34293
  50907. msgid "Display available service type definitions that match the given regular expressions, sorted by relevance:"
  50908. msgstr ""
  50909. #. type: example
  50910. #: guix-git/doc/guix.texi:34315
  50911. #, no-wrap
  50912. msgid ""
  50913. "$ guix system search console\n"
  50914. "name: console-fonts\n"
  50915. "location: gnu/services/base.scm:806:2\n"
  50916. "extends: shepherd-root\n"
  50917. "description: Install the given fonts on the specified ttys (fonts are per\n"
  50918. "+ virtual console on GNU/Linux). The value of this service is a list of\n"
  50919. "+ tty/font pairs. The font can be the name of a font provided by the `kbd'\n"
  50920. "+ package or any valid argument to `setfont', as in this example:\n"
  50921. "+\n"
  50922. "+ '((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  50923. "+ (\"tty2\" . (file-append\n"
  50924. "+ font-tamzen\n"
  50925. "+ \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  50926. "+ (\"tty3\" . (file-append\n"
  50927. "+ font-terminus\n"
  50928. "+ \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  50929. "relevance: 9\n"
  50930. "\n"
  50931. msgstr ""
  50932. #. type: example
  50933. #: guix-git/doc/guix.texi:34321
  50934. #, no-wrap
  50935. msgid ""
  50936. "name: mingetty\n"
  50937. "location: gnu/services/base.scm:1190:2\n"
  50938. "extends: shepherd-root\n"
  50939. "description: Provide console login using the `mingetty' program.\n"
  50940. "relevance: 2\n"
  50941. "\n"
  50942. msgstr ""
  50943. #. type: example
  50944. #: guix-git/doc/guix.texi:34328
  50945. #, no-wrap
  50946. msgid ""
  50947. "name: login\n"
  50948. "location: gnu/services/base.scm:860:2\n"
  50949. "extends: pam\n"
  50950. "description: Provide a console log-in service as specified by its\n"
  50951. "+ configuration value, a `login-configuration' object.\n"
  50952. "relevance: 2\n"
  50953. "\n"
  50954. msgstr ""
  50955. #. type: example
  50956. #: guix-git/doc/guix.texi:34330 guix-git/doc/guix.texi:36617
  50957. #, no-wrap
  50958. msgid "@dots{}\n"
  50959. msgstr ""
  50960. #. type: table
  50961. #: guix-git/doc/guix.texi:34335 guix-git/doc/guix.texi:36622
  50962. 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})."
  50963. msgstr ""
  50964. #. type: item
  50965. #: guix-git/doc/guix.texi:34336 guix-git/doc/guix.texi:36623
  50966. #, no-wrap
  50967. msgid "reconfigure"
  50968. msgstr ""
  50969. #. type: table
  50970. #: guix-git/doc/guix.texi:34341
  50971. 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.}."
  50972. msgstr ""
  50973. #. type: quotation
  50974. #: guix-git/doc/guix.texi:34349
  50975. 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."
  50976. msgstr ""
  50977. #. type: table
  50978. #: guix-git/doc/guix.texi:34357
  50979. 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})."
  50980. msgstr ""
  50981. #. type: table
  50982. #: guix-git/doc/guix.texi:34363
  50983. 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})."
  50984. msgstr ""
  50985. #. type: table
  50986. #: guix-git/doc/guix.texi:34368
  50987. 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."
  50988. msgstr ""
  50989. #. type: cindex
  50990. #: guix-git/doc/guix.texi:34369 guix-git/doc/guix.texi:34709
  50991. #: guix-git/doc/guix.texi:35661
  50992. #, fuzzy, no-wrap
  50993. msgid "provenance tracking, of the operating system"
  50994. msgstr "配置操作系统。"
  50995. #. type: table
  50996. #: guix-git/doc/guix.texi:34374
  50997. 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:"
  50998. msgstr ""
  50999. #. type: example
  51000. #: guix-git/doc/guix.texi:34377
  51001. #, no-wrap
  51002. msgid "guix system describe\n"
  51003. msgstr "guix system describe\n"
  51004. #. type: table
  51005. #: guix-git/doc/guix.texi:34383
  51006. 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:"
  51007. msgstr ""
  51008. #. type: example
  51009. #: guix-git/doc/guix.texi:34389
  51010. #, no-wrap
  51011. msgid ""
  51012. "guix time-machine \\\n"
  51013. " -C /var/guix/profiles/system-@var{n}-link/channels.scm -- \\\n"
  51014. " system reconfigure \\\n"
  51015. " /var/guix/profiles/system-@var{n}-link/configuration.scm\n"
  51016. msgstr ""
  51017. #. type: table
  51018. #: guix-git/doc/guix.texi:34395
  51019. 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."
  51020. msgstr ""
  51021. #. type: table
  51022. #: guix-git/doc/guix.texi:34401
  51023. 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}."
  51024. msgstr ""
  51025. #. type: item
  51026. #: guix-git/doc/guix.texi:34402 guix-git/doc/guix.texi:36682
  51027. #, no-wrap
  51028. msgid "switch-generation"
  51029. msgstr ""
  51030. #. type: table
  51031. #: guix-git/doc/guix.texi:34411
  51032. 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."
  51033. msgstr ""
  51034. #. type: table
  51035. #: guix-git/doc/guix.texi:34415
  51036. msgid "The bootloader itself is not being reinstalled when using this command. Thus, the installed bootloader is used with an updated configuration file."
  51037. msgstr ""
  51038. #. type: table
  51039. #: guix-git/doc/guix.texi:34419
  51040. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to system generation 7:"
  51041. msgstr ""
  51042. #. type: example
  51043. #: guix-git/doc/guix.texi:34422
  51044. #, no-wrap
  51045. msgid "guix system switch-generation 7\n"
  51046. msgstr ""
  51047. #. type: table
  51048. #: guix-git/doc/guix.texi:34430 guix-git/doc/guix.texi:36701
  51049. 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:"
  51050. msgstr ""
  51051. #. type: example
  51052. #: guix-git/doc/guix.texi:34433
  51053. #, no-wrap
  51054. msgid "guix system switch-generation -- -1\n"
  51055. msgstr ""
  51056. #. type: table
  51057. #: guix-git/doc/guix.texi:34441
  51058. 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."
  51059. msgstr ""
  51060. #. type: table
  51061. #: guix-git/doc/guix.texi:34443 guix-git/doc/guix.texi:36707
  51062. msgid "This action will fail if the specified generation does not exist."
  51063. msgstr ""
  51064. #. type: item
  51065. #: guix-git/doc/guix.texi:34444 guix-git/doc/guix.texi:36708
  51066. #, no-wrap
  51067. msgid "roll-back"
  51068. msgstr ""
  51069. #. type: table
  51070. #: guix-git/doc/guix.texi:34450
  51071. 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}."
  51072. msgstr ""
  51073. #. type: table
  51074. #: guix-git/doc/guix.texi:34454
  51075. msgid "Currently, as with @command{switch-generation}, you must reboot after running this action to actually start using the preceding system generation."
  51076. msgstr ""
  51077. #. type: item
  51078. #: guix-git/doc/guix.texi:34455 guix-git/doc/guix.texi:36714
  51079. #, no-wrap
  51080. msgid "delete-generations"
  51081. msgstr ""
  51082. #. type: cindex
  51083. #: guix-git/doc/guix.texi:34456
  51084. #, no-wrap
  51085. msgid "deleting system generations"
  51086. msgstr ""
  51087. #. type: cindex
  51088. #: guix-git/doc/guix.texi:34457 guix-git/doc/guix.texi:36716
  51089. #, no-wrap
  51090. msgid "saving space"
  51091. msgstr ""
  51092. #. type: table
  51093. #: guix-git/doc/guix.texi:34461
  51094. msgid "Delete system generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  51095. msgstr ""
  51096. #. type: table
  51097. #: guix-git/doc/guix.texi:34465
  51098. 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:"
  51099. msgstr ""
  51100. #. type: example
  51101. #: guix-git/doc/guix.texi:34468
  51102. #, no-wrap
  51103. msgid "guix system delete-generations\n"
  51104. msgstr ""
  51105. #. type: table
  51106. #: guix-git/doc/guix.texi:34472
  51107. msgid "You can also select the generations you want to delete. The example below deletes all the system generations that are more than two months old:"
  51108. msgstr ""
  51109. #. type: example
  51110. #: guix-git/doc/guix.texi:34475
  51111. #, no-wrap
  51112. msgid "guix system delete-generations 2m\n"
  51113. msgstr ""
  51114. #. type: table
  51115. #: guix-git/doc/guix.texi:34480
  51116. 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."
  51117. msgstr ""
  51118. #. type: table
  51119. #: guix-git/doc/guix.texi:34485
  51120. 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."
  51121. msgstr ""
  51122. #. type: item
  51123. #: guix-git/doc/guix.texi:34486
  51124. #, no-wrap
  51125. msgid "init"
  51126. msgstr ""
  51127. #. type: table
  51128. #: guix-git/doc/guix.texi:34490
  51129. 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:"
  51130. msgstr ""
  51131. #. type: example
  51132. #: guix-git/doc/guix.texi:34493
  51133. #, no-wrap
  51134. msgid "guix system init my-os-config.scm /mnt\n"
  51135. msgstr ""
  51136. #. type: table
  51137. #: guix-git/doc/guix.texi:34500
  51138. 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."
  51139. msgstr ""
  51140. #. type: table
  51141. #: guix-git/doc/guix.texi:34504
  51142. msgid "This command also installs bootloader on the targets specified in @file{my-os-config}, unless the @option{--no-bootloader} option was passed."
  51143. msgstr ""
  51144. #. type: item
  51145. #: guix-git/doc/guix.texi:34505
  51146. #, no-wrap
  51147. msgid "vm"
  51148. msgstr ""
  51149. #. type: cindex
  51150. #: guix-git/doc/guix.texi:34506 guix-git/doc/guix.texi:35082
  51151. #, no-wrap
  51152. msgid "virtual machine"
  51153. msgstr ""
  51154. #. type: cindex
  51155. #: guix-git/doc/guix.texi:34507
  51156. #, no-wrap
  51157. msgid "VM"
  51158. msgstr ""
  51159. #. type: anchor{#1}
  51160. #: guix-git/doc/guix.texi:34511
  51161. msgid "guix system vm"
  51162. msgstr ""
  51163. #. type: table
  51164. #: guix-git/doc/guix.texi:34511
  51165. msgid "Build a virtual machine (VM) that contains the operating system declared in @var{file}, and return a script to run that VM."
  51166. msgstr ""
  51167. #. type: quotation
  51168. #: guix-git/doc/guix.texi:34519
  51169. 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})."
  51170. msgstr ""
  51171. #. type: table
  51172. #: guix-git/doc/guix.texi:34524
  51173. 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:"
  51174. msgstr ""
  51175. #. type: example
  51176. #: guix-git/doc/guix.texi:34527
  51177. #, no-wrap
  51178. msgid "$ /gnu/store/@dots{}-run-vm.sh -m 1024 -smp 2 -nic user,model=virtio-net-pci\n"
  51179. msgstr ""
  51180. #. type: table
  51181. #: guix-git/doc/guix.texi:34530
  51182. msgid "It's possible to combine the two steps into one:"
  51183. msgstr ""
  51184. #. type: example
  51185. #: guix-git/doc/guix.texi:34533
  51186. #, no-wrap
  51187. msgid "$ $(guix system vm my-config.scm) -m 1024 -smp 2 -nic user,model=virtio-net-pci\n"
  51188. msgstr ""
  51189. #. type: table
  51190. #: guix-git/doc/guix.texi:34536
  51191. msgid "The VM shares its store with the host system."
  51192. msgstr ""
  51193. #. type: table
  51194. #: guix-git/doc/guix.texi:34541
  51195. 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."
  51196. msgstr ""
  51197. #. type: table
  51198. #: guix-git/doc/guix.texi:34545
  51199. 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:"
  51200. msgstr ""
  51201. #. type: example
  51202. #: guix-git/doc/guix.texi:34549
  51203. #, no-wrap
  51204. msgid ""
  51205. "guix system vm my-config.scm \\\n"
  51206. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  51207. msgstr ""
  51208. #. type: table
  51209. #: guix-git/doc/guix.texi:34554
  51210. 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."
  51211. msgstr ""
  51212. #. type: table
  51213. #: guix-git/doc/guix.texi:34559
  51214. 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."
  51215. msgstr ""
  51216. #. type: table
  51217. #: guix-git/doc/guix.texi:34562
  51218. msgid "The @option{--image-size} option can be used to specify the size of the image."
  51219. msgstr ""
  51220. #. type: table
  51221. #: guix-git/doc/guix.texi:34569
  51222. msgid "The @option{--no-graphic} option will instruct @command{guix system} to spawn a headless VM that will use the invoking tty for IO. Among other things, this enables copy-pasting, and scrollback. Use the @kbd{ctrl-a} prefix to issue QEMU commands; e.g. @kbd{ctrl-a h} prints a help, @kbd{ctrl-a x} quits the VM, and @kbd{ctrl-a c} switches between the QEMU monitor and the VM."
  51223. msgstr ""
  51224. #. type: cindex
  51225. #: guix-git/doc/guix.texi:34570
  51226. #, no-wrap
  51227. msgid "System images, creation in various formats"
  51228. msgstr ""
  51229. #. type: cindex
  51230. #: guix-git/doc/guix.texi:34571
  51231. #, no-wrap
  51232. msgid "Creating system images in various formats"
  51233. msgstr ""
  51234. #. type: item
  51235. #: guix-git/doc/guix.texi:34572
  51236. #, no-wrap
  51237. msgid "image"
  51238. msgstr ""
  51239. #. type: itemx
  51240. #: guix-git/doc/guix.texi:34573
  51241. #, no-wrap
  51242. msgid "docker-image"
  51243. msgstr ""
  51244. #. type: table
  51245. #: guix-git/doc/guix.texi:34581
  51246. 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}."
  51247. msgstr ""
  51248. #. type: cindex
  51249. #: guix-git/doc/guix.texi:34582
  51250. #, no-wrap
  51251. msgid "image, creating disk images"
  51252. msgstr ""
  51253. #. type: table
  51254. #: guix-git/doc/guix.texi:34594
  51255. 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:"
  51256. msgstr ""
  51257. #. type: example
  51258. #: guix-git/doc/guix.texi:34602
  51259. #, no-wrap
  51260. msgid ""
  51261. "image=$(guix system image --image-type=qcow2 \\\n"
  51262. " gnu/system/examples/lightweight-desktop.tmpl)\n"
  51263. "cp $image /tmp/my-image.qcow2\n"
  51264. "chmod +w /tmp/my-image.qcow2\n"
  51265. "qemu-system-x86_64 -enable-kvm -hda /tmp/my-image.qcow2 -m 1000 \\\n"
  51266. " -bios $(guix build ovmf)/share/firmware/ovmf_x64.bin\n"
  51267. msgstr ""
  51268. #. type: table
  51269. #: guix-git/doc/guix.texi:34608
  51270. 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:"
  51271. msgstr ""
  51272. #. type: example
  51273. #: guix-git/doc/guix.texi:34611
  51274. #, no-wrap
  51275. msgid "# dd if=$(guix system image my-os.scm) of=/dev/sdc status=progress\n"
  51276. msgstr ""
  51277. #. type: table
  51278. #: guix-git/doc/guix.texi:34615
  51279. msgid "The @code{--list-image-types} command lists all the available image types."
  51280. msgstr ""
  51281. #. type: cindex
  51282. #: guix-git/doc/guix.texi:34616
  51283. #, no-wrap
  51284. msgid "creating virtual machine images"
  51285. msgstr ""
  51286. #. type: table
  51287. #: guix-git/doc/guix.texi:34625
  51288. 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)."
  51289. msgstr ""
  51290. #. type: cindex
  51291. #: guix-git/doc/guix.texi:34626
  51292. #, no-wrap
  51293. msgid "docker-image, creating docker images"
  51294. msgstr ""
  51295. #. type: table
  51296. #: guix-git/doc/guix.texi:34632
  51297. 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:"
  51298. msgstr ""
  51299. #. type: example
  51300. #: guix-git/doc/guix.texi:34637
  51301. #, no-wrap
  51302. msgid ""
  51303. "image_id=\"$(docker load < guix-system-docker-image.tar.gz)\"\n"
  51304. "container_id=\"$(docker create $image_id)\"\n"
  51305. "docker start $container_id\n"
  51306. msgstr ""
  51307. #. type: table
  51308. #: guix-git/doc/guix.texi:34644
  51309. 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}:"
  51310. msgstr ""
  51311. #. type: example
  51312. #: guix-git/doc/guix.texi:34647
  51313. #, no-wrap
  51314. msgid "docker exec -ti $container_id /run/current-system/profile/bin/bash --login\n"
  51315. msgstr ""
  51316. #. type: table
  51317. #: guix-git/doc/guix.texi:34654
  51318. 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}."
  51319. msgstr ""
  51320. #. type: table
  51321. #: guix-git/doc/guix.texi:34658
  51322. 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."
  51323. msgstr ""
  51324. #. type: table
  51325. #: guix-git/doc/guix.texi:34666
  51326. 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."
  51327. msgstr ""
  51328. #. type: table
  51329. #: guix-git/doc/guix.texi:34670
  51330. 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."
  51331. msgstr ""
  51332. #. type: table
  51333. #: guix-git/doc/guix.texi:34674
  51334. 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:"
  51335. msgstr ""
  51336. #. type: example
  51337. #: guix-git/doc/guix.texi:34678
  51338. #, no-wrap
  51339. msgid ""
  51340. "guix system container my-config.scm \\\n"
  51341. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  51342. msgstr ""
  51343. #. type: quotation
  51344. #: guix-git/doc/guix.texi:34682
  51345. msgid "This option requires Linux-libre 3.19 or newer."
  51346. msgstr ""
  51347. #. type: Plain text
  51348. #: guix-git/doc/guix.texi:34689 guix-git/doc/guix.texi:36778
  51349. 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:"
  51350. msgstr ""
  51351. #. type: table
  51352. #: guix-git/doc/guix.texi:34698
  51353. 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})."
  51354. msgstr ""
  51355. #. type: table
  51356. #: guix-git/doc/guix.texi:34703
  51357. msgid "Attempt to build for @var{system} instead of the host system type. This works as per @command{guix build} (@pxref{Invoking guix build})."
  51358. msgstr ""
  51359. #. type: table
  51360. #: guix-git/doc/guix.texi:34708
  51361. msgid "Return the derivation file name of the given operating system without building anything."
  51362. msgstr ""
  51363. #. type: table
  51364. #: guix-git/doc/guix.texi:34717
  51365. 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:"
  51366. msgstr ""
  51367. #. type: example
  51368. #: guix-git/doc/guix.texi:34720
  51369. #, no-wrap
  51370. msgid "guix system image -t qcow2 --save-provenance config.scm\n"
  51371. msgstr ""
  51372. #. type: table
  51373. #: guix-git/doc/guix.texi:34727
  51374. 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."
  51375. msgstr ""
  51376. #. type: item
  51377. #: guix-git/doc/guix.texi:34728
  51378. #, fuzzy, no-wrap
  51379. msgid "--image-type=@var{type}"
  51380. msgstr "--log-compression=@var{type}"
  51381. #. type: table
  51382. #: guix-git/doc/guix.texi:34731
  51383. msgid "For the @code{image} action, create an image with given @var{type}."
  51384. msgstr ""
  51385. #. type: table
  51386. #: guix-git/doc/guix.texi:34734
  51387. msgid "When this option is omitted, @command{guix system} uses the @code{efi-raw} image type."
  51388. msgstr ""
  51389. #. type: cindex
  51390. #: guix-git/doc/guix.texi:34735
  51391. #, no-wrap
  51392. msgid "ISO-9660 format"
  51393. msgstr ""
  51394. #. type: cindex
  51395. #: guix-git/doc/guix.texi:34736
  51396. #, no-wrap
  51397. msgid "CD image format"
  51398. msgstr ""
  51399. #. type: cindex
  51400. #: guix-git/doc/guix.texi:34737
  51401. #, no-wrap
  51402. msgid "DVD image format"
  51403. msgstr ""
  51404. #. type: table
  51405. #: guix-git/doc/guix.texi:34740
  51406. msgid "@option{--image-type=iso9660} produces an ISO-9660 image, suitable for burning on CDs and DVDs."
  51407. msgstr ""
  51408. #. type: item
  51409. #: guix-git/doc/guix.texi:34741
  51410. #, no-wrap
  51411. msgid "--image-size=@var{size}"
  51412. msgstr ""
  51413. #. type: table
  51414. #: guix-git/doc/guix.texi:34746
  51415. 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})."
  51416. msgstr ""
  51417. #. type: table
  51418. #: guix-git/doc/guix.texi:34750
  51419. 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}."
  51420. msgstr ""
  51421. #. type: table
  51422. #: guix-git/doc/guix.texi:34755
  51423. msgid "For the @code{container} action, allow containers to access the host network, that is, do not create a network namespace."
  51424. msgstr ""
  51425. #. type: item
  51426. #: guix-git/doc/guix.texi:34761
  51427. #, no-wrap
  51428. msgid "--skip-checks"
  51429. msgstr ""
  51430. #. type: table
  51431. #: guix-git/doc/guix.texi:34763
  51432. msgid "Skip pre-installation safety checks."
  51433. msgstr ""
  51434. #. type: table
  51435. #: guix-git/doc/guix.texi:34770
  51436. 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."
  51437. msgstr ""
  51438. #. type: table
  51439. #: guix-git/doc/guix.texi:34773
  51440. msgid "Instruct @command{guix system reconfigure} to allow system downgrades."
  51441. msgstr ""
  51442. #. type: table
  51443. #: guix-git/doc/guix.texi:34781
  51444. 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."
  51445. msgstr ""
  51446. #. type: cindex
  51447. #: guix-git/doc/guix.texi:34787
  51448. #, no-wrap
  51449. msgid "on-error"
  51450. msgstr ""
  51451. #. type: cindex
  51452. #: guix-git/doc/guix.texi:34788
  51453. #, no-wrap
  51454. msgid "on-error strategy"
  51455. msgstr ""
  51456. #. type: cindex
  51457. #: guix-git/doc/guix.texi:34789
  51458. #, no-wrap
  51459. msgid "error strategy"
  51460. msgstr ""
  51461. #. type: item
  51462. #: guix-git/doc/guix.texi:34790
  51463. #, no-wrap
  51464. msgid "--on-error=@var{strategy}"
  51465. msgstr ""
  51466. #. type: table
  51467. #: guix-git/doc/guix.texi:34793
  51468. msgid "Apply @var{strategy} when an error occurs when reading @var{file}. @var{strategy} may be one of the following:"
  51469. msgstr ""
  51470. #. type: item
  51471. #: guix-git/doc/guix.texi:34795
  51472. #, no-wrap
  51473. msgid "nothing-special"
  51474. msgstr ""
  51475. #. type: table
  51476. #: guix-git/doc/guix.texi:34797
  51477. msgid "Report the error concisely and exit. This is the default strategy."
  51478. msgstr ""
  51479. #. type: item
  51480. #: guix-git/doc/guix.texi:34798
  51481. #, no-wrap
  51482. msgid "backtrace"
  51483. msgstr ""
  51484. #. type: table
  51485. #: guix-git/doc/guix.texi:34800
  51486. msgid "Likewise, but also display a backtrace."
  51487. msgstr ""
  51488. #. type: item
  51489. #: guix-git/doc/guix.texi:34801
  51490. #, no-wrap
  51491. msgid "debug"
  51492. msgstr ""
  51493. #. type: table
  51494. #: guix-git/doc/guix.texi:34807
  51495. 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."
  51496. msgstr ""
  51497. #. type: Plain text
  51498. #: guix-git/doc/guix.texi:34814
  51499. 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:"
  51500. msgstr ""
  51501. #. type: item
  51502. #: guix-git/doc/guix.texi:34817 guix-git/doc/guix.texi:36741
  51503. #, no-wrap
  51504. msgid "describe"
  51505. msgstr ""
  51506. #. type: table
  51507. #: guix-git/doc/guix.texi:34820
  51508. msgid "Describe the current system generation: its file name, the kernel and bootloader used, etc., as well as provenance information when available."
  51509. msgstr ""
  51510. #. type: item
  51511. #: guix-git/doc/guix.texi:34821 guix-git/doc/guix.texi:36745
  51512. #, no-wrap
  51513. msgid "list-generations"
  51514. msgstr ""
  51515. #. type: table
  51516. #: guix-git/doc/guix.texi:34826
  51517. 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})."
  51518. msgstr ""
  51519. #. type: table
  51520. #: guix-git/doc/guix.texi:34831 guix-git/doc/guix.texi:36755
  51521. 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:"
  51522. msgstr ""
  51523. #. type: example
  51524. #: guix-git/doc/guix.texi:34834
  51525. #, no-wrap
  51526. msgid "$ guix system list-generations 10d\n"
  51527. msgstr ""
  51528. #. type: Plain text
  51529. #: guix-git/doc/guix.texi:34841
  51530. 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:"
  51531. msgstr ""
  51532. #. type: anchor{#1}
  51533. #: guix-git/doc/guix.texi:34843
  51534. msgid "system-extension-graph"
  51535. msgstr ""
  51536. #. type: item
  51537. #: guix-git/doc/guix.texi:34845
  51538. #, no-wrap
  51539. msgid "extension-graph"
  51540. msgstr ""
  51541. #. type: table
  51542. #: guix-git/doc/guix.texi:34852
  51543. 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}}):"
  51544. msgstr ""
  51545. #. type: table
  51546. #: guix-git/doc/guix.texi:34854
  51547. msgid "The command:"
  51548. msgstr ""
  51549. #. type: example
  51550. #: guix-git/doc/guix.texi:34857
  51551. #, no-wrap
  51552. msgid "$ guix system extension-graph @var{file} | xdot -\n"
  51553. msgstr ""
  51554. #. type: table
  51555. #: guix-git/doc/guix.texi:34860
  51556. msgid "shows the extension relations among services."
  51557. msgstr ""
  51558. #. type: anchor{#1}
  51559. #: guix-git/doc/guix.texi:34862
  51560. msgid "system-shepherd-graph"
  51561. msgstr ""
  51562. #. type: item
  51563. #: guix-git/doc/guix.texi:34862
  51564. #, no-wrap
  51565. msgid "shepherd-graph"
  51566. msgstr ""
  51567. #. type: table
  51568. #: guix-git/doc/guix.texi:34867
  51569. 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."
  51570. msgstr ""
  51571. #. type: table
  51572. #: guix-git/doc/guix.texi:34870
  51573. msgid "Again, the default output format is Dot/Graphviz, but you can pass @option{--graph-backend} to select a different one."
  51574. msgstr ""
  51575. #. type: section
  51576. #: guix-git/doc/guix.texi:34874
  51577. #, fuzzy, no-wrap
  51578. msgid "Invoking @code{guix deploy}"
  51579. msgstr "调用@command{guix-daemon}"
  51580. #. type: Plain text
  51581. #: guix-git/doc/guix.texi:34882
  51582. 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''."
  51583. msgstr ""
  51584. #. type: quotation
  51585. #: guix-git/doc/guix.texi:34887 guix-git/doc/guix.texi:35968
  51586. 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}!"
  51587. msgstr ""
  51588. #. type: example
  51589. #: guix-git/doc/guix.texi:34891
  51590. #, no-wrap
  51591. msgid "guix deploy @var{file}\n"
  51592. msgstr ""
  51593. #. type: Plain text
  51594. #: guix-git/doc/guix.texi:34895
  51595. 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:"
  51596. msgstr ""
  51597. #. type: lisp
  51598. #: guix-git/doc/guix.texi:34902
  51599. #, no-wrap
  51600. msgid ""
  51601. ";; This is a Guix deployment of a \"bare bones\" setup, with\n"
  51602. ";; no X11 display server, to a machine with an SSH daemon\n"
  51603. ";; listening on localhost:2222. A configuration such as this\n"
  51604. ";; may be appropriate for virtual machine with ports\n"
  51605. ";; forwarded to the host's loopback interface.\n"
  51606. "\n"
  51607. msgstr ""
  51608. #. type: lisp
  51609. #: guix-git/doc/guix.texi:34905
  51610. #, no-wrap
  51611. msgid ""
  51612. "(use-service-modules networking ssh)\n"
  51613. "(use-package-modules bootloaders)\n"
  51614. "\n"
  51615. msgstr ""
  51616. #. type: lisp
  51617. #: guix-git/doc/guix.texi:34926
  51618. #, no-wrap
  51619. msgid ""
  51620. "(define %system\n"
  51621. " (operating-system\n"
  51622. " (host-name \"gnu-deployed\")\n"
  51623. " (timezone \"Etc/UTC\")\n"
  51624. " (bootloader (bootloader-configuration\n"
  51625. " (bootloader grub-bootloader)\n"
  51626. " (targets '(\"/dev/vda\"))\n"
  51627. " (terminal-outputs '(console))))\n"
  51628. " (file-systems (cons (file-system\n"
  51629. " (mount-point \"/\")\n"
  51630. " (device \"/dev/vda1\")\n"
  51631. " (type \"ext4\"))\n"
  51632. " %base-file-systems))\n"
  51633. " (services\n"
  51634. " (append (list (service dhcp-client-service-type)\n"
  51635. " (service openssh-service-type\n"
  51636. " (openssh-configuration\n"
  51637. " (permit-root-login #t)\n"
  51638. " (allow-empty-passwords? #t))))\n"
  51639. " %base-services))))\n"
  51640. "\n"
  51641. msgstr ""
  51642. #. type: lisp
  51643. #: guix-git/doc/guix.texi:34936
  51644. #, no-wrap
  51645. msgid ""
  51646. "(list (machine\n"
  51647. " (operating-system %system)\n"
  51648. " (environment managed-host-environment-type)\n"
  51649. " (configuration (machine-ssh-configuration\n"
  51650. " (host-name \"localhost\")\n"
  51651. " (system \"x86_64-linux\")\n"
  51652. " (user \"alice\")\n"
  51653. " (identity \"./id_rsa\")\n"
  51654. " (port 2222)))))\n"
  51655. msgstr ""
  51656. #. type: Plain text
  51657. #: guix-git/doc/guix.texi:34949
  51658. 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."
  51659. msgstr ""
  51660. #. type: Plain text
  51661. #: guix-git/doc/guix.texi:34954
  51662. 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:"
  51663. msgstr ""
  51664. #. type: Plain text
  51665. #: guix-git/doc/guix.texi:34962
  51666. #, fuzzy
  51667. msgid "Each target machine must authorize the key of the master machine so that it accepts store items it receives from the coordinator:"
  51668. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  51669. #. type: example
  51670. #: guix-git/doc/guix.texi:34965
  51671. #, fuzzy, no-wrap
  51672. msgid "# guix archive --authorize < coordinator-public-key.txt\n"
  51673. msgstr "# guix archive --authorize < master-public-key.txt\n"
  51674. #. type: Plain text
  51675. #: guix-git/doc/guix.texi:34976
  51676. 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:"
  51677. msgstr ""
  51678. #. type: lisp
  51679. #: guix-git/doc/guix.texi:34980
  51680. #, no-wrap
  51681. msgid ""
  51682. "(use-modules ...\n"
  51683. " (gnu system)) ;for %sudoers-specification\n"
  51684. "\n"
  51685. msgstr ""
  51686. #. type: lisp
  51687. #: guix-git/doc/guix.texi:34982
  51688. #, no-wrap
  51689. msgid ""
  51690. "(define %user \"username\")\n"
  51691. "\n"
  51692. msgstr ""
  51693. #. type: lisp
  51694. #: guix-git/doc/guix.texi:34990
  51695. #, no-wrap
  51696. msgid ""
  51697. "(operating-system\n"
  51698. " ...\n"
  51699. " (sudoers-file\n"
  51700. " (plain-file \"sudoers\"\n"
  51701. " (string-append (plain-file-content %sudoers-specification)\n"
  51702. " (format #f \"~a ALL = NOPASSWD: ALL~%\"\n"
  51703. " %user)))))\n"
  51704. "\n"
  51705. msgstr ""
  51706. #. type: Plain text
  51707. #: guix-git/doc/guix.texi:34995
  51708. msgid "For more information regarding the format of the @file{sudoers} file, consult @command{man sudoers}."
  51709. msgstr ""
  51710. #. type: deftp
  51711. #: guix-git/doc/guix.texi:34996
  51712. #, fuzzy, no-wrap
  51713. msgid "{Data Type} machine"
  51714. msgstr "{数据类型} build-machine"
  51715. #. type: deftp
  51716. #: guix-git/doc/guix.texi:34999
  51717. msgid "This is the data type representing a single machine in a heterogeneous Guix deployment."
  51718. msgstr ""
  51719. #. type: table
  51720. #: guix-git/doc/guix.texi:35003
  51721. #, fuzzy
  51722. msgid "The object of the operating system configuration to deploy."
  51723. msgstr "管理操作系统配置。"
  51724. #. type: code{#1}
  51725. #: guix-git/doc/guix.texi:35004
  51726. #, fuzzy, no-wrap
  51727. msgid "environment"
  51728. msgstr "构建环境"
  51729. #. type: table
  51730. #: guix-git/doc/guix.texi:35006
  51731. msgid "An @code{environment-type} describing how the machine should be provisioned."
  51732. msgstr ""
  51733. #. type: item
  51734. #: guix-git/doc/guix.texi:35007
  51735. #, fuzzy, no-wrap
  51736. msgid "@code{configuration} (default: @code{#f})"
  51737. msgstr "@code{journal-content}(默认值:@code{#f})"
  51738. #. type: table
  51739. #: guix-git/doc/guix.texi:35012
  51740. 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."
  51741. msgstr ""
  51742. #. type: deftp
  51743. #: guix-git/doc/guix.texi:35015
  51744. #, fuzzy, no-wrap
  51745. msgid "{Data Type} machine-ssh-configuration"
  51746. msgstr "{数据类型} build-machine"
  51747. #. type: deftp
  51748. #: guix-git/doc/guix.texi:35018
  51749. msgid "This is the data type representing the SSH client parameters for a machine with an @code{environment} of @code{managed-host-environment-type}."
  51750. msgstr ""
  51751. #. type: item
  51752. #: guix-git/doc/guix.texi:35021
  51753. #, fuzzy, no-wrap
  51754. msgid "@code{build-locally?} (default: @code{#t})"
  51755. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  51756. #. type: table
  51757. #: guix-git/doc/guix.texi:35023
  51758. msgid "If false, system derivations will be built on the machine being deployed to."
  51759. msgstr ""
  51760. #. type: code{#1}
  51761. #: guix-git/doc/guix.texi:35023
  51762. #, no-wrap
  51763. msgid "system"
  51764. msgstr "系统"
  51765. #. type: table
  51766. #: guix-git/doc/guix.texi:35026
  51767. #, fuzzy
  51768. msgid "The system type describing the architecture of the machine being deployed to---e.g., @code{\"x86_64-linux\"}."
  51769. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  51770. #. type: item
  51771. #: guix-git/doc/guix.texi:35026
  51772. #, fuzzy, no-wrap
  51773. msgid "@code{authorize?} (default: @code{#t})"
  51774. msgstr "@code{mate}(默认值:@code{mate})"
  51775. #. type: table
  51776. #: guix-git/doc/guix.texi:35029
  51777. msgid "If true, the coordinator's signing key will be added to the remote's ACL keyring."
  51778. msgstr ""
  51779. #. type: item
  51780. #: guix-git/doc/guix.texi:35030
  51781. #, fuzzy, no-wrap
  51782. msgid "@code{user} (default: @code{\"root\"})"
  51783. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  51784. #. type: item
  51785. #: guix-git/doc/guix.texi:35031
  51786. #, fuzzy, no-wrap
  51787. msgid "@code{identity} (default: @code{#f})"
  51788. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51789. #. type: table
  51790. #: guix-git/doc/guix.texi:35034
  51791. msgid "If specified, the path to the SSH private key to use to authenticate with the remote host."
  51792. msgstr ""
  51793. #. type: item
  51794. #: guix-git/doc/guix.texi:35035
  51795. #, fuzzy, no-wrap
  51796. msgid "@code{host-key} (default: @code{#f})"
  51797. msgstr "@code{port}(默认值:@code{22})"
  51798. #. type: table
  51799. #: guix-git/doc/guix.texi:35037
  51800. msgid "This should be the SSH host key of the machine, which looks like this:"
  51801. msgstr ""
  51802. #. type: example
  51803. #: guix-git/doc/guix.texi:35040
  51804. #, fuzzy, no-wrap
  51805. msgid "ssh-ed25519 AAAAC3Nz@dots{} root@@example.org\n"
  51806. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  51807. #. type: table
  51808. #: guix-git/doc/guix.texi:35045
  51809. 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."
  51810. msgstr ""
  51811. #. type: item
  51812. #: guix-git/doc/guix.texi:35046
  51813. #, fuzzy, no-wrap
  51814. msgid "@code{allow-downgrades?} (default: @code{#f})"
  51815. msgstr "@code{challenge}(默认值:@code{#f})"
  51816. #. type: table
  51817. #: guix-git/doc/guix.texi:35048
  51818. msgid "Whether to allow potential downgrades."
  51819. msgstr ""
  51820. #. type: table
  51821. #: guix-git/doc/guix.texi:35056
  51822. 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."
  51823. msgstr ""
  51824. #. type: deftp
  51825. #: guix-git/doc/guix.texi:35059
  51826. #, no-wrap
  51827. msgid "{Data Type} digital-ocean-configuration"
  51828. msgstr ""
  51829. #. type: deftp
  51830. #: guix-git/doc/guix.texi:35062
  51831. 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}."
  51832. msgstr ""
  51833. #. type: code{#1}
  51834. #: guix-git/doc/guix.texi:35064
  51835. #, fuzzy, no-wrap
  51836. msgid "ssh-key"
  51837. msgstr "主机公钥"
  51838. #. type: table
  51839. #: guix-git/doc/guix.texi:35067
  51840. msgid "The path to the SSH private key to use to authenticate with the remote host. In the future, this field may not exist."
  51841. msgstr ""
  51842. #. type: code{#1}
  51843. #: guix-git/doc/guix.texi:35067
  51844. #, no-wrap
  51845. msgid "tags"
  51846. msgstr ""
  51847. #. type: table
  51848. #: guix-git/doc/guix.texi:35070
  51849. 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."
  51850. msgstr ""
  51851. #. type: code{#1}
  51852. #: guix-git/doc/guix.texi:35070
  51853. #, no-wrap
  51854. msgid "region"
  51855. msgstr ""
  51856. #. type: table
  51857. #: guix-git/doc/guix.texi:35072
  51858. msgid "A Digital Ocean region slug, such as @code{\"nyc3\"}."
  51859. msgstr ""
  51860. #. type: table
  51861. #: guix-git/doc/guix.texi:35074
  51862. msgid "A Digital Ocean size slug, such as @code{\"s-1vcpu-1gb\"}"
  51863. msgstr ""
  51864. #. type: code{#1}
  51865. #: guix-git/doc/guix.texi:35074
  51866. #, no-wrap
  51867. msgid "enable-ipv6?"
  51868. msgstr ""
  51869. #. type: table
  51870. #: guix-git/doc/guix.texi:35076
  51871. msgid "Whether or not the droplet should be created with IPv6 networking."
  51872. msgstr ""
  51873. #. type: section
  51874. #: guix-git/doc/guix.texi:35080
  51875. #, no-wrap
  51876. msgid "Running Guix in a Virtual Machine"
  51877. msgstr ""
  51878. #. type: Plain text
  51879. #: guix-git/doc/guix.texi:35088
  51880. 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)."
  51881. msgstr ""
  51882. #. type: Plain text
  51883. #: guix-git/doc/guix.texi:35095
  51884. 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})."
  51885. msgstr ""
  51886. #. type: Plain text
  51887. #: guix-git/doc/guix.texi:35098
  51888. msgid "Instead of using this pre-built image, one can also build their own image using @command{guix system image} (@pxref{Invoking guix system})."
  51889. msgstr ""
  51890. #. type: cindex
  51891. #: guix-git/doc/guix.texi:35099
  51892. #, no-wrap
  51893. msgid "QEMU"
  51894. msgstr ""
  51895. #. type: Plain text
  51896. #: guix-git/doc/guix.texi:35106
  51897. 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:"
  51898. msgstr ""
  51899. #. type: example
  51900. #: guix-git/doc/guix.texi:35113
  51901. #, no-wrap
  51902. msgid ""
  51903. "$ qemu-system-x86_64 \\\n"
  51904. " -nic user,model=virtio-net-pci \\\n"
  51905. " -enable-kvm -m 1024 \\\n"
  51906. " -device virtio-blk,drive=myhd \\\n"
  51907. " -drive if=none,file=/tmp/qemu-image,id=myhd\n"
  51908. msgstr ""
  51909. #. type: Plain text
  51910. #: guix-git/doc/guix.texi:35116
  51911. msgid "Here is what each of these options means:"
  51912. msgstr ""
  51913. #. type: item
  51914. #: guix-git/doc/guix.texi:35118
  51915. #, no-wrap
  51916. msgid "qemu-system-x86_64"
  51917. msgstr ""
  51918. #. type: table
  51919. #: guix-git/doc/guix.texi:35121
  51920. msgid "This specifies the hardware platform to emulate. This should match the host."
  51921. msgstr ""
  51922. #. type: item
  51923. #: guix-git/doc/guix.texi:35122
  51924. #, no-wrap
  51925. msgid "-nic user,model=virtio-net-pci"
  51926. msgstr ""
  51927. #. type: table
  51928. #: guix-git/doc/guix.texi:35130
  51929. 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}."
  51930. msgstr ""
  51931. #. type: item
  51932. #: guix-git/doc/guix.texi:35131
  51933. #, no-wrap
  51934. msgid "-enable-kvm"
  51935. msgstr ""
  51936. #. type: table
  51937. #: guix-git/doc/guix.texi:35135
  51938. msgid "If your system has hardware virtualization extensions, enabling the virtual machine support (KVM) of the Linux kernel will make things run faster."
  51939. msgstr ""
  51940. #. type: item
  51941. #: guix-git/doc/guix.texi:35137
  51942. #, no-wrap
  51943. msgid "-m 1024"
  51944. msgstr ""
  51945. #. type: table
  51946. #: guix-git/doc/guix.texi:35140
  51947. msgid "RAM available to the guest OS, in mebibytes. Defaults to 128@tie{}MiB, which may be insufficient for some operations."
  51948. msgstr ""
  51949. #. type: item
  51950. #: guix-git/doc/guix.texi:35141
  51951. #, no-wrap
  51952. msgid "-device virtio-blk,drive=myhd"
  51953. msgstr ""
  51954. #. type: table
  51955. #: guix-git/doc/guix.texi:35146
  51956. 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."
  51957. msgstr ""
  51958. #. type: item
  51959. #: guix-git/doc/guix.texi:35147
  51960. #, no-wrap
  51961. msgid "-drive if=none,file=/tmp/qemu-image,id=myhd"
  51962. msgstr ""
  51963. #. type: table
  51964. #: guix-git/doc/guix.texi:35150
  51965. msgid "Use our QCOW image, the @file{/tmp/qemu-image} file, as the backing store of the ``myhd'' drive."
  51966. msgstr ""
  51967. #. type: Plain text
  51968. #: guix-git/doc/guix.texi:35160
  51969. 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}."
  51970. msgstr ""
  51971. #. type: subsection
  51972. #: guix-git/doc/guix.texi:35161
  51973. #, no-wrap
  51974. msgid "Connecting Through SSH"
  51975. msgstr ""
  51976. #. type: Plain text
  51977. #: guix-git/doc/guix.texi:35169
  51978. 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"
  51979. msgstr ""
  51980. #. type: example
  51981. #: guix-git/doc/guix.texi:35172
  51982. #, no-wrap
  51983. msgid "$(guix system vm config.scm) -nic user,model=virtio-net-pci,hostfwd=tcp::10022-:22\n"
  51984. msgstr ""
  51985. #. type: Plain text
  51986. #: guix-git/doc/guix.texi:35175
  51987. msgid "To connect to the VM you can run"
  51988. msgstr ""
  51989. #. type: example
  51990. #: guix-git/doc/guix.texi:35178
  51991. #, no-wrap
  51992. msgid "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 10022 localhost\n"
  51993. msgstr ""
  51994. #. type: Plain text
  51995. #: guix-git/doc/guix.texi:35185
  51996. 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."
  51997. msgstr ""
  51998. #. type: quotation
  51999. #: guix-git/doc/guix.texi:35191
  52000. 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."
  52001. msgstr ""
  52002. #. type: subsection
  52003. #: guix-git/doc/guix.texi:35193
  52004. #, no-wrap
  52005. msgid "Using @command{virt-viewer} with Spice"
  52006. msgstr ""
  52007. #. type: Plain text
  52008. #: guix-git/doc/guix.texi:35199
  52009. 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."
  52010. msgstr ""
  52011. #. type: Plain text
  52012. #: guix-git/doc/guix.texi:35202
  52013. 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}:"
  52014. msgstr ""
  52015. #. type: example
  52016. #: guix-git/doc/guix.texi:35208
  52017. #, no-wrap
  52018. msgid ""
  52019. "-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5\n"
  52020. "-chardev spicevmc,name=vdagent,id=vdagent\n"
  52021. "-device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,\\\n"
  52022. "name=com.redhat.spice.0\n"
  52023. msgstr ""
  52024. #. type: Plain text
  52025. #: guix-git/doc/guix.texi:35212
  52026. msgid "You'll also need to add the @code{(spice-vdagent-service)} to your system definition (@pxref{Miscellaneous Services, Spice service})."
  52027. msgstr ""
  52028. #. type: Plain text
  52029. #: guix-git/doc/guix.texi:35219
  52030. 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?"
  52031. msgstr ""
  52032. #. type: cindex
  52033. #: guix-git/doc/guix.texi:35231
  52034. #, no-wrap
  52035. msgid "daemons"
  52036. msgstr ""
  52037. #. type: Plain text
  52038. #: guix-git/doc/guix.texi:35244
  52039. 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."
  52040. msgstr ""
  52041. #. type: cindex
  52042. #: guix-git/doc/guix.texi:35245
  52043. #, no-wrap
  52044. msgid "service extensions"
  52045. msgstr ""
  52046. #. type: Plain text
  52047. #: guix-git/doc/guix.texi:35257
  52048. 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})."
  52049. msgstr ""
  52050. #. type: Plain text
  52051. #: guix-git/doc/guix.texi:35261
  52052. 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:"
  52053. msgstr ""
  52054. #. type: Plain text
  52055. #: guix-git/doc/guix.texi:35263
  52056. msgid "@image{images/service-graph,,5in,Typical service extension graph.}"
  52057. msgstr ""
  52058. #. type: cindex
  52059. #: guix-git/doc/guix.texi:35264
  52060. #, no-wrap
  52061. msgid "system service"
  52062. msgstr ""
  52063. #. type: Plain text
  52064. #: guix-git/doc/guix.texi:35272
  52065. 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."
  52066. msgstr ""
  52067. #. type: cindex
  52068. #: guix-git/doc/guix.texi:35273
  52069. #, no-wrap
  52070. msgid "service types"
  52071. msgstr ""
  52072. #. type: Plain text
  52073. #: guix-git/doc/guix.texi:35279
  52074. 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."
  52075. msgstr ""
  52076. #. type: Plain text
  52077. #: guix-git/doc/guix.texi:35282
  52078. msgid "The following section describes the programming interface for service types and services."
  52079. msgstr ""
  52080. #. type: Plain text
  52081. #: guix-git/doc/guix.texi:35289
  52082. 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}):"
  52083. msgstr ""
  52084. #. type: lisp
  52085. #: guix-git/doc/guix.texi:35299
  52086. #, no-wrap
  52087. msgid ""
  52088. "(define guix-service-type\n"
  52089. " (service-type\n"
  52090. " (name 'guix)\n"
  52091. " (extensions\n"
  52092. " (list (service-extension shepherd-root-service-type guix-shepherd-service)\n"
  52093. " (service-extension account-service-type guix-accounts)\n"
  52094. " (service-extension activation-service-type guix-activation)))\n"
  52095. " (default-value (guix-configuration))))\n"
  52096. msgstr ""
  52097. #. type: Plain text
  52098. #: guix-git/doc/guix.texi:35303
  52099. msgid "It defines three things:"
  52100. msgstr ""
  52101. #. type: enumerate
  52102. #: guix-git/doc/guix.texi:35307
  52103. msgid "A name, whose sole purpose is to make inspection and debugging easier."
  52104. msgstr ""
  52105. #. type: enumerate
  52106. #: guix-git/doc/guix.texi:35312
  52107. 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."
  52108. msgstr ""
  52109. #. type: enumerate
  52110. #: guix-git/doc/guix.texi:35315
  52111. msgid "Every service type has at least one service extension. The only exception is the @dfn{boot service type}, which is the ultimate service."
  52112. msgstr ""
  52113. #. type: enumerate
  52114. #: guix-git/doc/guix.texi:35318
  52115. msgid "Optionally, a default value for instances of this type."
  52116. msgstr ""
  52117. #. type: Plain text
  52118. #: guix-git/doc/guix.texi:35321
  52119. msgid "In this example, @code{guix-service-type} extends three services:"
  52120. msgstr ""
  52121. #. type: item
  52122. #: guix-git/doc/guix.texi:35323
  52123. #, no-wrap
  52124. msgid "shepherd-root-service-type"
  52125. msgstr ""
  52126. #. type: table
  52127. #: guix-git/doc/guix.texi:35328
  52128. 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})."
  52129. msgstr ""
  52130. #. type: item
  52131. #: guix-git/doc/guix.texi:35329
  52132. #, no-wrap
  52133. msgid "account-service-type"
  52134. msgstr ""
  52135. #. type: table
  52136. #: guix-git/doc/guix.texi:35334
  52137. 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})."
  52138. msgstr ""
  52139. #. type: item
  52140. #: guix-git/doc/guix.texi:35335
  52141. #, no-wrap
  52142. msgid "activation-service-type"
  52143. msgstr ""
  52144. #. type: table
  52145. #: guix-git/doc/guix.texi:35339
  52146. 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."
  52147. msgstr ""
  52148. #. type: Plain text
  52149. #: guix-git/doc/guix.texi:35342
  52150. msgid "A service of this type is instantiated like this:"
  52151. msgstr ""
  52152. #. type: lisp
  52153. #: guix-git/doc/guix.texi:35348
  52154. #, no-wrap
  52155. msgid ""
  52156. "(service guix-service-type\n"
  52157. " (guix-configuration\n"
  52158. " (build-accounts 5)\n"
  52159. " (extra-options '(\"--gc-keep-derivations\"))))\n"
  52160. msgstr ""
  52161. #. type: Plain text
  52162. #: guix-git/doc/guix.texi:35356
  52163. 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:"
  52164. msgstr ""
  52165. #. type: lisp
  52166. #: guix-git/doc/guix.texi:35359
  52167. #, no-wrap
  52168. msgid "(service guix-service-type)\n"
  52169. msgstr ""
  52170. #. type: Plain text
  52171. #: guix-git/doc/guix.texi:35363
  52172. msgid "@code{guix-service-type} is quite simple because it extends other services but is not extensible itself."
  52173. msgstr ""
  52174. #. type: Plain text
  52175. #: guix-git/doc/guix.texi:35367
  52176. msgid "The service type for an @emph{extensible} service looks like this:"
  52177. msgstr ""
  52178. #. type: lisp
  52179. #: guix-git/doc/guix.texi:35374
  52180. #, no-wrap
  52181. msgid ""
  52182. "(define udev-service-type\n"
  52183. " (service-type (name 'udev)\n"
  52184. " (extensions\n"
  52185. " (list (service-extension shepherd-root-service-type\n"
  52186. " udev-shepherd-service)))\n"
  52187. "\n"
  52188. msgstr ""
  52189. #. type: lisp
  52190. #: guix-git/doc/guix.texi:35382
  52191. #, no-wrap
  52192. msgid ""
  52193. " (compose concatenate) ;concatenate the list of rules\n"
  52194. " (extend (lambda (config rules)\n"
  52195. " (match config\n"
  52196. " (($ <udev-configuration> udev initial-rules)\n"
  52197. " (udev-configuration\n"
  52198. " (udev udev) ;the udev package to use\n"
  52199. " (rules (append initial-rules rules)))))))))\n"
  52200. msgstr ""
  52201. #. type: Plain text
  52202. #: guix-git/doc/guix.texi:35388
  52203. 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:"
  52204. msgstr ""
  52205. #. type: item
  52206. #: guix-git/doc/guix.texi:35390
  52207. #, no-wrap
  52208. msgid "compose"
  52209. msgstr ""
  52210. #. type: table
  52211. #: guix-git/doc/guix.texi:35393
  52212. msgid "This is the procedure to @dfn{compose} the list of extensions to services of this type."
  52213. msgstr ""
  52214. #. type: table
  52215. #: guix-git/doc/guix.texi:35396
  52216. msgid "Services can extend the udev service by passing it lists of rules; we compose those extensions simply by concatenating them."
  52217. msgstr ""
  52218. #. type: item
  52219. #: guix-git/doc/guix.texi:35397
  52220. #, no-wrap
  52221. msgid "extend"
  52222. msgstr ""
  52223. #. type: table
  52224. #: guix-git/doc/guix.texi:35400
  52225. msgid "This procedure defines how the value of the service is @dfn{extended} with the composition of the extensions."
  52226. msgstr ""
  52227. #. type: table
  52228. #: guix-git/doc/guix.texi:35405
  52229. 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."
  52230. msgstr ""
  52231. #. type: table
  52232. #: guix-git/doc/guix.texi:35411
  52233. 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})."
  52234. msgstr ""
  52235. #. type: Plain text
  52236. #: guix-git/doc/guix.texi:35416
  52237. 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."
  52238. msgstr ""
  52239. #. type: Plain text
  52240. #: guix-git/doc/guix.texi:35419
  52241. msgid "Still here? The next section provides a reference of the programming interface for services."
  52242. msgstr ""
  52243. #. type: Plain text
  52244. #: guix-git/doc/guix.texi:35427
  52245. 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."
  52246. msgstr ""
  52247. #. type: deffn
  52248. #: guix-git/doc/guix.texi:35428
  52249. #, no-wrap
  52250. msgid "{Scheme Procedure} service @var{type} [@var{value}]"
  52251. msgstr ""
  52252. #. type: deffn
  52253. #: guix-git/doc/guix.texi:35432
  52254. 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."
  52255. msgstr ""
  52256. #. type: deffn
  52257. #: guix-git/doc/guix.texi:35436
  52258. 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."
  52259. msgstr ""
  52260. #. type: deffn
  52261. #: guix-git/doc/guix.texi:35438
  52262. msgid "For instance, this:"
  52263. msgstr ""
  52264. #. type: lisp
  52265. #: guix-git/doc/guix.texi:35441
  52266. #, no-wrap
  52267. msgid "(service openssh-service-type)\n"
  52268. msgstr ""
  52269. #. type: deffn
  52270. #: guix-git/doc/guix.texi:35445
  52271. msgid "is equivalent to this:"
  52272. msgstr ""
  52273. #. type: lisp
  52274. #: guix-git/doc/guix.texi:35449
  52275. #, no-wrap
  52276. msgid ""
  52277. "(service openssh-service-type\n"
  52278. " (openssh-configuration))\n"
  52279. msgstr ""
  52280. #. type: deffn
  52281. #: guix-git/doc/guix.texi:35453
  52282. msgid "In both cases the result is an instance of @code{openssh-service-type} with the default configuration."
  52283. msgstr ""
  52284. #. type: deffn
  52285. #: guix-git/doc/guix.texi:35455
  52286. #, no-wrap
  52287. msgid "{Scheme Procedure} service? @var{obj}"
  52288. msgstr ""
  52289. #. type: deffn
  52290. #: guix-git/doc/guix.texi:35457
  52291. msgid "Return true if @var{obj} is a service."
  52292. msgstr ""
  52293. #. type: deffn
  52294. #: guix-git/doc/guix.texi:35459
  52295. #, no-wrap
  52296. msgid "{Scheme Procedure} service-kind @var{service}"
  52297. msgstr ""
  52298. #. type: deffn
  52299. #: guix-git/doc/guix.texi:35461
  52300. msgid "Return the type of @var{service}---i.e., a @code{<service-type>} object."
  52301. msgstr ""
  52302. #. type: deffn
  52303. #: guix-git/doc/guix.texi:35463
  52304. #, no-wrap
  52305. msgid "{Scheme Procedure} service-value @var{service}"
  52306. msgstr ""
  52307. #. type: deffn
  52308. #: guix-git/doc/guix.texi:35466
  52309. msgid "Return the value associated with @var{service}. It represents its parameters."
  52310. msgstr ""
  52311. #. type: Plain text
  52312. #: guix-git/doc/guix.texi:35469
  52313. msgid "Here is an example of how a service is created and manipulated:"
  52314. msgstr ""
  52315. #. type: lisp
  52316. #: guix-git/doc/guix.texi:35478
  52317. #, no-wrap
  52318. msgid ""
  52319. "(define s\n"
  52320. " (service nginx-service-type\n"
  52321. " (nginx-configuration\n"
  52322. " (nginx nginx)\n"
  52323. " (log-directory log-directory)\n"
  52324. " (run-directory run-directory)\n"
  52325. " (file config-file))))\n"
  52326. "\n"
  52327. msgstr ""
  52328. #. type: lisp
  52329. #: guix-git/doc/guix.texi:35481
  52330. #, no-wrap
  52331. msgid ""
  52332. "(service? s)\n"
  52333. "@result{} #t\n"
  52334. "\n"
  52335. msgstr ""
  52336. #. type: lisp
  52337. #: guix-git/doc/guix.texi:35484
  52338. #, no-wrap
  52339. msgid ""
  52340. "(eq? (service-kind s) nginx-service-type)\n"
  52341. "@result{} #t\n"
  52342. msgstr ""
  52343. #. type: Plain text
  52344. #: guix-git/doc/guix.texi:35494
  52345. 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."
  52346. msgstr ""
  52347. #. type: deffn
  52348. #: guix-git/doc/guix.texi:35495
  52349. #, no-wrap
  52350. msgid "{Scheme Syntax} modify-services @var{services} @"
  52351. msgstr ""
  52352. #. type: deffn
  52353. #: guix-git/doc/guix.texi:35497
  52354. msgid "(@var{type} @var{variable} => @var{body}) @dots{}"
  52355. msgstr ""
  52356. #. type: deffn
  52357. #: guix-git/doc/guix.texi:35500
  52358. msgid "Modify the services listed in @var{services} according to the given clauses. Each clause has the form:"
  52359. msgstr ""
  52360. #. type: example
  52361. #: guix-git/doc/guix.texi:35503
  52362. #, no-wrap
  52363. msgid "(@var{type} @var{variable} => @var{body})\n"
  52364. msgstr ""
  52365. #. type: deffn
  52366. #: guix-git/doc/guix.texi:35510
  52367. 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}."
  52368. msgstr ""
  52369. #. type: deffn
  52370. #: guix-git/doc/guix.texi:35517
  52371. 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."
  52372. msgstr ""
  52373. #. type: deffn
  52374. #: guix-git/doc/guix.texi:35519
  52375. msgid "@xref{Using the Configuration System}, for example usage."
  52376. msgstr ""
  52377. #. type: Plain text
  52378. #: guix-git/doc/guix.texi:35526
  52379. 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."
  52380. msgstr ""
  52381. #. type: deftp
  52382. #: guix-git/doc/guix.texi:35527
  52383. #, no-wrap
  52384. msgid "{Data Type} service-type"
  52385. msgstr ""
  52386. #. type: cindex
  52387. #: guix-git/doc/guix.texi:35528
  52388. #, no-wrap
  52389. msgid "service type"
  52390. msgstr ""
  52391. #. type: deftp
  52392. #: guix-git/doc/guix.texi:35531
  52393. msgid "This is the representation of a @dfn{service type} (@pxref{Service Types and Services})."
  52394. msgstr ""
  52395. #. type: table
  52396. #: guix-git/doc/guix.texi:35535
  52397. msgid "This is a symbol, used only to simplify inspection and debugging."
  52398. msgstr ""
  52399. #. type: code{#1}
  52400. #: guix-git/doc/guix.texi:35536
  52401. #, no-wrap
  52402. msgid "extensions"
  52403. msgstr ""
  52404. #. type: table
  52405. #: guix-git/doc/guix.texi:35538
  52406. msgid "A non-empty list of @code{<service-extension>} objects (see below)."
  52407. msgstr ""
  52408. #. type: item
  52409. #: guix-git/doc/guix.texi:35539
  52410. #, no-wrap
  52411. msgid "@code{compose} (default: @code{#f})"
  52412. msgstr ""
  52413. #. type: table
  52414. #: guix-git/doc/guix.texi:35543
  52415. 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."
  52416. msgstr ""
  52417. #. type: table
  52418. #: guix-git/doc/guix.texi:35547
  52419. 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."
  52420. msgstr ""
  52421. #. type: item
  52422. #: guix-git/doc/guix.texi:35548
  52423. #, no-wrap
  52424. msgid "@code{extend} (default: @code{#f})"
  52425. msgstr ""
  52426. #. type: table
  52427. #: guix-git/doc/guix.texi:35550
  52428. msgid "If this is @code{#f}, services of this type cannot be extended."
  52429. msgstr ""
  52430. #. type: table
  52431. #: guix-git/doc/guix.texi:35556
  52432. 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."
  52433. msgstr ""
  52434. #. type: table
  52435. #: guix-git/doc/guix.texi:35562
  52436. 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})."
  52437. msgstr ""
  52438. #. type: item
  52439. #: guix-git/doc/guix.texi:35563
  52440. #, fuzzy, no-wrap
  52441. msgid "@code{default-value} (default: @code{&no-default-value})"
  52442. msgstr "@code{mate}(默认值:@code{mate})"
  52443. #. type: table
  52444. #: guix-git/doc/guix.texi:35566
  52445. msgid "The default value associated for instances of this service type. This allows users to use the @code{service} form without its second argument:"
  52446. msgstr ""
  52447. #. type: lisp
  52448. #: guix-git/doc/guix.texi:35569
  52449. #, no-wrap
  52450. msgid "(service @var{type})\n"
  52451. msgstr ""
  52452. #. type: table
  52453. #: guix-git/doc/guix.texi:35573
  52454. msgid "The returned service in this case has the default value specified by @var{type}."
  52455. msgstr ""
  52456. #. type: deftp
  52457. #: guix-git/doc/guix.texi:35576
  52458. msgid "@xref{Service Types and Services}, for examples."
  52459. msgstr ""
  52460. #. type: deffn
  52461. #: guix-git/doc/guix.texi:35578
  52462. #, no-wrap
  52463. msgid "{Scheme Procedure} service-extension @var{target-type} @"
  52464. msgstr ""
  52465. #. type: deffn
  52466. #: guix-git/doc/guix.texi:35584
  52467. 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."
  52468. msgstr ""
  52469. #. type: deffn
  52470. #: guix-git/doc/guix.texi:35586
  52471. #, no-wrap
  52472. msgid "{Scheme Procedure} service-extension? @var{obj}"
  52473. msgstr ""
  52474. #. type: deffn
  52475. #: guix-git/doc/guix.texi:35588
  52476. msgid "Return true if @var{obj} is a service extension."
  52477. msgstr ""
  52478. #. type: Plain text
  52479. #: guix-git/doc/guix.texi:35594
  52480. 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."
  52481. msgstr ""
  52482. #. type: deffn
  52483. #: guix-git/doc/guix.texi:35595
  52484. #, no-wrap
  52485. msgid "{Scheme Procedure} simple-service @var{name} @var{target} @var{value}"
  52486. msgstr ""
  52487. #. type: deffn
  52488. #: guix-git/doc/guix.texi:35599
  52489. 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."
  52490. msgstr ""
  52491. #. type: deffn
  52492. #: guix-git/doc/guix.texi:35602
  52493. msgid "For example, this extends mcron (@pxref{Scheduled Job Execution}) with an additional job:"
  52494. msgstr ""
  52495. #. type: lisp
  52496. #: guix-git/doc/guix.texi:35606
  52497. #, no-wrap
  52498. msgid ""
  52499. "(simple-service 'my-mcron-job mcron-service-type\n"
  52500. " #~(job '(next-hour (3)) \"guix gc -F 2G\"))\n"
  52501. msgstr ""
  52502. #. type: Plain text
  52503. #: guix-git/doc/guix.texi:35616
  52504. 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."
  52505. msgstr ""
  52506. #. type: deffn
  52507. #: guix-git/doc/guix.texi:35617
  52508. #, no-wrap
  52509. msgid "{Scheme Procedure} fold-services @var{services} @"
  52510. msgstr ""
  52511. #. type: deffn
  52512. #: guix-git/doc/guix.texi:35621
  52513. 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."
  52514. msgstr ""
  52515. #. type: Plain text
  52516. #: guix-git/doc/guix.texi:35625
  52517. msgid "Lastly, the @code{(gnu services)} module also defines several essential service types, some of which are listed below."
  52518. msgstr ""
  52519. #. type: defvr
  52520. #: guix-git/doc/guix.texi:35626
  52521. #, no-wrap
  52522. msgid "{Scheme Variable} system-service-type"
  52523. msgstr ""
  52524. #. type: defvr
  52525. #: guix-git/doc/guix.texi:35629
  52526. msgid "This is the root of the service graph. It produces the system directory as returned by the @command{guix system build} command."
  52527. msgstr ""
  52528. #. type: defvr
  52529. #: guix-git/doc/guix.texi:35631
  52530. #, no-wrap
  52531. msgid "{Scheme Variable} boot-service-type"
  52532. msgstr ""
  52533. #. type: defvr
  52534. #: guix-git/doc/guix.texi:35634
  52535. 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."
  52536. msgstr ""
  52537. #. type: defvr
  52538. #: guix-git/doc/guix.texi:35636
  52539. #, no-wrap
  52540. msgid "{Scheme Variable} etc-service-type"
  52541. msgstr ""
  52542. #. type: defvr
  52543. #: guix-git/doc/guix.texi:35640
  52544. 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:"
  52545. msgstr ""
  52546. #. type: lisp
  52547. #: guix-git/doc/guix.texi:35643
  52548. #, no-wrap
  52549. msgid "(list `(\"issue\" ,(plain-file \"issue\" \"Welcome!\\n\")))\n"
  52550. msgstr ""
  52551. #. type: defvr
  52552. #: guix-git/doc/guix.texi:35647
  52553. msgid "In this example, the effect would be to add an @file{/etc/issue} file pointing to the given file."
  52554. msgstr ""
  52555. #. type: defvr
  52556. #: guix-git/doc/guix.texi:35649
  52557. #, no-wrap
  52558. msgid "{Scheme Variable} setuid-program-service-type"
  52559. msgstr ""
  52560. #. type: defvr
  52561. #: guix-git/doc/guix.texi:35653
  52562. 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})."
  52563. msgstr ""
  52564. #. type: defvr
  52565. #: guix-git/doc/guix.texi:35655
  52566. #, no-wrap
  52567. msgid "{Scheme Variable} profile-service-type"
  52568. msgstr ""
  52569. #. type: defvr
  52570. #: guix-git/doc/guix.texi:35659
  52571. 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."
  52572. msgstr ""
  52573. #. type: anchor{#1}
  52574. #: guix-git/doc/guix.texi:35663
  52575. msgid "provenance-service-type"
  52576. msgstr ""
  52577. #. type: defvr
  52578. #: guix-git/doc/guix.texi:35663
  52579. #, no-wrap
  52580. msgid "{Scheme Variable} provenance-service-type"
  52581. msgstr ""
  52582. #. type: defvr
  52583. #: guix-git/doc/guix.texi:35667
  52584. 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}:"
  52585. msgstr ""
  52586. #. type: item
  52587. #: guix-git/doc/guix.texi:35669
  52588. #, fuzzy, no-wrap
  52589. msgid "channels.scm"
  52590. msgstr "通道"
  52591. #. type: table
  52592. #: guix-git/doc/guix.texi:35674
  52593. 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})."
  52594. msgstr ""
  52595. #. type: item
  52596. #: guix-git/doc/guix.texi:35675
  52597. #, fuzzy, no-wrap
  52598. msgid "configuration.scm"
  52599. msgstr "系统配置"
  52600. #. type: table
  52601. #: guix-git/doc/guix.texi:35680
  52602. 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."
  52603. msgstr ""
  52604. #. type: item
  52605. #: guix-git/doc/guix.texi:35681
  52606. #, no-wrap
  52607. msgid "provenance"
  52608. msgstr ""
  52609. #. type: table
  52610. #: guix-git/doc/guix.texi:35684
  52611. msgid "This contains the same information as the two other files but in a format that is more readily processable."
  52612. msgstr ""
  52613. #. type: defvr
  52614. #: guix-git/doc/guix.texi:35688
  52615. msgid "In general, these two pieces of information (channels and configuration file) are enough to reproduce the operating system ``from source''."
  52616. msgstr ""
  52617. #. type: quotation
  52618. #: guix-git/doc/guix.texi:35689
  52619. #, no-wrap
  52620. msgid "Caveats"
  52621. msgstr ""
  52622. #. type: quotation
  52623. #: guix-git/doc/guix.texi:35696
  52624. 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."
  52625. msgstr ""
  52626. #. type: quotation
  52627. #: guix-git/doc/guix.texi:35704
  52628. 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."
  52629. msgstr ""
  52630. #. type: defvr
  52631. #: guix-git/doc/guix.texi:35709
  52632. 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}."
  52633. msgstr ""
  52634. #. type: defvr
  52635. #: guix-git/doc/guix.texi:35711
  52636. #, no-wrap
  52637. msgid "{Scheme Variable} linux-loadable-module-service-type"
  52638. msgstr ""
  52639. #. type: defvr
  52640. #: guix-git/doc/guix.texi:35715
  52641. msgid "Type of the service that collects lists of packages containing kernel-loadable modules, and adds them to the set of kernel-loadable modules."
  52642. msgstr ""
  52643. #. type: defvr
  52644. #: guix-git/doc/guix.texi:35718
  52645. msgid "This service type is intended to be extended by other service types, such as below:"
  52646. msgstr ""
  52647. #. type: lisp
  52648. #: guix-git/doc/guix.texi:35724
  52649. #, no-wrap
  52650. msgid ""
  52651. "(simple-service 'installing-module\n"
  52652. " linux-loadable-module-service-type\n"
  52653. " (list module-to-install-1\n"
  52654. " module-to-install-2))\n"
  52655. msgstr ""
  52656. #. type: defvr
  52657. #: guix-git/doc/guix.texi:35728
  52658. 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."
  52659. msgstr ""
  52660. #. type: cindex
  52661. #: guix-git/doc/guix.texi:35733 guix-git/doc/guix.texi:36515
  52662. #, no-wrap
  52663. msgid "shepherd services"
  52664. msgstr ""
  52665. #. type: cindex
  52666. #: guix-git/doc/guix.texi:35734
  52667. #, no-wrap
  52668. msgid "PID 1"
  52669. msgstr ""
  52670. #. type: cindex
  52671. #: guix-git/doc/guix.texi:35735
  52672. #, no-wrap
  52673. msgid "init system"
  52674. msgstr ""
  52675. #. type: Plain text
  52676. #: guix-git/doc/guix.texi:35741
  52677. 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})."
  52678. msgstr ""
  52679. #. type: Plain text
  52680. #: guix-git/doc/guix.texi:35747
  52681. 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:"
  52682. msgstr ""
  52683. #. type: Plain text
  52684. #: guix-git/doc/guix.texi:35749
  52685. msgid "@image{images/shepherd-graph,,5in,Typical shepherd service graph.}"
  52686. msgstr ""
  52687. #. type: Plain text
  52688. #: guix-git/doc/guix.texi:35753
  52689. 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}})."
  52690. msgstr ""
  52691. #. type: Plain text
  52692. #: guix-git/doc/guix.texi:35757
  52693. 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."
  52694. msgstr ""
  52695. #. type: deftp
  52696. #: guix-git/doc/guix.texi:35758
  52697. #, no-wrap
  52698. msgid "{Data Type} shepherd-service"
  52699. msgstr ""
  52700. #. type: deftp
  52701. #: guix-git/doc/guix.texi:35760
  52702. msgid "The data type representing a service managed by the Shepherd."
  52703. msgstr ""
  52704. #. type: code{#1}
  52705. #: guix-git/doc/guix.texi:35762
  52706. #, no-wrap
  52707. msgid "provision"
  52708. msgstr ""
  52709. #. type: table
  52710. #: guix-git/doc/guix.texi:35764
  52711. msgid "This is a list of symbols denoting what the service provides."
  52712. msgstr ""
  52713. #. type: table
  52714. #: guix-git/doc/guix.texi:35769
  52715. 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."
  52716. msgstr ""
  52717. #. type: item
  52718. #: guix-git/doc/guix.texi:35770
  52719. #, fuzzy, no-wrap
  52720. msgid "@code{requirement} (default: @code{'()})"
  52721. msgstr "@code{features} (@code{'()})"
  52722. #. type: table
  52723. #: guix-git/doc/guix.texi:35772
  52724. msgid "List of symbols denoting the Shepherd services this one depends on."
  52725. msgstr ""
  52726. #. type: cindex
  52727. #: guix-git/doc/guix.texi:35773
  52728. #, no-wrap
  52729. msgid "one-shot services, for the Shepherd"
  52730. msgstr ""
  52731. #. type: table
  52732. #: guix-git/doc/guix.texi:35778
  52733. 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."
  52734. msgstr ""
  52735. #. type: item
  52736. #: guix-git/doc/guix.texi:35779
  52737. #, no-wrap
  52738. msgid "@code{respawn?} (default: @code{#t})"
  52739. msgstr ""
  52740. #. type: table
  52741. #: guix-git/doc/guix.texi:35782
  52742. msgid "Whether to restart the service when it stops, for instance when the underlying process dies."
  52743. msgstr ""
  52744. #. type: code{#1}
  52745. #: guix-git/doc/guix.texi:35783
  52746. #, no-wrap
  52747. msgid "start"
  52748. msgstr ""
  52749. #. type: itemx
  52750. #: guix-git/doc/guix.texi:35784
  52751. #, no-wrap
  52752. msgid "@code{stop} (default: @code{#~(const #f)})"
  52753. msgstr ""
  52754. #. type: table
  52755. #: guix-git/doc/guix.texi:35790
  52756. 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})."
  52757. msgstr ""
  52758. #. type: item
  52759. #: guix-git/doc/guix.texi:35791
  52760. #, no-wrap
  52761. msgid "@code{actions} (default: @code{'()})"
  52762. msgstr ""
  52763. #. type: cindex
  52764. #: guix-git/doc/guix.texi:35792
  52765. #, no-wrap
  52766. msgid "actions, of Shepherd services"
  52767. msgstr ""
  52768. #. type: table
  52769. #: guix-git/doc/guix.texi:35797
  52770. 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:"
  52771. msgstr ""
  52772. #. type: example
  52773. #: guix-git/doc/guix.texi:35800
  52774. #, no-wrap
  52775. msgid "herd @var{action} @var{service} [@var{arguments}@dots{}]\n"
  52776. msgstr ""
  52777. #. type: item
  52778. #: guix-git/doc/guix.texi:35802
  52779. #, fuzzy, no-wrap
  52780. msgid "@code{auto-start?} (default: @code{#t})"
  52781. msgstr "@code{port}(默认值:@code{22})"
  52782. #. type: table
  52783. #: guix-git/doc/guix.texi:35805
  52784. 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}."
  52785. msgstr ""
  52786. #. type: table
  52787. #: guix-git/doc/guix.texi:35808
  52788. msgid "A documentation string, as shown when running:"
  52789. msgstr ""
  52790. #. type: example
  52791. #: guix-git/doc/guix.texi:35811
  52792. #, no-wrap
  52793. msgid "herd doc @var{service-name}\n"
  52794. msgstr ""
  52795. #. type: table
  52796. #: guix-git/doc/guix.texi:35815
  52797. msgid "where @var{service-name} is one of the symbols in @code{provision} (@pxref{Invoking herd,,, shepherd, The GNU Shepherd Manual})."
  52798. msgstr ""
  52799. #. type: item
  52800. #: guix-git/doc/guix.texi:35816
  52801. #, no-wrap
  52802. msgid "@code{modules} (default: @code{%default-modules})"
  52803. msgstr ""
  52804. #. type: table
  52805. #: guix-git/doc/guix.texi:35819
  52806. msgid "This is the list of modules that must be in scope when @code{start} and @code{stop} are evaluated."
  52807. msgstr ""
  52808. #. type: Plain text
  52809. #: guix-git/doc/guix.texi:35827
  52810. 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}):"
  52811. msgstr ""
  52812. #. type: example
  52813. #: guix-git/doc/guix.texi:35839
  52814. #, no-wrap
  52815. msgid ""
  52816. "(let ((config (plain-file \"syslogd.conf\" \"@dots{}\")))\n"
  52817. " (shepherd-service\n"
  52818. " (documentation \"Run the syslog daemon (syslogd).\")\n"
  52819. " (provision '(syslogd))\n"
  52820. " (requirement '(user-processes))\n"
  52821. " (start #~(make-forkexec-constructor\n"
  52822. " (list #$(file-append inetutils \"/libexec/syslogd\")\n"
  52823. " \"--rcfile\" #$config)\n"
  52824. " #:pid-file \"/var/run/syslog.pid\"))\n"
  52825. " (stop #~(make-kill-destructor))))\n"
  52826. msgstr ""
  52827. #. type: Plain text
  52828. #: guix-git/doc/guix.texi:35854
  52829. 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})."
  52830. msgstr ""
  52831. #. type: deftp
  52832. #: guix-git/doc/guix.texi:35855
  52833. #, no-wrap
  52834. msgid "{Data Type} shepherd-action"
  52835. msgstr ""
  52836. #. type: deftp
  52837. #: guix-git/doc/guix.texi:35858
  52838. msgid "This is the data type that defines additional actions implemented by a Shepherd service (see above)."
  52839. msgstr ""
  52840. #. type: table
  52841. #: guix-git/doc/guix.texi:35862
  52842. msgid "Symbol naming the action."
  52843. msgstr ""
  52844. #. type: table
  52845. #: guix-git/doc/guix.texi:35865
  52846. msgid "This is a documentation string for the action. It can be viewed by running:"
  52847. msgstr ""
  52848. #. type: example
  52849. #: guix-git/doc/guix.texi:35868
  52850. #, no-wrap
  52851. msgid "herd doc @var{service} action @var{action}\n"
  52852. msgstr ""
  52853. #. type: item
  52854. #: guix-git/doc/guix.texi:35870
  52855. #, no-wrap
  52856. msgid "procedure"
  52857. msgstr ""
  52858. #. type: table
  52859. #: guix-git/doc/guix.texi:35874
  52860. 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})."
  52861. msgstr ""
  52862. #. type: deftp
  52863. #: guix-git/doc/guix.texi:35878
  52864. msgid "The following example defines an action called @code{say-hello} that kindly greets the user:"
  52865. msgstr ""
  52866. #. type: lisp
  52867. #: guix-git/doc/guix.texi:35887
  52868. #, no-wrap
  52869. msgid ""
  52870. "(shepherd-action\n"
  52871. " (name 'say-hello)\n"
  52872. " (documentation \"Say hi!\")\n"
  52873. " (procedure #~(lambda (running . args)\n"
  52874. " (format #t \"Hello, friend! arguments: ~s\\n\"\n"
  52875. " args)\n"
  52876. " #t)))\n"
  52877. msgstr ""
  52878. #. type: deftp
  52879. #: guix-git/doc/guix.texi:35890
  52880. msgid "Assuming this action is added to the @code{example} service, then you can do:"
  52881. msgstr ""
  52882. #. type: example
  52883. #: guix-git/doc/guix.texi:35896
  52884. #, no-wrap
  52885. msgid ""
  52886. "# herd say-hello example\n"
  52887. "Hello, friend! arguments: ()\n"
  52888. "# herd say-hello example a b c\n"
  52889. "Hello, friend! arguments: (\"a\" \"b\" \"c\")\n"
  52890. msgstr ""
  52891. #. type: deftp
  52892. #: guix-git/doc/guix.texi:35901
  52893. 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."
  52894. msgstr ""
  52895. #. type: defvr
  52896. #: guix-git/doc/guix.texi:35903
  52897. #, no-wrap
  52898. msgid "{Scheme Variable} shepherd-root-service-type"
  52899. msgstr ""
  52900. #. type: defvr
  52901. #: guix-git/doc/guix.texi:35905
  52902. msgid "The service type for the Shepherd ``root service''---i.e., PID@tie{}1."
  52903. msgstr ""
  52904. #. type: defvr
  52905. #: guix-git/doc/guix.texi:35910 guix-git/doc/guix.texi:36527
  52906. 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."
  52907. msgstr ""
  52908. #. type: deftp
  52909. #: guix-git/doc/guix.texi:35912 guix-git/doc/guix.texi:36529
  52910. #, fuzzy, no-wrap
  52911. msgid "{Data Type} shepherd-configuration"
  52912. msgstr "{数据类型} build-machine"
  52913. #. type: deftp
  52914. #: guix-git/doc/guix.texi:35914 guix-git/doc/guix.texi:36531
  52915. #, fuzzy
  52916. msgid "This data type represents the Shepherd's configuration."
  52917. msgstr "管理操作系统配置。"
  52918. #. type: item
  52919. #: guix-git/doc/guix.texi:35916 guix-git/doc/guix.texi:36533
  52920. #, fuzzy, no-wrap
  52921. msgid "shepherd (default: @code{shepherd})"
  52922. msgstr "@code{mate}(默认值:@code{mate})"
  52923. #. type: table
  52924. #: guix-git/doc/guix.texi:35918 guix-git/doc/guix.texi:36535
  52925. #, fuzzy
  52926. msgid "The Shepherd package to use."
  52927. msgstr "软件包数据类型。"
  52928. #. type: item
  52929. #: guix-git/doc/guix.texi:35919 guix-git/doc/guix.texi:36539
  52930. #, fuzzy, no-wrap
  52931. msgid "services (default: @code{'()})"
  52932. msgstr "@code{features} (@code{'()})"
  52933. #. type: table
  52934. #: guix-git/doc/guix.texi:35923 guix-git/doc/guix.texi:36543
  52935. msgid "A list of @code{<shepherd-service>} to start. You should probably use the service extension mechanism instead (@pxref{Shepherd Services})."
  52936. msgstr ""
  52937. #. type: Plain text
  52938. #: guix-git/doc/guix.texi:35928
  52939. msgid "The following example specifies the Shepherd package for the operating system:"
  52940. msgstr ""
  52941. #. type: lisp
  52942. #: guix-git/doc/guix.texi:35943
  52943. #, no-wrap
  52944. msgid ""
  52945. "(operating-system\n"
  52946. " ;; ...\n"
  52947. " (services (append (list openssh-service-type))\n"
  52948. " ;; ...\n"
  52949. " %desktop-services)\n"
  52950. " ;; ...\n"
  52951. " ;; Use own Shepherd package.\n"
  52952. " (essential-services\n"
  52953. " (modify-services (operating-system-default-essential-services\n"
  52954. " this-operating-system)\n"
  52955. " (shepherd-root-service-type config => (shepherd-configuration\n"
  52956. " (inherit config)\n"
  52957. " (shepherd my-shepherd))))))\n"
  52958. msgstr ""
  52959. #. type: defvr
  52960. #: guix-git/doc/guix.texi:35945
  52961. #, no-wrap
  52962. msgid "{Scheme Variable} %shepherd-root-service"
  52963. msgstr ""
  52964. #. type: defvr
  52965. #: guix-git/doc/guix.texi:35947
  52966. msgid "This service represents PID@tie{}1."
  52967. msgstr ""
  52968. #. type: cindex
  52969. #: guix-git/doc/guix.texi:35951
  52970. #, fuzzy, no-wrap
  52971. msgid "home configuration"
  52972. msgstr "系统配置"
  52973. #. type: Plain text
  52974. #: guix-git/doc/guix.texi:35963
  52975. 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})."
  52976. msgstr ""
  52977. #. type: Plain text
  52978. #: guix-git/doc/guix.texi:35980
  52979. 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."
  52980. msgstr ""
  52981. #. type: Plain text
  52982. #: guix-git/doc/guix.texi:35983
  52983. msgid "Using Guix for managing home environments provides a number of advantages:"
  52984. msgstr ""
  52985. #. type: item
  52986. #: guix-git/doc/guix.texi:35986
  52987. #, no-wrap
  52988. msgid "All software can be configured in one language (Guile Scheme),"
  52989. msgstr ""
  52990. #. type: itemize
  52991. #: guix-git/doc/guix.texi:35989
  52992. msgid "this gives users the ability to share values between configurations of different programs."
  52993. msgstr ""
  52994. #. type: item
  52995. #: guix-git/doc/guix.texi:35990
  52996. #, no-wrap
  52997. msgid "A well-defined home environment is self-contained and can be"
  52998. msgstr ""
  52999. #. type: itemize
  53000. #: guix-git/doc/guix.texi:35993
  53001. msgid "created in a declarative and reproducible way---there is no need to grab external binaries or manually edit some configuration file."
  53002. msgstr ""
  53003. #. type: item
  53004. #: guix-git/doc/guix.texi:35994
  53005. #, no-wrap
  53006. msgid "After every @command{guix home reconfigure} invocation, a new home"
  53007. msgstr ""
  53008. #. type: itemize
  53009. #: guix-git/doc/guix.texi:35998
  53010. 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."
  53011. msgstr ""
  53012. #. type: item
  53013. #: guix-git/doc/guix.texi:35999
  53014. #, no-wrap
  53015. msgid "It is possible to manage stateful data with Guix Home, this"
  53016. msgstr ""
  53017. #. type: itemize
  53018. #: guix-git/doc/guix.texi:36004
  53019. 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."
  53020. msgstr ""
  53021. #. type: section
  53022. #: guix-git/doc/guix.texi:36012 guix-git/doc/guix.texi:36014
  53023. #: guix-git/doc/guix.texi:36015
  53024. #, fuzzy, no-wrap
  53025. #| msgid "Preparing the isolated build environment."
  53026. msgid "Declaring the Home Environment"
  53027. msgstr "准备隔离的构建环境。"
  53028. #. type: menuentry
  53029. #: guix-git/doc/guix.texi:36012
  53030. #, fuzzy
  53031. #| msgid "Customizing your GNU system."
  53032. msgid "Customizing your Home."
  53033. msgstr "定制你的GNU系统。"
  53034. #. type: section
  53035. #: guix-git/doc/guix.texi:36012 guix-git/doc/guix.texi:36082
  53036. #: guix-git/doc/guix.texi:36083
  53037. #, fuzzy, no-wrap
  53038. #| msgid "Configuring the boot loader."
  53039. msgid "Configuring the Shell"
  53040. msgstr "设置引导程序。"
  53041. #. type: menuentry
  53042. #: guix-git/doc/guix.texi:36012
  53043. #, fuzzy
  53044. #| msgid "Invoking guix environment"
  53045. msgid "Enabling home environment."
  53046. msgstr "调用guix environment"
  53047. #. type: section
  53048. #: guix-git/doc/guix.texi:36012 guix-git/doc/guix.texi:36129
  53049. #: guix-git/doc/guix.texi:36130
  53050. #, fuzzy, no-wrap
  53051. #| msgid "Game Services"
  53052. msgid "Home Services"
  53053. msgstr "游戏服务"
  53054. #. type: menuentry
  53055. #: guix-git/doc/guix.texi:36012
  53056. #, fuzzy
  53057. #| msgid "Specifying system services."
  53058. msgid "Specifying home services."
  53059. msgstr "指定系统服务。"
  53060. #. type: menuentry
  53061. #: guix-git/doc/guix.texi:36012
  53062. #, fuzzy
  53063. #| msgid "Instantiating a system configuration."
  53064. msgid "Instantiating a home configuration."
  53065. msgstr "实例化一个系统配置。"
  53066. #. type: Plain text
  53067. #: guix-git/doc/guix.texi:36021
  53068. msgid "The home environment is configured by providing a @code{home-environment} declaration in a file that can be passed to the @command{guix home} command (@pxref{Invoking guix home}). The easiest way to get started is by generating an initial configuration with @command{guix home import}:"
  53069. msgstr ""
  53070. #. type: example
  53071. #: guix-git/doc/guix.texi:36024
  53072. #, no-wrap
  53073. msgid "guix home import ~/src/guix-config\n"
  53074. msgstr ""
  53075. #. type: Plain text
  53076. #: guix-git/doc/guix.texi:36032
  53077. msgid "The @command{guix home import} command reads some of the ``dot files'' such as @file{~/.bashrc} found in your home directory and copies them to the given directory, @file{~/src/guix-config} in this case; it also reads the contents of your profile, @file{~/.guix-profile}, and, based on that, it populates @file{~/src/guix-config/home-configuration.scm} with a Home configuration that resembles your current configuration."
  53078. msgstr ""
  53079. #. type: Plain text
  53080. #: guix-git/doc/guix.texi:36038
  53081. msgid "A simple setup can include Bash and a custom text configuration, like in the example below. Don't be afraid to declare home environment parts, which overlaps with your current dot files: before installing any configuration files, Guix Home will back up existing config files to a separate place in the home directory."
  53082. msgstr ""
  53083. #. type: quotation
  53084. #: guix-git/doc/guix.texi:36044
  53085. 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})."
  53086. msgstr ""
  53087. #. type: findex
  53088. #: guix-git/doc/guix.texi:36046
  53089. #, fuzzy, no-wrap
  53090. msgid "home-environment"
  53091. msgstr "构建环境"
  53092. #. type: include
  53093. #: guix-git/doc/guix.texi:36048
  53094. #, fuzzy, no-wrap
  53095. msgid "he-config-bare-bones.scm"
  53096. msgstr "系统配置"
  53097. #. type: Plain text
  53098. #: guix-git/doc/guix.texi:36055
  53099. 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."
  53100. msgstr ""
  53101. #. type: Plain text
  53102. #: guix-git/doc/guix.texi:36063
  53103. msgid "There is no daemon (at least not necessarily) related to a home service, a home service is just an element that is used to declare part of home environment and extend other parts of it. The extension mechanism discussed in the previous chapter (@pxref{Defining Services}) should not be confused with Shepherd services (@pxref{Shepherd Services}). Using this extension mechanism and some Scheme code that glues things together gives the user the freedom to declare their own, very custom, home environments."
  53104. msgstr ""
  53105. #. type: Plain text
  53106. #: guix-git/doc/guix.texi:36066
  53107. msgid "Once you have a configuration file that suits your needs, you can reconfigure your home by running:"
  53108. msgstr ""
  53109. #. type: example
  53110. #: guix-git/doc/guix.texi:36069
  53111. #, no-wrap
  53112. msgid "guix home reconfigure config.scm\n"
  53113. msgstr ""
  53114. #. type: Plain text
  53115. #: guix-git/doc/guix.texi:36073
  53116. msgid "This ``builds'' your home environment and creates @file{~/.guix-home} pointing to it. Voilà!"
  53117. msgstr ""
  53118. #. type: quotation
  53119. #: guix-git/doc/guix.texi:36080
  53120. msgid "Make sure the operating system has elogind, systemd, or a similar mechanism to create the XDG run-time directory and has the @env{XDG_RUNTIME_DIR} variable set. Failing that, the @file{on-first-login} script will not execute anything, and processes like user Shepherd and its descendants will not start."
  53121. msgstr ""
  53122. #. type: Plain text
  53123. #: guix-git/doc/guix.texi:36086
  53124. msgid "This section is safe to skip if your shell or shells are managed by Guix Home. Otherwise, read it carefully."
  53125. msgstr ""
  53126. #. type: Plain text
  53127. #: guix-git/doc/guix.texi:36093
  53128. 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}."
  53129. msgstr ""
  53130. #. type: Plain text
  53131. #: guix-git/doc/guix.texi:36100
  53132. 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}."
  53133. msgstr ""
  53134. #. type: Plain text
  53135. #: guix-git/doc/guix.texi:36103
  53136. msgid "Guix Home will always create @file{~/.profile}, which contains the following lines:"
  53137. msgstr ""
  53138. #. type: example
  53139. #: guix-git/doc/guix.texi:36108
  53140. #, no-wrap
  53141. msgid ""
  53142. "HOME_ENVIRONMENT=$HOME/.guix-home\n"
  53143. ". $HOME_ENVIRONMENT/setup-environment\n"
  53144. "$HOME_ENVIRONMENT/on-first-login\n"
  53145. msgstr ""
  53146. #. type: Plain text
  53147. #: guix-git/doc/guix.texi:36118
  53148. 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."
  53149. msgstr ""
  53150. #. type: Plain text
  53151. #: guix-git/doc/guix.texi:36123
  53152. 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}."
  53153. msgstr ""
  53154. #. type: quotation
  53155. #: guix-git/doc/guix.texi:36127
  53156. msgid "This step is only required if your shell is NOT managed by Guix Home. Otherwise, everything will be done automatically."
  53157. msgstr ""
  53158. #. type: cindex
  53159. #: guix-git/doc/guix.texi:36131
  53160. #, fuzzy, no-wrap
  53161. #| msgid "Other services."
  53162. msgid "home services"
  53163. msgstr "其它服务。"
  53164. #. type: Plain text
  53165. #: guix-git/doc/guix.texi:36140
  53166. 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."
  53167. msgstr ""
  53168. #. type: Plain text
  53169. #: guix-git/doc/guix.texi:36148
  53170. 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}}."
  53171. msgstr ""
  53172. #. type: Plain text
  53173. #: guix-git/doc/guix.texi:36159
  53174. 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)}."
  53175. msgstr ""
  53176. #. type: subsection
  53177. #: guix-git/doc/guix.texi:36165 guix-git/doc/guix.texi:36168
  53178. #: guix-git/doc/guix.texi:36169
  53179. #, fuzzy, no-wrap
  53180. #| msgid "Essential system services."
  53181. msgid "Essential Home Services"
  53182. msgstr "必要的系统服务。"
  53183. #. type: menuentry
  53184. #: guix-git/doc/guix.texi:36165
  53185. msgid "Environment variables, packages, on-* scripts."
  53186. msgstr ""
  53187. #. type: menuentry
  53188. #: guix-git/doc/guix.texi:36165
  53189. #, fuzzy
  53190. #| msgid "Shepherd Services"
  53191. msgid "Shells: Shells Home Services"
  53192. msgstr "Shepherd服务"
  53193. #. type: menuentry
  53194. #: guix-git/doc/guix.texi:36165
  53195. msgid "POSIX shells, Bash, Zsh."
  53196. msgstr ""
  53197. #. type: menuentry
  53198. #: guix-git/doc/guix.texi:36165
  53199. #, fuzzy
  53200. msgid "Mcron: Mcron Home Service"
  53201. msgstr "声音服务"
  53202. #. type: menuentry
  53203. #: guix-git/doc/guix.texi:36165
  53204. #, fuzzy
  53205. #| msgid "Scheduled Job Execution"
  53206. msgid "Scheduled User's Job Execution."
  53207. msgstr "执行计划任务"
  53208. #. type: menuentry
  53209. #: guix-git/doc/guix.texi:36165
  53210. #, fuzzy
  53211. #| msgid "Shepherd Services"
  53212. msgid "Shepherd: Shepherd Home Service"
  53213. msgstr "Shepherd服务"
  53214. #. type: menuentry
  53215. #: guix-git/doc/guix.texi:36165
  53216. #, fuzzy
  53217. #| msgid "Messaging services."
  53218. msgid "Managing User's Daemons."
  53219. msgstr "消息服务。"
  53220. #. type: Plain text
  53221. #: guix-git/doc/guix.texi:36174
  53222. 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."
  53223. msgstr ""
  53224. #. type: cindex
  53225. #: guix-git/doc/guix.texi:36175
  53226. #, fuzzy, no-wrap
  53227. msgid "environment variables"
  53228. msgstr "构建环境"
  53229. #. type: defvr
  53230. #: guix-git/doc/guix.texi:36177
  53231. #, no-wrap
  53232. msgid "{Scheme Variable} home-environment-variables-service-type"
  53233. msgstr ""
  53234. #. type: defvr
  53235. #: guix-git/doc/guix.texi:36182
  53236. 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."
  53237. msgstr ""
  53238. #. type: lisp
  53239. #: guix-git/doc/guix.texi:36186
  53240. #, no-wrap
  53241. msgid ""
  53242. "(list (\"ENV_VAR1\" . \"value1\")\n"
  53243. " (\"ENV_VAR2\" . \"value2\"))\n"
  53244. msgstr ""
  53245. #. type: defvr
  53246. #: guix-git/doc/guix.texi:36191
  53247. 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)}."
  53248. msgstr ""
  53249. #. type: lisp
  53250. #: guix-git/doc/guix.texi:36199
  53251. #, no-wrap
  53252. msgid ""
  53253. "(simple-service 'some-useful-env-vars-service\n"
  53254. "\t\thome-environment-variables-service-type\n"
  53255. "\t\t`((\"LESSHISTFILE\" . \"$XDG_CACHE_HOME/.lesshst\")\n"
  53256. " (\"SHELL\" . ,(file-append zsh \"/bin/zsh\"))\n"
  53257. " (\"USELESS_VAR\" . #f)\n"
  53258. " (\"_JAVA_AWT_WM_NONREPARENTING\" . #t)))\n"
  53259. msgstr ""
  53260. #. type: defvr
  53261. #: guix-git/doc/guix.texi:36204
  53262. 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):"
  53263. msgstr ""
  53264. #. type: example
  53265. #: guix-git/doc/guix.texi:36209
  53266. #, no-wrap
  53267. msgid ""
  53268. "export LESSHISTFILE=$XDG_CACHE_HOME/.lesshst\n"
  53269. "export SHELL=/gnu/store/2hsg15n644f0glrcbkb1kqknmmqdar03-zsh-5.8/bin/zsh\n"
  53270. "export _JAVA_AWT_WM_NONREPARENTING\n"
  53271. msgstr ""
  53272. #. type: quotation
  53273. #: guix-git/doc/guix.texi:36216
  53274. 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."
  53275. msgstr ""
  53276. #. type: defvr
  53277. #: guix-git/doc/guix.texi:36229
  53278. 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."
  53279. msgstr ""
  53280. #. type: defvr
  53281. #: guix-git/doc/guix.texi:36232
  53282. #, no-wrap
  53283. msgid "{Scheme Variable} home-profile-service-type"
  53284. msgstr ""
  53285. #. type: defvr
  53286. #: guix-git/doc/guix.texi:36238
  53287. 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."
  53288. msgstr ""
  53289. #. type: defvr
  53290. #: guix-git/doc/guix.texi:36240
  53291. msgid "The extension value is just a list of packages:"
  53292. msgstr ""
  53293. #. type: lisp
  53294. #: guix-git/doc/guix.texi:36243
  53295. #, no-wrap
  53296. msgid "(list htop vim emacs)\n"
  53297. msgstr ""
  53298. #. type: defvr
  53299. #: guix-git/doc/guix.texi:36253
  53300. 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."
  53301. msgstr ""
  53302. #. type: Plain text
  53303. #: guix-git/doc/guix.texi:36257
  53304. msgid "There are few more essential services, but users are not expected to extend them."
  53305. msgstr ""
  53306. #. type: defvr
  53307. #: guix-git/doc/guix.texi:36258
  53308. #, no-wrap
  53309. msgid "{Scheme Variable} home-service-type"
  53310. msgstr ""
  53311. #. type: defvr
  53312. #: guix-git/doc/guix.texi:36263
  53313. 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."
  53314. msgstr ""
  53315. #. type: defvr
  53316. #: guix-git/doc/guix.texi:36265
  53317. #, no-wrap
  53318. msgid "{Scheme Variable} home-run-on-first-login-service-type"
  53319. msgstr ""
  53320. #. type: defvr
  53321. #: guix-git/doc/guix.texi:36270
  53322. 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."
  53323. msgstr ""
  53324. #. type: defvr
  53325. #: guix-git/doc/guix.texi:36276
  53326. 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."
  53327. msgstr ""
  53328. #. type: defvr
  53329. #: guix-git/doc/guix.texi:36278
  53330. #, no-wrap
  53331. msgid "{Scheme Variable} home-activation-service-type"
  53332. msgstr ""
  53333. #. type: defvr
  53334. #: guix-git/doc/guix.texi:36282
  53335. 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."
  53336. msgstr ""
  53337. #. type: node
  53338. #: guix-git/doc/guix.texi:36284
  53339. #, fuzzy, no-wrap
  53340. #| msgid "Shepherd Services"
  53341. msgid "Shells Home Services"
  53342. msgstr "Shepherd服务"
  53343. #. type: subsection
  53344. #: guix-git/doc/guix.texi:36285
  53345. #, no-wrap
  53346. msgid "Shells"
  53347. msgstr ""
  53348. #. type: cindex
  53349. #: guix-git/doc/guix.texi:36287 guix-git/doc/guix.texi:36568
  53350. #, no-wrap
  53351. msgid "shell"
  53352. msgstr ""
  53353. #. type: cindex
  53354. #: guix-git/doc/guix.texi:36288
  53355. #, no-wrap
  53356. msgid "login shell"
  53357. msgstr ""
  53358. #. type: cindex
  53359. #: guix-git/doc/guix.texi:36289
  53360. #, no-wrap
  53361. msgid "interactive shell"
  53362. msgstr ""
  53363. #. type: cindex
  53364. #: guix-git/doc/guix.texi:36290 guix-git/doc/guix.texi:36570
  53365. #, no-wrap
  53366. msgid "bash"
  53367. msgstr ""
  53368. #. type: cindex
  53369. #: guix-git/doc/guix.texi:36291 guix-git/doc/guix.texi:36571
  53370. #, no-wrap
  53371. msgid "zsh"
  53372. msgstr ""
  53373. #. type: Plain text
  53374. #: guix-git/doc/guix.texi:36297
  53375. 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."
  53376. msgstr ""
  53377. #. type: Plain text
  53378. #: guix-git/doc/guix.texi:36307
  53379. 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."
  53380. msgstr ""
  53381. #. type: subsubheading
  53382. #: guix-git/doc/guix.texi:36308
  53383. #, fuzzy, no-wrap
  53384. #| msgid "Certificate Services"
  53385. msgid "Shell Profile Service"
  53386. msgstr "证书服务"
  53387. #. type: deftp
  53388. #: guix-git/doc/guix.texi:36310
  53389. #, fuzzy, no-wrap
  53390. msgid "{Data Type} home-shell-profile-configuration"
  53391. msgstr "管理操作系统配置。"
  53392. #. type: deftp
  53393. #: guix-git/doc/guix.texi:36312
  53394. msgid "Available @code{home-shell-profile-configuration} fields are:"
  53395. msgstr ""
  53396. #. type: item
  53397. #: guix-git/doc/guix.texi:36314
  53398. #, fuzzy, no-wrap
  53399. msgid "@code{profile} (default: @code{()}) (type: text-config)"
  53400. msgstr "@code{challenge}(默认值:@code{#f})"
  53401. #. type: table
  53402. #: guix-git/doc/guix.texi:36324
  53403. 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."
  53404. msgstr ""
  53405. #. type: subsubheading
  53406. #: guix-git/doc/guix.texi:36329
  53407. #, fuzzy, no-wrap
  53408. #| msgid "Base Services"
  53409. msgid "Bash Home Service"
  53410. msgstr "基础服务"
  53411. #. type: anchor{#1}
  53412. #: guix-git/doc/guix.texi:36332
  53413. #, fuzzy
  53414. msgid "home-bash-configuration"
  53415. msgstr "系统配置"
  53416. #. type: deftp
  53417. #: guix-git/doc/guix.texi:36332
  53418. #, fuzzy, no-wrap
  53419. msgid "{Data Type} home-bash-configuration"
  53420. msgstr "{数据类型} build-machine"
  53421. #. type: deftp
  53422. #: guix-git/doc/guix.texi:36334
  53423. msgid "Available @code{home-bash-configuration} fields are:"
  53424. msgstr ""
  53425. #. type: item
  53426. #: guix-git/doc/guix.texi:36336
  53427. #, fuzzy, no-wrap
  53428. msgid "@code{package} (default: @code{bash}) (type: package)"
  53429. msgstr "@code{xfce}(默认值:@code{xfce})"
  53430. #. type: table
  53431. #: guix-git/doc/guix.texi:36338
  53432. #, fuzzy
  53433. msgid "The Bash package to use."
  53434. msgstr "软件包数据类型。"
  53435. #. type: item
  53436. #: guix-git/doc/guix.texi:36339
  53437. #, fuzzy, no-wrap
  53438. msgid "@code{guix-defaults?} (default: @code{#t}) (type: boolean)"
  53439. msgstr "@code{challenge}(默认值:@code{#f})"
  53440. #. type: table
  53441. #: guix-git/doc/guix.texi:36342
  53442. msgid "Add sane defaults like reading @file{/etc/bashrc} and coloring the output of @command{ls} to the end of the @file{.bashrc} file."
  53443. msgstr ""
  53444. #. type: item
  53445. #: guix-git/doc/guix.texi:36343 guix-git/doc/guix.texi:36397
  53446. #: guix-git/doc/guix.texi:36436
  53447. #, fuzzy, no-wrap
  53448. msgid "@code{environment-variables} (default: @code{()}) (type: alist)"
  53449. msgstr "@code{features} (@code{'()})"
  53450. #. type: table
  53451. #: guix-git/doc/guix.texi:36348
  53452. msgid "Association list of environment variables to set for the Bash session. The rules for the @code{home-environment-variables-service-type} apply here (@pxref{Essential Home Services}). The contents of this field will be added after the contents of the @code{bash-profile} field."
  53453. msgstr ""
  53454. #. type: item
  53455. #: guix-git/doc/guix.texi:36349 guix-git/doc/guix.texi:36402
  53456. #, fuzzy, no-wrap
  53457. msgid "@code{aliases} (default: @code{()}) (type: alist)"
  53458. msgstr "@code{features} (@code{'()})"
  53459. #. type: table
  53460. #: guix-git/doc/guix.texi:36354
  53461. msgid "Association list of aliases to set for the Bash session. The aliases will be defined after the contents of the @code{bashrc} field has been put in the @file{.bashrc} file. The alias will automatically be quoted, so something line this:"
  53462. msgstr ""
  53463. #. type: lisp
  53464. #: guix-git/doc/guix.texi:36357
  53465. #, no-wrap
  53466. msgid "'((\\\"ls\\\" . \\\"ls -alF\\\"))\n"
  53467. msgstr ""
  53468. #. type: table
  53469. #: guix-git/doc/guix.texi:36360
  53470. msgid "turns into"
  53471. msgstr ""
  53472. #. type: example
  53473. #: guix-git/doc/guix.texi:36363
  53474. #, no-wrap
  53475. msgid "alias ls=\\\"ls -alF\\\"\n"
  53476. msgstr ""
  53477. #. type: item
  53478. #: guix-git/doc/guix.texi:36365 guix-git/doc/guix.texi:36406
  53479. #, fuzzy, no-wrap
  53480. msgid "@code{bash-profile} (default: @code{()}) (type: text-config)"
  53481. msgstr "@code{xfce}(默认值:@code{xfce})"
  53482. #. type: table
  53483. #: guix-git/doc/guix.texi:36370
  53484. 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."
  53485. msgstr ""
  53486. #. type: item
  53487. #: guix-git/doc/guix.texi:36371 guix-git/doc/guix.texi:36410
  53488. #, fuzzy, no-wrap
  53489. msgid "@code{bashrc} (default: @code{()}) (type: text-config)"
  53490. msgstr "@code{xfce}(默认值:@code{xfce})"
  53491. #. type: table
  53492. #: guix-git/doc/guix.texi:36376
  53493. 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)."
  53494. msgstr ""
  53495. #. type: item
  53496. #: guix-git/doc/guix.texi:36377 guix-git/doc/guix.texi:36414
  53497. #, fuzzy, no-wrap
  53498. msgid "@code{bash-logout} (default: @code{()}) (type: text-config)"
  53499. msgstr "@code{xfce}(默认值:@code{xfce})"
  53500. #. type: table
  53501. #: guix-git/doc/guix.texi:36382
  53502. 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)."
  53503. msgstr ""
  53504. #. type: Plain text
  53505. #: guix-git/doc/guix.texi:36392
  53506. msgid "You can extend the Bash service by using the @code{home-bash-extension} configuration record, whose fields most mirror that of @code{home-bash-configuration} (@pxref{home-bash-configuration}). The contents of the extensions will be added to the end of the corresponding Bash configuration files (@pxref{Bash Startup Files,,, bash, The GNU Bash Reference Manual}."
  53507. msgstr ""
  53508. #. type: deftp
  53509. #: guix-git/doc/guix.texi:36393
  53510. #, fuzzy, no-wrap
  53511. msgid "{Data Type} home-bash-extension"
  53512. msgstr "{数据类型} build-machine"
  53513. #. type: deftp
  53514. #: guix-git/doc/guix.texi:36395
  53515. msgid "Available @code{home-bash-extension} fields are:"
  53516. msgstr ""
  53517. #. type: table
  53518. #: guix-git/doc/guix.texi:36401
  53519. msgid "Additional environment variables to set. These will be combined with the environment variables from other extensions and the base service to form one coherent block of environment variables."
  53520. msgstr ""
  53521. #. type: table
  53522. #: guix-git/doc/guix.texi:36405
  53523. msgid "Additional aliases to set. These will be combined with the aliases from other extensions and the base service."
  53524. msgstr ""
  53525. #. type: table
  53526. #: guix-git/doc/guix.texi:36409
  53527. msgid "Additional text blocks to add to @file{.bash_profile}, which will be combined with text blocks from other extensions and the base service."
  53528. msgstr ""
  53529. #. type: table
  53530. #: guix-git/doc/guix.texi:36413
  53531. msgid "Additional text blocks to add to @file{.bashrc}, which will be combined with text blocks from other extensions and the base service."
  53532. msgstr ""
  53533. #. type: table
  53534. #: guix-git/doc/guix.texi:36417
  53535. msgid "Additional text blocks to add to @file{.bash_logout}, which will be combined with text blocks from other extensions and the base service."
  53536. msgstr ""
  53537. #. type: subsubheading
  53538. #: guix-git/doc/guix.texi:36421
  53539. #, fuzzy, no-wrap
  53540. #| msgid "Game Services"
  53541. msgid "Zsh Home Service"
  53542. msgstr "游戏服务"
  53543. #. type: deftp
  53544. #: guix-git/doc/guix.texi:36423
  53545. #, fuzzy, no-wrap
  53546. msgid "{Data Type} home-zsh-configuration"
  53547. msgstr "{数据类型} build-machine"
  53548. #. type: deftp
  53549. #: guix-git/doc/guix.texi:36425
  53550. msgid "Available @code{home-zsh-configuration} fields are:"
  53551. msgstr ""
  53552. #. type: item
  53553. #: guix-git/doc/guix.texi:36427
  53554. #, fuzzy, no-wrap
  53555. msgid "@code{package} (default: @code{zsh}) (type: package)"
  53556. msgstr "@code{xfce}(默认值:@code{xfce})"
  53557. #. type: table
  53558. #: guix-git/doc/guix.texi:36429
  53559. #, fuzzy
  53560. msgid "The Zsh package to use."
  53561. msgstr "软件包数据类型。"
  53562. #. type: item
  53563. #: guix-git/doc/guix.texi:36430
  53564. #, fuzzy, no-wrap
  53565. msgid "@code{xdg-flavor?} (default: @code{#t}) (type: boolean)"
  53566. msgstr "@code{challenge}(默认值:@code{#f})"
  53567. #. type: table
  53568. #: guix-git/doc/guix.texi:36435
  53569. 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}."
  53570. msgstr ""
  53571. #. type: table
  53572. #: guix-git/doc/guix.texi:36438
  53573. msgid "Association list of environment variables to set for the Zsh session."
  53574. msgstr ""
  53575. #. type: item
  53576. #: guix-git/doc/guix.texi:36439
  53577. #, fuzzy, no-wrap
  53578. msgid "@code{zshenv} (default: @code{()}) (type: text-config)"
  53579. msgstr "@code{xfce}(默认值:@code{xfce})"
  53580. #. type: table
  53581. #: guix-git/doc/guix.texi:36444
  53582. 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}."
  53583. msgstr ""
  53584. #. type: item
  53585. #: guix-git/doc/guix.texi:36445
  53586. #, fuzzy, no-wrap
  53587. msgid "@code{zprofile} (default: @code{()}) (type: text-config)"
  53588. msgstr "@code{challenge}(默认值:@code{#f})"
  53589. #. type: table
  53590. #: guix-git/doc/guix.texi:36450
  53591. 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}."
  53592. msgstr ""
  53593. #. type: item
  53594. #: guix-git/doc/guix.texi:36451
  53595. #, fuzzy, no-wrap
  53596. msgid "@code{zshrc} (default: @code{()}) (type: text-config)"
  53597. msgstr "@code{xfce}(默认值:@code{xfce})"
  53598. #. type: table
  53599. #: guix-git/doc/guix.texi:36456
  53600. 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)."
  53601. msgstr ""
  53602. #. type: item
  53603. #: guix-git/doc/guix.texi:36457
  53604. #, fuzzy, no-wrap
  53605. msgid "@code{zlogin} (default: @code{()}) (type: text-config)"
  53606. msgstr "@code{speed}(默认值:@code{1.0})"
  53607. #. type: table
  53608. #: guix-git/doc/guix.texi:36461
  53609. 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."
  53610. msgstr ""
  53611. #. type: item
  53612. #: guix-git/doc/guix.texi:36462
  53613. #, fuzzy, no-wrap
  53614. msgid "@code{zlogout} (default: @code{()}) (type: text-config)"
  53615. msgstr "@code{xfce}(默认值:@code{xfce})"
  53616. #. type: table
  53617. #: guix-git/doc/guix.texi:36467
  53618. 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)."
  53619. msgstr ""
  53620. #. type: node
  53621. #: guix-git/doc/guix.texi:36472
  53622. #, fuzzy, no-wrap
  53623. #| msgid "Monitoring Services"
  53624. msgid "Mcron Home Service"
  53625. msgstr "监控服务"
  53626. #. type: subsection
  53627. #: guix-git/doc/guix.texi:36473
  53628. #, fuzzy, no-wrap
  53629. #| msgid "Scheduled Job Execution"
  53630. msgid "Scheduled User's Job Execution"
  53631. msgstr "执行计划任务"
  53632. #. type: Plain text
  53633. #: guix-git/doc/guix.texi:36486
  53634. 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."
  53635. msgstr ""
  53636. #. type: defvr
  53637. #: guix-git/doc/guix.texi:36487
  53638. #, no-wrap
  53639. msgid "{Scheme Variable} home-mcron-service-type"
  53640. msgstr ""
  53641. #. type: defvr
  53642. #: guix-git/doc/guix.texi:36491
  53643. 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."
  53644. msgstr ""
  53645. #. type: deftp
  53646. #: guix-git/doc/guix.texi:36498
  53647. #, fuzzy, no-wrap
  53648. msgid "{Data Type} home-mcron-configuration"
  53649. msgstr "{数据类型} build-machine"
  53650. #. type: node
  53651. #: guix-git/doc/guix.texi:36512
  53652. #, fuzzy, no-wrap
  53653. #| msgid "Shepherd Services"
  53654. msgid "Shepherd Home Service"
  53655. msgstr "Shepherd服务"
  53656. #. type: subsection
  53657. #: guix-git/doc/guix.texi:36513
  53658. #, no-wrap
  53659. msgid "Managing User's Daemons"
  53660. msgstr ""
  53661. #. type: defvr
  53662. #: guix-git/doc/guix.texi:36517
  53663. #, no-wrap
  53664. msgid "{Scheme Variable} home-shepherd-service-type"
  53665. msgstr ""
  53666. #. type: defvr
  53667. #: guix-git/doc/guix.texi:36522
  53668. 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."
  53669. msgstr ""
  53670. #. type: item
  53671. #: guix-git/doc/guix.texi:36536
  53672. #, fuzzy, no-wrap
  53673. msgid "auto-start? (default: @code{#t})"
  53674. msgstr "@code{port}(默认值:@code{22})"
  53675. #. type: table
  53676. #: guix-git/doc/guix.texi:36538
  53677. msgid "Whether or not to start Shepherd on first login."
  53678. msgstr ""
  53679. #. type: section
  53680. #: guix-git/doc/guix.texi:36547
  53681. #, fuzzy, no-wrap
  53682. msgid "Invoking @code{guix home}"
  53683. msgstr "调用@command{guix-daemon}"
  53684. #. type: Plain text
  53685. #: guix-git/doc/guix.texi:36552
  53686. 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:"
  53687. msgstr ""
  53688. #. type: example
  53689. #: guix-git/doc/guix.texi:36555
  53690. #, no-wrap
  53691. msgid "guix home @var{options}@dots{} @var{action} @var{file}\n"
  53692. msgstr ""
  53693. #. type: Plain text
  53694. #: guix-git/doc/guix.texi:36562
  53695. 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:"
  53696. msgstr ""
  53697. #. type: table
  53698. #: guix-git/doc/guix.texi:36567
  53699. msgid "Display available home service type definitions that match the given regular expressions, sorted by relevance:"
  53700. msgstr ""
  53701. #. type: cindex
  53702. #: guix-git/doc/guix.texi:36569
  53703. #, no-wrap
  53704. msgid "shell-profile"
  53705. msgstr ""
  53706. #. type: example
  53707. #: guix-git/doc/guix.texi:36581
  53708. #, no-wrap
  53709. msgid ""
  53710. "$ guix home search shell\n"
  53711. "name: home-shell-profile\n"
  53712. "location: gnu/home/services/shells.scm:73:2\n"
  53713. "extends: home-files\n"
  53714. "description: Create `~/.profile', which is used for environment initialization\n"
  53715. "+ of POSIX compatible login shells. Can be extended with a list of strings or\n"
  53716. "+ gexps.\n"
  53717. "relevance: 6\n"
  53718. "\n"
  53719. msgstr ""
  53720. #. type: example
  53721. #: guix-git/doc/guix.texi:36587
  53722. #, no-wrap
  53723. msgid ""
  53724. "name: home-zsh-plugin-manager\n"
  53725. "location: gnu/home/services/shellutils.scm:28:2\n"
  53726. "extends: home-zsh home-profile\n"
  53727. "description: Install plugins in profile and configure Zsh to load them.\n"
  53728. "relevance: 1\n"
  53729. "\n"
  53730. msgstr ""
  53731. #. type: example
  53732. #: guix-git/doc/guix.texi:36594
  53733. #, no-wrap
  53734. msgid ""
  53735. "name: home-zsh-direnv\n"
  53736. "location: gnu/home/services/shellutils.scm:69:2\n"
  53737. "extends: home-profile home-zsh\n"
  53738. "description: Enables `direnv' for `zsh'. Adds hook to `.zshrc' and installs a\n"
  53739. "+ package in the profile.\n"
  53740. "relevance: 1\n"
  53741. "\n"
  53742. msgstr ""
  53743. #. type: example
  53744. #: guix-git/doc/guix.texi:36603
  53745. #, no-wrap
  53746. msgid ""
  53747. "name: home-zsh-autosuggestions\n"
  53748. "location: gnu/home/services/shellutils.scm:43:2\n"
  53749. "extends: home-zsh-plugin-manager home-zsh\n"
  53750. "description: Enables Fish-like fast/unobtrusive autosuggestions for `zsh' and\n"
  53751. "+ sets reasonable default values for some plugin's variables to improve perfomance\n"
  53752. "+ and adjust behavior: `(history completion)' is set for strategy, manual rebind\n"
  53753. "+ and async are enabled.\n"
  53754. "relevance: 1\n"
  53755. "\n"
  53756. msgstr ""
  53757. #. type: example
  53758. #: guix-git/doc/guix.texi:36609
  53759. #, no-wrap
  53760. msgid ""
  53761. "name: home-zsh\n"
  53762. "location: gnu/home/services/shells.scm:236:2\n"
  53763. "extends: home-files home-profile\n"
  53764. "description: Install and configure Zsh.\n"
  53765. "relevance: 1\n"
  53766. "\n"
  53767. msgstr ""
  53768. #. type: example
  53769. #: guix-git/doc/guix.texi:36615
  53770. #, no-wrap
  53771. msgid ""
  53772. "name: home-bash\n"
  53773. "location: gnu/home/services/shells.scm:388:2\n"
  53774. "extends: home-files home-profile\n"
  53775. "description: Install and configure Bash.\n"
  53776. "relevance: 1\n"
  53777. "\n"
  53778. msgstr ""
  53779. #. type: table
  53780. #: guix-git/doc/guix.texi:36631
  53781. 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."
  53782. msgstr ""
  53783. #. type: quotation
  53784. #: guix-git/doc/guix.texi:36636
  53785. 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})."
  53786. msgstr ""
  53787. #. type: table
  53788. #: guix-git/doc/guix.texi:36643
  53789. 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})."
  53790. msgstr ""
  53791. #. type: table
  53792. #: guix-git/doc/guix.texi:36649
  53793. 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})."
  53794. msgstr ""
  53795. #. type: cindex
  53796. #: guix-git/doc/guix.texi:36650
  53797. #, fuzzy, no-wrap
  53798. msgid "provenance tracking, of the home environment"
  53799. msgstr "配置操作系统。"
  53800. #. type: table
  53801. #: guix-git/doc/guix.texi:36655
  53802. 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:"
  53803. msgstr ""
  53804. #. type: example
  53805. #: guix-git/doc/guix.texi:36658
  53806. #, fuzzy, no-wrap
  53807. #| msgid "guix describe\n"
  53808. msgid "guix home describe\n"
  53809. msgstr "guix describe\n"
  53810. #. type: table
  53811. #: guix-git/doc/guix.texi:36664
  53812. 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:"
  53813. msgstr ""
  53814. #. type: example
  53815. #: guix-git/doc/guix.texi:36670
  53816. #, no-wrap
  53817. msgid ""
  53818. "guix time-machine \\\n"
  53819. " -C /var/guix/profiles/per-user/@var{USER}/guix-home-@var{n}-link/channels.scm -- \\\n"
  53820. " home reconfigure \\\n"
  53821. " /var/guix/profiles/per-user/@var{USER}/guix-home-@var{n}-link/configuration.scm\n"
  53822. "\n"
  53823. msgstr ""
  53824. #. type: table
  53825. #: guix-git/doc/guix.texi:36677
  53826. 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}."
  53827. msgstr ""
  53828. #. type: cindex
  53829. #: guix-git/doc/guix.texi:36683
  53830. #, fuzzy, no-wrap
  53831. #| msgid "Documentation"
  53832. msgid "home generations"
  53833. msgstr "文档"
  53834. #. type: table
  53835. #: guix-git/doc/guix.texi:36686
  53836. msgid "Switch to an existing home generation. This action atomically switches the home profile to the specified home generation."
  53837. msgstr ""
  53838. #. type: table
  53839. #: guix-git/doc/guix.texi:36690
  53840. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to home generation 7:"
  53841. msgstr ""
  53842. #. type: example
  53843. #: guix-git/doc/guix.texi:36693
  53844. #, fuzzy, no-wrap
  53845. msgid "guix home switch-generation 7\n"
  53846. msgstr "guix package --list-available\n"
  53847. #. type: example
  53848. #: guix-git/doc/guix.texi:36704
  53849. #, fuzzy, no-wrap
  53850. msgid "guix home switch-generation -- -1\n"
  53851. msgstr "guix package --list-available\n"
  53852. #. type: table
  53853. #: guix-git/doc/guix.texi:36713
  53854. 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}."
  53855. msgstr ""
  53856. #. type: cindex
  53857. #: guix-git/doc/guix.texi:36715
  53858. #, no-wrap
  53859. msgid "deleting home generations"
  53860. msgstr ""
  53861. #. type: table
  53862. #: guix-git/doc/guix.texi:36720
  53863. msgid "Delete home generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  53864. msgstr ""
  53865. #. type: table
  53866. #: guix-git/doc/guix.texi:36724
  53867. 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:"
  53868. msgstr ""
  53869. #. type: example
  53870. #: guix-git/doc/guix.texi:36727
  53871. #, fuzzy, no-wrap
  53872. msgid "guix home delete-generations\n"
  53873. msgstr "guix package --list-available\n"
  53874. #. type: table
  53875. #: guix-git/doc/guix.texi:36731
  53876. msgid "You can also select the generations you want to delete. The example below deletes all the home generations that are more than two months old:"
  53877. msgstr ""
  53878. #. type: example
  53879. #: guix-git/doc/guix.texi:36734
  53880. #, fuzzy, no-wrap
  53881. msgid "guix home delete-generations 2m\n"
  53882. msgstr "guix package --list-available\n"
  53883. #. type: table
  53884. #: guix-git/doc/guix.texi:36740
  53885. msgid "Build the derivation of the home environment, which includes all the configuration files and programs needed. This action does not actually install anything."
  53886. msgstr ""
  53887. #. type: table
  53888. #: guix-git/doc/guix.texi:36744
  53889. msgid "Describe the current home generation: its file name, as well as provenance information when available."
  53890. msgstr ""
  53891. #. type: table
  53892. #: guix-git/doc/guix.texi:36750
  53893. 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})."
  53894. msgstr ""
  53895. #. type: example
  53896. #: guix-git/doc/guix.texi:36758
  53897. #, fuzzy, no-wrap
  53898. msgid "$ guix home list-generations 10d\n"
  53899. msgstr "guix package --list-available\n"
  53900. #. type: item
  53901. #: guix-git/doc/guix.texi:36760
  53902. #, no-wrap
  53903. msgid "import"
  53904. msgstr ""
  53905. #. type: table
  53906. #: guix-git/doc/guix.texi:36767
  53907. msgid "Generate a @dfn{home environment} from the packages in the default profile and configuration files found in the user's home directory. The configuration files will be copied to the specified directory, and a @file{home-configuration.scm} will be populated with the home environment. Note that not every home service that exists is supported (@pxref{Home Services})."
  53908. msgstr ""
  53909. #. type: example
  53910. #: guix-git/doc/guix.texi:36771
  53911. #, no-wrap
  53912. msgid ""
  53913. "$ guix home import ~/guix-config\n"
  53914. "guix home: '/home/alice/guix-config' populated with all the Home configuration files\n"
  53915. msgstr ""
  53916. #. type: table
  53917. #: guix-git/doc/guix.texi:36786
  53918. msgid "Consider the home-environment @var{expr} evaluates to. This is an alternative to specifying a file which evaluates to a home environment."
  53919. msgstr ""
  53920. #. type: cindex
  53921. #: guix-git/doc/guix.texi:36792
  53922. #, no-wrap
  53923. msgid "documentation, searching for"
  53924. msgstr ""
  53925. #. type: cindex
  53926. #: guix-git/doc/guix.texi:36793
  53927. #, no-wrap
  53928. msgid "searching for documentation"
  53929. msgstr ""
  53930. #. type: cindex
  53931. #: guix-git/doc/guix.texi:36794
  53932. #, no-wrap
  53933. msgid "Info, documentation format"
  53934. msgstr ""
  53935. #. type: cindex
  53936. #: guix-git/doc/guix.texi:36795
  53937. #, no-wrap
  53938. msgid "man pages"
  53939. msgstr ""
  53940. #. type: cindex
  53941. #: guix-git/doc/guix.texi:36796
  53942. #, no-wrap
  53943. msgid "manual pages"
  53944. msgstr ""
  53945. #. type: Plain text
  53946. #: guix-git/doc/guix.texi:36803
  53947. 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}."
  53948. msgstr ""
  53949. #. type: Plain text
  53950. #: guix-git/doc/guix.texi:36807
  53951. 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:"
  53952. msgstr ""
  53953. #. type: example
  53954. #: guix-git/doc/guix.texi:36815
  53955. #, no-wrap
  53956. msgid ""
  53957. "$ info -k TLS\n"
  53958. "\"(emacs)Network Security\" -- STARTTLS\n"
  53959. "\"(emacs)Network Security\" -- TLS\n"
  53960. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_flags\n"
  53961. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_function\n"
  53962. "@dots{}\n"
  53963. msgstr ""
  53964. #. type: Plain text
  53965. #: guix-git/doc/guix.texi:36821
  53966. msgid "The command below searches for the same keyword in man pages@footnote{The database searched by @command{man -k} is only created in profiles that contain the @code{man-db} package.}:"
  53967. msgstr ""
  53968. #. type: example
  53969. #: guix-git/doc/guix.texi:36827
  53970. #, no-wrap
  53971. msgid ""
  53972. "$ man -k TLS\n"
  53973. "SSL (7) - OpenSSL SSL/TLS library\n"
  53974. "certtool (1) - GnuTLS certificate tool\n"
  53975. "@dots {}\n"
  53976. msgstr ""
  53977. #. type: Plain text
  53978. #: guix-git/doc/guix.texi:36833
  53979. 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."
  53980. msgstr ""
  53981. #. type: Plain text
  53982. #: guix-git/doc/guix.texi:36836
  53983. msgid "Once you have these results, you can view the relevant documentation by running, say:"
  53984. msgstr ""
  53985. #. type: example
  53986. #: guix-git/doc/guix.texi:36839
  53987. #, no-wrap
  53988. msgid "$ info \"(gnutls)Core TLS API\"\n"
  53989. msgstr ""
  53990. #. type: Plain text
  53991. #: guix-git/doc/guix.texi:36843
  53992. msgid "or:"
  53993. msgstr ""
  53994. #. type: example
  53995. #: guix-git/doc/guix.texi:36846
  53996. #, no-wrap
  53997. msgid "$ man certtool\n"
  53998. msgstr ""
  53999. #. type: Plain text
  54000. #: guix-git/doc/guix.texi:36854
  54001. 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."
  54002. msgstr ""
  54003. #. type: cindex
  54004. #: guix-git/doc/guix.texi:36858
  54005. #, no-wrap
  54006. msgid "debugging files"
  54007. msgstr ""
  54008. #. type: Plain text
  54009. #: guix-git/doc/guix.texi:36864
  54010. 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."
  54011. msgstr ""
  54012. #. type: Plain text
  54013. #: guix-git/doc/guix.texi:36868
  54014. 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."
  54015. msgstr ""
  54016. #. type: Plain text
  54017. #: guix-git/doc/guix.texi:36884
  54018. 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})."
  54019. msgstr ""
  54020. #. type: Plain text
  54021. #: guix-git/doc/guix.texi:36891
  54022. 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})."
  54023. msgstr ""
  54024. #. type: Plain text
  54025. #: guix-git/doc/guix.texi:36899
  54026. 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:"
  54027. msgstr ""
  54028. #. type: example
  54029. #: guix-git/doc/guix.texi:36902
  54030. #, no-wrap
  54031. msgid "guix install glibc:debug guile:debug\n"
  54032. msgstr ""
  54033. #. type: Plain text
  54034. #: guix-git/doc/guix.texi:36908
  54035. 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}):"
  54036. msgstr ""
  54037. #. type: example
  54038. #: guix-git/doc/guix.texi:36911
  54039. #, no-wrap
  54040. msgid "(gdb) set debug-file-directory ~/.guix-profile/lib/debug\n"
  54041. msgstr ""
  54042. #. type: Plain text
  54043. #: guix-git/doc/guix.texi:36915
  54044. msgid "From there on, GDB will pick up debugging information from the @file{.debug} files under @file{~/.guix-profile/lib/debug}."
  54045. msgstr ""
  54046. #. type: Plain text
  54047. #: guix-git/doc/guix.texi:36922
  54048. 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})."
  54049. msgstr ""
  54050. #. type: Plain text
  54051. #: guix-git/doc/guix.texi:36930
  54052. 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})."
  54053. msgstr ""
  54054. #. type: Plain text
  54055. #: guix-git/doc/guix.texi:36932
  54056. msgid "Read on for how to deal with packages lacking a @code{debug} output."
  54057. msgstr ""
  54058. #. type: Plain text
  54059. #: guix-git/doc/guix.texi:36944
  54060. 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."
  54061. msgstr ""
  54062. #. type: Plain text
  54063. #: guix-git/doc/guix.texi:36949
  54064. 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:"
  54065. msgstr ""
  54066. #. type: example
  54067. #: guix-git/doc/guix.texi:36960
  54068. #, no-wrap
  54069. msgid ""
  54070. "(gdb) bt\n"
  54071. "#0 0x00007ffff5f92190 in g_getenv ()\n"
  54072. " from /gnu/store/@dots{}-glib-2.62.6/lib/libglib-2.0.so.0\n"
  54073. "#1 0x00007ffff608a7d6 in gobject_init_ctor ()\n"
  54074. " from /gnu/store/@dots{}-glib-2.62.6/lib/libgobject-2.0.so.0\n"
  54075. "#2 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=1, argv=argv@@entry=0x7fffffffcfd8, \n"
  54076. " env=env@@entry=0x7fffffffcfe8) at dl-init.c:72\n"
  54077. "#3 0x00007ffff7fe2866 in call_init (env=0x7fffffffcfe8, argv=0x7fffffffcfd8, argc=1, l=<optimized out>)\n"
  54078. " at dl-init.c:118\n"
  54079. msgstr ""
  54080. #. type: Plain text
  54081. #: guix-git/doc/guix.texi:36964
  54082. msgid "To address that, you install Inkscape linked against a variant GLib that contains debug info:"
  54083. msgstr ""
  54084. #. type: Plain text
  54085. #: guix-git/doc/guix.texi:36970
  54086. msgid "This time, debugging will be a whole lot nicer:"
  54087. msgstr ""
  54088. #. type: example
  54089. #: guix-git/doc/guix.texi:36988
  54090. #, no-wrap
  54091. msgid ""
  54092. "$ gdb --args sh -c 'exec inkscape'\n"
  54093. "@dots{}\n"
  54094. "(gdb) b g_getenv\n"
  54095. "Function \"g_getenv\" not defined.\n"
  54096. "Make breakpoint pending on future shared library load? (y or [n]) y\n"
  54097. "Breakpoint 1 (g_getenv) pending.\n"
  54098. "(gdb) r\n"
  54099. "Starting program: /gnu/store/@dots{}-profile/bin/sh -c exec\\ inkscape\n"
  54100. "@dots{}\n"
  54101. "(gdb) bt\n"
  54102. "#0 g_getenv (variable=variable@@entry=0x7ffff60c7a2e \"GOBJECT_DEBUG\") at ../glib-2.62.6/glib/genviron.c:252\n"
  54103. "#1 0x00007ffff608a7d6 in gobject_init () at ../glib-2.62.6/gobject/gtype.c:4380\n"
  54104. "#2 gobject_init_ctor () at ../glib-2.62.6/gobject/gtype.c:4493\n"
  54105. "#3 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=3, argv=argv@@entry=0x7fffffffd088, \n"
  54106. " env=env@@entry=0x7fffffffd0a8) at dl-init.c:72\n"
  54107. "@dots{}\n"
  54108. msgstr ""
  54109. #. type: Plain text
  54110. #: guix-git/doc/guix.texi:36991
  54111. msgid "Much better!"
  54112. msgstr ""
  54113. #. type: Plain text
  54114. #: guix-git/doc/guix.texi:36995
  54115. 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."
  54116. msgstr ""
  54117. #. type: cindex
  54118. #: guix-git/doc/guix.texi:36999
  54119. #, no-wrap
  54120. msgid "security updates"
  54121. msgstr ""
  54122. #. type: Plain text
  54123. #: guix-git/doc/guix.texi:37008
  54124. 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:"
  54125. msgstr ""
  54126. #. type: smallexample
  54127. #: guix-git/doc/guix.texi:37015
  54128. #, no-wrap
  54129. msgid ""
  54130. "$ guix lint -c cve\n"
  54131. "gnu/packages/base.scm:652:2: glibc@@2.21: probably vulnerable to CVE-2015-1781, CVE-2015-7547\n"
  54132. "gnu/packages/gcc.scm:334:2: gcc@@4.9.3: probably vulnerable to CVE-2015-5276\n"
  54133. "gnu/packages/image.scm:312:2: openjpeg@@2.1.0: probably vulnerable to CVE-2016-1923, CVE-2016-1924\n"
  54134. "@dots{}\n"
  54135. msgstr ""
  54136. #. type: Plain text
  54137. #: guix-git/doc/guix.texi:37018
  54138. msgid "@xref{Invoking guix lint}, for more information."
  54139. msgstr ""
  54140. #. type: Plain text
  54141. #: guix-git/doc/guix.texi:37027
  54142. 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."
  54143. msgstr ""
  54144. #. type: cindex
  54145. #: guix-git/doc/guix.texi:37028
  54146. #, no-wrap
  54147. msgid "grafts"
  54148. msgstr ""
  54149. #. type: Plain text
  54150. #: guix-git/doc/guix.texi:37036
  54151. 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."
  54152. msgstr ""
  54153. #. type: cindex
  54154. #: guix-git/doc/guix.texi:37037
  54155. #, no-wrap
  54156. msgid "replacements of packages, for grafts"
  54157. msgstr ""
  54158. #. type: Plain text
  54159. #: guix-git/doc/guix.texi:37043
  54160. 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:"
  54161. msgstr ""
  54162. #. type: lisp
  54163. #: guix-git/doc/guix.texi:37050
  54164. #, no-wrap
  54165. msgid ""
  54166. "(define bash\n"
  54167. " (package\n"
  54168. " (name \"bash\")\n"
  54169. " ;; @dots{}\n"
  54170. " (replacement bash-fixed)))\n"
  54171. msgstr ""
  54172. #. type: Plain text
  54173. #: guix-git/doc/guix.texi:37060
  54174. 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."
  54175. msgstr ""
  54176. #. type: Plain text
  54177. #: guix-git/doc/guix.texi:37068
  54178. 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."
  54179. msgstr ""
  54180. #. type: Plain text
  54181. #: guix-git/doc/guix.texi:37072
  54182. msgid "The @option{--no-grafts} command-line option allows you to forcefully avoid grafting (@pxref{Common Build Options, @option{--no-grafts}}). Thus, the command:"
  54183. msgstr ""
  54184. #. type: example
  54185. #: guix-git/doc/guix.texi:37075
  54186. #, no-wrap
  54187. msgid "guix build bash --no-grafts\n"
  54188. msgstr ""
  54189. #. type: Plain text
  54190. #: guix-git/doc/guix.texi:37079
  54191. msgid "returns the store file name of the original Bash, whereas:"
  54192. msgstr ""
  54193. #. type: example
  54194. #: guix-git/doc/guix.texi:37082
  54195. #, no-wrap
  54196. msgid "guix build bash\n"
  54197. msgstr ""
  54198. #. type: Plain text
  54199. #: guix-git/doc/guix.texi:37087
  54200. msgid "returns the store file name of the ``fixed'', replacement Bash. This allows you to distinguish between the two variants of Bash."
  54201. msgstr ""
  54202. #. type: Plain text
  54203. #: guix-git/doc/guix.texi:37090
  54204. msgid "To verify which Bash your whole profile refers to, you can run (@pxref{Invoking guix gc}):"
  54205. msgstr ""
  54206. #. type: example
  54207. #: guix-git/doc/guix.texi:37093
  54208. #, no-wrap
  54209. msgid "guix gc -R $(readlink -f ~/.guix-profile) | grep bash\n"
  54210. msgstr ""
  54211. #. type: Plain text
  54212. #: guix-git/doc/guix.texi:37098
  54213. msgid "@dots{} and compare the store file names that you get with those above. Likewise for a complete Guix system generation:"
  54214. msgstr ""
  54215. #. type: example
  54216. #: guix-git/doc/guix.texi:37101
  54217. #, no-wrap
  54218. msgid "guix gc -R $(guix system build my-config.scm) | grep bash\n"
  54219. msgstr ""
  54220. #. type: Plain text
  54221. #: guix-git/doc/guix.texi:37105
  54222. msgid "Lastly, to check which Bash running processes are using, you can use the @command{lsof} command:"
  54223. msgstr ""
  54224. #. type: example
  54225. #: guix-git/doc/guix.texi:37108
  54226. #, no-wrap
  54227. msgid "lsof | grep /gnu/store/.*bash\n"
  54228. msgstr ""
  54229. #. type: cindex
  54230. #: guix-git/doc/guix.texi:37116
  54231. #, no-wrap
  54232. msgid "bootstrapping"
  54233. msgstr ""
  54234. #. type: Plain text
  54235. #: guix-git/doc/guix.texi:37123
  54236. 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?"
  54237. msgstr ""
  54238. #. type: Plain text
  54239. #: guix-git/doc/guix.texi:37131
  54240. 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."
  54241. msgstr ""
  54242. #. type: cindex
  54243. #: guix-git/doc/guix.texi:37132 guix-git/doc/guix.texi:37344
  54244. #, no-wrap
  54245. msgid "bootstrap binaries"
  54246. msgstr ""
  54247. #. type: Plain text
  54248. #: guix-git/doc/guix.texi:37142
  54249. 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}."
  54250. msgstr ""
  54251. #. type: Plain text
  54252. #: guix-git/doc/guix.texi:37146
  54253. msgid "These bootstrap binaries are ``taken for granted'', though we can also re-create them if needed (@pxref{Preparing to Use the Bootstrap Binaries})."
  54254. msgstr ""
  54255. #. type: section
  54256. #: guix-git/doc/guix.texi:37153
  54257. #, no-wrap
  54258. msgid "The Reduced Binary Seed Bootstrap"
  54259. msgstr ""
  54260. #. type: Plain text
  54261. #: guix-git/doc/guix.texi:37160
  54262. 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.''"
  54263. msgstr ""
  54264. #. type: Plain text
  54265. #: guix-git/doc/guix.texi:37166
  54266. 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."
  54267. msgstr ""
  54268. #. type: Plain text
  54269. #: guix-git/doc/guix.texi:37171
  54270. 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.}."
  54271. msgstr ""
  54272. #. type: Plain text
  54273. #: guix-git/doc/guix.texi:37177
  54274. 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)."
  54275. msgstr ""
  54276. #. type: Plain text
  54277. #: guix-git/doc/guix.texi:37182
  54278. 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."
  54279. msgstr ""
  54280. #. type: Plain text
  54281. #: guix-git/doc/guix.texi:37190
  54282. 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."
  54283. msgstr ""
  54284. #. type: Plain text
  54285. #: guix-git/doc/guix.texi:37200
  54286. 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."
  54287. msgstr ""
  54288. #. type: Plain text
  54289. #: guix-git/doc/guix.texi:37204
  54290. 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."
  54291. msgstr ""
  54292. #. type: Plain text
  54293. #: guix-git/doc/guix.texi:37207
  54294. msgid "@image{images/gcc-core-mesboot0-graph,6in,,Dependency graph of gcc-core-mesboot0}"
  54295. msgstr ""
  54296. #. type: Plain text
  54297. #: guix-git/doc/guix.texi:37214
  54298. 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.}."
  54299. msgstr ""
  54300. #. type: Plain text
  54301. #: guix-git/doc/guix.texi:37217
  54302. 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}."
  54303. msgstr ""
  54304. #. type: Plain text
  54305. #: guix-git/doc/guix.texi:37222
  54306. 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."
  54307. msgstr ""
  54308. #. type: Plain text
  54309. #: guix-git/doc/guix.texi:37226
  54310. 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}."
  54311. msgstr ""
  54312. #. type: Plain text
  54313. #: guix-git/doc/guix.texi:37233
  54314. msgid "@image{images/bootstrap-graph,6in,,Dependency graph of the early bootstrap derivations}"
  54315. msgstr ""
  54316. #. type: Plain text
  54317. #: guix-git/doc/guix.texi:37238
  54318. 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:"
  54319. msgstr ""
  54320. #. type: example
  54321. #: guix-git/doc/guix.texi:37243
  54322. #, no-wrap
  54323. msgid ""
  54324. "guix graph -t derivation \\\n"
  54325. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-gcc)' \\\n"
  54326. " | dot -Tps > gcc.ps\n"
  54327. msgstr ""
  54328. #. type: Plain text
  54329. #: guix-git/doc/guix.texi:37246
  54330. msgid "or, for the further Reduced Binary Seed bootstrap"
  54331. msgstr ""
  54332. #. type: example
  54333. #: guix-git/doc/guix.texi:37251
  54334. #, no-wrap
  54335. msgid ""
  54336. "guix graph -t derivation \\\n"
  54337. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-mes)' \\\n"
  54338. " | dot -Tps > mes.ps\n"
  54339. msgstr ""
  54340. #. type: Plain text
  54341. #: guix-git/doc/guix.texi:37260
  54342. 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})."
  54343. msgstr ""
  54344. #. type: Plain text
  54345. #: guix-git/doc/guix.texi:37269
  54346. 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."
  54347. msgstr ""
  54348. #. type: Plain text
  54349. #: guix-git/doc/guix.texi:37281
  54350. 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})."
  54351. msgstr ""
  54352. #. type: Plain text
  54353. #: guix-git/doc/guix.texi:37286
  54354. 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."
  54355. msgstr ""
  54356. #. type: unnumberedsec
  54357. #: guix-git/doc/guix.texi:37287
  54358. #, no-wrap
  54359. msgid "Building the Build Tools"
  54360. msgstr ""
  54361. #. type: Plain text
  54362. #: guix-git/doc/guix.texi:37296
  54363. 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."
  54364. msgstr ""
  54365. #. type: Plain text
  54366. #: guix-git/doc/guix.texi:37303
  54367. 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:"
  54368. msgstr ""
  54369. #. type: example
  54370. #: guix-git/doc/guix.texi:37308
  54371. #, no-wrap
  54372. msgid ""
  54373. "guix graph -t bag \\\n"
  54374. " -e '(@@@@ (gnu packages commencement)\n"
  54375. " glibc-final-with-bootstrap-bash)' | xdot -\n"
  54376. msgstr ""
  54377. #. type: Plain text
  54378. #: guix-git/doc/guix.texi:37315
  54379. 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."
  54380. msgstr ""
  54381. #. type: Plain text
  54382. #: guix-git/doc/guix.texi:37317
  54383. msgid "@image{images/bootstrap-packages,6in,,Dependency graph of the early packages}"
  54384. msgstr ""
  54385. #. type: Plain text
  54386. #: guix-git/doc/guix.texi:37323
  54387. 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."
  54388. msgstr ""
  54389. #. type: Plain text
  54390. #: guix-git/doc/guix.texi:37328
  54391. 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."
  54392. msgstr ""
  54393. #. type: Plain text
  54394. #: guix-git/doc/guix.texi:37334
  54395. 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."
  54396. msgstr ""
  54397. #. type: Plain text
  54398. #: guix-git/doc/guix.texi:37340
  54399. 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}})."
  54400. msgstr ""
  54401. #. type: unnumberedsec
  54402. #: guix-git/doc/guix.texi:37342
  54403. #, no-wrap
  54404. msgid "Building the Bootstrap Binaries"
  54405. msgstr ""
  54406. #. type: Plain text
  54407. #: guix-git/doc/guix.texi:37349
  54408. 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."
  54409. msgstr ""
  54410. #. type: Plain text
  54411. #: guix-git/doc/guix.texi:37355
  54412. 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):"
  54413. msgstr ""
  54414. #. type: example
  54415. #: guix-git/doc/guix.texi:37358
  54416. #, no-wrap
  54417. msgid "guix build bootstrap-tarballs\n"
  54418. msgstr ""
  54419. #. type: Plain text
  54420. #: guix-git/doc/guix.texi:37363
  54421. 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."
  54422. msgstr ""
  54423. #. type: Plain text
  54424. #: guix-git/doc/guix.texi:37369
  54425. 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."
  54426. msgstr ""
  54427. #. type: unnumberedsec
  54428. #: guix-git/doc/guix.texi:37370
  54429. #, no-wrap
  54430. msgid "Reducing the Set of Bootstrap Binaries"
  54431. msgstr ""
  54432. #. type: Plain text
  54433. #: guix-git/doc/guix.texi:37378
  54434. 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}."
  54435. msgstr ""
  54436. #. type: Plain text
  54437. #: guix-git/doc/guix.texi:37384
  54438. 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."
  54439. msgstr ""
  54440. #. type: Plain text
  54441. #: guix-git/doc/guix.texi:37390
  54442. 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."
  54443. msgstr ""
  54444. #. type: Plain text
  54445. #: guix-git/doc/guix.texi:37399
  54446. 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."
  54447. msgstr ""
  54448. #. type: Plain text
  54449. #: guix-git/doc/guix.texi:37402
  54450. 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!"
  54451. msgstr ""
  54452. #. type: chapter
  54453. #: guix-git/doc/guix.texi:37404
  54454. #, no-wrap
  54455. msgid "Porting to a New Platform"
  54456. msgstr ""
  54457. #. type: Plain text
  54458. #: guix-git/doc/guix.texi:37413
  54459. 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."
  54460. msgstr ""
  54461. #. type: Plain text
  54462. #: guix-git/doc/guix.texi:37418
  54463. 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:"
  54464. msgstr ""
  54465. #. type: example
  54466. #: guix-git/doc/guix.texi:37421
  54467. #, no-wrap
  54468. msgid "guix build --target=armv5tel-linux-gnueabi bootstrap-tarballs\n"
  54469. msgstr ""
  54470. #. type: Plain text
  54471. #: guix-git/doc/guix.texi:37428
  54472. 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."
  54473. msgstr ""
  54474. #. type: Plain text
  54475. #: guix-git/doc/guix.texi:37437
  54476. 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."
  54477. msgstr ""
  54478. #. type: Plain text
  54479. #: guix-git/doc/guix.texi:37446
  54480. 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."
  54481. msgstr ""
  54482. #. type: include
  54483. #: guix-git/doc/guix.texi:37448
  54484. #, no-wrap
  54485. msgid "contributing.texi"
  54486. msgstr "contributing.zh_CN.texi"
  54487. #. type: Plain text
  54488. #: guix-git/doc/guix.texi:37461
  54489. 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."
  54490. msgstr ""
  54491. #. type: Plain text
  54492. #: guix-git/doc/guix.texi:37464
  54493. msgid "The Nix-based software distributions, Nixpkgs and NixOS, have also been an inspiration for Guix."
  54494. msgstr "基于 Nix 的软件发行版 Nixpkgs 和 NixOS 也给 Guix 带来了灵感。"
  54495. #. type: Plain text
  54496. #: guix-git/doc/guix.texi:37470
  54497. 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!"
  54498. msgstr ""
  54499. #. type: cindex
  54500. #: guix-git/doc/guix.texi:37475
  54501. #, no-wrap
  54502. msgid "license, GNU Free Documentation License"
  54503. msgstr ""
  54504. #. type: include
  54505. #: guix-git/doc/guix.texi:37476
  54506. #, no-wrap
  54507. msgid "fdl-1.3.texi"
  54508. msgstr ""
  54509. #~ msgid "git-send-email"
  54510. #~ msgstr "git-send-email"
  54511. #, fuzzy
  54512. #~ msgid "@code{opam}, the default opam repository,"
  54513. #~ msgstr "@code{mate}(默认值:@code{mate})"
  54514. #, fuzzy
  54515. #~ msgid "of coq packages."
  54516. #~ msgstr "定义新软件包。"
  54517. #~ msgid "Using Debbugs."
  54518. #~ msgstr "用Debbugs。"
  54519. #, fuzzy
  54520. #~| msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  54521. #~ msgid "@xref{Build Phases}, for more info on build phases and ways to customize them."
  54522. #~ msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  54523. #~ msgid ""
  54524. #~ "(service qemu-binfmt-service-type\n"
  54525. #~ " (qemu-binfmt-configuration\n"
  54526. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  54527. #~ " (guix-support? #t)))\n"
  54528. #~ msgstr ""
  54529. #~ "(service qemu-binfmt-service-type\n"
  54530. #~ " (qemu-binfmt-configuration\n"
  54531. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  54532. #~ " (guix-support? #t)))\n"
  54533. #, fuzzy
  54534. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  54535. #~ msgid "@code{queries-log-file} (default: @code{#f})"
  54536. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  54537. #, fuzzy
  54538. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  54539. #~ msgid "@code{web-queries-log-file} (default: @code{#f})"
  54540. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  54541. #, fuzzy
  54542. #~| msgid "@code{max-zone-size} (default: @code{#f})"
  54543. #~ msgid "@code{queue-size} (default: @code{1})"
  54544. #~ msgstr "@code{max-zone-size}(默认值:@code{#f})"
  54545. #, fuzzy
  54546. #~| msgid "The host name of the remote machine."
  54547. #~ msgid "Size of the database writer queue."
  54548. #~ msgstr "远程机器的主机名。"
  54549. #, fuzzy
  54550. #~| msgid "Manage the operating system configuration."
  54551. #~ msgid "Data type representing the configuration of a simple Cuirass instance."
  54552. #~ msgstr "管理操作系统配置。"
  54553. #, fuzzy
  54554. #~| msgid "@code{port} (default: @code{22})"
  54555. #~ msgid "@code{build} (default: @code{all})"
  54556. #~ msgstr "@code{port}(默认值:@code{22})"
  54557. #, fuzzy
  54558. #~| msgid "{Data Type} build-machine"
  54559. #~ msgid "{Data Type} build-manifest"
  54560. #~ msgstr "{数据类型} build-machine"
  54561. #, fuzzy
  54562. #~| msgid "Channels"
  54563. #~ msgid "channel-name"
  54564. #~ msgstr "通道"
  54565. #, fuzzy
  54566. #~| msgid "-c @var{n}"
  54567. #~ msgid "manifest"
  54568. #~ msgstr "-c @var{n}"
  54569. #, fuzzy
  54570. #~| msgid "@code{includes} (default: @code{'()})"
  54571. #~ msgid "@code{non-package-channels} (default: @code{'()})"
  54572. #~ msgstr "@code{includes}(默认值:@code{'()})"
  54573. #, fuzzy
  54574. #~| msgid "@code{port} (default: @code{22})"
  54575. #~ msgid "@code{guix-support?} (default: @code{#t})"
  54576. #~ msgstr "@code{port}(默认值:@code{22})"
  54577. #, fuzzy
  54578. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  54579. #~ msgid "@code{password-file} (default: @code{#f})"
  54580. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  54581. #~ 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."
  54582. #~ msgstr "通常,@code{master}之外的其它分支如果最近被评审过,或有一个对应的@code{-next}分支,则被视为@emph{冻结}状态。如果不清楚该把补丁放到哪里,请在邮件列表或IRC上提问。"
  54583. #~ msgid "@xref{Invoking guix environment}, for more information on that command. Extra dependencies can be added with @option{--ad-hoc}:"
  54584. #~ msgstr "这个命令更多的信息请参考@xref{Invoking guix environment}。额外的依赖可以通过@option{--ad-hoc}选项添加:"
  54585. #~ msgid "Fiddling with Guix interactively."
  54586. #~ msgstr "交互式地操作Guix。"
  54587. #~ 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!"
  54588. #~ msgstr "小端序64位ARMv8-A处理器,Linux-Libre内核。目前处于实验阶段,支持有限。@xref{Contributing},提供帮助!"
  54589. #~ msgid "@url{https://zlib.net, zlib};"
  54590. #~ msgstr "@url{https://zlib.net, zlib};"
  54591. #~ msgid "Nix, compatibility"
  54592. #~ msgstr "Nix,兼容性"
  54593. #~ 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."
  54594. #~ msgstr "当一个已经安装的且可用的@url{https://nixos.org/nix/, Nix包管理器}存在时,你可以为Guix配置@code{--disable-daemon}参数。那样Nix可以替换上面的三个依赖。"
  54595. #~ 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."
  54596. #~ 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}参数不是必须的。"
  54597. #~ msgid "Do not use the @dfn{build hook}."
  54598. #~ msgstr "不要使用@dfn{构建钩子}。"
  54599. #~ 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})."
  54600. #~ msgstr "构建钩子是一个可以被后台进程启动并且提交构建请求的辅助程序。这个机制被用来向其它机器下发构建。(@pxref{Daemon Offload Setup})。"
  54601. #~ 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}."
  54602. #~ msgstr "@code{guix}软件包必须保留在@code{root}的profile里,否则它会被垃圾回收清理掉--那时你会发现缺少@command{guix}命令。换句话说,不要用@code{guix package -r guix}命令删除@code{guix}。"